Re: Update ListView with Ajax, performance.

2013-04-15 Thread Raul
Hi, vineetsemwal, I think I found a bug in the project developed, having
several QuickView, inside a ListView or DataView, errors occur. I recreated
the error in your project, simply. Within RowNavigationPage class, I added a
ListView with a list of three items and each item I have added the
QuickView. Seemore Pressing the first time works fine, but if you hit the
other QuickView see, does not display correctly.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657983.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: Update ListView with Ajax, performance.

2013-04-15 Thread Raul
Exactly the error occurs when you click on the above item, item affects the
bottom, but not vice versa.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657984.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: Update ListView with Ajax, performance.

2013-04-15 Thread vineet semwal
hi,
i am making a guess now ,i think you are having this problem ,there is one
limitation of quickview in cases where you want to update without rendering
the whole quickview .that limitation is the quickview immediate parent can
have one child (which is quickview ofcourse) .this limitation is only for
the immediate parent and if you give quickview a dedicated parent/container
,your problem will go away ...
this check is also made in ajaxitemsnavigator and gives you an expectation
explaining the problem and in older versions it was in quickview itself ,i
somehow removed it while refactoring sometime ago ..,i will add it back
later.

please also create quickstart ie. small project which reproduces the bug
and add it here ,i will check it out.,thanks !



On Mon, Apr 15, 2013 at 5:03 PM, Raul ralva...@netwie.com wrote:

 Exactly the error occurs when you click on the above item, item affects the
 bottom, but not vice versa.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657984.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




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-15 Thread vineet semwal
or upload it somewhere else and give a url here from where it can be
downloaded,sometimes here the attached files don't go through..
or  just mail your project at vineetsemwa...@gmail.com


On Mon, Apr 15, 2013 at 5:31 PM, vineet semwal vineetsemwa...@gmail.comwrote:

 hi,
 i am making a guess now ,i think you are having this problem ,there is one
 limitation of quickview in cases where you want to update without rendering
 the whole quickview .that limitation is the quickview immediate parent can
 have one child (which is quickview ofcourse) .this limitation is only for
 the immediate parent and if you give quickview a dedicated parent/container
 ,your problem will go away ...
 this check is also made in ajaxitemsnavigator and gives you an expectation
 explaining the problem and in older versions it was in quickview itself ,i
 somehow removed it while refactoring sometime ago ..,i will add it back
 later.

 please also create quickstart ie. small project which reproduces the bug
 and add it here ,i will check it out.,thanks !



 On Mon, Apr 15, 2013 at 5:03 PM, Raul ralva...@netwie.com wrote:

 Exactly the error occurs when you click on the above item, item affects
 the
 bottom, but not vice versa.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657984.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




 --
 regards,

 Vineet Semwal




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-15 Thread vineet semwal
sorry i made a typo in one of the post ..
 i wrote gives you an expectation
what i meant was gives you an *exception* :-)


On Mon, Apr 15, 2013 at 5:39 PM, vineet semwal vineetsemwa...@gmail.comwrote:

 or upload it somewhere else and give a url here from where it can be
 downloaded,sometimes here the attached files don't go through..
 or  just mail your project at vineetsemwa...@gmail.com


 On Mon, Apr 15, 2013 at 5:31 PM, vineet semwal vineetsemwa...@gmail.com
 wrote:

  hi,
  i am making a guess now ,i think you are having this problem ,there is
 one
  limitation of quickview in cases where you want to update without
 rendering
  the whole quickview .that limitation is the quickview immediate parent
 can
  have one child (which is quickview ofcourse) .this limitation is only for
  the immediate parent and if you give quickview a dedicated
 parent/container
  ,your problem will go away ...
  this check is also made in ajaxitemsnavigator and gives you an
 expectation
  explaining the problem and in older versions it was in quickview itself
 ,i
  somehow removed it while refactoring sometime ago ..,i will add it back
  later.
 
  please also create quickstart ie. small project which reproduces the bug
  and add it here ,i will check it out.,thanks !
 
 
 
  On Mon, Apr 15, 2013 at 5:03 PM, Raul ralva...@netwie.com wrote:
 
  Exactly the error occurs when you click on the above item, item affects
  the
  bottom, but not vice versa.
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657984.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
 
 
 
 
  --
  regards,
 
  Vineet Semwal
 



 --
 regards,

 Vineet Semwal




-- 
thank you,

regards,
Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-15 Thread Raul
Recreate the error is very simple, you just have to modify your example as
follows, in the labeling of RowsNavigatorPage.html add a div, so that it
looks like.
! -
Copyright 2012 Vineet Semwal

Licensed under the Apache License, Version 2.0 (the
quot;Licensequot;);
you may not use this file except in compliance With The License.
You may Obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

UNLESS required by applicable law or Agreed to in writing, software
distributed under the License is distributed on an quot;AS ISquot;
BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied Either.
See the License for the specific language Governing permissions and
Limitations under the License.
-
! DOCTYPE html
html xmlns:wicket=http://wicket.apache.org;
head style=margin-left:50px;
title Navigator Rows Example / title
Rows Navigation 
 displaying all items from 0-19 / h2
/ head
body style=margin-left: 50px; margin-top: 50px;
div wicket:id=listView
ul wicket:id=numbers
li wicket:id=number number = label wicket:id=display / label
/ li
/ ul
div wicket:id=navigator / div
/ div
/ body
/ html



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657988.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: Update ListView with Ajax, performance.

2013-04-15 Thread Raul
http://ul.to/847ee7uh

From his example I just changed the RowsNavigatorPage



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657989.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: Update ListView with Ajax, performance.

2013-04-15 Thread vineet semwal
i have tried explaining it in this issue
https://github.com/vineetsemwal/quickview/issues/13
i have fixed it locally , just need to test and push the commit ,will give
you an update then.. thanks for pointing out very important issue !


On Mon, Apr 15, 2013 at 6:02 PM, Raul ralva...@netwie.com wrote:

 http://ul.to/847ee7uh

 From his example I just changed the RowsNavigatorPage



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657989.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




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-15 Thread Raul
Thanks to you, I look forward to the update, a greeting.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657995.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: Update ListView with Ajax, performance.

2013-04-15 Thread vineet semwal
this is fixed now and is available in master and 1.5.x branch,since this
was an important bug i have also created releases 6.6.2 for wicket 6.6 and
1.5.10.2 for  wicket 1.5.10 ,you example works fine now  :-)
thank you !



On Tue, Apr 16, 2013 at 1:03 AM, Raul ralva...@netwie.com wrote:

 Thanks to you, I look forward to the update, a greeting.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657995.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




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-13 Thread vineet semwal
hi,
if you can change repeater,try using QuickView instead of ListView ,it
supports the functionality you are asking.. ,way of using is like DataView
,project is here https://github.com/vineetsemwal/quickview


On Sat, Apr 13, 2013 at 1:35 AM, Raul ralva...@netwie.com wrote:

 Hello, I need to implement a component that can display a list of users
 from
 a ListView, at the end of the list you should see a link to see more
 users. What I need is to update the list of users displayed but without
 rendering at all in ListView again. Because right now I use a AjaxLink that
 updates the entire ListView container, but when many users are penalized
 performance and gives a sense of slowness. Anyone know if you can implement
 some of this functionality with wicket.





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948.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




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-13 Thread vineet semwal
forgot to write there is  AjaxItemsNavigator in the package which on click
adds new rows for QuickView, you can use or extend it or write your own
depending on your usecase,see examples..


On Sat, Apr 13, 2013 at 12:39 PM, vineet semwal vineetsemwa...@gmail.comwrote:

 hi,
 if you can change repeater,try using QuickView instead of ListView ,it
 supports the functionality you are asking.. ,way of using is like DataView
 ,project is here https://github.com/vineetsemwal/quickview


 On Sat, Apr 13, 2013 at 1:35 AM, Raul ralva...@netwie.com wrote:

 Hello, I need to implement a component that can display a list of users
 from
 a ListView, at the end of the list you should see a link to see more
 users. What I need is to update the list of users displayed but without
 rendering at all in ListView again. Because right now I use a AjaxLink
 that
 updates the entire ListView container, but when many users are penalized
 performance and gives a sense of slowness. Anyone know if you can
 implement
 some of this functionality with wicket.





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948.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




 --
 regards,

 Vineet Semwal




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-13 Thread Raul
QuickView The project looks great, but I want to try, why not stay at maven
central repository?. It is very cumbersome installation is proposed.
Https://github.com/vineetsemwal/quickview/wiki



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657958.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: Update ListView with Ajax, performance.

2013-04-13 Thread vineet semwal
sorry,i did't want to do effort of publishing in maven central repository
.., currently a user has to build and install on his machine either by
doing
a)git clone and then a mvn install
or b) he has to grab a release release tag from
https://github.com/vineetsemwal/quickview/tags ,decompress it,step into it
and then  mvn install ,same as he does in his maven project ,a part from
that there is no difference after installing quicvkiew , specify dependency
in your project and use it ..


On Sat, Apr 13, 2013 at 3:19 PM, Raul ralva...@netwie.com wrote:

 QuickView The project looks great, but I want to try, why not stay at maven
 central repository?. It is very cumbersome installation is proposed.
 Https://github.com/vineetsemwal/quickview/wiki



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657958.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




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-13 Thread Raul
I tried the project and give you my congratulations, it's just what I need,
but it would be ideal that was included as an extension of the core wicket.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657961.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: Update ListView with Ajax, performance.

