Re: How to bind textarea?
Kannan Jayaprakasam <[email protected]> Tue, 14 Sep 2010 23:23:22 -0700
| Newsgroups | gmane.comp.java.springframework.user |
|---|---|
| Message-ID | <[email protected]> |
That worked! Thanks. -----Original Message----- From: Lachezar Dobrev [mailto:[email protected]] Sent: Wednesday, September 15, 2010 4:41 AM To: List for Spring users Subject: Re: [Springframework-user] How to bind textarea? You have not set the mandatory tag attribute 'name' for the text area. Add name="${status.expression}" to the tag. You can also use ${status.value} instead of ${emailTemplateDesign.bodyText}. That way you will get the user entered value in case of validation errors. Attribute ID is something different, and insufficient. 2010/9/14 Kannan Jayaprakasam <[email protected]>: > FYI this is how I tried but null gets submitted to the controller. > > <spring:bind path="emailTemplateDesign.bodyText"> > > <textarea id="bodyText" > styleClass="text" style="font-size:10pt;width: 390px;height:275px;" > ONCHANGE="setCursorPos()" ONCLICK="setCursorPos()"><c:out > value="${emailTemplateDesign.bodyText}"/></textarea> > > </spring:bind> > > > > It is surprising I don't find a single help about this on the internet. > > ________________________________ > > From: Kannan Jayaprakasam [mailto:[email protected]] > Sent: Tuesday, September 14, 2010 8:22 PM > To: List for Spring users > Subject: [Springframework-user] How to bind textarea? > Importance: High > > > > While submitting a form the text in the textarea doesn't get submitted as it > is not the "value" of the textarea. So how to accomplish it? > > > > Thanks > > Kannan > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Springframework-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/springframework-user > > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Springframework-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/springframework-user ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev