is it possible that your valuechangelistener of the selectonemenu is called if you click on a link in your datatable?
2005/11/5, Matthias Kahlau <[EMAIL PROTECTED]>: > The code for the valueChangeListener methods is not implemented yet (empty > body), because I encountered the problem with the commandLinks in the > dataTable and dataScroller, so > I haven't tried to change the dataTable. > > My Backing-Bean UmfrageBacking has session scope, so I do not need the > t:saveState for it, if my understanding is correct. > > The getter method for the UmfrageBacking.umfragen Value-Binding looks like > this: > > public ListDataModel getUmfragen() { > this.sort(); > return this.umfragen; > } > > > > Regards, > Matthias > > > -----Ursprüngliche Nachricht----- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Auftrag > > von Mathias Brökelmann > > Gesendet: Samstag, 5. November 2005 16:17 > > An: MyFaces Discussion > > Betreff: Re: MyFaces 1.1.1 - problem with dataTable and selectOne menu > > contained in a panelTab > > > > > > basically this is mostly a problem with the datamodel of the datatable > > which must be available in decode time. This value for the decode time > > must match with the value which was used by the renderer which created > > the response. > > > > To figure out if that is the problem I need to know how the bean code > > is written. Can you post the code which is required to build and > > return (getter method of UmfrageBacking.umfragen) the datamodel? It > > could be possible that you have to use t:savestate to hold the state > > which is required to rebuild the datamodel for the decode phase. > > > > 2005/11/5, Matthias Kahlau <[EMAIL PROTECTED]>: > > > Indirect, yes. When the user changes the value in one of the > > selectOneMenu > > > components, > > > a valueChangeListener method should be invoked, which changes > > the data shown > > > in the > > > table. > > > > > > Regards, > > > Matthias > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] Auftrag > > > > von Mathias Brökelmann > > > > Gesendet: Samstag, 5. November 2005 15:46 > > > > An: MyFaces Discussion > > > > Betreff: Re: MyFaces 1.1.1 - problem with dataTable and selectOne menu > > > > contained in a panelTab > > > > > > > > > > > > Is your datatable rowdata dependent on the current values of the > > > > selectmenu components? > > > > > > > > 2005/11/5, Matthias Kahlau <[EMAIL PROTECTED]>: > > > > > Hi! > > > > > > > > > > I use a t:panelTabbedPane: > > > > > > > > > > > > > > > <h:form> > > > > > <t:panelTabbedPane selectedIndex="0"> > > > > > > > > > > <t:panelTab label="Eigene Umfragen" id="tab1"> > > > > > <%@ include file="EigeneUmfragenTab.jspf" %> > > > > > </t:panelTab> > > > > > ...... > > > > > ...... > > > > > ..... > > > > > > > > > > The tab content that is included and I have the problem with is > > > > shown below: > > > > > (Without the panelGrid containing the selectOneMenus, all works > > > > fine, but > > > > > with them, commandLinks in dataTable and dataScroller doesn't work.) > > > > > > > > > > <h:panelGrid columns="2"> > > > > > <h:column> > > > > > <h:selectOneMenu value="#{UmfrageBacking.currentUmfragetyp}" > > > > > > > valueChangeListener="#{UmfrageBacking.adjustInterfaceControls}" > > > > > immediate="true"> > > > > > <f:selectItems value="#{UmfrageBacking.umfragetypen}" /> > > > > > </h:selectOneMenu> > > > > > </h:column> > > > > > <h:column> > > > > > <h:selectOneMenu > > value="#{UmfrageBacking.currentUmfragezustand}" > > > > > > > valueChangeListener="#{UmfrageBacking.adjustInterfaceControls}" > > > > > immediate="true"> > > > > > <f:selectItems value="#{UmfrageBacking.umfragezustaende}" /> > > > > > </h:selectOneMenu> > > > > > </h:column> > > > > > </h:panelGrid> > > > > > > > > > > > > > > > <t:dataTable id="dataTable" > > > > > value="#{UmfrageBacking.umfragen}" > > > > > var="row" > > > > > rows="10" > > > > > renderedIfEmpty="true" > > > > > preserveDataModel="false" > > > > > preserveSort="true" > > > > > sortColumn="#{UmfrageBacking.sortColumn}" > > > > > sortAscending="#{UmfrageBacking.sortAscending}" > > > > > styleClass="" > > > > > headerClass="" > > > > > footerClass="" > > > > > rowClasses="" > > > > > columnClasses="" > > > > > rowOnMouseOver="this.style.backgroundColor='#A5CBFF'" > > > > > rowOnMouseOut="this.style.backgroundColor='#FFFFE0'" > > > > > rowOnClick="this.style.backgroundColor='#FFE0E0'" > > > > > rowOnDblClick="this.style.backgroundColor='#E0E0E0'" > > > > > width="700"> > > > > > <t:column> > > > > > <f:facet name="header"> > > > > > <t:commandSortHeader > > > > > columnName="#{UmfrageBacking.colName_Bezeichnung}" > > > > > arrow="true"> > > > > > <h:outputText > > > > > value="#{UmfrageBacking.colName_Bezeichnung}"/> > > > > > </t:commandSortHeader> > > > > > </f:facet> > > > > > <h:commandLink action="#{UmfrageBacking.editUmfrage}"> > > > > > <h:outputText value="#{row.bezeichnung}"/> > > > > > </h:commandLink> > > > > > </t:column> > > > > > .... > > > > > .... (some more columns without commandLinks) > > > > > ... > > > > > </t:dataTable> > > > > > > > > > > <h:panelGrid columns="2" styleClass="" columnClasses=""> > > > > > <t:column> > > > > > <t:dataScroller id="scroll_1" for="dataTable" > > > > > ..... > > > > > ..... > > > > > </h:panelGrid> > > > > > > > > > > > > > > > -------- > > > > > Regards, > > > > > Matthias > > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > Von: [EMAIL PROTECTED] > > > > > > > > > [mailto:[EMAIL PROTECTED] Auftrag > > > > > von Mathias Brökelmann > > > > > Gesendet: Samstag, 5. November 2005 09:43 > > > > > An: MyFaces Discussion > > > > > Betreff: Re: MyFaces 1.1.1 - problem with dataTable and > > selectOne menu > > > > > contained in a panelTab > > > > > > > > > > > > > > > please post the related jsp/bean code. > > > > > > > > > > 2005/11/5, Matthias Kahlau <[EMAIL PROTECTED]>: > > > > > > Hi! > > > > > > > > > > > > I have a strange problem using a selectOneMenu within a > > > > > panelTab (MyFaces > > > > > > 1.1.1). The selectOneMenu is placed above a dataTable, > > which is also > > > > > > contained in the panelTab. Without the selectOneMenu, I > > can click on a > > > > > > commandLink in a table row to select one entry. But with the > > > > > selectOneMenu > > > > > > placed above the dataTable, I can click on the links or the > > > dataScroller > > > > > > below, and nothing happens. No request is initiated to update > > > > > the page. (It > > > > > > doesn't matter if I use tags of the standard JSF HTML RenderKit > > > > > Taglib or > > > > > > Tomahawk.) > > > > > > > > > > > > What's the problem with this composition, and how can I > > manage this? > > > > > > > > > > > > > > > > > > -------- > > > > > > Regards, > > > > > > Matthias > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Mathias > > > > > > > > > > > > > > > > > -- > > > Mathias > > > > > > > > > > > > -- > > Mathias > > -- Mathias