Re: MetaDataKey in Wicket 1.5

2011-03-30 Thread Vytautas
Thanks, it did help ;) On 03/31/2011 09:02 AM, Martin Grigorov wrote: Session metadata is used by InterceptData (RestartResponseAtInterceptPageException), ClientInfo and CryptoMapper, so yes, it is used :-) A wild guess is that HomePage is stateless and thus you always have new Session instance

Re: WicketFilter 1.5

2011-03-30 Thread Martin Grigorov
http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?view=log I think

Re: MetaDataKey in Wicket 1.5

2011-03-30 Thread Martin Grigorov
Session metadata is used by InterceptData (RestartResponseAtInterceptPageException), ClientInfo and CryptoMapper, so yes, it is used :-) A wild guess is that HomePage is stateless and thus you always have new Session instance. Just add Session.get().bind() in HomePage ctor and see. On Thu, Mar 31

WicketFilter 1.5

2011-03-30 Thread Jan Kriesten
Hi, WicketFilter with 1.5 doesn't seem to use/support 'getRelativePath' any more. I used to override this to apply Locale selection and stripping this information off: /de/myRelativeWicketPath -> /myRelativeWicketPath + Session Locale 'de' Where can I hook that now? Best regards, --- Jan.

MetaDataKey in Wicket 1.5

2011-03-30 Thread Vytautas
Hi! Does anybody uses MetaDataKey in wicket 1.5 (Using wicket 1.5-rc2)? I've created simple quickstart application and added such code into HomePage: private static final MetaDataKey DATA = new MetaDataKey() { /** * */ private

Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2011-03-30 Thread Gabriel Landon
Done : https://issues.apache.org/jira/browse/WICKET-3579 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p3419923.html Sent from the Users forum mailing list archive at Nabble.com.

Re: StatelessForm redirect

2011-03-30 Thread lovewicket
Thank you so much. That worked! It didn't create a session and the request went straight to the SearchResultspage. I'm still not sure why StatelessForm didn't work... but this solution worked fine for me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/StatelessForm-r

Re: flexible authentication

2011-03-30 Thread Daniel Neugebauer
Hi! We have the same situation in one of our web applications (profile pages may be hidden for everyone except the profile owner). Since I wasn't able to find a clean way to check such conditions from our page authorization strategy, I added that to the checks I already had in the page constr

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Attila Király
Hi, you are right this is the issue: request encoding is not set. I forgot it but I use spring's CharacterEncodingFilter for that in all my web apps (not just wicket ones). But I think this could be done in wicket 1.5 out of the box, so I made a patch for it: https://issues.apache.org/jira/browse/

Re: Set all form fields to output markup id automatically

2011-03-30 Thread Martin Grigorov
On Wed, Mar 30, 2011 at 10:18 PM, Matthew Pennington < m...@profounddecisions.co.uk> wrote: > On 30/03/2011 19:44, Martin Grigorov wrote: > >> @Bruno: this is interesting question. You should ask it in scala-users@. >> I >> think this should be possible with some implicit declaration. >> >> @Matth

Re: Set all form fields to output markup id automatically

2011-03-30 Thread Matthew Pennington
On 30/03/2011 19:44, Martin Grigorov wrote: @Bruno: this is interesting question. You should ask it in scala-users@. I think this should be possible with some implicit declaration. @Matthew: Do you use org.apache.wicket.markup.html.form.FormComponentLabel ? Going through the app and changing all

Re: Set all form fields to output markup id automatically

2011-03-30 Thread Martin Grigorov
@Bruno: this is interesting question. You should ask it in scala-users@. I think this should be possible with some implicit declaration. @Matthew: Do you use org.apache.wicket.markup.html.form.FormComponentLabel ? On Tue, Mar 29, 2011 at 11:29 AM, Matthew Pennington < m...@profounddecisions.co.uk

Re: flexible authentication

2011-03-30 Thread Bertrand Guay-Paquet
If I understand correctly, Marc wants to build a contact details page which can either be public (unprotected), private or semi-private (think Facebook privacy settings) based on a user preference, most likely stored in a database. I am also trying to implement a similar mechanism and I am hav

Re: problems with spring integration

2011-03-30 Thread jcgarciam
Hi, I believe the problem to your [Could not instantiate bean class [de.Test]: No default constructor found;] is that your are setting up a Wicket Page (without default constructor) as a managed bean in Spring, when what you actually mean was to define your [UserService] as the Spring bean. Sprin

Re: problems with spring integration

2011-03-30 Thread moèz ben rhouma
Hi, For this error: *java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback (...)* you can add the cglib-nodep library . I think, this link ( http://javajeedevelopment.blogspot.com/2011/03/integrating-spring-security-3-with.html) can help you. Thanks 2011/3/30 hrbaer > Just to summariz

Re: Nested forms and conditional validation

2011-03-30 Thread Igor Vaynberg
depending on external factors while overriding isenabled()/isvisible() is dangerous for the reasons youve just found out. this is why we take care to provide alternative hooks, such as IFormVisitorParticipant -igor 2011/3/30 Robert Dahlström : > I did manage to get this working using the other

Re: problems with spring integration

2011-03-30 Thread hrbaer
Just to summarize my status: I've added addComponentInstantiationListener( new SpringComponentInjector(this) ); to the init method of my xxxApplication file, I added to my applicationContext and withing my WebPage I have this code: public class Test extends WebPage { @SpringBean pri

Re: problems with spring integration

2011-03-30 Thread hrbaer
No, I don't. So adding wicket-ioc.jar to my project solves this problem. But because of the fact I don't have a default constructor I get an exception. My constructor looks like public Test( PageParameters params ){ ... }. -- View this message in context: http://apache-wicket.1842946.n4.nabble

Re: problems with spring integration

2011-03-30 Thread James Carman
Are you using maven? If so, you should have all the dependencies you need. If not, you'll need wicket-ioc.jar On Wed, Mar 30, 2011 at 11:23 AM, hrbaer wrote: > I added wicket-spring-annot to my project, removed all of the previous spring > code and just added getComponentInstantiationListeners(

Re: problems with spring integration

2011-03-30 Thread hrbaer
I added wicket-spring-annot to my project, removed all of the previous spring code and just added getComponentInstantiationListeners().add(new SpringComponentInjector(this)); to the init method of my xxxApplication class. But now I'm getting an error: The type org.apache.wicket.injection.Component

Re: Nested forms and conditional validation

2011-03-30 Thread Robert Dahlström
I did manage to get this working using the other pattern from the conditional-validation page (i.e. using the FormVisitorParticipant) but I'm still curious if the isEnabled solution should work or not? Regards Robert On 03/30/2011 02:45 PM, Robert Dahlström wrote: Hi, I'm currently trying to

Wicket Security (Swarm/Wasp) 1.4.2 released

2011-03-30 Thread Martijn Dashorst
Releasing the Wicket Security project used to be a simple mvn release:prepare; mvn release:perform, but apparently something has changed where finding and fixing a bug took all of 30 minutes and releasing the software took over 3 hours with Maven's release plugin (times two developers). While I'm n

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Andrea Del Bene
No, I'm running my application in a development environment, that is tomcat started by Eclipse and I've got just one application. Its web.xml is the following: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Martin Grigorov
Andrea, do you have any other filters which process the request before WicketFilter ? On Wed, Mar 30, 2011 at 4:34 PM, Andrea Del Bene wrote: > Hi, > > maybe I've got the same problem. I'm using Wicket 1.5 RC3 (but with tomcat > 6.0.32) and each italian character (èàòì...) went lost, even if pag

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Andrea Del Bene
Hi, maybe I've got the same problem. I'm using Wicket 1.5 RC3 (but with tomcat 6.0.32) and each italian character (èàòì...) went lost, even if page encoding was UTF-8. I've tried each of the previous suggestions but they didn't work. I've solved it adding a filter to my app, as described here

Nested forms and conditional validation

2011-03-30 Thread Robert Dahlström
Hi, I'm currently trying to work out how to do conditional validation with nested forms. Googling a bit gave me the following suggestion on how to disable a nested form: (From https://cwiki.apache.org/WICKET/conditional-validation.html) Form nestedForm = new Form("nestedForm") { @Override pu

Re: textarea

2011-03-30 Thread Thierry Peng
On 03/30/2011 11:19 AM, Martin Grigorov wrote: no, it doesn't cache it seems the textarea is not involved at all in the ajax request processing and its model is not needed On Wed, Mar 30, 2011 at 10:52 AM, Thierry Peng wrote: Quick question about textareas I have on a panel two component, a

Re: textarea

2011-03-30 Thread Martin Grigorov
no, it doesn't cache it seems the textarea is not involved at all in the ajax request processing and its model is not needed On Wed, Mar 30, 2011 at 10:52 AM, Thierry Peng wrote: > Quick question about textareas > > I have on a panel two component, a textarea with a xml and a label. the > label

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread nino martinez wael
I remember something about it, I'll try it and tell if it made a difference.. thanks 2011/3/30 Antoine van Wel : > Maybe this in application startup? > > getMarkupSettings().setDefaultMarkupEncoding("UTF-8"); > > > Antoine > > > On Wed, Mar 30, 2011 at 8:13 AM, nino martinez wael > wrote: >> A s

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Antoine van Wel
Maybe this in application startup? getMarkupSettings().setDefaultMarkupEncoding("UTF-8"); Antoine On Wed, Mar 30, 2011 at 8:13 AM, nino martinez wael wrote: > A screen shot? it's the text that should have shown this: > > "IT support vest æ ø å" > > http://www.imageupload.org/?d=4D92CA9C1 > >

Re: Listview gives mysterious log info

2011-03-30 Thread nino martinez wael
Ahh yes, I was diving a bit too deep in my ajax, to notice the html side:) Nice that wicket is that way, I mean that you actually can forget about js/html when doing ajax :) 2011/3/30 Bas Gooren : > Sounds like you are calling setOutputMarkupId on a container. > > So I googled your error message a

