Re: Performance optimization

2012-02-22 Thread Martin Grigorov
Hi, Wicket 1.5 uses by default JavaSerializer (ISerializer impl based on Java Serialization API) because it is tested well (in previous versions of Wicket). It may be slower than other serialization frameworks but it works well in all cases. KryoSerializer is easy to use with Java objects and it i

Re: Performance optimization

2012-02-22 Thread Martin Makundi
(ofcourse I mean invoke within 1 minute...) 2012/2/23 Martin Makundi : > I think that would be something that should be implemented at wicket > core... anybody done this before? > > Is there any way to tell wicket NOT to serialize a page? For example > give a timer if user does not invoke the

Re: Performance optimization

2012-02-22 Thread Martin Makundi
I think that would be something that should be implemented at wicket core... anybody done this before? Is there any way to tell wicket NOT to serialize a page? For example give a timer if user does not invoke the page for 1 minutes it will not be serializeed..? ** Martin 2012/2/23 Juha Syrjä

Re: Performance optimization

2012-02-22 Thread Juha Syrjälä
Hi, I would guess that Wicket uses a normal Java built-in serializer by default. Here are some benchmarks for different serializer implementations https://github.com/eishay/jvm-serializers/wiki/ . Java's built-in serializer is not the fastest... -- Juha Syrjälä On 02/23/2012 08:45 AM, Martin

Re: Performance optimization

2012-02-22 Thread Martin Makundi
But is serializing wicket native components only.. I would assume wicket does it best. 2012/2/23 Juha Syrjälä : > Hi, > > Wicket 1.5 has support for pluggable serializers via ISerializer interface, > you could try to plug in different serializer implementations, for example > this one https://gith

Re: Performance optimization

2012-02-22 Thread Juha Syrjälä
Hi, Wicket 1.5 has support for pluggable serializers via ISerializer interface, you could try to plug in different serializer implementations, for example this one https://github.com/wicketstuff/core/wiki/Kryo-Serializer . That should make the serialization bit faster. -- Juha Syrjälä On 0

Re: Performance optimization

2012-02-22 Thread Martin Makundi
The problem is that the SERIALIZATION takes time. So it does not help to ZIP AFTER serialization... I have debugged it and it's just thousands and thousands of components. Even printing the component paths alone take almost 10mb or more because there is repetition ;) ** Martin 2012/2/23 Bertran

Wicket 1.5.4 - Application crashing on German umlaut characters

2012-02-22 Thread toytown
Wicket : 1.5.4 Tomcat : 6.0.28 to 6.0.35 JDK - 1.6 I have a simple search application where I could enter search parameters like city name in a input textbox component. I am using displaying the results in a separate page by passing search criteria as pageparameters. searchForm.add(n

Re: Performance optimization

2012-02-22 Thread Bertrand Guay-Paquet
Hi, Have you seen the following thread? http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simply-by-zipping-it-Saved-my-day-td4402980.html Perhaps this can help you. That said, 10MB seems HUGE! Since you already use detachable models, maybe you could have a look at a memory

Performance optimization

2012-02-22 Thread Martin Makundi
Hi! Any experiences how to optimize the performance of a Page that contains nested ListView:s with a total page serialized size of over 10 MB? I have made all actual data objects non-serializable and available via loadabledetachablemodel, but page Serialization seems to kill the performance in aj

Re: Reusing forms in different contexts

2012-02-22 Thread Bertrand Guay-Paquet
Hi Martin, Thanks for the tip! This is an interesting approach as well. On 22/02/2012 2:49 AM, Martin Grigorov wrote: HI Bertrand, I'm not quite sure whether this is your concern but take a look at org.apache.wicket.markup.html.tree.BaseTree#newLink() It uses LinkType to decide what kind of Li

Re: AjaxFormValidatingBehavior Submits Form When I Clicked Submit Button second Time

2012-02-22 Thread Andrea Del Bene
Hi, what kind of exception do you get the second time? Hi to everyone, i have added some jquery validation code to my page and add AjaxFormValidatingBehavior to my submit button.When i do not fill fields and click on submit button, it gives error next to each field and does not submit anything.

Re: Adding extra request parameters to AJAX calls

2012-02-22 Thread gmparker2000
Got it. I was overriding the wrong getCallbackURL method: public CharSequence getCallbackUrl() instead of: public CharSequence getCallbackUrl(final boolean onlyTargetActivePage); Thanks a lot!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-extra-request-p

Re: How to write an HTTP header (to detect cookie disablement)?

2012-02-22 Thread Martin Grigorov
Hi, Headers are not cookies. By setting a header in the response you should not expect that it will come in the next request. A request header is set by the client (the browser in this case). You can use UrlConnection or Apache HttpClient to set header request which will be available thru WebRequ

Re: How to write an HTTP header (to detect cookie disablement)?

2012-02-22 Thread Ian Marshall
Hi Martin, COOKIES --- I'm fine for this. My cookie code actually works. (But if the user's browser disables cookies, then I want to use HTTP headers to be able to say "The user is on his/her second page, and still no cookie, so cookies are definitely disabled (I cannot tell this on the first

Re: Adding extra request parameters to AJAX calls

2012-02-22 Thread Martin Grigorov
Put a break point at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior#getCallbackScript() and see what happens This method should be called when the page HTML is generated. Long before you are able to click in the browser. On Wed, Feb 22, 2012 at 5:18 PM, gmparker2000 wrote: > I appreciate all

Re: Adding extra request parameters to AJAX calls

2012-02-22 Thread gmparker2000
I appreciate all the help but still no luck. I changed things to look like this: DropDownChoice myDropDown = new DropDownChoice("myDropDown"); myDropDown.add(new ConversationAjaxBehavior("onchange")); add(myDropDown); and: class ConversationAjaxBehavior extends AjaxEventBehavio

Re: Adding extra request parameters to AJAX calls

2012-02-22 Thread Martin Grigorov
On Wed, Feb 22, 2012 at 4:50 PM, gmparker2000 wrote: > I gave that a try on a DropDownChoice with no success.  I'm probably doing > something wrong.  Here is what I tried: > > I added this to the constructor of the page: > >        DropDownChoice myDropDown = new DropDownChoice("myDropDown"); >  

Re: Adding extra request parameters to AJAX calls

2012-02-22 Thread gmparker2000
I gave that a try on a DropDownChoice with no success. I'm probably doing something wrong. Here is what I tried: I added this to the constructor of the page: DropDownChoice myDropDown = new DropDownChoice("myDropDown"); myDropDown.add(new ConversationAjaxBehavior()); add

Re: DataTable and HeadersToolBar

2012-02-22 Thread Martin Grigorov
On Wed, Feb 22, 2012 at 4:03 PM, grazia wrote: > I am trying to use the > org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable > following the example in Igor Vaynberg's Apache Wicket Cookbook. The line " > table.addTopToolbar(new HeadersToolbar(table, null));" gives me the error

Re: Adding extra request parameters to AJAX calls

2012-02-22 Thread Martin Grigorov
On Wed, Feb 22, 2012 at 3:51 PM, gmparker2000 wrote: > Thanks for the quick response.  However, I'm still a bit lost.  I'm currently > still using Wicket 1.4 (although upgrading to 1.5 is possible).  Both of the > links in your reply take me to pages that appear to be related to Wicket 6. > They b

Re: Adding extra request parameters to AJAX calls

2012-02-22 Thread gmparker2000
Thanks for the quick response. However, I'm still a bit lost. I'm currently still using Wicket 1.4 (although upgrading to 1.5 is possible). Both of the links in your reply take me to pages that appear to be related to Wicket 6. They both talk about a class named "AjaxRequestAttributes" that doe

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
On Wed, Feb 22, 2012 at 12:31 PM, Martin Grigorov wrote: > On Wed, Feb 22, 2012 at 12:20 PM, Daniel Stoch wrote: >> On Wed, Feb 22, 2012 at 12:11 PM, Martin Grigorov >> wrote: >>> On Wed, Feb 22, 2012 at 12:01 PM, Daniel Stoch >>> wrote: No. I want to have . When you use this LinkContain

Re: Redirect to external page without jsessionid in referrer

2012-02-22 Thread Jeff Schneller
So my last message got off. This will force a new session on every request of the page since the jsessionid is not in url and cookies are not being accepted by the browser. I would look at the wiki entry and see if that is what you are looking for. -- Jeff Schneller Sent with Sparrow (ht

Re: Redirect to external page without jsessionid in referrer

2012-02-22 Thread Jeff Schneller
If all you want to do is remove the jsessionid from the URL there is a wiki entry on how to do this. It is under SEO optimization. This will force a new session on every Sent from my iPhone On Feb 22, 2012, at 8:00 AM, geissb...@gmx.org wrote: > Hi folks, > > I'm struggling with the document

Redirect to external page without jsessionid in referrer

2012-02-22 Thread geissbock
Hi folks, I'm struggling with the documentation of ExternalLink (applies for both 1.4 and 1.5): http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/link/ExternalLink.html I.e. especially with this paragraph: "Note: in the case when the support for cookies in the browser is disab

Re: ContextNotActiveException using net.ftlines.wicket-cdi:wicket-cdi 1.2

2012-02-22 Thread Claudio Miranda
Ah, thanks for noticing that. That is what happens when one person is late at night... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ContextNotActiveException-using-net-ftlines-wicket-cdi-wicket-cdi-1-2-tp4408946p4410191.html Sent from the Users forum mailing list ar

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Martin Grigorov
On Wed, Feb 22, 2012 at 12:20 PM, Daniel Stoch wrote: > On Wed, Feb 22, 2012 at 12:11 PM, Martin Grigorov > wrote: >> On Wed, Feb 22, 2012 at 12:01 PM, Daniel Stoch >> wrote: >>> No. I want to have . When you use this LinkContainer from my >>> example in HTML like: >>> >>> >>> >>> It will be

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
On Wed, Feb 22, 2012 at 12:11 PM, Martin Grigorov wrote: > On Wed, Feb 22, 2012 at 12:01 PM, Daniel Stoch wrote: >> No. I want to have . When you use this LinkContainer from my >> example in HTML like: >> >> >> >> It will be rendered as: >> >> ... >> >> So any attributes modified using behavior

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Martin Grigorov
On Wed, Feb 22, 2012 at 12:01 PM, Daniel Stoch wrote: > No. I want to have . When you use this LinkContainer from my > example in HTML like: > > > > It will be rendered as: > > ... > > So any attributes modified using behavior will disappear. > > > But if LinkContainer will not have setRenderBod

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
No. I want to have . When you use this LinkContainer from my example in HTML like: It will be rendered as: ... So any attributes modified using behavior will disappear. But if LinkContainer will not have setRenderBodyOnly(true), the the corresponding HTML will be: ... -- DS On Wed, F

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Martin Grigorov
Hi, So you want to not have (because this is what .setRenderBodyOnly(true) does) and in the same time you want to set a class an that non-existing tag ?! The easiest way is to remove the call to .setRenderBodyOnly(true). On Wed, Feb 22, 2012 at 11:38 AM, Daniel Stoch wrote: > Hi, > > Is it pos

Re: Stateless form broken with 1.5.4?

2012-02-22 Thread Martin Grigorov
Yes, bad. We noticed this soon after releasing 1.5.4 ... It is fixed : https://issues.apache.org/jira/browse/WICKET-4365 On Wed, Feb 22, 2012 at 11:37 AM, Andrea Del Bene wrote: > Hi, > > I've found a problem with the latest Wicket version (1.5.4) and stateless > forms. Now the values of input fi

How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
Hi, Is it possible to modify tag attribute (eg. add a CSS class) of component which has set renderBodyOnly flag to true? When using component.add(new AttributeModifier(...)) it has no effect, because a tag in which this class attribute is appended is not rendered in HTML (because of setRenderBodyO

Stateless form broken with 1.5.4?

2012-02-22 Thread Andrea Del Bene
Hi, I've found a problem with the latest Wicket version (1.5.4) and stateless forms. Now the values of input fields are passed via GET parameters and are always appended to form's action attribute and it's not possible to change field's value after the first submit. You can reproduce the probl

RE: wiquery css

2012-02-22 Thread Hielke Hoeve
To roll your own theme use www.themeroller.com and when done choose download. You can then use the contents of the zipfile to create your own resourcereference to use in IThemableApplication. Hielke -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: wo

Re: wiquery css

2012-02-22 Thread Ernesto Reinaldo Barreiro
Natalie, On Tue, Feb 21, 2012 at 3:10 PM, N. Metzger wrote: > Hi all, > > I'm having another of my blind mornings. > I just tried wiquery for the first time and had an accordion running within > a few minutes, so first of all: thanks!!! > Now: what's the best way to change the look and feel? I s