[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=bb&op=viewtopic&p=4042780#4042780

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042780
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-05-02 Thread mohan_chaudhari
 
The java code works if i put

  |   
  | 
  |  
  | 
 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 : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042707#4042707

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042707
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bb&op=viewtopic&p=4042397#4042397

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042397
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 


  |   
  |
  |name
  |mohan
  | 
  |  
  | 

so the preferences are already set i just want to
fetch their value in java code. 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042363#4042363

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042363
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042358#4042358

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042358
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bb&op=viewtopic&p=4042353#4042353

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042353
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user