You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Oliver Bauer <ol...@web.de> on 2009/09/01 09:25:20 UTC

Hello,

i have some problems with the submit component and the parameter t:image. 
The following works fine with T5.1.0.5

<form t:type="form" t:id="myform">
  <input type="submit" t:type="submit" t:id="viewselection" title="View"/>
</form>

and as expected the following methods are called

@OnEvent(component="viewselection", value = EventConstants.SELECTED)
void someMethodName() {
  logger.debug("With EventConstants");
}
void onSelectedFromViewselection() {
  logger.debug("With onSelectedFromId");
}
@OnEvent(value = "selected", component = "viewselection")
void someOtherMethodName() {
  logger.debug("With @OnEvent");
}

but if i want to use an image for the submit none of those methods are called (the image will be rendered correctly).
I've used each of the following 

<input type="submit" t:type="submit" t:id="viewselection" title="View" t:image="context:images/view.png"/>
<input type="submit" t:type="submit" t:id="viewselection" title="View" t:image="context:images/view.png"/>
<t:submit t:id="viewselection" title="view" t:image="context:images/view.png"/>

Whats wrong?

TIA,
Oliver
________________________________________________________________
Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/


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


Re:

Posted by Sergey Didenko <se...@gmail.com>.
Hi Oliver,

see https://issues.apache.org/jira/browse/TAP5-711

On Tue, Sep 1, 2009 at 10:25 AM, Oliver Bauer<ol...@web.de> wrote:
> Hello,
>
> i have some problems with the submit component and the parameter t:image.
> The following works fine with T5.1.0.5
>
> <form t:type="form" t:id="myform">
>  <input type="submit" t:type="submit" t:id="viewselection" title="View"/>
> </form>
>
> and as expected the following methods are called
>
> @OnEvent(component="viewselection", value = EventConstants.SELECTED)
> void someMethodName() {
>  logger.debug("With EventConstants");
> }
> void onSelectedFromViewselection() {
>  logger.debug("With onSelectedFromId");
> }
> @OnEvent(value = "selected", component = "viewselection")
> void someOtherMethodName() {
>  logger.debug("With @OnEvent");
> }
>
> but if i want to use an image for the submit none of those methods are called (the image will be rendered correctly).
> I've used each of the following
>
> <input type="submit" t:type="submit" t:id="viewselection" title="View" t:image="context:images/view.png"/>
> <input type="submit" t:type="submit" t:id="viewselection" title="View" t:image="context:images/view.png"/>
> <t:submit t:id="viewselection" title="view" t:image="context:images/view.png"/>
>
> Whats wrong?
>
> TIA,
> Oliver
> ________________________________________________________________
> Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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