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

Reply via email to