Hello, YES, the action is executed if I remove the rendered attribute... BUT I need this attribute. You know this Problem or a solution??
Best Regards, Christian > --- Ursprüngliche Nachricht --- > Von: Rick Reumann <[EMAIL PROTECTED]> > An: MyFaces Discussion <users@myfaces.apache.org> > Betreff: Re: commandLink with action inside Table > Datum: Thu, 15 Sep 2005 11:36:08 -0400 > > Does the action get executed if you remove the 'rendered' attribute? > > Christian Froelich wrote the following on 9/15/2005 9:00 AM: > > Thanks for your fast answer! > > > > My jsp looks like this: > > > > <x:tree id="tree" value="#{treeTable.treeModel}" > > var="foo" > > styleClass="tree3" > > nodeClass="browserCol" > > columnClasses="treeNode" > > selectedNodeClass="treeNodeSelected" > > expandRoot="true"> > > > > <x:treeColumn rendered="#{foo.firstBoolean}" id="treeColumn"> > > ... > > </x:treeColumn> > > > > <h:column id="columnBrowsTab1" rendered="#{foo.secondBoolean}"> > > <h:commandLink > > action="#{listener.sort}" > > immediate="true" > > rendered="#{foo.obid == 'obid'}" > value="XXXXXXXX"></h:commandLink> > > <h:outputText value="#{foo.secondColumn}" > > rendered="#{foo.obid != 'obid' and !(foo.obid == > listener.obid)}"/> > > <h:outputText value="#{foo.secondColumn}" > > rendered="#{(foo.obid == listener.obid)}" > > styleClass="treeNodeSelected" /> > > </h:column> > > > > ...other h:columns... > > > > </x:tree> > > > > The commandLink is always rendered as link. And also the rest of the > > treeTable seems to get rendered correctly. But the action method is only > > executed if the tableBody is empty. > > > > > > Thanks and warm regards, > > > > Christian > > > > > > > >>--- Ursprüngliche Nachricht --- > >>Von: Mathias Brökelmann <[EMAIL PROTECTED]> > >>An: MyFaces Discussion <users@myfaces.apache.org> > >>Betreff: Re: commandLink with action inside Table > >>Datum: Thu, 15 Sep 2005 14:01:53 +0200 > >> > >>the action of the commandlink is only executed if the rendered flag > >>for this and his parent component is true during the decode phase. > >> > >>Can you post the surrounding datatable tag also? > >> > >>2005/9/15, Christian Froelich <[EMAIL PROTECTED]>: > >> > >>>Hello, > >>> > >>>I try to use a commandLink with an action inside a treeTable but it is > >>>not working properly :-( > >>>The following snippet of a treeTable-column is expected to: > >>>- render a link if it 's the tableHead > >>>- render a outputText if it's a row inside the tableBody > >>>- render a outputText with a special style if it's selected > >>> > >>><h:column id="columnBrowsTab1" rendered="#{foo.secondBoolean}"> > >>> <h:commandLink > >>> action="#{listener.sort}" > >>> immediate="true" > >>> rendered="#{foo.obid == 'obid'}">XXXXXXXXXX</h:commandLink> > >>><h:outputText value="#{foo.secondColumn}" > >>> rendered="#{foo.obid != 'obid' and !(foo.obid == listener.obid)}"/> > >>><h:outputText value="#{foo.secondColumn}" > >>> rendered="#{(foo.obid == listener.obid)}" > >>> styleClass="treeNodeSelected" /> > >>></h:column> > >>> > >>>The result so far looks good, but the ACTION method of the link gets > >>>only fired if the tableBody is empty. > >>> > >>>Any ideas to solve this problem??? > >>> > >>> - my backingBean has session scope > >>> - I'm using the nightly build from 2005/09/12. > >>> > >>>Warm regards, > >>> > >>>Christian > >>> > >>>-- > >>>Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! > >>>Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner > >>> > >> > >> > >>-- > >>Mathias > >> > > > > > > > -- > Rick > -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner