Return-Path: X-Original-To: apmail-tapestry-commits-archive@minotaur.apache.org Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21616189AA for ; Wed, 24 Feb 2016 22:48:19 +0000 (UTC) Received: (qmail 5324 invoked by uid 500); 24 Feb 2016 22:48:18 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 5166 invoked by uid 500); 24 Feb 2016 22:48:18 -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 5051 invoked by uid 99); 24 Feb 2016 22:48:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 22:48:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 770082C1F5D for ; Wed, 24 Feb 2016 22:48:18 +0000 (UTC) Date: Wed, 24 Feb 2016 22:48:18 +0000 (UTC) From: "Lance (JIRA)" To: commits@tapestry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (TAP5-2099) Update parameters bound to literal: or symbol: from a mixin 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-2099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15165660#comment-15165660 ] Lance edited comment on TAP5-2099 at 2/24/16 10:48 PM: ------------------------------------------------------- Ok... I still don't fully understand where the value is stored if not in the binding. So long as it's in a request/thread scoped place I'm happy. I'm not convinced that a no-op setter is the "proper" fix. Instead I think the caller (ParameterWorker?) should NOT invoke {{Binding.set(..)}} if {{Binding.isInvariant()}} returns true. was (Author: uklance): Ok... I still don't fully understand where the value is stored if not in the binding. So long as it's in a request/thread scoped place I'm happy. I'm not convinced that a no-op setter is the "proper" fix. Instead I think the caller (ParameterWorker?) should NOT invoke `Binding.set(..)` if `Binding.isInvariant()` returns true. > Update parameters bound to literal: or symbol: from a mixin > ----------------------------------------------------------- > > Key: TAP5-2099 > URL: https://issues.apache.org/jira/browse/TAP5-2099 > Project: Tapestry 5 > Issue Type: Improvement > Affects Versions: 5.3.6, 5.4 > Reporter: Lance > Labels: patch > Attachments: TAP52099-1.patch > > > Currently, I cannot update a component component parameter that is initialized with a literal: or symbol: binding from a mixin. If I try to @BindParameter the param and change it's value, I get a "Binding %s is read-only" exception (originating from AbstractBinding). > I propose that literal and symbol bindings are sourced from a PerThreadValue that can be updated by a mixin. > My original need for this was to create a "SinglePage" mixin for the Grid component which would set the rowsPerPage parameter to Integer.MAX_VALUE. I can't currently do this because by default, the parameter is a symbol: binding. -- This message was sent by Atlassian JIRA (v6.3.4#6332)