Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Synchronizing" widths of 2 PanelGrids

Mike Barton
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


<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>

Thank You
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic