Re: Performance Benchmarks

2009-04-27 Thread uwe janner
we did a performance comparison between wicket and jsf in january, and for our usecases wicket was the clear winner (about factor 4). wicket was nearly as fast as our old struts implementation. btw, we used wicket together with seam, which also did not add much to the execution times. uwe. On

Re: Performance Benchmarks

2009-04-27 Thread Vladimir K
Can wicket help with estimating page size in bytes? (or in cucumbers if the size of a cucumber is defined). I would like to keep pages footprint in session as short as possible. P.S. JSF certainly can be slower than DB, especially when you use Seam and SFSB as a page backing bean. It is easy to

Re: DefaultDataTable: How to add a DDChoice to change rows per page

2009-04-27 Thread Vladimir K
Vit, thanks for pointing the topic. It will come in handy. However I believe it makes sense to have DDC incorporated into navigation toolbar to save space. Vit Rozkovec wrote: Hi, check this out: http://www.nabble.com/nice-small-component-to-share-Toolbar-for-DataTable-to16743136.html

[Imrovement] Allow overriding of the Validator default MessageKey

2009-04-27 Thread Objelean Alex
I've created a JIRA issue: https://issues.apache.org/jira/browse/WICKET-2244

Re: Performance Benchmarks

2009-04-27 Thread Johan Compagner
With the request logger you can turn on logging of the session size * boolean * getRecordSessionSize() if you want to record 1 specific pages you should just do that in Requestcycle.detach johan On Mon, Apr 27, 2009 at 11:19, Vladimir K koval...@gmail.com wrote: Can wicket help with

Strange maven warning

2009-04-27 Thread Anton Veretennikov
Hello all, Strange warning I began to see last time: [WARNING] POM for 'org.apache.wicket:wicket-extensions:pom:1.4-SNAPSHOT:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project org.apache.wicket:wicket-extensions at Artifact

Re: pageparams bug?

2009-04-27 Thread francisco treacy
https://issues.apache.org/jira/browse/WICKET-2245 2009/4/26 Igor Vaynberg igor.vaynb...@gmail.com: weird, open a jira issue. -igor On Sun, Apr 26, 2009 at 8:14 AM, francisco treacy francisco.tre...@gmail.com wrote: Hi all, Just mounting urls in our app, I stumbled upon something I

Re: Performance Benchmarks

2009-04-27 Thread Martijn Dashorst
On Mon, Apr 27, 2009 at 11:55 AM, Johan Compagner jcompag...@gmail.com wrote: if you want to record 1 specific pages you should just do that in Requestcycle.detach Or add a post-request file scanner that records the page sizes from the serialized instances on the filesystem. Martijn

Re: Validator for 2 fields

2009-04-27 Thread Willis Blackburn
Thorsten, Look at the Wicket class called EqualInputValidator for guidance. You have to add it to the form, not to the individual fields. W On Apr 27, 2009, at 6:16 AM, Thorsten Scherler wrote: Hi all, I have a question about validating one field with another. I have a form that ask for

Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-27 Thread prasun
It is 'deployment' mode, good advise though. By any chance, any recommendation on JVM -ms / -mx parameters for wicket application? What we have found that we needed to set the 1/ low -ms value. 2/ comparatively high -mx value , but had to make sure that it does not exceed half of the available

Re: Validator for 2 fields

2009-04-27 Thread Thorsten Scherler
On Mon, 2009-04-27 at 06:43 -0400, Willis Blackburn wrote: Thorsten, Look at the Wicket class called EqualInputValidator for guidance. You have to add it to the form, not to the individual fields. Thanks. Meanwhile I found a working solution. Will post it now. salu2 W On Apr

Validator for 2 fields

2009-04-27 Thread Thorsten Scherler
Hi all, I have a question about validating one field with another. I have a form that ask for the start page and for the end page of an article. I need to validate whether the startPage is lesser or equal to the endPage. I could do this in public void onSubmit() {...} of the form like: public

Re: Validator for 2 fields

2009-04-27 Thread Thorsten Scherler
On Mon, 2009-04-27 at 12:16 +0200, Thorsten Scherler wrote: Hi all, I have a question about validating one field with another. I have a form that ask for the start page and for the end page of an article. I need to validate whether the startPage is lesser or equal to the endPage. I

How to Maintain the session in Wicket while using the SpringWebApplication

