You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by wild_oscar <mi...@almeida.at> on 2007/12/12 14:25:46 UTC
rendering
I am finding it strange that
<s:textfield name="code" value="somevalue" />
is rendered as:
<tr>
<td class="tdLabel"></td>
<td
><input type="text" name="code" value="" id="someaction_code"/>
</td>
</tr>
Is this the normal rendering of the textfield? Can't I render it just as a
normal input tag, without all the tr and td's?
Because I can't seem to get my table right when I want to do something like:
<s:form>
<tr>
<td>SOP Code</td>
<td><s:textfield name="code" value="%{sop.code}" /></td>
</tr>
</s:form>
Any help appreciated.
--
View this message in context: http://www.nabble.com/%3Cs%3Atextfield%3E-rendering-tp14295052p14295052.html
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: rendering
Posted by Laurie Harper <la...@holoweb.net>.
FYI: http://struts.apache.org/2.x/docs/themes-and-templates.html
L.
wild_oscar wrote:
> Ah! I didn't know there were predefined themes.
>
> Thank you very much for your quick reply.
>
>
> Alberto A. Flores wrote:
>> Try theme="simple" in your <s:textfield ..> tag.
>>
>> Alternatively, you can set up a constant in struts.xml
>>
>> <constant name="struts.ui.theme" value="simple"/>
>>
>> of place it in struts.properties (in classpath)
>>
>> wild_oscar wrote:
>>> I am finding it strange that
>>>
>>> <s:textfield name="code" value="somevalue" />
>>>
>>> is rendered as:
>>>
>>> <tr>
>>> <td class="tdLabel"></td>
>>> <td
>>>> <input type="text" name="code" value="" id="someaction_code"/>
>>> </td>
>>> </tr>
>>>
>>> Is this the normal rendering of the textfield? Can't I render it just as
>>> a
>>> normal input tag, without all the tr and td's?
>>>
>>> Because I can't seem to get my table right when I want to do something
>>> like:
>>>
>>> <s:form>
>>> <tr>
>>> <td>SOP Code</td>
>>> <td><s:textfield name="code" value="%{sop.code}" /></td>
>>>
>>> </tr>
>>> </s:form>
>>>
>>> Any help appreciated.
>>>
>>>
>> --
>>
>> Alberto A. Flores
>> http://www.linkedin.com/in/aflores
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: rendering
Posted by Randy Burgess <RB...@nuvox.com>.
If you leave the theme set to the default and use the label attribute in the
textfield that value will be placed in the first table column.
Regards,
Randy Burgess
Web Applications Developer
Nuvox Communications
> From: wild_oscar <mi...@almeida.at>
> Reply-To: Struts Users Mailing List <us...@struts.apache.org>
> Date: Wed, 12 Dec 2007 06:18:14 -0800 (PST)
> To: <us...@struts.apache.org>
> Subject: Re: <s:textfield> rendering
>
>
> Ah! I didn't know there were predefined themes.
>
> Thank you very much for your quick reply.
>
>
> Alberto A. Flores wrote:
>>
>> Try theme="simple" in your <s:textfield ..> tag.
>>
>> Alternatively, you can set up a constant in struts.xml
>>
>> <constant name="struts.ui.theme" value="simple"/>
>>
>> of place it in struts.properties (in classpath)
>>
>> wild_oscar wrote:
>>> I am finding it strange that
>>>
>>> <s:textfield name="code" value="somevalue" />
>>>
>>> is rendered as:
>>>
>>> <tr>
>>> <td class="tdLabel"></td>
>>> <td
>>>> <input type="text" name="code" value="" id="someaction_code"/>
>>>
>>> </td>
>>> </tr>
>>>
>>> Is this the normal rendering of the textfield? Can't I render it just as
>>> a
>>> normal input tag, without all the tr and td's?
>>>
>>> Because I can't seem to get my table right when I want to do something
>>> like:
>>>
>>> <s:form>
>>> <tr>
>>> <td>SOP Code</td>
>>> <td><s:textfield name="code" value="%{sop.code}" /></td>
>>>
>>> </tr>
>>> </s:form>
>>>
>>> Any help appreciated.
>>>
>>>
>>
>> --
>>
>> Alberto A. Flores
>> http://www.linkedin.com/in/aflores
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> --
> View this message in context:
> http://www.nabble.com/%3Cs%3Atextfield%3E-rendering-tp14295052p14296035.html
> 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
>
This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: rendering
Posted by wild_oscar <mi...@almeida.at>.
Ah! I didn't know there were predefined themes.
Thank you very much for your quick reply.
Alberto A. Flores wrote:
>
> Try theme="simple" in your <s:textfield ..> tag.
>
> Alternatively, you can set up a constant in struts.xml
>
> <constant name="struts.ui.theme" value="simple"/>
>
> of place it in struts.properties (in classpath)
>
> wild_oscar wrote:
>> I am finding it strange that
>>
>> <s:textfield name="code" value="somevalue" />
>>
>> is rendered as:
>>
>> <tr>
>> <td class="tdLabel"></td>
>> <td
>>> <input type="text" name="code" value="" id="someaction_code"/>
>>
>> </td>
>> </tr>
>>
>> Is this the normal rendering of the textfield? Can't I render it just as
>> a
>> normal input tag, without all the tr and td's?
>>
>> Because I can't seem to get my table right when I want to do something
>> like:
>>
>> <s:form>
>> <tr>
>> <td>SOP Code</td>
>> <td><s:textfield name="code" value="%{sop.code}" /></td>
>>
>> </tr>
>> </s:form>
>>
>> Any help appreciated.
>>
>>
>
> --
>
> Alberto A. Flores
> http://www.linkedin.com/in/aflores
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
--
View this message in context: http://www.nabble.com/%3Cs%3Atextfield%3E-rendering-tp14295052p14296035.html
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: rendering
Posted by "Alberto A. Flores" <aa...@gmail.com>.
Try theme="simple" in your <s:textfield ..> tag.
Alternatively, you can set up a constant in struts.xml
<constant name="struts.ui.theme" value="simple"/>
of place it in struts.properties (in classpath)
wild_oscar wrote:
> I am finding it strange that
>
> <s:textfield name="code" value="somevalue" />
>
> is rendered as:
>
> <tr>
> <td class="tdLabel"></td>
> <td
>> <input type="text" name="code" value="" id="someaction_code"/>
>
> </td>
> </tr>
>
> Is this the normal rendering of the textfield? Can't I render it just as a
> normal input tag, without all the tr and td's?
>
> Because I can't seem to get my table right when I want to do something like:
>
> <s:form>
> <tr>
> <td>SOP Code</td>
> <td><s:textfield name="code" value="%{sop.code}" /></td>
>
> </tr>
> </s:form>
>
> Any help appreciated.
>
>
--
Alberto A. Flores
http://www.linkedin.com/in/aflores