Use javascript.  First, style your LI elements to the appropriate
color.  That gives the default.  Then when the page loads, you can
check to see if they are all error (in which case they'd all already
be red).  I guess what you're saying is that if ANY of them are an
error message, that you want the whole UL to be red?  If so, you could
do that in JS.

--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, Jun 4, 2009 at 11:58 PM, Luther Baker <lutherba...@gmail.com> wrote:
> I have a minor question regarding the FeedbackPanel.
>
> I'd like to have the panel display a subtle red background on ERROR and a
> subtle green background on INFO. Obviously there can be more than one LI -
> but assuming its all errors or info ... using css on the LI isn't enough.
> For instance, the LI bullet shows up outside of the LI background. The css
> background color therefore needs to be on the UL of the resulting:
>
>  <ul wicket:id="feedbackul" class="feedbackPanel">
>    <li wicket:id="messages" class="feedbackPanelINFO">
>      <span wicket:id="message" class="feedbackPanelINFO">Login
> failed. Please try again.</span>
>    </li>
>  </ul>
>
>
> Unfortunately, error or info, I the FeedbackPanel only uses "feedbackPanel"
> as the style and can't really make the background consistent with the
> general notice being displayed.
>
> Is there an easy way around this? I guess I want to make the UL green or
> red, depending on the type of message being displayed (understanding that
> more than one type can be displayed).
>
> -Luther
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to