2009-04-27 Thread Geeta Madhavi
Hi. I want to maintain the session in the Wicket for drop down values. But i am using SpringWebApplication class. So, please tell me how to maintain the session need a sample example. -- Regards. Geeta Madhavi. K

Re: displaying xml content

2009-04-27 Thread Willis Blackburn
Shiraz, Does this dynamic XML content include references to Wicket components? In other words does it include wicket:id attributes? If not, then you don't need a special panel for it. You can just display it as a MultilineLabel with escaping turned off. W On Apr 27, 2009, at 5:57 AM,

Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-27 Thread prasun
thanks for replying. I was not looking for only native code usage, which I am sure wicket does not use. I have found out that in 1.3.x wicket uses 'DiskPageStore' to store some data to disk, whereas in 1.2.x all the data are in memory, is it correct? Would help if someone explains if wicket

displaying xml content

2009-04-27 Thread shiraz memon
Hi I am trying to display dynamic xml content on simple panel. For that I have also overriden the getMarkupType method with xml as returning string in the XmlPanel class (which extends Panel). Besides that, I have also created an empty XMLPanel.xml file. After viewing the panel on browser I see

absolute urls in form action

2009-04-27 Thread Steen Larsen
Hi, Does anybody know if it's possible to get Wicket to use absolute urls in a forms action attribute, and how to accomplish this if possible. We're trying to get a Wicket application integrated into a CMS system, through some proxying and need the full urls since the CMS is on a different server

Re: absolute urls in form action

2009-04-27 Thread Steen Larsen
Hi Eric, Thank you for the answer. Unfortunately we are still on 1.3.5, but good to know there is a future solution. /Steen 2009/4/27 Erik van Oosten e.vanoos...@grons.nl Hi Steen, Starting Wicket 1.4-rc1 plus a patch you can let Wicket make all URLs absolute. See

Re: absolute urls in form action

2009-04-27 Thread Erik van Oosten
Hi Steen, Starting Wicket 1.4-rc1 plus a patch you can let Wicket make all URLs absolute. See http://issues.apache.org/jira/browse/WICKET-1974 for more details. With some tweaks you can make the shown code work for any context (not just the root context). Regards, Erik. Steen Larsen

Re: displaying xml content

2009-04-27 Thread shiraz memon
Willis Does this dynamic XML content include references to Wicket components? In other words does it include wicket:id attributes? No it does not contain any wicket attributes. If not, then you don't need a special panel for it. You can just display it as a MultilineLabel with escaping

Example of DataTable and Hibernate

2009-04-27 Thread HHB
Hey, Do you know any example regarding using DataTable repeater with Spring Dao bean (Hibernate preferably)? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Does FeedbackPanel have to be added to Page?

2009-04-27 Thread Brill Pappin
That error comes directly from this ticket in JIRA... if you want to know how it came to be, read the comments. https://issues.apache.org/jira/browse/WICKET-1138 - Brill Pappin On 26-Apr-09, at 7:52 PM, Jason Wang wrote: Hi all, I got a weird error when doing a form component

Re: Example of DataTable and Hibernate

2009-04-27 Thread James Carman
DataTable specifically or one of its subclasses? Here's an example of using AjaxFallbackDefaultDataTable with a repository (which is implemented as a hibernate-based Spring dao subclass).

How to get an i18n message?

2009-04-27 Thread HHB
Hey, How to get a message (that will be displayed in FeedbackPanel) from properties file in order to use it for info() method of Component class? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: LinkTree will not be updated

2009-04-27 Thread ElenaStoll
James McLaughlin jomclaughlin at gmail.com writes: add tree.updateTree(target) before adding the tree to the target. hth, jim Thank you for your quick response, but your proposal has not helped me, unfortunately. The tree remains as it is and it will not be updated. Thanks elena

Re: Possible to retrieve previous page from PageMap

2009-04-27 Thread Daniele Dellafiore
I have tried to find something but, given that I am using wikcket 1.3 and I do not have PageReferences, the only way I have found to recover the last page is to pass a parameter with the page name and then found the last version of that page in the HttpSession pageMap. Or to keep the reference of

Re: How to get an i18n message?

2009-04-27 Thread Linda van der Pal
Here's an example from my own code: private static final String SQLERROR_GET = new ResourceModel(error.sqlException.select).getObject(); My properties.xml file contains a key that is called error.sqlException.select. This string is an error message that I later on add to my

Re: Possible to retrieve previous page from PageMap

2009-04-27 Thread James Carman
Copy/paste the code for PageReference into your code. That's what I did. I also created a factory method to create a PageReference from the currently requested page (useful for being able to go back). On Mon, Apr 27, 2009 at 10:42 AM, Daniele Dellafiore ilde...@gmail.com wrote: I have tried to

Re: How to get an i18n message?

2009-04-27 Thread reiern70
Maybe Component.getString(...); Ernesto HHB wrote: Hey, How to get a message (that will be displayed in FeedbackPanel) from properties file in order to use it for info() method of Component class? Thanks. - To

Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-27 Thread Carlo Camerino
yes you need to set the max heap and min heap. It depends on a 32-bit 4 gig machine usually it's nice to set it to 256 and 1524 to be safe. There have been problems when you set it too high on our previous implementations. i'm not really sure as it's hard to size an application properly. One

Re: Possible to retrieve previous page from PageMap

2009-04-27 Thread Carlo Camerino
Try this I have this method for getting the current page id and version. protected PageIDVersion getCurrentPageIDVersion() { PageIDVersion pageIDVersion = new PageIDVersion(getPageMapEntry().getNumericId(), getCurrentVersionNumber()); return pageIDVersion; } I send it to the

Re: Ajax timer behavior not updating component in IE, Chrome and Opera

2009-04-27 Thread Daniel Fernandez
Hello, Finally, I have been able to replicate this problem with Opera 9.64, and created a sample page with which it is almost deterministic to see it fail (although I can only replicate it consistently in Opera, and it seems to work in the rest of browsers)... Should I open a JIRA issue with

Re: Ajax timer behavior not updating component in IE, Chrome and Opera

2009-04-27 Thread Igor Vaynberg
jira issue -igor On Mon, Apr 27, 2009 at 10:13 AM, Daniel Fernandez daniel.f...@gmail.com wrote: Hello, Finally, I have been able to replicate this problem with Opera 9.64, and created a sample page with which it is almost deterministic to see it fail (although I can only replicate it

Re: custom expired page

2009-04-27 Thread Igor Vaynberg
make your ExpiredPage not require authorization/authentication -igor On Mon, Apr 27, 2009 at 12:32 PM, alec a...@distancesoftware.com wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired.  in our

Re: custom expired page

2009-04-27 Thread alec
sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user clicks the link to home (which requires authorization) and instead of getting the expired page they get the login page. Igor Vaynberg

Re: custom expired page

2009-04-27 Thread Matej Knopp
can you paste here a link that redirects to login page? -Matej On Mon, Apr 27, 2009 at 9:39 PM, alec a...@distancesoftware.com wrote: sorry if that sounded confusing, but it's not the expiredpage that requires authorization, it's the destination of the link that was clicked. e.g. the user

Re: custom expired page

2009-04-27 Thread alec
are you referring to the java code i write for the link? it'd be something like: add(new BookmarkablePageLink(home, Application.get().getHomePage()); it's not something special about the link which causes it to redirect to the login page, it's that the homepage class (and several others)

Re: custom expired page

2009-04-27 Thread Matej Knopp
If you use bookmarkable link then it's proper behavior. Bookmarkable link creates new page instance. It will never give you expired error. -Matej On Mon, Apr 27, 2009 at 9:50 PM, alec a...@distancesoftware.com wrote: are you referring to the java code i write for the link? it'd be something

Re: custom expired page

2009-04-27 Thread Brill Pappin
Like because your expired page requires the role. Remove the role annotation. - Brill Pappin On 27-Apr-09, at 3:32 PM, alec wrote: We have a wicket 1.3.5 application and are having trouble redirecting to an expired page if the user clicks on a link after the session expired. in our

Re: custom expired page

2009-04-27 Thread alec
maybe i should move away from the notion of a page. is there some way to determine if the session expired then? replacing all those BookmarkablePageLink's with normal links isn't an ideal solution. it'd be enough if at the login page there was something i could check that would tell me the

Logging for performance analysis

2009-04-27 Thread Douglas Ferguson
We are experiencing some hard to trace performance issues (CPU pegged by JAVA). so we want to implement some logging in order to Audit the code. Any suggestions on wicket state that we can easily print out? I.E. size of page map? Etc? D/

Re: Logging for performance analysis

2009-04-27 Thread Jeremy Thomerson
turn on the request logger - it dumps a ton of data on every request. i think it's in the debug settings IIRC -- Jeremy Thomerson http://www.wickettraining.com On Mon, Apr 27, 2009 at 3:39 PM, Douglas Ferguson doug...@douglasferguson.us wrote: We are experiencing some hard to trace

Re: Ajax timer behavior not updating component in IE, Chrome and Opera

2009-04-27 Thread Daniel Fernandez
Finally, I was able to reproduce issues in Firefox, IE and Chrome (although these were a bit different than the one in Opera), so I explained it all here: https://issues.apache.org/jira/browse/WICKET-2246 Thanks, Daniel. 2009/4/27 Igor Vaynberg igor.vaynb...@gmail.com: jira issue -igor On

DefaultDataTable loses pagination after filtering

2009-04-27 Thread Jason Rosenberg
Hi, I have an issue with the DefaultDataTable, and I'm wondering if this is something that I should expect to be supported, or not. (I've found the same problem with the AjaxFallbackDefaultDataTable) I implemented filtering, with the FilterToolbar, and made a few of the columns use

Re: DefaultDataTable loses pagination after filtering

2009-04-27 Thread Jason Rosenberg
If it matters, I forgot to mention, I'm using wicket 1.4-rc2 Jason Jason Rosenberg wrote: Hi, I have an issue with the DefaultDataTable, and I'm wondering if this is something that I should expect to be supported, or not. (I've found the same problem with the

Re: custom expired page

2009-04-27 Thread Igor Vaynberg
there is no way in j2ee spec to determine if a previous session existed. page expiration is an artifact of using wicket and if you use stateful links you can determine it. if you use bookmarkable links then you cannot. -igor On Mon, Apr 27, 2009 at 1:34 PM, alec a...@distancesoftware.com wrote:

Re: Logging for performance analysis

2009-04-27 Thread Daniel Toffetti
Douglas Ferguson douglas at douglasferguson.us writes: We are experiencing some hard to trace performance issues (CPU pegged by JAVA). so we want to implement some logging in order to Audit the code. Any suggestions on wicket state that we can easily print out? I.E. size of page map? Etc?

Re: DefaultDataTable loses pagination after filtering

2009-04-27 Thread Anton Veretennikov
If I'm true, this was solved. https://issues.apache.org/jira/browse/WICKET-2175 On Tue, Apr 28, 2009 at 8:25 AM, Jason Rosenberg jbrosenb...@gmail.com wrote: If it matters, I forgot to mention, I'm using wicket 1.4-rc2 Jason Jason Rosenberg wrote: Hi, I have an issue with the

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-04-27 Thread Martin Makundi
Ahh, now I know. I just need to make FormSubmittingCheckBox implements IFormSubmittingComponent and then checkBox.add(new AjaxFormSubmitBehavior(onchange)). Yippee! ** Martin 2009/2/13 Timo Rantalaiho timo.rantala...@ri.fi: On Fri, 13 Feb 2009, Martin Makundi wrote: Yes, this is what I am

Re: how to add filter for Palette choice

2009-04-27 Thread Martin Makundi
Why cannot get markupid? You can determine it yourself (setMarkupId) You could also update via ajax using a textfield which sends the filtered text to server and server updates the select via ajax... I wonder if someone has made a select in which the filter is visually built into the select

Re: how to add filter for Palette choice

2009-04-27 Thread 新希望软件 -- 俞宏伟
yes, i can setMarkupId for Palette. but now i want to filter for palette's choicesComponent. there is no public getChoicesComponent() method for choicesComponent. 2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com Why cannot get markupid? You can determine it yourself (setMarkupId)

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-04-27 Thread Martin Makundi
Actually one must hack even further to reject the submitButton=1 value being added at form submit javascript: /** * wicket-ajax: * * if (submitButton != null) { * s += Wicket.Form.encode(submitButton) + =1; * } * * @see

Re: how to add filter for Palette choice

2009-04-27 Thread Martin Makundi
Well.. you can override newChoicesComponent ** Martin 2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com: yes, i can setMarkupId for Palette. but now i want to filter for palette's choicesComponent. there is no public getChoicesComponent() method for choicesComponent. 2009/4/28 Martin Makundi

RE: Logging for performance analysis

2009-04-27 Thread Douglas Ferguson
I will definitely share my findings. I saw 400% CPU (we have 4 proc box), the other day! What debugging approach are you taking? Douglas -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Daniel Toffetti Sent: Monday, April 27, 2009 9:46 PM To: