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:15:04 UTC
[jira] [Created] (WICKET-6375) FormComponent label model not
populated from markup in stateless page
Daniel Radünz created WICKET-6375:
-------------------------------------
Summary: 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: 8.0.0-M6, 7.7.0
Reporter: Daniel Radünz
Priority: Minor
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)