Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
Thoughts, anybody?

On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:
 The main problem I am facing is that in Wicket 1.4.x I can't figure
 out how to access ART from the component that was not added to this
 ART, e.g. during ajax form submission.

 I tried to add AjaxFormSubmitBehavior to every Form child of the page
 but that overrode those form ajax-submit functionality and basically
 broke them all. Now I am thinking about adding an onclick behavior
 which will add my component to ART to every AjaxSubmitLink child of
 the page. But this seems to be pretty ugly.

 Thoughts?

 Thanks,

 Ale

 On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 Thank you for the link. I used your code to register an
 ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
 created, but it does not get called when the form is submitted and
 hence it never adds the FeedbackPanel to ART of form submission.

 Where should I add this listener?

 Thanks,

 Alec

 On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
 procrastinative.develo...@gmail.com wrote:
 Hello Alec,
 Could you take a look on this:

 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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


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



Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Tibor Blénessy
You can access current ART associated with request by calling static
AjaxRequestTarget.get()

Tibor

On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote:
 Thoughts, anybody?

 On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:
 The main problem I am facing is that in Wicket 1.4.x I can't figure
 out how to access ART from the component that was not added to this
 ART, e.g. during ajax form submission.

 I tried to add AjaxFormSubmitBehavior to every Form child of the page
 but that overrode those form ajax-submit functionality and basically
 broke them all. Now I am thinking about adding an onclick behavior
 which will add my component to ART to every AjaxSubmitLink child of
 the page. But this seems to be pretty ugly.

 Thoughts?

 Thanks,

 Ale

 On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 Thank you for the link. I used your code to register an
 ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
 created, but it does not get called when the form is submitted and
 hence it never adds the FeedbackPanel to ART of form submission.

 Where should I add this listener?

 Thanks,

 Alec

 On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
 procrastinative.develo...@gmail.com wrote:
 Hello Alec,
 Could you take a look on this:

 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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


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


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



Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
It seems that I cannot access ART from the component that is not
updated by that ART because that component is not rendered during the
lifecycle of that ART.

Here is the problem description:

1. A page is rendered with a feedback panel and a form
2. The form is later submitted via AJAX and does not add any components to ART

How in step 1 can I make sure that feedback panel is updated when form
is submitted in step 2?

Thanks,

Alec

On Mon, Aug 20, 2012 at 9:38 AM, Tibor Blénessy blene...@gmail.com wrote:
 You can access current ART associated with request by calling static
 AjaxRequestTarget.get()

 Tibor

 On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote:
 Thoughts, anybody?

 On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:
 The main problem I am facing is that in Wicket 1.4.x I can't figure
 out how to access ART from the component that was not added to this
 ART, e.g. during ajax form submission.

 I tried to add AjaxFormSubmitBehavior to every Form child of the page
 but that overrode those form ajax-submit functionality and basically
 broke them all. Now I am thinking about adding an onclick behavior
 which will add my component to ART to every AjaxSubmitLink child of
 the page. But this seems to be pretty ugly.

 Thoughts?

 Thanks,

 Ale

 On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 Thank you for the link. I used your code to register an
 ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
 created, but it does not get called when the form is submitted and
 hence it never adds the FeedbackPanel to ART of form submission.

 Where should I add this listener?

 Thanks,

 Alec

 On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
 procrastinative.develo...@gmail.com wrote:
 Hello Alec,
 Could you take a look on this:

 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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


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


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


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



Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Bertrand Guay-Paquet

Hi,

I haven't used 1.4 much so I'm not sure it exists there. Maybe you could 
add a IRequestCycleListener to your app via getRequestCycleListeners() 
which adds the feedback panel in onRequestHandlerResolved? In that 
method, check if the handler type is an AjaxRequestTarget and add your 
feedback panel to it.


On 20/08/2012 11:45 AM, Alec Swan wrote:

It seems that I cannot access ART from the component that is not
updated by that ART because that component is not rendered during the
lifecycle of that ART.

Here is the problem description:

1. A page is rendered with a feedback panel and a form
2. The form is later submitted via AJAX and does not add any components to ART

How in step 1 can I make sure that feedback panel is updated when form
is submitted in step 2?

Thanks,

Alec

