Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Simon Prinzleve
Portlet Configurationpage for JSF Portlet - not working?
August 16, 2008 6:27 AM
Answer

Simon Prinzleve

Rank: Junior Member

Posts: 48

Join Date: December 2, 2007

Recent Posts

Dear group,

I'm trying to get a configuration page for my JSF portlet.
BTW: I just use plugin development - as it in the google-adsense portlet. (Instead of using the ext-environment as in wiki)

I adopted the following steps from the google-adsense portlet:

liferay-portlet.xml: add element <configuration-action-class>
source: add class ConfigurationActionImpl.java
jsp: add config.jsp

It seems though that (in contrast to the JSP portlet googleAdsense) in JSF the configuration action is not forwarded to my ActionImpl class - in spite of the <configuration-action-class> setting.

Am I on the wrong track? Is it obvious that it can't work? emoticon Or am I just missing something?

Any help would be great!
Thanks a lot,

Simon


----
here the part from the liferay-portlet.xml:

 1
 2<liferay-portlet-app>
 3    <portlet>
 4        <portlet-name>ConfessTests</portlet-name>
 5        <icon>/icon.png</icon>
 6        [b]<configuration-action-class>com.liferay.portlet.googleadsense.action.ConfigurationActionImpl</configuration-action-class>        [/b]
 7        <url-encoder-class>com.sample.jsfmyfaces.portlet.LogURLEncoder</url-encoder-class>
 8        <instanceable>true</instanceable>
 9        <header-portlet-css>/css/test.css</header-portlet-css>
10        <header-portlet-javascript>/js/test.js</header-portlet-javascript>
11    </portlet>