Hi,
I'm trying to set a view and edit modes through two instances.
One instance has a parameter edit="true" et the other has the parameter
edit="false"
I'd like to use those parameters to display different things using JSF
but i'm unable to get Preferences, here is my code to get these preferences :
protected void doView(RenderRequest request, RenderResponse response) throws
PortletException, PortletSecurityException, IOException
| {
| response.setContentType("text/html");
| PortletPreferences prefs = request.getPreferences();
| String parameter = prefs.getValue("edit",init);
| if (parameter.equals("true"))
| {
|
| }
| else
| {
|
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978503#3978503
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978503
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user