Hi..
use a decorator class to draw text box in your display tag..
eg::decorator class
*
public* *class* YourDecorator *extends* TableDecorator{
*public* YourDecorator(){
*super*();
}
*public* String getLink1()
{
*return* "<input type='textbox' name='comments' value='Y' >";
}
}
and in display tag call this as below:
<display:table id="div1" class="displayTable" name=
"requestScope.SearchCaseHearingList"
pagesize="${resultsetSize}" cellpadding="${paddingValue}"
requestURI="courtsonline.htm" sort="list"
*decorator="YourFullPackage.YourDecorator
"*>
<display:column property="link1" title="Comments"/>
</display:table>
Thanks,
N.Naveen.
2010/9/16 Pushpendra Singh <pushpendra.si...@3i-infotech.com>
> Divya,
>
> Display tag doesn't provide any inbuilt facility to create text box and
> html forms.
>
> You need to do workaround to achieve the behaviour, you are expecting.
>
>
>
> For example…
>
> <form action=”someaction.do” method=”post” name=”something”>
>
> <display:table>
>
> <display:column property="test1" title="Status" />
>
> <display:column title="Comment">
>
> <input type”text” name=”${}” id=”${}”>
>
> </display:column>
>
>
>
>
>
> </display:table>
>
> <input type”subbmit” name=”save”>
>
>
>
> </form
>
>
>
> You can also extend the Display tag rendering classes to achive desired
> behavior.
>
>
>
> Thanks & Regards,
>
> Pushpendra
>
>
>
>
>
> -----Original Message-----
> From: Divya.A [mailto:divya.alagars...@kumaran.com]
> Sent: Thursday, September 16, 2010 12:57 PM
> To: displaytag-user@lists.sourceforge.net
> Subject: [displaytag-user] Editing every row in DisplayTag
>
>
>
>
>
> Hi,
>
>
>
> My scenario is this,
>
>
>
> * I am using Display Tag to show search results.
>
> * Each and every row will have an additional column named 'COMMENTS'.
>
> * There should be a text box in each row under COMMENTS column to enter
> some
>
> information regarding the particular row.
>
> * Once i add COMMENT to a row and save ,it should be updated in DB.
>
>
>
> I am using displaytag1.2,SpringMVC, Jsp, Jstl, Hinerante , Mysql & spring
>
> tags in jsp.
>
>
>
> Help me in doing this asap...
>
> If u have any sample code simillar to this , please upload it.
>
> Thanks in advance..
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -----
>
> Thanks in advance.
>
>
>
> Regards,
>
> Divya.
>
> --
>
> View this message in context:
> http://old.nabble.com/Editing-every-row-in-DisplayTag-tp29697674p29697674.html
>
> Sent from the DisplayTag - General mailing list archive at Nabble.com.
>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
> 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
>
> _______________________________________________
>
> displaytag-user mailing list
>
> displaytag-user@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
>
> ** 3i Infotech wins the "WorldBlu List of Most Democratic Workplaces 2010"
> Award
>
> *
>
> This e-mail message may contain confidential,proprietary or legally
> privileged information. It should not be used by anyone who is not the
> original intended recipient. If you have erroneously received this message,
> please delete it immediately and notify the sender. The recipient
> acknowledges that 3i Infotech or its subsidiaries and associated
> companies,(collectively "3i Infotech"), are unable to exercise control or
> ensure or guarantee the integrity of/over the contents of the information
> contained in e-mail transmissions and further acknowledges that any views
> expressed in this message are those of the individual sender and no binding
> nature of the message shall be implied or assumed unless the sender does so
> expressly with due authority of 3i Infotech. Before opening any attachments
> please check them for viruses and defects.
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-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
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user