Announcement Announcement Module
Collapse
No announcement yet.
hidden input field for validation? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hidden input field for validation?

    hi!

    I tried to put an 'userid' in a hidden input field:
    Code:
    <input type="hidden" name="userid" value="<c&#58;out value='$&#123;user.id&#125;'/>">
    in my command class I have getter/setter methods for this field as usual...

    when I read out the value in the validator I just get NULL although the user.id is not null.

    my question: is it possible to validate a hidden input field?

    tia, lana

  • #2
    is it possible to validate a hidden input field?
    It won't make any difference whether it's hidden or not. You just have to have the correct name. It looks like your hidden variable should be something like: ${command.id}

    Comment


    • #3
      Thanks for your help!
      I forgot to bind the input field ; )

      byebye
      lana

      Comment

      Working...
      X