• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Column class in prime faces

 
Janardhan Chowdary
Greenhorn
Posts: 15
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

There is a class named with 'Column' in prime faces api.

Have any body used any methods like 'getWidth()', 'setWidth()' to customize the columns ?

Please let me know if you have any examples for the same.

Thanks,
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18281
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually a "getWidth/setWidth" on a JSF component won't work, because attributes such as "width" are set via EL expressions and therefore you have to setup a rather nasty - and mutable - EL processing environment to get the right data in. Just passing a simple number width value isn't enough.

So instead, you would usually be better off setting the width to a backing bean property like so:


Then instead of pushing the width into the component, the component will pull the width from the backing bean.
 
Janardhan Chowdary
Greenhorn
Posts: 15
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks dude!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic