You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sebastien Briquet (JIRA)" <ji...@apache.org> on 2014/07/27 15:08:38 UTC

[jira] [Commented] (WICKET-4852) Do not set CSS class on the li > span element for a feedback message

    [ https://issues.apache.org/jira/browse/WICKET-4852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14075619#comment-14075619 ] 

Sebastien Briquet commented on WICKET-4852:
-------------------------------------------

Verified on today's 7.0.0-SNAPSHOT, works as expected. I think this ticket is safe to close...

> Do not set CSS class on the li > span element for a feedback message
> --------------------------------------------------------------------
>
>                 Key: WICKET-4852
>                 URL: https://issues.apache.org/jira/browse/WICKET-4852
>             Project: Wicket
>          Issue Type: Sub-task
>          Components: wicket
>    Affects Versions: 6.2.0
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 7.0.0-M1
>
>
> In a mail discussion http://markmail.org/thread/glqn5n6lneh5fkjr has been proposed:
> Martin Grigorov:
> - <div> element should have class "feedbackPanel" (this is already the case)
> - <li> element(s) should have class that specifies the feedback
> message level (currently by default Wicket sets "feedbackPanelLEVEL",
> but this is configurable with
> org.apache.wicket.markup.html.panel.FeedbackPanel#getCSSClass(FeedbackMessage))
> - the <span> should not have class at all (currently it has the same
> class as the <li> element)
> - the styling should be done with CSS selectors (e.g.
> div.feedbackPanel; div.feedbackPanel li.alert-warn; div.feedbackPanel
> li.alert-warn span; ...)
> - if custom markup is needed then a custom FeedbackPanel is needed
> (one that extends from the default FeedbackPanel or a completely new
> one, it depends on the use case)
> Sven Meier:
> To ease extending of FeedbackPanel I'd suggest to delegate #newItem() of the
> nested MessageListView to a new protected method #newMessageItem() in
> FeedbackPanel. (Similar to DataTable#newRowItem()) 
> Since we cannot make these improvements for 6.x because it may break applications which depend on this behavior we will postpone them for Wicket 7.



--
This message was sent by Atlassian JIRA
(v6.2#6252)