RemoteCommand: View parameters not being sent

UI Components for JSF
Post Reply
shuta
Posts: 15
Joined: 25 Dec 2010, 19:20

11 Jul 2011, 19:38

Hi,

I am using several PrimeFaces RemoteCommand components on a Facelets page to invoke some server-side methods, and then update the page contents (using the render=... attribute). The "async" attribute of the RemoteCommands is set to "true".

Sometimes, i.e. in about 20% of the cases, this partial AJAX update fails due to a validation error, which states that the page's view parameter has not been set.
My page has got a single view parameter of type String with required="true". If I set required="false", the problem seems to disappear (but I want to leave it at "true").

I tried nesting a f:viewParam tag into the p:remoteCommand, but this did not change anything.

Since the problem only occurs intermittently, I suspect some kind of race condition/threading issue. Could this be a PrimeFaces issue? Or could this be related to this Mojarra (specification) issue: http://java.net/jira/browse/JAVASERVERF ... PUBLIC-742


I am using PrimeFaces 2.2.1 and Mojarra 2.1.2.

Thanks for your assistance!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests