You can return Block or Component from listener only when tapestry is
precessing _ajax_ request. 'this.form.submit()' is not an ajax.
As I know currently there is no ajax support for radio button (may be I
am wrong), but you can look into code of TriggerFragment mixin and adopt
this code for radio button.
Petros Petrou пишет:
Yes returning void is a typo.
What I am trying to achieve is the following:
I have two versions of a searchCriteriaForm.
I have a second form (configureSearchCriteriaForm) that contains two radio
buttons. Depending on which radio button is selected an "onclick" event
submits this form to decide which searchCriteriaForm will be used. The
searchCriteriaForm is contained in a zone. Now, when the searchCriteriaForm
is submitted another zone is updated (searchResultsZone) that contains a
Grid component. The code below should make everything clearer.
Configure search criteria
<t:form t:id="configureSearchCriteriaForm" zone="searchCriteriaZone">
<t:radio t:id="searchCriteria1" onclick="this.form.submit()"/>
<t:radio t:id="searchCriteria1" onclick="this.form.submit()"/>
<!-- onSuccess of this form the block searchCriteriaBlock is
returned-->
</t:form>
Specify search criteria
<t:zone t:id="searchCriteriaZone">
<t:block t:id="searchCriteriaBlock">
<t:form t:id="searchCriteriaForm" zone="searchResultsZone">
<!-- onSuccess of this form the block searchResultsBlock is
returned and this works fine if the searchCriteriaZone and
searchCriteriaForm are returned
</t:form>
</t:block>
<t:zone>
Display search results
<t:zone t:id="searchResultsZone">
<t:block t:id="searchResultsBlock">
<t:grid source="foundEntitiesList"/>
</t:block>
</t:zone>
Petros
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]