0 Replies Latest reply on May 27, 2007 2:59 AM by Tony Tony

    weird problem

    Tony Tony Newbie

      Hi All,

      I have following problem in calling action on datatable. here are the code:

       <h:commandButton action="#{accountAction.selectAccount}" value="test" />
       cellpadding="0" cellspacing="0"
       columnsWidth="0px, 0px, 0px"
       border="0" var="_account" value="#{accountList}">
       <f:facet name="header">
       <h:outputText value="Account #" />
       <h:commandButton id="select" action="#{accountAction.selectAccount}" value="#{_account.account.display}" />
       <f:facet name="header">
       <h:outputText value="Name" />
       <h:outputText value="#{_account.account.name}" />
       <f:facet name="header">
       <h:outputText value="Type" />
       <h:outputText value="#{_account.account.accountType.title}" />
       public String selectAccount() {
       log.debug("selectAccount() :: selected account id ");
       return null;

      the code above has button called "test" and it is get called from test button.
      however, if i click from one of the button in my datatable, the action method does not get call at all.....

      what has hapeenning in here???? i feel weird and does not work in stable enviroment of jsf....Can some one tell me what i have made mistake ????

      it is quite stress when encounter this error (could be my bad)...