RE: Wicket Wizard Functionality (Extensions)

2009-10-26 Thread svenmeier

See https://issues.apache.org/jira/browse/WICKET-2542


Corbin, James-2 wrote:
 
 Hi Sven,
 
 What exactly am I supposed to implement in the
 AjaxFormSubmittingBehavior.onSubmit(...)?  I've tried everything I can
 think of and the popup still dismisses(closes) when I press the Next
 button after completing step 1.
 
 J
 
 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 11:35 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)
 
 Hi James,
 
 regretfully the standard Wicket dialog doesn't support non-AJAX request 
 - perhaps this restriction applies to the YUI version too?
 
 You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
 done it for our project but I don't have the code available at the
 moment.
 
 Regards
 
 Sven
 
 Corbin, James wrote:
 Hi Sven,

 I'm running the wizard in a modal popup (YUI).

 One other thing that is happening is when I press the next button in
 the
 wizard that should take me to the next step, my dialog closes.  I'm
 not
 sure what would cause the dialog to dismiss/close in this manner.

 J.D.

 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 8:32 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)

 Hi James,

  but Wicket's implementation seems to only evaluate the condition at
 step
  creation and not when I'm changing the state of my radios.

 see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I
 can

 see these method should support your usecase. Implementing ICondition
 as

 you did seems right to me.

 I assume you're notifying changes of the current radio choice to the 
 server via AJAX? Are you adding the whole wizard to the request so the
 
 button bar is re-rendered?

 Sven

 Corbin, James wrote:
   
 I am writing a two step wizard using wicket's wizard implementation
 
 and
   
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
 
 either
   
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button to
 
 be
   
 DISABLED, and the next button to be enabled so the user can go to the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step
 one,
 but Wicket's implementation seems to only evaluate the condition at
 
 step
   
 creation and not when I'm changing the state of my radios
 

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


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

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

-- 
View this message in context: 
http://www.nabble.com/Wicket-Wizard-Functionality-%28Extensions%29-tp26035189p26057485.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: Wicket Wizard Functionality (Extensions)

2009-10-26 Thread Ernesto Reinaldo Barreiro
Hi,

Don't know if it would be of any use here but I have extended, for private
use, Wizard into an Ajax Wizard.  You can see  details here.

http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/wizard
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/wizard
I just overrode the standard component and replaced some parts with what I
need...

Best,

Ernesto

On Sat, Oct 24, 2009 at 2:00 AM, Corbin, James jcor...@iqnavigator.comwrote:

 I am writing a two step wizard using wicket's wizard implementation and
 having some issues.



 I am using Wicket 1.4.1.



 My first wizard step contains a RadioChoice with 3 options.



 I would like the Finish Button to be enabled on Wizard Step 1 if either
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.



 If the 3rd Radio Choice is selected, then I want the Finish Button to be
 DISABLED, and the next button to be enabled so the user can go to the
 final step.



 My question



 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step one,
 but Wicket's implementation seems to only evaluate the condition at step
 creation and not when I'm changing the state of my radios.



 I'm hoping I can do this without implementing my own IWizardListener.



 NOTE: I noticed the Wicket Wizard Examples that are online do not
 function properly.  I went through the whole NewUserWizard and the
 Finish button was never enabled.



 Ideas?

 _

 IQNavigator has relocated to new offices. Our telephone numbers remain
 the same. Our new address is:

 IQNavigator

 6465 Greenwood Plaza Blvd Suite 800

 Centennial, CO 80111

 303-563-1500






RE: Wicket Wizard Functionality (Extensions)

2009-10-26 Thread Corbin, James
Hi Sven,

Thanks for the link.  I agree with your assessment and think the Wizard
Button functionality should be enhanced to easily support
Ajax-ification.

Regards,
J.D.

-Original Message-
From: svenmeier [mailto:s...@meiers.net] 
Sent: Monday, October 26, 2009 4:45 AM
To: users@wicket.apache.org
Subject: RE: Wicket Wizard Functionality (Extensions)


See https://issues.apache.org/jira/browse/WICKET-2542


