Empty space of rendered=false commandButtons

UI Components for JSF
Post Reply
terrex30
Posts: 1
Joined: 17 Jul 2023, 20:19

18 Jul 2023, 00:01

I have eight commandButtons and under some conditions, some of them are showing (by rendered) but I have a panelGrid so I don't know if there is some attribute to re-oriented the buttons that are showing like in order.
The view is something like this
| x x - x |
| x - x x |

And I would like to be

| x x x x |
| x x - - |

(x's are buttons and minus are empty spaces).
I hope someone can help me.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

26 Jul 2023, 14:35

Yep you need to just render a spacer there if the button is NOT rendered to keep the spacing.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

26 Jul 2023, 16:35

Or wrap them...
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 74 guests