7 Replies Latest reply on Dec 29, 2007 11:29 AM by Sergey Halipov

    rich:dragIndicator internationalization/utf-8 help needed

    Kurt Edegger Newbie


      I'm having a page with some drag and drop elements using rich-faces 3.1.1.
      To set the visual dragged component I'm defining a

       <f:facet name="single">
       {marker} {label}

      whereas the label is set as expected:

      <r:dndParam name="label" value="#{item.label}" />

      Everything works as expected and the drag and drop support works fine as long as #{item.label} contains only ascii characters.
      If there are international characters like ö,ä,ü,ß,.. in item.label not only the dragIndicator is not shown, but the whole drag and drop is not working anymore.

      I'm assuming that dragIndicator has no build in support for non ascii characters, so I wonder how to ensure that only these characters are passed to the indicator.
      Is this a known limitation of dragIndicator?

      I've tested a little and set the some values manually:

      <r:dndParam name="label" value="HelloWorld" />

      is rendered successfully

      <r:dndParam name="label" value="HellöWorld" />

      is not rendered at all

      And if the non ascii character is passed as escaped UTF-8 string then simply the string is repeated:
      <r:dndParam name="label" value="Hell\u00F6World" />

      renders as 'Hell\u00F6World'

      Is the UTF-8 issue fixed in richfaces 3.1.2?
      What would be the easiest way to get rid of the non-ascii chars in the passed string?

      Any help is greatly appreciated!

      Best regards, Kurt