Hi,

Thanks for your time!! The history mapper is right becouse it works. The
problem is when I call placeControler.goTo inner the start() method. I think
queue the event, but works as a LIFO with respect URL becouse for one side
show correct screen but not URL, show the first.

PlaceController pc= ...;

1) In some side in the code I call: pc.goTo(place1);
2) In the activity associate with place1:
    start(..){ pc.goTo(place2));

RESULT:

1) show in screen place2.
2) show the url correspond to place1.

Juan

2011/6/9 mram <[email protected]>

> Hola Juan Pablo,
>  Pienso que tu problema tiene que ver con el HistoryMapper.
> I think that you're problem could be in the HistoryMapper. Look up the
> configuration of the tokenizers if you're using the MVP directives for
> GWT.
> Hope this helps. Espero haber sido de ayuda.
> Saludos
>
> On 9 jun, 14:10, Juan Pablo Gardella <[email protected]>
> wrote:
> > Thanks Andy,
> >
> > If I put placeController.goTo(aPlace) in the start method works
> partially.
> > Show me the correct screen, but not the URL. It's strange what do.
> >
> > For example I put in URL:
> >
> > *http://host/myApp#view1Place*
> >
> > In view1Activity start() i invoque:
> >
> >    placeController.goTo(place2);
> >
> > Then in the browser show me the correct screen but in the URL put *
> http://host/myApp#view1Place**but *if I press backbutton show me the
> > correct URL *http://host/myApp#view1Place2.*
> > *
> > *
> > Is this an issue? I can make a sample to reproduce and open an issue with
> > this problem
> >
> > Thanks,
> > Juan
> >
> > 2011/6/9 A. Stevko <[email protected]>
> >
> > > I suggest you put the logic for parsing the place token within the
> > > Activity.start() and if it does not parse then use
> placeController.goTo() to
> > > load the NewRecordPlace. That way the association between activity and
> place
> > > is relatively constant and the validation of the token is determined by
> the
> > > layer that has the best access to the data model.
> >
> > > On Wed, Jun 8, 2011 at 9:22 PM, Juan Pablo Gardella <
> > > [email protected]> wrote:
> >
> > >> Hi folks,
> >
> > >> I have a problem with places. For example I have the URL  "
> > >>http://mysite/myapp#editrecordd:10"; and I want with this URLgo to
> place
> > >> EditRecordPlace (OK!), but if I have this URL  "
> > >>http://mysite/myapp#editrecordd:10asiuo"; (the id can't cast to a
> number)
> > >> I want to go to another place, for example newRecordPlace.
> >
> > >> I can do that in this manner:
> >
> > >> public Activity getActivity(Place place) {
> > >>                         ...
> > >>  if (place instanceof EditRecordPlace &&
> > >> ((EditRecordPlace )place).getId()==null){
> > >> return appPlaceFactory.getNewRecordPlace().getActivity();
> > >>  }
> > >> ...
> > >> }
> >
> > >> But the problem is that no refresh the URL, I want display in the URL
> *
> > >> newRecord* and start the activity. If I invoque the
> > >> placecontroller.goTo(appPlaceFactory.getNewRecordPlace()) don 't
> works.
> >
> > >> Regards,
> > >> Juan
> >
> > >> --
> > >> 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.
> >
> > > --
> > > -- A. Stevko
> > > ===========
> > > "If everything seems under control, you're just not going fast enough."
> M.
> > > Andretti
> >
> > >  --
> > > 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.
>
> --
> 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.
>
>

-- 
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.

Reply via email to