Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JSF <h:inputText lang = "fa">

  Asked By: Trupti    Date: Jun 28    Category: Java    Views: 1230
  

I'm working on a web-based project with JDeveloper and JSF+Toplink.
I defined some input Texts with jsf tag library <h:inputText>.
This tag has a lang attribute as well as other HTML inputTexts and i set it to "fa"
in order to change language when this field is selected.But it doesn't work at all.
Please help me on this problem,what should i do or if there is any special setting.

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Alexander Bouchard     Answered On: Jun 28

you could download the js file to convert to farsi at this url :
groups.yahoo.com/.../farsi_keywords.js

 
Answer #2    Answered By: Erika Evans     Answered On: Jun 28

Thank you so much for your answer,but I don't know how should I use from this js file.
Would you please explain me exactly what should I do?

 
Answer #3    Answered By: Jermaine Powell     Answered On: Jun 28

Don't mention it.
But about usage of JS file ,I explain it in JS file if you read it.

 
Answer #4    Answered By: Frank Butler     Answered On: Jun 28

You mistake about this attribute  (lang) in inputText component.
<f:loadBundle basename="resources.ApplicationMessages" var="bundle"/>
<h:inputText id="test-input" dir="#{bundle.dir}" required="false" />
you could use dir for right-to-left and left-to-right direction and for your language  you should use javascript or ajax to convert keyworks to farsi not lang tag  in component.

 
Didn't find what you were looking for? Find more on JSF <h:inputText lang = "fa"> Or get search suggestion and latest updates.




Tagged: