https://issues.apache.org/jira/browse/WICKET-847

2009-04-27 Thread Douglas Ferguson
So, is this fixed in 1.3.6? https://issues.apache.org/jira/browse/WICKET-847 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

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: users@wicket.apache.or

Re: how to add filter for Palette choice

2009-04-27 Thread Martin Makundi
Well.. you can override newChoicesComponent ** Martin 2009/4/28 新希望软件 -- 俞宏伟 : > 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 > >> Why cann

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 org.apache.wicket.markup.html.form.FormComponent#

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 > Why cannot get markupid? You can determine it yourself (setMarkupId) > > You could also update via ajax

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 compo

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 : > On Fri, 13 Feb 2009, Martin Makundi wrote: >> Yes, this is what I am trying to do, but di

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 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 DefaultDataTab

Re: Logging for performance analysis

2009-04-27 Thread Daniel Toffetti
Douglas Ferguson 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? > > D

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 wrote: > maybe i should move away

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 AjaxFallbackD

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 TextF

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 : > jira issue > > -igor > > On Mon, Apr 27, 2009

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 wrote: > We are experiencing some hard to trace performance issues (CPU pegged by

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: 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 s

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 app

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 wrote: > are you referring to the java code i write for the link? > > it'd be something like: > add(new Bookmar

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) req

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 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 clicks the link to home

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 wro

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 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 > application's init met

custom expired page

2009-04-27 Thread alec
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 application's init method we have the call getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class); and this works if they click on

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 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 consistently in Opera,

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 this

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 ne

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 thi

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. > > > -

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 wrote: > I have tried to find something b

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 feedbackpa

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 t

Re: LinkTree will not be updated

2009-04-27 Thread ElenaStoll
James McLaughlin 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

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 additiona

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). http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/adva

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 validati

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: users-h...@wicket

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 > 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/WIC

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 wr

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 tu

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

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: 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 1.2

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: 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. >

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 > > >

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 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 t

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 v

Re: Performance Benchmarks

2009-04-27 Thread Martijn Dashorst
On Mon, Apr 27, 2009 at 11:55 AM, Johan Compagner 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

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 t

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 wrote: > > Can wicket help with estimating page size in

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 u

Re: pageparams bug?

2009-04-27 Thread francisco treacy
https://issues.apache.org/jira/browse/WICKET-2245 2009/4/26 Igor Vaynberg : > weird, open a jira issue. > > -igor > > On Sun, Apr 26, 2009 at 8:14 AM, francisco treacy > wrote: >> Hi all, >> >> Just mounting urls in our app, I stumbled upon something I believe is >> a bug. As I might be overlook

[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

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 [org.apache.wick

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 >

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 Mon