Setting the update attribute value on server in AJAX Call

Components, Ajax Framework, Utilities and More.
Post Reply
ashish04
Posts: 12
Joined: 24 Feb 2011, 07:52

15 Jun 2011, 00:47

In p:AJAX, we need to mention the target Ids in Update attribute. In business process, these target ids are sometime decided only after the server side processing is done.
Is there a way I can associate the update attribute value to a managed bean instance variable and assign the target ids after my business processing is done?

I think RichFaces has this capablity. It will be great if we can achieve the same in Primefaces.

I am using Primefaces Version 2.2.1. IDE is RSA 8, Server is RSA 8 Server.

User avatar
optimus.prime
Prime
Posts: 17422
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jun 2011, 11:05

RequestContext.getCurrentInstance().addPartialUpdateTarget("clientIdHere").

User avatar
optimus.prime
Prime
Posts: 17422
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jun 2011, 11:06

Also standard JSF APIs can help like PartialViewContext.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests