You REALLY need to read up on GWT RPC.
> requestFactory
> .employeeRequest()
> .findAllEmployees()
> .fire(new Receiver<List<EmployeeProxy>>() {
> @Override
> public void onSuccess(List<EmployeeProxy> response) {
>
> ##### A #### when to update the View ?
> panel.setWidget(view.asHasData().setRowData(0, response);
> }
> });
This creates an object, which is passed to the RPC handling code.
OnSuccess is called On Success, i.e. when the RPC call has
successfully finished and returned the data.
Greg
On Jan 17, 7:00 pm, zixzigma <[email protected]> wrote:
>
> public class EmployeeListActivity extends AbstractActivity {
>
> EmployeeListView view;
> List<EmployeeProxy> tempResultHolder = new ArrayList<EmployeeProxy>();
> .....
>
> public void start(AcceptsOneWidget panel, EventBus eventBus)
>
> requestFactory
> .employeeRequest()
> .findAllEmployees()
> .fire(new Receiver<List<EmployeeProxy>>() {
> @Override
> public void onSuccess(List<EmployeeProxy>
> response) {
>
> ##### A #### when to update the View ?
> panel.setWidget(view.asHasData().setRowData(0,
> response);
> or
>
> ##B1 tempResultHolder.addAll(response);
>
> }
> });
>
> --------> does it block here ? --- do we get past this line only after
> RF returns ?
> when do we get here ?
> ##### B2 ####
> panelSetWidget(view.asHasData().setRowData(0,
> tempResultHolder);
>
> }//Activity start method end
--
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.