[SOLVED] How-to ? URL formatting with deeplink and parameters [message #1752048] |
Wed, 18 January 2017 04:59  |
Eclipse User |
|
|
|
Hello all,
I am in the process of publishing my website and I have been ask to add dynamic url formatting to be able to access a direct state of my website only using the url.
With Eclipse RAP tutorial I am able to change the url when opening a View. For example if I open the view with the Id: bacnet.TranscriptomicsView, the URL of the website will change from http://127.0.0.1:10080/Bacnet to http://127.0.0.1:10080/Bacnet#bacnet.TranscriptomicsView
Using :
BrowserNavigation service = RWT.getClient().getService(BrowserNavigation.class );
service.pushState(viewID,viewID);
My idea was then to use at the start of my application:
StringBuffer url = RWT.getRequest().getRequestURL();
But when providing this url : http://127.0.0.1:10080/Bacnet#bacnet.TranscriptomicsView
The output of RWT.getRequest().getRequestURL() is http://127.0.0.1:10080/Bacnet
Everything after the # is parsed.....
How to get the deep link after the # when starting a RAP app ?
Second: Then when I push some button in my view I want to be able to change the url to : http://127.0.0.1:10080/Bacnet#bacnet.TranscriptomicsView?param1=value1,param2=value2
And this I found nowhere how to do that with RAP ...
Even if there is a method to get the parameters has soon as they are setup:
Map<String, String[]> map = RWT.getRequest().getParameterMap();
I am using RAP E4 3.1
Someone?
Thanks!
[Updated on: Wed, 25 January 2017 10:17] by Moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08327 seconds