[ 
https://issues.apache.org/jira/browse/TAPESTRY-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesse Kuhnert resolved TAPESTRY-1240.
-------------------------------------

    Resolution: Fixed
      Assignee: Jesse Kuhnert

I agree...Fixed up the listener invoker to be a lot more forgiving about 
parameters being null. Now as long as there is at least a matching method name 
the method will be invoked - even if most of the arguments are null.

> 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
>         Assigned To: Jesse Kuhnert
>             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]

Reply via email to