Just as an aside, I have a set of patches to implement all the missing
native methods from JsArray (splice, etc).  I'll be opening a defect soon.

On Sun, Apr 26, 2009 at 2:33 AM, Adam T <[email protected]> wrote:

>
> Best thing to do is either:
>
> a) raise a defect and then this gets tracked, and if indeed the world
> is suffering due to this, then they can star it to get higher
> visibility.
> b) submit a patch through the contributor list (afterall, GWT is open
> source) - are you 100% sure this is cross-browser compatible?
> http://groups.google.se/group/Google-Web-Toolkit-Contributors?hl=sv
>
> You should check that there's no other similar defect first (e.g.
> perhaps
> http://code.google.com/p/google-web-toolkit/issues/detail?id=2793&q=JsArray
> ).
>
> //Adam
>
>
> On 26 Apr, 04:53, Blessed Geek <[email protected]> wrote:
> > I am wondering why GWT team has overlooked the need for
> > - get (String key) method
> > - toArray() method
> >
> > Therefore, I had to extend JsArray
> >
> > public class JsObjectArray
> >     extends JsArray<JavaScriptObject>
> > {
> >   protected JsObjectArray(){}
> >
> >   final public native String get(String key)
> >   /*-{return this[key];
> >     }-*/;
> >
> >   final public String[] toStringArray()
> >   {
> >     String[] values = new String[this.length()];
> >     for (int i=0; i<this.length(); i++)
> >     {
> >         values[i] = this.get(i).toString();
> >     }
> >
> >     return values;
> >   }
> >
> > }
> >
> > I strongly believe (to the utmost nth order) that GWT should provide
> > these methods within JsArray rather my (and the rest of the world)
> > having to maintain our own individual class extension to get these
> > functionality.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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