Results 1 to 3 of 3

Thread: hidden input field for validation?

  1. #1
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    17

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    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}

  3. #3
    Join Date
    Apr 2005
    Location
    Austria
    Posts
    17

    Default

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

    byebye
    lana

Similar Threads

  1. using byte[] for HTMLArea like field
    By arashid in forum Data
    Replies: 8
    Last Post: Aug 30th, 2005, 09:52 AM
  2. Replies: 5
    Last Post: May 25th, 2005, 04:07 AM
  3. Replies: 2
    Last Post: Oct 27th, 2004, 10:44 AM
  4. Form input generation macro for password field
    By Sampo Pasanen in forum Web
    Replies: 0
    Last Post: Sep 6th, 2004, 06:54 AM
  5. field errors from initBinder
    By araghavan in forum Web
    Replies: 1
    Last Post: Aug 19th, 2004, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •