Ah.  It's good to trim element values, but probably not attribute
values.  Does this happen anywhere else?

> -----Original Message-----
> From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 05, 2005 3:50 PM
> To: Struts Users Mailing List
> Subject: Re: <html-el:submit> 'value' attribute behavior 
> change 1.2.0 to 1.2.6
> 
> 
> Apologies, this was my fault - I added a trim() to the value 
> when I re-factored this tag :-(
> 
> I'll change this back.
> 
> Niall
> 
> ----- Original Message ----- 
> From: "Wendy Smoak" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 05, 2005 11:28 PM
> 
> 
> > I'm getting the following HTML rendered from the JSP below:
> >
> > <html-el:submit property="submit"  value="     "
> > onclick="setUserAction('Add Prospect');" styleClass="addButton" 
> > titleKey="button.add.prospect" />
> >
> > <input type="submit" name="submit" value="Submit" 
> > onclick="setUserAction('Add Prospect');" class="addButton" 
> title="Add 
> > Prospect">
> >
> > This is supposed to be a submit button with an image and no 
> text (just 
> > spaces).  It worked in 1.2.0, but 1.2.6 is ignoring the 'value' 
> > attribute and I'm getting the word 'Submit' plastered over 
> the image.
> >
> > Before I open a bug, can anyone comment if they think it's 
> _supposed_ 
> > to
> do
> > this?  Thanks.
> >
> > --
> > Wendy Smoak
> 
> 
> 
> ---------------------------------------------------------------------
> 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