You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Daniel Ferreira Castro <df...@gmail.com> on 2009/01/30 13:05:17 UTC

Feedback Panel

Hi,

I am looking around internet "but I still haven´t found what I am looking
for" - (Bono, do not sue me)

I would like to customize a Feedback Panel in a way that error messages are
displayed as Red, info as Green and Warn as Yellow (I will need to change
the background of this panel to make it confortable for the eyes also)  and,
if possible, when a success message is printed an check icon displays by its
side (This is probably using border, but I am not sure).

How to do this?

-- 
"Two rules to succeed in life:
1 - don´t tell people everything you know."
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

Re: Feedback Panel

Posted by Daniel Ferreira Castro <df...@gmail.com>.
found this...
http://fisheye6.atlassian.com/browse/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/panel/FeedbackPanel.html?r1=647167&r2=709216

I had to update the html file inside the jar to be able to customize the
error messages.

On Fri, Jan 30, 2009 at 9:34 PM, Daniel Ferreira Castro
<df...@gmail.com>wrote:

> Yes...I have been trying to learn more about the framework wicket.
>
> I tryied to check on XHTML parser for possible open tags but didn't find
> any.
> Eclipse also checks automatically for any open tag.
> WicketMessage: close tag not found for tag: <div class="feedbackPanel"
> wicket:id="feedback">. Component: [MarkupContainer [Component id =
> feedback]]
>
> Also, the BasePage has all the tags closed.
> How to solve it? Is it a known wicket bug?
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
> http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <wicket:head>
>     <title wicket:id="pageTitle">Administração</title>
> </wicket:head>
> <body>
>     <wicket:extend>
>     <div class="spacer"></div>
>
>     <div align="center" class="cssbox">
>         <div class="cssbox_head">
>             <h2>Cadastro de Categoria</h2>
>         </div>
>         <div class="cssbox_body">
>             <form wicket:id="categoriaForm" name="categoriaForm">
>                 <table>
>                     <tr>
>                         <th class="label">
>                             <label wicket:id="labelCategoria">[name
> label]</label>:
>                         </th>
>                         <td>
>                             <input wicket:id="nomeCategoria" type="text"
> class="nomeCategoria" />
>                         </td>
>                     </tr>
>                     <tr>
>                         <th class="label">
>                             <label wicket:id="labelCategoriaPai">[name
> label]</label>:
>                         </th>
>                         <td>
>                             <select wicket:id="categoriaPai"
> class="categoriaPai" size="1" />
>                         </td>
>                     </tr>
>                     <tr>
>                         <th class="label">&nbsp;</th>
>                         <td><input type="submit" value="submit" /></td>
>                     </tr>
>                 </table>
>             </form>
>             <table>
>                 <tr>
>                     <th colspan="2">
>                         <div wicket:id="feedback" class="feedbackPanel">
>                             <ul wicket:id="feedbackul" class="feedbackul">
>                                 <li class="feedbackPanelINFO"
> wicket:id="messages">
>                                   <span class="feedbackPanelINFO"
> wicket:id="message">[[]]</span>
>                                 </li>
>                             </ul>
>                         </div>
>                     </th>
>                 </tr>
>             </table>
>         </div>
>     </div>
>     </wicket:extend>
> </body>
> </html>
>
>
> On Fri, Jan 30, 2009 at 3:10 PM, Jeremy Thomerson <
> jeremy@wickettraining.com> wrote:
>
>> You can do everything you've asked for with css.  Just google "css ul" or
>> "css ul no bullets", etc.  You can view source on a rendered FeedbackPanel
>> to see the classes it uses.  Really, it's made to be very customizable and
>> quite straight-forward.
>>
>> On Fri, Jan 30, 2009 at 7:08 AM, Daniel Ferreira Castro
>> <df...@gmail.com>wrote:
>>
>> > No bullets att all will fit the case :)
>> >
>> > On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten <e.vanoosten@grons.nl
>> > >wrote:
>> >
>> > > Well, I am assuming you want either a numbered list, or no bullets at
>> > all.
>> > > If you want something else, you are on your own (copy paste
>> FeedbackPanel
>> > > and tweak the copy).
>> > >
>> > > Look at the Wicket examples to see some CSS customization.
>> > >
>> > > Regards,
>> > >   Erik.
>> > >
>> > >
>> > >
>> > > Erik van Oosten wrote:
>> > >
>> > >> Again, change it with css.
>> > >>
>> > >>    Erik.
>> > >>
>> > >> Daniel Ferreira Castro wrote:
>> > >>
>> > >>> And if I don´t wanna a unumbered list to be as the presentation of
>> the
>> > >>> errors and messages?  How to do this?
>> > >>>
>> > >>> On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
>> > >>> francisco.treacy@gmail.com> wrote:
>> > >>>
>> > >>>
>> > >>>
>> > >>>> for example, in your css:
>> > >>>>
>> > >>>> ul .feedbackul {
>> > >>>>       list-style-type: none;
>> > >>>>       font-size: 0.7em;
>> > >>>>       border-top: 1px dashed #BCBAAC;
>> > >>>>       margin-left: 6px;
>> > >>>>       margin-bottom: 20px;
>> > >>>>       padding: 0;
>> > >>>>       width: 90%;
>> > >>>>       }
>> > >>>>
>> > >>>> li .feedbackPanelERROR {
>> > >>>>       color: red;
>> > >>>>       font-size: 1em;
>> > >>>>       margin-left: 6px;
>> > >>>>       margin-bottom: 20px;
>> > >>>>       padding: 0;
>> > >>>>       width: 90%;
>> > >>>>       }
>> > >>>>
>> > >>>> francisco
>> > >>>>
>> > >>>> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <
>> > e.vanoosten@grons.nl>
>> > >>>> wrote:
>> > >>>>
>> > >>>>
>> > >>>>> The HTML that is rendered by FeedBackPanel provides enough styling
>> > that
>> > >>>>>
>> > >>>>>
>> > >>>> you
>> > >>>>
>> > >>>>
>> > >>>>> can do this with CSS.
>> > >>>>>
>> > >>>>> Regards,
>> > >>>>>  Erik.
>> > >>>>>
>> > >>>>>
>> > >>>>> Daniel Ferreira Castro wrote:
>> > >>>>>
>> > >>>>>
>> > >>>>>> Hi,
>> > >>>>>>
>> > >>>>>> I am looking around internet "but I still haven´t found what I am
>> > >>>>>>
>> > >>>>>>
>> > >>>>> looking
>> > >>>>
>> > >>>>
>> > >>>>> for" - (Bono, do not sue me)
>> > >>>>>>
>> > >>>>>> I would like to customize a Feedback Panel in a way that error
>> > >>>>>> messages
>> > >>>>>> are
>> > >>>>>> displayed as Red, info as Green and Warn as Yellow (I will need
>> to
>> > >>>>>>
>> > >>>>>>
>> > >>>>> change
>> > >>>>
>> > >>>>
>> > >>>>> the background of this panel to make it confortable for the eyes
>> > also)
>> > >>>>>>  and,
>> > >>>>>> if possible, when a success message is printed an check icon
>> > displays
>> > >>>>>> by
>> > >>>>>> its
>> > >>>>>> side (This is probably using border, but I am not sure).
>> > >>>>>>
>> > >>>>>> How to do this?
>> > >>>>>>
>> > >>>>>>
>> > >>>>>>
>> > >>>>>>
>> > >>>>> --
>> > >>>>> Erik van Oosten
>> > >>>>> http://day-to-day-stuff.blogspot.com/
>> > >>>>>
>> > >>>>>
>> > >>>>>
>> > >>>>>
>> ---------------------------------------------------------------------
>> > >>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > >>>>> For additional commands, e-mail: users-help@wicket.apache.org
>> > >>>>>
>> > >>>>>
>> > >>>>>
>> > >>>>>
>> > >>>>
>> ---------------------------------------------------------------------
>> > >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > >>>> For additional commands, e-mail: users-help@wicket.apache.org
>> > >>>>
>> > >>>>
>> > >>>>
>> > >>>>
>> > >>>
>> > >>>
>> > >>>
>> > >>>
>> > >>
>> > >>
>> > > --
>> > >
>> > > Erik van Oosten
>> > > http://day-to-day-stuff.blogspot.com/
>> > >
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > > For additional commands, e-mail: users-help@wicket.apache.org
>> > >
>> > >
>> >
>> >
>> > --
>> > "Two rules to succeed in life:
>> > 1 - don´t tell people everything you know."
>> > --------
>> > We shall go on to the end.
>> > We shall fight in France
>> > We shall fightover the seas and oceans.
>> > We shall fight with growing confidence and growing strength in the air.
>> > We shall defend our island whatever the cost may be
>> > We shall fight on beaches, we shall fight on the landing grounds,
>> > We shall fight in the fields and in the streets,
>> > We shall fight on the hills.
>> > We shall never surrender.
>> > Winston Churchill
>> >
>>
>>
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>
>
>
> --
> "Two rules to succeed in life:
> 1 - don´t tell people everything you know."
> --------
> We shall go on to the end.
> We shall fight in France
> We shall fightover the seas and oceans.
> We shall fight with growing confidence and growing strength in the air.
> We shall defend our island whatever the cost may be
> We shall fight on beaches, we shall fight on the landing grounds,
> We shall fight in the fields and in the streets,
> We shall fight on the hills.
> We shall never surrender.
> Winston Churchill
>



-- 
"Two rules to succeed in life:
1 - don´t tell people everything you know."
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

Re: Feedback Panel

Posted by Daniel Ferreira Castro <df...@gmail.com>.
Yes...I have been trying to learn more about the framework wicket.

I tryied to check on XHTML parser for possible open tags but didn't find
any.
Eclipse also checks automatically for any open tag.
WicketMessage: close tag not found for tag: <div class="feedbackPanel"
wicket:id="feedback">. Component: [MarkupContainer [Component id =
feedback]]

Also, the BasePage has all the tags closed.
How to solve it? Is it a known wicket bug?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<wicket:head>
    <title wicket:id="pageTitle">Administração</title>
</wicket:head>
<body>
    <wicket:extend>
    <div class="spacer"></div>

    <div align="center" class="cssbox">
        <div class="cssbox_head">
            <h2>Cadastro de Categoria</h2>
        </div>
        <div class="cssbox_body">
            <form wicket:id="categoriaForm" name="categoriaForm">
                <table>
                    <tr>
                        <th class="label">
                            <label wicket:id="labelCategoria">[name
label]</label>:
                        </th>
                        <td>
                            <input wicket:id="nomeCategoria" type="text"
class="nomeCategoria" />
                        </td>
                    </tr>
                    <tr>
                        <th class="label">
                            <label wicket:id="labelCategoriaPai">[name
label]</label>:
                        </th>
                        <td>
                            <select wicket:id="categoriaPai"
class="categoriaPai" size="1" />
                        </td>
                    </tr>
                    <tr>
                        <th class="label">&nbsp;</th>
                        <td><input type="submit" value="submit" /></td>
                    </tr>
                </table>
            </form>
            <table>
                <tr>
                    <th colspan="2">
                        <div wicket:id="feedback" class="feedbackPanel">
                            <ul wicket:id="feedbackul" class="feedbackul">
                                <li class="feedbackPanelINFO"
wicket:id="messages">
                                  <span class="feedbackPanelINFO"
wicket:id="message">[[]]</span>
                                </li>
                            </ul>
                        </div>
                    </th>
                </tr>
            </table>
        </div>
    </div>
    </wicket:extend>
</body>
</html>

On Fri, Jan 30, 2009 at 3:10 PM, Jeremy Thomerson <jeremy@wickettraining.com
> wrote:

> You can do everything you've asked for with css.  Just google "css ul" or
> "css ul no bullets", etc.  You can view source on a rendered FeedbackPanel
> to see the classes it uses.  Really, it's made to be very customizable and
> quite straight-forward.
>
> On Fri, Jan 30, 2009 at 7:08 AM, Daniel Ferreira Castro
> <df...@gmail.com>wrote:
>
> > No bullets att all will fit the case :)
> >
> > On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten <e.vanoosten@grons.nl
> > >wrote:
> >
> > > Well, I am assuming you want either a numbered list, or no bullets at
> > all.
> > > If you want something else, you are on your own (copy paste
> FeedbackPanel
> > > and tweak the copy).
> > >
> > > Look at the Wicket examples to see some CSS customization.
> > >
> > > Regards,
> > >   Erik.
> > >
> > >
> > >
> > > Erik van Oosten wrote:
> > >
> > >> Again, change it with css.
> > >>
> > >>    Erik.
> > >>
> > >> Daniel Ferreira Castro wrote:
> > >>
> > >>> And if I don´t wanna a unumbered list to be as the presentation of
> the
> > >>> errors and messages?  How to do this?
> > >>>
> > >>> On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
> > >>> francisco.treacy@gmail.com> wrote:
> > >>>
> > >>>
> > >>>
> > >>>> for example, in your css:
> > >>>>
> > >>>> ul .feedbackul {
> > >>>>       list-style-type: none;
> > >>>>       font-size: 0.7em;
> > >>>>       border-top: 1px dashed #BCBAAC;
> > >>>>       margin-left: 6px;
> > >>>>       margin-bottom: 20px;
> > >>>>       padding: 0;
> > >>>>       width: 90%;
> > >>>>       }
> > >>>>
> > >>>> li .feedbackPanelERROR {
> > >>>>       color: red;
> > >>>>       font-size: 1em;
> > >>>>       margin-left: 6px;
> > >>>>       margin-bottom: 20px;
> > >>>>       padding: 0;
> > >>>>       width: 90%;
> > >>>>       }
> > >>>>
> > >>>> francisco
> > >>>>
> > >>>> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <
> > e.vanoosten@grons.nl>
> > >>>> wrote:
> > >>>>
> > >>>>
> > >>>>> The HTML that is rendered by FeedBackPanel provides enough styling
> > that
> > >>>>>
> > >>>>>
> > >>>> you
> > >>>>
> > >>>>
> > >>>>> can do this with CSS.
> > >>>>>
> > >>>>> Regards,
> > >>>>>  Erik.
> > >>>>>
> > >>>>>
> > >>>>> Daniel Ferreira Castro wrote:
> > >>>>>
> > >>>>>
> > >>>>>> Hi,
> > >>>>>>
> > >>>>>> I am looking around internet "but I still haven´t found what I am
> > >>>>>>
> > >>>>>>
> > >>>>> looking
> > >>>>
> > >>>>
> > >>>>> for" - (Bono, do not sue me)
> > >>>>>>
> > >>>>>> I would like to customize a Feedback Panel in a way that error
> > >>>>>> messages
> > >>>>>> are
> > >>>>>> displayed as Red, info as Green and Warn as Yellow (I will need to
> > >>>>>>
> > >>>>>>
> > >>>>> change
> > >>>>
> > >>>>
> > >>>>> the background of this panel to make it confortable for the eyes
> > also)
> > >>>>>>  and,
> > >>>>>> if possible, when a success message is printed an check icon
> > displays
> > >>>>>> by
> > >>>>>> its
> > >>>>>> side (This is probably using border, but I am not sure).
> > >>>>>>
> > >>>>>> How to do this?
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>> --
> > >>>>> Erik van Oosten
> > >>>>> http://day-to-day-stuff.blogspot.com/
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> ---------------------------------------------------------------------
> > >>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >>>>> For additional commands, e-mail: users-help@wicket.apache.org
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>
> ---------------------------------------------------------------------
> > >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >>>> For additional commands, e-mail: users-help@wicket.apache.org
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > > --
> > >
> > > Erik van Oosten
> > > http://day-to-day-stuff.blogspot.com/
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> >
> > --
> > "Two rules to succeed in life:
> > 1 - don´t tell people everything you know."
> > --------
> > We shall go on to the end.
> > We shall fight in France
> > We shall fightover the seas and oceans.
> > We shall fight with growing confidence and growing strength in the air.
> > We shall defend our island whatever the cost may be
> > We shall fight on beaches, we shall fight on the landing grounds,
> > We shall fight in the fields and in the streets,
> > We shall fight on the hills.
> > We shall never surrender.
> > Winston Churchill
> >
>
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>



-- 
"Two rules to succeed in life:
1 - don´t tell people everything you know."
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

Re: Feedback Panel

Posted by Jeremy Thomerson <je...@wickettraining.com>.
You can do everything you've asked for with css.  Just google "css ul" or
"css ul no bullets", etc.  You can view source on a rendered FeedbackPanel
to see the classes it uses.  Really, it's made to be very customizable and
quite straight-forward.

On Fri, Jan 30, 2009 at 7:08 AM, Daniel Ferreira Castro
<df...@gmail.com>wrote:

> No bullets att all will fit the case :)
>
> On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten <e.vanoosten@grons.nl
> >wrote:
>
> > Well, I am assuming you want either a numbered list, or no bullets at
> all.
> > If you want something else, you are on your own (copy paste FeedbackPanel
> > and tweak the copy).
> >
> > Look at the Wicket examples to see some CSS customization.
> >
> > Regards,
> >   Erik.
> >
> >
> >
> > Erik van Oosten wrote:
> >
> >> Again, change it with css.
> >>
> >>    Erik.
> >>
> >> Daniel Ferreira Castro wrote:
> >>
> >>> And if I don´t wanna a unumbered list to be as the presentation of the
> >>> errors and messages?  How to do this?
> >>>
> >>> On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
> >>> francisco.treacy@gmail.com> wrote:
> >>>
> >>>
> >>>
> >>>> for example, in your css:
> >>>>
> >>>> ul .feedbackul {
> >>>>       list-style-type: none;
> >>>>       font-size: 0.7em;
> >>>>       border-top: 1px dashed #BCBAAC;
> >>>>       margin-left: 6px;
> >>>>       margin-bottom: 20px;
> >>>>       padding: 0;
> >>>>       width: 90%;
> >>>>       }
> >>>>
> >>>> li .feedbackPanelERROR {
> >>>>       color: red;
> >>>>       font-size: 1em;
> >>>>       margin-left: 6px;
> >>>>       margin-bottom: 20px;
> >>>>       padding: 0;
> >>>>       width: 90%;
> >>>>       }
> >>>>
> >>>> francisco
> >>>>
> >>>> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <
> e.vanoosten@grons.nl>
> >>>> wrote:
> >>>>
> >>>>
> >>>>> The HTML that is rendered by FeedBackPanel provides enough styling
> that
> >>>>>
> >>>>>
> >>>> you
> >>>>
> >>>>
> >>>>> can do this with CSS.
> >>>>>
> >>>>> Regards,
> >>>>>  Erik.
> >>>>>
> >>>>>
> >>>>> Daniel Ferreira Castro wrote:
> >>>>>
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> I am looking around internet "but I still haven´t found what I am
> >>>>>>
> >>>>>>
> >>>>> looking
> >>>>
> >>>>
> >>>>> for" - (Bono, do not sue me)
> >>>>>>
> >>>>>> I would like to customize a Feedback Panel in a way that error
> >>>>>> messages
> >>>>>> are
> >>>>>> displayed as Red, info as Green and Warn as Yellow (I will need to
> >>>>>>
> >>>>>>
> >>>>> change
> >>>>
> >>>>
> >>>>> the background of this panel to make it confortable for the eyes
> also)
> >>>>>>  and,
> >>>>>> if possible, when a success message is printed an check icon
> displays
> >>>>>> by
> >>>>>> its
> >>>>>> side (This is probably using border, but I am not sure).
> >>>>>>
> >>>>>> How to do this?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> --
> >>>>> Erik van Oosten
> >>>>> http://day-to-day-stuff.blogspot.com/
> >>>>>
> >>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> > --
> >
> > Erik van Oosten
> > http://day-to-day-stuff.blogspot.com/
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> "Two rules to succeed in life:
> 1 - don´t tell people everything you know."
> --------
> We shall go on to the end.
> We shall fight in France
> We shall fightover the seas and oceans.
> We shall fight with growing confidence and growing strength in the air.
> We shall defend our island whatever the cost may be
> We shall fight on beaches, we shall fight on the landing grounds,
> We shall fight in the fields and in the streets,
> We shall fight on the hills.
> We shall never surrender.
> Winston Churchill
>



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

