And what is your intent with the listener?
-----Original Message----- From: Peter Svensson [mailto:[EMAIL PROTECTED] Sent: Tue 2/7/2006 10:36 AM To: Tapestry users Subject: Re: [NEWB] Problem with geting value from HTML input What does you class look like? Br, PS On 2/7/06, Ernst Thielmann <[EMAIL PROTECTED]> wrote: > > I have a problem to get the value from an html input > What is the best way to get the value, in my .java? The value of this > field is changing at runtime by Javascript. I want to get this value. > > I tried the following thing: > > .html > ================ > <html> > <body jwcid="@Body" > > <form jwcid="form"> > <input jwcid="docId" name="docId" value=""/> > <span jwcid="listenerDocId"/> > ... some other stuff > </form> > </body> > </html> > > .page > ================ > .... > <component id="docId" type="TextField"> > </component> > <component id="listenerDocId" type="InvokeListener"> > <binding name="listener" value="listener:listenerDocId"/> > <binding name="parameters" value="docId"/> > </component> > .... > If I use <binding name="parameters" value="literal:docId"/> it > works fine, but if I try to get the value I get this error: > > "Exception invoking listener method listenerDocId of component Home: No > listener method named 'listenerDocId' suitable for no listener > parameters found in [EMAIL PROTECTED]" > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
