Wicket Render speed

2012-08-25 Thread steven.li
Hi All

 I have a dataview table, for 50 rows, it takes around 10 seconds to show
the page, and the render part take around 8-9 seconds from debug log,  Any
way to improve this ?

Each row, there are 2 input DateText filed, three labels, 4 checkbox, 2
icons and 2-3 placehoder TD. around 100 characters each row.  Is this a two
heavy row for wicket ? 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Render-speed-tp4651489.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: Slow rendering

2012-08-25 Thread steven.li
Enable wicket debug log, it will show the begin render and end render time in
log file.

log4j.logger.org.apache.wicket=debug



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

2012-08-25 Thread steven.li
how to let it render lazily?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Slow-rendering-tp4395082p4651491.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: Wicket Render speed

2012-08-25 Thread steven.li
yes. I use loadabledetachable model.  it's the initial time loading takes too
long time. and from the debug log, it shows most of time are spend on
Beging Render--Rendered---End Render



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Render-speed-tp4651489p4651502.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: Wicket Render speed

2012-08-25 Thread steven.li
what profiler can we use ? I changed to deploy mode, the result is the same .
If I remove the 4 combo checkbox, it will be much faster. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Render-speed-tp4651489p4651505.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: Wicket Render speed

2012-08-27 Thread steven.li
Thanks. Found out the root cause by jprofiler.  

It's the model problem, too many times to read database directly in the
model.

Thanks for your help very much !



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Render-speed-tp4651489p4651523.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



update parent table model from modal window

2012-10-18 Thread steven.li
Hi all
 
 I have a listview, in the populate list Item with a link, whenever I click
the link, it will pop up a modal window. 

when I close the modal window, I need refresh the listview's model. then
when I click the save button on the page, it can load the detachable model
of listview, to save data into database.

Is this possible ?

 I can see the modal window content is set into the list item, but when I
click the save button, it's always cleared, as the loaddetachable model will
read data from database before it try to save data.  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/update-parent-table-model-from-modal-window-tp4653052.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: Load table rows lazy when click browser scrollbar

2012-10-22 Thread steven.li
I have run the demo application, found that, the

Scroll on Page link only show 13 rows result without go to  next page when
i pull down the page scroll bar.

I test it on IE8. do you have the same issue ? 

Thanks.



-
Steven Li

Skyworthglobal www.skyworthglobal.com
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653193.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: Load table rows lazy when click browser scrollbar

2012-10-26 Thread steven.li
Yes, I can find a workround for this limit.

but met into another one, in my case, each row contains multiple, and
under   , there are label, span. seems it doesn't work well if  is wrapped by 
.

see attached zip file, If I remove the  , it works fine in IE. but failed to
reload next page if with aroound.



-
Steven Li

Skyworthglobal www.skyworthglobal.com
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Load-table-rows-lazy-when-click-browser-scrollbar-tp4652541p4653371.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



AjaxCheckbox javascript with onUpdate together

2012-10-31 Thread steven.li
hi al

 Is it possible to call onUpdate method and at the same time set javascript
for the ajaxcheckbox component with add(new AttributeModifier(onclick,
xxx)) ?

as I have lots of logic implemented in javascript, but right now ,I need to
use the onUpdate method to keep the checkbox state from page to page by
modalvalue.

how can I combine these two together ?

Thanks.



-
Steven Li

Skyworthglobal www.skyworthglobal.com
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxCheckbox-javascript-with-onUpdate-together-tp4653512.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



SortableDataProvider setSort default sort order

2012-11-11 Thread steven.li
Hi all

what's the default sort order of SortableDataProvider ? such as , I have
column A,B,C, and I call 

setSort(C, SortOrder.descending), then how it will return results if 10
rows with the same value C ?

that means, how to compare between column A and column B, which I didn't
specify in the setSort statement.

I asked this because I got two different result in paging view and
downloaded excel file, the paging view is based on SortableDataProvider, and
downloaded excel file is based on pure sql, which append order by at the
end of the sql.


thanks.



-
Steven Li

Skyworthglobal www.skyworthglobal.com
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SortableDataProvider-setSort-default-sort-order-tp4653782.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