js call to change checkbox's state rendered using p:selectMa

UI Components for JSF
Post Reply
eWMS
Posts: 90
Joined: 22 Jun 2011, 11:20

09 Sep 2011, 13:38

Hi,

We wants to modify checkbox's state (checked/unchecked) by calling clientside (javascript) method, these checkboxes are rendered by primefaces selectManyCheckBox component.

But, our clientside call don't reflect anything in the UI (gets reflected if we use JSF selectManyCheckBox).
After close observation, we found that along with checked=checked a css style is applied to a span component to make it checked/unchecked.

Our requirement is to make all checkboxes (rendered by p:selectManyCheckbox) either checked or unchecked, just as toggle functionality.
Looking for some hint or code... preferably with JQuery :)

Thanks in advance!

Primefaces 3.0.M3
JSF v2.1.1 with MyFaces Implementation
SWF v2.3.0.RELEASE

User avatar
leventgny
Posts: 238
Joined: 24 May 2011, 16:49
Contact:

09 Sep 2011, 14:23

Hi,

SelectManyCheckBox widget has no api for changing state.
And there could be a workaround with using markup selectors or new feature so please create a jira ticket to log onto issue.

Regards,
PrimeFaces Team Member

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests