Hi,
I'm using Tapestry 4.1.3 (integrated in Appfuse 2.0.1) and the
@EventListener functionality. The eventlistener method is called correctly,
but I can't get any user-entered values from the form. As I understood from
the documentation, the form should submit itself by default and send the
values to the server, but it doesn't work for me. I tried to use @Persist
annotation for the getter of the requested value, but it didn't help.

        <input jwcid="@TextField" value="ognl:recName" id="recName" 
class="text large" type="text" />

        @Persist
        public abstract String getRecName();

        @EventListener(events="onchange", elements="recName")
        public void onRefresh(IRequestCycle cycle) {
           log.debug(getRecName()); // this returns null (or initial value)
        }

I presume that the getRecName() function in the EventListener is supposed to
return the value entered by user - is it right? Am I doing something wrong?
Thanks

(posted on Appfuse forum as well)

-- 
View this message in context: 
http://www.nabble.com/Tapestry-EventListener-doesn%27t-seem-to-submit-form-tf4957057.html#a14195678
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to