Re: Central feedback-panel?

2010-06-07 Thread ViShap
That looks sweet, I will have a closer look later this week.

Thanks!

On Mon, Jun 7, 2010 at 3:15 AM, Martin Grigorov  wrote:

> On Mon, 2010-06-07 at 00:33 -0500, Jeremy Thomerson wrote:
> > On Sun, Jun 6, 2010 at 11:05 PM, shox 
> wrote:
> >
> > > Hi,
> > >
> > > I have a Base-Layout and a changing content in a
> wicket:child-component.
> > >
> > > Can I have a central Dialog, like a jQuery UI-Dialog  (
> > > http://jqueryui.com/demos/dialog/ ) or better like the messages from
> > > stackoverflow (little bar  that gets the Feedback-Messages and pops up
> at
> > > the top of the page, stacking and "cancel-able") that my child-page can
> call
> > > and that pops up then?
> > >
> > >
> > > Following use-case:
> > >
> > > Baseclass > Login-Form:
> > > Login-Form processes user-input, seems correct, the AjaxBehavior is
> called.
> > > But in the backend there is a error with the database.
> > >
> > > So I now want to write there or in the Behavior error("i.e. Sorry, a DB
> > > error occurred") and either the bar pops up itself or I can make it
> appear
> > > without re-rendering the whole page? Best case would be if the function
> to
> > > call or the Element to use would be located in the Base-page.
> > >
> > > Is that possible?
> > > I am sorry if this is a simple task, but I couldn't figure it out.
> > >
> > > Thanks
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> > Sure, use the built-in feedback mechanism, but write your own custom
> > renderer.  In other words, when there is a validation error, etc,
> > Component#error (or #info, #warn, etc.) are called.  Typically, you add a
> > FeedbackPanel to the page and this displays the messages as
> message
> > 1message 2
> >
> > Instead of using the built in FeedbackPanel, just write your own (look at
> > FeedbackPanel for help on how to get / clear the messages, etc).  It can
> > render them into a dialog, toaster, etc.
> Use
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent/jquery/src/main/java/org/wicketstuff/jquery/jgrowl
> as an inspiration.
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Central feedback-panel?

2010-06-07 Thread Martin Grigorov
On Mon, 2010-06-07 at 00:33 -0500, Jeremy Thomerson wrote:
> On Sun, Jun 6, 2010 at 11:05 PM, shox  wrote:
> 
> > Hi,
> >
> > I have a Base-Layout and a changing content in a wicket:child-component.
> >
> > Can I have a central Dialog, like a jQuery UI-Dialog  (
> > http://jqueryui.com/demos/dialog/ ) or better like the messages from
> > stackoverflow (little bar  that gets the Feedback-Messages and pops up at
> > the top of the page, stacking and "cancel-able") that my child-page can call
> > and that pops up then?
> >
> >
> > Following use-case:
> >
> > Baseclass > Login-Form:
> > Login-Form processes user-input, seems correct, the AjaxBehavior is called.
> > But in the backend there is a error with the database.
> >
> > So I now want to write there or in the Behavior error("i.e. Sorry, a DB
> > error occurred") and either the bar pops up itself or I can make it appear
> > without re-rendering the whole page? Best case would be if the function to
> > call or the Element to use would be located in the Base-page.
> >
> > Is that possible?
> > I am sorry if this is a simple task, but I couldn't figure it out.
> >
> > Thanks
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> Sure, use the built-in feedback mechanism, but write your own custom
> renderer.  In other words, when there is a validation error, etc,
> Component#error (or #info, #warn, etc.) are called.  Typically, you add a
> FeedbackPanel to the page and this displays the messages as message
> 1message 2
> 
> Instead of using the built in FeedbackPanel, just write your own (look at
> FeedbackPanel for help on how to get / clear the messages, etc).  It can
> render them into a dialog, toaster, etc.
Use
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent/jquery/src/main/java/org/wicketstuff/jquery/jgrowl
as an inspiration.
> 
> 



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



Re: Central feedback-panel?

2010-06-06 Thread Jeremy Thomerson
On Sun, Jun 6, 2010 at 11:05 PM, shox  wrote:

> Hi,
>
> I have a Base-Layout and a changing content in a wicket:child-component.
>
> Can I have a central Dialog, like a jQuery UI-Dialog  (
> http://jqueryui.com/demos/dialog/ ) or better like the messages from
> stackoverflow (little bar  that gets the Feedback-Messages and pops up at
> the top of the page, stacking and "cancel-able") that my child-page can call
> and that pops up then?
>
>
> Following use-case:
>
> Baseclass > Login-Form:
> Login-Form processes user-input, seems correct, the AjaxBehavior is called.
> But in the backend there is a error with the database.
>
> So I now want to write there or in the Behavior error("i.e. Sorry, a DB
> error occurred") and either the bar pops up itself or I can make it appear
> without re-rendering the whole page? Best case would be if the function to
> call or the Element to use would be located in the Base-page.
>
> Is that possible?
> I am sorry if this is a simple task, but I couldn't figure it out.
>
> Thanks
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
Sure, use the built-in feedback mechanism, but write your own custom
renderer.  In other words, when there is a validation error, etc,
Component#error (or #info, #warn, etc.) are called.  Typically, you add a
FeedbackPanel to the page and this displays the messages as message
1message 2

Instead of using the built in FeedbackPanel, just write your own (look at
FeedbackPanel for help on how to get / clear the messages, etc).  It can
render them into a dialog, toaster, etc.


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


Central feedback-panel?

2010-06-06 Thread shox
Hi,

I have a Base-Layout and a changing content in a wicket:child-component.

Can I have a central Dialog, like a jQuery UI-Dialog  ( 
http://jqueryui.com/demos/dialog/ ) or better like the messages from 
stackoverflow (little bar  that gets the Feedback-Messages and pops up at the 
top of the page, stacking and "cancel-able") that my child-page can call and 
that pops up then?


Following use-case:

Baseclass > Login-Form:
Login-Form processes user-input, seems correct, the AjaxBehavior is called.
But in the backend there is a error with the database.

So I now want to write there or in the Behavior error("i.e. Sorry, a DB error 
occurred") and either the bar pops up itself or I can make it appear without 
re-rendering the whole page? Best case would be if the function to call or the 
Element to use would be located in the Base-page.

Is that possible?
I am sorry if this is a simple task, but I couldn't figure it out.

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