[Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Otan
having my code refactored to use ResourceStreamFactory (from using ResourceStreamLocator before), my program no longer works and I now receive a MarkupNotFoundException. Could someone clarify to me how is the proper use of ResourceStreamFactory and what new things to understand regarding custom

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Juergen Donnerstag
Please see CustomResourceStreamFactory in the custom resource loading examples for how it works, or OsgiResourceStreamFactory as another example. You simply extend ResourceStreamFactory, subclass the appropriate locate() method (you usually must not forget to call super.locate()) and register your

Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Martijn Dashorst
On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: * Method WebApplication#newSession is made final and will be removed in the near future. Instead, use WebApplication#newSession. So don't use WebApplication#newSession, but use WebApplication#newSession? Martijn -- Vote for Wicket at the

Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Frank Bille
On 1/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: * Method WebApplication#newSession is made final and will be removed in the near future. Instead, use WebApplication#newSession. So don't use WebApplication#newSession, but use

[Wicket-user] TextFilteredPropertyColumn and a date value

2007-01-14 Thread kurt heston
I'm trying to create a filter that allows the user to enter a date on which to filter. It works fine when a valid date string is input. However, invalid dates generate a conversion exception. Do I need to create a brand new class that overrides FilteredPropertyColumn to get this to work?

Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Johan Compagner
Yeah that doesn't look to difficult ;) On 1/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: * Method WebApplication#newSession is made final and will be removed in the near future. Instead, use WebApplication#newSession. So don't use

Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Korbinian Bachl
Sorry, I dont understand either. We are told not to use a but use a instead??? I dont get this _ Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Frank Bille Gesendet: Sonntag, 14. Januar 2007 13:06 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user]

Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Martijn Dashorst
On 1/14/07, Frank Bille [EMAIL PROTECTED] wrote: Yeah, whats so difficult to understand? It makes sense. And it's easy to migrate. Yeah stupid me... I just feel sympathy for the compiler. Has to generate a warning and then discard it immediately. This is what creates serial killer compilers.

[Wicket-user] How to do a table with cell specific background image and image ?

2007-01-14 Thread ZedroS Schwart
Hi all I'm new to wicket and I'm looking for creating a table where each cell would have a specific background image and, as a content, a specific image with a link upon it. What's the best way to do it in Wicket ? I've started looking at SimpleViewList but I'm not so sure it's the right thing

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke
juergen, if it's a factory, shouldn't it be newResourceStream? Juergen Donnerstag wrote: Please see CustomResourceStreamFactory in the custom resource loading examples for how it works, or OsgiResourceStreamFactory as another example. You simply extend ResourceStreamFactory, subclass the

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke
juergen, if it's a factory, shouldn't it be newResourceStream? Juergen Donnerstag wrote: Please see CustomResourceStreamFactory in the custom resource loading examples for how it works, or OsgiResourceStreamFactory as another example. You simply extend ResourceStreamFactory, subclass the

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Juergen Donnerstag
May be. The reason why I didnt change it is because we are still searching for the resource by iterating over (component hierarchy), class hierarchy, style, variation, locale and sometime extensions and only if the find the resource we create a resource stream for it. Not sure which I like better

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke
juergen, if it's a factory, shouldn't it be newResourceStream? Juergen Donnerstag wrote: Please see CustomResourceStreamFactory in the custom resource loading examples for how it works, or OsgiResourceStreamFactory as another example. You simply extend ResourceStreamFactory, subclass the

[Wicket-user] wicket-spring-examples 2.0 seem to be broken

2007-01-14 Thread De Soca
Hello, I don't seem to be able to get wicket spring examples in 2.0 to run with the latest from svn. In addition the example does not use the WicketFilter. Just wonder if no one has gotten around to it as yet or am I doing something wrong. I receive the following on startup: 2007-01-14

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Jonathan Locke
yeah, my feeling is that it should be newX if it's a factory method. the purpose of a factory is to create something... Juergen Donnerstag wrote: May be. The reason why I didnt change it is because we are still searching for the resource by iterating over (component hierarchy), class

Re: [Wicket-user] Changing localized labels after costructor

2007-01-14 Thread Igor Vaynberg
add(new Label(foo, new ResourceModel(header))) ? -igor On 1/14/07, Filippo Diotalevi [EMAIL PROTECTED] wrote: Hi, maybe the question is a bit dumb, but I haven't found a definitive answer. I have a custom panel MyPanel which is added to a MyPage. The component must use internally same

Re: [Wicket-user] API break for 1.3 and 2.0: Session constructor

2007-01-14 Thread Eelco Hillenius
Heh, sorry. I meant #newSession(Request) instead of #newSession() Eelco On 1/14/07, Frank Bille [EMAIL PROTECTED] wrote: On 1/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 1/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: * Method WebApplication#newSession is made final and will be

Re: [Wicket-user] TextFilteredPropertyColumn and a date value

2007-01-14 Thread Igor Vaynberg
you need to specify the type in the textfield so the the conversion exception is caught there. new textfield(id, model, Date.class); -igor On 1/13/07, kurt heston [EMAIL PROTECTED] wrote: I'm trying to create a filter that allows the user to enter a date on which to filter. It works fine

Re: [Wicket-user] How to do a table with cell specific background image and image ?

2007-01-14 Thread Igor Vaynberg
take a look at repeater examples in wicket-examples -igor On 1/13/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi all I'm new to wicket and I'm looking for creating a table where each cell would have a specific background image and, as a content, a specific image with a link upon it. What's

Re: [Wicket-user] Changing localized labels after costructor

2007-01-14 Thread Filippo Diotalevi
On 1/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: add(new Label(foo, new ResourceModel(header))) ? Yeah, it was really that simple! Thanks -- filippo - Take Surveys. Earn Cash. Influence the Future of IT Join

[Wicket-user] Input Field background color change on validation

2007-01-14 Thread Cliff Pereira
Hello Mailinglist again, I tried to implement a simple input field where you can e.g. enter your username. Now I want to let the background of the textfield be red while it is not valid. And if it's finally valid it should change to green (during the input). My problem is, that I always loose

Re: [Wicket-user] Ajax Behaviour on RadioChoice

2007-01-14 Thread Cliff Pereira
Hi Igor, I found some strange behavior extending my code. The RadioChoice works perfect now. It changes the label beneath it depending on the selection. But now if I additionally add a RequiredTextField it won't change until something is written into the textfield. Is that the intention of a

Re: [Wicket-user] Input Field background color change on validation

2007-01-14 Thread Martijn Dashorst
You make it very complicated :-) final TextField uname = new TextField(username, ...).add(new AttributeModifier(class, true, new Model() { public void getObject(Component c) { return uname.isValid() ? valid : invalid; } }); uname.add(new AjaxFormComponentUpdateBehavior(onblur) { public void

[Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Mark Derricutt
Hey all, I just updated my Wicket 2 HEAD copy and now get the following errors: Exception in thread main java.lang.NoSuchMethodError: wicket.MetaDataKey .init(Ljava/lang/Class;)V at wicket.spring.injection.SpringComponentInjector$1.init( SpringComponentInjector.java:67) at

Re: [Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Caleb Land
I don't think it's something specific to your end because I get something similar: /Users/caleb/svn/wicket/wicket-spring/src/main/java/wicket/spring/injection/SpringComponentInjector.java:[65,75] cannot find symbol symbol : constructor

Re: [Wicket-user] Ajax Behaviour on RadioChoice

2007-01-14 Thread Igor Vaynberg
that happens because if you dont put anything into requiredtextfield the validation of the form fails. like i said before, what you want is formcomponentupdatingbehavior, but radiochoice doesnt support that because it is a quasi component (single component representing a bunch of html

Re: [Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Igor Vaynberg
its because an api change was made to wicket and not synced into wicket-spring. fixed. -igor On 1/14/07, Caleb Land [EMAIL PROTECTED] wrote: I don't think it's something specific to your end because I get something similar:

Re: [Wicket-user] Wicket 2 HEAD problem - java.lang.NoSuchMethodError: wicket.MetaDataKey.init(Ljava/lang/Class; )V

2007-01-14 Thread Mark Derricutt
Cheers, thought it might be something like that. On 1/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote: its because an api change was made to wicket and not synced into wicket-spring. fixed. - Take Surveys. Earn Cash.

Re: [Wicket-user] from ResourceStreamLocator to ResourceStreamFactory in Wicket trunk

2007-01-14 Thread Otan
On 14/01/07, Juergen Donnerstag [EMAIL PROTECTED] wrote: Just out of curiosity, what are you using it for? How and why did you change/extend the default behavior? Sometimes, I put markups in the folder like: /WEB-INF/wicket.html/com.mycompany.packedge/ or

[Wicket-user] When the connetction must be opened and when it have to closed?

2007-01-14 Thread Ramazan Pekin
Hi everone, I am trying to develop a structure and I want this; already opened and already closed the connection when my form is submitted and my forms logic finished. I have a BaseForm class, which overriding OnSubmit function and my other forms extends this BaseForm class. On Struts, when

[Wicket-user] spring integration question

2007-01-14 Thread Peter Thomas
Hi, I was thinking that more option can be added to the official wicket-spring integration documentation. Something like this: 1) normal wicket servlet config in web.xml, with applicationClassName init-param 2) Application class uses Spring API to get hold of dependency like this: class

Re: [Wicket-user] Input Field background color change on validation

2007-01-14 Thread Erik van Oosten
Hi Cliff, If I read your requirements correctly you should use onkeypress instead of onblur. But I guess you already guessed that. Regards, Erik. Martijn Dashorst wrote: You make it very complicated :-) final TextField uname = new TextField(username, ...).add(new

[Wicket-user] Is there any uml diagram for wicket?

2007-01-14 Thread Ramazan Pekin
Hi everyone Is there any uml diagram for wicket framework, or is there any flowchart? Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut.