Unless I'm wrong the following are all valid:

<binding name="listener" value="ognl:listeners.formSubmitted"/>

<binding name="listener" value="listener:formSubmitted"/>

<binding name="listener" value="formSubmitted"/>

sorry to stir up the pot here but I think this is a good example of
how default binding types are going to cause more confusion than it's
worth.

Geoff

On 5/10/05, Gregg D Bolinger <[EMAIL PROTECTED]> wrote:
> I have a page with a form binding like so:
> 
> <component id="form" type="Form">
>    <binding name="delegate" value="beans.delegate"/>
>    <binding name="listener" value="listeners.formSubmitted"/>
> </component>
> 
> My java file has a method:
> 
> public void formSubmitted(IRequestCycle cycle) {
>    //code for listener in here
> }
> 
> HTML form declaration:
> 
> <form jwcid="form">...</form>
> 
> When I click the button on the web page I get the following error:
> 
> Object [EMAIL PROTECTED] does not implement a listener method
> named 'listeners.formSubmitted'.
> 
> This worked in 3.0.3. I read the new docs on listeners and it would
> appear that it should work.
> 
> Gregg Bolinger
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to