You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Balaji Chandrasekaran <cb...@virtusa.com> on 2005/09/14 08:35:08 UTC

Saving values in portlet preferences

Hi all,



I have got this line in my portlet code.



DTO.setType( pref.getValue( "type", "" ) )





Also I have given default value in portlet.xml as below



<portlet-preferences>

    <preference>

    <name>type</name>

    <value>pie</value>

    </preference>

 </portlet-preferences>





Sometimes I am getting error message:

Portlet is null: Reason for input String ""





Can anyone help me how to resolve this issue? Thanks in advance



Regards,

Balaji Chandrasekaran























---------------------------------------------------------------------------------------------
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message.