Details
Description
A LinkSubmit component causes an exception if the bound listener requires one or more parameters and
the values of the parameters binding are null. This behavior is correct as long as the bound parameters
don't come from a TextField with a "required" validator.
Looking at the code below i would have expected that when the page is submitted, the TextField component
gets validated before the LinkSubmit. If so Tapestry would report the validation error and not the exception.
.page file
<component id="lnk_read" type="LinkSubmit">
<binding name="listener" value="listener:readGPList" />
<binding name="parameters" value="searchFieldValue" />
</component>
<component id="txtSearchField" type="TextField">
<binding name="value" value="searchFieldValue" />
<binding name="validators" value="validators:required" />
</component>
<property name="searchFieldValue" />
.java file
public void readGPList(String txtSearchField) {}
g,
kris