That is also all I need and it works well. Thank you very much !

On 22 juin, 14:37, "nicolas.deloof" <[email protected]> wrote:
> For information I made some test on using the javascript
> String.localeCompare() method to handle this.
> My need is that as a French guy I need "état" to be sorted before
> "civil". java.text.Collator is needed to do this in Java but I don't
> need all this class features.
> I've used this :
>
> public class Collator {
>
>     public static final Collator getInstance()  {
>         return instance;
>     }
>
>     private static final Collator instance = new Collator();
>
>     public native int compare( String source, String target ); /*-{
>            return source.localeCompare( target );
>        }-*/
>
> }
>
> This works on IE (I don't need multi-browser support for my current
> app), but this method also exists on Firefox > 2 and Webkit AFAIK. Not
> sure it behaves the same way on other browsers.
>
> Hope this helps
>
> On 22 juin, 12:30, "nicolas.deloof" <[email protected]> wrote:
>
> > I've searched an Apache compatible implementation to add such support
> > in gwtx, but didn't find one. Apache Harmony is delegating to icu4j
> > that requires many more classes to be ported.
>
> > On 8 juin, 16:59, Akiim <[email protected]> wrote:
>
> > > I hope anyone will find a solution !
> > > Collator equivalent in GWT is missing !
>
> > > Thanks,
> > > Cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to