Multiple SetPropertyActionListeners

UI Components for JSF
Post Reply
primehthb
Posts: 52
Joined: 12 Dec 2010, 22:19

24 Jan 2011, 17:17

Hi,

I'm trying to use a commandLink with two PropertyActionListeners, with two different Managed Beans as targets:

Code: Select all

 <p:commandLink update="documentPanel" oncomplete="documentDialog.show()" title="Sjá nánar" >
                <p:graphicImage value="/images/search.png" />
                <f:setPropertyActionListener value="#{document}"
                    target="#{documentController.selectedDocument}" />
                <f:setPropertyActionListener value="#{document.name}"
                    target="#{fileUploadController.folderName}" />
            </p:commandLink>
This commandLink is within a column in a p:TreeTable

The latter setPropertyActionListener does not seem to be called.

Is this an incorrect way to use setPropertyActionListener?

Thanks.

primehthb
Posts: 52
Joined: 12 Dec 2010, 22:19

24 Jan 2011, 18:38

It turns out it is the correct usage. My fileUploadController was requestScoped, which caused the problem.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 58 guests