MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
james.durrant
Post subject: HTML labels  PostPosted: Feb 08, 2005 - 04:47 PM
Registered Member
Registered Member


Joined: Apr 02, 2004
Posts: 8

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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Feb 08, 2005 - 05:09 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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).

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
james.durrant
Post subject:   PostPosted: Feb 09, 2005 - 08:50 AM
Registered Member
Registered Member


Joined: Apr 02, 2004
Posts: 8

Thanks for moving this - I wasn't sure which forum to use!
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
james.durrant
Post subject:   PostPosted: Feb 09, 2005 - 11:55 AM
Registered Member
Registered Member


Joined: Apr 02, 2004
Posts: 8

Ive found the answer - use the "styleId" attribute in the <html:text> tag. Simple really!
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Feb 09, 2005 - 01:48 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits