Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: JSF Portlets using EL in Faces-config.xml
4138728, modifié il y a 16 années.
New Member
Publications: 2
Date d'inscription: 14/10/09
Publications récentes
Hello,
I am trying to create a Portlet , which uses JSF 1.2 ( SUN RI) on Liferay.
I created a class which has a action() Method, which returns a string.
My faces-config has the following configuration :
When i deploy the portlet and push the button
the page reloads , but the portlet doesn't get redirected to the "/submit.xml" ...
the action() - method in the class "com.test.actions.DeleteUser" just contains "return "success"; " but it dosen't seemed to be called ..
do i have to register in the faces-config a special property-resolver or variable-resolver ?
thnx a lot in advance ... i am really in despair
I am trying to create a Portlet , which uses JSF 1.2 ( SUN RI) on Liferay.
I created a class which has a action() Method, which returns a string.
My faces-config has the following configuration :
<managed-bean>
<managed-bean-name>DeleteUser</managed-bean-name>
<managed-bean-class>com.test.actions.DeleteUser</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/view.xhtml</from-view-id>
<navigation-case>
<from-action>#{DeleteUser.action}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/submit.xhtml</to-view-id>
</navigation-case>
</navigation-rule>When i deploy the portlet and push the button
<h:commandbutton action="#{DeleteUser.action}" styleClass="portlet-form-button" value="Submit" />the page reloads , but the portlet doesn't get redirected to the "/submit.xml" ...
the action() - method in the class "com.test.actions.DeleteUser" just contains "return "success"; " but it dosen't seemed to be called ..
do i have to register in the faces-config a special property-resolver or variable-resolver ?
thnx a lot in advance ... i am really in despair
4138728, modifié il y a 16 années.
New Member
Publications: 2
Date d'inscription: 14/10/09
Publications récentes
Ok, i figured my Problem out ... it was a nullpointer exception in my Faces projekt ...
But why doesn't show liferay this problem in the console ?
But why doesn't show liferay this problem in the console ?
Community
Company
Feedback