Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue in passing the values to action class, when check box is disabled.

 
Narasimha Rao B.
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could some one help me on ...
Issues when the checkbox is checked and disabled...
I have a check box that should be checked and disabled based on the particular condition.
i have logic in jsp page, based on the particular condition, i am checking the checkbox and disabling it
but when the values are passed to execute method in action class the value is passed as false instead of true
if i enable the checkbox the values are properly passing to the action class execute method.

Thanks in Advance..
 
Dom Lassy
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disabling a form element prevents the value from being sent to the server. On submittal, you can enable the checkboxes, submit the form, then re-disable the checkboxes. The user won't notice a difference.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic