Fórumok

Portlet preferences

thumbnail
mohammad azaruddin, módosítva 11 év-val korábban

Portlet preferences

Expert Bejegyzések: 492 Csatlakozás dátuma: 2012.09.17. Legújabb bejegyzések
HI
Initially i created one portlet with only view-mode..And now i want to add edit mode to set preferences.so i added below code in portlet.xml


<portlet-class>com.test.category.AddCategory</portlet-class>
<init-param>
<name>view-jsp</name>
<value>/html/addcategory/viewCategory.jsp</value>
</init-param>
<init-param>
<name>edit-jsp</name>
<value>/html/addcategory/edit.jsp</value>
</init-param>

<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
<portlet-mode>edit</portlet-mode>
</supports>
<portlet-info>

after deploying only look and feel and configuration is available as before.
But if i create new portlet with both view and edit mode then preference option is available..

Thank you
thumbnail
mohammad azaruddin, módosítva 11 év-val korábban

RE: Portlet preferences

Expert Bejegyzések: 492 Csatlakozás dátuma: 2012.09.17. Legújabb bejegyzések
HI
I solved itemoticon

I stop the server,deleted two folders work and temp and restart the server
Is this exact solution for this problem.......?emoticon


Dont know why this error occuredemoticon Can any one tel why this happened so that it may be helpfull to someone elseemoticon