You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2014/05/27 09:20:16 UTC

[jira] [Updated] (TAP5-831) Record errors for beaneditform and form using only the field name instead of injecting a field (patch incl)

     [ https://issues.apache.org/jira/browse/TAP5-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Kemnade updated TAP5-831:
--------------------------------

    Labels: bulk-close-candidate  (was: )

This issue has been last updated about 1.5 years ago, has no assignee, affects an old version of Tapestry that is not actively developed anymore, and is therefore prone to be bulk-closed in the near future.

If the issue still persists with the most recent development preview of Tapestry (5.4-beta-6, which is available from Maven Central), please update it as soon as possible. In the case of a feature request, please discuss it with the Tapestry developer community on the dev@tapestry.apache.org mailing list first.


> 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.2#6252)