Re: DataTable's view does not always update

2011-05-04 Thread Tom Barbaro
I found the cause of my problem. 

The dataview was not updating due to an Ajax error. I found that when I
enabled ajax debugging in the application class by adding

getDebugSettings().setAjaxDebugModeEnabled(true);

That showed that it could not find the beginning tag for the ajax response
but visual inspection showed that the tag was there. One of the entries in
the response had a 0x character and this caused the ajax error. I am not
sure why that is a problem but stripping it out fixes the issue.

BTW, some of the responses referred to the Wicket Debug Panel. I was having
trouble getting more information about it. Is it the same thing as enabling
ajax debugging?

Tom Barbaro

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3496779.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: DataTable's view does not always update

2011-05-04 Thread Martin Grigorov
Hi,

On Wed, May 4, 2011 at 10:58 PM, Tom Barbaro tombarb...@yahoo.com wrote:
 I found the cause of my problem.

 The dataview was not updating due to an Ajax error. I found that when I
 enabled ajax debugging in the application class by adding

 getDebugSettings().setAjaxDebugModeEnabled(true);

 That showed that it could not find the beginning tag for the ajax response
 but visual inspection showed that the tag was there. One of the entries in
 the response had a 0x character and this caused the ajax error. I am not
 sure why that is a problem but stripping it out fixes the issue.

This is improved in Wicket 1.5.

 BTW, some of the responses referred to the Wicket Debug Panel. I was having
 trouble getting more information about it. Is it the same thing as enabling
 ajax debugging?
Yes, the same thingy.

 Tom Barbaro

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3496779.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: DataTable's view does not always update

2011-05-02 Thread James Carman
Try changing it to a servlet.  There's another thread going on here
just recently which gives an example.

