« Return to Thread: [jira] Created: (TAPESTRY-2514) onValidate and property-setters are called in wrong execution order

[jira] Closed: (TAPESTRY-2514) onValidate and property-setters are called in wrong execution order

by Tapestry - Dev mailing list :: Rate this Message:

Reply to Author | View in Thread


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

Howard M. Lewis Ship closed TAPESTRY-2514.
------------------------------------------

    Resolution: Invalid
      Assignee: Howard M. Lewis Ship

This is the correct order.  No assignment takes place unless the value is valid.  The validate event is fired to ensure that the parsed value is valid before it is assigned to the property.

> onValidate  and property-setters are called in wrong execution order
> --------------------------------------------------------------------
>
>                 Key: TAPESTRY-2514
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2514
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0.13
>            Reporter: Fritz Pröbstle
>            Assignee: Howard M. Lewis Ship
>
> In a form submission first the onValidateXX() is called.
> (No Properties are yet set  and you can not  validate ).
> Then the setXX()-Property setters are called.
> Solution:
> Change the excution order: set Properties first then call onValidateXX() .

--
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: [jira] Created: (TAPESTRY-2514) onValidate and property-setters are called in wrong execution order

LightInTheBox - Buy quality products at wholesale price!