Return-Path: X-Original-To: apmail-tapestry-dev-archive@www.apache.org Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F168FD3C6 for ; Fri, 6 Jul 2012 18:44:35 +0000 (UTC) Received: (qmail 92521 invoked by uid 500); 6 Jul 2012 18:44:35 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 92426 invoked by uid 500); 6 Jul 2012 18:44:35 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 92394 invoked by uid 99); 6 Jul 2012 18:44:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2012 18:44:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 140D5142865 for ; Fri, 6 Jul 2012 18:44:35 +0000 (UTC) Date: Fri, 6 Jul 2012 18:44:35 +0000 (UTC) From: "Alex Lumpov (JIRA)" To: commits@tapestry.apache.org Message-ID: <85302030.15366.1341600275083.JavaMail.jiratomcat@issues-vm> In-Reply-To: <994725795.3536.1341414754557.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (TAP5-1967) boolean activation context is lost on form submit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TAP5-1967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408213#comment-13408213 ] Alex Lumpov commented on TAP5-1967: ----------------------------------- As return boolean has special sense, That you should return another type. For example: public class TestPage { @Property private boolean flag; @Property private String field; void onActivate(boolean flag) { this.flag = flag; } List onPassivate() { return Collections.singletonList(flag); } } > 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; > } > } > > > > context: ${flag}
>
> >
> > > 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