Corbin, James-2 wrote:
 
 Hi Sven,
 
 What exactly am I supposed to implement in the
 AjaxFormSubmittingBehavior.onSubmit(...)?  I've tried everything I can
 think of and the popup still dismisses(closes) when I press the Next
 button after completing step 1.
 
 J
 
 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 11:35 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)
 
 Hi James,
 
 regretfully the standard Wicket dialog doesn't support non-AJAX
request 
 - perhaps this restriction applies to the YUI version too?
 
 You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
 done it for our project but I don't have the code available at the
 moment.
 
 Regards
 
 Sven
 
 Corbin, James wrote:
 Hi Sven,

 I'm running the wizard in a modal popup (YUI).

 One other thing that is happening is when I press the next button in
 the
 wizard that should take me to the next step, my dialog closes.  I'm
 not
 sure what would cause the dialog to dismiss/close in this manner.

 J.D.

 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 8:32 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)

 Hi James,

  but Wicket's implementation seems to only evaluate the condition at
 step
  creation and not when I'm changing the state of my radios.

 see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I
 can

 see these method should support your usecase. Implementing ICondition
 as

 you did seems right to me.

 I assume you're notifying changes of the current radio choice to the 
 server via AJAX? Are you adding the whole wizard to the request so
the
 
 button bar is re-rendered?

 Sven

 Corbin, James wrote:
   
 I am writing a two step wizard using wicket's wizard implementation
 
 and
   
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
 
 either
   
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be
enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button
to
 
 be
   
 DISABLED, and the next button to be enabled so the user can go to
the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.
I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step
 one,
 but Wicket's implementation seems to only evaluate the condition at
 
 step
   
 creation and not when I'm changing the state of my radios
 

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


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

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

-- 
View this message in context:
http://www.nabble.com/Wicket-Wizard-Functionality-%28Extensions%29-tp260
35189p26057485.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


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



RE: Wicket Wizard Functionality (Extensions)

2009-10-25 Thread Corbin, James
Hi Sven,

What exactly am I supposed to implement in the
AjaxFormSubmittingBehavior.onSubmit(...)?  I've tried everything I can
think of and the popup still dismisses(closes) when I press the Next
button after completing step 1.

J

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 11:35 AM
To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

regretfully the standard Wicket dialog doesn't support non-AJAX request 
- perhaps this restriction applies to the YUI version too?

You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
done it for our project but I don't have the code available at the
moment.

Regards

Sven

Corbin, James wrote:
 Hi Sven,

 I'm running the wizard in a modal popup (YUI).

 One other thing that is happening is when I press the next button in
the
 wizard that should take me to the next step, my dialog closes.  I'm
not
 sure what would cause the dialog to dismiss/close in this manner.

 J.D.

 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 8:32 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)

 Hi James,

  but Wicket's implementation seems to only evaluate the condition at
 step
  creation and not when I'm changing the state of my radios.

 see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I
can

 see these method should support your usecase. Implementing ICondition
as

 you did seems right to me.

 I assume you're notifying changes of the current radio choice to the 
 server via AJAX? Are you adding the whole wizard to the request so the

 button bar is re-rendered?

 Sven

 Corbin, James wrote:
   
 I am writing a two step wizard using wicket's wizard implementation
 
 and
   
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
 
 either
   
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button to
 
 be
   
 DISABLED, and the next button to be enabled so the user can go to the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step
one,
 but Wicket's implementation seems to only evaluate the condition at
 
 step
   
 creation and not when I'm changing the state of my radios
 

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


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

   


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


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



Re: Wicket Wizard Functionality (Extensions)

2009-10-25 Thread Sven Meier

Hi Corbin,

sorry, but I have to look that part up tomorrow.

Sven


Corbin, James wrote:

Hi Sven,

What exactly am I supposed to implement in the
AjaxFormSubmittingBehavior.onSubmit(...)?  I've tried everything I can
think of and the popup still dismisses(closes) when I press the Next
button after completing step 1.

J

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 11:35 AM

To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

regretfully the standard Wicket dialog doesn't support non-AJAX request 
- perhaps this restriction applies to the YUI version too?


You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
done it for our project but I don't have the code available at the

moment.

Regards

Sven

Corbin, James wrote:
  

Hi Sven,

I'm running the wizard in a modal popup (YUI).

One other thing that is happening is when I press the next button in


the
  

wizard that should take me to the next step, my dialog closes.  I'm


not
  

