[jboss-user] [JBoss Portal] - Re: Need to get request parameters in JSF Portlet
Antoine_h
do-not-reply at jboss.com
Wed Feb 11 13:00:14 EST 2009
look at the samples and how the administration of the portal is programmed.
you can get it through some specific variables that are declared by the portal, for use in the JSF, that is in EL expression.
look in the file :
deploy\jboss-portal.sar\portal-admin.sar\portal-admin.war\WEB-INF\faces-config.xml
you'll find there the jsf variable resolver, that provides the variables to get portal informations inside the JSF.
and look at the portal administration pages.
with files like : deploy\jboss-portal.sar\portal-admin.sar\portal-admin.war\WEB-INF\jsf\editContext.xhtml
and code like :
<c:when test="#{portalobjectmgr.selectedObject.type == PortalObject.TYPE_CONTEXT}">#{bundle.PORTALS_NO_CAP}</c:when>
I don't remember exactly but I think you can get what you want this way.
for the Get parameter... I am not sure...
but may be you can make something similar, with a resolver that provide the request param.
the best would be to see how the portlet request parameter is "transfered" to the JSF context.
- do you use of the JBoss Portlet Bridge ? or another bridge for using some JSF in a portlet ?
- in JSF, did you looked at the ExternalContext to get the context ? ... may be they are yet there...
hope it helps,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209177#4209177
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209177
More information about the jboss-user
mailing list