Re: FilterForm Date column formatting

2012-04-25 Thread Sandor Feher
Hi, Yes, sorry for that. --- Last cause: Component [cell] (path = [5:datatablecontainer:filterForm:datatable:body:rows:1:cells:3:cell]) must be applied to a tag of type [input], not: '' (line 0, column 0) Markup The problem is in "jar:file:/X:/mavenrepo/org/apache/wicke

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

2012-04-25 Thread jensiator
I will try to contribute -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4588983.html Sent from the Users forum mailing list archive at Nabble.com.

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 http://wicket.apache.org/apidocs/1.4/index.

Re: FilterForm Date column formatting

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

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 TextFilteredPropertyColumn(new ResourceModel("contentlisttable.crd"), "crd", "crd") { @Override public void populateItem(Item> item, String componentI

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: http://apache-wicket.1842946.n4.nabble.com/CryptoMapper-Error-decoding-text-tp4034573p4587229.htm

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" To: users@wicket.apache.org Cc: cdsch...@up.com Date: 04/25/2

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 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? > > -- > View thi

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 ha

Re: Radio Choice Weirdness

2012-04-25 Thread Richard W. Adams
Ok, I tried changing it to RadioChoice (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 don't unders

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 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: > http://apache-wic

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

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 wrote: > Hi, > > > I need to add date formater and/or validator to a column i

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 TextFilteredPropertyColumn(new ResourceModel("contentlisttable.cru"), "cru", "cru")); TIA, Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble

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

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 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 wrote: > > The converter correctly converts, but if there is an error in the conv

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 "". at org.apache.xe

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)

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: 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 PropertyModel(this, "objectModel")); But there are other bugs with it (https://issues.apache.org/jira/browse/WICKET-4496), so if something w

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 wrote: > Copy&paste from Sonar: > > Package tangle index > 11.7% >> 46 cycles > > Dependencies to cut > 13 between packages > 16 between files

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 TextField textField = new TextField("txtValue", new PropertyModel(this, "objectModel"))

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 from

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 messag

Re: Sonar (Architecture) and Wicket

2012-04-25 Thread romanasu
Copy&paste 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 examp

Re: wicket yui 1.5.5

2012-04-25 Thread Martin Grigorov
On Wed, Apr 25, 2012 at 12:47 PM, fachhoch 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: > http://apache-wicket.1842946.n4.nabble.com/wicket-yui-1-5-5-tp4584353p4586092.html

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: 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: Why everything is stored in Session?

2012-04-25 Thread Martin Grigorov
On Tue, Apr 24, 2012 at 11:49 PM, Philipp Oppermann 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 concurrent users. The di

Re: Wicket 1.5 ListMultipleChoice add Serializable values

2012-04-25 Thread Martin Grigorov
Hi, It is pure Java, not Wicket: ArrayList On Wed, Apr 25, 2012 at 11:58 AM, dpmihai 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 click > the submit link I want to

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 wrote: > I Think is something like: > public IRequestHandler onException(RequestCycle pCycle, Exception > pException) { > if(pException instanceof SomeException) { >  return new RenderPageRequestHandler(new PageProvider(new > SomeSpecialOwnErro

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. ArrayList list = new ArrayList(); list.add("1"); list.add("2");

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

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 wrote: > Hi, in my job we have an ap

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 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 this message in

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 fr

Re: AbstractAjaxBehavior and second request

2012-04-25 Thread Martin Grigorov
Hi, On Wed, Apr 25, 2012 at 12:44 AM, Brian Mulholland 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 flawlessly.  But the nex

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 wrote: > Right, should probably be something like: > protected void onSelectionChanged(SelectOption newSelection) {}; > > Also, note that SelectOption is generic... I hope his SelectOption is not org.apache.wicket.extensions.markup.html.form.select.Selec

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 wrote: > I am upgrading my project to 1.5 , I use wicketstuff   yui,  is there  1.5 > release for yui ? > > > > -- > View