[Wicket-user] How to reuse panels with form fields

2006-06-20 Thread Hugo Visser
Hi,As my first wicket exercise I thought I'd create a little utility like wicket application. My application needs to log in to a server on a few occations. I'd like to create a generic login panel and reuse that on my other pages when credentials are required. So I started of creating a panel wit

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Frank Bille Jensen
On Tue, 2006-06-20 at 08:42 -0700, Igor Vaynberg wrote: > i wonder how big the created state machine is for this beast :) It's quite big. I just tried to profile it and compare it to the regex, which Michael Korthuis provided. If I can calculate correctly it is over 100 times larger than Michaels

Re: [Wicket-user] Allow nested components in VelocityPanel

2006-06-20 Thread Eelco Hillenius
I see there is some disagreement on http://sourceforge.net/tracker/index.php?func=detail&aid=1485695&group_id=119783&atid=684977 but that Johan basically wants to adopt the change in a slightly different manner. I think he is currently in Germany watching soccer matches, but hopefully he'll look in

Re: [Wicket-user] errors on servlet init

2006-06-20 Thread Eelco Hillenius
Looks to me like you have some classpath problems. Try cleaning up your projects and make sure you don't have duplicate entries etc. Eelco On 6/20/06, Ittay Dror <[EMAIL PROTECTED]> wrote: > i get this stack trace the first time i try to access a page. the page is a > simple form (no ajax/uplo

Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread Eelco Hillenius
I changed PackageResource so that the constructor is protected instead of private now. Having a private constructor in a non final class doesn't make sense anyway. Could you try if extending that class and overriding setHeaders does the job for you? Eelco On 6/20/06, jan_bar <[EMAIL PROTECTED]>

Re: [Wicket-user] Ajax Panel Include

2006-06-20 Thread Juergen Donnerstag
Without having tested it. IHeaderContributor is the major interface and it has one method void renderHead(final Response response); The Page calls visitChildren to iterate over all components and the components iterate over all there behaviors. Hence, if an ajax response should include the header c

Re: [Wicket-user] Spring 2.0 & Domain object dependency injection

2006-06-20 Thread Igor Vaynberg
or since we do use a factory for creating application/session objects you can write a factory that pulls the session out of spring context where it is declared as a prototype bean.-Igor On 6/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: so far we only targetted the components being injected becau

Re: [Wicket-user] Spring 2.0 & Domain object dependency injection

2006-06-20 Thread Igor Vaynberg
so far we only targetted the components being injected because that is what users asked for. its trivial to inject any object you wantclass MySession extends WebSession() {@SpringBean Foo bar;  MySession() { InjectorHolder.getInjector().inject(this); ...  }}-IgorOn 6/20/06, Martijn Dashors

Re: [Wicket-user] Ajax Panel Include

2006-06-20 Thread Igor Vaynberg
juergen is there an easy way to capture the wicket:head output from an ajax render into the ajax target? i think we can just dump it as part of ajax response via document.write or something like that.-Igor On 6/20/06, samyem <[EMAIL PROTECTED]> wrote: Has this problem been fixed yet? This is becomi

Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Eelco Hillenius
I haven't seen Karthik's content, so I can't speak for him. As for the book Martijn and me are writing: we have a bunch of Manning editors and proofreaders making sure we don't make a mess of the book. Wicket In Action will not only explain you how to do things, but also why and tries to give you a

Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Eelco Hillenius
It's not out yet, and it will take some more months to write. It will be published by Manning as part of the ... In Action series (Wicket In Action). Eelco On 6/20/06, Michael Welter <[EMAIL PROTECTED]> wrote: > Is Eelco's book in English, and where can I find it? > > Thanks, > > karthik Guru wr

[Wicket-user] errors on servlet init

2006-06-20 Thread Ittay Dror
i get this stack trace the first time i try to access a page. the page is a simple form (no ajax/upload) javax.servlet.ServletException: Servlet.init() for servlet wicket threw exception Stack Trace: * Message: javax.servlet.ServletException: Servlet.init() for servlet wicket threw except

Re: [Wicket-user] Ajax Panel Include

2006-06-20 Thread samyem
Has this problem been fixed yet? This is becoming a major problem in my project. -- View this message in context: http://www.nabble.com/Ajax-Panel-Include-t1606490.html#a4957969 Sent from the Wicket - User forum at Nabble.com. ___ Wicket-user mailing

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Igor Vaynberg
i wonder how big the created state machine is for this beast :)-IgorOn 6/20/06, Frank Bille Jensen < [EMAIL PROTECTED]> wrote:Thats right.. In our company we use the (crazy) regex pattern taken from http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.htmlString emailPattern = "(?:(?:\\r\\n)?[ \\t])*(

Re: [Wicket-user] Plan to develop a portal

2006-06-20 Thread Vincent Jenks
Yeah...I could use some bookmarkable pages but just didn't. Since we're doing paid advertising and not worry so much about indexing on google it wasn't a huge concern to get one or two pages in the entire cart indexed - the snakeriverfarms.com site is more of a brochure site and they'd probably ta

Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Iman Rahmatizadeh
Thanks to both karthik & eelco ! But despite the excitement, I'm always worried that the wicket books turn out to be some sort of reference manual which wicket is missing. What I like about books like 'Hibernate in Action', etc. is that they show you how to build real world apps, various design

Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Michael Welter
Is Eelco's book in English, and where can I find it? Thanks, karthik Guru wrote: > Thank you all! . > > Eelco > Hey, competition :) > > Eelco No! I dont think it exists :) and even if it does am definitely > not a part of it :) Wicket probably has competition from Tapestry, Echo, > Facelets a

Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread karthik Guru
Thank you all! .Eelco > Hey, competition :)Eelco No! I dont think it exists :) and even if it does am definitely not a part of it :) Wicket probably has competition from Tapestry, Echo, Facelets and the like :). It is turning out to be great fun (and quite a challenge) writing the book as Nick ment

Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread jan_bar
My resource is static file, so naturaly I want to use PackageResource. But I cannot override the configureResponse() or setHeaders() because PackageResource has private contructor. I cannot resue this class. Thanks Jan "Eelco Hillenius" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [Wicket-user] link cannot be resolved

2006-06-20 Thread Ittay Dror
Nili Adoram wrote: > Hi all, > > I have a problem resolving a stylesheet link as follows: > > This is the markup: > rel="stylesheet" type="text/css"> why is globalCss needed? the servlet gets a request for a url, which is mounted, so it can just request the resource locator of the mount to

[Wicket-user] link cannot be resolved

2006-06-20 Thread Nili Adoram
Hi all, I have a problem resolving a stylesheet link as follows: This is the markup: This is the component: add(new StyleSheetReference("globalCss",new PackageResourceReference(Application.get(), RssSettings.class, "include/global_en.css"))); The PackageResourceReference indeed e

Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread jan_bar
Thanks Eelco, > Additionally, you could consider using Resource.setCacheable(false), > and then the IResourceStream's (or actually IModifiable's) > lastModifiedTime result is used. Actually (in wicket 1.2), the Resource.setCacheable(false) will call response.setLastModifiedTime(Time.valueOf(-1))

Re: [Wicket-user] Spring 2.0 & Domain object dependency injection

