Debouncing ajax calls..

2011-06-15 Thread Tom Howe
Hi, is there a supported way to make setThottleDelay keep resetting the
timer and only action the event after the last change.

I can see 'postponeTimerOnUpdate' as an option to Wicket.Throttler in the
wicket ajax js but dont know how to activate it.

Should I manually create a wicket.throttler and just call it myself?


I'm using wicket 1.4.17


Thanks, Tom


Ajaxifying RadioGroups

2011-05-21 Thread Tom Howe
Hi,
Hi,
I am trying to build a RadioGroup that triggers an ajax callback so I can
refresh another panel with the value set in the radio.

I couldn't find a good example anywhere and I've failed using the
AjaxFormChoiceComponentUpdatingBehavior
in the following code.

What am I doing wrong here.. or is not supported?

Thanks, Tom


   1. final RadioGroupString imageChoice = new
   RadioGroupString(imageChoice, new ModelString(chosen) );
   2.
   3. imageChoice.setOutputMarkupId( true );
   4. imageChoice.add( new
   AjaxFormChoiceComponentUpdatingBehavior(){
   5. private static final long serialVersionUID = 1L;
   6.
   7. @Override
   8. protected void onUpdate(AjaxRequestTarget target) {
   9. log.info(updated radio);
   10. }
   11.
   12.});
   13.
   14.
   15. ListViewString images = new ListViewString(imageList,
   imageModel) {
   16.
   17. @Override
   18. protected void populateItem(ListItem listItem) {
   19.
   20. Radio radioChoice = new Radio(radio,
   listItem.getModel(), imageChoice);
   21.
   22. listItem.add(radioChoice);
   23.
   24. }
   25. };
   26. imageChoice.add(images);
   27.
   28. add(imageChoice);
   29.
   30. }


Re: Ajaxifying RadioGroups

2011-05-21 Thread Tom Howe
ignore this - some jquery I had was breaking the wicket javascript.

On Sat, May 21, 2011 at 8:16 PM, Tom Howe tomh...@artcore.com wrote:

 Hi,
 Hi,
 I am trying to build a RadioGroup that triggers an ajax callback so I can
 refresh another panel with the value set in the radio.

 I couldn't find a good example anywhere and I've failed using the 
 AjaxFormChoiceComponentUpdatingBehavior
 in the following code.

 What am I doing wrong here.. or is not supported?

 Thanks, Tom


1.  final RadioGroupString imageChoice = new
RadioGroupString(imageChoice, new ModelString(chosen) );
2.
3.  imageChoice.setOutputMarkupId( true );
4.  imageChoice.add( new
AjaxFormChoiceComponentUpdatingBehavior(){
5.  private static final long serialVersionUID = 1L;
6.
7.  @Override
8.  protected void onUpdate(AjaxRequestTarget target) {
9.  log.info(updated radio);
10.  }
11.
12. });
13.
14.
15.  ListViewString images = new
ListViewString(imageList, imageModel) {
16.
17.  @Override
18.  protected void populateItem(ListItem listItem) {
19.
20.  Radio radioChoice = new Radio(radio,
listItem.getModel(), imageChoice);
21.
22.  listItem.add(radioChoice);
23.
24.  }
25.  };
26.  imageChoice.add(images);
27.
28.  add(imageChoice);
29.
30.  }




Adding openid-authentication to spring/wicket-auth-roles?

2010-12-29 Thread Tom Howe
I have followed the instructions at
https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html to
integrate basic user/pass authentication using Spring security into my
wicket app.
How would I go about adding open-id authentication? Spring security supports
openid-login as a config option but adding this has no effect. I think
this is because the example integration with wicket-auth-roles on that page
seems geared only towards user/password authentication.

Are there any examples for adding openid login in a similar manner to
stackoverflow to a wicket app, preferably using spring?

Thanks, Tom


Re: Adding openid-authentication to spring/wicket-auth-roles?

2010-12-29 Thread Tom Howe
Hi Eric,
I have seen this and maybe it is the approach I should take, however it
makes no mention of Spring and Id like to be able to have it load the user
roles from my spring config.

If I use openid4java http://code.google.com/ to determine whether I can
authenticate, how do I then tell Spring that I have authenticated them?

Tom

On Wed, Dec 29, 2010 at 12:49 PM, Eric Hamel dantehick...@gmail.com wrote:

 This might help...

 http://www.ibm.com/developerworks/java/library/j-openid/index.html

 On Wed, Dec 29, 2010 at 5:04 AM, Tom Howe tomh...@artcore.com wrote:

  I have followed the instructions at
 
 https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.htmlto
  integrate basic user/pass authentication using Spring security into my
  wicket app.
  How would I go about adding open-id authentication? Spring security
  supports
  openid-login as a config option but adding this has no effect. I think
  this is because the example integration with wicket-auth-roles on that
 page
  seems geared only towards user/password authentication.
 
  Are there any examples for adding openid login in a similar manner to
  stackoverflow to a wicket app, preferably using spring?
 
  Thanks, Tom
 



 --
 Sent by Eric Hamel