• 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
Hi,

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"/>
</f:facet>

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

...
</h:panelGrid>
 
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!