How to resize components?

UI Components for JSF
Post Reply
Diego Morais
Posts: 3
Joined: 07 Jan 2011, 19:00

07 Jan 2011, 19:18

Hi!

I'm trying to resize buttons, tabViews etc.

Obviously, through the primefaces .css.

Any help is welcome,

Thanks.

dmantil
Posts: 93
Joined: 14 Jul 2010, 22:30

07 Jan 2011, 22:22

hi,
I don't get what you mean with resize...

if you mean at design time you can use style = "width: 200px; height: 400px;" in the component.

or, if you mean from the backbean
you can use style = "#{bean.componentstyle}" and build your own style sentence with the width and height you want at any moment !

or if you mean user can resize the components, watch this:
http://www.primefaces.org/showcase/ui/resizable.jsf

I hope this helps!

Diego Morais
Posts: 3
Joined: 07 Jan 2011, 19:00

07 Jan 2011, 22:56

Thanks!

Your backBean suggestion is exctaly what I need.

Sometimes a simple solution is the last that we try/remember!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests