Re: AbstractAjaxRestartableTimerBehavior while stop the behavior Access denied page is appeared in wicket 1.5.8

2012-10-04 Thread Martin Grigorov
Hi,

I haven't looked at your app but I think I know what is the problem.
AccessDeniedPage will be shown if you try to use a disabled Behavior.
I.e. your custom behavior schedules JavaScript timer (setTimeout) that
will trigger after 2 secs, then you stop it, then the timer fires and
at the server side Wicket realizes that the behavior is not enabled
(stopped).

This problem is solved in Wicket 6.  AbstractAjaxTimerBehavior is not
restartable. Each time you call #stop() on it it will remove the timer
(clearTimeout) at the client side too.
Next time you (re-)start it it will schedule a completely new timer.

On Thu, Oct 4, 2012 at 10:27 AM, Vignesh Palanisamy
 wrote:
> Hi every one
>
>  AbstractAjaxRestartableTimerBehavior - "patched up" version of
> AbstractAjaxTimerBehavior to provide "restart" functionality.
>
> we are using the AbstractAjaxRestartableTimerBehaviour it works fine in the
> previous version right now we are upgrading wicket to 1.5.8 in that while
> stopping the Auto Refresh timerBehavior shows the Access denied page
>
> i had attach an quick start program with it.. in that i set the duration as
> 2 seconds. every 2 seconds it will update the feedback panel... click stop
> link that error will appears..
>
>
> is there any other solution for it..
>
>
> thanks in advance
> Vignesh Palanisamy
>
>
> -
> 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: AbstractAjaxRestartableTimerBehavior while stop the behavior Access denied page is appeared in wicket 1.5.8

2012-10-04 Thread Vignesh Palanisamy
thanks martin for the quick reply..

is there any other way to solve the problem in wicket 1.5.8.  because right
now only we are upgraded to 1.5.8




On Thu, Oct 4, 2012 at 3:34 PM, Martin Grigorov wrote:

> Hi,
>
> I haven't looked at your app but I think I know what is the problem.
> AccessDeniedPage will be shown if you try to use a disabled Behavior.
> I.e. your custom behavior schedules JavaScript timer (setTimeout) that
> will trigger after 2 secs, then you stop it, then the timer fires and
> at the server side Wicket realizes that the behavior is not enabled
> (stopped).
>
> This problem is solved in Wicket 6.  AbstractAjaxTimerBehavior is not
> restartable. Each time you call #stop() on it it will remove the timer
> (clearTimeout) at the client side too.
> Next time you (re-)start it it will schedule a completely new timer.
>
> On Thu, Oct 4, 2012 at 10:27 AM, Vignesh Palanisamy
>  wrote:
> > Hi every one
> >
> >  AbstractAjaxRestartableTimerBehavior - "patched up" version of
> > AbstractAjaxTimerBehavior to provide "restart" functionality.
> >
> > we are using the AbstractAjaxRestartableTimerBehaviour it works fine in
> the
> > previous version right now we are upgrading wicket to 1.5.8 in that while
> > stopping the Auto Refresh timerBehavior shows the Access denied page
> >
> > i had attach an quick start program with it.. in that i set the duration
> as
> > 2 seconds. every 2 seconds it will update the feedback panel... click
> stop
> > link that error will appears..
> >
> >
> > is there any other solution for it..
> >
> >
> > thanks in advance
> > Vignesh Palanisamy
> >
> >
> > -
> > 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: AbstractAjaxRestartableTimerBehavior while stop the behavior Access denied page is appeared in wicket 1.5.8

2012-10-04 Thread Martin Grigorov
See the impl in 6.x and merge the improvements in your custom behavior.

On Thu, Oct 4, 2012 at 10:55 AM, Vignesh Palanisamy
 wrote:
> thanks martin for the quick reply..
>
> is there any other way to solve the problem in wicket 1.5.8.  because right
> now only we are upgraded to 1.5.8
>
>
>
>
> On Thu, Oct 4, 2012 at 3:34 PM, Martin Grigorov wrote:
>
>> Hi,
>>
>> I haven't looked at your app but I think I know what is the problem.
>> AccessDeniedPage will be shown if you try to use a disabled Behavior.
>> I.e. your custom behavior schedules JavaScript timer (setTimeout) that
>> will trigger after 2 secs, then you stop it, then the timer fires and
>> at the server side Wicket realizes that the behavior is not enabled
>> (stopped).
>>
>> This problem is solved in Wicket 6.  AbstractAjaxTimerBehavior is not
>> restartable. Each time you call #stop() on it it will remove the timer
>> (clearTimeout) at the client side too.
>> Next time you (re-)start it it will schedule a completely new timer.
>>
>> On Thu, Oct 4, 2012 at 10:27 AM, Vignesh Palanisamy
>>  wrote:
>> > Hi every one
>> >
>> >  AbstractAjaxRestartableTimerBehavior - "patched up" version of
>> > AbstractAjaxTimerBehavior to provide "restart" functionality.
>> >
>> > we are using the AbstractAjaxRestartableTimerBehaviour it works fine in
>> the
>> > previous version right now we are upgrading wicket to 1.5.8 in that while
>> > stopping the Auto Refresh timerBehavior shows the Access denied page
>> >
>> > i had attach an quick start program with it.. in that i set the duration
>> as
>> > 2 seconds. every 2 seconds it will update the feedback panel... click
>> stop
>> > link that error will appears..
>> >
>> >
>> > is there any other solution for it..
>> >
>> >
>> > thanks in advance
>> > Vignesh Palanisamy
>> >
>> >
>> > -
>> > 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
>>
>>



-- 
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: BackButton support Browser Compatibility issue

2012-10-04 Thread Uwe Schäfer

On 10/03/2012 08:44 AM, vidhi wrote:

Hi


   After reading the documentation and forum discussions on the same topic I
tried to put my components and everything in a form and used the -



  form.setVersioned(true);
for enabling the Browser BackButton Support.



   This works fine for Mozilla Firefox. However, the Back Button of Chrome
and Internet Explorer fails


We currently suffer from the same problem. using method GET does not 
change the issue.


Any idea?

cu uwe


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



Re: BackButton support Browser Compatibility issue

2012-10-04 Thread Martin Grigorov
Hi,

We will need some more information to be able to find the problem.
"It works in Firefox, but doesn't in IE" doesn't tell much.

What really matters for this functionality is whether the page itself
is versioned. By default all pages are versioned - see
org.apache.wicket.settings.IPageSettings#getVersionPagesByDefault.

Please describe what you do in the page and what is the result when
you go back. What is different between FF and Chrome ?
Check whether the browser doesn't use its cache when you go back.

On Thu, Oct 4, 2012 at 11:10 AM, Uwe Schäfer  wrote:
> On 10/03/2012 08:44 AM, vidhi wrote:
>
> Hi
>
>
>>After reading the documentation and forum discussions on the same topic
>> I
>> tried to put my components and everything in a form and used the -
>
>
>>   form.setVersioned(true);
>> for enabling the Browser BackButton Support.
>
>
>>This works fine for Mozilla Firefox. However, the Back Button of Chrome
>> and Internet Explorer fails
>
>
> We currently suffer from the same problem. using method GET does not change
> the issue.
>
> Any idea?
>
> cu uwe
>
>
>
> -
> 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: BackButton support Browser Compatibility issue

2012-10-04 Thread Uwe Schäfer

On 10/04/2012 10:24 AM, Martin Grigorov wrote:

Hi Martin


What really matters for this functionality is whether the page itself
is versioned. By default all pages are versioned - see
org.apache.wicket.settings.IPageSettings#getVersionPagesByDefault.


page is versioned, form is explicitely set versioned, FormComponents do the
modelChanging()
...
modelChanged()

dance. (Simple radios)

it looks like any form submit is just applied to the last page version, 
instead of previous ones.


p1
p2
p3 <- back btn
p2 <- sunmit
p4 altering the state of p3

the form is submitted by a simple javascript:form.submit() call.

GET vs POST does not make a difference.

the page itself comes back with a 302

HTTP/1.1 302 Found
Server: Resin/3.1.8
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, no-store
Location: http://192.168.1.218:8081/project?6
Content-Type: text/html
Content-Length: 73
Date: Thu, 04 Oct 2012 08:48:22 GMT

and then with the page

HTTP/1.1 200 OK
Server: Resin/3.1.8
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, no-store
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 04 Oct 2012 08:48:23 GMT



Please describe what you do in the page and what is the result when
you go back. What is different between FF and Chrome ?
Check whether the browser doesn't use its cache when you go back.


a sysout on oBR indicated, that the page is rerequested every time.

let me know whatever additional info i can provide.

cu uwe

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



Re: BackButton support Browser Compatibility issue

2012-10-04 Thread Martin Grigorov
Create a ticket with a quickstart please.

On Thu, Oct 4, 2012 at 11:53 AM, Uwe Schäfer  wrote:
> On 10/04/2012 10:24 AM, Martin Grigorov wrote:
>
> Hi Martin
>
>
>> What really matters for this functionality is whether the page itself
>> is versioned. By default all pages are versioned - see
>> org.apache.wicket.settings.IPageSettings#getVersionPagesByDefault.
>
>
> page is versioned, form is explicitely set versioned, FormComponents do the
> modelChanging()
> ...
> modelChanged()
>
> dance. (Simple radios)
>
> it looks like any form submit is just applied to the last page version,
> instead of previous ones.
>
> p1
> p2
> p3 <- back btn
> p2 <- sunmit
> p4 altering the state of p3
>
> the form is submitted by a simple javascript:form.submit() call.
>
> GET vs POST does not make a difference.
>
> the page itself comes back with a 302
>
> HTTP/1.1 302 Found
> Server: Resin/3.1.8
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Pragma: no-cache
> Cache-Control: no-cache, no-store
> Location: http://192.168.1.218:8081/project?6
> Content-Type: text/html
> Content-Length: 73
> Date: Thu, 04 Oct 2012 08:48:22 GMT
>
> and then with the page
>
> HTTP/1.1 200 OK
> Server: Resin/3.1.8
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Pragma: no-cache
> Cache-Control: no-cache, no-store
> Content-Type: text/html; charset=UTF-8
> Transfer-Encoding: chunked
> Date: Thu, 04 Oct 2012 08:48:23 GMT
>
>
>
>> Please describe what you do in the page and what is the result when
>> you go back. What is different between FF and Chrome ?
>> Check whether the browser doesn't use its cache when you go back.
>
>
> a sysout on oBR indicated, that the page is rerequested every time.
>
> let me know whatever additional info i can provide.
>
>
> cu uwe
>
> -
> 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: AbstractAjaxRestartableTimerBehavior while stop the behavior Access denied page is appeared in wicket 1.5.8

2012-10-04 Thread Vignesh Palanisamy
Thanks martin..
 we are planing to upgrade to wicket 6.x

On Thu, Oct 4, 2012 at 3:59 PM, Martin Grigorov wrote:

> See the impl in 6.x and merge the improvements in your custom behavior.
>
> On Thu, Oct 4, 2012 at 10:55 AM, Vignesh Palanisamy
>  wrote:
> > thanks martin for the quick reply..
> >
> > is there any other way to solve the problem in wicket 1.5.8.  because
> right
> > now only we are upgraded to 1.5.8
> >
> >
> >
> >
> > On Thu, Oct 4, 2012 at 3:34 PM, Martin Grigorov  >wrote:
> >
> >> Hi,
> >>
> >> I haven't looked at your app but I think I know what is the problem.
> >> AccessDeniedPage will be shown if you try to use a disabled Behavior.
> >> I.e. your custom behavior schedules JavaScript timer (setTimeout) that
> >> will trigger after 2 secs, then you stop it, then the timer fires and
> >> at the server side Wicket realizes that the behavior is not enabled
> >> (stopped).
> >>
> >> This problem is solved in Wicket 6.  AbstractAjaxTimerBehavior is not
> >> restartable. Each time you call #stop() on it it will remove the timer
> >> (clearTimeout) at the client side too.
> >> Next time you (re-)start it it will schedule a completely new timer.
> >>
> >> On Thu, Oct 4, 2012 at 10:27 AM, Vignesh Palanisamy
> >>  wrote:
> >> > Hi every one
> >> >
> >> >  AbstractAjaxRestartableTimerBehavior - "patched up" version of
> >> > AbstractAjaxTimerBehavior to provide "restart" functionality.
> >> >
> >> > we are using the AbstractAjaxRestartableTimerBehaviour it works fine
> in
> >> the
> >> > previous version right now we are upgrading wicket to 1.5.8 in that
> while
> >> > stopping the Auto Refresh timerBehavior shows the Access denied page
> >> >
> >> > i had attach an quick start program with it.. in that i set the
> duration
> >> as
> >> > 2 seconds. every 2 seconds it will update the feedback panel... click
> >> stop
> >> > link that error will appears..
> >> >
> >> >
> >> > is there any other solution for it..
> >> >
> >> >
> >> > thanks in advance
> >> > Vignesh Palanisamy
> >> >
> >> >
> >> > -
> >> > 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
> >>
> >>
>
>
>
> --
> 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: BackButton support Browser Compatibility issue

2012-10-04 Thread vidhi
Hello,

  Thanks for reply. My specific problem with various browsers is as follows:
My app has a table and on click of a button i add a row to that table.
Pressing browser back button after adding row in -

1. Firefox : Takes me to state when no row was added to table.
2. Chrome and Internet Explorer : The whole URL before the current app was
run in browser.   

Vidhi



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652660.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



Re: BackButton support Browser Compatibility issue

2012-10-04 Thread Martin Grigorov
On Thu, Oct 4, 2012 at 12:14 PM, vidhi  wrote:
> Hello,
>
>   Thanks for reply. My specific problem with various browsers is as follows:
> My app has a table and on click of a button i add a row to that table.
> Pressing browser back button after adding row in -
>
> 1. Firefox : Takes me to state when no row was added to table.
> 2. Chrome and Internet Explorer : The whole URL before the current app was
> run in browser.

Can you verify that :
1) the url when there is no new record in the table is 'someNumber'
(in the URL you should see ?someNumber)
2) after adding the new record the page is repainted with 'someNumber + 1'

>
> Vidhi
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652660.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
>



