Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » URL with token(How to create a URL with tokens in RAP)
URL with token [message #874047] Sat, 19 May 2012 20:56 Go to next message
Ulf Breidenbach is currently offline Ulf BreidenbachFriend
Messages: 1
Registered: May 2012
Junior Member
Hello,

is there any way in RAP to add tokens to the URl? I have seen this in the Demo App

rap.eclipsesource.com/rapdemo/examples#input


Thank in advance

Greetings

Ulf
Re: URL with token [message #874589 is a reply to message #874047] Mon, 21 May 2012 07:43 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1859
Registered: July 2009
Senior Member
Hi Ulf,
you have to use BrowserHistory (see RWT#getBrowserHistory) and implement
BrowserHistoryListener listener.
HTH,
Ivan

On 5/19/2012 11:56 PM, Ulf Breidenbach wrote:
> Hello,
>
> is there any way in RAP to add tokens to the URl? I have seen this in
> the Demo App
> rap.eclipsesource.com/rapdemo/examples#input
>
> Thank in advance
>
> Greetings
> Ulf

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: URL with token [message #903435 is a reply to message #874589] Thu, 23 August 2012 15:49 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 452
Registered: July 2009
Location: Germany ✈ Vancouver
Senior Member

Hi,

My BrowserHistoryListener is not called when the user manipulates the history token. Is there anything else I can do?

-Gunnar
Re: URL with token [message #903443 is a reply to message #903435] Thu, 23 August 2012 16:23 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 387
Registered: July 2009
Senior Member
Hi.

> My BrowserHistoryListener is not called when the user manipulates the
> history token. Is there anything else I can do?

Have you added entries to the history with createEntry? The Listener will
only be called for known entries.


Greetings,
Tim

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/

[Updated on: Fri, 24 August 2012 08:10]

Report message to a moderator

Re: URL with token [message #903577 is a reply to message #903443] Fri, 24 August 2012 11:56 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 452
Registered: July 2009
Location: Germany ✈ Vancouver
Senior Member

Am 23.08.2012 18:23, schrieb Tim Buschtöns:
> Have added entries to the history with createEntry? The Listener will
> only called for known entries.

That's what I figured. Is there any way to get notifications for history
changes done by users manipulating in the URL in a browser?

For example, GWT provides API to read the history token from the URL.
It's history listener is also triggered when I manipulate the history
token directly in the URL.

-Gunnar

--
Gunnar Wagenknecht
gunnar@xxxxxxxx
http://wagenknecht.org/
Re: URL with token [message #903683 is a reply to message #903577] Fri, 24 August 2012 21:11 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1295
Registered: July 2009
Senior Member

Hi Gunnar,

the history listener is called when you manipulate the URL *and* press
enter, but not on typing. You can check this in the online demo:

http://rap.eclipsesource.com/rapdemo/examples#input

Change it to ... #canvas and press enter.

Is this different in GWT?

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Could not evaluate javascript response
Next Topic:run error to org.eclipse.rap.nebula.widgets.grid.snippets
Goto Forum:
  


Current Time: Fri Nov 28 00:50:41 GMT 2014

Powered by FUDForum. Page generated in 0.07439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software