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 0119817D92 for ; Mon, 12 Jan 2015 08:10:49 +0000 (UTC) Received: (qmail 93541 invoked by uid 500); 12 Jan 2015 08:10:50 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 93501 invoked by uid 500); 12 Jan 2015 08:10:50 -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 93486 invoked by uid 99); 12 Jan 2015 08:10:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2015 08:10:50 +0000 Date: Mon, 12 Jan 2015 08:10:50 +0000 (UTC) From: "Jochen Kemnade (JIRA)" To: commits@tapestry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (TAP5-831) Record errors for beaneditform and form using only the field name instead of injecting a field (patch incl) 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-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jochen Kemnade closed TAP5-831. ------------------------------- Resolution: Invalid We assume this is no longer relevant and therefore close it. If you still have this issue in a recent Tapestry version (such as 5.3.8 or the latest 5.4 preview release), feel free to provide the necessary information and reopen. > Record errors for beaneditform and form using only the field name instead of injecting a field (patch incl) > ----------------------------------------------------------------------------------------------------------- > > Key: TAP5-831 > URL: https://issues.apache.org/jira/browse/TAP5-831 > Project: Tapestry 5 > Issue Type: New Feature > Components: tapestry-core > Affects Versions: 5.2 > Reporter: Sebastian Hennebrueder > Labels: bulk-close-candidate > Attachments: beaneditform.patch > > > In order to record an error for a field using custom validation, currently you have to use t:parameter to define a custom input field inside of beaneditform > and inject that field into your page class. > The provided patch adds a method > recordError(String fieldname, String errorMessage) to beaneditform, form and validation tracker to allow using just the fieldname or id. > A test is included and I build a sample application using this approach. I didn't want to extend the existing test apps as it was unclear to me where to my code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)