• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help aligning things in a panelGrid

Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a panelgrid, like below with two table cells per row. What I want is for the cell on the left to have an "align=right" attribute and the cell on the right to have an "align=left" attribute. I want this behavior for all rows in my table. How do I achieve this with JSF? - Dave

<h:panelGrid id="featureDataPanel" columns="2">
<f:facet name="header">
<hutputText value="Feature Data"/>

<hutputLabel for="FName1">
<hutputText id="FName1Label" value="FNAME:"/>
<h:inputText size="20" maxlength="20" id="FDName" value="#{FeatureData.fdFName}"></h:inputText>

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!