• Post Reply Bookmark Topic Watch Topic
  • New Topic

Portlet Preferences

 
Krishna Tota
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to know what are preferences in portlets please explain in brief.



thanks
 
purni sri
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

To provide a customized behaviour for different users, portelts are configured using portlet prefernces.
Portlet Prefernces are name,value pairs which are configured in the portlet.xml deployment descriptor.
To understand indepth you can read the Portlet Prefernces chapter in JSR 168 specifications. It is explained clearly.


<portlet>
--------------
-------------


<portlet-preferences>
<preference>
<name>PreferredStockSymbols</name>
<value>FOO</value>
<value>XYZ</value>
</preference>
<preference>
<name>quotesFeedURL</name>
<value>http://www.foomarket.com/quotes</value>
</preference>
</portlet-preferences>

</portlet>


Thanks
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!