jsf 1.2 - JSF action not triggered -


Before I am trying to do a simple test before plunge into a major activity, but here's the place Where I was stuck. The test is to submit the JSF form, but the operation of the managed bean never starts.

  & lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: Ui = "http://java.sun.com/jsf/" "xmlns: h =" http: //java.sun. Com / jsf / html "xmlns: f =" http://java.sun.com/JSF/core "xmlns: ice =" http://www.icesoft.com/icefaces/component "& gt; & Lt; F: View & gt; & Lt; Top & gt; & Lt; Title & gt; ABC & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H: form id = "test" & gt; & Lt; H: Input Text = "Demo" /> & Lt; H: command button type = "submit" value = "a button" action = "# {user.better}" instant = "true" /> & Lt; / H: form & gt; & Lt; / Body & gt; & Lt; / Ch: view & gt; & Lt; / Html & gt;  

This is my managed vane

  public class user {Send a public string ({{System.out.println ("Collecting data .... . "); Return tap; } Public Zero Better () {System.out.println ("Better In ..."); }}  

I have set up all the configuration correctly I may be able to see the page but, the control never goes to the action method. how? Any suggestions would be great.

Update: Here my face - conig.xml

   & Lt; / Face-config & gt;  

I changed the managed-bean-name from user to user (short case) and has also changed it to .xhtml page, but it seems that still there is a problem . P>

Try the user instead of the user.In this way, instead of user.better, user.better Try Are you using JSF 2 or not? In addition, post your face-config file


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -