Hi Rohan,
I guess you are trying to user PlaceController in isolation.
PlaceController control = new PlaceController(eventBus);
This is not supposed to work. Have you referred the documentation on
Activities and Places? Have you run the sample application given in the
below link?
Ya i have ran the application see my problem when i click on the hyperlink
in one of the page i need to navigate to another page with those parameters
in URL , please guide me how to achieve this...
On Tue, Oct 18, 2011 at 1:05 PM, -sowdri- sow...@gmail.com wrote:
Hi Rohan,
I
Your MechanicalPlace should have a constructor like public Mechanical(Long
studentId, Long studentName) along with the corresponding getters. In your
PlaceTokenizer.getToken() for MechanicalPlace you build the string like
studentId=
+ place.getStudentId() + studentName= +
Thanks Jen and one more question. I have a hyperlink eg:
Now the problem is i am trying to navigate when a user click on Hyperlink
available in Mechnical (tab) to Chemical (tab)
Below is the snippet code, please let me know any issue with the code below
MechanicalActivity.java
public
See
https://groups.google.com/forum/?starthl=en#!starred/google-web-toolkit/PzlyZ3Gjazg
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
Andrew,
But this doesnt solve the problem, can anyone provide some insight into
this.
Rgds
Rohan.
On Mon, Oct 17, 2011 at 11:41 PM, Andrea Boscolo andrew...@gmail.comwrote:
See
https://groups.google.com/forum/?starthl=en#!starred/google-web-toolkit/PzlyZ3Gjazg
--
You received this
Your question is not exactly clear, but I'm pretty sure you shouldn't need
to add click handlers to a Hyperlink object, or create entries in the
History object yourself. Just construct it with the Token you want to go
to:
Hyperlink h = new Hyperlink(Navigate to Chemical, thePlaceToken);
And you
But when you click on the HyperLink it should fire 'ValueChangeEvent', if so
how do we navigate
And the basic parsing of token and findout the place based by token, since
entire parsing of the token will be done in Base Place class.
Please let me know with an example .
On Tue, Oct 18, 2011
The Hyperlink object does not fire ValueChangeEvents, the History object
does, but you probably don't need to listen for them, as your
PlaceHistoryHandler is already listening for them.
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/Hyperlink.html
Thanks Kelly that sounds good.
Thanks
Rohan
On Tue, Oct 18, 2011 at 9:42 AM, Aidan O'Kelly aida...@gmail.com wrote:
The Hyperlink object does not fire ValueChangeEvents, the History object
does, but you probably don't need to listen for them, as your
PlaceHistoryHandler is already listening
Activities and Places are in first place to make navigation simple.
*To 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
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
12 matches
Mail list logo