You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Christian Köberl (JIRA)" <ji...@apache.org> on 2008/11/04 16:56:46 UTC
[jira] Created: (TAP5-328) Exception when checking BeanEditor Field
required in ValidationDecorator
Exception when checking BeanEditor Field required in ValidationDecorator
------------------------------------------------------------------------
Key: TAP5-328
URL: https://issues.apache.org/jira/browse/TAP5-328
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.15
Reporter: Christian Köberl
You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
"Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Issue Comment Edited: (TAP5-328) Exception when checking
BeanEditor Field required in ValidationDecorator
Posted by "Christian Köberl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644987#action_12644987 ]
koc edited comment on TAP5-328 at 11/4/08 8:00 AM:
----------------------------------------------------------------
[beaneditortest.zip] This project demonstrates the error. It is a simple beaneditor with a bean person and a modified ValidationDecorator.
was (Author: koc):
This project demonstrates the error. It is a simple beaneditor with a bean person and a modified ValidationDecorator.
> Exception when checking BeanEditor Field required in ValidationDecorator
> ------------------------------------------------------------------------
>
> Key: TAP5-328
> URL: https://issues.apache.org/jira/browse/TAP5-328
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Christian Köberl
> Attachments: beaneditortest.zip, PropertyEditor_cleanupEnvironment.patch
>
>
> You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
> "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
> The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-328) Exception when checking BeanEditor Field
required in ValidationDecorator
Posted by "Christian Köberl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Köberl updated TAP5-328:
----------------------------------
Attachment: beaneditortest.zip
This project demonstrates the error. It is a simple beaneditor with a bean person and a modified ValidationDecorator.
> Exception when checking BeanEditor Field required in ValidationDecorator
> ------------------------------------------------------------------------
>
> Key: TAP5-328
> URL: https://issues.apache.org/jira/browse/TAP5-328
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Christian Köberl
> Attachments: beaneditortest.zip
>
>
> You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
> "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
> The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Issue Comment Edited: (TAP5-328) Exception when checking
BeanEditor Field required in ValidationDecorator
Posted by "Christian Köberl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644990#action_12644990 ]
koc edited comment on TAP5-328 at 11/4/08 8:00 AM:
----------------------------------------------------------------
[PropertyEditor_cleanupEnvironment.patch] This is the patch for the PropertyEditor. We already included it in our own BeanEditor - seems to work fine.
Please apply before releasing 5.0
was (Author: koc):
This is the patch for the PropertyEditor. We already included it in our own BeanEditor - seems to work fine.
Please apply before releasing 5.0
> Exception when checking BeanEditor Field required in ValidationDecorator
> ------------------------------------------------------------------------
>
> Key: TAP5-328
> URL: https://issues.apache.org/jira/browse/TAP5-328
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Christian Köberl
> Attachments: beaneditortest.zip, PropertyEditor_cleanupEnvironment.patch
>
>
> You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
> "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
> The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAP5-328) Exception when checking BeanEditor
Field required in ValidationDecorator
Posted by "Christian Köberl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644988#action_12644988 ]
Christian Köberl commented on TAP5-328:
---------------------------------------
The problem here is that the field already cleaned up the Environment and the Label is rendered with Heartbeat at the end of the loop.
A possible fix is to cleanup the environment later (e.g. also in Hearbeat).
> Exception when checking BeanEditor Field required in ValidationDecorator
> ------------------------------------------------------------------------
>
> Key: TAP5-328
> URL: https://issues.apache.org/jira/browse/TAP5-328
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Christian Köberl
> Attachments: beaneditortest.zip, PropertyEditor_cleanupEnvironment.patch
>
>
> You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
> "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
> The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-328) Exception when checking BeanEditor Field
required in ValidationDecorator
Posted by "Christian Köberl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Köberl updated TAP5-328:
----------------------------------
Attachment: PropertyEditor_cleanupEnvironment.patch
This is the patch for the PropertyEditor. We already included it in our own BeanEditor - seems to work fine.
Please apply before releasing 5.0
> Exception when checking BeanEditor Field required in ValidationDecorator
> ------------------------------------------------------------------------
>
> Key: TAP5-328
> URL: https://issues.apache.org/jira/browse/TAP5-328
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Christian Köberl
> Attachments: beaneditortest.zip, PropertyEditor_cleanupEnvironment.patch
>
>
> You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
> "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
> The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Closed: (TAP5-328) Exception when checking BeanEditor Field
required in ValidationDecorator
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-328.
-------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.16
I have not applied the patch, but this bug is fixed; other changes related to validation (TAP5-22) have eliminated the exception ... I was able to verify your problem exists under 5.0.15, but it is not present in 5.0.16-SNAPSHOT.
I was not happy with the patch, since I feel strongly that whatever is put into the environment in a begin/before method (or equivalent) should be cleaned up immediately inside the matching after method (or equivalent). There is the risk that the pops may occur in the wrong order, leading to very difficult to diagnose incorrect behavior.
> Exception when checking BeanEditor Field required in ValidationDecorator
> ------------------------------------------------------------------------
>
> Key: TAP5-328
> URL: https://issues.apache.org/jira/browse/TAP5-328
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Christian Köberl
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.16
>
> Attachments: beaneditortest.zip, PropertyEditor_cleanupEnvironment.patch
>
>
> You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
> "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
> The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Assigned: (TAP5-328) Exception when checking BeanEditor
Field required in ValidationDecorator
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-328:
-----------------------------------------
Assignee: Howard M. Lewis Ship
> Exception when checking BeanEditor Field required in ValidationDecorator
> ------------------------------------------------------------------------
>
> Key: TAP5-328
> URL: https://issues.apache.org/jira/browse/TAP5-328
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Christian Köberl
> Assignee: Howard M. Lewis Ship
> Attachments: beaneditortest.zip, PropertyEditor_cleanupEnvironment.patch
>
>
> You get the following error when marking a field "required" and using it in a beaneditor and creating a modified ValidationDecorator asking for required (like HLS suggested in http://www.nabble.com/How-to-create-my-ValidationDecorator-in-T5--td11533833.html).
> "Render queue error in AfterRender[Index:form.editor.loop]: Failure reading parameter 'validate' of component core/PropertyEditBlocks:textfield: No object of type org.apache.tapestry5.services.PropertyEditContext is available from the Environment."
> The problem is also described here by Rolf Wagner: http://www.nabble.com/-T5--Custom-ValidationDecorator-causing-Exception-in-BeanEditor-td20084804.html
--
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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org