Sowdri,
thanks for info. Below is the way i have tried but nothing help to solve
this issue. Anything else i need to change i tired different ways.
ChemicalPlace extends Abstract Place and also the required parsing of URL
present in AbstractPlace.
Now the problem when i clik on the link it does navigate but the parameters
are not visisble..... Can we create this hyperlink from PHP based appln and
point to this place, how to achieve it
LayoutContainer c = new LayoutContainer();
Hyperlink hyper = new Hyperlink();
String token = "&id=2105&tabName=Chemical&Page=1";
hyper.setHTML("Navigate to Chemical", token);
PlaceController control = new
PlaceController(eventBus);
ChemicalPlace dh = new ChemicalPlace(token);
control.goTo(dh);
}
});
c.add(new Text("Mechnical"));
c.add(hyper);
panel.setWidget(c);
On Tue, Oct 18, 2011 at 10:39 AM, -sowdri- <[email protected]> wrote:
> Activities and Places are in first place to make navigation simple. I'll
> present 2 simple use cases:
>
> *1. Navigate to other url on clicking a hyperlink. *
>
> >> Hyperlink link = new Hyperlink("Navigate to Chemical", thePlaceToken);
>
> Instead,
>
> Create a gwtanchor, and in the click handler, call
>
> placeController.goTo(new ChemicalPlace(2105, "Chemical", 1 )); // this must
> change the url, stop the current activity, and start new activity(s)
> corresponding to ChemicalPlace.
>
> #
> How you construct the ChemicalPlace depends upon your design.
>
> If you refer to the post mentioned by Andrea, a AbstractBasePlace class is
> provided, assuming your ChemicalPlace extends AbstractBasePlace, you can
> construct your place using:
>
> placeController.goTo(new ChemicalPlace("id",2105,"tabName", "Chemical",
> "page","1" ));
>
> 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/-/Zlc80Fxnrd0J.
>
> 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.