sure what would cause the dialog to dismiss/close in this manner.

J.D.

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 8:32 AM

To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

 but Wicket's implementation seems to only evaluate the condition at
step
 creation and not when I'm changing the state of my radios.

see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I


can
  

see these method should support your usecase. Implementing ICondition


as
  

you did seems right to me.

I assume you're notifying changes of the current radio choice to the 
server via AJAX? Are you adding the whole wizard to the request so the



  

button bar is re-rendered?

Sven

Corbin, James wrote:
  


I am writing a two step wizard using wicket's wizard implementation

  

and
  


having some issues.

I am using Wicket 1.4.1.

My first wizard step contains a RadioChoice with 3 options. 


I would like the Finish Button to be enabled on Wizard Step 1 if

  

either
  


the first or second radio choice is selected.  Also, if the first or
second radio is selected, then the next button should not be enabled.

If the 3rd Radio Choice is selected, then I want the Finish Button to

  

be
  


DISABLED, and the next button to be enabled so the user can go to the
final step.

My question

I'm not sure how to set this up in wicket's wizard implementation.  I
tried specifying an ICondition on step two, to only make that step
available if the selected type is Radio Choice Option 3 from step
  

one,
  

but Wicket's implementation seems to only evaluate the condition at

  

step
  


creation and not when I'm changing the state of my radios

  

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


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

  




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


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

  



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



Re: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Sven Meier

Hi James,

but Wicket's implementation seems to only evaluate the condition at step
creation and not when I'm changing the state of my radios.

see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I can 
see these method should support your usecase. Implementing ICondition as 
you did seems right to me.


I assume you're notifying changes of the current radio choice to the 
server via AJAX? Are you adding the whole wizard to the request so the 
button bar is re-rendered?


Sven

Corbin, James wrote:

I am writing a two step wizard using wicket's wizard implementation and
having some issues.

I am using Wicket 1.4.1.

My first wizard step contains a RadioChoice with 3 options. 


I would like the Finish Button to be enabled on Wizard Step 1 if either
the first or second radio choice is selected.  Also, if the first or
second radio is selected, then the next button should not be enabled.

If the 3rd Radio Choice is selected, then I want the Finish Button to be
DISABLED, and the next button to be enabled so the user can go to the
final step.

My question

I'm not sure how to set this up in wicket's wizard implementation.  I
tried specifying an ICondition on step two, to only make that step
available if the selected type is Radio Choice Option 3 from step one,
but Wicket's implementation seems to only evaluate the condition at step
creation and not when I'm changing the state of my radios


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



Re: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Corbin, James
I am using Ajax but not adding wizard to target.  I will play with  
that.  Thank you for the suggestion.


Sent from my iPhone

On Oct 24, 2009, at 8:32, Sven Meier s...@meiers.net wrote:


Hi James,

but Wicket's implementation seems to only evaluate the condition at  
step

creation and not when I'm changing the state of my radios.

see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I  
can see these method should support your usecase. Implementing  
ICondition as you did seems right to me.


I assume you're notifying changes of the current radio choice to the  
server via AJAX? Are you adding the whole wizard to the request so  
the button bar is re-rendered?


Sven

Corbin, James wrote:
I am writing a two step wizard using wicket's wizard implementation  
and

having some issues.

I am using Wicket 1.4.1.

My first wizard step contains a RadioChoice with 3 options.
I would like the Finish Button to be enabled on Wizard Step 1 if  
either

the first or second radio choice is selected.  Also, if the first or
second radio is selected, then the next button should not be enabled.

If the 3rd Radio Choice is selected, then I want the Finish Button  
to be

DISABLED, and the next button to be enabled so the user can go to the
final step.

My question

I'm not sure how to set this up in wicket's wizard implementation.  I
tried specifying an ICondition on step two, to only make that step
available if the selected type is Radio Choice Option 3 from step  
one,
but Wicket's implementation seems to only evaluate the condition at  
step

creation and not when I'm changing the state of my radios


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



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



RE: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Corbin, James
Hi Sven,

I'm running the wizard in a modal popup (YUI).

One other thing that is happening is when I press the next button in the
wizard that should take me to the next step, my dialog closes.  I'm not
sure what would cause the dialog to dismiss/close in this manner.