Re: Feedback Panel

Posted by Anton Veretennikov <an...@gmail.com>.
This is a simple Panel (without filtering) that can be used instead of
FeedbackPanel.
It shows itself is any session messages are available. As any Panel it
has it's own html.

public class MyFeedbackPanel extends Panel {

  public MyFeedbackPanel(String id) {
    super(id);
    IModel<List<FeedbackMessage>> messageListModel = new
AbstractReadOnlyModel<List<FeedbackMessage>>() {
      @Override
      public List<FeedbackMessage> getObject() {
        return Session.get().getFeedbackMessages().messages(null);
        //return Session.get().getFeedbackMessages().messages(new
ErrorLevelFeedbackMessageFilter(FeedbackMessage.ERROR));
      }
    };
    ListView<FeedbackMessage> list=new
ListView<FeedbackMessage>("list", messageListModel) {
      @Override
      protected void populateItem(ListItem<FeedbackMessage> item) {
        FeedbackMessage message=item.getModelObject();
        if (message.isError()) {
          item.add(new ExternalImage("image", "images/att_red.gif"));
        } else if (message.isInfo()) {
          item.add(new ExternalImage("image", "images/att_gold.gif"));
        } else {
          item.add(new ExternalImage("image", "images/att_grey.gif"));
        }
        item.add(new Label("text",new PropertyModel(message,"message")));
        message.markRendered();
      }
    };
    add(list);
    //new FeedbackPanel(id)
  }

  @Override
  public boolean isVisible() {
    return Session.get().getFeedbackMessages().size()>0;
  }

}


