sending data from client to server

75 views
Skip to first unread message

Ashu

unread,
May 2, 2012, 6:57:29 AM5/2/12
to google-we...@googlegroups.com
Hi Everyone,
 
I have a requirement that, I have to search something from the db and get back some results(Like a search button functionality).For this I am giving some inputs.
I have to send these inputs(like Beans) to server side.
I am using GWT2.4 request factory.
How can i do this?
do i need to use value proxies here?

Jens

unread,
May 2, 2012, 9:25:07 AM5/2/12
to google-we...@googlegroups.com
do i need to use value proxies here?

Yes, with ValueProxys you can send data/bean like objects between client/server that do not have a database identity. 

swathi

unread,
May 2, 2012, 10:28:08 AM5/2/12
to google-we...@googlegroups.com
Thanks for the reply.
I have one more small doubt.
Shall i use the same proxy for the return result.

could you please provide me the sample for this criteria.
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/XiLVXD7zDOwJ.
>
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

Jens

unread,
May 2, 2012, 1:52:02 PM5/2/12
to google-we...@googlegroups.com
Shall i use the same proxy for the return result. 

Sounds like it doesn't make sense but I don't know your app nor what you want to search. 

If you search for some data in your database then you probably want to return a list of EntityProxy-s as a search result (if you want to display the search result). If your search is more like a server side calculation, e.g. "How many matches do I have for that search query?", then you would return an Integer for example (or a ValueProxy / List of ValueProxy if the result is more complex and does not represent a database entity).

-- J.

swathi

unread,
May 3, 2012, 3:21:23 AM5/3/12
to google-we...@googlegroups.com
it returns the listof value proxy.

i have one more query that how can i set data from client side to value proxy.
if possible could you please provide me the sample example to meet my criteria.
Thanks
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/5GGMPH5J7jEJ.
Reply all
Reply to author
Forward
0 new messages