facebook

HTML labels

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #224698 Reply

    jdurrant
    Member

    Hi,
    I’m using MyEclipse to create a STRUTS web application intended for older people. I have a form with several input fields. The usual way I’d do this is:

    <label for=”fa”>Favourite Activity</label>
    <input type=”text” name=”otherActivity” id=”fa”>

    so the label tag picks up the “id” of the field, and users don’t have to be too precise with their mouse clicks. All well and good.

    I’d like to use the <html:text property=”otherActivity” /> tag to save time, but it won’t accept the “id” attribute, so my <label> is no good.

    Has anyone else come across this? Could anyone suggest a work around?

    Many thanks,
    James.

    #224706 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, this isn’t ME related.

    Additionally, I would suggest you ask the Struts mailing list as well as this list. Those guys are pretty sharp and could likely tell you why or how the id field was omitted (I can’t imagine you are the only one to notice this).

    #224751 Reply

    jdurrant
    Member

    Thanks for moving this – I wasn’t sure which forum to use!

    #224756 Reply

    jdurrant
    Member

    Ive found the answer – use the “styleId” attribute in the <html:text> tag. Simple really!

    #224761 Reply

    Riyad Kalla
    Member

    styleID? Hmm… seems strange but ok! Thanks for posting the solution.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: HTML labels

You must be logged in to post in the forum log in