Re: OT - GrepCode

2009-07-05 Thread Igor Vaynberg
as long as you think you are following all that needs to be followed its all good. -igor On Sat, Jul 4, 2009 at 10:56 PM, Vinayak Borkarvbo...@yahoo.com wrote: Igor, It looks like according to the Apache PRC policy, external links are allowed with a nofollow attribute. Does that help?

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Sorry for not getting this totally. If I do something like this class Comp extends WebComponent implements ILinkListener{ public Comp(String id) { super(id); } public String getCallbackURL(){

Re: Wicket and javascript

2009-07-05 Thread Martin Funk
you are getting closer... next step is to get the callbackURL to the browser and than pick it up by your javascript. it could be rendered as an attribute using an AttributeModifier. given that wicket supplies the javaScript method wicketAjaxGet. If that gets called with the callbackURL the

Re: Wicket and Single Sign-on?

2009-07-05 Thread Jeff Longland
Hi Igor, Apologies that I wasn't more detailed. More specifically: 1. User is in application X 2. User clicks on link to goto application Y 3. Application X constructs a URL with relevant parameters (ex. username) and an md5 hash with the shared secret 4. Application X redirects to this URL. 5.

Re: WicketSessionFilter setup

2009-07-05 Thread Erik van Oosten
Mathias, This sounds similar to what I wrote on http://cwiki.apache.org/WICKET/springbean-outside-wicket.html. Its not clear from the javadoc, but I suspect that WicketSessionFilter also requires access to a surrounding normal Wicket filter. If I had access to the code of WicketSessionFilter

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Yes but I will have a WebMarkupContainer with a ListView in that needs to be updated via ajax. If my javascript hits the onLinkClicked I won't have any AjaxRequestTarget to update the container via ajax. -- View this message in context:

Re: WicketSessionFilter setup

2009-07-05 Thread Mathias Nilsson
Thanks, I figured it out. It was an example in the wicket-examples and the HelloWorldServlet -- View this message in context: http://www.nabble.com/WicketSessionFilter-setup-tp24336020p24343057.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket and javascript

2009-07-05 Thread Jeremy Thomerson
Here, I think this should work: Pastebin link in case the formatting gets messed up in email: http://pastebin.com/f6ef575c3 public ExamplePage() { IModel? extends List? extends String model = getSomeModel(); final ListViewString lv = new ListViewString(listview, model) { @Override

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Thanks! That did the trick. -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24343230.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
Nope I get an javascript error when trying this. -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24345368.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Wicket and javascript

2009-07-05 Thread Jeremy Thomerson
I didn't check it for 100% functionality - I was showing you how the pieces fit together. Now you know how to get the URL for the callback, how to get the callback to work, etc. Now, look at it and see what it renders and see if it's correct. I can't help anyway without knowing what JS error

Re: Wicket and javascript

2009-07-05 Thread Mathias Nilsson
yes thanks alot. Beacuse I didn't have any other wicket ajax the lib was not included. I just added a super.renderHead(response); and it worked. Thanks -- View this message in context: http://www.nabble.com/Wicket-and-javascript-tp24336438p24345756.html Sent from the Wicket - User mailing

Re: Wicket and Single Sign-on?

2009-07-05 Thread Igor Vaynberg
application X constructs a url to page Y of the wicket app. application X issues a redirect wicket's IAuthorizationStrategy intercepts instantiation of page Y inside this strategy you can check if the url contains proper credentials if it does you store the credentials in session and return true