You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Igor Vlasov <vi...@mail.ru> on 2007/10/17 10:35:48 UTC

Add additional button near
Hello.

I have 

&lt;s:form action="customer" method='post' theme="xhtml"  >
 &lt;s:textfield name="customer.cus_name"  size="20" label="Surname" /> 
&lt;s:submit value="OK" name="apply" ></s:submit>
&lt;/s:form>

and i want to show additional button near  &lt;s:textfield/>.

For example :&lt;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 
> 
> &lt;s:form action="customer" method='post' theme="xhtml"  >
>  &lt;s:textfield name="customer.cus_name"  size="20" label="Surname" /> 
> &lt;s:submit value="OK" name="apply" ></s:submit>
> &lt;/s:form>
> 
> and i want to show additional button near  &lt;s:textfield/>.
> 
> For example :&lt;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