-- 
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: BackButton support Browser Compatibility issue

2012-10-04 Thread Martin Grigorov
On Thu, Oct 4, 2012 at 12:38 PM, vidhi  wrote:
> I verified both the points. The number exists in the URL but does not change
> after I add a new row to table. When i click on Back Button, the whole
> application is lost and same thing happens even after cleaning the cache and
> all local storage in browser
>

Do you add the new record with Ajax button/link ?

>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652662.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
>



-- 
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: BackButton support Browser Compatibility issue

2012-10-04 Thread Martin Grigorov
That explains the behavior.
Wicket doesn't support out of the box back button for Ajax
interactions. Back button support works only for non-Ajax, i.e. full
page repaints.

There are partial solutions which work for specific usecases.
Read http://markmail.org/message/mslvhwpo7iep42dq for a description
how I did it in once.

On Thu, Oct 4, 2012 at 12:48 PM, vidhi  wrote:
> I have used AjaxSubmitLink instead of Ajax Button. Here is a snippet -
>
>  AjaxSubmitLink addLink = new AjaxSubmitLink("addLink", form) {
>@Override
>public void onSubmit(AjaxRequestTarget target, Form form) {
>Contact c=new Contact("X",new Date(),"description X");
>listView.getModelObject().add(c);
>  if (target != null)
>target.add(table);
>}
>  };
>
> On Thu, Oct 4, 2012 at 3:14 PM, Martin Grigorov-4 [via Apache Wicket] <
> ml-node+s1842946n4652663...@n4.nabble.com> wrote:
>
>> On Thu, Oct 4, 2012 at 12:38 PM, vidhi <[hidden 
>> email]>
>> wrote:
>> > I verified both the points. The number exists in the URL but does not
>> change
>> > after I add a new row to table. When i click on Back Button, the whole
>> > application is lost and same thing happens even after cleaning the cache
>> and
>> > all local storage in browser
>> >
>>
>> Do you add the new record with Ajax button/link ?
>>
>> >
>> >
>> > --
>> > View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652662.html
>>
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > -
>> > To unsubscribe, e-mail: [hidden 
>> > email]
>> > For additional commands, e-mail: [hidden 
>> > email]
>> >
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]
>> For additional commands, e-mail: [hidden 
>> email]
>>
>>
>>
>> --
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652663.html
>>  To unsubscribe from BackButton support Browser Compatibility issue, click
>> here
>> .
>> NAML
>>
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652664.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
>



-- 
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: BackButton support Browser Compatibility issue

2012-10-04 Thread vidhi
Thanks Martin. I get the root of the problem now. By the way, can you
suggest some fix or workaround to make such an App (which uses ajax
components) support Backbutton?

On Thu, Oct 4, 2012 at 3:34 PM, Martin Grigorov-4 [via Apache Wicket] <
ml-node+s1842946n465266...@n4.nabble.com> wrote:

> That explains the behavior.
> Wicket doesn't support out of the box back button for Ajax
> interactions. Back button support works only for non-Ajax, i.e. full
> page repaints.
>
> There are partial solutions which work for specific usecases.
> Read http://markmail.org/message/mslvhwpo7iep42dq for a description
> how I did it in once.
>
> On Thu, Oct 4, 2012 at 12:48 PM, vidhi <[hidden 
> email]>
> wrote:
>
> > I have used AjaxSubmitLink instead of Ajax Button. Here is a snippet -
> >
> >  AjaxSubmitLink addLink = new AjaxSubmitLink("addLink", form) {
> >@Override
> >public void onSubmit(AjaxRequestTarget target, Form form) {
> >Contact c=new Contact("X",new Date(),"description X");
> >listView.getModelObject().add(c);
> >  if (target != null)
> >target.add(table);
> >}
> >  };
> >
> > On Thu, Oct 4, 2012 at 3:14 PM, Martin Grigorov-4 [via Apache Wicket] <
> > [hidden email] >
> wrote:
> >
> >> On Thu, Oct 4, 2012 at 12:38 PM, vidhi <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4652663&i=0>>
> >> wrote:
> >> > I verified both the points. The number exists in the URL but does not
> >> change
> >> > after I add a new row to table. When i click on Back Button, the
> whole
> >> > application is lost and same thing happens even after cleaning the
> cache
> >> and
> >> > all local storage in browser
> >> >
> >>
> >> Do you add the new record with Ajax button/link ?
> >>
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652662.html
> >>
> >> > Sent from the Users forum mailing list archive at Nabble.com.
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4652663&i=1>
> >> > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4652663&i=2>
> >> >
> >>
> >>
> >>
> >> --
> >> Martin Grigorov
> >> jWeekend
> >> Training, Consulting, Development
> >> http://jWeekend.com
> >>
> >> -
> >> To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4652663&i=3>
> >> For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4652663&i=4>
> >>
> >>
> >>
> >> --
> >>  If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652663.html
> >>  To unsubscribe from BackButton support Browser Compatibility issue,
> click
> >> here<
>
> >> .
> >> NAML<
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652664.html
>
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652665.html
>  To unsubscribe from BackButton support Browser Compatibility issue, click
> here
> .
> NAML

Re: BackButton support Browser Compatibility issue

2012-10-04 Thread Martin Grigorov
It depends what "go back" should mean in your case.
Does it mean: go to a previous state of the whole page or remove the
just added record from the current page's state ?

Wicket doesn't create a new page version (i.e. state) for Ajax
requests so the only option is to remove the new record from the
current page version.
With the workaround at http://markmail.org/message/mslvhwpo7iep42dq
you can try to encode all needed info in the url hash and later when
notified by the browser that the user wants to go back you should use
the hash value to decide how to revert it.
That's why I'm saying this is highly dependent on your use case.

On Thu, Oct 4, 2012 at 1:31 PM, vidhi  wrote:
> Thanks Martin. I get the root of the problem now. By the way, can you
> suggest some fix or workaround to make such an App (which uses ajax
> components) support Backbutton?
>
> On Thu, Oct 4, 2012 at 3:34 PM, Martin Grigorov-4 [via Apache Wicket] <
> ml-node+s1842946n465266...@n4.nabble.com> wrote:
>
>> That explains the behavior.
>> Wicket doesn't support out of the box back button for Ajax
>> interactions. Back button support works only for non-Ajax, i.e. full
>> page repaints.
>>
>> There are partial solutions which work for specific usecases.
>> Read http://markmail.org/message/mslvhwpo7iep42dq for a description
>> how I did it in once.
>>
>> On Thu, Oct 4, 2012 at 12:48 PM, vidhi <[hidden 
>> email]>
>> wrote:
>>
>> > I have used AjaxSubmitLink instead of Ajax Button. Here is a snippet -
>> >
>> >  AjaxSubmitLink addLink = new AjaxSubmitLink("addLink", form) {
>> >@Override
>> >public void onSubmit(AjaxRequestTarget target, Form form) {
>> >Contact c=new Contact("X",new Date(),"description X");
>> >listView.getModelObject().add(c);
>> >  if (target != null)
>> >target.add(table);
>> >}
>> >  };
>> >
>> > On Thu, Oct 4, 2012 at 3:14 PM, Martin Grigorov-4 [via Apache Wicket] <
>> > [hidden email] >
>> wrote:
>> >
>> >> On Thu, Oct 4, 2012 at 12:38 PM, vidhi <[hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4652663&i=0>>
>> >> wrote:
>> >> > I verified both the points. The number exists in the URL but does not
>> >> change
>> >> > after I add a new row to table. When i click on Back Button, the
>> whole
>> >> > application is lost and same thing happens even after cleaning the
>> cache
>> >> and
>> >> > all local storage in browser
>> >> >
>> >>
>> >> Do you add the new record with Ajax button/link ?
>> >>
>> >> >
>> >> >
>> >> > --
>> >> > View this message in context:
>> >>
>> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652662.html
>> >>
>> >> > Sent from the Users forum mailing list archive at Nabble.com.
>> >> >
>> >> > -
>> >> > To unsubscribe, e-mail: [hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4652663&i=1>
>> >> > For additional commands, e-mail: [hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4652663&i=2>
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Martin Grigorov
>> >> jWeekend
>> >> Training, Consulting, Development
>> >> http://jWeekend.com
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4652663&i=3>
>> >> For additional commands, e-mail: [hidden email]<
>> http://user/SendEmail.jtp?type=node&node=4652663&i=4>
>> >>
>> >>
>> >>
>> >> --
>> >>  If you reply to this email, your message will be added to the
>> discussion
>> >> below:
>> >>
>> >>
>> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652663.html
>> >>  To unsubscribe from BackButton support Browser Compatibility issue,
>> click
>> >> here<
>>
>> >> .
>> >> NAML<
>> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>> >>
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652664.html
>>
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > -
>> > To unsubscribe, e-mail: [hidden 
>> > email]
>> > For additional commands, e-mail: [hidden 
>> > email]
>> >
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Developm

Re: BackButton support Browser Compatibility issue

2012-10-04 Thread vidhi
Ok Martin. Thanks for the guidance. Will work on the info provided.

On Thu, Oct 4, 2012 at 4:16 PM, Martin Grigorov-4 [via Apache Wicket] <
ml-node+s1842946n4652667...@n4.nabble.com> wrote:

> It depends what "go back" should mean in your case.
> Does it mean: go to a previous state of the whole page or remove the
> just added record from the current page's state ?
>
> Wicket doesn't create a new page version (i.e. state) for Ajax
> requests so the only option is to remove the new record from the
> current page version.
> With the workaround at http://markmail.org/message/mslvhwpo7iep42dq
> you can try to encode all needed info in the url hash and later when
> notified by the browser that the user wants to go back you should use
> the hash value to decide how to revert it.
> That's why I'm saying this is highly dependent on your use case.
>
> On Thu, Oct 4, 2012 at 1:31 PM, vidhi <[hidden 
> email]>
> wrote:
>
> > Thanks Martin. I get the root of the problem now. By the way, can you
> > suggest some fix or workaround to make such an App (which uses ajax
> > components) support Backbutton?
> >
> > On Thu, Oct 4, 2012 at 3:34 PM, Martin Grigorov-4 [via Apache Wicket] <
> > [hidden email] >
> wrote:
> >
> >> That explains the behavior.
> >> Wicket doesn't support out of the box back button for Ajax
> >> interactions. Back button support works only for non-Ajax, i.e. full
> >> page repaints.
> >>
> >> There are partial solutions which work for specific usecases.
> >> Read http://markmail.org/message/mslvhwpo7iep42dq for a description
> >> how I did it in once.
> >>
> >> On Thu, Oct 4, 2012 at 12:48 PM, vidhi <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4652665&i=0>>
> >> wrote:
> >>
> >> > I have used AjaxSubmitLink instead of Ajax Button. Here is a snippet
> -
> >> >
> >> >  AjaxSubmitLink addLink = new AjaxSubmitLink("addLink", form) {
> >> >@Override
> >> >public void onSubmit(AjaxRequestTarget target, Form form) {
> >> >Contact c=new Contact("X",new Date(),"description X");
> >> >listView.getModelObject().add(c);
> >> >  if (target != null)
> >> >target.add(table);
> >> >}
> >> >  };
> >> >
> >> > On Thu, Oct 4, 2012 at 3:14 PM, Martin Grigorov-4 [via Apache Wicket]
> <
> >> > [hidden email] >
>
> >> wrote:
> >> >
> >> >> On Thu, Oct 4, 2012 at 12:38 PM, vidhi <[hidden email]<
> >> http://user/SendEmail.jtp?type=node&node=4652663&i=0>>
> >> >> wrote:
> >> >> > I verified both the points. The number exists in the URL but does
> not
> >> >> change
> >> >> > after I add a new row to table. When i click on Back Button, the
> >> whole
> >> >> > application is lost and same thing happens even after cleaning the
> >> cache
> >> >> and
> >> >> > all local storage in browser
> >> >> >
> >> >>
> >> >> Do you add the new record with Ajax button/link ?
> >> >>
> >> >> >
> >> >> >
> >> >> > --
> >> >> > View this message in context:
> >> >>
> >>
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652662.html
> >> >>
> >> >> > Sent from the Users forum mailing list archive at Nabble.com.
> >> >> >
> >> >> >
> -
> >> >> > To unsubscribe, e-mail: [hidden email]<
> >> http://user/SendEmail.jtp?type=node&node=4652663&i=1>
> >> >> > For additional commands, e-mail: [hidden email]<
> >> http://user/SendEmail.jtp?type=node&node=4652663&i=2>
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Martin Grigorov
> >> >> jWeekend
> >> >> Training, Consulting, Development
> >> >> http://jWeekend.com
> >> >>
> >> >>
> -
> >> >> To unsubscribe, e-mail: [hidden email]<
> >> http://user/SendEmail.jtp?type=node&node=4652663&i=3>
> >> >> For additional commands, e-mail: [hidden email]<
> >> http://user/SendEmail.jtp?type=node&node=4652663&i=4>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >>  If you reply to this email, your message will be added to the
> >> discussion
> >> >> below:
> >> >>
> >> >>
> >>
> http://apache-wicket.1842946.n4.nabble.com/BackButton-support-Browser-Compatibility-issue-tp4652629p4652663.html
> >> >>  To unsubscribe from BackButton support Browser Compatibility issue,
> >> click
> >> >> here<
> >>
> >> >> .
> >> >> NAML<
> >>
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://

Re: Reseting a textField of an upload form

2012-10-04 Thread Andrea Del Bene
The problem seems related to the HTML. I've tried to put the table 
inside the form and it works. Like this:





[filename]
[fileupload]





type="submit" value="add"/>







Home.java

Home.html

@Paul: Yeah I already checked these examples.

@Andrea: You may find my page and markup attached to the post

When I run it I fill the form a first time, when I click on submit the text
field is cleared and I see in the log:
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : onSubmit
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : fileName=Test1
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
fileInput==null?=false
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : got 9418 bytes
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : onSubmit
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : fileName=Test1
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
fileInput==null?=false
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : Got 9418 bytes
[10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : model cleaned
So it is okBut when I fill the form another time I get:

[10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : onSubmit
[10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : fileName=null
[10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
fileInput==null?=true
[10:49:20] [ERROR] [15485575@qtp-22725577-0] [Home] ajax : fileInput is null
[10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form : onSubmit
[10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form : fileName=null
[10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
fileInput==null?=true
[10:49:20] [ERROR] [15485575@qtp-22725577-0] [Home] form : fileInput is null
[10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form : model cleaned

Nothing is transmitted :(

Thank you




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Reseting-a-textField-of-an-upload-form-tp4652632p4652653.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: Reseting a textField of an upload form

2012-10-04 Thread Paul Bors
Ouch! Invalid HTML :(

I would advise you always let Eclipse check the syntax of the HTML given:


http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org";>

~ Thank you,
  Paul Bors

-Original Message-
From: Andrea Del Bene [mailto:an.delb...@gmail.com] 
Sent: Thursday, October 04, 2012 10:54 AM
To: users@wicket.apache.org
Subject: Re: Reseting a textField of an upload form

The problem seems related to the HTML. I've tried to put the table inside
the form and it works. Like this:


 
 
[filename]
[fileupload]
 
 
 
 
 
 
 
 
 


> Home.java
> 
> Home.html
> 
> @Paul: Yeah I already checked these examples.
>
> @Andrea: You may find my page and markup attached to the post
>
> When I run it I fill the form a first time, when I click on submit the 
> text field is cleared and I see in the log:
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : onSubmit 
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : 
> fileName=Test1 [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
> fileInput==null?=false
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : got 9418 
> bytes [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : 
> onSubmit [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : 
> fileName=Test1 [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
> fileInput==null?=false
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : Got 9418 
> bytes [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : model 
> cleaned So it is okBut when I fill the form another time I get:
>
> [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : onSubmit 
> [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : 
> fileName=null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
> fileInput==null?=true
> [10:49:20] [ERROR] [15485575@qtp-22725577-0] [Home] ajax : fileInput 
> is null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form : 
> onSubmit [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form : 
> fileName=null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
> fileInput==null?=true
> [10:49:20] [ERROR] [15485575@qtp-22725577-0] [Home] form : fileInput 
> is null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form : 
> model cleaned
>
> Nothing is transmitted :(
>
> Thank you
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Reseting-a-textField-of-an-
> upload-form-tp4652632p4652653.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: Reseting a textField of an upload form

2012-10-04 Thread Paul Bors
Also when in DEVELOPMENT mode have Wicket validate your HTML similar to:
http://wicketinaction.com/2009/06/wicket-html-validator-12/

~ Thank you,
  Paul Bors

-Original Message-
From: Paul Bors [mailto:p...@bors.ws] 
Sent: Thursday, October 04, 2012 12:06 PM
To: users@wicket.apache.org
Subject: RE: Reseting a textField of an upload form

Ouch! Invalid HTML :(

I would advise you always let Eclipse check the syntax of the HTML given:


http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.apache.org";>

~ Thank you,
  Paul Bors

-Original Message-
From: Andrea Del Bene [mailto:an.delb...@gmail.com]
Sent: Thursday, October 04, 2012 10:54 AM
To: users@wicket.apache.org
Subject: Re: Reseting a textField of an upload form

The problem seems related to the HTML. I've tried to put the table inside
the form and it works. Like this:


 
 
[filename]
[fileupload]
 
 
 
 
 
 
 
 
 


> Home.java
> 
> Home.html
> 
> @Paul: Yeah I already checked these examples.
>
> @Andrea: You may find my page and markup attached to the post
>
> When I run it I fill the form a first time, when I click on submit the 
> text field is cleared and I see in the log:
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : onSubmit 
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
> fileName=Test1 [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
> fileInput==null?=false
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : got 9418 
> bytes [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
> onSubmit [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : 
> fileName=Test1 [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
> fileInput==null?=false
> [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : Got 9418 
> bytes [10:49:04] [DEBUG] [15485575@qtp-22725577-0] [Home] form : model 
> cleaned So it is okBut when I fill the form another time I get:
>
> [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax : onSubmit 
> [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
> fileName=null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] ajax :
> fileInput==null?=true
> [10:49:20] [ERROR] [15485575@qtp-22725577-0] [Home] ajax : fileInput 
> is null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
> onSubmit [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form : 
> fileName=null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
> fileInput==null?=true
> [10:49:20] [ERROR] [15485575@qtp-22725577-0] [Home] form : fileInput 
> is null [10:49:20] [DEBUG] [15485575@qtp-22725577-0] [Home] form :
> model cleaned
>
> Nothing is transmitted :(
>
> Thank you
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Reseting-a-textField-of-an-
> upload-form-tp4652632p4652653.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



AjaxLazyLoadPanel

2012-10-04 Thread ayman
hello , 


I'm using wicket 1.4.15 and trying to apply AjaxLazyLoadPanel on a form and
it gives me the following error ::

ERROR [353637652@qtp-888943868-3] (RequestCycle.java:1529) - close tag not
found for tag: . Component:
[MarkupContainer [Component id = tasksForm]]


this is the code snippet I used ::

 add(new AjaxLazyLoadPanel("tasksForm")
{

@Override
public Component getLazyLoadComponent(String id)
{
// sleep for 5 seconds to show the behavior
try
{
Thread.sleep(9000);
}
catch (InterruptedException e)
{
throw new RuntimeException(e);
}
return tasksForm = new TasksForm("tasksForm");
}

});







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-tp4652672.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



performance on nested dataviews

2012-10-04 Thread lukuperman
Hi, in the project I work on there is a matrix that grows in both dimensions.
Currently it is implemented as 2 nested DataViews. I'm seeing the inner-most
dataview's onBeforeRender() takes 2-3 seconds to process 200 checkboxes,
which if I combine it with a 15 outer-most dataview gives me the horrible
number of 30-40 seconds or more. If I have 200 instead of 15, you can
imagine my concern. Should I change to another repeater? Should I use the
DataTable instead of nested dataviews? 
FYI: With the given implementation I tried overriding the Item's
onComponentTagBody() method but the time is spent before reaching that
method, so it doesn't really make a difference to improve that method.

Lucas Kuperman

PS: pagination is not an option and on scroll lazyloading is another topic.
Size of the matrix is not cuestionable unfort



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/performance-on-nested-dataviews-tp4652673.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



Re: AjaxLazyLoadPanel

2012-10-04 Thread Martin Grigorov
Hi,

On Thu, Oct 4, 2012 at 11:07 PM, ayman  wrote:
> hello ,
>
>
> I'm using wicket 1.4.15 and trying to apply AjaxLazyLoadPanel on a form and
> it gives me the following error ::
>
> ERROR [353637652@qtp-888943868-3] (RequestCycle.java:1529) - close tag not
> found for tag: . Component:
> [MarkupContainer [Component id = tasksForm]]

The message says that your markup seems to be invalid.
Make sure that there is a closing  tag and your markup is XML
well formed (just in case).

>
>
> this is the code snippet I used ::
>
>  add(new AjaxLazyLoadPanel("tasksForm")
> {
>
> @Override
> public Component getLazyLoadComponent(String id)
> {
> // sleep for 5 seconds to show the behavior
> try
> {
> Thread.sleep(9000);
> }
> catch (InterruptedException e)
> {
> throw new RuntimeException(e);
> }
> return tasksForm = new TasksForm("tasksForm");
> }
>
> });
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-tp4652672.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
>



-- 
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: performance on nested dataviews

2012-10-04 Thread Martin Grigorov
Hi,

How did you measure this ?
Use YourKit/JProfiler/VisualVM to check what is slow exactly.

On Thu, Oct 4, 2012 at 11:41 PM, lukuperman  wrote:
> Hi, in the project I work on there is a matrix that grows in both dimensions.
> Currently it is implemented as 2 nested DataViews. I'm seeing the inner-most
> dataview's onBeforeRender() takes 2-3 seconds to process 200 checkboxes,
> which if I combine it with a 15 outer-most dataview gives me the horrible
> number of 30-40 seconds or more. If I have 200 instead of 15, you can
> imagine my concern. Should I change to another repeater? Should I use the
> DataTable instead of nested dataviews?
> FYI: With the given implementation I tried overriding the Item's
> onComponentTagBody() method but the time is spent before reaching that
> method, so it doesn't really make a difference to improve that method.
>
> Lucas Kuperman
>
> PS: pagination is not an option and on scroll lazyloading is another topic.
> Size of the matrix is not cuestionable unfort
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/performance-on-nested-dataviews-tp4652673.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
>



-- 
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: performance on nested dataviews

2012-10-04 Thread lukuperman
Hi Martin, yes I did some profiling focusing on my classes. I'll post the
results shortly. In the meantime, is there any preference between 2 nested
dataviews vs datatable when table has dynamic number of columns, considering
performance as driver?

Lucas Kuperman



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/performance-on-nested-dataviews-tp4652673p4652677.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



Re: performance on nested dataviews

2012-10-04 Thread Martin Grigorov
If you expect to have very big tables then the best approach
performance wise is to create your own Table component that creates
its markup by concatenating the markup of its children components.
For example see the difference between DropDownChoice and Select
components in Wicket. Both components provide the same functionality
but Select uses a sub component SelectOption for all its options and
this makes it more heavy. While DDC just concatenates "..."s.

On Fri, Oct 5, 2012 at 6:18 AM, lukuperman  wrote:
> Hi Martin, yes I did some profiling focusing on my classes. I'll post the
> results shortly. In the meantime, is there any preference between 2 nested
> dataviews vs datatable when table has dynamic number of columns, considering
> performance as driver?
>
> Lucas Kuperman
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/performance-on-nested-dataviews-tp4652673p4652677.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
>



-- 
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