Re: struts2 and tables

2010-01-27 Thread Brian Thompson
Something like this should do the trick: -Brian On Wed, Jan 27, 2010 at 8:13 AM, Saeed Iqbal wrote: > For header this is an interesting situation i have not come across > yet. I cannot say anything. > > On Wednesday, January 27, 2010, Arpan wrote: > > Hi Saeed, > > > > Replacing that with ch

Re: struts2 and tables

2010-01-27 Thread Saeed Iqbal
For header this is an interesting situation i have not come across yet. I cannot say anything. On Wednesday, January 27, 2010, Arpan wrote: > Hi Saeed, > > Replacing that with checkbox element will give me checkbox for every row for > that column. > But still my column header or title  will not h

Re: struts2 and tables

2010-01-27 Thread Arpan
Hi Saeed, Replacing that with checkbox element will give me checkbox for every row for that column. But still my column header or title will not have any checkbox. On Wed, Jan 27, 2010 at 5:58 PM, Saeed Iqbal wrote: > Replace the > > > paramProperty="id" headerClass="listHeader"> > >

Re: struts2 and tables

2010-01-27 Thread Saeed Iqbal
Replace the On Wed, Jan 27, 2010 at 5:23 PM, Arpan wrote: > Hi Saeed, > > Thanks for the reply. But how can you display your checkbox inside that > "column Title"? > > On Wed, Jan 27, 2010 at 4:45 PM, Saeed Iqbal wrote: > > > For display you can close your display tag open an

Re: struts2 and tables

2010-01-27 Thread Arpan
Hi Saeed, Thanks for the reply. But how can you display your checkbox inside that "column Title"? On Wed, Jan 27, 2010 at 4:45 PM, Saeed Iqbal wrote: > For display you can close your display tag open and end your tag > separately. > In between you can place your checkbox. > For example: > para

Re: struts2 and tables

2010-01-27 Thread Saeed Iqbal
For display you can close your display tag open and end your tag separately. In between you can place your checkbox. For example: For checking all (javascript) include an id with each checkbox and have onclick with the top one to be able to code in javascript to check all others. O

Re: struts2 and tables

2010-01-27 Thread Arpan
My scenario is that I need a column only for checkboxes. In the title there will be a checkbox and a link "Delete". How can I show these using display tag. When the user will select the top checkbox, all other checkboxes in that column should be selected or unselected accordingly. On Thu, Jan 7,

Re: struts2 and tables

2010-01-08 Thread Sergio
Hans Solo escribió: should work. 2010/1/8 Chris Pratt : I'm not positive but you might try: (*Chris*) On Thu, Jan 7, 2010 at 4:09 PM, Sergio wrote: Sergio escribió: Chris Pratt escribió: You can refer to the DisplayTag documentation about what collections they suppor

Re: struts2 and tables

2010-01-08 Thread Hans Solo
should work. 2010/1/8 Chris Pratt : > I'm not positive but you might try: > > > >  (*Chris*) > > On Thu, Jan 7, 2010 at 4:09 PM, Sergio > wrote: > >> Sergio escribió: >> >>  Chris Pratt escribió: >>> You can refer to the DisplayTag documentation about what collections they support, t

Re: struts2 and tables

2010-01-07 Thread Chris Pratt
I'm not positive but you might try: (*Chris*) On Thu, Jan 7, 2010 at 4:09 PM, Sergio wrote: > Sergio escribió: > > Chris Pratt escribió: >> >>> You can refer to the DisplayTag documentation about what collections they >>> support, there are quite a few. I usually use a java.util.List of >>

Re: struts2 and tables

2010-01-07 Thread Sergio
Sergio escribió: Chris Pratt escribió: You can refer to the DisplayTag documentation about what collections they support, there are quite a few. I usually use a java.util.List of JavaBean's And yes, you'll have to use JDBC, JPA, Ibatis, Hibernate... to get that data from the database into a

Re: struts2 and tables

