Dear fellows,
the problem is i want to perform multiple row deletion in a datatable. here is
my code, it is the exact copy of the code given in the dvd example.
| <h:dataTable id="hotelslist" rows="5" value="#{allHotelsList}" var="hotels"
styleClass="scrollerTable" headerClass="standardTable_Header"
footerClass="standardTable_Header"
columnClasses="column_style,column_style,columna_style1" >
| <h:column>
| <f:facet name="header">
| <h:outputText value="Select" />
| </f:facet>
| <h:selectBooleanCheckbox value="#{hotelSelections[hotels]}" />
| </h:column>
|
| <h:column>
| <f:facet name="header">
| <h:outputText value="Name"/>
| </f:facet>
| <h:outputText value="#{hotels.name}"/>
| </h:column>
|
| <h:column>
| <f:facet name="header">
| <h:outputText value="City"/>
| </f:facet>
| <h:outputText value="#{hotels.city}"/>
| </h:column>
|
| <h:column>
| <f:facet name="header">
| <h:outputText value="Contact Number"/>
| </f:facet>
| <h:outputText value="#{hotels.phone}"/>
| </h:column>
|
| <h:column>
| <f:facet name="header">
| <h:outputText value="Action" />
| </f:facet>
| <h:commandButton value="Details"
action="#{HotelsAction.showHotelDetails}" image="../images/details.gif" />
|
| </h:dataTable>
|
|
| <h:commandButton action="#{ERegHotelsAction.deleteAll}" value="DeleteAll"/>
|
In the above mentioned code, whenever i press any command button the associated
action is not called by the component and the same page is redisplayed.
and if i remove the "[hotels]" EL exp from the checkbox value then it start
working. I dont know what is going on, and what is the exact problem.
can anyone help me on this matter.
thanks alot in advance
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015757#4015757
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015757
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user