Hello,

I have a datatable with a 'selectBooleanCheckbox' per row:


  |  <t:dataTable id="accountsForUserDataTableList"
  |                         var="account"
  |                         value="#{user.accounts}"
  |                         >
  |                         <h:column>
  |                             <f:facet name="header">
  |                                 <h:outputText value="#{msgs.id}" />
  |                             </f:facet>
  |                             <h:outputText value="#{account.accountId}" />
  |                         </h:column>                      
  |                                                 
  |                         <h:column>
  |                             <f:facet name="header">
  |                                 <h:outputText value="Selected?" />
  |                             </f:facet>
  |                             <h:selectBooleanCheckbox 
value="#{accountSelection[account]"/>
  |                         </h:column>    
  | 
  |                     </t:dataTable>
  | <h:commandButton value="Delete..." action="#{userManager.delete}" 
class="button"/> 
  | 
  | 


I declared within one of my stateless bean a Map that corresponds to the value 
of the 'selectBooleanCheckbox' named 'accountSelection'  as follows:


  | @Out(scope=ScopeType.EVENT,required=false)
  | Map<Account, Boolean> accountSelection;
  |  


When the 'commandButton' is executed, nothing happens, the action is not called 
and nothing is written in server logs,

at the moment I take off the 'selectBooleanCheckbox', or change its value to 
anything which is not multiple (does not include a '[]'), pressing on the 
button calls the action fine.


What could be the reason for that? it seems that almost the same code is used 
in the dvdshop sample (while browsing the items) except that I do not use a 
conversation here...

At least I'd like to know why the action is not called at all, I see the page 
getting refreshed but nothing happens :-/

Thanks guys,
Asaf.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956358

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to