On Fri, Jan 30, 2009 at 8:08 PM, Daniel Ferreira Castro
<df...@gmail.com> wrote:
> No bullets att all will fit the case :)
>
> On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten <e....@grons.nl>wrote:
>
>> Well, I am assuming you want either a numbered list, or no bullets at all.
>> If you want something else, you are on your own (copy paste FeedbackPanel
>> and tweak the copy).
>>
>> Look at the Wicket examples to see some CSS customization.
>>
>> Regards,
>>   Erik.
>>
>>
>>
>> Erik van Oosten wrote:
>>
>>> Again, change it with css.
>>>
>>>    Erik.
>>>
>>> Daniel Ferreira Castro wrote:
>>>
>>>> And if I don´t wanna a unumbered list to be as the presentation of the
>>>> errors and messages?  How to do this?
>>>>
>>>> On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
>>>> francisco.treacy@gmail.com> wrote:
>>>>
>>>>
>>>>
>>>>> for example, in your css:
>>>>>
>>>>> ul .feedbackul {
>>>>>       list-style-type: none;
>>>>>       font-size: 0.7em;
>>>>>       border-top: 1px dashed #BCBAAC;
>>>>>       margin-left: 6px;
>>>>>       margin-bottom: 20px;
>>>>>       padding: 0;
>>>>>       width: 90%;
>>>>>       }
>>>>>
>>>>> li .feedbackPanelERROR {
>>>>>       color: red;
>>>>>       font-size: 1em;
>>>>>       margin-left: 6px;
>>>>>       margin-bottom: 20px;
>>>>>       padding: 0;
>>>>>       width: 90%;
>>>>>       }
>>>>>
>>>>> francisco
>>>>>
>>>>> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <e....@grons.nl>
>>>>> wrote:
>>>>>
>>>>>
>>>>>> The HTML that is rendered by FeedBackPanel provides enough styling that
>>>>>>
>>>>>>
>>>>> you
>>>>>
>>>>>
>>>>>> can do this with CSS.
>>>>>>
>>>>>> Regards,
>>>>>>  Erik.
>>>>>>
>>>>>>
>>>>>> Daniel Ferreira Castro wrote:
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am looking around internet "but I still haven´t found what I am
>>>>>>>
>>>>>>>
>>>>>> looking
>>>>>
>>>>>
>>>>>> for" - (Bono, do not sue me)
>>>>>>>
>>>>>>> I would like to customize a Feedback Panel in a way that error
>>>>>>> messages
>>>>>>> are
>>>>>>> displayed as Red, info as Green and Warn as Yellow (I will need to
>>>>>>>
>>>>>>>
>>>>>> change
>>>>>
>>>>>
>>>>>> the background of this panel to make it confortable for the eyes also)
>>>>>>>  and,
>>>>>>> if possible, when a success message is printed an check icon displays
>>>>>>> by
>>>>>>> its
>>>>>>> side (This is probably using border, but I am not sure).
>>>>>>>
>>>>>>> How to do this?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> Erik van Oosten
>>>>>> http://day-to-day-stuff.blogspot.com/
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> --
>>
>> Erik van Oosten
>> http://day-to-day-stuff.blogspot.com/
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> "Two rules to succeed in life:
> 1 - don´t tell people everything you know."
> --------
> We shall go on to the end.
> We shall fight in France
> We shall fightover the seas and oceans.
> We shall fight with growing confidence and growing strength in the air.
> We shall defend our island whatever the cost may be
> We shall fight on beaches, we shall fight on the landing grounds,
> We shall fight in the fields and in the streets,
> We shall fight on the hills.
> We shall never surrender.
> Winston Churchill
>

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


Re: Feedback Panel

Posted by Daniel Ferreira Castro <df...@gmail.com>.
No bullets att all will fit the case :)

On Fri, Jan 30, 2009 at 11:01 AM, Erik van Oosten <e....@grons.nl>wrote:

> Well, I am assuming you want either a numbered list, or no bullets at all.
> If you want something else, you are on your own (copy paste FeedbackPanel
> and tweak the copy).
>
> Look at the Wicket examples to see some CSS customization.
>
> Regards,
>   Erik.
>
>
>
> Erik van Oosten wrote:
>
>> Again, change it with css.
>>
>>    Erik.
>>
>> Daniel Ferreira Castro wrote:
>>
>>> And if I don´t wanna a unumbered list to be as the presentation of the
>>> errors and messages?  How to do this?
>>>
>>> On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
>>> francisco.treacy@gmail.com> wrote:
>>>
>>>
>>>
>>>> for example, in your css:
>>>>
>>>> ul .feedbackul {
>>>>       list-style-type: none;
>>>>       font-size: 0.7em;
>>>>       border-top: 1px dashed #BCBAAC;
>>>>       margin-left: 6px;
>>>>       margin-bottom: 20px;
>>>>       padding: 0;
>>>>       width: 90%;
>>>>       }
>>>>
>>>> li .feedbackPanelERROR {
>>>>       color: red;
>>>>       font-size: 1em;
>>>>       margin-left: 6px;
>>>>       margin-bottom: 20px;
>>>>       padding: 0;
>>>>       width: 90%;
>>>>       }
>>>>
>>>> francisco
>>>>
>>>> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <e....@grons.nl>
>>>> wrote:
>>>>
>>>>
>>>>> The HTML that is rendered by FeedBackPanel provides enough styling that
>>>>>
>>>>>
>>>> you
>>>>
>>>>
>>>>> can do this with CSS.
>>>>>
>>>>> Regards,
>>>>>  Erik.
>>>>>
>>>>>
>>>>> Daniel Ferreira Castro wrote:
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am looking around internet "but I still haven´t found what I am
>>>>>>
>>>>>>
>>>>> looking
>>>>
>>>>
>>>>> for" - (Bono, do not sue me)
>>>>>>
>>>>>> I would like to customize a Feedback Panel in a way that error
>>>>>> messages
>>>>>> are
>>>>>> displayed as Red, info as Green and Warn as Yellow (I will need to
>>>>>>
>>>>>>
>>>>> change
>>>>
>>>>
>>>>> the background of this panel to make it confortable for the eyes also)
>>>>>>  and,
>>>>>> if possible, when a success message is printed an check icon displays
>>>>>> by
>>>>>> its
>>>>>> side (This is probably using border, but I am not sure).
>>>>>>
>>>>>> How to do this?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> Erik van Oosten
>>>>> http://day-to-day-stuff.blogspot.com/
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
> --
>
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
"Two rules to succeed in life:
1 - don´t tell people everything you know."
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

