Re: Login page stateless??

2012-04-25 Thread Serban.Balamaci
Dan, how about an attacker who uses a script to just call the login page lots of time. Could it not cause an OutOfMemory error or at least a degradation of your application performance by your web server having to manage millions of sessions apart for the legit ones? -- View this message in

Re: wicket yui 1.5.5

2012-04-25 Thread Martin Grigorov
Hi, Unfortunately no one so far migrated it to 1.5.x https://github.com/wicketstuff/core/blob/core-1.5.x/jdk-1.5-parent/pom.xml#L85 On Tue, Apr 24, 2012 at 8:53 PM, fachhoch fachh...@gmail.com wrote: I am upgrading my project to 1.5 , I use wicketstuff   yui,  is there  1.5 release for yui ?

Re: Wicket dropdownchoice onselectionchanged must override or implement a supertype method

2012-04-25 Thread Martin Grigorov
On Tue, Apr 24, 2012 at 9:22 PM, Sebastien seb...@gmail.com wrote: Right, should probably be something like: protected void onSelectionChanged(SelectOption newSelection) {}; Also, note that SelectOption is generic... I hope his SelectOption is not

Re: AbstractAjaxBehavior and second request

2012-04-25 Thread Martin Grigorov
Hi, On Wed, Apr 25, 2012 at 12:44 AM, Brian Mulholland blmulholl...@gmail.com wrote: I have a javascript widget on my page that will issue multiple requests.  I am using an AbstractAjaxBehavior and priming the javascript component with the uri from getCallbackUri().  First request works

How to add unknown number of components?

2012-04-25 Thread cosmindumy
Hello, I want to add multiple ajaxlinks. Actually I don't know the number. How cand I add them dinamically and generate the html dinamically? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-unknown-number-of-components-tp4585816p4585816.html Sent

Re: How to add unknown number of components?

2012-04-25 Thread Martin Grigorov
Hi, You can use any kind of repeater component for that. On Wed, Apr 25, 2012 at 10:45 AM, cosmindumy cosmind...@yahoo.com wrote: Hello, I want to add multiple ajaxlinks. Actually I don't know the number. How cand I add them dinamically and generate the html dinamically? Thanks. -- View

Re: Login page stateless??

2012-04-25 Thread Martin Grigorov
Hi, As Bas said this means that there is another component in the page that makes it stateful. You can use wicket-devutils's @StatelessComponent and StatelessChecker to find out which component is causing this. On Tue, Apr 24, 2012 at 9:50 PM, Alfonso Quiroga alfonsose...@gmail.com wrote: Hi,

Re: Any news on 1.5 - mapping different error pages for specific errors

2012-04-25 Thread jensiator
I Think is something like: public IRequestHandler onException(RequestCycle pCycle, Exception pException) { if(pException instanceof SomeException) { return new RenderPageRequestHandler(new PageProvider(new SomeSpecialOwnErrorPage())); } } From my peek in the super class. Have not tested it.

Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
Hi. I have a code that was working in 1.4 but it shows an error message in wicket 1.5. I have a TextField, an AjaxSubmitLink and a ListMultipleChoice. When I click the submit link I want to add the value from text field to the list. ArrayListSerializable list = new ArrayListSerializable();

Re: Any news on 1.5 - mapping different error pages for specific errors

2012-04-25 Thread Martin Grigorov
Hi Jens, On Wed, Apr 25, 2012 at 11:04 AM, jensiator jens.alen...@gmail.com wrote: I Think is something like: public IRequestHandler onException(RequestCycle pCycle, Exception pException) { if(pException instanceof SomeException) {  return new RenderPageRequestHandler(new PageProvider(new

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread Martin Grigorov
Hi, It is pure Java, not Wicket: ArrayList? extends Serializable On Wed, Apr 25, 2012 at 11:58 AM, dpmihai dpmi...@yahoo.com wrote: Hi. I have a code that was working in 1.4 but it shows an error message in wicket 1.5. I have a TextField, an AjaxSubmitLink and a ListMultipleChoice. When I

Re: Why everything is stored in Session?

2012-04-25 Thread Martin Grigorov
On Tue, Apr 24, 2012 at 11:49 PM, Philipp Oppermann p.opperm...@googlemail.com wrote: Thank you for your fast answer! I think I understood it ;) But reading from disk store decreases the performance?! Is wicket scalable anyway? It scales well for our application. And we run few hundred thousand

Re: about the modalwindow in the wicket

2012-04-25 Thread lxw_first
Hi,I follow you code,but the error is still exists。 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/about-the-modalwindow-in-the-wicket-tp4580873p4586074.html Sent from the Users forum mailing list archive at Nabble.com.

Re: wicket yui 1.5.5

2012-04-25 Thread fachhoch
The latest version of wicketstuff yui is 1.4.20 , will this work with wicket 1.5 ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-yui-1-5-5-tp4584353p4586092.html Sent from the Users forum mailing list archive at Nabble.com.

Re: wicket yui 1.5.5

2012-04-25 Thread Martin Grigorov
On Wed, Apr 25, 2012 at 12:47 PM, fachhoch fachh...@gmail.com wrote: The latest version of wicketstuff yui is 1.4.20 , will this work with wicket 1.5 ? No. You need to migrate the code. -- View this message in context:

Re: Sonar (Architecture) and Wicket

2012-04-25 Thread romanasu
Copypaste from Sonar: Package tangle index 11.7% 46 cycles Dependencies to cut 13 between packages 16 between files Sonar say (probably true) that there are 'Suspect dependency (cycle)' between packages and also between files, and then i receive a low grade on Architecture. For

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
I forgot to say my object model from TextField is private Serializable objectModel; I do not understand how a String is not Serializable? This code worked on wicket 1.4 without problems. I think something is done different in wicket framework. Can you tell me what class throws this error

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread Decebal Suiu
Maybe you must override TextField.getConverter() because the text field component cannot knows to convert text to object/serializable. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-tp4585991p4586299.html Sent

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
Yes Decebal. You are right. If I have a TextField of some type but my model is a generic one (in my case objectModel is of type Serializable), I have to overwrite getConverter method like: final TextFieldString textField = new TextFieldString(txtValue, new

Re: Sonar (Architecture) and Wicket

2012-04-25 Thread Martijn Dashorst
Are you building software for your customers/users or to satisfy random quirks of some fricking tool? Martijn On Wed, Apr 25, 2012 at 12:22 PM, romanasu dacia_berl...@yahoo.com wrote: Copypaste from Sonar: Package tangle index 11.7% 46 cycles Dependencies to cut 13 between packages 16

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread dpmihai
A DateTimeField does not need the converter to populate a Serializable model: final DateTimeField txtTime = new DateTimeField(txtTime, new PropertyModelDate(this, objectModel)); But there are other bugs with it (https://issues.apache.org/jira/browse/WICKET-4496), so if something

property converting model

2012-04-25 Thread Tom Eugelink
I've got a form bound to a CompoundPropertyModel. One of the properties contains a XML document. In order to edit that property, I've added a TextArea to the form (with the CodeMirror javascript XML editor bound to it), but I need to convert the XML document property to string and back again.

Re: property converting model

2012-04-25 Thread Martin Grigorov
Hi, Use a custom IConverter instead - override TextArea#getConverter(Class) method. Conversion of data is part of form submit process and if it fails with org.apache.wicket.util.convert.ConversionException then the model of that component is not updated and Form#onError() will be called. Point 4)

Re: property converting model

2012-04-25 Thread Tom Eugelink
The converter correctly converts, but if there is an error in the converter, I'm getting a exception dump on screen. Root cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 3; The element type notificationx must be terminated by the matching end-tag /notificationx. at

Re: property converting model

2012-04-25 Thread Martin Grigorov
... and if it fails with org.apache.wicket.util.convert.ConversionException ... try/catch your code and wrap the original exception in ConversionException and rethrow On Wed, Apr 25, 2012 at 3:53 PM, Tom Eugelink t...@tbee.org wrote: The converter correctly converts, but if there is an error

Radio Choice Weirdness

2012-04-25 Thread Richard W. Adams
My understanding of this class must be faulty. When Wicket calls my onSelectionChanged(), the argument is the display string, not the id value. For example, I'm expecting a milepost value like 123.456, but instead I get End (123.456) (the display value). Here's the code. can anyone see what

Re: property converting model

2012-04-25 Thread Tom Eugelink
You are right. I'm sorry. On 25-4-2012 14:56, Martin Grigorov wrote: ... and if it fails with org.apache.wicket.util.convert.ConversionException ... try/catch your code and wrap the original exception in ConversionException and rethrow

FilterForm Date column formatting

2012-04-25 Thread Sandor Feher
Hi, I need to add date formater and/or validator to a column in the filterform. IColumn col_cru=columns.add(new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.cru), cru, cru)); TIA, Sandor -- View this message in context:

Re: FilterForm Date column formatting

2012-04-25 Thread Martin Grigorov
Hi, See org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn#populateItem() You'll need to override that method and add some Date**Field to the item On Wed, Apr 25, 2012 at 4:20 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I need to add date formater and/or

Re: Radio Choice Weirdness

2012-04-25 Thread Sven Meier
When Wicket calls my onSelectionChanged(), the argument is the display string, not the id value. Your RadioChoice is working on string choices so it will hand you the selected string. I'd suggest to let your RadioChoice work with ints or preferably directly on the Milepost objects:

Re: CryptoMapper - Error decoding text

2012-04-25 Thread fachhoch
I am getting the same error , I am trying to migrate to wicket 1.5.5, is there a fix for this ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CryptoMapper-Error-decoding-text-tp4034573p4586850.html Sent from the Users forum mailing list archive at Nabble.com.

Re: CryptoMapper - Error decoding text

2012-04-25 Thread Martin Grigorov
It is fixed in 1.5.4 so you have a new problem. Create a ticket with a quickstart app On Wed, Apr 25, 2012 at 5:59 PM, fachhoch fachh...@gmail.com wrote: I am getting the same error , I am trying to migrate to wicket 1.5.5, is there a fix  for this ? -- View this message in context:

Re: Radio Choice Weirdness

2012-04-25 Thread Richard W. Adams
Ok, I tried changing it to RadioChoiceMilepostModel (code below). However, the onSelectionChanged() method STILL gets a String argument, as verified by the printf() output New selection is a class java.lang.String: End (538.200). But following that output, an exception is now thrown. I REALLY

Re: Sonar (Architecture) and Wicket

2012-04-25 Thread Igor Vaynberg
these types of cycles are common in applications. they are only a problem *iff* you want to separate your base page into a different jar than the subclass pages. if you are planning on doing that there are well known patterns for how to do that, but they will make your code more complex. so you

Re: Wicket 1.5 - new browser window support detection

2012-04-25 Thread Martin Grigorov
Hi David, What is your use case ? How do you use this callback method ? On Tue, Apr 24, 2012 at 12:13 PM, David Rain david_r...@kb.cz wrote: OK, I also think so. But I really need to detect the fact, that new window was opened. The Listener was perfect... I wonder why it has been removed?

Re: Radio Choice Weirdness

2012-04-25 Thread Richard W. Adams
Oops. Got it figured out. The page class was trying to store the choice in a String variable instead of a MilepostModel variable. All is well now. Thanks! RAM /abr./: Rarely Adequate Memory. From: Richard W. Adams rwada...@up.com To: users@wicket.apache.org Cc: cdsch...@up.com

Re: CryptoMapper - Error decoding text

2012-04-25 Thread fachhoch
I could not reproduce with the quick start , it works in quick start I also tried with 1.5.1 still I could not produce it , not sure why my app is getting error. -- View this message in context:

Re: FilterForm Date column formatting

2012-04-25 Thread Sandor Feher
Hi, Thank you for the prompt answer. I had a try but it does not work as I expect. --- IColumn crdCol=new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd, crd) { @Override public void

Re: FilterForm Date column formatting

2012-04-25 Thread Martin Grigorov
But you don't say what is the problem Sandor Feher sfe...@bluesystem.hu wrote: Hi, Thank you for the prompt answer. I had a try but it does not work as I expect. --- IColumn crdCol=new TextFilteredPropertyColumnHrpContent, String(new ResourceModel(contentlisttable.crd), crd,

Re: Wicket 1.5 - new browser window support detection

2012-04-25 Thread David Rain
Hello Martin! I do not use it right now but I would like to. I knew it was there because I've studied API and sources of Wicket. But it was in time we used Wicket 1.4 and I knew I came across this onNewBrowserWindow method and many classes implemented it