FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Hi! My FileUploadField worked fine before: dataForm.add(fileUploadField = new FileUploadField(COMPANY_LOGO)); After upgrading to 1.4 rc-1 (from 1.4-m1) the upload crashes. Am I doing something wrong or is there a bug in rc-1? Caused by: java.lang.IllegalStateException: Attempt to set

Re: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
How? It accepts only FileUpload, which cannot be constructed as a dummy. Or can it? ** Martin 2008/11/19 Bruno Cesar Borges [EMAIL PROTECTED]: Yes, you need to set a Model object into FileUploadField. :-) Bruno -Mensagem original- De: Martin Makundi [mailto:[EMAIL PROTECTED

Re: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Where is such method? ** Martin 2008/11/19 Igor Vaynberg [EMAIL PROTECTED]: call hasexplicitmodel(false) -igor On Wed, Nov 19, 2008 at 8:43 AM, Martin Makundi [EMAIL PROTECTED] wrote: How? It accepts only FileUpload, which cannot be constructed as a dummy. Or can it? ** Martin

Re: RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Strange quirk.. someone removed the preceding hack from within. Is there some flaw in the FileUploadFIeld design? ** Martin 2008/11/19 Erik van Oosten [EMAIL PROTECTED]: Yeah, I run into the same thing. Just pass FileUploadField an empty model: new ModelFileUpload() Regards, Erik.

Re: Memory consumption per session

2008-11-20 Thread Martin Makundi
What is the easiest way of embedding raw html (yes, it could/should use some xml dom which is included with wicket)? Is it possible, for example, to replace a wicket:container/ element on a panel with such raw dom content? ** Martin 2008/11/20 Igor Vaynberg [EMAIL PROTECTED]: if you are

Re: Memory consumption per session

2008-11-20 Thread Martin Makundi
What is the out-of-the-box xml dom generator for wicket, if I wanted to use such tool for generating the html structure? ** Martin 2008/11/20 Martijn Dashorst [EMAIL PROTECTED]: add(new Label(raw, h1Foo/h1).setEscapeModelStrings(false)); On Thu, Nov 20, 2008 at 5:00 PM, Martin Makundi [EMAIL

Re: Memory consumption per session

2008-11-21 Thread Martin Makundi
Would it help using Bookmarkable links? ** Martin 2008/11/21 Igor Vaynberg [EMAIL PROTECTED]: On Fri, Nov 21, 2008 at 9:18 AM, Ralf Siemon [EMAIL PROTECTED] wrote: Thanks for the advice. Unfortunately we cannot do this here, because the ListViews contain Link components for user interaction.

Re: RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-25 Thread Martin Makundi
This seems to result in org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.wicket.util.io.DeferredFileOutputStream I must implement the detach() method for the dummy fileUpload model: form.add(fileUploadField = new

Re: avoid ajax response evaluate javascript

2008-12-04 Thread Martin Makundi
There is ServletWebRequest.isAjax ** Martin 2008/12/4 francisco treacy [EMAIL PROTECTED]: i've been using the aforementioned toggle behavior almost always in ajaxy pages, and in that case they work fine. basically that means i add toggle behaviors to components in a page. when i call an

Re: Hourglass during Ajax

2008-12-05 Thread Martin Makundi
Combine it nicely with generic busy indicator: http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html Just make the div pick the size from the screen and set it on top with cursor type wait. ** Martin 2008/12/5 Martijn Dashorst [EMAIL PROTECTED]: Why not

Recording component paths for WicketTester

2008-12-14 Thread Martin Makundi
Hi! I often find myself spending a tremendeous amount of time mind-boggling with Component:paths for my WicketTester tests. I assume that it would be pretty easy to code a 'WicketTest recorder'. The solution would probably be some kind of filter properly attached into the wicket framework at

Re: Recording component paths for WicketTester

2008-12-14 Thread Martin Makundi
and 1.4-rc1. On Sun, Dec 14, 2008 at 6:41 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I often find myself spending a tremendeous amount of time mind-boggling with Component:paths for my WicketTester tests. I assume that it would be pretty easy to code a 'WicketTest

Re: Why am I getting this error?

2008-12-15 Thread Martin Makundi
Do you ever call listview.removeAll ? 2008/12/15 dbuttery dennis.butt...@connectedenergy.com: Hi all, I have a ListView in which each repeater row has a button to launch a ModalWindow. I actually do this multiple times in my application so I know that it does work. I just added a new

ERROR: Error while parsing response: Could not find root ajax-response element

2008-12-16 Thread Martin Makundi
Hi! Critical bug https://issues.apache.org/jira/browse/WICKET-1916 Anybody know what's causing the problem? I attached a quickstart for repeating the bug. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Why am I getting this error?

2008-12-16 Thread Martin Makundi
on each row to allow report parameters to be set... Simple enough, eh? -Dennis Martin Makundi wrote: Can you make a quickstart project that repeats the problem? ** Martin 2008/12/16 dbuttery dennis.butt...@connectedenergy.com: Nope. removeAll is never used. Martin Makundi wrote

Re: Why am I getting this error?

2008-12-16 Thread Martin Makundi
Can you make a quickstart project that repeats the problem? ** Martin 2008/12/16 dbuttery dennis.butt...@connectedenergy.com: Nope. removeAll is never used. Martin Makundi wrote: Do you ever call listview.removeAll ? 2008/12/15 dbuttery dennis.butt...@connectedenergy.com: Hi all

Wicket and time zones, wrong month?

2008-12-16 Thread Martin Makundi
Hi! I am using org.apache.wicket.datetime.PatternDateConverter to convert my date objects (in a select combo) into strings. The funny thing is that on my test server the debug output says: AbstractCalendarPanel - Date 2008-06-01 converted into may zone Etc/GMT On my development computer the

Re: Expanding table row - need idea

2008-12-17 Thread Martin Makundi
Well.. here is a showhideborder that you can use.. you know how to use borders? public class ShowHideBorder extends Border implements WebPageConstants { /** */ public static final String TOGGLE_CONTENTS_BUTTON = toggle_contents_button; /** */ public static final String CONTENTS =

Re: Expanding table row - need idea

2008-12-17 Thread Martin Makundi
wicket:body / /span /fieldset /wicket:border 2008/12/17 Martin Makundi martin.maku...@koodaripalvelut.com: Well.. here is a showhideborder that you can use.. you know how to use borders

Re: Closing Modal Window and redirect to anonther Page! Problem!

2008-12-19 Thread Martin Makundi
You can use WindowClosedCallback... modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { --- redirect } }); ** Martin 2008/12/19 HITECH79 hitec...@web.de: Hallo wicket-friends, i have

Re: Is there any collapsible container ?

2008-12-21 Thread Martin Makundi
And there is an implementation using border whose quickstart is available here: https://issues.apache.org/jira/browse/WICKET-1789 ** Martin 2008/12/21 Jeremy Thomerson jer...@wickettraining.com: See the accordian in Wicket Stuff. You might need to help Nino get it up to date with Wicket

WicketTester OnChangeAjaxBehavior ?

2008-12-29 Thread Martin Makundi
Hi! I have some select boxes on the screen which trigger screen refresh in live mode. However, I have not yet figured out how to trigger OnChangeAjaxBehavior using WicketTester in a non-intrusive manner. I have found some intrusive workarounds that tweak the server-side models, but what is the

Re: Modal window - chagne width and height

2009-01-05 Thread Martin Makundi
Why don't you just set the modal window div css properties with javascript? http://developer.apple.com/internet/webcontent/styles.html 2009/1/5 Vitek Tajzich v.tajz...@gmail.com: Yes, that right but these properties are read only at construction time so I'm not able to change size of already

Trying to kill the session

2009-01-05 Thread Martin Makundi
Hi! I have difficulties killing the session at login. I have two pages: A) A stateful page which I have visited before login. Some information is stored in the session while 'unauthenticated' B) A stateful login page. If the user logs in, I want to kill the session created in A) and start a new

Re: Modal window - chagne width and height

2009-01-05 Thread Martin Makundi
be get from modal's java object properties... Last line will center your modal Windows after resizing. BR, V. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Monday, January 05, 2009 10:53 AM To: users@wicket.apache.org Subject: Re: Modal

Re: Bug? The page set by setReponsePage does not process its own response.

2009-01-06 Thread Martin Makundi
On Tue, Jan 6, 2009 at 13:58, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I have found out that the page set by setReponsePage does not process its own response and created a jira issue: https://issues.apache.org/jira/browse/WICKET-2006 I also attached a wicket quickstart

Re: sorry, what do u mean for that?

2009-01-06 Thread Martin Makundi
Yellow snow should do it... 2009/1/7 wch2001 wch2...@hotmail.com: My question is I am doing downloadLink , when the file is existed, it is ok to download it, but when the file is not existed, no any error message No file exist! to popup! According to debug, i can see it already go to the

Re: sorry, what do u mean for that?

2009-01-06 Thread Martin Makundi
Maybe try asking the question in your native language? ** Martin 2009/1/7 wch2001 wch2...@hotmail.com: I use DownloadLink, when file is not existed, there is not any info message. how to solve it? I want to show some message like No file finds when the file is not existed thanks a

Re: DropDownChoice onchange event with AjaxEventBehaviour

2009-01-07 Thread Martin Makundi
Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are

Re: Twenty Six Wicket Tricks

2009-01-08 Thread Martin Makundi
Here's one good article: http://talk-on-tech.blogspot.com/2008/12/wicket-neat-url-encoding-strategy-and.html 2009/1/8 Gwyn Evans gwyn.ev...@gmail.com: Not sure if it qualifies as enough of a topic, but would some form of overview/comparison/when to use syummary of the various URL coding

Re: Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread Martin Makundi
I did not know of this.. I have always used the IChoiceRenderer's getIdValue to distinguish between dropdown elements.. I have never overridden the modelcomparator. I wonder... which way is the right way :) ** Martin 2009/1/8 walnutmon justin.m.boy...@gmail.com: I have dropdowns that are

Re: UML Diagram of Wicket structure

2009-01-08 Thread Martin Makundi
If it ain't broken, don't try to fix it... 2009/1/8 Igor Vaynberg igor.vaynb...@gmail.com: well, its either IStringResourceLoader and a StringResourceLoader as the default implementation - and there usually is just the default or StringResourceLoader and StringResourceLoaderImpl or

Re: Gant like component in wicket

2009-01-08 Thread Martin Makundi
Hi! I have done a somewhat similar looking element with divs. All you need is to tell the div its starting point, width and height and color, and you get exactly what you want. If you want it to be clickable you just put a link anchor around it (a href=..div style=left: xx; width: xx; height:

Re: Gant like component in wicket

2009-01-09 Thread Martin Makundi
Just a Wicket WebMarkupContainer will do. Put it in a listview. t. Martin 2009/1/9 lizz elisabeth.thor...@bouvet.no: Yes I know but this should be displayed in a wicket web page and the number of tasks types is not static (it is based on the page datamodel (CompundPropertyModel), so I think

Empty File Upload field breaks validation of other fields in WicketTester

2009-01-09 Thread Martin Makundi
Hi! Empty File Upload field breaks validation of other fields in WicketTester. The form processes a simple MockHttp..Request but the tester sends Multipart...Request. Wicket quickstart attached to jira: https://issues.apache.org/jira/browse/WICKET-2015 Anybody familiar with the necessary

Re: generalized way to ignore mouse input during screen refresh?

2009-01-10 Thread Martin Makundi
I use a non-intrusive javascript snipplet which requires nothing else from the server side and it works with or without Wicket...: css: #busy-symbol { position: absolute; top: 0px; left: 0px; margin: 0px; width: 100%; z-index: 10; background: url(../images/raster.png) repeat; cursor: wait; }

Re: Update number of login users in all user's page when new user login

2009-01-12 Thread Martin Makundi
How does this perform in a clustered environment? The specification says: A servlet container is not required to propagate HttpSessionEvents to different JVMs ** Martin 2009/1/13 Eunice peiwen0...@gmail.com: Ok..Thanks for your reply.. igor.vaynberg wrote: see HttpSessionListener

Re: Form Components With Built In Feedback

2009-01-13 Thread Martin Makundi
Hi! There are: * FormComponentFeedbackBorder * FormComponentFeedbackIndicator ... and you can also make your own, it is easy to react to the feedback message status of a component and just make your own effect. Have a look at the source code within the abovementioned... ** Martin 2009/1/13

Re: Form Components With Built In Feedback

2009-01-13 Thread Martin Makundi
of the corresponding markup to remove the references to input instead converting them all to elements. Thanks! Justin Martin Makundi wrote: Hi! There are: * FormComponentFeedbackBorder * FormComponentFeedbackIndicator ... and you can also make your own, it is easy to react to the feedback

Re: Advice on payment options with wicket

2009-01-14 Thread Martin Makundi
What is the problem? I.e., why do you feel it can not be a simple page? ** Martin 2009/1/14 Mathias P.W Nilsson math...@snyltarna.se: Hi, I have developed an application with wicket that has been around for about a year. A user can have serveral options for payment - Visa, MasterCard, Post

Re: Advice on payment options with wicket

2009-01-14 Thread Martin Makundi
Why don't you send the query parameters from wicket to the payment server using QueryStringUrlCodingStrategy ? ** Martin 2009/1/14 Mathias P.W Nilsson math...@snyltarna.se: The main problem is the external form. I need to send the form to an external server. Since I need wicket to check the

Re: Advice on payment options with wicket

2009-01-14 Thread Martin Makundi
Honestly, I simply cannot grasp the problem. Our site works like this: 1. User fills form. 2. User submits form to Wicket site. 3. Wicket site analyzes the submitted form and constructs a PageParameters map. 4. Wicket site redirects the user to a payment processing server using the

Re: Why you should not override isVisible

2009-01-15 Thread Martin Makundi
-1- isVisible is called a lot. It is easily called ten times within 1 request If you need to optimize, you can use lazy initialization of a boolean variable here and reset it in onBeforeRender? -2- isVisible can make your model be reloaded multiple times within 1 request If you need to

Re: skip item in populateItem of ListView

2009-01-15 Thread Martin Makundi
Sounds like bad design that's going to give you headaches later... nevertheless, did you try setting the listItem.setVisible(false)? ** Martin 2009/1/15 Steve Swinsburg s.swinsb...@lancaster.ac.uk: Hi all, I have a situation whereby certain conditions mean I need to skip an item that is

Re: Load / Processing Messages

2009-01-15 Thread Martin Makundi
See: * http://mail-archives.apache.org/mod_mbox/wicket-users/200901.mbox/%3c303141550901100017w3480b326vd1cf21e3efa18...@mail.gmail.com%3e * http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html ** Martin 2009/1/15 alex.bo...@souzacruz.com.br: Hi all,

Re: Why you should not override isVisible

2009-01-15 Thread Martin Makundi
Well... I would not build in the cache because different components could interact in a way that if someone prematurely calls the isVisible method, it freezes in the wrong state. It is known, that the isVisible is called multiple times for various reasons. ** Martin 2009/1/15 Jonathan Locke

Re: Why you should not override isVisible

2009-01-15 Thread Martin Makundi
-request basis (i.e., you can configure it for a specific page and state). And don't forget about isEnabled too though it is more rare ;) ** Martin Martin Makundi wrote: Well... I would not build in the cache because different components could interact in a way that if someone prematurely

Re: Why you should not override isVisible

2009-01-15 Thread Martin Makundi
(); } then you can set a default and override for any individual component (or page). Martin Makundi wrote: you could always work it the other way and have no caching by default but allow people who know what they're doing to enable it for an application with something like IRequestCycleSettings

Re: Things I miss in Wicket

2009-01-15 Thread Martin Makundi
3. Pick up components automatically without needing to add them in the Java code: add(new LastPostsPanel(lastPostsPanel)); add(new NewsPanel(newsPanel)); This could be matched automatically This should be accomplished using and IDE, not by default. I would not mind an IDE that could match

Re: Things I miss in Wicket

2009-01-15 Thread Martin Makundi
gathering up a list of most important features and maybe add them into either some of the existing wicket ide plugins or roll out a separate helper plugin. ** Martin On Thu, Jan 15, 2009 at 8:31 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: 3. Pick up components automatically

Re: Things I miss in Wicket

2009-01-16 Thread Martin Makundi
All you need is a RAD IDE that co-operates well with the typesafe wicket. ** Martin 2009/1/16 Tobias Marx superoverdr...@gmx.de: I think there already a lot of projects out there that try to optimize web-development in Java. Instead of starting yet another project I think it would be better

Re: Things I miss in Wicket

2009-01-16 Thread Martin Makundi
-Nachricht Datum: Fri, 16 Jan 2009 06:31:39 +0200 Von: Martin Makundi martin.maku...@koodaripalvelut.com An: users@wicket.apache.org Betreff: Re: Things I miss in Wicket 3. Pick up components automatically without needing to add them in the Java code: add(new LastPostsPanel

Re: Things I miss in Wicket

2009-01-16 Thread Martin Makundi
by design Original-Nachricht Datum: Fri, 16 Jan 2009 14:53:05 +0200 Von: Martin Makundi martin.maku...@koodaripalvelut.com An: users@wicket.apache.org Betreff: Re: Things I miss in Wicket All you need is a RAD IDE that co-operates well with the typesafe wicket. ** Martin

Re: Things I miss in Wicket

2009-01-16 Thread Martin Makundi
... or conscious design debt... ;) ** Martin 2009/1/16 Johan Compagner jcompag...@gmail.com: An ideal web-application is developed once and the Java code is never touched again for 3-5 years until there are a lot of new features necessary where do you live? thats not my experience.

Re: referencing page from panel?

2009-01-16 Thread Martin Makundi
The panel is a detail form. The detail form contains a link back to the search results. I want to put the link in the detail form since this is the only time that it will appear, but this link action needs a reference to the search results panel to toggle the visibility back to true. It

Trying to ignore page expiration on selected bookmarkable pages

2009-01-16 Thread Martin Makundi
Hi! I would like to ignore page expired on certain pages. What I mean is that in general it is ok to follow the instruction: getApplicationSettings().setPageExpiredErrorPage(LoginPage.class); However, on certain pages where the session is not so important, I would like to redirect back to the

Re: Trying to ignore page expiration on selected bookmarkable pages

2009-01-16 Thread Martin Makundi
when you hit pageexpired exception you do not know which page caused it Is it possible that there could be some query parameters that could be used to deduce such information? ** Martin On Fri, Jan 16, 2009 at 11:18 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I would

Re: Trying to ignore page expiration on selected bookmarkable pages

2009-01-16 Thread Martin Makundi
Specifically, if it is a Mounted Bookmarkable page, the page name should be available in the url? ** Martin 2009/1/16 Martin Makundi martin.maku...@koodaripalvelut.com: when you hit pageexpired exception you do not know which page caused it Is it possible that there could be some query

Re: Trying to ignore page expiration on selected bookmarkable pages

2009-01-16 Thread Martin Makundi
the only information you have about the page is 2. you can write your own coding strategy that always appends the class name of the last bookmarkable page to all the urls...that way you can recover it but it sure wont look pretty. -igor On Fri, Jan 16, 2009 at 12:09 PM, Martin Makundi

Re: Redirect to a new window

2009-01-27 Thread Martin Makundi
You can use a href=# target=_blankxx or WIcket's popupsettings, if you want it to be a real separate window. Example of setPopupSettings:

Re: migration from jsf to wicket

2009-01-29 Thread Martin Makundi
1) working with many attributes of an object we have some pages where we access many attributes of an object, say we want to show all 20 attributes of a person and all 10 attributes of person.getAddress(); in the PersonPage.java i would have to add 30 label (or input) components, 30 lines

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2009-01-29 Thread Martin Makundi
Yes, simply every time your panel is instantiated, it means someone navigated to the particular tab. You can monitor this also in your panel class. ** Martin 2009/1/29 Zhubin Salehi zhooz...@yahoo.com: So every time a tab is selected, a new instance of that panel will be created? Erik van

Re: Component doesn't disappear when removing it via an ajax link

2009-02-02 Thread Martin Makundi
Run Wicket in development mode and investigate what happens in the Wicket Ajax Debug dialog (right bottom corner of your browser). ** Martin 2009/2/3 Azzeddine Daddah waarhei...@gmail.com: Hi, I've two text fields wrapped in a container. What I want to do is to let the user remove these

Does Wicket have RadioGroup ajax update behavior built in like it does wantOnSelectionChangedNotifications?

2009-02-03 Thread Martin Makundi
Hi! Does Wicket have RadioGroup ajax update behavior built in like it does wantOnSelectionChangedNotifications? It seems like a small piece of code that would better have core support: /** * @param radioGroup * @param listener * @param radio */ private void addAjaxEvent(final

Re: Does Wicket have RadioGroup ajax update behavior built in like it does wantOnSelectionChangedNotifications?

2009-02-03 Thread Martin Makundi
Tnx. 2009/2/3 Igor Vaynberg igor.vaynb...@gmail.com: see ajaxformchoicecomponentupdatingbehavior -igor On Tue, Feb 3, 2009 at 6:04 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Does Wicket have RadioGroup ajax update behavior built in like it does

Re: Does Wicket have RadioGroup ajax update behavior built in like it does wantOnSelectionChangedNotifications?

2009-02-03 Thread Martin Makundi
Didn't want form submit behavior, just component update. ** Martin 2009/2/3 wicketworker siva.mad...@gmail.com: Yes, I think if you are working with RadioGroup instead of RadioChoice, then you can add AjaxFormSubmitBehavior to Radio implementation. Martin Makundi wrote: Tnx. 2009/2/3

Re: A doubt regarding best-practices

2009-02-05 Thread Martin Makundi
I prefer to declare the Form as a top class instead inner class. That is ok. This way you can also re-use the same form from different pages/panels. If I declare a Form as a top class should I have a markup html for it because this form will be treated as a component? Depends on your

Re: A doubt regarding best-practices

2009-02-05 Thread Martin Makundi
If I declare a Form as a top class should I have a markup html for it because this form will be treated as a component? Wicket works both ways. No, Form doesn't extend WebMarkupContainerWithAssociatedMarkup. Ah.. might be true, if you want it to have its own markup, you will embed it into

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Martin Makundi
There is QueryStringUrlCodingStrategy if that is what you mean... if you just want to construct a query url (GET). In my understanding POST must come from the client browser so it cannot be constructed by Wicket as such. ** Martin 2009/2/5 Steve Swinsburg s.swinsb...@lancaster.ac.uk: Hi all,

Re: Another question for best practices

2009-02-05 Thread Martin Makundi
in wicket i tried: style a{color: span wicket:id=linkColor/; }/style Have you tried wicket:container wicket:id=linkColor/ ? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
Hi! I am a bit confused with the converters in Wicket. I have some numbers which I want to display with two decimals and some other numbers with another amout of decimals. It appears like Wicket has only one instance of BigDecimalConverter, which is used everywhere. So if I adjust its

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
of ConverterLocator that you can have 'tuned' converters - instead of just one converter per type. ** Martin 2009/2/8 Thomas Mäder thomas.mae...@devotek-it.ch: You can override getConverter() on a component to return any converter you want. Thomas On Sun, Feb 8, 2009 at 6:53 PM, Martin Makundi

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
of them to take that much memory. Most likely, you have another issue. Run a profiler and let us know what's using the memory. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Feb 8, 2009 at 2:26 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Exactly. I had

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
, 2009 at 7:46 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I remembered it was a hotspot. Checking again, it is not a memory bottleneck but a performance bottleneck. I apologise for my imprecision. I have several BigDecimalLabels each with its own converter. Each instance

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
in suggestion 2), it appears like a blatant oversight bug, don't you think? ** Martin On Sun, Feb 8, 2009 at 8:09 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Micro - multiplied under load so the cost accumulates. And here attached is a picture of the memory profile, I am not sure

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
, 2009 at 7:46 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Another thing that came into my mind is, that there is newNumberFormat(Locale locale) -method in AbstractDecimalConverter, but the method is never used [instead, there is a direct numberFormat = NumberFormat.getInstance

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
are you load testing wicket in development mode? Ofcourse ;) I run the tests again in deployment mode, does not affect the BigDecimalConverter results. ** Martin On Sun, Feb 8, 2009 at 8:32 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: that means you can create about 3500

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
no, but it should take out that Task$1 which is the biggest cpu hog. Well, that is just the server pool thread... it is not relevant. ** Martin -igor On Sun, Feb 8, 2009 at 9:25 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: are you load testing wicket in development mode

Re: Using converters properly in Wicket?

2009-02-08 Thread Martin Makundi
, 2009 at 8:55 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Cool. What is your take on using a ThreaLocal instead of always cloning return (NumberFormat)numberFormat.clone(); in org.apache.wicket.util.convert.converters.AbstractDecimalConverter#getNumberFormat(java.util.Locale

Re: Using converters properly in Wicket?

2009-02-09 Thread Martin Makundi
NumberFormat. I wonder if I should make the ParametrizedConverterLocator converter map thread-safe? The wicket's ConverterLocator.classToConverter appears non thread-safe, from what I can see. Can that become a problem? ** Martin On Sun, Feb 8, 2009 at 11:31 PM, Martin Makundi martin.maku

Re: Using converters properly in Wicket?

2009-02-09 Thread Martin Makundi
Ok, then why Wicket's ConverterLocator is not thread safe? Or is it? ** Martin 2009/2/9 Igor Vaynberg igor.vaynb...@gmail.com: yes, they need to be threadsafe if you cache them. numberformat itself is also not threadsafe. another reason i can think of why we clone is that a code that gets a

Re: Using converters properly in Wicket?

2009-02-09 Thread Martin Makundi
not be thread-safe..? public final IConverter get(Class? c) { return classToConverter.get(c.getName()); } ** Martin On Mon, Feb 9, 2009 at 9:32 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Ok, then why Wicket's ConverterLocator is not thread safe

Re: Using converters properly in Wicket?

2009-02-11 Thread Martin Makundi
not want to guess in advance all the possible combinations). Fair. ** Martin -igor On Mon, Feb 9, 2009 at 9:36 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: which part of it is not threadsafe? /** Maps Classes to ITypeConverters. */ private final MapString

Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Martin Makundi
Also depending on your situation, clearInput might be necessary? ** Martin 2009/2/12 Luca Provenzani eufor...@gmail.com: i think you can put the field of the model/bean of the form to empty and then call target.addComponet(tagsContainer); what kind of effect do you want? If you need to call

Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread Martin Makundi
Where do you set the value first? ** Martin 2009/2/12 pieter claassen pie...@claassen.co.uk: Listviews with Links in them, sometimes fail to retrieve the object in the onClick() method the first time around. When I reload the page, the code works fine. Here is a test. In the listview below,

Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread Martin Makundi
in the listview block of code, but not in any onClick() methods of Links that I include in the listview, just after I started my application. The second time around, things work fine. Is this possibly a wicket problem? Rgrds, Pieter On Thu, Feb 12, 2009 at 3:06 PM, Martin Makundi martin.maku

Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Martin Makundi
(document.getElementById('%s').value = '', auto.getOutputMarkupId())); but it also didn't work. Are there any other suggestions ways to implement this? Kind Regards Hbiloo On Thu, Feb 12, 2009 at 11:24 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Also depending on your situation

Re: Month Field?

2009-02-12 Thread Martin Makundi
There is a DateTextField which takes a pattern. ** Martin 2009/2/12 Piotr Jakubowski pio...@gmail.com: I am in need of creating a DateFieldlike form component but it would be only precise to the month - so like mm-. Do you have any suggestions on how to create this thing? Maybe it's

Re: Change browser title using wicket

2009-02-12 Thread Martin Makundi
Here are some pointers: * http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html * http://markmail.org/message/z75nsjoakmkq6zl2 ** Martin 2009/2/12 yauhen p yauhe...@mail.ru: Hi everyone. I need to change browser title in my wicket application. For example user has logged

Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-12 Thread Martin Makundi
Hi! My problem: 1. I have a form 2. The form has checkboxes 3. The form has other fields The checkboxes are used to disable specific fields in the form. Whenever the user changes the checkbox state, I want to use AjaxEventBehavior or similar to update the form components dependent on the

Re: HTML can't reference a component (Label) multiple times?

2009-02-12 Thread Martin Makundi
Fragment can be used... won't reduce your markup, though. ** Martin 2009/2/12 James Carman jcar...@carmanconsulting.com: Use a repeater? On Thu, Feb 12, 2009 at 2:54 PM, Phil Grimm phil.gr...@gmail.com wrote: Guys, If I need to reference a Label multiple times on the page. Is there a

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-13 Thread Martin Makundi
If you repaint the component from the server, and want to retain its input, you have to submit to the server and store it to the model (with a suitable *submittingbehavior) so that it will have the correct value on the repaint. Yes, this is what I am trying to do, but disabling and enabling a

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-13 Thread Martin Makundi
Maybe a conversion error that prohibits updating the model? I do not want to update the model. I want defaultFormProcessing=false with the particular ajax event. In a way, yes, but sometimes purely client-side stuff can be easier purely on the client-side. The functionality is already in

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-13 Thread Martin Makundi
I could actually hack this feature by adding an AjaxButton onto the page which has defaultFormProcessing=false and then hide that button using css/style and always invoke that button when a checkbox is clicked. But it would be betterto just make sure Wicket supports such events for FormComponents.

Abstract Header JavaScript Behavior

2009-02-14 Thread Martin Makundi
Hi! Does Wicket have this functionality built-in? Would it make sense? public abstract class AbstractHeaderJavaScriptBehavior extends AbstractBehavior implements IHeaderContributor { /** * @see

Re: Abstract Header JavaScript Behavior

2009-02-14 Thread Martin Makundi
? ** Martin -igor On Sat, Feb 14, 2009 at 2:52 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Does Wicket have this functionality built-in? Would it make sense? public abstract class AbstractHeaderJavaScriptBehavior extends AbstractBehavior implements IHeaderContributor

Re: [OT] Simple file repository?

2009-02-15 Thread Martin Makundi
Why not store files into database as bytearray / blob? ** Martin 2009/2/15 Kaspar Fischer fisch...@inf.ethz.ch: User's of my application will upload, edit, and delete files. For this, I'd like to have a simple file repository with the following features: - Files are stored on the file

Re: Abstract Header JavaScript Behavior

2009-02-15 Thread Martin Makundi
Tnx. :) Why don't the component implement iheadercontributor already? It would be more obvious then.. ** Martin 2009/2/15 Igor Vaynberg igor.vaynb...@gmail.com: yep, thats how it works. any component can implement iheadercontributor. -igor On Sat, Feb 14, 2009 at 11:29 PM, Martin Makundi

Truly killing the session

2009-02-16 Thread Martin Makundi
Hi! I have found out that in order to truly have a new Session instance (at login, for instance), the following commands are needed: Session.unset(); getApplication().getSessionStore().removeAttribute(getRequest(), Session.SESSION_ATTRIBUTE_NAME); getSession().replaceSession(); I am

WicketURLEncoder.QUERY_INSTANCE result not (even near) same as java.net.URLEncoder?

2009-02-16 Thread Martin Makundi
Hi! The constructor WicketURLEncoder(Type type) explains a whole lot about the compatibility of QUERY_INSTANCE and java.net.URLEncoder. However, the results differ significantly. Specifically the dontNeedEncoding characters. We had a bit of a surprise integrating our app with another app

  1   2   3   4   5   6   7   8   9   10   >