Re: Adding a header contribution as the first in the head tag

2012-03-02 Thread Bas Gooren
Josh, You can use an application-wide IResponseFilter for this. Have a look at how ServerHostNameAndTimeFilter (in wicket-examples (*)) does it. *) E.g. look at

Re: Adding a header contribution as the first in the head tag

2012-03-02 Thread Martin Grigorov
Hi, Assign this meta to a WebComponent. html: head meta wicket:id=blah .../ java: WebComponent meta = new WebComponent(blah); meta.add(new AttributeModifier(x, y)) add(meta); On Fri, Mar 2, 2012 at 6:26 AM, Josh Chappelle jchappe...@4redi.com wrote: I'm trying to add an IE compatibility meta

More wicket 1.5 questions

2012-03-02 Thread Douglas Ferguson
In 1.4 I did the following, what are the alternatives in 1.5? 1) AbstractRequestTargetUrlCodingStrategy to mount a path to 301 redirect 2) Overrode newRequestCycleProcessor so that I can set the no cache headers. private void setNoCacheHeader(RequestCycle requestCycle) {

Re: More wicket 1.5 questions

2012-03-02 Thread Martin Grigorov
On Fri, Mar 2, 2012 at 10:21 AM, Douglas Ferguson the...@gmail.com wrote: In 1.4 I did the following, what are the alternatives in 1.5? 1) AbstractRequestTargetUrlCodingStrategy to mount a path to 301 redirect I don't understand you 2) Overrode newRequestCycleProcessor so that I can set the

Re: More wicket 1.5 questions

2012-03-02 Thread Douglas Ferguson
On Mar 2, 2012, at 2:26 AM, Martin Grigorov wrote: On Fri, Mar 2, 2012 at 10:21 AM, Douglas Ferguson the...@gmail.com wrote: In 1.4 I did the following, what are the alternatives in 1.5? 1) AbstractRequestTargetUrlCodingStrategy to mount a path to 301 redirect I don't understand you

SpringComponentInjector

2012-03-02 Thread Douglas Ferguson
I just pulled in SpringComponentInjector and it seems to be subclassing a class that is not longer in wicket-ioc. What's the correct way to using Spring injection with 1.5? Douglas

Re: SpringComponentInjector

2012-03-02 Thread Martin Grigorov
On Fri, Mar 2, 2012 at 11:16 AM, Douglas Ferguson the...@gmail.com wrote: I'm getting classloader issues. I get this from eclipse: The type org.apache.wicket.injection.ComponentInjector cannot be resolved. It is indirectly referenced from required .class files      

Re: SpringComponentInjector

2012-03-02 Thread Douglas Ferguson
That's the latest version of the annotation module. I guess it got merged into another module? On Mar 2, 2012, at 3:18 AM, Martin Grigorov wrote: On Fri, Mar 2, 2012 at 11:16 AM, Douglas Ferguson the...@gmail.com wrote: I'm getting classloader issues. I get this from eclipse: The type

Re: SpringComponentInjector

2012-03-02 Thread Martin Grigorov
Yes, Few years ago for 1.4.0 Remove it. Check wicket-examples - Spring project if something more is still not OK. On Fri, Mar 2, 2012 at 11:30 AM, Douglas Ferguson the...@gmail.com wrote: That's the latest version of the annotation module. I guess it got merged into another module? On Mar 2,

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-03-02 Thread rawe
Hi, you wrote / ... you should pass the form as parent container of the fragment instance. / The problem is that I have multiple fragments within my form. And if I pass the form as parent container for each fragment I get an ... child already exists... exception. That's why I'm inserted

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-03-02 Thread Martin Grigorov
Hi, By 'parent' I really meant 'markupProvider'. See the javadoc of org.apache.wicket.markup.html.panel.Fragment#Fragment(String, String, MarkupContainer). See the source of for the example at

Delete temporary files after end of a session

2012-03-02 Thread brazz
I'm using FileUpload to upload several files to the server in javax.servlet.context.tempdir or java.io.tempdir (i don't want to store them in the session because of session size) in order to send them via Email later in the process. So it's some sort of contactor application. My problem is that

Re: Delete temporary files after end of a session

2012-03-02 Thread Martin Grigorov
Hi, If you talk about HttpSession then javax.servlet.http.HttpSessionListener#sessionDestroyed() is what you need. Wicket Session has invilidate(Now)() methods but those are used when a session expires due to inactivity of the user. On Fri, Mar 2, 2012 at 12:24 PM, brazz alexander.li...@man.eu

Re: The vision of Wicket 6

2012-03-02 Thread Dirk Forchel
Okay. Thank you both for the short explanation. I've got the feeling that migrating an existing 1.5 project to Wicket 6 will be a pain. But obviously it will not. Cheers. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-vision-of-Wicket-6-tp4437649p4438216.html

Re: Delete temporary files after end of a session

2012-03-02 Thread brazz
Hi Martin, So there is no wicket way at the moment. Thank you for your answer! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Delete-temporary-files-after-end-of-a-session-tp4438040p4438463.html Sent from the Users forum mailing list archive at Nabble.com.

RE: wiquery css

2012-03-02 Thread Hielke Hoeve
Strange that the system cannot find it while it can in production. Are you sure the package is present on production, you did not forget a library? Hielke -Original Message- From: N. Metzger [mailto:nmetz...@odu.edu] Sent: vrijdag 2 maart 2012 3:03 To: users@wicket.apache.org Subject:

Re: Markup not found when upgrading from 1.4.18 to 1.5

2012-03-02 Thread rawe
Thanks for your hints, Martin! Now I found the solution. Two changes I had to do: *1)* The difference now is, that the parent component passed to the fragment must be the exact parent. e.g. I used the same fragments for display and edit mode. I passed the page as parentComponent to fragment. /new

Wicket 1.5 - Accessing the Previously Requested Page

2012-03-02 Thread Douglas Ferguson
I want to save off the previous page at then end of each request. Can be handy for things like oauth (making sure we return to the correct spot in the app). In 1.4 I could just pull the page class and parameters off the RequestCycle. Not I have to check to see if the active handler is

RE: wiquery css

2012-03-02 Thread N. Metzger
Well, the library is there, and I tried running it without the modification to my Application which loads my local theme. In that case it displays the default theme. I'm going to debug some more... Natalie -- View this message in context:

RE: wiquery css

2012-03-02 Thread N. Metzger
Details: 1) I downloaded a theme from jquery and added the relevant part to wiquery-1.2.3.jar, jar is part of my libararies 2) I updated my Application to implement IThemableApplication: public ResourceReference getTheme(Session session) { if (session instanceof MidasSession){

web.xml for Spring Wicket 1.5

2012-03-02 Thread Douglas Ferguson
I'm not sure the example web.xml here is complete - https://cwiki.apache.org/WICKET/spring.html There is no filter mapping so there is no request get sent to the wicket servlet. I've always used the the wicket filter and a filter mapping so I need to figure out how to do the same with a

RE: web.xml for Spring Wicket 1.5

2012-03-02 Thread Sergej Sizov
Hi, context-param param-namecontextConfigLocation/param-name param-valueclasspath:context.xml/param-value /context-param servlet servlet-namewicket/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class

Re: Adding a header contribution as the first in the head tag

2012-03-02 Thread jchappelle
Thanks! I was able to write an IResponseFilter and install it within my Application.init via the method getRequestCycleSettings().addResponseFilter(...). -- View this message in context:

Re: AjaxFormSubmitBehaviour

2012-03-02 Thread Cserveny Tamas
Hi, I tried to override the whole onEvent() part and use processInput() on some of the fields. Even if I cleared the messages or whatever, the refresh was made right after the response. I'll check the setDefaultProcess(), maybe it will help. Thanks, Cheers. Tamas -- Cserveny, Tamas On Thu,

Re: web.xml for Spring Wicket 1.5

2012-03-02 Thread Douglas Ferguson
Yeah.. just figured that out. I'm going to update the wiki.. I'm toying around with where to but the wicket.configuration setting using this format as well. Douglas On Mar 2, 2012, at 9:10 AM, Sergej Sizov wrote: Hi, context-param param-namecontextConfigLocation/param-name

Re: Wicket 1.5 - Accessing the Previously Requested Page

2012-03-02 Thread Douglas Ferguson
This doesn't work. Seems like cycle.getActiveRequestHandler() always returns null when in the endRequest call back. Thoughts? Douglas On Mar 2, 2012, at 8:13 AM, Douglas Ferguson wrote: I want to save off the previous page at then end of each request. Can be handy for things like oauth

Re: java.lang.IllegalStateException: Can't call write(CharSequence) after write(byte[]) has been called.

2012-03-02 Thread singh13
I have looked at the DownloadLink class. Would you suggest that i use something like this: getRequestCycle().scheduleRequestHandlerAfterCurrent ? I am passing my response to my discovery method as follows: OpenIDService.sendDiscoveryResponse((WebResponse)getResponse()); -- View this message in

Re: Wicket 1.5 - Accessing the Previously Requested Page

2012-03-02 Thread Igor Vaynberg
write your own irequestcyclelistener, implement onrequesthandlerresolved() and in that method check if the handler is a IPageRequestHandler and stash the page anywhere you want, like in the request cycle's metadata. -igor On Fri, Mar 2, 2012 at 8:08 AM, Douglas Ferguson the...@gmail.com wrote:

Re: Wicket 1.5 - Accessing the Previously Requested Page

2012-03-02 Thread Douglas Ferguson
Thanks. I just found that and was about to report back. ;) One thing I just noticed is that my @RequireHttps annotation doesn't appear to be working. Do I need to configure that app to work with that? Douglas On Mar 2, 2012, at 10:20 AM, Igor Vaynberg wrote: write your own

Re: loosing custom wicket session

2012-03-02 Thread vineet semwal
try session.bind() On Fri, Mar 2, 2012 at 10:33 PM, grazia grazia.russolass...@gmail.com wrote: I am upgrading from wicket 1.4 to wicket 1.5.4 for an application containing lots of legacy servlets and in which wicket has been recently introduced. The login page creates my custom wicket session

RE: wiquery css

2012-03-02 Thread N. Metzger
I'm one step further. It's not oc4j or weblogic, it's the fact that I switch from development mode to deployment mode. It happens in both containers. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4439118.html Sent from the Users forum mailing

Re: Wicket on Google App Engine

2012-03-02 Thread Kayode Odeyemi
Daniel, I was going to send you a private email on this as well after reading the blog you put up. Did you really get this working for your project? On Thu, Mar 1, 2012 at 6:32 PM, kevjay kev...@gmail.com wrote: Daniel, did you ever get things to work to where the HTML files are updated

RE: Wicket/Spring Boilerplate

2012-03-02 Thread Michael Laccetti
#2 I'm not too sure about - doesn't calling getClientInfo() cause a redirect to a temporary page to collect that information? No, this info will be extracted from the User-Agent header. The extended info like browser dimensions are extracted with the special page. So, I call

RE: wiquery css

2012-03-02 Thread N. Metzger
Found it! In deployment mode it looks for the minified css which didn't exist in the jar file. I added it and - voila - all works fine. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-css-tp4407116p4439324.html Sent from the Users forum mailing list archive

Re: [1.5.4] DropDownChoice is not presenting value if equals is not overwritten

2012-03-02 Thread Ian Marshall
I too received log warnings as mentioned in the newly-changed code mentioned above. My relevant Java code extract is: ChoiceRendererListChoiceItem crRenderer = new ChoiceRendererListChoiceItem(sName, nOrdinal); RadioChoiceListChoiceItem rcFieldsMode = new

Wicket authentication: how to store user?

2012-03-02 Thread Paolo
I use this code as base: http://wicketstuff.org/wicket14/authentication/ I added registration and user/password sign-in and checking with database, instead of simple wicket as user and password. All works ok, but now I need in AdminPage to known which user is logged in. How can I implement it?

Re: loosing custom wicket session

2012-03-02 Thread grazia
I would think that the session needs to be bound before the WicketFilter creates a new RequestCycle. But what is the best way of doing so ? Please advise. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4439618.html Sent from

Wicket Spring Security

2012-03-02 Thread Erich W Schreiner
Dear all, what is the recommended way of integrating Wicket 1.5.x with Spring Security 3.1.x? TIA best regards, Erich

Re: loosing custom wicket session

2012-03-02 Thread grazia
It seems that I am able to create a wicket session in a wicket page and make it available to non-wicket pages using the WicketSessionFilter; the wicketsessionfilter nicely binds the session. But I am not being able to maintain the wicket session when going from a non-wicket page to a wicket page.

Re: loosing custom wicket session

2012-03-02 Thread grazia
I just ran my app using wicket 1.4. THe wicketsessionfilter allows me to maintain the wicket session from wicket page to non-wicket page and back to a wicket page. This ensures that the session is bound. But with wicket 1.5 the wicketsessionfilter is not binding the session when going from a

Re: loosing custom wicket session

2012-03-02 Thread vineet semwal
actually session.bind() is only needed once and in wicket side,that too in case when you already dont have a permanent session(http session),this behavior is needed in case when you are trying to be stateless till you actually need to be stateful for eg. you have a stateless form in a stateless

Re: loosing custom wicket session

2012-03-02 Thread grazia
THank you for your reply. I'll get back with an update. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/loosing-custom-wicket-session-tp4439069p4440021.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Multi Tab and Session

2012-03-02 Thread Andre Schütz
Hi, I could solve my problem with the reload of the page and the multi call of the constructors. This evening, I created a quickstart project to show you my problem. After finishing the code of the quickstart project, I could not reproduce my problem. I compared the code from the quickstart

Re: Wicket Spring Security

2012-03-02 Thread James Carman
Wicketopia has an example of how to integrate Spring security (including showing/hiding properties based on user roles) On Fri, Mar 2, 2012 at 2:46 PM, Erich W Schreiner eschrei...@yahoo.com wrote: Dear all, what is the recommended way of integrating Wicket 1.5.x with Spring Security 3.1.x?

Re: loosing custom wicket session

2012-03-02 Thread grazia
I did bind the session as you suggested. IN addition, I noticed that I had not appropriately accounted for my custom RequestCyle. Thank you for your feedback, it was very useful. I add the code hoping to help anybody running into this problem. this.setRequestCycleProvider(new

redirecting in IRequestCyleListener.onException

2012-03-02 Thread Douglas Ferguson
In migrating to wicket 1.5 from 1.4 I used this to redirect to my error page when an exception is thrown. But when I do this it is trying to instantiate a new copy of the page rather than using the one I pass in. IPageProvider provider = new PageProvider(new

Re: redirecting in IRequestCyleListener.onException

2012-03-02 Thread vineet semwal
you need to do requestcycle.scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT)); On Sat, Mar 3, 2012 at 10:53 AM, Douglas Ferguson the...@gmail.com wrote: In migrating to wicket 1.5 from 1.4 I used this to redirect to my error page when

Re: redirecting in IRequestCyleListener.onException

2012-03-02 Thread Douglas Ferguson
onException() wants be to run a redirectHandler. do I just return null? On Mar 2, 2012, at 11:44 PM, vineet semwal wrote: you need to do requestcycle.scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(provider, RedirectPolicy.ALWAYS_REDIRECT)); On Sat, Mar 3, 2012 at 10:53

