[
https://issues.apache.org/jira/browse/WICKET-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Parson updated WICKET-1842:
---------------------------------
Description:
When applying a MultiLineLabel to a HTML paragraph element, the rendered
content of the label is not within the paragraph element, but appended
thereafter.
Example:
HTML (edited):
<p wicket:id="testMultiLine" class="myClass">[some text]</p>
Java:
add (new MultiLineLabel("testMultiLine","asdfasdfasdf"));
rendered HTML source:
<p class="myClass"></p><p>asdfasdfasdf</p>
Simple workaround is: using a div instead - works as expected.
Also, I realized that MultiLineLabel renders <br> tags (i.e. not XHTML
compliant).
Don't know whether this is intended behavior, though.
Cheers,
Peter
was:
When applying a MultiLineLabel to a HTML paragraph element, the rendered
content of the label is not within the paragraph element, but appended
thereafter.
Example:
HTML:
<div wicket:id="testMultiLine" class="myClass">[some text]</div>
Java:
add (new MultiLineLabel("testMultiLine","asdfasdfasdf"));
rendered HTML source:
<p class="myClass"></p><p>asdfasdfasdf</p>
Simple workaround is: using a div instead - works as expected.
Also, I realized that MultiLineLabel renders <br> tags (i.e. not XHTML
compliant).
Don't know whether this is intended behavior, though.
Cheers,
Peter
Changed HTML snippet to use <p> tags instead of <div>
> MultiLineLabel content not inside container when used with <p> element
> ----------------------------------------------------------------------
>
> Key: WICKET-1842
> URL: https://issues.apache.org/jira/browse/WICKET-1842
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.4
> Reporter: Peter Parson
> Assignee: Igor Vaynberg
> Priority: Minor
>
> When applying a MultiLineLabel to a HTML paragraph element, the rendered
> content of the label is not within the paragraph element, but appended
> thereafter.
> Example:
> HTML (edited):
> <p wicket:id="testMultiLine" class="myClass">[some text]</p>
> Java:
> add (new MultiLineLabel("testMultiLine","asdfasdfasdf"));
> rendered HTML source:
> <p class="myClass"></p><p>asdfasdfasdf</p>
> Simple workaround is: using a div instead - works as expected.
> Also, I realized that MultiLineLabel renders <br> tags (i.e. not XHTML
> compliant).
> Don't know whether this is intended behavior, though.
> Cheers,
> Peter
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.