Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

html Checkbox value not getting

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using <logic:iterate> tag to iterate through a list of Employees and display their details.
The list contains the Employee objects.
Now while displaying Employee details in a table, the row is ending with a check box , so that the user can select employees. The check boxes are created dynamically since they are inside the iterate tag.

Now how in Action I know that a specific employee is selected?

In action form I would get whether the check box is selected or not. But how can I relate that to employees in list?

This is my problem now i tried to solve it like this.

by adding a 'selected' field to the EmployeeBean.


Now I am getting the values of selected as false in the Action. Even though I have selected it.
I am using a action form for the some other elements in the same view.

Can some body through some light on this.

Reagrds
vishnu NV
 
vishnu vyasan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody plese help me with this?
 
vishnu vyasan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody please help me with this?
 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic