Re: Wicket 1.5.4 - Application crashing on German umlaut characters

2012-02-23 Thread Martin Grigorov
Hi, Create a quickstart and attach it to a ticket. Thanks! On Thu, Feb 23, 2012 at 5:26 AM, toytown prasanna.tulad...@gmail.com wrote: 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

Re: Performance optimization

2012-02-23 Thread Martin Makundi
Hi! But adding thousands of small components will still produce a big page... Suggestions: - show less items per page. Who wants to scroll a page with thousands items ?! Use paging and filters. Is not an option. Our users fiddle with workshifts and they want to see everything on one

Re: Performance optimization

2012-02-23 Thread Bernard
If there are thousands of objects in a page then there is the question whether all of these objects actually represent state - state being the only reason why Wicket should serialize the page. In other words, is the page so complex that it requires 10MBytes to serialize itself in a manner that it

Re: Performance optimization

2012-02-23 Thread Martin Makundi
Wicket page serialization is asynchronous.. I wonder if it would be possible to queue pages in a way that they are serialized only after a certain timeout and if they are visited during timeout they will be taken directly from queue...? ** Martin 2012/2/23 Bernard bht...@gmail.com: If there are

Re: Wicket 1.5.4 - Application crashing on German umlaut characters

2012-02-23 Thread Gregor Kaczor
I had similar problems without that Exception. Have you added URIEncoding=UTF-8 to your connector? See http://struts.apache.org/2.0.6/docs/how-to-support-utf-8-uriencoding-with-tomcat.html On 02/23/2012 09:07 AM, Martin Grigorov wrote: Hi, Create a quickstart and attach it to a ticket.

Re: Labels in List Views

2012-02-23 Thread Martin Grigorov
Hi, I think using your own org.apache.wicket.resource.loader.IStringResourceLoader impl would be the best. Then insert it at the first position with org.apache.wicket.settings.def.ResourceSettings#getStringResourceLoaders().add(0, yours) Then something like this should work: class

Re: Performance optimization

2012-02-23 Thread Martin Grigorov
On Thu, Feb 23, 2012 at 9:14 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Wicket page serialization is asynchronous.. I wonder if it would be possible to queue pages in a way that they are serialized only after a certain timeout and if they are visited during timeout they will

Re: Performance optimization

2012-02-23 Thread Martin Makundi
Wicket 1.5: https://cwiki.apache.org/confluence/x/qIaoAQ This explains how page storing works. You were right about 1.4 ;) Question: If you don't serialize the page then how would you get it if it is not stored when the user presses browser back button ? Keep it in memory as it is. **

Re: Performance optimization

2012-02-23 Thread Martin Grigorov
On Thu, Feb 23, 2012 at 9:40 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Wicket 1.5: https://cwiki.apache.org/confluence/x/qIaoAQ This explains how page storing works. You were right about 1.4 ;) Question: If you don't serialize the page then how would you get it if it is

Re: Performance optimization

2012-02-23 Thread Martin Makundi
You were right about 1.4 ;) Question: If you don't serialize the page then how would you get it if it is not stored when the user presses browser back button ? Keep it in memory as it is. Your users have big monitors but your server has to have a lot of RAM too :-) Is easier to buy more

AjaxCheckBox + Java Script

2012-02-23 Thread venu.gandhe
Hi, I have a checkbox on HTML page. I have added some java script and css to style the checkbox. To handle this checkbox in wicket i have added AjaxCheckBox. But when i click on checkbox it is not calling OnUpdate() method of AjaxCheck box. This is working fine when i remove the

Re: AjaxCheckBox + Java Script

2012-02-23 Thread Martin Grigorov
On Thu, Feb 23, 2012 at 10:36 AM, venu.gandhe venu.gan...@gmail.com wrote: Hi,   I have a checkbox on HTML page. I have added some java script and css to style the checkbox. To handle this checkbox in wicket  i have added AjaxCheckBox. But when i click on checkbox it is not calling OnUpdate()

WiQuery 1.5.4 and Wicket 1.5.4 Problem

2012-02-23 Thread rawe
Hi, I changed my WiQuery version from 1.5M2 to 1.5.4 I'm running Wicket 1.5.4. I had no problem running my application with tomcat when using Wiquery 1.5M2. Now after I changed to Wiquery 1.5.4 my tomcat (5.0) fails starting with following error: java.lang.ClassCastException:

Re: AjaxCheckBox + Java Script

2012-02-23 Thread venu.gandhe
Thanks for your quick response. Here is the Java Script file i am using to style the ckeckbox. //global variables that can be used by ALL the function son this page. var inputs; var imgFalse = 'images/false.png'; var imgTrue = 'images/true.png'; //this function runs when the page is loaded, put

Re: AjaxCheckBox + Java Script

2012-02-23 Thread Martin Grigorov
On Thu, Feb 23, 2012 at 11:43 AM, venu.gandhe venu.gan...@gmail.com wrote: Thanks for your quick response. Here is the Java Script file i am using to style the ckeckbox. //global variables that can be used by ALL the function son this page. var inputs; var imgFalse = 'images/false.png';

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

2012-02-23 Thread Ian Marshall
Hi Martin, Many thanks for your explanation and tip! Regards, Ian Martin Grigorov-4 wrote 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).

FormTester and components contained in Border

2012-02-23 Thread Schlärmann , Bob
Hi list, I have a form with components each contained within an individual border. When testing the form with FormTester I have to specify the full component id including the intermediate component id's added by the border. Is there any easier way to do this, e.g. with wildcard paths or

Re: FormTester and components contained in Border

2012-02-23 Thread Martin Grigorov
Hi, In the projects I have worked on we have used helper Path objects for testing which describe how to find a child of a given Component. In first sight it looks like we are duplicating the component tree and this is almost true but it helps a lot for such kind of problems because the Path

Dot in DataTable Columnheader - not allowed?

2012-02-23 Thread Rain... Is wet!
Hi, I just explored a strange behavior of the DataTable component in Wicket 1.5.4. If a column header has a . (dot) in it's name, the values of the cells belonging to to that column aren't rendered properly - they are rendered like empty cells. For example: If I do a SQL-Command like 'SELECT

RE: FormTester and components contained in Border

2012-02-23 Thread Schlärmann , Bob
In the projects I have worked on we have used helper Path objects for testing which describe how to find a child of a given Component. In first sight it looks like we are duplicating the component tree and this is almost true but it helps a lot for such kind of problems because the Path

RE: WiQuery 1.5.4 and Wicket 1.5.4 Problem

2012-02-23 Thread Hielke Hoeve
Hi, Sounds like you updated wiquery-core but not wiquery-jquery-ui. If you open IWiQueryInitializer in eclipse and open a type hierarchy you can see if WiQueryUIInitializer is a subclass or not. If not then you probably have a version difference somewhere. Hielke -Original Message-

RE: WiQuery 1.5.4 and Wicket 1.5.4 Problem

2012-02-23 Thread rawe
Yes, this was the right hint! I included also the same version (1.5.4) of wiquery-jquery-ui and wiquery-core jar files in WEB-INF/lib but I didn't delte the old versions of 1.5-M2 It's running now! Thank you! Ralph -- View this message in context:

DropDownChoice selection won't update form fields

2012-02-23 Thread oggie
I have a dropdownchoice populated from a database call. When a user selects an item from the drop down, I want to load the values of the drop down object into the form. I can't seem to be able to just get the form to reload with the chosen object. But I can change the form fields individually by

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread oggie
Also, the drop down is not part of the form. Here's the HTML: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-selection-won-t-update-form-fields-tp4413980p4414035.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Link URLs (with JSessionID) truncated during URL rewriting

2012-02-23 Thread Ian Marshall
I fixed the problem by going around it. All my web pages are descended from my PageBase class, which in turn descends from Wicket's WebPage. · I disable my automatic removal of JSessionID by overriding public String ServletWebResponse.encodeURL(CharSequence url) in my

Re: Performance optimization

2012-02-23 Thread Bertrand Guay-Paquet
First of all, you stated that your problem what that the serialized size was too big, so please don't be so rude. Now, are you sure that the slow part of serialization is not the IO for storing that 10MB? If it is, zipping the page could definitely improve performance, even if it takes a some

AutoCompleteBehavior dont work with AbstractTransformerBehavior

2012-02-23 Thread Taag
I have a class that extends AutocompleteTextfield, to give me a list of users avaliable based on input. An object of this owndefined class also addes a class with AbstractTransformerBehavior. This is done to change the html of the input, to a span, for display purposes. It seems that there is

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread Andrea Del Bene
Hi, you can clean up your page using a CompundPropertyModel for your form and a Model for dropDownChoice. I would make a chain of models passing Model to CompoundPropertyModel: model = new Model(configType);//for dropDownChoice CompoundPropertyModel cpm = new CompoundPropertyModel(model)

Re: Performance optimization

2012-02-23 Thread Martin Grigorov
On Thu, Feb 23, 2012 at 3:55 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: First of all, you stated that your problem what that the serialized size was too big, so please don't be so rude. Now, are you sure that the slow part of serialization is not the IO for storing that 10MB? If

Re: AutoCompleteBehavior dont work with AbstractTransformerBehavior

2012-02-23 Thread Martin Grigorov
Hi, On Thu, Feb 23, 2012 at 3:40 PM, Taag sae...@hotmail.com wrote: I have a class that extends AutocompleteTextfield, to give me a list of users avaliable based on input. An object of this owndefined class also addes a class with AbstractTransformerBehavior. This is done to change the html

Re: Link URLs (with JSessionID) truncated during URL rewriting

2012-02-23 Thread Bartosz Jakubowski
I've had the same issue. It happens when you have mounted home page to / and another page Foo to /foo. Then the URL with jsessionid looks like this: /foo/..;jsessionid and the mapper of page Foo takes it as if it is a URL to this page with parameter ... And this mapper always goes before home

Re: AutoCompleteBehavior dont work with AbstractTransformerBehavior

2012-02-23 Thread Taag
It's only changed to span when the input field is disabled. To avoid haveing the textfield visible. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteBehavior-dont-work-with-AbstractTransformerBehavior-tp4414031p4414135.html Sent from the Users forum mailing

Re: Link URLs (with JSessionID) truncated during URL rewriting

2012-02-23 Thread Martin Grigorov
On Thu, Feb 23, 2012 at 4:09 PM, Bartosz Jakubowski bumbu...@wp.pl wrote: I've had the same issue. It happens when you have mounted home page to / and another page Foo to /foo. Then the URL with jsessionid looks like this: /foo/..;jsessionid and the mapper of page Foo takes it as if it is a

Re: Link URLs (with JSessionID) truncated during URL rewriting

2012-02-23 Thread Ian Marshall
I run my Wicket app on Google App Engine for Java, which I believe uses Jetty (or modified Jetty?) not Tomcat as its web application server. The JIRA ticket states The bug does only show up when using tomcat (6.0.29) and not in jetty, so I'll dip out of testing this particular ticket if

Re: Performance optimization

2012-02-23 Thread Thomas Matthijs
On Thu, Feb 23, 2012 at 4:12 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: 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

Re: Redirect to external page without jsessionid in referrer

2012-02-23 Thread geissbock
Hi Jeff, Thanks for your hint. I tried to implement some magic which determines whether to strip the jsessionid from a URL or not based on the page I request, i.e. I created some RedirectPage. The problem is: When I access this page by clicking a link on another page, the method

Re: Performance optimization

2012-02-23 Thread Bertrand Guay-Paquet
Even if it is asynchronous, it uses up some of the total IO capacity of the server. Reading the bytes back when the page is requested again is however a synchronous operation and it depends on IO. Anyway, if profiling shows that the slow part is the serialize call, then zipping won't help.

Re: Performance optimization

2012-02-23 Thread Martin Makundi
Thanks, I will try to wave my magic wand and see what happens ... 2012/2/23 Bertrand Guay-Paquet ber...@step.polymtl.ca: Even if it is asynchronous, it uses up some of the total IO capacity of the server. Reading the bytes back when the page is requested again is however a synchronous

Re: Performance optimization

2012-02-23 Thread Igor Vaynberg
On Thu, Feb 23, 2012 at 7:26 AM, Thomas Matthijs li...@selckin.be wrote: On Thu, Feb 23, 2012 at 4:12 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Any experiences how to optimize the performance of a Page that contains nested ListView:s with a total page serialized size

Re: Performance optimization

2012-02-23 Thread Martin Makundi
I think the best optimisation for this kind of thing is probably to try to reduce the component count as much as possible by implementing custom components that render directly to html. +1 What might be the best way (performance-wise) to make such a custom component (rendering the dynamic

Re: Performance optimization

2012-02-23 Thread Igor Vaynberg
you can, for example, replace the entire listview with a single component like this: class workerlist extends webcomponent implements ilinklistener { oncomponenttagbody() { stringbuilder markup=new stringbuilder(); markup.append(table); for (worker:list) {

Re: Performance optimization

2012-02-23 Thread Martin Makundi
Looks powerful, thanks. What about partial ajax updates, should I design so that I can replace complete webcomponents (might restrict optimization) or is there a way to interact nicely with wicket-ajax with such inline code? ** Martin 2012/2/23 Igor Vaynberg igor.vaynb...@gmail.com: you can,

Re: Wicket jQuery Validator integration

2012-02-23 Thread Alec Swan
Zachary, I will definitely find your code that does client-side validation useful. I don't know if this helps but Jeremy Thomerson had a presentation on custom JavaScript integration with Wicket (http://stuq.nl/weblog/2009-11-27/london-wicket-meetup-wicket-1-5-wiquery-brix-and-more). On Mon, Feb

Error during start of wicket application

2012-02-23 Thread André Schütz
Hello, I get the following error message during a start of the tomcat server with a clean packed wicket application: /** * BEGIN */ Exception in thread Thread-2 java.lang.NoClassDefFoundError: org/apache/wicket/ApplicationListenerCollection$2 at

Re: Link URLs (with JSessionID) truncated during URL rewriting

2012-02-23 Thread Bartosz Jakubowski
I use Jetty 6.1.26 and this patch works fine for me. Thanks. On 23.02.2012 16:23, Ian Marshall wrote: I run my Wicket app on Google App Engine for Java, which I believe uses Jetty (or modified Jetty?) not Tomcat as its web application server. The JIRA ticket states The bug does only show

Re: Performance optimization

2012-02-23 Thread Igor Vaynberg
ajax updates work based on components, so in this particular case you would only be able to update the entire listview using ajax. so design your component breakdown accordingly. of course if you design these optimized components to be able to produce some part of its output you can use jquery

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread oggie
That worked. Thanks! The only downside is that the wicket plugin for netbeans is throwing a bunch of errors at me due to the way it's now set up. It's saying that everything I add to the form is a child in Java and not in HTML. -- View this message in context:

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread oggie
I jumped the gun on that one. It didn't work. I was still calling the old page from my menu. Once I fixed that and I am now calling a new page with your suggestions, the form objects never get updated. Here's the code: -- View this message in context:

Wizard overview bar

2012-02-23 Thread N. Metzger
Hi all, I have a wizard implemented that walks the user through a dynamic amount of steps. I also added an overview bar to show progress to the user, essentially a picture moving an arrow from left to right. So far the overview is defined upon wizard creation with the picture staying the same in

RE: wiquery css

2012-02-23 Thread N. Metzger
I tried the easy way out because I just need the style for one page so far. Unfortunately it didn't work with wicket:head /wicket:head Should I have used any other style definitions? And if I go the whole route with the themeroller: I got myself a zip file with all the definitions for my

Re: Wizard overview bar

2012-02-23 Thread Dan Retzlaff
Hi Natalie, If I understand your description correctly, then updating your wizard to use AJAX is a matter of (1) replacing links/buttons with AJAX ones, and (2) adding the overview bar to the AjaxRequestTarget so that it gets updated. An approach to #1 is to construct links/buttons with a

Re: Wizard overview bar

2012-02-23 Thread N. Metzger
Thanks for the quick reply! I think I can go the AJAX way, I was just wondering if there's something quicker than that. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wizard-overview-bar-tp4414812p4414873.html Sent from the Users forum mailing list archive at

Re: Performance optimization

2012-02-23 Thread Martin Makundi
I wonder if there could be components that would melt/dissolve after use... ... for example a label: container.add(new Label(xx)); After use, the label output would become part of container's markup output at proper position, but there would remain no reference to an instance of label

Re: Wizard overview bar

2012-02-23 Thread Dan Retzlaff
Like an application setting that AJAX-ifies your entire app? No, Wicket makes AJAX relatively easy but you still need to make decisions, for example about what gets rendered in the response. On Thu, Feb 23, 2012 at 11:05 AM, N. Metzger nmetz...@odu.edu wrote: Thanks for the quick reply! I

Re: Performance optimization

2012-02-23 Thread Igor Vaynberg
if the component is stateless you can autoadd it in onbeforerender(), such components are removed at the end of the request -igor On Thu, Feb 23, 2012 at 11:09 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I wonder if there could be components that would melt/dissolve after

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread Andrea Del Bene
Maybe the problem is with resetButton. The code inside onSubmit breaks the model chain. If you want to reset form's field try just with form.setModelObject(new ConfigTypeDTO()); I jumped the gun on that one. It didn't work. I was still calling the old page from my menu. Once I fixed that and

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread oggie
Once again, you make it simpler than I thought it would be. Thanks again. Finally, how do I reset the form from the onSubmit button of the form? I tried this: But it doesn't work. The form never gets reset. I'm able to get the updated list from the DB and repopulate the list. And the list is

Re: DropDownChoice selection won't update form fields

2012-02-23 Thread Andrea Del Bene
This is strange. Can you post the code of the full page? Once again, you make it simpler than I thought it would be. Thanks again. Finally, how do I reset the form from the onSubmit button of the form? I tried this: But it doesn't work. The form never gets reset. I'm able to get the updated

Re: Error during start of wicket application

2012-02-23 Thread Martin Grigorov
Hi, Such kind of errors occur when you have several versions of Wicket in the classpath. 2012/2/23 André Schütz andre-p...@gmx.de: Hello, I get the following error message during a start of the tomcat server with a clean packed wicket application: /**  * BEGIN  */ Exception in thread

Re: modal window takes very long time to close

2012-02-23 Thread fachhoch
should I add the behaviour to the page or to the modalwindow ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modal-window-takes-very-long-time-to-close-tp4377803p4415330.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wizard overview bar

2012-02-23 Thread N. Metzger
Dan, that's not what I meant. It never occurred to me to make my entire Application AJAX. I meant I can make an AjaxWizard, no problem. My question was about the basic wizard, if I can have an overview bar that is changeable while using the regular Wizard class. But I guess not... Thanks,

Re: Wizard overview bar

2012-02-23 Thread Dan Retzlaff
Ah, sorry for my misunderstanding. Have you experimented with IWizardModelListener#onActiveStepChanged()? Maybe you can get the ART with AjaxRequestTarget.get() and add your overview bar. On Thu, Feb 23, 2012 at 5:09 PM, N. Metzger nmetz...@odu.edu wrote: Dan, that's not what I meant. It

Getting new lines in RepeatingView

2012-02-23 Thread Dale Ogilvie
Hi, From the docs: Java: RepeatingView view = new RepeatingView(repeater); view.add(new Label(view.newChildId(), hello)); view.add(new Label(view.newChildId(), goodbye)); view.add(new Label(view.newChildId(), good morning)); add(view); Markup: ul li

Re: Getting new lines in RepeatingView

2012-02-23 Thread Martin Grigorov
Hi, I think you can override RepeatingView's org.apache.wicket.markup.repeater.AbstractRepeater#renderChild(): { super.renderChild(component); getResponse().write(br/); } On Fri, Feb 24, 2012 at 4:24 AM, Dale Ogilvie dale_ogil...@trimble.com wrote: Hi, From the docs: Java:

RE: Performance optimization

2012-02-23 Thread Chris Colman
Native Java serialization is wy over the top in what is spits out to the stream. Each object that gets streamed has it's entire class name and package name dumped to the stream. So an object that might only have a 4 byte integer attribute in it takes up to 100 or more bytes in the stream. You

Re: Dot in DataTable Columnheader - not allowed?

2012-02-23 Thread Rain... Is wet!
Some more info: My DataProvider is using a Model of the type ListHashMaplt;String, Object, where list-index is acting as a table-row, the string is the name of a column and the object is the value of a cell. Regards Rain... Is wet! - Never forget your umbrella ! In case You did, try to

Re: Dot in DataTable Columnheader - not allowed?

2012-02-23 Thread Martin Grigorov
Hi, Create a quickstart and attach it to a ticket in Jira. On Fri, Feb 24, 2012 at 8:31 AM, Rain... Is wet! oryp-moel...@hotmail.de wrote: Some more info: My DataProvider is using a Model of the type ListHashMaplt;String, Object, where list-index is acting as a table-row, the string is the