Hi All, 

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

  |                             <h:form>
  |                                     <h:commandButton 
action="#{accountAction.selectAccount}" value="test" />
  |                                     <rich:dataTable 
  |                                                     
onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
  |                                                     
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
  |                                                     cellpadding="0" 
cellspacing="0" 
  |                                                     columnsWidth="0px, 0px, 
0px"
  |                                                     border="0" 
var="_account" value="#{accountList}">
  |                                             <rich:column>
  |                                                     <f:facet name="header">
  |                                                             <h:outputText 
value="Account #" />
  |                                                     </f:facet>
  |                                                     <h:commandButton 
id="select" action="#{accountAction.selectAccount}" 
value="#{_account.account.display}" />
  |                                             </rich:column>
  |                                             <rich:column>
  |                                                     <f:facet name="header">
  |                                                             <h:outputText 
value="Name" />
  |                                                     </f:facet>
  |                                                     <h:outputText 
value="#{_account.account.name}" />
  |                                             </rich:column>
  |                                             <rich:column>
  |                                                     <f:facet name="header">
  |                                                             <h:outputText 
value="Type" />
  |                                                     </f:facet>
  |                                                     <h:outputText 
value="#{_account.account.accountType.title}" />
  |                                             </rich:column>                  
                                                                                
                
  |                                     </rich:dataTable>
  |                             </h:form>
  | 
  |     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)...

Cheer,



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048885#4048885

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048885
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to