You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mick Knutson <mi...@gmail.com> on 2006/12/04 22:55:42 UTC

Question about inputText ID attributes

I have dozens of form elements like this:

<h:inputText           disabled="true"  style="background-color: #D3D3D3 "
/>

That do not have id's for them.
The form is existing and works right now.

My question is, what issues should I look for if I want to add ID's to these
elements in order to clean up my JSP's?


-- 

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson

Re: Question about inputText ID attributes

Posted by Jeff Bischoff <jb...@klkurz.com>.
Mick,

Negative: You need to make sure these manually-set IDs are unique within 
their naming-container.

Positive: If you use the default validation messages, they can be much 
more meaningful in combination with a useful id.

Bottom Line: Proper use of subviews should allow you to implement this 
without a hitch.

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

Mick Knutson wrote:
> I have dozens of form elements like this:
> 
> <h:inputText           disabled="true"  style="background-color: #D3D3D3 "
> />
> 
> That do not have id's for them.
> The form is existing and works right now.
> 
> My question is, what issues should I look for if I want to add ID's to 
> these
> elements in order to clean up my JSP's?
> 
>