Page 1 of 1

Empty space of rendered=false commandButtons

Posted: 18 Jul 2023, 00:01
by terrex30
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.

Re: Empty space of rendered=false commandButtons

Posted: 26 Jul 2023, 14:35
by Melloware
Yep you need to just render a spacer there if the button is NOT rendered to keep the spacing.

Re: Empty space of rendered=false commandButtons

Posted: 26 Jul 2023, 16:35
by jepsar
Or wrap them...