>
> Martin,
>
> Yes, there is a problem with the output. The SubmitTextName should be inside
> the button tag, but in your example and others posted, the value gets placed
> outside the button tag (seems to get displayed before the rendering of the
> button.
>
> I would expect the output to be:
>
> <button type="submit" id="example1_0"
> value="SubmitTextName">SubmitTextName</button>
>
> In HTML, what is used for the value attribute, is what will be sent to the
> server on submit. Whereas, the "value" that is nested in the button tag, is
> only the "label" of the button and is not sent on submit.
>
> So, as far as Struts is concerned, I would expect the following:
>
> - User nests a "value" inside the s:submit tag, but does not include a value
> attribute
>
> <s:submit type="button" theme="simple">
> <s:text name="SubmitTextName" />
> </s:submit>
>
> <button type="submit" id="example1_0">SubmitTextName</button>
>
> ======================================================
>
> - User does not nest a "value", but does include the value attribute
>
> <s:submit type="button" theme="simple" value="SubmitTextName"/>
>
> <button type="submit" id="example1_0"
> value="SubmitTextName">SubmitTextName</button>
>
> ======================================================
>
> - User does not nest or include a value with the s:submit tag. A default
> value will be used for both.
>
> <s:submit type="button" theme="simple" />
>
> <button type="submit" id="example1_0" value="Submit">Submit</button>
>
> ======================================================
>
> - User adds both a nested "value" and a value attribute:
>
> <s:submit type="button" theme="simple" value="SubmitTextName">
> <s:text name="SomeOtherSubmitTextName" />
> </s:submit>
>
> <button type="submit" id="example1_0"
> value="SubmitTextName">SomeOtherSubmitTextName</button>
>
> ======================================================
>
> Hopefully that makes sense ;) Thanks for looking into this...
>
> -Eric
>
>
>
>
>
> mgainty wrote:
> >
> > Eric-
> >
> > I just tossed this into a test.jsp page
> > <s:submit type="button" theme="simple">
> > <s:text name="SubmitTextName" />
> > </s:submit>
> >
> > ..and this was the rendered html output..
> >
> > SubmitTextName
> > <button type="submit" id="example1_0" value="Submit">Submit</button>
> >
> > anything wrong with the output???
> > Martin--
> > ----- Original Message -----
> > From: "Eric Martin" <
eric@...>
> > To: <
user@...>
> > Sent: Wednesday, November 28, 2007 8:27 PM
> > Subject: Re: WW-167 not working
> >
> >
> >>
> >>
https://issues.apache.org/struts/browse/WW-1677> >>
> >>
> >> mgainty wrote:
> >> >
> >> > Alberto-
> >> >
> >> > which button component are you speaking of?
> >> >
> >> > Martin--
> >> > ----- Original Message -----
> >> > From: "Alberto A. Flores" <
aaflores@...>
> >> > To: <
user@...>
> >> > Sent: Wednesday, November 28, 2007 3:05 PM
> >> > Subject: WW-167 not working
> >> >
> >> >
> >> >> Has anyone been able to confirm that this issue is working? I don't
> > seem
> >> >> to get it to work yet JIRA says it is. This is about having a <button>
> >> >> tag with an image and text inside the button.
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Alberto