Hi

May be someone will have an easy answer (It must be there) but I think
the only way to do this using a mixin.

Something like

public class SubmitMixin {

@Parameter(value = "onchange", defaultPrefix = BindingConstants.LITERAL)
private String clientEvent;

@Inject
private JavaScriptSupport javaScriptSupport;

@AfterRender
void addAttribute(MarkupWriter writer)
{
   writer.attributes(clientEvent, "this.form.submit()");
}

not tested

regards
Taha


On Thu, Jul 28, 2011 at 3:11 PM, dick_hu <dickan...@gmail.com> wrote:
> I want change select component's value the form submit
> Is ther any way can do this?
>
> Thanks a lot
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/When-Select-change-value-tp4641947p4641947.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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

Reply via email to