On Sun, May 1, 2011 at 10:22 PM, D D dawi...@gmail.com wrote:
 I have a filter in web.xml file - however I did not set it up. At the
 same time I've started to question the setup because I tried to deploy
 a clean test app (by clean I mean new ear file for the test app and
 no extra ear files and configuration - just a strip down example from
 wicket's website) and I'm getting 404 trying to bring the application
 up.

 So the original application with problem is having 404 on ajax calls
 but it will start up. Test app will not start up - shows 404 all the
 time.

 Is it a WAS setup issue?

 Thanks,
 Dave


 On Sun, May 1, 2011 at 8:57 PM, James Carman ja...@carmanconsulting.com 
 wrote:
 You are using a servlet instead of a filter, right?  I don't see the
 entire conversation in my gmail, here, so I hope I didn't miss
 something.

 On Sun, May 1, 2011 at 9:51 PM, D D dawi...@gmail.com wrote:
 I tried the setting with true and false settings. It still doesn't work.

 Here is Ajax Debug
 INFO: Initiating Ajax GET request on
 ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1random=0.6781234819490185
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 404
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...
 INFO: focus removed from link30


 I also traced through debug the response sent to HttpResponse object
 and it's what I'm expecting:

 “?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=counter31 ![CDATA[span id=counter315/span]]/component
 /ajax-response”

 Not only it's written but the response object is properly closed too.
 Not a single exception is thrown in Wicket's code.

 The problem has to be somewhere inside WAS processing, right?

 Any ideas where?

 Dave

 -
 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: DataTable's view does not always update

2011-05-02 Thread D D
FYI. I added the index.htm file to my project and everything now
works. This is very strange and if anyone has an insight why this
helped I would be very glad to read about it.

Since I didn't try switching to servlet I'm not sure if that would
have helped as well.

Thank you for all of your suggestions!

Dave

On Mon, May 2, 2011 at 6:18 AM, James Carman ja...@carmanconsulting.com wrote:
 Try changing it to a servlet.  There's another thread going on here
 just recently which gives an example.

 On Sun, May 1, 2011 at 10:22 PM, D D dawi...@gmail.com wrote:
 I have a filter in web.xml file - however I did not set it up. At the
 same time I've started to question the setup because I tried to deploy
 a clean test app (by clean I mean new ear file for the test app and
 no extra ear files and configuration - just a strip down example from
 wicket's website) and I'm getting 404 trying to bring the application
 up.

 So the original application with problem is having 404 on ajax calls
 but it will start up. Test app will not start up - shows 404 all the
 time.

 Is it a WAS setup issue?

 Thanks,
 Dave


 On Sun, May 1, 2011 at 8:57 PM, James Carman ja...@carmanconsulting.com 
 wrote:
 You are using a servlet instead of a filter, right?  I don't see the
 entire conversation in my gmail, here, so I hope I didn't miss
 something.

 On Sun, May 1, 2011 at 9:51 PM, D D dawi...@gmail.com wrote:
 I tried the setting with true and false settings. It still doesn't work.

 Here is Ajax Debug
 INFO: Initiating Ajax GET request on
 ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1random=0.6781234819490185
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 404
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...
 INFO: focus removed from link30


 I also traced through debug the response sent to HttpResponse object
 and it's what I'm expecting:

 “?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=counter31 ![CDATA[span id=counter315/span]]/component
 /ajax-response”

 Not only it's written but the response object is properly closed too.
 Not a single exception is thrown in Wicket's code.

 The problem has to be somewhere inside WAS processing, right?

 Any ideas where?

 Dave

 -
 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: DataTable's view does not always update

2011-05-02 Thread Clint Checketts
The reason for the 404 is the Websphere is checking for a file, then
intending to filter before and after serving up the file. Since it finds no
file to serve, it returns the 404.

-Clint

On Mon, May 2, 2011 at 9:33 AM, D D dawi...@gmail.com wrote:

 FYI. I added the index.htm file to my project and everything now
 works. This is very strange and if anyone has an insight why this
 helped I would be very glad to read about it.

 Since I didn't try switching to servlet I'm not sure if that would
 have helped as well.

 Thank you for all of your suggestions!

 Dave

 On Mon, May 2, 2011 at 6:18 AM, James Carman ja...@carmanconsulting.com
 wrote:
  Try changing it to a servlet.  There's another thread going on here
  just recently which gives an example.
 
  On Sun, May 1, 2011 at 10:22 PM, D D dawi...@gmail.com wrote:
  I have a filter in web.xml file - however I did not set it up. At the
  same time I've started to question the setup because I tried to deploy
  a clean test app (by clean I mean new ear file for the test app and
  no extra ear files and configuration - just a strip down example from
  wicket's website) and I'm getting 404 trying to bring the application
  up.
 
  So the original application with problem is having 404 on ajax calls
  but it will start up. Test app will not start up - shows 404 all the
  time.
 
  Is it a WAS setup issue?
 
  Thanks,
  Dave
 
 
  On Sun, May 1, 2011 at 8:57 PM, James Carman 
 ja...@carmanconsulting.com wrote:
  You are using a servlet instead of a filter, right?  I don't see the
  entire conversation in my gmail, here, so I hope I didn't miss
  something.
 
  On Sun, May 1, 2011 at 9:51 PM, D D dawi...@gmail.com wrote:
  I tried the setting with true and false settings. It still doesn't
 work.
 
  Here is Ajax Debug
  INFO: Initiating Ajax GET request on
 
 ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1random=0.6781234819490185
  INFO: Invoking pre-call handler(s)...
  ERROR: Received Ajax response with code: 404
  INFO: Invoking post-call handler(s)...
  INFO: Invoking failure handler(s)...
  INFO: focus removed from link30
 
 
  I also traced through debug the response sent to HttpResponse object
  and it's what I'm expecting:
 
  “?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
  id=counter31 ![CDATA[span id=counter315/span]]/component
  /ajax-response”
 
  Not only it's written but the response object is properly closed too.
  Not a single exception is thrown in Wicket's code.
 
  The problem has to be somewhere inside WAS processing, right?
 
  Any ideas where?
 
  Dave
 
  -
  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: DataTable's view does not always update

2011-05-01 Thread D D
I tried the setting with true and false settings. It still doesn't work.

Here is Ajax Debug
INFO: Initiating Ajax GET request on
?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1random=0.6781234819490185
INFO: Invoking pre-call handler(s)...
ERROR: Received Ajax response with code: 404
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
INFO: focus removed from link30


I also traced through debug the response sent to HttpResponse object
and it's what I'm expecting:

“?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
id=counter31 ![CDATA[span id=counter315/span]]/component
/ajax-response”

Not only it's written but the response object is properly closed too.
Not a single exception is thrown in Wicket's code.

The problem has to be somewhere inside WAS processing, right?

Any ideas where?

Dave

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



Re: DataTable's view does not always update

2011-05-01 Thread James Carman
You are using a servlet instead of a filter, right?  I don't see the
entire conversation in my gmail, here, so I hope I didn't miss
something.

On Sun, May 1, 2011 at 9:51 PM, D D dawi...@gmail.com wrote:
 I tried the setting with true and false settings. It still doesn't work.

 Here is Ajax Debug
 INFO: Initiating Ajax GET request on
 ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1random=0.6781234819490185
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 404
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...
 INFO: focus removed from link30


 I also traced through debug the response sent to HttpResponse object
 and it's what I'm expecting:

 “?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=counter31 ![CDATA[span id=counter315/span]]/component
 /ajax-response”

 Not only it's written but the response object is properly closed too.
 Not a single exception is thrown in Wicket's code.

 The problem has to be somewhere inside WAS processing, right?

 Any ideas where?

 Dave

 -
 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: DataTable's view does not always update

2011-05-01 Thread D D
I have a filter in web.xml file - however I did not set it up. At the
same time I've started to question the setup because I tried to deploy
a clean test app (by clean I mean new ear file for the test app and
no extra ear files and configuration - just a strip down example from
wicket's website) and I'm getting 404 trying to bring the application
up.

So the original application with problem is having 404 on ajax calls
but it will start up. Test app will not start up - shows 404 all the
time.

Is it a WAS setup issue?

Thanks,
Dave


On Sun, May 1, 2011 at 8:57 PM, James Carman ja...@carmanconsulting.com wrote:
 You are using a servlet instead of a filter, right?  I don't see the
 entire conversation in my gmail, here, so I hope I didn't miss
 something.

 On Sun, May 1, 2011 at 9:51 PM, D D dawi...@gmail.com wrote:
 I tried the setting with true and false settings. It still doesn't work.

 Here is Ajax Debug
 INFO: Initiating Ajax GET request on
 ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1random=0.6781234819490185
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 404
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...
 INFO: focus removed from link30


 I also traced through debug the response sent to HttpResponse object
 and it's what I'm expecting:

 “?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=counter31 ![CDATA[span id=counter315/span]]/component
 /ajax-response”

 Not only it's written but the response object is properly closed too.
 Not a single exception is thrown in Wicket's code.

 The problem has to be somewhere inside WAS processing, right?

 Any ideas where?

 Dave

 -
 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: DataTable's view does not always update

2011-05-01 Thread Clint Checketts
Make sure that sendredirect.compatibility property is set to false or
deleted. It causes problems. You didn't say if it had originally be set or
not though, lets make sure it didn't get left on at some point.

Watch the URL, if you typed in http://localhost/myApp and it renders as
http://localhost/myApp/*myApp* (note the duplicate context root) you could
get 404s.

Also convert to using the WicketServlet, WAS had trouble pointing to a
filter as an endpoint (unless you have an empty index.htm file). Lets see if
that gets you back on track. I suspect that is why your clean app isn't
working, you have no index.htm file to trick WAS into working.

-Clint


On Sun, May 1, 2011 at 9:22 PM, D D dawi...@gmail.com wrote:

 I have a filter in web.xml file - however I did not set it up. At the
 same time I've started to question the setup because I tried to deploy
 a clean test app (by clean I mean new ear file for the test app and
 no extra ear files and configuration - just a strip down example from
 wicket's website) and I'm getting 404 trying to bring the application
 up.

 So the original application with problem is having 404 on ajax calls
 but it will start up. Test app will not start up - shows 404 all the
 time.

 Is it a WAS setup issue?

 Thanks,
 Dave


 On Sun, May 1, 2011 at 8:57 PM, James Carman ja...@carmanconsulting.com
 wrote:
  You are using a servlet instead of a filter, right?  I don't see the
  entire conversation in my gmail, here, so I hope I didn't miss
  something.
 
  On Sun, May 1, 2011 at 9:51 PM, D D dawi...@gmail.com wrote:
  I tried the setting with true and false settings. It still doesn't work.
 
  Here is Ajax Debug
  INFO: Initiating Ajax GET request on
 
 ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1random=0.6781234819490185
  INFO: Invoking pre-call handler(s)...
  ERROR: Received Ajax response with code: 404
  INFO: Invoking post-call handler(s)...
  INFO: Invoking failure handler(s)...
  INFO: focus removed from link30
 
 
  I also traced through debug the response sent to HttpResponse object
  and it's what I'm expecting:
 
  “?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
  id=counter31 ![CDATA[span id=counter315/span]]/component
  /ajax-response”
 
  Not only it's written but the response object is properly closed too.
  Not a single exception is thrown in Wicket's code.
 
  The problem has to be somewhere inside WAS processing, right?
 
  Any ideas where?
 
  Dave
 
  -
  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: DataTable's view does not always update

2011-04-29 Thread D D
Clint - I'm seeing similar problem in the simplest possible page. I took the
Counter Page example from the Wicket's website and put that into my panels.
(the only 2 things in the panel are the AjaxFallbackLink and Label) Clicking
on the link would not update the counter.

How do I get to to that Wicket debug panel? - I'm pretty new to Wicket.
Since I'm not using a form I assume that for me it's problem #1.

Dave

On Thu, Apr 28, 2011 at 9:20 PM, Clint Checketts checke...@gmail.comwrote:

 I've seen that sort of behavior in 2 common types of cases:

 1- An exception occurred, disrupting the Ajax response from even returning
 (you'll notice it as a type ERROR in the Wicket debug panel)

 2- A form validator, required field, or conversion failed, stopping the
 form from updating underlying models (you would have still seen the
 onBeforeRender called in this case). You'd notice this behavior if the
 console had a message about 'unrendered feedback message'

 -Clint
 --
 Clint Checketts
 Sent with Sparrow
 On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote:
  Hi,
 
  I have several checkboxes in a datatable toolbar that control filtering
 for
  the content rendered in a datatable. When a checkbox is clicked, we add
 the
  datatable to the ajax target, which results in a new query. The
 dataprovider
  doQuery methond is called and returns the correct results. The problem is
  the view does not always update. No exceptions occur, the view just does
 not
  update.
 
  I set a breakpoint in onBeforeRender for the page and it is called when
 the
  view is updated. When the view is not updated it is not called.
 
  The only clue I have is the number of items in the view for the checkbox
 I
  just unselected is much larger (more than 100x) than the items selected
 by
  the unmodified checkboxes.
 
  Any ideas what would prevent the updating of the table?
 
  Tom
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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: DataTable's view does not always update

2011-04-29 Thread D D
I've enabled the debug - project was set up for me and it was in deployment
mode from the start...

Question: why am I getting *ERROR: *Received Ajax response with code: 404?

Is anyone running Wicket on WAS 6.1?

Thanks,
Dave

On Fri, Apr 29, 2011 at 1:59 PM, D D dawi...@gmail.com wrote:

 Clint - I'm seeing similar problem in the simplest possible page. I took
 the Counter Page example from the Wicket's website and put that into my
 panels. (the only 2 things in the panel are the AjaxFallbackLink and Label)
 Clicking on the link would not update the counter.

 How do I get to to that Wicket debug panel? - I'm pretty new to Wicket.
 Since I'm not using a form I assume that for me it's problem #1.

 Dave


 On Thu, Apr 28, 2011 at 9:20 PM, Clint Checketts checke...@gmail.comwrote:

 I've seen that sort of behavior in 2 common types of cases:

 1- An exception occurred, disrupting the Ajax response from even returning
 (you'll notice it as a type ERROR in the Wicket debug panel)

 2- A form validator, required field, or conversion failed, stopping the
 form from updating underlying models (you would have still seen the
 onBeforeRender called in this case). You'd notice this behavior if the
 console had a message about 'unrendered feedback message'

 -Clint
 --
 Clint Checketts
 Sent with Sparrow
 On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote:
  Hi,
 
  I have several checkboxes in a datatable toolbar that control filtering
 for
  the content rendered in a datatable. When a checkbox is clicked, we add
 the
  datatable to the ajax target, which results in a new query. The
 dataprovider
  doQuery methond is called and returns the correct results. The problem
 is
  the view does not always update. No exceptions occur, the view just does
 not
  update.
 
  I set a breakpoint in onBeforeRender for the page and it is called when
 the
  view is updated. When the view is not updated it is not called.
 
  The only clue I have is the number of items in the view for the checkbox
 I
  just unselected is much larger (more than 100x) than the items selected
 by
  the unmodified checkboxes.
 
  Any ideas what would prevent the updating of the table?
 
  Tom
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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: DataTable's view does not always update

2011-04-29 Thread Clint Checketts
Ah. This is curious. I've run Wicket on WAS 6.1. Out of curiosity do you
have the com.ibm.websphere.sendredirect.compatibility property set?

See here:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/xrun_jvm_sendredirect.html

-Clint

On Fri, Apr 29, 2011 at 3:13 PM, D D dawi...@gmail.com wrote:

 I've enabled the debug - project was set up for me and it was in deployment
 mode from the start...

 Question: why am I getting *ERROR: *Received Ajax response with code:
 404?

 Is anyone running Wicket on WAS 6.1?

 Thanks,
 Dave

 On Fri, Apr 29, 2011 at 1:59 PM, D D dawi...@gmail.com wrote:

  Clint - I'm seeing similar problem in the simplest possible page. I took
  the Counter Page example from the Wicket's website and put that into my
  panels. (the only 2 things in the panel are the AjaxFallbackLink and
 Label)
  Clicking on the link would not update the counter.
 
  How do I get to to that Wicket debug panel? - I'm pretty new to Wicket.
  Since I'm not using a form I assume that for me it's problem #1.
 
  Dave
 
 
  On Thu, Apr 28, 2011 at 9:20 PM, Clint Checketts checke...@gmail.com
 wrote:
 
  I've seen that sort of behavior in 2 common types of cases:
 
  1- An exception occurred, disrupting the Ajax response from even
 returning
  (you'll notice it as a type ERROR in the Wicket debug panel)
 
  2- A form validator, required field, or conversion failed, stopping the
  form from updating underlying models (you would have still seen the
  onBeforeRender called in this case). You'd notice this behavior if the
  console had a message about 'unrendered feedback message'
 
  -Clint
  --
  Clint Checketts
  Sent with Sparrow
  On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote:
   Hi,
  
   I have several checkboxes in a datatable toolbar that control
 filtering
  for
   the content rendered in a datatable. When a checkbox is clicked, we
 add
  the
   datatable to the ajax target, which results in a new query. The
  dataprovider
   doQuery methond is called and returns the correct results. The problem
  is
   the view does not always update. No exceptions occur, the view just
 does
  not
   update.
  
   I set a breakpoint in onBeforeRender for the page and it is called
 when
  the
   view is updated. When the view is not updated it is not called.
  
   The only clue I have is the number of items in the view for the
 checkbox
  I
   just unselected is much larger (more than 100x) than the items
 selected
  by
   the unmodified checkboxes.
  
   Any ideas what would prevent the updating of the table?
  
   Tom
  
   --
   View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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
  
 
 
 



DataTable's view does not always update

2011-04-28 Thread Tom Barbaro
Hi,

I have several checkboxes in a datatable toolbar that control filtering for
the content rendered in a datatable. When a checkbox is clicked, we add the
datatable to the ajax target, which results in a new query. The dataprovider
doQuery methond is called and returns the correct results. The problem is
the view does not always update. No exceptions occur, the view just does not
update.

I set a breakpoint in onBeforeRender for the page and it is called when the
view is updated. When the view is not updated it is not called.

The only clue I have is the number of items in the view for the checkbox I
just unselected is much larger (more than 100x) than the items selected by
the unmodified checkboxes.

Any ideas what would prevent the updating of the table?

Tom

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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: DataTable's view does not always update

2011-04-28 Thread Clint Checketts
I've seen that sort of behavior in 2 common types of cases:

1- An exception occurred, disrupting the Ajax response from even returning 
(you'll notice it as a type ERROR in the Wicket debug panel)

2- A form validator, required field, or conversion failed, stopping the form 
from updating underlying models (you would have still seen the onBeforeRender 
called in this case). You'd notice this behavior if the console had a message 
about 'unrendered feedback message'

-Clint 
-- 
Clint Checketts
Sent with Sparrow
On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote: 
 Hi,
 
 I have several checkboxes in a datatable toolbar that control filtering for
 the content rendered in a datatable. When a checkbox is clicked, we add the
 datatable to the ajax target, which results in a new query. The dataprovider
 doQuery methond is called and returns the correct results. The problem is
 the view does not always update. No exceptions occur, the view just does not
 update.
 
 I set a breakpoint in onBeforeRender for the page and it is called when the
 view is updated. When the view is not updated it is not called.
 
 The only clue I have is the number of items in the view for the checkbox I
 just unselected is much larger (more than 100x) than the items selected by
 the unmodified checkboxes.
 
 Any ideas what would prevent the updating of the table?
 
 Tom
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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