struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wild_oscar <mig...@almeida.at>
Subject Re: <s:textfield> rendering
Date Wed, 12 Dec 2007 14:18:14 GMT

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


Mime
View raw message