users@woodstock.java.net

Re: Wizard Event Listener

From: Vanessa Black <Vanessa.Black_at_Sun.COM>
Date: Mon, 14 Apr 2008 11:40:48 -0600

Hi Federico,


 I've noticed that (in 4.1.1 of the component) event.getStep() seems to
return null - So I'm not using it in a wizard listener. Instead I add a
listener to the actual wizard step that I'm listenening for (and not to
the entire wizard):
 

 class SelectDrivesStepEventListener implements WizardEventListener {
     public boolean handleEvent(WizardEvent event) {
       if (event.getEvent() == WizardEvent.NEXT) {//if the event that
occurs on this step is a NEXT
                //do something useful
            }
            return true;
        }

//remaining listener methods

}

This listener method gets fired only on the particular step because I
added the listener only to this particular wizard step.

Hope this is helpful,

Vanessa


Federico Vela wrote:
> Hi Vanessa,
>
> Thank you for your reply.
>
> Since the begging, I inadvertently I have already followed your
> recommendation. I first built the wizard without an event listener,
> and I was able to move back and forth the steps, and even branch.
>
> When i plug the listener attribute is when it starts silently failing.
>
> :(
>
> Thanks for your help anyway. Any other ideas?
> --
> Federico Vela
> Product Specialist
> PaySett International Corporation
>
> fvela_at_paysett.com
> (+57) 1 750 8842
> ICQ#: 210521656
>
>
> Vanessa Black wrote:
>> Hi Federico,
>>
>> I've seen this behavior (wizard not moving onto next step) in my
>> wizard when there is a problem with the jsp in the subsequent steps.
>> What I did was build the wizard a step at a time. I worked on the
>> layout of the steps before building in any deeper behavior and as I
>> worked on each step I made it the first and only step of the wizard
>> to make sure that there were no problems with the jsp. Then I built
>> up the wizard adding one page at a time.
>>
>> Hope that helps,
>>
>> Vanessa
>>
>> Federico Vela wrote:
>>> Hi,
>>>
>>> I'm learning to use the wizard component, and its event listener.
>>>
>>> Without the event listener the wizard works fine.
>>>
>>> I have configured everything seemingly correct, so that when the
>>> wizard pops up, the START event gets correctly broadcast.
>>>
>>> However, in that screen i press next, the wizard stays in that step.
>>> and no events are broadcast.
>>>
>>> What could cause the event listener attribute to fail?
>>>
>>> Any ideas or documentation on the wizard component?
>>>
>>> Thanks!
>>> --
>>> Federico Vela
>>> Product Specialist
>>> PaySett International Corporation
>>>
>>> fvela_at_paysett.com
>>> (+57) 1 750 8842
>>> ICQ#: 210521656
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>