Arranging components automatically

Hello

I have a JSF page which includes a Group Panel and four HyperLinks in it. When one of the links' rendered property is set to false, the others doesn't arrange automatically.

The unrendered link's place seems empty. I want the other links to locate themselves up.

Here's my code:

<webuijsf:panelGroup binding="#{menu.groupPanel1}" id="groupPanel1"

separator="<br/>" style="height: 153px; left: 5px; top: 20px; position: absolute; width: 83px">

<webuijsf:hyperlink binding="#{menu.hyperlink1}" id="hyperlink1" text="Hyperlink1"/>

<webuijsf:hyperlink binding="#{menu.hyperlink2}" id="hyperlink2" text="Hyperlink2"/>

<webuijsf:hyperlink binding="#{menu.hyperlink3}" id="hyperlink3" text="Hyperlink3"/>

<webuijsf:hyperlink binding="#{menu.hyperlink4}" id="hyperlink4" text="Hyperlink4"/>

</webuijsf:panelGroup>

For example, when the hyperlink2 's rendered property is set to false, hyperlink3 and hyperlink4 doesn't move and fill its place.

How can I do that?

Thanks.

[1481 byte] By [xyzta] at [2007-11-27 10:37:27]
# 1

Hi i faced a similar problem. The only way i overcame it was by replacing h:panelGrid with good old <tr> and <td>.

let me know if you find any other solution.

rgds,

Dilip

dilip_jsfa at 2007-7-28 18:48:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I want the components to behave as their HTML counterparts but in Visual Web Application model, they are positioned absolutely. They look like they are hanged on the page... How can I change that ?

xyzta at 2007-7-28 18:48:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Oh, you want the links to re-arrange themselves? If thats the case then you can go in for a h:panelGrid and a h:panelGroup for grouping the hyperlinks.

hope i have clarified your doubt.

dilip_jsfa at 2007-7-28 18:48:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

NO, my problem is not that.

Lets think, what will happen if Hyperlink2 is not rendered? I want Hyperlink3 to fill the gap but it doesn't.... Have you understand my question?

xyzta at 2007-7-28 18:48:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...