wicketstuff-dojo with wicket 1.4 compatibility

2009-09-28 Thread Elena Stoll
Hi, I have a question: Is there a new version of wicketstuff-dojo, which is compatible with the Wicket 1.4 version. If so, where to find it. Thanks in advance. Elena

Redirections and Reverse-Proxy

2009-09-28 Thread Stéphane Jeanjean
Hello, I'm using Wicket in a backend which is behind a reverse-proxy. I understand that Wicket does some redirections even if it's not's explicity requested by my code. (perhaps, here, it depends of some strategies, but I don't know them) When a redirection is sent by the back-end the

How to run wicket-stuff phonebook example?

2009-09-28 Thread Petr Fejfar
Hi all, few months ago I've run wicket-stuff phonebook examples and it worked. No I'd like to study it again, hence I downloaded wicket-stuff from the trunk, run command mvn clean install with result BUILD SUCCESSFUL. But on command mvn jetty:run, I've got exception:

Re: confused about component parent field

2009-09-28 Thread Pedro Santos
Hi Haulyn, if you call currentPanel.replaceWith(targetPanel); an got java.lang.IllegalStateException: This method can only be called on a component that has already been added to its parent. the only thing that can cause that exception is: currentPanel hasn't an parent. Work direct with the

Best way to work with the iterator of IDataProvider

2009-09-28 Thread Charles Moulliard
Hi, I would like to know what is the best way to work with the method iterator of DataProvider. I have created a class implementing IDataProvider. Depending of a parameter, the DAO service called is not the same inside in the iterator method. For some DAO services, a list is returned but for one

Re: confused about component parent field

2009-09-28 Thread Haulyn R. Jason
Hi, Pedro, after debug, I found the problem, and I add this line before my code: this.getParent().addOrReplace(currentPanel), this line resolve the problem. Thanks :) On Mon, Sep 28, 2009 at 7:25 PM, Pedro Santos pedros...@gmail.com wrote: Hi Haulyn, if you call

Re: Best way to work with the iterator of IDataProvider

2009-09-28 Thread T Ames
I see several undefined objects: result requestFormModel it If these are defined at the class level, they must be serializable. If you have Logging set at Info, Wicket will give you the actual field that is not serializable, although from the error it looks like something to do with

Re: Best way to work with the iterator of IDataProvider

2009-09-28 Thread T Ames
Further, you don't really need to define the Iterator, just return them. public Iterator iterator(int first, int count) { result = new ArrayListPlatformDTO(); if (requestFormModel != null) { if (requestFormModel.getId() != null) {

How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Charles Moulliard
I use a DateTextField to check if a user encode date according to the Date pattern format defined. DateTextField textfieldFromDate = new DateTextField(fromDate, MMdd ); Question 1 : Is it possible in the message displayed by Wicket after the validation in the feedbackPanel to show the

Re: Best way to work with the iterator of IDataProvider

2009-09-28 Thread vineet semwal
Iterator is not serializable, wicket will try to serialize it if it's at class level so either move it inside iterator method or make it transient , In your case,you can easily move it inside method ;) -- regards, Vineet Semwal On Mon, Sep 28, 2009 at 6:42 PM, T Ames tamesw...@gmail.com wrote:

Re: Best way to work with the iterator of IDataProvider

2009-09-28 Thread cmoulliard
I have found the error. List Result = new ArrayListPlatformDTO(); must be defined outside of the iterator method and also the answer to my question. When the result is empty or null, then I must return a null iterator T Ames wrote: I see several undefined objects: result

Re: Best way to handle circular references

2009-09-28 Thread Daniel Stoch
Hi, We have (in our team) the same thoughts :). We treat circular references between packages as an error (bad architecture design) and we use an automatic test case for all projects to check if there are any cycles in packages. So project with such cycles does not pass the tests. It can be a

Re: Doubt with Maven config

2009-09-28 Thread Jeremy Thomerson
I don't know about keeping jetty running after the tests, but you can probably run mvn jetty:run to run jetty. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Sep 27, 2009 at 2:22 PM, Pedro Sena sena.pe...@gmail.com wrote: Hi Guys, I'm using lolite archetype but I'm having a

Re: How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Pedro Santos
about question 1, yes: http://static.ddpoker.com/javadoc/wicket/1.4-rc2/org/apache/wicket/util/convert/ConversionException.html#setResourceKey%28java.lang.String%29 On Mon, Sep 28, 2009 at 10:57 AM, Charles Moulliard cmoulli...@gmail.comwrote: I use a DateTextField to check if a user encode

Re: How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Matthias Keller
Hi Charles About Question 1: The validation message seems to have its origin in FormComponent#convertInput(): It will try either IConverter.date class simple name or IConverter and the used pattern will be available as the variable format (or ${format} as used in the string resources).

Re: Redirections and Reverse-Proxy

2009-09-28 Thread Igor Vaynberg
how does wicket know about RPhost when it issues the 302? -igor On Mon, Sep 28, 2009 at 2:10 AM, Stéphane Jeanjean stephane.jeanj...@softeam.com wrote: Hello, I'm using Wicket in a backend which is behind a reverse-proxy. I understand that Wicket does some redirections even if it's not's

Re: Redirections and Reverse-Proxy

2009-09-28 Thread Stéphane Jeanjean
I don't know, that's a part of my question. Nothing about RPhost is configured in my BEhost. Igor Vaynberg a écrit : how does wicket know about RPhost when it issues the 302? -igor On Mon, Sep 28, 2009 at 2:10 AM, Stéphane Jeanjean stephane.jeanj...@softeam.com wrote: Hello, I'm using

Re: Doubt with Maven config

2009-09-28 Thread Johannes Schneider
I think the maven jetty plugin does *not* use Start.java. Instead the plugin is configured within the pom.xml Pedro Sena wrote: Hi Guys, I'm using lolite archetype but I'm having a 'problem' I want to run my tests (JUnit) and keep the Jetty server alive after the tests. Every time that

Re: Redirections and Reverse-Proxy

2009-09-28 Thread Stéphane Jeanjean
I'm not sure it's a related to wicket. I think it's related to the respones.sendRedirect() implementation and how the string put in the location header is build. I don't know if it's standard or if it's a Jetty implementation. I have to found out this implementation to understand where the

Re: How to run wicket-stuff phonebook example?

2009-09-28 Thread Maarten Bosteels
Hi, Someone changed the version of commons-dbcp from 1.2.2 to 20030825.18442 (revision 4964) I have reverted that change, and the phonebook seems to work now. As far as I can see the change was made by Shake234, aka Johannes Schneider. Johannes, what was the reason to switch to 20030825.18442 ?

Re: Redirections and Reverse-Proxy

2009-09-28 Thread nino martinez wael
Hi I havent had that many troubles using Apache Http and wicket. As long as you remember to forward and reverse proxy + cookie rewrite.. Something like this: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html -- Forwarded message -- From: Stéphane Jeanjean

RE : Redirections and Reverse-Proxy

2009-09-28 Thread Stéphane Jeanjean
For sure, I'm using reverse proxy and cookie rewriting, but before reverse proxying the hostname is not the right. I think it comes from the Jetty implementation for the sendRedirect() method. -Message d'origine- De : nino martinez wael [mailto:nino.martinez.w...@gmail.com] Envoyé :

Re: RE : Redirections and Reverse-Proxy

2009-09-28 Thread James Carman
Have you looked at: http://docs.codehaus.org/display/JETTY/Configuring+mod_proxy This sounds like a jetty issue, not a Wicket issue. On Mon, Sep 28, 2009 at 2:58 PM, Stéphane Jeanjean stephane.jeanj...@softeam.com wrote: For sure, I'm using reverse proxy and cookie rewriting, but before

Can anyone share a ReCaptcha Panel?

2009-09-28 Thread Anthony DePalma
I saw there was an archived post about a panel that was created for this purpose, but the code was shared through PasteBin and it seems the urls are old and possibly, filled with some kind of virus. Does anyone still have or know of a complete recaptcha panel that can be shared?

Re: Form Processing problem on pages with Border - Wicket 1.4.1

