> -----Original Message-----
> From: PILGRIM, Peter, FM 
> 
> Has somebody changed the design of the <html:text> tags
> in the couple of months or so?
> 
> I know you can do the body content as a value in the
> <html:submit> tags/
> 
> <html:submit property="submit" >
>   Press Button
> </html:submit>
> 
> But I thought you could do the same for the <html:text>
> and as well.
> 
> <html:text property="employee.dateOfBirthText" >
>    <fmt:formatDate value="${employeeForm.dateOfBrith}" 
> pattern="dd/MMM/yyyy"
> />
> </html:text>
> 
> I am trying avoid nesting custom tags otherwise I have to go
> back to old way of <bean:define> etc and then a scripting varibale.
 
--////--

I found the problem. `org.apache.struts.taglib.html.TextTag' 
basic defers to the base class `BaseFieldTag.java' which
render the input field in `doStart'.

It is easy to subclass the tag and make the render the
input field in the `doEnd'

In fact this is such a trival enhancement I would like to put it in
1.1 final release. Any objections?

I will post an enhancement later tonight.
--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923


***********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB 
Regulated by the Financial Services Authority
***********************************************************************

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to