• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Column class in prime faces

 
Greenhorn
Posts: 15
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks dude!
reply
    Bookmark Topic Watch Topic
  • New Topic