2009-09-28 Thread Pedro Santos
Flavius, I took the liberty: https://issues.apache.org/jira/browse/WICKET-2494 On Sat, Sep 26, 2009 at 12:24 AM, Flavius flav...@silverlion.com wrote: When I first posted this, I posted it multiple times thinking that it wasn't going through. Sorry about that. Pedro S had posted a reply

Re: Doubt with Maven config

2009-09-28 Thread nino martinez wael
Show us some code and it will be easier to help.. AFAIK the start.java that are with iolite are the same as in WIA, it's based on the wicket archetype and only has the DAO layer as an extra thing+filters. regards Nino 2009/9/27 Pedro Sena sena.pe...@gmail.com Hi Guys, I'm using lolite

[WicketStuff] Iolite

2009-09-28 Thread nino martinez wael
Hi Guys I've been using Guice for a while together with warp persist and dynamic finders. Would it be of any interest to switch Iolite to Guice? Please say if it has interest then I might do it, but won't if nobody uses it. http://www.wideplay.com/guicewebextensions2

Re: Can anyone share a ReCaptcha Panel?

2009-09-28 Thread Fernando Wermus
you have to look at the wicket examples On Mon, Sep 28, 2009 at 4:46 PM, Anthony DePalma fatef...@gmail.com wrote: I saw there was an archived post about a panel that was created for this purpose, but the code was shared through PasteBin and it seems the urls are old and possibly, filled with

Re: Can anyone share a ReCaptcha Panel?

2009-09-28 Thread fatefree
Fernando Wermus-2 wrote: you have to look at the wicket examples -- Fernando Wermus. www.linkedin.com/in/fernandowermus Sorry, I know there are captcha examples, I'm referring specifically to the http://recaptcha.net/ implementation -- View this message in context:

Re: Can anyone share a ReCaptcha Panel?

2009-09-28 Thread Jonathan Locke
why not use kitten captcha? fatefree wrote: I saw there was an archived post about a panel that was created for this purpose, but the code was shared through PasteBin and it seems the urls are old and possibly, filled with some kind of virus. Does anyone still have or know of a

AjaxPagingNavigation

2009-09-28 Thread Douglas Ferguson
I'm using the AjaxPagingNavigation component and it works well, but when I click on one of the links, my url is replaced with /?wicket:interface=:3:4::: This is making me thing that the entire page is getting replaced and not using ajax. Is is possible to get IPagingNavigationIncrementLink

Wicket component cannot be found from page relative component path.

2009-09-28 Thread yong mook kim
Hi, Wicket will render its component based on page relative component path. For an example, a bookmarkable page is requested, then the BookmarkableListenerInterfaceRequestTarget.processEvent() is triggered to lookup the component. But some of the component are only exist when the user

Attempt to set model object on null model of component

2009-09-28 Thread Sam Barrow
I'm getting this exception: java.lang.IllegalStateException: Attempt to set model object on null model of component: form:agent The only reason i can find is that the field has a null model, but i added a new Model() to the field and im still getting it DropDownChoiceAgent agent = new

Re: How to run wicket-stuff phonebook example?

2009-09-28 Thread Petr Fejfar
On Mon, Sep 28, 2009 at 8:41 PM, Maarten Bosteels mbosteels@gmail.com wrote: Someone changed the version of commons-dbcp from 1.2.2 to 20030825.18442 (revision 4964) I have reverted that change, and the phonebook seems to work now. Yes, it works now. Thanks for your help, Petr

AttributeModifier relative path rendering in conflict

2009-09-28 Thread pete swulius
All, I am trying to use an AttributeModifier to change the stylesheet used on a Page of mine. WebComponent styleComponent = new WebComponent( style ); styleComponent.add( new SimpleAttributeModifier( href, css/ + style.getName() + /stylesheet.css ) ); add( styleComponent ); The different

Get converted value?

2009-09-28 Thread Martin Makundi
Hi! formComponent.getValue() allways gives you the latest user input OR the model value. This is useful for validation purposes, but is there a bluilt-in get converted value method? There is getConvertedInput -method, but that will only give you the user-submitted value if it has already been