Re: Feedback Panel

Posted by Erik van Oosten <e....@grons.nl>.
Well, I am assuming you want either a numbered list, or no bullets at 
all. If you want something else, you are on your own (copy paste 
FeedbackPanel and tweak the copy).

Look at the Wicket examples to see some CSS customization.

Regards,
    Erik.


Erik van Oosten wrote:
> Again, change it with css.
>
>     Erik.
>
> Daniel Ferreira Castro wrote:
>> And if I don´t wanna a unumbered list to be as the presentation of the
>> errors and messages?  How to do this?
>>
>> On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
>> francisco.treacy@gmail.com> wrote:
>>
>>  
>>> for example, in your css:
>>>
>>> ul .feedbackul {
>>>        list-style-type: none;
>>>        font-size: 0.7em;
>>>        border-top: 1px dashed #BCBAAC;
>>>        margin-left: 6px;
>>>        margin-bottom: 20px;
>>>        padding: 0;
>>>        width: 90%;
>>>        }
>>>
>>> li .feedbackPanelERROR {
>>>        color: red;
>>>        font-size: 1em;
>>>        margin-left: 6px;
>>>        margin-bottom: 20px;
>>>        padding: 0;
>>>        width: 90%;
>>>        }
>>>
>>> francisco
>>>
>>> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <e....@grons.nl>
>>> wrote:
>>>    
>>>> The HTML that is rendered by FeedBackPanel provides enough styling 
>>>> that
>>>>       
>>> you
>>>    
>>>> can do this with CSS.
>>>>
>>>> Regards,
>>>>   Erik.
>>>>
>>>>
>>>> Daniel Ferreira Castro wrote:
>>>>      
>>>>> Hi,
>>>>>
>>>>> I am looking around internet "but I still haven´t found what I am
>>>>>         
>>> looking
>>>    
>>>>> for" - (Bono, do not sue me)
>>>>>
>>>>> I would like to customize a Feedback Panel in a way that error 
>>>>> messages
>>>>> are
>>>>> displayed as Red, info as Green and Warn as Yellow (I will need to
>>>>>         
>>> change
>>>    
>>>>> the background of this panel to make it confortable for the eyes 
>>>>> also)
>>>>>  and,
>>>>> if possible, when a success message is printed an check icon 
>>>>> displays by
>>>>> its
>>>>> side (This is probably using border, but I am not sure).
>>>>>
>>>>> How to do this?
>>>>>
>>>>>
>>>>>         
>>>> -- 
>>>> Erik van Oosten
>>>> http://day-to-day-stuff.blogspot.com/
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>     
>>
>>
>>   
>

-- 

Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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


Re: Feedback Panel

Posted by Erik van Oosten <e....@grons.nl>.
Again, change it with css.

     Erik.

Daniel Ferreira Castro wrote:
> And if I don´t wanna a unumbered list to be as the presentation of the
> errors and messages?  How to do this?
>
> On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
> francisco.treacy@gmail.com> wrote:
>
>   
>> for example, in your css:
>>
>> ul .feedbackul {
>>        list-style-type: none;
>>        font-size: 0.7em;
>>        border-top: 1px dashed #BCBAAC;
>>        margin-left: 6px;
>>        margin-bottom: 20px;
>>        padding: 0;
>>        width: 90%;
>>        }
>>
>> li .feedbackPanelERROR {
>>        color: red;
>>        font-size: 1em;
>>        margin-left: 6px;
>>        margin-bottom: 20px;
>>        padding: 0;
>>        width: 90%;
>>        }
>>
>> francisco
>>
>> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <e....@grons.nl>
>> wrote:
>>     
>>> The HTML that is rendered by FeedBackPanel provides enough styling that
>>>       
>> you
>>     
>>> can do this with CSS.
>>>
>>> Regards,
>>>   Erik.
>>>
>>>
>>> Daniel Ferreira Castro wrote:
>>>       
>>>> Hi,
>>>>
>>>> I am looking around internet "but I still haven´t found what I am
>>>>         
>> looking
>>     
>>>> for" - (Bono, do not sue me)
>>>>
>>>> I would like to customize a Feedback Panel in a way that error messages
>>>> are
>>>> displayed as Red, info as Green and Warn as Yellow (I will need to
>>>>         
>> change
>>     
>>>> the background of this panel to make it confortable for the eyes also)
>>>>  and,
>>>> if possible, when a success message is printed an check icon displays by
>>>> its
>>>> side (This is probably using border, but I am not sure).
>>>>
>>>> How to do this?
>>>>
>>>>
>>>>         
>>> --
>>> Erik van Oosten
>>> http://day-to-day-stuff.blogspot.com/
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
>
>   

