[jboss-user] [JBoss Portal] - Re: can't access preference at runtime

2007-05-03 Thread [EMAIL PROTECTED]
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

[jboss-user] [JBoss Portal] - Re: can't access preference at runtime

2007-05-02 Thread mohan_chaudhari
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 :

[jboss-user] [JBoss Portal] - Re: can't access preference at runtime

2007-05-02 Thread [EMAIL PROTECTED]
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 :

[jboss-user] [JBoss Portal] - Re: can't access preference at runtime

2007-05-02 Thread mohan_chaudhari
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

[jboss-user] [JBoss Portal] - Re: can't access preference at runtime

2007-05-02 Thread [EMAIL PROTECTED]
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

[jboss-user] [JBoss Portal] - Re: can't access preference at runtime

2007-05-02 Thread mohan_chaudhari
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 :