myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souravm <>
Subject Calling a Myfaces Portlet from a non-JSF request ..
Date Thu, 17 Apr 2008 01:38:00 GMT

Hi All,

I've a MyFaces (1.1.4) Portlet deployed in jboss portal server.

First time I need to access this portlet from a non-JSF (jsp) page which sends a http post
request with some request parameters.

The solution does not work when the request does not have any request parameter (works fine
when accessed by a request with no request parameter).

When I try to read the request parameter(s) in the constructor of the managed bean they come
as null.

I tried extending the processAction() method of MyFacesGenericPortlet. I read the request
parameters from the ActionRequest and set them in RenderRequest using setRenderParameter (This
anyway one has to do for a jsp based portlet implementation). With this approach I can read
the request parameters in the constructor of the managed bean.

I would like to validate whether this is a known limitation of MyFacesGenericPortlet and the
solution approach mentioned above is right one (or any other approach is recommended) ?

Any help in this regard would be highly appreciated.


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of
the addressee(s). If you are not the intended recipient, please notify the sender by e-mail
and delete the original message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are unlawful. This e-mail
may contain viruses. Infosys has taken every reasonable precaution to minimize this risk,
but is not liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or attachment. Infosys
reserves the right to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys
e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
View raw message