h/t:selectOneMenu not working in nested t:dataLists or t:dataTables
-------------------------------------------------------------------

                 Key: TOMAHAWK-1106
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1106
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Data List, Extended Datatable
    Affects Versions: 1.1.6
         Environment: Tomcat 5.5.12, MyFaces 1.1.5
            Reporter: Jens Scheidtmann


I want to display a table nested in another table (detailStamp feature of 
extended dataTable). I realised this using two nested t:dataTable s. The outer 
table features commandButtons to toggle displaying the inner table(s). In the 
inner table I would like to display a t/h:selectOneMenu in one of the columns:


<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t" %>

[...]

        <h:form id="form">
                        <t:dataTable var="it" value="#{bekoViewBean.items}"
                                varDetailToggler="detailToggler">
                                <t:column>
                                        <h:commandButton id="detail_show" 
rendered="#{detailToggler.currentDetailExpanded}"
                                            value="hide"
                                                
action="#{detailToggler.toggleDetail}">
                                        </h:commandButton>
                                        <h:commandButton id="detail_hide" 
rendered="#{!detailToggler.currentDetailExpanded}"
                                                value="show"
                                                
action="#{detailToggler.toggleDetail}">
                                        </h:commandButton>
                                </t:column> 

                                <f:facet name="detailStamp">
                                        <h:panelGroup>
                                        <t:dataTable var="booking" 
value="#{it.bookings}">
                                                <t:column>
                                                        <t:selectOneMenu 
rendered="#{booking.bookingId <= 0}" 
                                                                        
value="#{booking.newTrial}">
                                                                
<f:convertNumber/>
                                                                <f:selectItem 
itemLabel="1" itemValue="Trial"/>
                                                        </t:selectOneMenu>
                                                        <h:commandButton 
value="Add"></h:commandButton>
                                                </t:column>
                                                <t:column>
                                                        
<h:selectBooleanCheckbox value="#{booking.split}" onclick="submit()">
                                                        
</h:selectBooleanCheckbox>
                                                </t:column>
                                        </t:dataTable>
                                        </h:panelGroup>
                                </f:facet>
                        </t:dataTable>
        </h:form>
[...]

Behavior experienced:

1. Outer table displays.
2. User clicks to open display of Details for one row.
3. Detail Row is expanded (displaying the selectOneMenu, the button and the 
checkbox).
4. All further interactions trigger a round trip, but no updates of the data 
model take place any more. Hiding the detail does not work anymore.

If I comment out the selectOneMenu, I can toggle detail views and e.g. the 
checkbox is correctly updated in the detail facet.
If change the h:panelGroup to a t:panelGroup, then the getter for the checkbox 
is called, but not the setter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to