You can set up preferences in portlet-instances.xml (note the 's' at the end).
Show more of your portlet-instances.xml file. You can also look at the
NewsPortlets in core-samples to see it used.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042780#4042780
the portlet-instance contains :
name
XYZ
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042353#4042353
Reply to the post :
use [ code ] [ / code] with no space to write markup
Didn't you mean
| String pref = null;
| pref = request.getPreferences().getValue(name, foo);
| System.out.println(pref);
|
You are not setting up pref...
View the original post :
Thanks
I put following in portlet-instance.xml
| preferences
|preference
|namename/name
|valuemohan/value
| /preference
| /preferences
|
so the preferences are already set i just want to
fetch their value
And what's wrong in the code i wrote ?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4042397#4042397
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4042397
___
jboss-user mailing
The java code works if i put
| preferences
|
| /preferences
|
in portlet.xml but if i put preferences in portlet-instance.xml it gives me
null instead of giving value of preference.
View the original post :