2010-01-07 Thread Sergio
Chris Pratt escribió: You can refer to the DisplayTag documentation about what collections they support, there are quite a few. I usually use a java.util.List of JavaBean's And yes, you'll have to use JDBC, JPA, Ibatis, Hibernate... to get that data from the database into a structure that can be

Re: struts2 and tables

2010-01-07 Thread Chris Pratt
If all you want to do is display data in a simple HTML table, this is definitely the way to go. If you need pagination or columnar sorting support, I'd go with DisplayTag. (*Chris*) On Thu, Jan 7, 2010 at 1:39 AM, xerax nono wrote: > you can use iterator over a collection. > see in > > http:/

Re: struts2 and tables

2010-01-07 Thread Chris Pratt
You can refer to the DisplayTag documentation about what collections they support, there are quite a few. I usually use a java.util.List of JavaBean's And yes, you'll have to use JDBC, JPA, Ibatis, Hibernate... to get that data from the database into a structure that can be displayed. As for your

Re: struts2 and tables

2010-01-07 Thread Manimaran Ramaraj
>> >> >> >> - >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >>

Re: struts2 and tables

2010-01-07 Thread xerax nono
you can use iterator over a collection. see in http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html 44.odd < s:else>even"> 46. 47. 48. 49. 50. 51. 52.

Re: struts2 and tables

2010-01-07 Thread Sergio
Chris Pratt escribió: Maybe this will clear things up. This is a working example from our site: No Users Found Reset Password (*Chris*) On Wed, Jan 6, 2010 at 5:00 PM, Chris Pratt wrote: In your action, add a getList() method that retur

Re: struts2 and tables

2010-01-06 Thread Chris Pratt
Maybe this will clear things up. This is a working example from our site: No Users Found Reset Password (*Chris*) On Wed, Jan 6, 2010 at 5:00 PM, Chris Pratt wrote: > In your action, add a getList() method that returns the list generated by >

Re: struts2 and tables

2010-01-06 Thread Chris Pratt
In your action, add a getList() method that returns the list generated by the action, then just pass name="${list}" to the display:table tag. Or, you could create the list and put it in the request or session scope and it would work exactly the same. The trick with the interceptor is just to get

Re: struts2 and tables

2010-01-06 Thread Frans Thamura
wah can share how the interceptor work with display tag sorry if this is silly question, but honestly i still need the glue usually i create a private xxx List, and will be passed to the list how integrate the list $xxx with the display tag? thx On Thu, Jan 7, 2010 at 7:25 AM, Chris Pratt wr

Re: struts2 and tables

2010-01-06 Thread Chris Pratt
It's just a standard JSP Tag Library. Because Struts 2 has the Request Wrapper, you can use standard JSTL EL to get the list from your action and pass it to the DisplayTag Table, from then on it's just using the capabilities of DisplayTag to put the data where you want it. The one caveat is that

Re: struts2 and tables

2010-01-06 Thread Frans Thamura
can share how the struts2 work with display tag sorry never use this also, how the display tag work with List when we submit the grid F On Thu, Jan 7, 2010 at 7:00 AM, Chris Pratt wrote: > We use DisplayTag (http://www.displaytag.org), it works pretty well. >  (*Chris*) > > On Wed, Jan 6, 2

Re: struts2 and tables

2010-01-06 Thread Chris Pratt
We use DisplayTag (http://www.displaytag.org), it works pretty well. (*Chris*) On Wed, Jan 6, 2010 at 3:28 PM, Sergio wrote: > Hi, people, how can i show a table into a jsp from the struts action? Are > there a simple method for doing that? I've tried with java collections into > the action and

struts2 and tables

2010-01-06 Thread Sergio
Hi, people, how can i show a table into a jsp from the struts action? Are there a simple method for doing that? I've tried with java collections into the action and "property" tag into the jsp with no success. thanks in advance -- Sergio --

Struts2 and Tables

2008-06-12 Thread StrutsUser
this message in context: http://www.nabble.com/Struts2-and-Tables-tp17815885p17815885.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e