Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

selectBooleanCheckbox - How do I add a Select All with a Remove button feature

Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I'm trying to do is this. I have an extendedDataTable that the user can add multiple profiles into. When the user adds a profile into the table, it creates a row with a checkbox at the beginning of the row. Once the user is done adding profiles to the table, they can remove unwanted profiles by clicking the checkbox next to the profile or they can click the select all checkbox above to select all the profiles in the table and then click the remove button below.

So the problem isn't how do i create a select all checkbox, the problem that I am running into is the Vaildation setp in the JSF life cycle. I have an immediate="true" on my remove button beacuse I have validation above for other fields, and I want the user to be able to remove profiles without having to enter the information above first. So what happens is when the user clicks remove it doesn't remove the profiles from the table. I was thinking of useing <a4j:support> but I really don't no anything about it. Does anyone have any suggestions? Thanks.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic