Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Struts2 TextField
Abiodun Adisa
Ranch Hand
Posts: 495
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am using Struts2 and on my page i have
<s:textfield required="true" > </s:textfield>
But any time i look at the gererated HTML i see
<tr> <td class="tdLabel"></td> <td><input type="text" name="" id="buttonAction_" /></td> </tr>
this is messing up my HTML Page because i was just expecting to see only
<input type="text" name="" id="buttonAction_" />
Please how can i resolve this problem
Pradeep Adibatla
Ranch Hand
Posts: 336
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
give name and label as...
<s:textfield name="abc" label="xyz >
remove required field...
i think it shd work
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The "required" attribute has nothing to do with the table generation.
See:
http://struts.apache.org/2.1.8/docs/themes-and-templates.html
http://struts.apache.org/2.1.8/docs/selecting-themes.html
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
unable to do validation for select in struts2
STRUTS2 Tabbed interface problem with Tiles tag in IE6
substitute for DynaActionForm in struts2
Iterating a Array in Struts2
Convert Html fields to Struts2 tags
More...