RE: JSF Portlets using EL in Faces-config.xml

4138728, modified 16 Years ago. New Member Posts: 2 Join Date: 10/14/09 Recent Posts
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 :

	<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, modified 16 Years ago. New Member Posts: 2 Join Date: 10/14/09 Recent Posts
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 ?