Note that there are some explanatory texts on larger screens.

plurals
  1. USRajat
    primarykey
    data
    text
    plurals
    1. COHi Christophe, I am initializing a view in the context file using <view> tag of parsley and with this id i inject the view object in a mediator class, i then add this view object to a custom component (similar to tagNavigator but its a custom component that we have to use in our company as it has the company logo etc). The problem is if i create the object of view and append to component it doesnot realise the injected values, if i inject the view i get an error as out of bound index exception.
      singulars
    2. COI am able to do this now, basically i have created a single command and inject the object of other commands in it.Each command makes a call to a specific remote service and i fetch the result in the main command and then use this result in the view.That way i am reusing the service level code.This is similar to a delegate pattern.Is this approach good.I am encapsulating services because the service call might change frequently as its done by a separate team, and i don't want to end up coupling all the wep pages with the code for making the call to services.
      singulars
    3. COSorry that i was not very clear.Thanks for the reply, my problem is not in calling the remote services.The problem is in accumulating the results and storing them in a model.What i am trying to do is make each service call in a separate command (action script class, similar to a delegate object), so that this call can be reused in multiple pages, i donot want to repeat the code for the calls in different pages. So basically makeRequest2(whenRequest2Finishes) will be in a command or class of its own and similarly others. The only thing is how do i populate the model if i do that.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload