But so, how can i do this in your way?
1@Value("${portlet.mycustomportlet.config.url}")
2 public void seUrl(String conf) {
3 monUrl = conf;
4 }
Add following line in liferay-portlet.xml inside the portlet tag.
<configuration-action-class>com.test.liferay.portlet.xyz.action.ConfigurationActionImpl</configuration-action-class>
So, i have this in my liferay-portlet.xml :
1 <portlet>
2 <portlet-name>My portlet</portlet-name>
3 <control-panel-entry-category>My portletPage</control-panel-entry-category>
4 <configuration-action-class>path</configuration-action-class>
5 <instanceable>true</instanceable>
6 <private-request-attributes>false</private-request-attributes>
7 <private-session-attributes>false</private-session-attributes>
8 </portlet>
where path is :
package where my class is : com.ent.portlets.
name of portlet : myportlet.
and action.ConfigurationActionImpl (i also tried with my classname)
so : com.ent.portlets.myportlet.action.ConfigurationActionImpl
and my class is like :
public class myportlet extends BaseConfigurationAction implements ConfigurationAction{}
But i have this error message :
This portlet has been undeployed. Please redeploy it or remove it from the page.
Also, a question with your way. If i undertand, it will appears an option "preferences" for this portlet, and redicrect me on my jsp when i will click on "preferences"?And when i will save, register this parameter. Right?
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.