J.D.

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 8:32 AM
To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

 but Wicket's implementation seems to only evaluate the condition at
step
 creation and not when I'm changing the state of my radios.

see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I can

see these method should support your usecase. Implementing ICondition as

you did seems right to me.

I assume you're notifying changes of the current radio choice to the 
server via AJAX? Are you adding the whole wizard to the request so the 
button bar is re-rendered?

Sven

Corbin, James wrote:
 I am writing a two step wizard using wicket's wizard implementation
and
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
either
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button to
be
 DISABLED, and the next button to be enabled so the user can go to the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step one,
 but Wicket's implementation seems to only evaluate the condition at
step
 creation and not when I'm changing the state of my radios

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


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



Re: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Sven Meier

Hi James,

regretfully the standard Wicket dialog doesn't support non-AJAX request 
- perhaps this restriction applies to the YUI version too?


You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
done it for our project but I don't have the code available at the moment.


Regards

Sven

Corbin, James wrote:

Hi Sven,

I'm running the wizard in a modal popup (YUI).

One other thing that is happening is when I press the next button in the
wizard that should take me to the next step, my dialog closes.  I'm not
sure what would cause the dialog to dismiss/close in this manner.

J.D.

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 8:32 AM

To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

 but Wicket's implementation seems to only evaluate the condition at
step
 creation and not when I'm changing the state of my radios.

see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I can

see these method should support your usecase. Implementing ICondition as

you did seems right to me.

I assume you're notifying changes of the current radio choice to the 
server via AJAX? Are you adding the whole wizard to the request so the 
button bar is re-rendered?


Sven

Corbin, James wrote:
  

I am writing a two step wizard using wicket's wizard implementation


and
  

having some issues.

I am using Wicket 1.4.1.

My first wizard step contains a RadioChoice with 3 options. 


I would like the Finish Button to be enabled on Wizard Step 1 if


either
  

the first or second radio choice is selected.  Also, if the first or
second radio is selected, then the next button should not be enabled.

If the 3rd Radio Choice is selected, then I want the Finish Button to


be
  

DISABLED, and the next button to be enabled so the user can go to the
final step.

My question

I'm not sure how to set this up in wicket's wizard implementation.  I
tried specifying an ICondition on step two, to only make that step
available if the selected type is Radio Choice Option 3 from step one,
but Wicket's implementation seems to only evaluate the condition at


step
  

creation and not when I'm changing the state of my radios



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


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

  



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



RE: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Corbin, James
Thanks for the info Sven.

I assume by Ajax-ify you mean to create a new implementation that
mirrors WizardButton but extends AjaxButton instead of just Button?

Also, our code base is currently on 1.4.1, I noticed 1.4.3 (stable?) is
released but the main Apache Wicket Page hasn't been updated?

What are your thoughts on upgrading directly to 1.4.3, or should we
stick with a 1.4.2 upgrade?

J.D.

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 11:35 AM
To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

regretfully the standard Wicket dialog doesn't support non-AJAX request 
- perhaps this restriction applies to the YUI version too?

You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
done it for our project but I don't have the code available at the
moment.

Regards

Sven

Corbin, James wrote:
 Hi Sven,

 I'm running the wizard in a modal popup (YUI).

 One other thing that is happening is when I press the next button in
the
 wizard that should take me to the next step, my dialog closes.  I'm
not
 sure what would cause the dialog to dismiss/close in this manner.

 J.D.

 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 8:32 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)

 Hi James,

  but Wicket's implementation seems to only evaluate the condition at
 step
  creation and not when I'm changing the state of my radios.

 see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I
can

 see these method should support your usecase. Implementing ICondition
as

 you did seems right to me.

 I assume you're notifying changes of the current radio choice to the 
 server via AJAX? Are you adding the whole wizard to the request so the

 button bar is re-rendered?

 Sven

 Corbin, James wrote:
   
 I am writing a two step wizard using wicket's wizard implementation
 
 and
   
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
 
 either
   
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button to
 
 be
   
 DISABLED, and the next button to be enabled so the user can go to the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step
one,
 but Wicket's implementation seems to only evaluate the condition at
 
 step
   
 creation and not when I'm changing the state of my radios
 

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


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

   


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


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



Re: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Sven Meier
Yes, you can implement your own button bar which adds 
AjaxFormSubmitBehavior to the normal wizard buttons.


Sven

Corbin, James wrote:

Thanks for the info Sven.

I assume by Ajax-ify you mean to create a new implementation that
mirrors WizardButton but extends AjaxButton instead of just Button?

Also, our code base is currently on 1.4.1, I noticed 1.4.3 (stable?) is
released but the main Apache Wicket Page hasn't been updated?

What are your thoughts on upgrading directly to 1.4.3, or should we
stick with a 1.4.2 upgrade?

J.D.

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 11:35 AM

To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

regretfully the standard Wicket dialog doesn't support non-AJAX request 
- perhaps this restriction applies to the YUI version too?


You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
done it for our project but I don't have the code available at the

moment.

Regards

Sven

Corbin, James wrote:
  

Hi Sven,

I'm running the wizard in a modal popup (YUI).

One other thing that is happening is when I press the next button in


the
  

wizard that should take me to the next step, my dialog closes.  I'm


not
  

sure what would cause the dialog to dismiss/close in this manner.

J.D.

-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 8:32 AM

To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

 but Wicket's implementation seems to only evaluate the condition at
step
 creation and not when I'm changing the state of my radios.

see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I


can
  

see these method should support your usecase. Implementing ICondition


as
  

you did seems right to me.

I assume you're notifying changes of the current radio choice to the 
server via AJAX? Are you adding the whole wizard to the request so the



  

button bar is re-rendered?

Sven

Corbin, James wrote:
  


I am writing a two step wizard using wicket's wizard implementation

  

and
  


having some issues.

I am using Wicket 1.4.1.

My first wizard step contains a RadioChoice with 3 options. 


I would like the Finish Button to be enabled on Wizard Step 1 if

  

either
  


the first or second radio choice is selected.  Also, if the first or
second radio is selected, then the next button should not be enabled.

If the 3rd Radio Choice is selected, then I want the Finish Button to

  

be
  


DISABLED, and the next button to be enabled so the user can go to the
final step.

My question

I'm not sure how to set this up in wicket's wizard implementation.  I
tried specifying an ICondition on step two, to only make that step
available if the selected type is Radio Choice Option 3 from step
  

one,
  

but Wicket's implementation seems to only evaluate the condition at

  

step
  


creation and not when I'm changing the state of my radios

  

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


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

  




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


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

  



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



RE: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Corbin, James
Sven,

I created my own implementation of a Wizard ButtonBar that adds the
AjaxFormSubmittingBehavior to the existing buttons.

I am not sure what I need to do in the overridden onSubmit(...) for each
of the buttons.  My current implementation simply calls
wizard.getForm().onFormSubmitted() in each of the onSubmit methods, and
haven't added anything to the onError.

Is this the appropriate onSubmit behavior for the wizard buttons?

J.D.



-Original Message-
From: Sven Meier [mailto:s...@meiers.net] 
Sent: Saturday, October 24, 2009 11:35 AM
To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)

Hi James,

regretfully the standard Wicket dialog doesn't support non-AJAX request 
- perhaps this restriction applies to the YUI version too?

You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
done it for our project but I don't have the code available at the
moment.

Regards

Sven

Corbin, James wrote:
 Hi Sven,

 I'm running the wizard in a modal popup (YUI).

 One other thing that is happening is when I press the next button in
the
 wizard that should take me to the next step, my dialog closes.  I'm
not
 sure what would cause the dialog to dismiss/close in this manner.

 J.D.

 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 8:32 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)

 Hi James,

  but Wicket's implementation seems to only evaluate the condition at
 step
  creation and not when I'm changing the state of my radios.

 see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I
can

 see these method should support your usecase. Implementing ICondition
as

 you did seems right to me.

 I assume you're notifying changes of the current radio choice to the 
 server via AJAX? Are you adding the whole wizard to the request so the

 button bar is re-rendered?

 Sven

 Corbin, James wrote:
   
 I am writing a two step wizard using wicket's wizard implementation
 
 and
   
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
 
 either
   
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button to
 
 be
   
 DISABLED, and the next button to be enabled so the user can go to the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step
one,
 but Wicket's implementation seems to only evaluate the condition at
 
 step
   
 creation and not when I'm changing the state of my radios
 

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


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

   


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


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