-- 

Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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


Re: Feedback Panel

Posted by Daniel Ferreira Castro <df...@gmail.com>.
And if I don´t wanna a unumbered list to be as the presentation of the
errors and messages?  How to do this?

On Fri, Jan 30, 2009 at 10:18 AM, francisco treacy <
francisco.treacy@gmail.com> wrote:

> for example, in your css:
>
> ul .feedbackul {
>        list-style-type: none;
>        font-size: 0.7em;
>        border-top: 1px dashed #BCBAAC;
>        margin-left: 6px;
>        margin-bottom: 20px;
>        padding: 0;
>        width: 90%;
>        }
>
> li .feedbackPanelERROR {
>        color: red;
>        font-size: 1em;
>        margin-left: 6px;
>        margin-bottom: 20px;
>        padding: 0;
>        width: 90%;
>        }
>
> francisco
>
> On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <e....@grons.nl>
> wrote:
> > The HTML that is rendered by FeedBackPanel provides enough styling that
> you
> > can do this with CSS.
> >
> > Regards,
> >   Erik.
> >
> >
> > Daniel Ferreira Castro wrote:
> >>
> >> Hi,
> >>
> >> I am looking around internet "but I still haven´t found what I am
> looking
> >> for" - (Bono, do not sue me)
> >>
> >> I would like to customize a Feedback Panel in a way that error messages
> >> are
> >> displayed as Red, info as Green and Warn as Yellow (I will need to
> change
> >> the background of this panel to make it confortable for the eyes also)
> >>  and,
> >> if possible, when a success message is printed an check icon displays by
> >> its
> >> side (This is probably using border, but I am not sure).
> >>
> >> How to do this?
> >>
> >>
> >
> > --
> > Erik van Oosten
> > http://day-to-day-stuff.blogspot.com/
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
"Two rules to succeed in life:
1 - don´t tell people everything you know."
--------
We shall go on to the end.
We shall fight in France
We shall fightover the seas and oceans.
We shall fight with growing confidence and growing strength in the air.
We shall defend our island whatever the cost may be
We shall fight on beaches, we shall fight on the landing grounds,
We shall fight in the fields and in the streets,
We shall fight on the hills.
We shall never surrender.
Winston Churchill

Re: Feedback Panel

Posted by francisco treacy <fr...@gmail.com>.
for example, in your css:

ul .feedbackul {
	list-style-type: none;
	font-size: 0.7em;
	border-top: 1px dashed #BCBAAC;
	margin-left: 6px;
	margin-bottom: 20px;
	padding: 0;
	width: 90%;
	}
	
li .feedbackPanelERROR {
	color: red;
	font-size: 1em;
	margin-left: 6px;
	margin-bottom: 20px;
	padding: 0;
	width: 90%;
	}

francisco

On Fri, Jan 30, 2009 at 1:07 PM, Erik van Oosten <e....@grons.nl> wrote:
> The HTML that is rendered by FeedBackPanel provides enough styling that you
> can do this with CSS.
>
> Regards,
>   Erik.
>
>
> Daniel Ferreira Castro wrote:
>>
>> Hi,
>>
>> I am looking around internet "but I still haven´t found what I am looking
>> for" - (Bono, do not sue me)
>>
>> I would like to customize a Feedback Panel in a way that error messages
>> are
>> displayed as Red, info as Green and Warn as Yellow (I will need to change
>> the background of this panel to make it confortable for the eyes also)
>>  and,
>> if possible, when a success message is printed an check icon displays by
>> its
>> side (This is probably using border, but I am not sure).
>>
>> How to do this?
>>
>>
>
> --
> Erik van Oosten
> http://day-to-day-stuff.blogspot.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: Feedback Panel

Posted by Erik van Oosten <e....@grons.nl>.
The HTML that is rendered by FeedBackPanel provides enough styling that 
you can do this with CSS.

Regards,
    Erik.


Daniel Ferreira Castro wrote:
> Hi,
>
> I am looking around internet "but I still haven´t found what I am looking
> for" - (Bono, do not sue me)
>
> I would like to customize a Feedback Panel in a way that error messages are
> displayed as Red, info as Green and Warn as Yellow (I will need to change
> the background of this panel to make it confortable for the eyes also)  and,
> if possible, when a success message is printed an check icon displays by its
> side (This is probably using border, but I am not sure).
>
> How to do this?
>
>   

-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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