|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (TAPESTRY-2514) onValidate and property-setters are called in wrong execution orderonValidate 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 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@... |
|
|
[jira] Closed: (TAPESTRY-2514) onValidate and property-setters are called in wrong execution order[ 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@... |
|
|
[jira] Commented: (TAPESTRY-2514) onValidate and property-setters are called in wrong execution order[ https://issues.apache.org/jira/browse/TAPESTRY-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613247#action_12613247 ] Fritz Pröbstle commented on TAPESTRY-2514: ------------------------------------------ I did not realize how to get the value of the Filed i want to validate. Now I saw that you can transfer it to the onValidateXX(..) by Parameter. > 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@... |
|
|
[jira] Issue Comment Edited: (TAPESTRY-2514) onValidate and property-setters are called in wrong execution order[ https://issues.apache.org/jira/browse/TAPESTRY-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613247#action_12613247 ] fritz.pro edited comment on TAPESTRY-2514 at 7/13/08 11:49 PM: -------------------------------------------------------------------- I did not realize how to get the value of the Filed i want to validate. Now I saw that you can transfer it to the onValidateXX(..) by Parameter. ----------------------------- void onValidateFromCount(Integer value) throws ValidationException { if (value.equals(13)) throw new ValidationException("Thirteen is an unlucky number."); } +---+ This event gets fired <<after>> the normal validators. It is passed the <parsed> value (not the string from the client, but the object value from the translator, or from the "parseclient" event handler). The method may not return a value, but may throw a ValidationException to indicate a problem with the value. ----------------- was (Author: fritz.pro): I did not realize how to get the value of the Filed i want to validate. Now I saw that you can transfer it to the onValidateXX(..) by Parameter. > 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@... |
| Free Forum Powered by Nabble | Forum Help |