Yeah it sounds like a bug of some sort to me.

On 5/28/07, Eric BIANCHI <[EMAIL PROTECTED]> wrote:

Hello list,

On Friday the 18th of May, I wrote :

--- CUT HERE ---
I've been happily using the EventListener Annotation in Tapestry
4.1.1 and everything works fine.

Using the latest snapshot (4.1.2), my EventListener doesn't work
anymore.

Here's my code :

<form jwcid="[EMAIL PROTECTED]" async="true"
delegate="ognl:validationDelegate" clientValidationEnabled="false">
<select jwcid="[EMAIL PROTECTED]"
            model="ognl:page.affirmationSelectionModel"
            value="ognl:visit.medicalHistory.hasTransplant"
            class="text"
            displayName="message:form.transplant"
            validators="validators:required"/>
</form>

@EventListener(targets = "transplant_has_history", events =
"onchange", submitForm = "myForm", async = true)
public void transplantSelected(IRequestCycle cycle) {
        System.out.println ("Called !!");
        getRequestCycle().getResponseBuilder().updateComponent
("transplant_condition");
}

I can see that my form is being submitted (the annotation works
great) but my method never get called. I changed the method's
parameters (no parameters, BrowerEvent), but it still doesn't work.
Switching back to 4.1.1 and everything works fine again.
--- CUT HERE ---

Well, I finally found a workaround. It seems that the EventListener
Annotation doesn't work if the id contains _

For example : targets = "transplantHasHistory" works great in 4.1.2,
"transplant_has_history" does not.

Do i have to fill a bug for that ?

Regards,

Eric

--
Eric BIANCHI
---------------------------------------
[EMAIL PROTECTED]
http://www.rodanotech.ch




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




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to