2013-04-13 Thread vineet semwal
i am glad the project is useful for you.. ,thanks for the feedback :-)
i think it's too new to move into wicket-extension ,also i think core and
extension should be kept small..


On Sat, Apr 13, 2013 at 4:23 PM, Raul ralva...@netwie.com wrote:

 I tried the project and give you my congratulations, it's just what I need,
 but it would be ideal that was included as an extension of the core wicket.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657961.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




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-13 Thread Raul
I think the functionality that gives your project is essential to many Web
projects, and in many companies there is a policy not to use third party
libraries that can not be maintained or updated in the future. I therefore
believe that the number of components official Wicket, should increase in
the future, for the framework to do its job better, which is to provide web
development



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657963.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: Update ListView with Ajax, performance.

2013-04-13 Thread vineet semwal
i am not a core dev. , wicket core devs can only decide what can be moved
in ;)


On Sat, Apr 13, 2013 at 6:23 PM, Raul ralva...@netwie.com wrote:

 I think the functionality that gives your project is essential to many Web
 projects, and in many companies there is a policy not to use third party
 libraries that can not be maintained or updated in the future. I therefore
 believe that the number of components official Wicket, should increase in
 the future, for the framework to do its job better, which is to provide
 web
 development



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657963.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




-- 
regards,

Vineet Semwal


Re: Update ListView with Ajax, performance.

2013-04-12 Thread Nick Pratt
Id use one of various Javascript libs to implement this sort of
functionality - I think select2 and datatables would both work for such a
list (I think they both support infinite scrolling lists) that only
render/send a page of information at a time. There's a wicket-select2
library, but its fairly minimal in nature - you'll need to understand the
JS docs to get anywhere with it. I think there's a Wicket lib for
Datatables, but I dont know its maintenance status.  There are countless
other JS libraries to do this as well.

Nick


On Fri, Apr 12, 2013 at 4:05 PM, Raul ralva...@netwie.com wrote:

 Hello, I need to implement a component that can display a list of users
 from
 a ListView, at the end of the list you should see a link to see more
 users. What I need is to update the list of users displayed but without
 rendering at all in ListView again. Because right now I use a AjaxLink that
 updates the entire ListView container, but when many users are penalized
 performance and gives a sense of slowness. Anyone know if you can implement
 some of this functionality with wicket.





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948.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: Update ListView with Ajax, performance.

2013-04-12 Thread Alexey Mukas
If the list is relatively small (say 20-30 items) then it's better to pull it
entirely to the clientside. Show first N items use js in the bottom link to
show next items without a call to the server.
see this solution
http://stackoverflow.com/questions/10944304/hiding-list-items-with-a-show-more-button
  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657950.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: Update ListView with Ajax, performance.

2013-04-12 Thread Raul
Nick, I sensed that the solution was going to use Javascript, my question was
if there was any easier than the framework could provide. Select2 prove.

Alexy single client solution does not help me as I have a large volume of
data.

Regards and thanks for the guidance.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657951.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: Update ListView with Ajax, performance.

2013-04-12 Thread Nick Pratt
I guess you could build something with just the core framework, but I think
it would be a lot clunkier than one of the libs - for instance, on the
client side JS libs, you get events that can trigger Ajax callbacks to load
the next set of data while the user is scrolling through the list - since
its async, its much smoother and a better experience.

Ive used (and am using in a current project) both select2 and datatables.
 While the initial learning curve is reasonable with both libs (you're not
likely to be able to avoid writing your own JS init/config for these
components), they are stable, and work very well.

N


On Fri, Apr 12, 2013 at 4:36 PM, Raul ralva...@netwie.com wrote:

 Nick, I sensed that the solution was going to use Javascript, my question
 was
 if there was any easier than the framework could provide. Select2 prove.

 Alexy single client solution does not help me as I have a large volume of
 data.

 Regards and thanks for the guidance.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657951.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: Update ListView with Ajax, performance.

2013-04-12 Thread Martin Grigorov
Hi,

I have done something like this before.
I used a table in my case but you can use another HTML element.
The initial layout is:
-table
--tbody
---tr
---tr

---tr
--tbody (id + style=display:none)
--tfoot
---tr
a (Show more link)

i.e. the first tbody shows the items, the second tbody is a placeholder and
the tfoot has the 'show' link
When the link is clicked the server returns markup like:
--tbody
---tr
---tr

---tr
--tbody (id + style=display:none)

which replaces the placeholder tbody.
When there are no more entries the last Ajax response also hides the tfoot.


On Fri, Apr 12, 2013 at 11:36 PM, Raul ralva...@netwie.com wrote:

 Nick, I sensed that the solution was going to use Javascript, my question
 was
 if there was any easier than the framework could provide. Select2 prove.

 Alexy single client solution does not help me as I have a large volume of
 data.

 Regards and thanks for the guidance.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Update-ListView-with-Ajax-performance-tp4657948p4657951.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 http://jweekend.com/