Here's what i've tried, but it won't work as expected.
It works only after a page reload or a reload of the whole formloop.

Define your own AddRowLink that checks a condition before
launching the AddRow Event...
How can i check conditions *before* triggering the event?

<t:parameter name="addRow" >
        <td colspan="5" style="text-align: right">
                <t:if test="addRowEnabled" t:zone="formLoopZone">
                        <t:addrowlink>${message:addRow}</t:addrowlink>
                        <p:else>
                                ${message:maximumRowsReached}
                        </p:else>
                </t:if>
        </td>
</t:parameter>


Am 01.10.2009 um 09:53 schrieb cordenier christophe:

Hi

Maybe you can achieve this by setting the addRow parameter on the
AjaxFormLoop. Define your own AddRowLink that checks a condition before
launching the AddRow Event...

2009/10/1 Stefan <ste...@wammel.com>

Hi,

is it possible to block adding further rows to an AjaxFormloop?
Inside my addRow method i check some things and in some cases I don't want
to add further rows.
In these cases i return a FALSE (tried NULL also), but the last row will be
appended twice (or more times).

What's going wrong here?

Thanks,
Stefan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to