Results 1 to 6 of 6
Thread: jsf center tag needed
- 10-17-2008, 08:42 AM #1
Member
- Join Date
- Aug 2008
- Posts
- 10
- Rep Power
- 0
- 06-25-2009, 09:28 AM #2
Member
- Join Date
- Jun 2009
- Posts
- 8
- Rep Power
- 0
Many jsf components have style or styleClass attribute where you can specify align:center.
- 07-03-2009, 06:06 PM #3
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
I have that problem too.I do someting like this :
where alignleft,alignright:<h: panelGrid columns="2" >
<h: outputText value="aa" styleClass="alignleft" />
<h: outputText value="bb" styleClass="alignright"/>
</h: pabelGrid>
Also i do ' style="align : left" ', but effect 0, they still standing in their places.alignleft {
align:left
}
.alignright {
align:right
}
- 07-03-2009, 06:56 PM #4
Member
- Join Date
- Jun 2009
- Posts
- 8
- Rep Power
- 0
Rather than putting align:center at h:outputText tag level, try putting it at panelGrid level.
PanelGrid has an attribute called columnClasses, where you can specify something like below:
<h: panelGrid columns="2" columnClasses='"alignleft,alignright">
.... ...
</h: pabelGrid>
It should work.
- 07-21-2009, 08:32 AM #5
Hi smithahrao,
I have the same problem as Chrisx, but your solution didnt work for me. Any guess?
- 07-27-2009, 11:49 AM #6
Member
- Join Date
- Jun 2009
- Posts
- 8
- Rep Power
- 0
Hi,
along with align:left , try putting text-align:left in your css class.
If that didn't work out yu can also try like this:
<h:panelGrid columns="2" >
<h:column style="align:left">
<h: outputText value="aa" styleClass="alignleft" />
</h:column>
<h:column style="align:right">
<h: outputText value="bb" styleClass="alignright"/>
</h:column>
</h:panelGrid>
I think this should work.
Thanks
Smitha
Similar Threads
-
JFrame at Center Screen
By hiranya in forum AWT / SwingReplies: 8Last Post: 02-11-2010, 04:29 PM -
Center background image
By Floetic in forum AWT / SwingReplies: 1Last Post: 04-24-2008, 05:50 PM -
center a form
By tommy in forum New To JavaReplies: 2Last Post: 08-06-2007, 08:47 PM -
Help Center Live 2.1.3
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-06-2007, 03:43 PM -
Applet, To center text and To open I engage in a dialog in an Applet
By Marcus in forum Java AppletsReplies: 4Last Post: 06-08-2007, 06:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks