RTL in p:dataTable

UI Components for JSF
Post Reply
anil
Posts: 38
Joined: 10 Jan 2010, 06:08

20 Jul 2011, 06:23

I am trying to display Arabic characters in right-to-left direction in a p:dataTable using h:outputText, but unsuccessful. Anyone have bidirectional text working successfully in a datatable?

Primefaces - 3.0-M2
JSF: RI-2.1.1-b04

Code: Select all

<p:dataTable value="#{bean.list}" var="item" binding="#{bean.table}">
	<p:column>
		<f:facet name="header">
			<h:outputText value="Header"></h:outputText>
		</f:facet>
		<h:outputText value="#{item.text}"  dir="rtl" />
	</p:column>
:
:
:
</p:dataTable>
Edited to show dir="rtl" which doesn't work either.
Last edited by anil on 20 Jul 2011, 21:05, edited 1 time in total.

smallya
Posts: 264
Joined: 19 Mar 2010, 19:22
Contact:

20 Jul 2011, 20:22

try the "dir" attribute and not style.

<h:outputText value="#{item.text}" dir="rtl" />
Netbeans 7.2| GlassFish 3.2 | PostgreSQL 9.1| MongoDB | Primefaces 3.4.2
_______________________________________________________________
Subraya Mallya
http://tinyhabit.com |http://twitter.com/tinyhabit

anil
Posts: 38
Joined: 10 Jan 2010, 06:08

20 Jul 2011, 21:04

Yes, that was the first thing I tried.

The style was just one of my various trials.

smallya
Posts: 264
Joined: 19 Mar 2010, 19:22
Contact:

21 Jul 2011, 03:16

Using dir attribute works just fine for me. I did do some testing for certain areas of my application to test for bi-di
Netbeans 7.2| GlassFish 3.2 | PostgreSQL 9.1| MongoDB | Primefaces 3.4.2
_______________________________________________________________
Subraya Mallya
http://tinyhabit.com |http://twitter.com/tinyhabit

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests