Re: 1.5.4: Rather curious case of the IInitializer List

2012-02-14 Thread richard emberson
of Collection.unmodifiableList(): 'Query operations on the returned list read through to the specified list' Sven Am 13.02.2012 23:58, schrieb richard emberson: While looking at the extensions code, I noted that in the 1.5.4 InitializerStringResourceLoader constructor that the list of IInitializer is empty

1.5.4: Rather curious case of the IInitializer List

2012-02-13 Thread richard emberson
While looking at the extensions code, I noted that in the 1.5.4 InitializerStringResourceLoader constructor that the list of IInitializer is empty but in the InitializerStringResourceLoader loadStringResource method there are two initializers in that same IInitializer list. So, how can this be?

Re: Page De-Serialization and memory

2011-07-20 Thread richard emberson
. It is faster than Java Serialization and produces less bytes. On Wed, Jul 20, 2011 at 2:43 AM, richard emberson richard.ember...@gmail.com wrote: Martin, The reason I was interested in Wicket memory usage was because of the potential use of Scala traits, rather than the two possible Java

Re: Page De-Serialization and memory

2011-07-20 Thread richard emberson
AM, richard emberson richard.ember...@gmail.com wrote: I have many examples of such Java bloat. Consider the getKey method in the org/apache/wicket/util/value/ValueMap.java class: Java version: public String getKey(final String key) { for (Object keyValue : keySet

Re: Page De-Serialization and memory

2011-07-20 Thread richard emberson
lol, so scala has a built in isOneOf, of course it wins there...this is of course a non-example. im not sure why some of our code is so bloated, its been there for years. i cleaned this one up to, here is the concise version: private boolean isOneOf(final char ch, final char[] charray) {

Re: Page De-Serialization and memory

2011-07-20 Thread richard emberson
On 07/20/2011 10:03 AM, Martin Grigorov wrote: Hi Richard, With the serialization optimizations you optimize only the second and third level stores, i.e. the runtime memory is still the almost same. You'll gain only if you have bigger second level cache which is used when the user uses

Re: Bigger sites running on wicket?

2011-07-20 Thread richard emberson
I looked at the Page source for about 10 pages and could not tell that they were generated using Wicket. Are there some telltale indicators that might indicate Wicket usage? Yea, inside knowledge is one indicator, but I mean some other indicator. Something about the HTML or such? Thanks Richard

Re: Page De-Serialization and memory

2011-07-19 Thread richard emberson
are deserialized in the heap. But even in this case they go in the Eden space, i.e. they are reclaimed soon after. On Sun, Jul 10, 2011 at 2:37 AM, richard emberson richard.ember...@gmail.com wrote: I you run the little Java program I included, you will see that there is an impact - de-serialized

Re: Page De-Serialization and memory

2011-07-11 Thread richard emberson
impact. -igor On Sat, Jul 9, 2011 at 5:10 PM, richard emberson richard.ember...@gmail.comwrote: Martin, The reason I was interested was because it struck me a couple of days ago that while each Page, tree of Components, is created many (almost all?) of the non-end-user-generated Strings

Page De-Serialization and memory

2011-07-09 Thread richard emberson
This is a question for Wicket masters and those application builders whose application match the criteria as specified below. [In this case, a Wicket master is someone with a knowledge of how Wicket is being used in a wide spectrum of applications so that they have a feel for what use-cases

Re: Page De-Serialization and memory

2011-07-09 Thread richard emberson
Martin, The reason I was interested was because it struck me a couple of days ago that while each Page, tree of Components, is created many (almost all?) of the non-end-user-generated Strings stored as instance variables in the tree are shared between all copies of the Page but that when such a

Re: Page De-Serialization and memory

2011-07-09 Thread richard emberson
at 5:10 PM, richard emberson richard.ember...@gmail.com wrote: Martin, The reason I was interested was because it struck me a couple of days ago that while each Page, tree of Components, is created many (almost all?) of the non-end-user-generated Strings stored as instance variables in the tree

Any site running 1.5-M3 examples

2011-01-06 Thread richard emberson
When a milestone release occurs, is there any site that runs the example applications? Richard -- Quis custodiet ipsos custodes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Any site running 1.5-M3 examples

2011-01-06 Thread richard emberson
/2011 05:00 PM, Igor Vaynberg wrote: http://wicketstuff.org/wicket/ not sure what version it is but its some 1.5.x -igor On Thu, Jan 6, 2011 at 4:57 PM, richard emberson richard.ember...@gmail.com wrote: When a milestone release occurs, is there any site that runs the example applications

Re: wicket-velocity velocimacro.library

2010-12-11 Thread richard emberson
Funny, just yesterday I was trying to get wicket-velocity to work. So, I downloaded the velocity source and went code spelunking. The singleton, org.apache.velocity.app,Velocity, has a method setProperty which, if set before the init method is called, allows you to override the

BUG: Form Bytes getMaxSize

2010-11-05 Thread richard emberson
In org/apache/wicket/markup/html/form/Form the method getMaxSize always returns a Bytes instance. public Bytes getMaxSize() { Bytes maxSize = this.maxSize; if (maxSize == null) { maxSize = visitChildren(Form.class, new IVisitorForm?, Bytes() { public void component(Form?

Re: code review: org.apache.wicket.pageStore.AsynchronousDataStore.removeData

2010-10-19 Thread richard emberson
I've submitted such items to the dev list and got no reply. At least here some knowledgeable user may look at the code and provide feedback. On 10/19/2010 07:30 AM, John Owen wrote: Shouldn't this be on the dev mailing list instead? -Original Message- From: richard emberson

Re: code review: org.apache.wicket.pageStore.AsynchronousDataStore.removeData

2010-10-19 Thread richard emberson
asked about it. Thanks. Richard On 10/19/2010 07:58 AM, Martin Grigorov wrote: On Tue, Oct 19, 2010 at 4:40 PM, richard emberson richard.ember...@gmail.com wrote: I've submitted such items to the dev list and got no reply. Hm, I don't remember seeing this in d...@. But I don't remember many

Re: MarkupContainer's ComponentSourceEntry

2010-10-18 Thread richard emberson
On Thu, Oct 14, 2010 at 10:15 AM, richard emberson richard.ember...@gmail.com wrote: The MarkupContainer's ComponentSourceEntry is a private class with a private constructor. No where in the MarkupContainer code is an instance of ComponentSourceEntry created. Is ComponentSourceEntry something

code review: org.apache.wicket.pageStore.AsynchronousDataStore.removeData

2010-10-18 Thread richard emberson
org.apache.wicket.pageStore.AsynchronousDataStore.removeData A little code review please: In org.apache.wicket.pageStore.AsynchronousDataStore public void removeData(final String sessionId, final int id) { synchronized (WRITE_LOCK) { String key =

MarkupContainer's ComponentSourceEntry

2010-10-14 Thread richard emberson
The MarkupContainer's ComponentSourceEntry is a private class with a private constructor. No where in the MarkupContainer code is an instance of ComponentSourceEntry created. Is ComponentSourceEntry something on its way out or some feature yet to be engaged? Richard -- Quis custodiet ipsos