Hi,

In my MVC application, I am using Trinidad 1.2.1 and deploying to Tomcat
5.5.26 and here is my requirement:

1. Based on user's selection of the values in the Listboxes (Lot and Wafer),
I need to display one of two tables (tr:table): either 'Existing Parameter
Measurements' or 'Enter new Measurements' table. I am able to achieve this
using rendered attribute in a tr:subform (see code below).

2. In the existing data table, I need to perform edit/update/delete/cancel
operations for a selected row. This functionality is not working after I
included the rendered attribute in subform i.e., whenever I click on "edit"
button within this table, the backing bean is not called at all, image
attached: 

http://www.nabble.com/file/p25139707/ShowHide_CRUD_Options.jpg 

The code mentioned below shows what I have done thus far:

<tr:panelGroupLayout id="dataDAO" partialTriggers="wafernumberlistbox"> 
<!-- wafernumberlistbox is a listbox in panelgrouplayout where the user
selects a value in order to see either existing data or enter new data -->
        <tr:outputText value="Existing Parameter Measurements"/>
        <tr:subform id="measureddatavalues" default="true"
rendered="#{lotBean.showHide}">

        <tr:spacer width="10" height="10"/>

            <tr:table summary="Existing Label Data"
                id="existingData"
                var="existing"
                value="#{lotBean.lotstatus.existingData}"
                rowSelection="single"
                binding="#{lotBean.table}"
                partialTriggers=":wafernumberlistbox editButton updateButton
cancelButton">
            <tr:column>
                <f:facet name="header">
                    <tr:outputText value="Parameter Measurement"/>
                </f:facet>
                <tr:inputText value="#{existing.measuredValue}"
                            readOnly="#{not lotBean.editRow}"
                            required="true"/>
            </tr:column>
            <tr:column>
                <f:facet name="header">
                    <tr:outputText value="Notes"/>
                </f:facet>
                <tr:inputText value="#{existing.notes}"
                            readOnly="#{not lotBean.editRow}"/>
            </tr:column>           
            <f:facet name="footer">
                <tr:panelGroupLayout layout="horizontal">
                    <tr:switcher
facetName="#{lotBean.lotstatus.buttonFacet}" id="buttons">
                        <f:facet name="edit">
                            <tr:commandButton
                                    id="editButton"
                                    text="Edit Row"
                                    partialSubmit="true"
                                    partialTriggers="existingData"
                                    actionListener="#{lotBean.performEdit}"
                                    blocking="true">
                            </tr:commandButton>
                        </f:facet>
                        <f:facet name="updateCancel">
                            <tr:panelGroupLayout layout="horizontal">
                                <tr:commandButton
                                        id="updateButton"
                                        text="Update"
                                        partialTriggers="existingData"
                                        partialSubmit="true"
                                       
actionListener="#{lotBean.performUpdate}"
                                        blocking="true">
                                </tr:commandButton>
                                <tr:commandButton
                                        id="cancelButton"
                                        text="Cancel"
                                        partialTriggers="existingData"
                                        partialSubmit="true"
                                       
actionListener="#{lotBean.performCancel}"
                                        immediate="true"
                                        blocking="true">
                                    <tr:resetActionListener/>
                                </tr:commandButton>
                            </tr:panelGroupLayout>
                        </f:facet>
                    </tr:switcher>
                        <tr:statusIndicator>
                            <f:facet name="busy">
                                <tr:outputText value="Working, Please
Wait..."/>
                            </f:facet>
                        </tr:statusIndicator>
                </tr:panelGroupLayout>
            </f:facet>
        </tr:table>
        </tr:subform>
    </tr:panelGroupLayout>

Also, performEdit method in my backing bean captures an ActionEvent.
However, it is not being called. I am not sure what I am missing here.

Thank you in advance for looking at this issue.

Best,
Anil.
-- 
View this message in context: 
http://www.nabble.com/Show-Hide-component-and-perform-operations-tp25139707p25139707.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to