On Mon, Aug 20, 2012 at 9:38 AM, Tibor Blénessy blene...@gmail.com wrote:

You can access current ART associated with request by calling static
AjaxRequestTarget.get()

Tibor

On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote:

Thoughts, anybody?

On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:

The main problem I am facing is that in Wicket 1.4.x I can't figure
out how to access ART from the component that was not added to this
ART, e.g. during ajax form submission.

I tried to add AjaxFormSubmitBehavior to every Form child of the page
but that overrode those form ajax-submit functionality and basically
broke them all. Now I am thinking about adding an onclick behavior
which will add my component to ART to every AjaxSubmitLink child of
the page. But this seems to be pretty ugly.

Thoughts?

Thanks,

Ale

On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:

Hello,

Thank you for the link. I used your code to register an
ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
created, but it does not get called when the form is submitted and
hence it never adds the FeedbackPanel to ART of form submission.

Where should I add this listener?

Thanks,

Alec

On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
procrastinative.develo...@gmail.com wrote:

Hello Alec,
Could you take a look on this:

https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
Sent from the Users forum mailing list archive at Nabble.com.

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


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


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


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





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



Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
IRequestCycleListener was added in 1.5.x. Is there anything else I can
do in 1.4.x?

On Mon, Aug 20, 2012 at 12:15 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
 Hi,

 I haven't used 1.4 much so I'm not sure it exists there. Maybe you could add
 a IRequestCycleListener to your app via getRequestCycleListeners() which
 adds the feedback panel in onRequestHandlerResolved? In that method, check
 if the handler type is an AjaxRequestTarget and add your feedback panel to
 it.


 On 20/08/2012 11:45 AM, Alec Swan wrote:

 It seems that I cannot access ART from the component that is not
 updated by that ART because that component is not rendered during the
 lifecycle of that ART.

 Here is the problem description:

 1. A page is rendered with a feedback panel and a form
 2. The form is later submitted via AJAX and does not add any components to
 ART

 How in step 1 can I make sure that feedback panel is updated when form
 is submitted in step 2?

 Thanks,

 Alec

 On Mon, Aug 20, 2012 at 9:38 AM, Tibor Blénessy blene...@gmail.com
 wrote:

 You can access current ART associated with request by calling static
 AjaxRequestTarget.get()

 Tibor

 On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote:

 Thoughts, anybody?

 On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:

 The main problem I am facing is that in Wicket 1.4.x I can't figure
 out how to access ART from the component that was not added to this
 ART, e.g. during ajax form submission.

 I tried to add AjaxFormSubmitBehavior to every Form child of the page
 but that overrode those form ajax-submit functionality and basically
 broke them all. Now I am thinking about adding an onclick behavior
 which will add my component to ART to every AjaxSubmitLink child of
 the page. But this seems to be pretty ugly.

 Thoughts?

 Thanks,

 Ale

 On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 Thank you for the link. I used your code to register an
 ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
 created, but it does not get called when the form is submitted and
 hence it never adds the FeedbackPanel to ART of form submission.

 Where should I add this listener?

 Thanks,

 Alec

 On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
 procrastinative.develo...@gmail.com wrote:

 Hello Alec,
 Could you take a look on this:


 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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

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

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

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




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


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



Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Martin Grigorov
https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java
is all you need.

in your AjaxButton#onSubmit(ART target) {
  target.addListener(new AjaxFeedbackPanelUpdater());
}

Or override WebApplication#newAjaxRequestTarget() and add it for each
and every ART.

On Mon, Aug 20, 2012 at 11:56 PM, Alec Swan alecs...@gmail.com wrote:
 IRequestCycleListener was added in 1.5.x. Is there anything else I can
 do in 1.4.x?

 On Mon, Aug 20, 2012 at 12:15 PM, Bertrand Guay-Paquet
 ber...@step.polymtl.ca wrote:
 Hi,

 I haven't used 1.4 much so I'm not sure it exists there. Maybe you could add
 a IRequestCycleListener to your app via getRequestCycleListeners() which
 adds the feedback panel in onRequestHandlerResolved? In that method, check
 if the handler type is an AjaxRequestTarget and add your feedback panel to
 it.


 On 20/08/2012 11:45 AM, Alec Swan wrote:

 It seems that I cannot access ART from the component that is not
 updated by that ART because that component is not rendered during the
 lifecycle of that ART.

 Here is the problem description:

 1. A page is rendered with a feedback panel and a form
 2. The form is later submitted via AJAX and does not add any components to
 ART

 How in step 1 can I make sure that feedback panel is updated when form
 is submitted in step 2?

 Thanks,

 Alec

 On Mon, Aug 20, 2012 at 9:38 AM, Tibor Blénessy blene...@gmail.com
 wrote:

 You can access current ART associated with request by calling static
 AjaxRequestTarget.get()

 Tibor

 On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote:

 Thoughts, anybody?

 On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:

 The main problem I am facing is that in Wicket 1.4.x I can't figure
 out how to access ART from the component that was not added to this
 ART, e.g. during ajax form submission.

 I tried to add AjaxFormSubmitBehavior to every Form child of the page
 but that overrode those form ajax-submit functionality and basically
 broke them all. Now I am thinking about adding an onclick behavior
 which will add my component to ART to every AjaxSubmitLink child of
 the page. But this seems to be pretty ugly.

 Thoughts?

 Thanks,

 Ale

 On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 Thank you for the link. I used your code to register an
 ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
 created, but it does not get called when the form is submitted and
 hence it never adds the FeedbackPanel to ART of form submission.

 Where should I add this listener?

 Thanks,

 Alec

 On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
 procrastinative.develo...@gmail.com wrote:

 Hello Alec,
 Could you take a look on this:


 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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

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

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

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




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


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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
Thanks, Martin. I ended up using WebApplication#newAjaxRequestTarget()
approach because AjaxFeedbackPanelUpdater approach requires me to know
all forms that can be displayed in the page ahead of time and modify
their onSubmit code.

On Mon, Aug 20, 2012 at 3:01 PM, Martin Grigorov mgrigo...@apache.org wrote:
 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java
 is all you need.

 in your AjaxButton#onSubmit(ART target) {
   target.addListener(new AjaxFeedbackPanelUpdater());
 }

 Or override WebApplication#newAjaxRequestTarget() and add it for each
 and every ART.

 On Mon, Aug 20, 2012 at 11:56 PM, Alec Swan alecs...@gmail.com wrote:
 IRequestCycleListener was added in 1.5.x. Is there anything else I can
 do in 1.4.x?

 On Mon, Aug 20, 2012 at 12:15 PM, Bertrand Guay-Paquet
 ber...@step.polymtl.ca wrote:
 Hi,

 I haven't used 1.4 much so I'm not sure it exists there. Maybe you could add
 a IRequestCycleListener to your app via getRequestCycleListeners() which
 adds the feedback panel in onRequestHandlerResolved? In that method, check
 if the handler type is an AjaxRequestTarget and add your feedback panel to
 it.


 On 20/08/2012 11:45 AM, Alec Swan wrote:

 It seems that I cannot access ART from the component that is not
 updated by that ART because that component is not rendered during the
 lifecycle of that ART.

 Here is the problem description:

 1. A page is rendered with a feedback panel and a form
 2. The form is later submitted via AJAX and does not add any components to
 ART

 How in step 1 can I make sure that feedback panel is updated when form
 is submitted in step 2?

 Thanks,

 Alec

 On Mon, Aug 20, 2012 at 9:38 AM, Tibor Blénessy blene...@gmail.com
 wrote:

 You can access current ART associated with request by calling static
 AjaxRequestTarget.get()

 Tibor

 On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote:

 Thoughts, anybody?

 On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:

 The main problem I am facing is that in Wicket 1.4.x I can't figure
 out how to access ART from the component that was not added to this
 ART, e.g. during ajax form submission.

 I tried to add AjaxFormSubmitBehavior to every Form child of the page
 but that overrode those form ajax-submit functionality and basically
 broke them all. Now I am thinking about adding an onclick behavior
 which will add my component to ART to every AjaxSubmitLink child of
 the page. But this seems to be pretty ugly.

 Thoughts?

 Thanks,

 Ale

 On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 Thank you for the link. I used your code to register an
 ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
 created, but it does not get called when the form is submitted and
 hence it never adds the FeedbackPanel to ART of form submission.

 Where should I add this listener?

 Thanks,

 Alec

 On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
 procrastinative.develo...@gmail.com wrote:

 Hello Alec,
 Could you take a look on this:


 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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

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

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

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




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


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




 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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

Re: Add page feedback to every AjaxRequestTarget

2012-08-19 Thread Alec Swan
The main problem I am facing is that in Wicket 1.4.x I can't figure
out how to access ART from the component that was not added to this
ART, e.g. during ajax form submission.

I tried to add AjaxFormSubmitBehavior to every Form child of the page
but that overrode those form ajax-submit functionality and basically
broke them all. Now I am thinking about adding an onclick behavior
which will add my component to ART to every AjaxSubmitLink child of
the page. But this seems to be pretty ugly.

Thoughts?

Thanks,

Ale

On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 Thank you for the link. I used your code to register an
 ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
 created, but it does not get called when the form is submitted and
 hence it never adds the FeedbackPanel to ART of form submission.

 Where should I add this listener?

 Thanks,

 Alec

 On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
 procrastinative.develo...@gmail.com wrote:
 Hello Alec,
 Could you take a look on this:

 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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


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



Re: Add page feedback to every AjaxRequestTarget

2012-08-17 Thread Alec Swan
Hello,

Thank you for the link. I used your code to register an
ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is
created, but it does not get called when the form is submitted and
hence it never adds the FeedbackPanel to ART of form submission.

Where should I add this listener?

Thanks,

Alec

On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer
procrastinative.develo...@gmail.com wrote:
 Hello Alec,
 Could you take a look on this:

 https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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


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



Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Alec Swan
Hello,

I have a FeedbackPanel on a page. The page can contain different kinds
of forms depending on the end-user preference. Some of those forms are
submitted via AJAX and may or may not add any components to
AjaxRequestTarget.

How can I add the page's FeedbackPanel to AjaxRequestTarget of the
forms submitted via ajax? I think the solution should involve
page.visitChildren(Form.class, new IVisitorForm()) and somehow
adding page FeedbackPanel to ART in IVisitor#component(Form) method,
but I can't figure out how to do that. Or maybe the code should visit
AjaxSubmitLink children and do something there.

Thanks,

Alec

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



Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Bertrand Guay-Paquet

Hi Alec,

Have a look at this:
https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent

I think it does what you need.

On 15/08/2012 3:59 PM, Alec Swan wrote:

Hello,

I have a FeedbackPanel on a page. The page can contain different kinds
of forms depending on the end-user preference. Some of those forms are
submitted via AJAX and may or may not add any components to
AjaxRequestTarget.

How can I add the page's FeedbackPanel to AjaxRequestTarget of the
forms submitted via ajax? I think the solution should involve
page.visitChildren(Form.class, new IVisitorForm()) and somehow
adding page FeedbackPanel to ART in IVisitor#component(Form) method,
but I can't figure out how to do that. Or maybe the code should visit
AjaxSubmitLink children and do something there.

Thanks,

Alec

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




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



Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Alec Swan
Bertrand, that's exactly what I want! Except I am using Wicket 1.4.x :(

Is there a way to implement this in Wicket 1.4.x?

Thanks,

Alec

On Wed, Aug 15, 2012 at 3:02 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
 Hi Alec,

 Have a look at this:
 https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent

 I think it does what you need.


 On 15/08/2012 3:59 PM, Alec Swan wrote:

 Hello,

 I have a FeedbackPanel on a page. The page can contain different kinds
 of forms depending on the end-user preference. Some of those forms are
 submitted via AJAX and may or may not add any components to
 AjaxRequestTarget.

 How can I add the page's FeedbackPanel to AjaxRequestTarget of the
 forms submitted via ajax? I think the solution should involve
 page.visitChildren(Form.class, new IVisitorForm()) and somehow
 adding page FeedbackPanel to ART in IVisitor#component(Form) method,
 but I can't figure out how to do that. Or maybe the code should visit
 AjaxSubmitLink children and do something there.

 Thanks,

 Alec

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



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


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



Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread procrastinative.developer
Hello Alec,
Could you take a look on this:

https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.html
Sent from the Users forum mailing list archive at Nabble.com.

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