开发者

How to make PrimeFace's Editor Right To Left

Is it possible to make the PrimeFaces's Editor component, right to left? It seems not to 开发者_C百科support dir and style attributes... :(


in my experience controls in jsf framework like prime/open/etc.. don't support RTL using html @dir, usually the interfaces of these controls are built using Javascript, so probably you should work at that level. Can I suggest you to consider two other alternatives to jsf controls in this case?:

  1. Using a javascript html editor (like elrte, maybe is easier to customize and it has also Arabic translation). http://elrte.org/
  2. Using the Flex html editor (is Flash, if you can, and Flex support RTL for all controls)

F.


Just bumped into this thread by accident,

anyway I remember that i did the RTL with jquery like this:

<script type="text/javascript">
jQuery(document).ready(function($) {
    $("j_idt33:inputtextlist").contents().find('html').attr('dir', 'rtl');                          
}); 

had to find the id with firebug , inputtextlist was the id i gave to the editor , and ypu can always use a smarter jquery selector (with suffix match)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