Editing every row in DisplayTag

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Editing every row in DisplayTag

Divya.A
This post was updated on .
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..






Reply | Threaded
Open this post in threaded view
|

Re: Editing every row in DisplayTag

bhaskara navuluri
Hi Divya,

As you said u r using SpringMVC, the Command object wil be holding the commets that u add in the text box....

Isnt it not happening ?

On Thu, Sep 16, 2010 at 12:57 PM, Divya.A <[hidden email]> wrote:

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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Reply | Threaded
Open this post in threaded view
|

Re: Editing every row in DisplayTag

Pushpendra Singh-2
In reply to this post by Divya.A

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:[hidden email]]
Sent: Thursday, September 16, 2010 12:57 PM
To: [hidden email]
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

[hidden email]

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Reply | Threaded
Open this post in threaded view
|

Re: Editing every row in DisplayTag

naveen
In reply to this post by Divya.A
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 <[hidden email]>

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:[hidden email]]
Sent: Thursday, September 16, 2010 12:57 PM
To: [hidden email]
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

[hidden email]

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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Reply | Threaded
Open this post in threaded view
|

Re: Editing every row in DisplayTag

Karthik Ramamoorthy-3
In reply to this post by Divya.A
You can treat the text box as you handle a text box in a html table.. u can retrieve the values of text box as an array.. All the best

On Thu, Sep 16, 2010 at 12:57 PM, Divya.A <[hidden email]> wrote:

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user



--
Karthik.R B.Tech.,
Mob:9551087002

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user