You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Toby Hobson <to...@btinternet.com> on 2008/05/04 15:44:27 UTC

Form event handler not being called

Can anyone see anything which is wrong with this code:

EditPhoto.tml:

<t:form t:id="editPhoto">
  <t:textfield value="photo.name" />
  <input type="submit" />
</t:form>

EditPhoto.java

public void onSubmitFromEditPhoto() {
  ...
}

my event handler is not being called, I have also tried

@OnEvent(value="submit", component="editPhoto")
public void update() {
 ...
}

but this doesn't work either :(

Thanks

Toby

Re: Form event handler not being called

Posted by Toby Hobson <to...@btinternet.com>.
I tried onSuccessFromEditPhoto() but that doesnt work either.

Something is happening though because the url changes and adds a massive query parameter

Toby

Sent using BlackBerry® from Orange

-----Original Message-----
From: "Thiago HP" <th...@gmail.com>

Date: Sun, 4 May 2008 12:09:00 
To:"Tapestry users" <us...@tapestry.apache.org>, "Toby Hobson" <to...@btinternet.com>
Subject: Re: Form event handler not being called


On Sun, May 4, 2008 at 10:44 AM, Toby Hobson <to...@btinternet.com> wrote:
>  public void onSubmitFromEditPhoto() {
>   ...
>  }
>  @OnEvent(value="submit", component="editPhoto")
>  public void update() {
>   ...
>  }

The form component does not fire a "submit" event, firing a "success"
one instead.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Form event handler not being called

Posted by Thiago HP <th...@gmail.com>.
On Sun, May 4, 2008 at 10:44 AM, Toby Hobson <to...@btinternet.com> wrote:
>  public void onSubmitFromEditPhoto() {
>   ...
>  }
>  @OnEvent(value="submit", component="editPhoto")
>  public void update() {
>   ...
>  }

The form component does not fire a "submit" event, firing a "success"
one instead.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org