thanks for the reply.....
I have used <div> tag with some fixed width and height, and display tag
table under it....its looking ok, but the problem is, when the hieght
exceeds i cannot see the table header..
Is there any way, i can set the table header fixed and scroll bar appearing
on the rest of the table body...
thanks in advance
On Wed, Apr 29, 2009 at 10:23 PM, Francisco Portillo <
francisco.porti...@gmail.com> wrote:
> Hi
>
> I'm not a very experienced displaytag user, but I would try this:
>
> 1- Use a decorator (a wrapper Class):
>
> <display:table decorator="CustomDecoratorClass" ... (among other
> parameters)>
> <display:column property="customColumn"></display:column>
> </display:table>
>
> And inside the decorator:
>
> //includes
> class CustomDecoratorClass extends org.displaytag.decorator.TableDecorator{
>
> //method to custom-build your column
> public String getCustomColumn(){
>
> //current object
> Object obj = this.getCurrentRowObject();
>
> String s = //wrap column content with HTML code here, for
> example one <div> with overflow:auto or overflow:scroll
>
> return s;
>
> }
>
> }
>
> The only problem here is that displaytag would render one 'scroll' for
> each cell of the column...you would have to figure out a way to wrap
> just the column with the scrollbar not every cell... I would also try
> to wrap all the <display:table/> tag with a <div
> style="overflow:auto"/> for example, but this would result in a
> scrollbar for the entire table...
>
> I hope these suggestions help a little!
>
> Regards,
>
> Ticones
>
>
> 2009/4/29 abhishek reddy <abhishek.c1...@gmail.com>:
> > thanks for the quick reply....
> >
> > what i mean is, iam having a column which holds data around some 100 to
> 200
> > characters...
> > by default i want to display some 50 characters and rest of the
> characters
> > can be viewed by moving the column...
> >
> > if this is possible let me know how to do it with some sample code......i
> > dont know much about CSS
> >
> > 2. One more problem iam facing is with the number of columns displayed in
> > the table.
> >
> > I have to display around 15 to 20 columns in a table...
> > with this 15 to 20 columns in a table, i can see scrollbar to the page
> > ....but i dont want scrollbar to the page, instead i want want scroll bar
> to
> > the table (so that it doesnot effect the design of the page)
> >
> > I need a fixed table width and height and also fixed column width and
> > height.....
> > Note: I dont mind if columns are not visible (thru scrool bar i should
> see
> > the hide columns)
> >
> > 2009/4/29 Gerald Fongyen <e...@yahoo.com>
> >>
> >> Not sure what you are trying to do here, but by "moving the column", do
> >> you mean increasing the width of the column's display? If the answer is
> yes
> >> - then you can accomplish this by using the css style attribute.
> >>
> >> Hope this helps!
> >>
> >> Thx - G
> >>
> >> ________________________________
> >> From: abhishek reddy <abhishek.c1...@gmail.com>
> >> To: displaytag-user@lists.sourceforge.net
> >> Sent: Wednesday, April 29, 2009 9:08:44 AM
> >> Subject: [displaytag-user] Regarding Display tag
> >>
> >> hi every one,
> >>
> >> Iam new to the display, i want to use the display tag in my project
> >>
> >> I have to display the data in a table, is there any option for moving
> the
> >> column ...inorder to view the entire data in a column
> >>
> >> --
> >> Abhishek
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Register Now & Save for Velocity, the Web Performance & Operations
> >> Conference from O'Reilly Media. Velocity features a full day of
> >> expert-led, hands-on workshops and two days of sessions from industry
> >> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> >> _______________________________________________
> >> displaytag-user mailing list
> >> displaytag-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >>
> >
> >
> >
> > --
> > Abhishek
> >
> >
> ------------------------------------------------------------------------------
> > Register Now & Save for Velocity, the Web Performance & Operations
> > Conference from O'Reilly Media. Velocity features a full day of
> > expert-led, hands-on workshops and two days of sessions from industry
> > leaders in dedicated Performance & Operations tracks. Use code vel09scf
> > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> > _______________________________________________
> > displaytag-user mailing list
> > displaytag-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
> >
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
--
Abhishek
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user