This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts2 TextField
Abiodun Adisa
Ranch Hand
Joined: Jan 17, 2002
Posts: 495
posted
Oct 28, 2009 14:53:01
0
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
Joined: Oct 27, 2009
Posts: 336
posted
Oct 29, 2009 00:56:27
0
give name and label as...
<s:textfield name="abc" label="xyz >
remove required field...
i think it shd work
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Oct 29, 2009 06:53:27
0
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
I agree. Here's the link:
http://aspose.com/file-tools
subject: Struts2 TextField
Similar Threads
STRUTS2 Tabbed interface problem with Tiles tag in IE6
unable to do validation for select in struts2
substitute for DynaActionForm in struts2
Convert Html fields to Struts2 tags
Iterating a Array in Struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter