[
https://issues.apache.org/jira/browse/TAPESTRY-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse Kuhnert updated TAPESTRY-1240:
------------------------------------
Fix Version/s: 4.1.2
> LinkSubmit with parameters causes exception although it has validators
> attached
> -------------------------------------------------------------------------------
>
> Key: TAPESTRY-1240
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1240
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1, 4.1.1, 4.1.2
> Environment: last test was with Tapestry 4.1.2-20070121
> Reporter: Kristian Marinkovic
> Fix For: 4.1.2
>
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]