I am new to JQuery Mobile. I have an Apache Wicket-based application that I'd like to try JQuery Mobile on so it looks more pleasing on mobile devices. Unfortunately, I am getting "Error Loading Page" errors for all the page links, which I never had problems with before switching to JQuery Mobile. The root cause appears to be the URLs contained in the HTTP requests. I used JQuery Mobile 1.2.0, JQuery 1.8.0, Wicket 1.5.5, locally tested using jetty server 6.1.26 and FireFox 16.0. Here is the code snippet:
So, you're taking one framework that messes with URLs and using it with another framework that messes with URLs.
You're going to have to figure out how to make them play nice together. Since you're unlikely to find a lot of people very familiar with Wicket here, you're probably going to have to ask on some forum dedicated to Wicket as well.
Which is pretty-much where anybody doing anything with JQM ought to start.
If you're having to use rel="external", though, I would skip JQM altogether. You're not going to create a good user experience that way. rel="external" is the "escape hatch" for when you need to leave JQM and link to some other site.
The reason it works this way is because that's just what's happening. There is only one document loaded, and it is loaded when you load the first page. JQM loads the content of other pages into the same document.
You'll need to figure out how to make this work within the requirements of Wicket, which I'm unfamiliar with.
Leave a comment on watusiware's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic