You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jiří Chaloupka <ko...@chalu.cz> on 2009/02/15 11:29:38 UTC
how to disable struts2 form theme
Hallo,
I need to use form with form attributes in more columns, which struts
form does not allows me.
I tried to use:
<s:form action="NewAddress" theme="simple">
<table>
<tr><td valign="top" colspan="2">
<h3><s:property value="%{getText('newaddress.address.header'}" /></h3>
</td>
<tr><td valign="top" colspan="2">
<h3><s:property value="%{getText('newaddress.person.header'}" /></h3>
</td></tr>
<tr>
<td><s:property value="%{getText('newaddress.isfirma'}"
/></td><td><s:checkbox key="isfirma" theme="simple" /></td>
<td><s:property value="%{getText('register.person.fname'}"
/></td><td><s:textfield key="fname" theme="simple" /></td>
</tr>
...
but in this case <s:property ../> tags are not parsed.
Is there a waz how to completely disable theme? I did not found anything
usable by google and in documentation :-/
Thanks, Jiri
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to disable struts2 form theme
Posted by Jiří Chaloupka <ko...@chalu.cz>.
Hi Dave,
thank you, by this way it is working and because of this it solves my
problem :-)
Jirka
Dave Newton napsal(a):
> Jiří Chaloupka wrote:
>> <s:form action="NewAddress" theme="simple">
>> <table>
>> <tr><td valign="top" colspan="2">
>> <h3><s:property value="%{getText('newaddress.address.header'}" /></h3>
> > [...]
>
>> but in this case <s:property ../> tags are not parsed.
>
> The theme shouldn't have anything to do with the property tag--it's
> possible, but my first assumption would be that something else is wrong.
>
> Are you accessing the page via an action, or are you accessing the JSP
> directly?
>
> As an aside, there's an <s:text...> tag:
>
> <s:text name="newaddress.address.header"/>
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to disable struts2 form theme
Posted by Dave Newton <ne...@yahoo.com>.
Jiří Chaloupka wrote:
> <s:form action="NewAddress" theme="simple">
> <table>
> <tr><td valign="top" colspan="2">
> <h3><s:property value="%{getText('newaddress.address.header'}" /></h3>
> [...]
> but in this case <s:property ../> tags are not parsed.
The theme shouldn't have anything to do with the property tag--it's
possible, but my first assumption would be that something else is wrong.
Are you accessing the page via an action, or are you accessing the JSP
directly?
As an aside, there's an <s:text...> tag:
<s:text name="newaddress.address.header"/>
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org