...
Code Block | ||
---|---|---|
| ||
public void validate( @Param FunctionCall fn, ContextVariables contextVariables, ValidationErrors errors ) { int length = ...; // liczba wierszy pobrana z innego for ( int i = 0; i < length; i++ ) { contextVariables.set( "currentRow", i ); if ( !fn.<Boolean> call() ) { errors.add( "Validation errror" ); } } } |
Zmienne kontekstowe w akcjach formularza
...