I don't know how to do that since I haven't played with the History
support myself, but my understanding is that that's the whole purpose
of History support, so I'd expect there to be something in the
documentation about that. Have you had a look there?
> Also, the tomcat is hosted on port 9080, so my website url is
> http://ceuleers.eu:9080/wceuleers/Index.html and I have ceuleers.eu
> redirecting to it. Is it also possible to redirect ceuleers.eu/text to
> http://ceuleers.eu:9080/wceuleers/Index.html#text?
Yes, but to do so requires configuring your web server as opposed to
anything GWT-specific. There might be someone here to help you, but a
more targeted forum might be more useful to you.
> And is it possible to not show ...9080/index... in the url box, but
> something like http://www.ceuleers.eu/text?
I think so, but I'd bet it would break your application. If your
browser is viewing URL#fragmentA and you click a link that takes you
to URL#fragmentB, the browser shouldn't re-request or reload the
document because you've only changed the focus of the view pane from
fragmentA to fragmentB. (When I say focus I mean it in the
pre-computer sense of focus of attention--I don't mean anything to do
with focus rectangles or keyboard input targets.) On the other hand,
if you are at URL_A and you click on a link that takes you to URL_B,
the browser has no idea what's behind URL_B, so it has to send a
request to the server and render the result, which means re-loading
the page if URL_B happens to be the same object as URL_A. All this is
to say that if you rigged your app to change the URL
http://www.ceulers.eu/ to http://www.ceulers.eu/text when the user
clicks on a tab, the web browser would clear the pane, and re-execute
the bootstrap script to start the application stored at
http://www.ceulers.eu/text. If, instead, clicking on a tab at
http://www.ceulers.eu/ changed the URL to http://www.ceulers.eu/#text,
the browser would just update the URL bar and probably create a new
history record for the transition.
Ian
--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com
On Mon, Mar 17, 2008 at 2:31 PM, fragtallica <theg...@gmail.com> wrote:
>
> I solved the redirect from Index.html#text to the correct tab. I
> forgot to check if there was already a parameter at the first load of
> the module, so I added something like this:
> String token = History.getToken();
> if (token.length() != 0) {
> onHistoryChanged(token);
> }
> and now it works fine.
>
> But I still did not found a work around for the long url.
This requires you to configure Tomcat to be run through your web
server (probably Apache or the like). The configuration for that is
not hard and is well documented elsewhere.
>
> Is there a way to send multiple parameters int the URI? A site like
> http://examples.roughian.com/#Tutorials~History_Support uses two
> parameters, but I did not found any info about that (yet).
I would imagine that you can tokenize the string on your separating
character (~ in the above example) and manipulate your UI
appropriately. That handling would probably be somewhere in
onHistoryChange() or somewhere appropriate like that.
--Greg
>
> Gersom
>
>
> >
>