Sure, specify your own id attribute...

-Wes

On Wed, 2008-07-16 at 15:45 +1000, Phan Le wrote:
> Thanks for the response Wes, I do use maven to build.
> Is there anyway that I can force struts NOT to auto-generate IDs for  
> me? any properties?
> Thanks
> 
> 
> On 16/07/2008, at 3:15 PM, Wes Wannemacher wrote:
> 
> > Struts 2 will create an id for you when using it's built-in tags. I've
> > never seen it quite as long as yours... Perhaps you built from a maven
> > archetype and might have passed in some parameters wrong?
> >
> > When you leave it up to struts, it will generate unique ids and it  
> > will
> > work w/o intervention. It also works fine if you specify an id, so  
> > it's
> > mostly a matter of preference and whether or not you need to know  
> > the id
> > for some added javascript.
> >
> > -Wes
> >
> > On Wed, 2008-07-16 at 14:33 +1000, Phan Le wrote:
> >> Hi there,
> >> I am new to this mailing list and currently experiencing strange
> >> behavior when rendering ids for HTML elements.
> >> I have something like this in my HTML code
> >>
> >> <div
> >>  class="fieldWrap" id="wwctrl_com.mycompany.profile:profile-app:war:
> >> 0.0.1-SNAPSHOT">
> >> I didn't specify any id in my <s:textfield> tag
> >>
> >> Any one know how Struts 2 do this?
> >> Thanks
> >>
> >>
> >>
> >>
> >> This email, including attachments, is intended only for the addressee
> >> and may be confidential, privileged and subject to copyright.  If you
> >> have received this email in error, please advise the sender and  
> >> delete
> >> it.  If you are not the intended recipient of this email, you must  
> >> not
> >> communicate to others content that is confidential or subject to
> >> copyright, unless you have the consent of the content owner.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to