Re: traversing form components

2006-11-28 Thread Johan Compagner
with validation this time. Note the (double) casts.. they suck and should be solved by adding methods that take ints. Anyone up to that? I don't get why you have to cast. i don't: NumberValidator.range(0, 10); works fine. It sees that it is mapping on the long method when i do this: Number

Re: combination of Panel and FormComponent

2006-11-28 Thread Joni Freeman
On Tue, 2006-11-28 at 21:24 -0800, Eelco Hillenius wrote: > I've got around the fact that I can't do multiple inheritance to > combine a component that is both a panel and a form component (or at > least acts as one) in many ways now, but I really think we need to > have a ready-to-use component fo

Re: traversing form components

2006-11-28 Thread Eelco Hillenius
In case anyone was playing with it, that component wasn't done yet... it needed this: @Override protected void onAttach() { date = (Date) getModelObject(); if (date != null) { Calendar c = Calendar.getInstance();

combination of Panel and FormComponent

2006-11-28 Thread Eelco Hillenius
I've got around the fact that I can't do multiple inheritance to combine a component that is both a panel and a form component (or at least acts as one) in many ways now, but I really think we need to have a ready-to-use component for this now. This would be the simplified version: public class

Re: traversing form components

2006-11-28 Thread Eelco Hillenius
On 11/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Currently, we traverse children of Forms pre-order. It would imo actually be nicer to traverse post-order so that if you would create nested form components - not a common use case, but possible - the children would be updated before the par

traversing form components

2006-11-28 Thread Eelco Hillenius
Currently, we traverse children of Forms pre-order. It would imo actually be nicer to traverse post-order so that if you would create nested form components - not a common use case, but possible - the children would be updated before the parent, so that the parent can use the updated values of the

runtime exception in WebClientInfo

2006-11-28 Thread Eelco Hillenius
Currently, WebClientInfo throws a RuntimeException in it's constructor when the 'User-Agent' header cannot be read from the request. Problems with that: * it's not documented; * even if it was documented, you could argue when it is clear enough and whether this is a case where you can regard an e

Re: ListView in a sucks

2006-11-28 Thread Eelco Hillenius
> IMO the great components in the extension's repeater package > should be promoted to the core. It is very easy to miss those > great extensions, just because they are not in core. I feel > disappointed to discover them after 6 months of Wicket hacking... I agree and in fact pr

Re: ListView in a sucks

2006-11-28 Thread Eelco Hillenius
On 11/28/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: An update to this: I studied the repeater examples, and could manage to write a new example that uses a RefreshingView in a form, and it works great. Nothing to hack or extend. To make the submit button work with setDefaultF

Re: ListView in a sucks

2006-11-28 Thread Igor Vaynberg
youre welcome :) -igor On 11/28/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: An update to this: I studied the repeater examples, and could manage to write a new example that uses a RefreshingView in a form, and it works great. Nothing to hack or extend. To make the submit b

problem with RenderedDynamicImageResource (wicket 2.0)

2006-11-28 Thread Ernesto Reinaldo Barreiro
Hi, I have some problems in generating dynamic images (charts) and the they seem to be related to the method protected byte[] render() { while (true) { final BufferedImage image = new BufferedImage(width, height, type)

Re: ListView in a sucks

2006-11-28 Thread Jean-Baptiste Quenot
An update to this: I studied the repeater examples, and could manage to write a new example that uses a RefreshingView in a form, and it works great. Nothing to hack or extend. To make the submit button work with setDefaultFormProcessing(false), I just had to setItemReuseStrategy(ReuseI

Re: Wicket 1.x with WicketFilter: AJAX broken?

2006-11-28 Thread Martijn Dashorst
As stated in my last message from yesterday: resources are not generated correctly yet. http://issues.apache.org/jira/browse/WICKET-114 Martijn On 11/28/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: Hi, I'm currently testing the latest branch 1.x, and I notice in the examples that the

Wicket 1.x with WicketFilter: AJAX broken?

2006-11-28 Thread Jean-Baptiste Quenot
Hi, I'm currently testing the latest branch 1.x, and I notice in the examples that the following generated URL does not return the requested file: http://localhost:8080/wicket-examples/repeater/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js The page returned is the examples pag

Wrong webapp path in wicket-parent (branch 1.x)

2006-11-28 Thread Jean-Baptiste Quenot
Hi, There is a small change required to wicket-1.x/wicket-parent/pom.xml to allow the examples to start, see patch attached. Thanks in advance, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ Index: pom.xml ==

Re: ListView in a sucks

2006-11-28 Thread Matej Knopp
Hi, as for moving RepeatingView to core, I'm +1 (for DataView too). -Matej Jean-Baptiste Quenot wrote: Hi, A while ago I reported [1]issues with ListView, and requested to add a remove link to the forminput example to demonstrate the problem. The problem was apparently [2]fixed by Eel

ListView in a sucks

2006-11-28 Thread Jean-Baptiste Quenot
Hi, A while ago I reported [1]issues with ListView, and requested to add a remove link to the forminput example to demonstrate the problem. The problem was apparently [2]fixed by Eelco. However the flaw is deeper than it appears: I proposed to [3]add a remove *submit* link to allow one