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

Martin Grigorov updated WICKET-6375:
------------------------------------
    Attachment: WICKET-6375.patch

Attaching my attempt but it seems it won't work.
Auto components (like AutoLabel) are resolved after 'beforeRender' phase, so 
the form component's label is still unknown when the feedback messages are 
rendered.

> 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
>            Assignee: Martin Grigorov
>            Priority: Minor
>         Attachments: quickstart_wicket-6375.zip, WICKET-6375.patch
>
>
> 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)

Reply via email to