it seems to me that a Label with the message is more appropriate then the feedback mechanism.

-Igor


On 4/16/06, Alexander Lohse < [EMAIL PROTECTED]> wrote:
I have a table of database entries. When there is not entry (yet), I
want to display a message (and I hide the emtpy table).
This information is created/checked during construct-time, as well as
when using a delete-link.

I see now this is seems not be the intended usage. But I see a lot of
cases where messaging is needed the first time a page ist displayed.
E.g. a blog where I use the id as a parameter to display the entry on
a separate page. I need a feedback/error-mechanism when the given id
is not found in the database.

Am 15.04.2006 um 23:24 schrieb Igor Vaynberg:

> why are you adding feedback in such a strange place?
> feedback messages are meant to be added in response to an event,
> like a link's onclick() or form's onsubmit().
>
> -Igor
>
>
> On 4/15/06, Alexander Lohse <[EMAIL PROTECTED]> wrote: No, this does
> not work.
>
> Here is some test code. Funny though, the SimpleAttributeModifier
> works.
>
> public class MyFeedbackPanel extends FeedbackPanel {
>
>      public MyFeedbackPanel() {
>          super("feedback");
>          add(new SimpleAttributeModifier("class", "feedback") {
>              protected boolean isEnabled() {
>                  return !getPage().getFeedbackMessages().isEmpty();
>              }
>          });
>      }
>
>      protected void onAttach() {
>          info("test this");
>      }
> }
>
> Is this a bug?
>
> Regards,
>
> Alex
>
> Am 15.04.2006 um 10:23 schrieb Johan Compagner:
>
> > onAttach is a bit earlier then onBeginRender.
> > And i guess you have to override the onAttach of the feedback panel
> > itself that one is called the first.
> >
> > johan
> >
> >
> > On 4/15/06, Alexander Lohse <[EMAIL PROTECTED]> wrote: Hi,
> >
> > as I said, this does not work!
> >
> > Maybe a Bug in 1.2 b3?
> >
> > Am 15.04.2006 um 00:07 schrieb Johan Compagner:
> >
> > > Component protected void onBeforeRender()
> > > but you have to remember of course if it is the first time or not
> > >
> > >
> > >
> > > On 4/14/06, Alexander Lohse < [EMAIL PROTECTED]> wrote:Different
> > said:
> > >
> > > How can a component add feedback-messages the first time he is
> > > displayed?
> > >
> > >   - I cannot add feedback inside the constructor, because the
> > page is
> > > not yet known.
> > >   - I cannot override setParent, to find out when a page is given.
> > >   - and later inside the process: see below
> > >
> > > Thanks for any help.
> > >
> > > Am 14.04.2006 um 17:36 schrieb Alexander Lohse:
> > >
> > > > Hi,
> > > >
> > > > is there any automatic-pre-render-method-invocation I can use to
> > > > check conditions and add feedback?
> > > >
> > > > I tried onBeforeRender(). This seems to be to late to modify
> > > content?!
> > > >
> > > > I tried onAttach(). Here I have a strange phenomenon: The new
> > > > feedback is not displayed, but I have an SimpleAttributeModifier
> > > > that checks against: getPage().getFeedbackMessages().isEmpty
> () and
> > > > this hits.
> > > >
> > > > Thank you for any help.
> > > >
> > > > Alex
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by xPML, a groundbreaking
> scripting
> > > > language
> > > > that extends applications into web and mobile media. Attend the
> > > > live webcast
> > > > and join the prime developer group breaking into this new coding
> > > > territory!
> > > > http://sel.as-us.falkag.net/sel?
> > > > cmd=lnk&kid=110944&bid=241720&dat=121642
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > > –––––––––––––––––––––––––––––––––––––––
> > > Alexander Lohse
> > > (Entwicklungsleitung & Projektmanagement)
> > >
> > > Human Touch Medienproduktion GmbH
> > > Am See 1
> > > 17440 Klein Jasedow
> > > Deutschland
> > >
> > > Tel: +49 38374 752 11
> > > Fax: +49 38374 752 23
> > > e-mail: [EMAIL PROTECTED]
> > > Internet: http://www.webjazz.de
> > > –––––––––––––––––––––––––––––––––––––––
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > that extends applications into web and mobile media. Attend the
> > > live webcast
> > > and join the prime developer group breaking into this new coding
> > > territory!
> > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> > –––––––––––––––––––––––––––––––––––––––
> > Alexander Lohse
> > (Entwicklungsleitung & Projektmanagement)
> >
> > Human Touch Medienproduktion GmbH
> > Am See 1
> > 17440 Klein Jasedow
> > Deutschland
> >
> > Tel: +49 38374 752 11
> > Fax: +49 38374 752 23
> > e-mail: [EMAIL PROTECTED]
> > Internet: http://www.webjazz.de
> > –––––––––––––––––––––––––––––––––––––––
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > that extends applications into web and mobile media. Attend the
> > live webcast
> > and join the prime developer group breaking into this new coding
> > territory!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> –––––––––––––––––––––––––––––––––––––––
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the
> live webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

–––––––––––––––––––––––––––––––––––––––
Alexander Lohse
(Entwicklungsleitung & Projektmanagement)

Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow
Deutschland

Tel: +49 38374 752 11
Fax: +49 38374 752 23
e-mail: [EMAIL PROTECTED]
Internet: http://www.webjazz.de
–––––––––––––––––––––––––––––––––––––––




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to