Can <p:ajax update=""> update multiple component

UI Components for JSF
Post Reply
KingdomHeart
Posts: 280
Joined: 25 Jun 2010, 01:18

15 Jul 2010, 01:10

If I have 3 components, the first component determine the contents of the other two components. Do I have to write two <p:ajax update="" event="change">? Or somehow I can specify that I want to update two component?

Mojarra 2.1.10, Glassfish 3.1, Tomcat 7, Primeface 3.3.1
IE 6-8, FireFox 10-13
MAC OSX Lion, Windows XP, 7

lmmoreira
Posts: 60
Joined: 08 Jul 2010, 14:15

15 Jul 2010, 01:15

KingdomHeart , I thing if you try <p:ajax update="component1,component2,component3" >

Once they are related by the bean there arent any trouble.
Tomcat 7 + jsf-api - 2.0.3-SNAPSHOT + Primefaces 2.1

KingdomHeart
Posts: 280
Joined: 25 Jun 2010, 01:18

15 Jul 2010, 01:24

Excellent. It works great.

Mojarra 2.1.10, Glassfish 3.1, Tomcat 7, Primeface 3.3.1
IE 6-8, FireFox 10-13
MAC OSX Lion, Windows XP, 7

lmmoreira
Posts: 60
Joined: 08 Jul 2010, 14:15

15 Jul 2010, 01:36

Glad to hear
Tomcat 7 + jsf-api - 2.0.3-SNAPSHOT + Primefaces 2.1

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jul 2010, 17:01

As a tip;

Code: Select all

<p:ajax update="component1 component2 component3" >
will work too.

KingdomHeart
Posts: 280
Joined: 25 Jun 2010, 01:18

15 Jul 2010, 20:27

awesome. Thank you

Mojarra 2.1.10, Glassfish 3.1, Tomcat 7, Primeface 3.3.1
IE 6-8, FireFox 10-13
MAC OSX Lion, Windows XP, 7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests