Thanks for spotting that Patrick.  I'll get the code updated.

On Wed, Sep 15, 2010 at 5:54 PM, Patrick Julien <pjul...@gmail.com> wrote:

> using this as tmp work around for now:
>
> package com...workarounds;
>
> import com.google.gwt.app.place.PropertyColumn;
> import com.google.gwt.requestfactory.client.impl.ProxyImpl;
> import com.google.gwt.requestfactory.shared.EntityProxy;
> import com.google.gwt.text.shared.Renderer;
>
> public final class WorkAroundPropertyColumn<R extends EntityProxy, T>
> extends PropertyColumn<R, T> {
>         private final Renderer<T> renderer;
>         private final String property;
>        private final Class<T> clazz;
>
>        public WorkAroundPropertyColumn(final String property, final String
> displayName, final Renderer<T> renderer, final Class<T> clazz) {
>                super(property, displayName, renderer);
>                 this.property = property;
>                this.renderer = renderer;
>                 this.clazz = clazz;
>        }
>
>        @Override
>        public String getValue(final R object) {
>                final ProxyImpl proxyImpl = (ProxyImpl) object;
>                return renderer.render(proxyImpl.<T> get(property, clazz));
>         }
> }
>
>
> On Wed, Sep 15, 2010 at 5:10 PM, Pascal Patry <i...@invalidip.com> wrote:
> > On Wednesday, September 15, 2010 16:16:06 Patrick Julien wrote:
> >>   public String getValue(R object) {
> >> -    return renderer.render(object.get(property));
> >> +    ProxyImpl proxyImpl = (ProxyImpl) object;
> >> +    return renderer.render(proxyImpl.<T>get(property, String.class));
> >>   }
> >>
> >> This blows up on anything that isn't a String.  At least on
> >> Windows/Chrome it does in dev mode.  In Linux seems to work fine.
> >> [...]
> >
> > Yeah, I'm also getting this issue on FF on linux when debugging a gwt
> > app.
> >
> > --
> > http://groups.google.com/group/Google-Web-Toolkit-Contributors
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>



-- 
Miguel

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to