I am attempting to add an “edit” detail using the t:dataTable detail toggler functionality.  When I show the details on one of the last two rows in the table the application is unable to process any process any more actions.  It renders okay but actions are never handled again in the session!  I have tried with 1.1.2 and 1.1.3.

 

I have this JSP stuff:

 

            <f:view>

                  <h:form id="theform">

                        <t:dataTable      id="datatable"

                                                value="#{ToggleDetailTestBean.results}"

                                                var="aRow"

                                          styleClass="dataTable"

                                          headerClass="dataTableTH"

                                          rowClasses="oddRow, evenRow"

                                          varDetailToggler="detailToggler" >

                              <h:column>

                                    <f:facet name="header">

                                      <h:outputText value="x" />

                                    </f:facet>

                                    <h:commandLink      rendered="#{detailToggler.currentDetailExpanded}"

                                                            action="">

                                          <h:graphicImage url="" alt="Hide Details." />

                                    </h:commandLink>

                                    <h:commandLink       rendered="#{!detailToggler.currentDetailExpanded}"

                                                            action="">

                                          <h:graphicImage url="" alt="Show Details." />

                                    </h:commandLink> 

                              </h:column>

 

                              <h:column>

                                <f:facet name="header">

                                    <h:outputText value="Column 1" />

                                </f:facet>

                                <h:outputText value='#{aRow.column1}'/>

                              </h:column>

                             

                              <h:inputHidden id="modelIndex" value="#{aRow.index}"/>

                       

                              <f:facet name="detailStamp">

                                    <h:panelGrid>

                                          <h:outputText value="Column 5" styleClass="toggleDetailsTableTH" />

                                          <h:outputText value="#{aRow.dtlcolumn1}"/>

                                          <h:inputText      id="dtlcolumn1"

                                                                  value="#{aRow.dtlcolumn1}"/>

                                          <h:commandButton id="setRowEditableButton"

                                                                        value="#{aRow.rowEditable ? 'Save Changes' : 'Edit'}"

                                                                        action=""

                                                                        actionListener="#{ToggleDetailTestBean.startEdit}"/>

                                    </h:panelGrid>

                              </f:facet>

                        </t:dataTable>               

                  </h:form>

            </f:view>

 

And this in the MBean:

 

            public void startEdit(ActionEvent event) {

                        try {

                                    log("Starting currentRow edit.");

                                    HtmlInputHidden component = (HtmlInputHidden) event.getComponent().findComponent("modelIndex");

                                    ToggleDetailTestModel currentRow = getRow(component);

                                    boolean newValue = !currentRow.getRowEditable();

                                    log("Setting editable to " + newValue);

                                    currentRow.setRowEditable(newValue);

                        }

                        catch (Throwable t) {

                                    log("Exception in startEdit", t);

                        }

            }

 

Has anyone else seen this?

 

Cheers,

Steve


This email and all files and information transmitted with it are confidential and intended solely for the use of the individual or entity to whom the email is addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient(s), you have received this email in error, and use of it is strictly prohibited. Opinions expressed herein are those of the individual sender and not of the company unless specifically so indicated. If you have received this communication in error, please immediately notify the sender, delete this message, and do not print, copy, or disclose the content of this message. Inadvertent disclosure of this message does not waive any privilege or claim of confidentiality.

For important conflict disclosures, please visit http://www.daiwausa.com/report_disclosure.html

If your settings do not permit you to access this link directly, please use your internet browser to visit this website address.

Reply via email to