The form below works fine when the Submit button is pressed but the exception
below is thrown when the myRadioButton is selected. It looks like the
onclick="this.form.submit()" is making it fail. Any ideas how I can solve
this ?


org.apache.tapestry.runtime.ComponentEventException
Return type org.apache.tapestry.internal.structure.BlockImpl can not be
handled. 

MyPage.tml
<form t:id="myForm" zone="myZone">
   ... 
   <t:radio t:id="myRadioButton" onclick="this.form.submit()"/>
   ...
    <input t:type="submit"/>
</form>
<t:zone t:id="myZone">
   <t:block t:id="myBlock">
        ..... some text ...
   </t:block>
</t:zone>
MyPage.java
public class MyPage
{

    @Inject
    private Block myBlock;
...
   public void onSuccessFromMyForm()
   {
      return myBlock;
    
   }
}
-- 
View this message in context: 
http://www.nabble.com/ComponentEventException-on-Form-Submit-with-Ajax-tp16467413p16467413.html
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