2006-06-20 Thread Martijn Dashorst
The application issue is known (http://sourceforge.net/tracker/index.php?func=detail&aid=1458736&group_id=119783&atid=684975) and won't be fixed in 1.2 as it will break backwards compatibility. Could you file a RFE for the Session injector? Martijn On 6/20/06, Stefan Arentz <[EMAIL PROTECTED]> w

Re: [Wicket-user] Spring 2.0 & Domain object dependency injection

2006-06-20 Thread Stefan Arentz
On 6/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > no, there are no problems with wicket-spring poject other then some people > dont think its a "true" way to integrate with spring. sigh. I have some more concrete issues with the current spring integration code. First, it is intrusive. Instea

Re: [Wicket-user] Changing the Link innerHTML

2006-06-20 Thread Martijn Dashorst
Link link = new Link("link") { public void onClick() {} }; link.add(new Label("content", "Hello, World!")); Martijn On 6/20/06, Alex Objelean <[EMAIL PROTECTED]> wrote: > > I just started to learn the Wicket Framework, so sorry for a trivial > question... (I couldn't find the solution on the fo

[Wicket-user] Changing the Link innerHTML

2006-06-20 Thread Alex Objelean
I just started to learn the Wicket Framework, so sorry for a trivial question... (I couldn't find the solution on the forum): How can I change the innerHTML of the Link component dynamically? For instance in the following code: Page1 new Link("navLink") {

Re: [Wicket-user] Cache control for shared resources

2006-06-20 Thread Eelco Hillenius
You can override Resource.configureResponse or WebResource.setHeaders. Additionally, you could consider using Resource.setCacheable(false), and then the IResourceStream's (or actually IModifiable's) lastModifiedTime result is used. Eelco On 6/19/06, jan_bar <[EMAIL PROTECTED]> wrote: > Hi, > >

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Frank Bille Jensen
Yeah I know. The regex is really frightening to most people (my self included), but AFAIK it should actually be the only one which truly validates the full RFC; for what it's worth. Regards Frank Bille Avaleo On Tue, 2006-06-20 at 10:37 +0200, Michiel Korthuis wrote: > I am currently working on m

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Michiel Korthuis
I am currently working on my graduation(project) @ Topicus with another student (Ronald Hemmink). We are new to Wicket and before we saw the wicket-build-in validator we came up with our own _expression_:^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*((\\.[A-Za-z]{2,}){1}$) t

Re: [Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Frank Bille Jensen
Thats right.. In our company we use the (crazy) regex pattern taken from http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html String emailPattern = "(?:(?:\\r\\n)?[ \\t])*(?:(?:(?:[^()<>@,;:\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t]" + ")+|\\Z|(?=[\\[\"()<>@,;:\

[Wicket-user] wicket emailaddress validation incorrect

2006-06-20 Thread Michiel Korthuis
hi,In wicket.markup.html.form.validation.EmailAddressPatternValidator.java the validation-_expression_ is incorrect.the regular _expression_ reads:^[_a-z0-9-]+(\\.[_a-z0-9-]+)[EMAIL PROTECTED](\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$ According to this _expression_ the TLD is 2 or 3 characters, but that's in

Re: [Wicket-user] Allow nested components in VelocityPanel

2006-06-20 Thread Eelco Hillenius
I'll look into it tomorrow (going to bed now). Cheers, Eelco On 6/20/06, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new to the mailing-list, and very interested in Wicket. I > designed recently an application that generates user interface > based on a RDF schema.

[Wicket-user] Allow nested components in VelocityPanel

2006-06-20 Thread Jean-Baptiste Quenot
Hello, I'm new to the mailing-list, and very interested in Wicket. I designed recently an application that generates user interface based on a RDF schema. To make it work, the VelocityPanel needs to not allow nested Wicket components, ie request Wicket to process the merged temp

Re: [Wicket-user] AuthenticatedWebApplication only working when deployed in real server

2006-06-20 Thread Eelco Hillenius
As far as I understand it, all root mapping problems are solved when we use the servlet filter we have in 2.0 instead of the wicket servlet of pre-2.0. It's probably easy to back port, but the only problem is that it breaks the API in some places (like WebApplication.getWicketServlet will be replac

Re: [Wicket-user] AuthenticatedWebApplication only working when deployed in real server

2006-06-20 Thread Stefan Arentz
Found it! The problem is: wicket /* vs wicket /foo/* That took a while to figure out :-/ Eelco told me that this will be solved when the Listener is backported to 1.2. I might take a stab at that today if I can find some time. S. On 6/19/06, Stefan Arentz

Re: [Wicket-user] AuthenticatedWebApplication only working when deployed in real server

2006-06-20 Thread Eelco Hillenius
No idea. Most of us (people that I know around here) run their Wicket apps straight from the IDE. And there's nothing magical going on in wicket-auth-roles-examples either... Eelco On 6/19/06, Stefan Arentz <[EMAIL PROTECTED]> wrote: > I have a really odd problem here. I'm working on a simple ap