Re: Wicket 1.5 - Accessing the Previously Requested Page

2012-03-02 Thread Douglas Ferguson
After tracing through the code, I see that when mounting pages, those mappers will bypass the root mapper by wrapping it in a composite So then I tried this: mount(new HttpsMapper(new MountedMapper(PAGE_MOUNT_MAP.get(page), page, new UrlPathPageParametersEncoder()), httpsConfig)); Now my

Re: redirecting in IRequestCyleListener.onException

2012-03-02 Thread vineet semwal
i think you need to return the handler which you have scheduled On Sat, Mar 3, 2012 at 11:30 AM, Douglas Ferguson the...@gmail.com wrote: onException() wants be to run a redirectHandler. do I just return null? On Mar 2, 2012, at 11:44 PM, vineet semwal wrote: you  need to do  

Re: redirecting in IRequestCyleListener.onException

2012-03-02 Thread Douglas Ferguson
Causes an infinite loop. Douglas On Mar 3, 2012, at 12:20 AM, vineet semwal wrote: i think you need to return the handler which you have scheduled On Sat, Mar 3, 2012 at 11:30 AM, Douglas Ferguson the...@gmail.com wrote: onException() wants be to run a redirectHandler. do I just return

Re: redirecting in IRequestCyleListener.onException

2012-03-02 Thread Douglas Ferguson
I mean too many redirects On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: Causes an infinite loop. Douglas On Mar 3, 2012, at 12:20 AM, vineet semwal wrote: i think you need to return the handler which you have scheduled On Sat, Mar 3, 2012 at 11:30 AM, Douglas Ferguson

Re: Wicket 1.5 - Accessing the Previously Requested Page

2012-03-02 Thread Douglas Ferguson
I just read that the setRootRequestMapper should be after all the mounts. I tried it and it still down't work. setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), httpsConfig)); On Mar 3, 2012, at 12:12 AM, Douglas Ferguson wrote: After tracing through the

Re: redirecting in IRequestCyleListener.onException

2012-03-02 Thread Douglas Ferguson
I tried overriding onExceptionRequestHandlerResolved but I can't get this to work. I'm still not getting my error page to load on errors. Douglas On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: I mean too many redirects On Mar 3, 2012, at 12:36 AM, Douglas Ferguson wrote: Causes

Re: redirecting in IRequestCyleListener.onException

2012-03-02 Thread vineet semwal
i think scheduling is wrong in this usecase ,actually just overriding onexception and returning your handler like you did before should have worked but wait for some one else to respond if its not working On Sat, Mar 3, 2012 at 12:47 PM, Douglas Ferguson the...@gmail.com wrote: I tried