I'm pretty sure by default you can't. If you feel the urge to fiddle you 
could do something in ServiceLayerDecorator.getProperty that picks up on 
some extra state with the request.

I know the requirement you mean though. Some extra layer of fetch profile. 
Not sure it would be worth the extra complexity though.

We do something similar though for security. We have @PreAuthorize on 
getters and setters and our ServiceLayerDecorator returns nulls when the 
user is not allowed to read that property and ignore any requests to write 
to those properties.

On Wednesday, July 24, 2013 12:20:35 AM UTC+1, GWTter wrote:
>
> Hi all,
>
> I have a String username field on a user entity which I'd rather not 
> populate whenever I request it which is why I have not defined the getter 
> in the EntityProxy. This works fine, however there are some instances where 
> I would like to have RequestFactory populate that string field when I 
> retrieve the object. 
> I know the documentation says that .with() is to be used to retrieve 
> relations and in my tests I found that .with("username") does not pull it 
> down either. Now I don't think it is possible but I wanted to make sure 
> before implementing it another way that it  is indeed not possible. It 
> would be much cleaner to just be able to retrieve that property using 
> .with() and being able to use the same request. 
>
> Does anyone have an idea?
>
> Thanks in advance,
>
> -Seth
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to