Hello,

Is the following behavior intended, as it may be a bug ?

With this structure :

<t:zone t:id="zoneToRefresh" id="zoneToRefresh">
   <t:delegate to="activeBlock"/>
</t:zone>

<t:block t:id="empty">
   <!-- empty block -->
</t:block>

<t:block t:id="manageBlock">
   <t:form t:id="manageForm" zone="zoneToRefresh">
            <t:radiogroup t:value="manage">
                <input type="radio" t:type="radio" t:value="true"/>
                Yes
                <input type="radio" t:type="radio" t:value="false"/>
                No
            </t:radiogroup>

            <t:submit value="Submit form"/>
   </t:form>
</t:block>

(I don't have included the button that refresh the zone the first time)

The method getActiveBlock() return the emptyBlock when the page initially
loads, then it returns the manageBlock once the refresh button is hit.

The problem is that the form contained in the manageBlock doesn't refresh
the zone in Ajax, and reload the whole page instead.

>From what I've searched, it seems that, when the manage block is rendered,
the "zone" parameter of the manageForm is null (see line 356 of Form.class,
in beginRender method) whereas it should be valued with the zoneToRefresh.

I have already encoutered similar errors : the forms and actionlinks that
should fire ajax reloads, fire page reload instead when they have not been
rendered at the initial page loading.

Regards,
Thomas

Reply via email to