• Post Reply Bookmark Topic Watch Topic
  • New Topic

"Synchronizing" widths of 2 PanelGrids  RSS feed

 
Mike Barton
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to place 2 PanelGrids in one view but I want both of them have the same width. Any advice?
The code below doesn't work... The expression "#{currentSession.mainGrid.width}" returns nothing.

code:


<f:view>
<h: panelGrid binding="#{currentSession.mainGrid}" border="1" columns="2">
<f:facet name="header">
...

</h: panelGrid>
<h: panelGrid width="#{currentSession.mainGrid.width}" border="1" columns="1">
<h: outputText value="#{currentSession.mainGrid.width}"></h : outputText>
<h: outputText value="item2"></h: outputText>
</h: panelGrid>
</f:view>



Thank You
Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!