[
https://issues.apache.org/jira/browse/TAP5-1967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409035#comment-13409035
]
Sergey Stremin commented on TAP5-1967:
--------------------------------------
Alex, thank you for the explanation and examples. I missed that special meaning.
> boolean activation context is lost on form submit
> -------------------------------------------------
>
> Key: TAP5-1967
> URL: https://issues.apache.org/jira/browse/TAP5-1967
> Project: Tapestry 5
> Issue Type: Bug
> Affects Versions: 5.3.3
> Reporter: Sergey Stremin
>
> Test code:
> public class TestPage {
> @Property
> private boolean flag;
> @Property
> private String field;
> void onActivate(boolean flag) {
> this.flag = flag;
> }
> boolean onPassivate() {
> return flag;
> }
> }
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
> <body>
> <t:form clientValidation="false">
> context: ${flag}<br/>
> <t:textfield t:id="field" t:value="field" validate="required"/><br/>
> <t:submit/>
> </t:form>
> </body>
> </html>
> Steps to reproduce:
> 1. Open page with context value of 'true': testpage/true
> 2. "context: true" is shown in page
> 3. Do not enter field value, click Submit.
> 4. Validation fails, and "context: false" is shown in page. I expect to see
> "context: true" here.
> Context is successfully retained if it has String or int type, but is lost if
> it has boolean type.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira