html:select readonly how to?

Discussions

EJB design: html:select readonly how to?

  1. html:select readonly how to? (5 messages)

    I have an <html:select> tag in my JSP. I want to make that combo box readonly, so that no one is able to select any other option when the page is rendered. I can set the disabled property to "true" but is that case the value of the combobox is not set in the corresponding ActionForm variable. Need some help desparately.
    Thanx in advance
    p.s. this is all STRUTS specific

    Threaded Messages (5)

  2. html:select readonly how to?[ Go to top ]

    Why Can't u use <bean:write> and write the value of the select box instead of displaying the whole select box
  3. Nopes[ Go to top ]

    no i cannot
  4. html:select readonly how to?[ Go to top ]

    You can do it with javascript.

    You can detect the event onchange an force throught javascript to select the correct value.
  5. html:select readonly how to?[ Go to top ]

    you can do that using javascript.
    when the page loads you can set the comboBox read only.
    I think it solves ur problem.
  6. Re: html:select readonly how to?[ Go to top ]

    you can do that using javascript.
    when the page loads you can set the comboBox read only.
    I think it solves ur problem.
    HTML input type (select) doesnt have readonly attribute. it has only disabled attribute - disable the select box - on click of submit button enable the select box vins