[ 
https://issues.apache.org/jira/browse/WICKET-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845055#action_12845055
 ] 

Martin Grigorov commented on WICKET-2769:
-----------------------------------------

As far as I know Java Servlet API doesn't provide access to the fragment part 
of the request URI 
(http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html#getRef()).

You may need to implement AjaxBehavior that will read the location.hash and 
send it back to the server. 
This is how Vaadin seems to work:  
http://vaadin.com/book/-/page/advanced.urifu.html

The drawback is that the page will be loaded first and then part of it will be 
re-rendered (with the ajax response).

> Request + Ajax + Anchors
> ------------------------
>
>                 Key: WICKET-2769
>                 URL: https://issues.apache.org/jira/browse/WICKET-2769
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Pashkin A.
>
> Ajax requests can not be executed again usually by URL.
> I mean that if you change something in html then you can not just copy url 
> and repeat that using url.
> But there is hack like anchor # or location.hash javascript. to make url like 
> "http://localhost:8080/site/search?q=text#type=documents";, instead of 
> location.href, becuase it will be executed immediately.
> The main IDEA:
> Url with anchors will be sent to a server and if Wicket can use a correct 
> parser to make pageParameters then you can take that parameter
> and repeat that html on a page that is necessarily.
> _______________________________________
> That works in PHP and other languages. But in Java implementations of Servers 
> - I could not find the way to get anchors parameters only an query string.
> So 
> 1. Am I wrong that Java Web Servers can not do it?
> 2. I am right that need to correct Tomcat or another java web server.
> 3. If WebServer can do that Wicket sould be correct to get Anchor parameters 
> from somehwere or make Strategy to get request parameters (PageParameters)
> sorry if I send it to another place than I should.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to