3 Replies Latest reply on Aug 31, 2007 3:45 PM by Jim Barrows

    event management

    Mohammed Ettaib Newbie

      Hello everybody

      Still with jbpm and its headackes :-)

      I'm trying to add this time to add event listners to my control. but I m still didnt succeeded. here is a code that I tried.

      the bean:

      import javax.faces.event.ValueChangeListener;
      public class test {
       private String fname;
       private String lname;
       private String age;
       // fname property
       public String getFname(){ return fname;}
       public void setFname(String NewValue){ fname=NewValue;}
      // lname property
       public String getLname(){ return lname;}
       public void setLname(String NewValue){ lname=NewValue;}
      // age property
       public String getAge(){ return age;}
       public void setAge(String NewValue){ age=NewValue;}
      //event listener
       public void method(ActionEvent evt) {
      public test() {

      the jsf file:

      <!-- TASKFORM ROWS -->
       <f:facet name="header">
       <h:outputText value="first name"/>
       <h:inputText value="#{traitement.fname}" />
       <f:facet name="header">
       <h:outputText value="last name"/>
       <h:inputText value="#{traitement.lname}" />
      <!--here is the button where the listener is-->
      <h:commandButton value="button1" action="#{traitement.methode}"></h:commandButton>
       <f:facet name="header">
       <h:outputText value="age"/>
       <h:inputText value="#{var['age']}" />

      and the faces-config.xml:


      When a deploy and try to load the page it makes an exception:
      javax.servlet.ServletException: Property 'methode' not found on type test

      is there anything wrong in the code? please help.
      thank you