Re: using hyperlink to process commands?

2010-11-27 Thread Magnus
Hi,

thank you! In the meantime, I have got it working with Anchor and
ClickListener.

Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using hyperlink to process commands?

2010-11-27 Thread Jeff Schwartz
You can use history tokens in response to the anchor click events which will
fire off an event which you can catch in your history event processing code.

On Sat, Nov 27, 2010 at 7:52 PM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 thank you! In the meantime, I have got it working with Anchor and
 ClickListener.

 Magnus

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using hyperlink to process commands?

2010-11-26 Thread Magnus
The commands should open some panels, so they are on the client.

I want to present a list of items, and one click on one item should
open the details.

Can you please describe your method with the History tokens?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using hyperlink to process commands?

2010-11-26 Thread Jeff Schwartz
History, History tokens, links and ValueChangeHandler work hand in hand to
provide psuedo navigation within the client code. The Google GWT docs cover
all these in detail and offer numerous code samples too.

In short, add a history token can procedurally be added to History causing
the url in the browser to change to reflect the token in the form of
#valueoftoken. In conjunction with this, your value change handler is
notified of the history changed state passing the token in a
ValueChangeEvent object. Your code can then process the event notifications
and act accordingly. Links are a declarative way of changing the history
state and also cause value change events to be fired so you can use either
of these patterns in your application.

Jeff

On Fri, Nov 26, 2010 at 9:00 AM, Magnus alpineblas...@googlemail.comwrote:

 The commands should open some panels, so they are on the client.

 I want to present a list of items, and one click on one item should
 open the details.

 Can you please describe your method with the History tokens?

 Thanks
 Magnus

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using hyperlink to process commands?

2010-11-25 Thread Jeff Schwartz
Are the commands to be run on the client or on the server? Remember, this
GWT - so if you want to simulate a url you can use History tokens and
process accordingly.

Jeff

On Thu, Nov 25, 2010 at 2:49 PM, Magnus alpineblas...@googlemail.comwrote:

 Hi,

 I would like to use hyperlinks to activate commands in my application.

 For example, to open a document with index 4711 I would use a
 hyperlink like this:

 http://mydomain:/myApp.html?open=4711

 Unfortunately, the whole application is reloaded in this case.

 Can I do this with another method?

 My goal is to do such actions by clicking on hyperlinks...

 Thanks
 Magnus

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.