I have a popup page that displays a list of rows from a table (using
dataTable).  Each row contains a column that is a commandLink.  When clicked
it goes to the backend bean Listener and using UITable sets the current
object selected and then goes to an Action which sets to false a rendered
flag that should close the popup.

The first time the page loads, I can do a search and the results popup.  I
click on the hyperlink and the actionListener and the action get invoked
properly.  The property gets set and the popup closes.

However on the second time I hit the commandLink after getting the popup, it
will never hit the actionListener or the action method in the BB.  I am
using <t:saveState on all BB's.

Why would this work the first time but not the second or subsequent times? 
puzzleing.  I have tried everything to no avail.  The actionListener is a
method in one BB and the action is a method in another BB.  Both have scope
as set by <t:saveState on the same page.


--- The whole example is too complex to post here but the commandLink is
simple

   <h:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="groupName" arrow="true">
                <h:outputText value="Group Name"/>
            </t:commandSortHeader>
        </f:facet>
        <t:commandLink
                actionListener="#{ptGroup.chooseGroupListener}"
                action="#{ptGroupAdmin.mainScreenAction}"
                id="idCommandLinkGroupName">
            <h:outputText id="groupName" value="#{row.groupName}"/>
        </t:commandLink>
    </h:column>

---
Since the actionListener or action, never get invoked the second time
around, the popup stays there, the page behind the popup is never updated. 
Weird that it works the first time, but not second.


Simon
--
-- 
View this message in context: 
http://www.nabble.com/commandLink-not-working----tf2970681.html#a8312554
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to