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 theAjaxFormLoop. Define your own AddRowLink that checks a condition beforelaunching 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 wantto add further rows.In these cases i return a FALSE (tried NULL also), but the last row will beappended twice (or more times). What's going wrong here? Thanks, Stefan
smime.p7s
Description: S/MIME cryptographic signature