Hello.
I have
<s:form action="customer" method='post' theme="xhtml" >
<s:textfield name="customer.cus_name" size="20" label="Surname" />
<s:submit value="OK" name="apply" ></s:submit>
</s:form>
and i want to show additional button near <s:textfield/>.
For example :<input type="button" value="Correct"
onclick="doCorrection()">
How can i do this ?
--
View this message in context: http://www.nabble.com/Add-additional-button-near-%3Cs%3Atextfield-in-xhtml-theme---tf4638909.html#a13249269
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Add additional button near
Posted by Igor Vlasov <vi...@mail.ru>.
I found an any kind of solution:
i create a n aditional templete "text_w_button.ftl"
<pre>
<#include "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl"
/>
<#include "/${parameters.templateDir}/simple/text.ftl" />
<input type="button" name="${parameters.name?default("")?html}_find"
id="${parameters.name?default("")?html}_find" value="Correct"
onclick="doCorrection()" >
<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />
</pre>
Igor Vlasov wrote:
>
> Hello.
>
> I have
>
> <s:form action="customer" method='post' theme="xhtml" >
> <s:textfield name="customer.cus_name" size="20" label="Surname" />
> <s:submit value="OK" name="apply" ></s:submit>
> </s:form>
>
> and i want to show additional button near <s:textfield/>.
>
> For example :<input type="button" value="Correct"
> onclick="doCorrection()">
>
>
> How can i do this ?
>
>
>
--
View this message in context: http://www.nabble.com/Add-additional-button-near-%3Cs%3Atextfield-in-xhtml-theme---tf4638909.html#a13249538
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org