tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Stremin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TAP5-1967) boolean activation context is lost on form submit
Date Wed, 04 Jul 2012 15:12:34 GMT
Sergey Stremin created TAP5-1967:

             Summary: 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 {
    private boolean flag;

    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">
    <t:form clientValidation="false">
        context: ${flag}<br/>
        <t:textfield t:id="field" t:value="field" validate="required"/><br/>

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"

Context is successfully retained if it has String or int type, but is lost if it has boolean

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


View raw message