You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Daniel Radünz (JIRA)" <ji...@apache.org> on 2017/05/23 14:16:04 UTC
[jira] [Updated] (WICKET-6375) FormComponent label model not
populated from markup in stateless page
[ https://issues.apache.org/jira/browse/WICKET-6375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Radünz updated WICKET-6375:
----------------------------------
Attachment: quickstart_wicket-6375.zip
> FormComponent label model not populated from markup in stateless page
> ---------------------------------------------------------------------
>
> Key: WICKET-6375
> URL: https://issues.apache.org/jira/browse/WICKET-6375
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 7.7.0, 8.0.0-M6
> Reporter: Daniel Radünz
> Priority: Minor
> Attachments: quickstart_wicket-6375.zip
>
>
> Using following HTML markup to populate the label model of a FormComponent doesn't seem to work properly on stateless pages
> {code:java}
> <label wicket:for="wicketidinput"><wicket:label>Label</wicket:label>:</label>
> <input wicket:id="wicketidinput">
> {code}
> The attached quickstart contains a homepage leading to two pages.
> * StatefulFormPage: Submitting the form without entering something in the required TextField results in the error message "'Label' is required"
> ** The label model is correctly populated with the word "Label" from the markup file
> * StatelessFormPage: Submitting the form without entering something in the required TextField results in the error message "'wicketidinput' is required"
> ** The label model seemingly is not populated, resulting in wicket falling back to using the wicket Id "wicketidinput" as label model object
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)