Re: 1.5 visiting forms?

2011-03-30 Thread nino martinez wael
I have a page which have several panels of the same type which contains forms, all those forms have the same id.. Currently I am considering grabbing the modelobject on the form and equaling those, this of course means if I have multiple forms editing the same object on the same page with feedbackp

Re: 1.5 visiting forms?

2011-03-30 Thread Martin Grigorov
Iterate over Form.class, not Component.class You may use form.getId() to check whether this is the form you're looking for. On Wed, Mar 30, 2011 at 11:12 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi > > Can't I use the equals method on forms? How do I detect if 2 forms are >

Re: Listview gives mysterious log info

2011-03-30 Thread Bas Gooren
Sounds like you are calling setOutputMarkupId on a container. So I googled your error message and founr WICKET-3237 (https://issues.apache.org/jira/browse/WICKET-3237) Bas Op 30-3-2011 8:54, nino martinez wael schreef: Listview gives mysterious log info what does it mean? This feels a bit li

1.5 visiting forms?

2011-03-30 Thread nino martinez wael
Hi Can't I use the equals method on forms? How do I detect if 2 forms are equal across requests? Below does not work But does iterate over the form where equals should match. But I can see the forms contain different model types, it's after a form submit... public class DiscoverF

textarea

2011-03-30 Thread Thierry Peng
Quick question about textareas I have on a panel two component, a textarea with a xml and a label. the label gets updated (via ajax)but the textarea not. form2.add(area = new TextArea("userdata", new LoadableDetachableModel() { @Override protected String load() { log.de