File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
How to add style to h:panelGrid
chen young
Ranch Hand
Joined: Sep 09, 2005
Posts: 177
posted
Jul 25, 2012 20:48:21
0
Hi,
I have a panel grid with two columns and I want to align the right column text in the center and the left column text to the left.
I try to play with it over and over but still it’s not working
<pe:layoutPane position="south" resizable="false" closable="false" statusbar="true" spacing="0"> <h:panelGrid columns="2" styleClass="left,centered"> <h:outputText value="DEV"/> <h:panelGroup> <h:outputText value="Developed by "/> <h:outputLink id="link1" value="mailto:to@mm.com" > <h:outputText value="text" style="text-decoration:underline"/> </h:outputLink> </h:panelGroup> </p:panelGrid> </pe:layoutPane>
Here is the css:
.centered { margin: 0px auto; text-align: center; } .left { float: left; }
Any idea how could I archive this layout ??
Thanks
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14468
7
I like...
posted
Jul 26, 2012 05:11:53
0
Not "styleClass". Use "columnClasses" on the panelGrid element.
Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
jrebel
subject: How to add style to h:panelGrid
Similar Threads
problem in using richfaces
JSF h:outputText style attribute
Safari - TypeError on first submit
Trying to refresh a dataTable on a JSP after data is updated but so far no luck
RichFaces SuggestionBox Not Displaying Values
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter