Re: Ajax response render as source in the browser

2012-02-13 Thread jgormley
I know this thread is old, but I had this issue and figured out what was
happening in our case.  We are using Wicket's client info component (to get
the user's local timezone).  If the ajax call is the first to make this
request, then the response page is actually the javascript page that wicket
generates for gathering this information.  The javascript page then
redirects to the original request (which happens to be the ajax call), which
then renders in the browser and not in the ajax response.

final ClientInfo info = Session.get().getClientInfo();

The solution was to move this getClientInfo() call into the page, which
forces the javascript page to render prior to the page and not in the ajax
call.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-response-render-as-source-in-the-browser-tp3028722p4385693.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: url params with ExternalLink

2010-06-17 Thread jgormley

That would be true if we were using an XHTML doctype, but we've chosen html
4.01 strict.  I have yet to be given a practical reason why XHTML is a good
solution for the apps I'm building today.

Either way, thanks again for the clarification.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/url-params-with-ExternalLink-tp2257905p2258832.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



url params with ExternalLink

2010-06-16 Thread jgormley

In looking at the source code for ExternalLink (wicket 1.4.6), I see that all
urls have '' converted to 'amp;'

// generate the href attribute
tag.put(href, Strings.replaceAll(url, , amp;));

How can I link to an external url and still pass url parameters?  I want to
do something like this:

this.add(new ExternalLink(link,
http://www.google.com/search?hl=enq=wicket;, Google Wicket));

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/url-params-with-ExternalLink-tp2257905p2257905.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: url params with ExternalLink

2010-06-16 Thread jgormley

Ok then, color me ignorant.  I was writing my unit tests and noticed that
this was happening and thought it would cause issues (I'm not yet testing in
the browser -- just writing up-front tests of the app as I build it).  I
never really paid attention to the fact that you could encode those
characters in the href and the browser would be smart enough to get it
right.  Thanks for clarifying.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/url-params-with-ExternalLink-tp2257905p2258153.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org