RE: using saml2 for authentication

2011-07-25 Thread Arjun Dhar
I dont think its justified to expect Wicket to directly provide that Auth support. My 2 cents to put you in the right directions AFAIK: Typically, one should have an IDP or SP setup at either ends. For instance, Shibboleth has good support for SAML2. Once you have that setup, you can use any java

Submit single table row

2011-07-25 Thread Per Newgro
Hi, wicket=1.4.17. The following component structure is only executing forms submit method but not the submit method of the button. Can i achieve this? i have table markup on my page [Amount] [Item id] [Name] type="submit" /> [Item id] [Name] i add a form and a ListView for t

RE: using saml2 for authentication

2011-07-25 Thread Hielke Hoeve
I find the documentation appalling. I have searched for 2 days for proper libraries and all I could find was either half a library, outdated libraries, old libraries, libraries with fuzzy documentation or a full blown server installation (openaselectserver.org). I might be spoiled as openid4java is

target.addComponent breaks Jquery date picker

2011-07-25 Thread lucast
Dear Forum, I'm have a jquery date picker field that I can update by adding AjaxFormComponentUpdatingBehavior to a drop down choice. After I have updated the date field using ajax through the drop down choice, the jquery date picker functionality is no longer working. Following the advice on thi

Re: target.addComponent breaks Jquery date picker

2011-07-25 Thread Andrea Del Bene
Hi, try using ajaxRequest.appendJavaScript("JQuery here") to restore data picker functionality on updated field. Dear Forum, I'm have a jquery date picker field that I can update by adding AjaxFormComponentUpdatingBehavior to a drop down choice. After I have updated the date field using ajax

Re: target.addComponent breaks Jquery date picker

2011-07-25 Thread lucast
Thank you, Andrea. I added target.appendJavascript( "jquery code here" ); and that solved the problem. Kind regards, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/target-addComponent-breaks-Jquery-date-picker-tp3693121p3693360.html Sent from the Users forum ma

Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread eugenebalt
Hi, I have an existing Spring/Hibernate project currently using SpringMVC as the presentation layer, and I need to port it to Wicket. I looked at the "quickstart" downloads for Wicket for how to create a Wicket project, but that's not a Spring/Hibernate project. I already have my Spring/Hibernat

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread Martin Grigorov
See the quickstarts at http://www.jweekend.com/dev/LegUp On Mon, Jul 25, 2011 at 8:17 PM, eugenebalt wrote: > Hi, > > I have an existing Spring/Hibernate project currently using SpringMVC as the > presentation layer, and I need to port it to Wicket. > > I looked at the "quickstart" downloads for

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread eugenebalt
Thanks, so I should choose Wicket 1.4.12, Spring 3.0.2, JPA 2.0 ? I didn't see a Hibernate option in that list. Hibernate is an implementation of JPA? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Replacing-Spring-MVC-with-Wicket-in-Existing-Spring-Hibernate-projec

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread Bruno Borges
You should pick the last 1.4 stable version, as of the time of this email, would be 1.4.17. Secondly, Hibernate is an implementation of JPA and has no relationship with Wicket, but it has with Spring. You may drop all of your Spring MVC code, and keep the rest of its service and data layers. Why

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread eugenebalt
Yeah, but what are the actual steps to add Wicket to my project? Is it just the Wicket JAR and change something in web.xml? Right now web.xml is based on SpringMVC's DispatcherServlet. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Replacing-Spring-MVC-with-Wicket-in

RE: url for images from database

2011-07-25 Thread Miroslav F.
Thanks, was looking on classes :-) Now I have code: HTML: Wicket: DBImage image = new DBImage(); image.setImageData((byte[]) dataFromDB.get(dataOffset)); //not to cache images in browser Double random = Math.random(); //put image into shared resource

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread Zilvinas Vilutis
You add a wicket filter in the web.xml and you're done! I've tried to use a wicket + spring + hibernate quickstart and posted the results here: http://blog.cikas.info/posts/27/dont-do-what-you-dont-need-to-do Regards Žilvinas Vilutis On Mon, Jul 25, 2011 at 10:15 PM, eugenebalt wrote: > Yeah

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread eugenebalt
I have a question, what if I'm not using Maven? I have a hard time believing I need Maven to run Wicket. I just looked at the installation instructions for Maven, they're pretty complicated and involve setting some environment vars, are you kidding me?? I need a simple project that I can send to

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread eugenebalt
Guys, you need to add a regular-Ant, non-Maven QuickStart to your QuickStart page. Right now it's not there, and this is severely limiting. I was hoping at least Wicket wouldn't force me to go through some bloated messy configuration to get a simple app in place, unlike Spring/Hibernate/etc. -- V

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread Randy Schnedler
You don't have to use maven. Download wicket and drop the main wicket jar into your WEB-INF/libs folder. Also you need the one dependency slf4j in the libs folder. Add the filter to web.xml and you're ready to run a basic wicket app. Most likely, you will also want some of the other wicket jars bu

Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread eugenebalt
I tried adding the Wicket 1.4.17 Distribution to my project. First of all, this distribution does not contain any SLF4J stuff. So I had to go over to their site, and download their latest binaries, "slf4j-1.6.1". These were like 12 JAR's, in addition to Wicket's 7-8. However, even after I did al

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread eugenebalt
Thanks Randy. I added one more question about SLF4J, I am getting this exception even after adding all the 12-13 SLF4J JARs: Detected both jcl-over-slf4j.jar AND slf4j-jcl.jar on the class path, preempting StackOverflowError Thanks -- View this message in context: http://apache-wicket.1842946.n

Re: Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread eugenebalt
Note that if I remove jcl-over-slf4j, then I get another exception, it can't find the LogFactory class. java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory I'm just surprised none of these problems are mentioned anywhere. I'm a Wicket beginner who added the Wicket JARs and the S

Re: Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread eugenebalt
Sorry for posting further on this, but I managed to fix the LogFactory by using common-logging-api.jar, and now I have a new problem that Wicket is complaining about: org.apache.velocity.app.Velocity not found Why do I need to add Velocity to my project? -- View this message in context: http://

Rendering a page to a String, with absolute Wicket urls?

2011-07-25 Thread T P D
I want to render a page to a String in order to email it as HTML. I also want to include in that HTML links back to my Wicket application. I know from googling that that's a perennial topic (and most of the answers on nabble go to dead links), but I am having trouble doing all three things tha

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread Randy Schnedler
Glad to help. Read the intro to slf4j. You should only use two slf4j jars: the api plus exactly ONE implementation API jar. If that implementation has dependencies then of course you'll need to add those as well. But several implementations don't require anything additional. On Jul 25, 2011 5:29

Re: Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread eugenebalt
I resolved all my issues, but I had to add a ton of JAR's that were never mentioned anywhere. Thanks anyway. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-Wicket-JARs-jcl-over-slf4j-tp3694328p3694554.html Sent from the Users forum mailing list archive a

How to Catch WebApplication's Destroy()?

2011-07-25 Thread eugenebalt
I have a DB connection that I initialize on WebApplication.init(), which I override. At the end, I need to close the DB connection in something like a destroy method for the app, but I couldn't find any overridable method for that. I tried overriding sessionDestroy() but it's not getting called wh

Re: How to Catch WebApplication's Destroy()?

2011-07-25 Thread eugenebalt
To clarify, this is not per-request, it should be per-application. I have a static Connection object in my WebApplication, and it's used for all transactions in the app. I construct it initially in the init(), and was just wondering where to close the Connection at the end of the app. -- View thi

DropDownChoice and preserving current page parameters

2011-07-25 Thread Doug Leeper
I have a "navigation area" that drives the amount of content on a DataView. One of these navigating components is a DropDownChoice which drives the number of rows to be displayed in the DataView. This page is to be stateless and is mounted as such: mount(new MixedParamUrlCodingStrategy("/categor

Re: How to Catch WebApplication's Destroy()?

2011-07-25 Thread jcgarciam
Why not use a ServletContextListener http://download.oracle.com/javaee/5/api/javax/servlet/ServletContextListener.html Instead of using wicket for that? On Mon, Jul 25, 2011 at 10:34 PM, eugenebalt [via Apache Wicket] < ml-node+3694614-1673249323-65...@n4.nabble.com> wrote: > To clarify, this is

Re: Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread jcgarciam
Eugene, Usually you just need one jar from SLF4J in order to statically make the bridge to the logging system of choice. On Mon, Jul 25, 2011 at 10:10 PM, eugenebalt [via Apache Wicket] < ml-node+3694554-1008203965-65...@n4.nabble.com> wrote: > I resolved all my issues, but I had to add a ton

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread jcgarciam
Eugene, Maven is just for development usually is just required you to put maven instalation on your hard drive, set the PATH variable to the /bin directory in order to be able to locate mvn in your command prompt (shell) and you're all set. If you do that, take the wicket quickstart from wicket pa

Re: DropDownChoice and preserving current page parameters

2011-07-25 Thread Doug Leeper
figured it out: My page hierarchy was not passing the PageParameters up the constructor chain. Additionally, I had to remove the containing form for the DropDownChoice. I swear this worked before...but I am not sure when it changed. -- View this message in context: http://apache-wicket.1842946

OT: Invitations available for http://careers.stackoverflow.com/

2011-07-25 Thread Brian Topping
Hi all, Apologies for the somewhat off-topic email here. http://careers.stackoverflow.com/ is a pretty nifty job site that I signed up for recently, and I have 25 invitations to share. Besides it being a very nifty site with a lot of promise (will generate good looking resume PDFs automatic

RE: Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread Miroslav F.
put just "slf4j-simple-1.6.1.jar" and "slf4j-api-1.6.1.jar" in WEB-INF/lib > -Original Message- > From: eugenebalt [mailto:eugeneb...@yahoo.com] > Sent: Tuesday, 26. July 2011 03:10 > To: users@wicket.apache.org > Subject: Re: Problems with Wicket JARs: jcl-over-slf4j > > I resolved all

RE: How to Catch WebApplication's Destroy()?

2011-07-25 Thread Miroslav F.
Bad. Wicket application start when you deploy it into Tomcat (it's time when WebApplication.init() is executed) and stop when you undeploy it or when you stop Tomcat - it should be very long time ;-) My scenario is: In WebPage class i do LoadableDetachableModel.load() and here I load all data what

Re: RE: How to Catch WebApplication's Destroy()?

2011-07-25 Thread Josh Kamau
are you prohibited from using a DI framework such as guice or spring? it can help you manage your object scope and lifecycle On 26 Jul 2011 07:41, "Miroslav F." wrote: Bad. Wicket application start when you deploy it into Tomcat (it's time when WebApplication.init() is executed) and stop when y

RE: RE: How to Catch WebApplication's Destroy()?

2011-07-25 Thread Miroslav F.
will be next level ;-) - at current status of learning wicket framework is better to know how thinks works and do it myself. > -Original Message- > From: Josh Kamau [mailto:joshnet2...@gmail.com] > Sent: Tuesday, 26. July 2011 06:51 > To: users@wicket.apache.org > Subject: Re: RE: How

Re: How to Catch WebApplication's Destroy()?

2011-07-25 Thread Martin Grigorov
org.apache.wicket.Application.onDestroy() On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt wrote: > To clarify, this is not per-request, it should be per-application. > > I have a static Connection object in my WebApplication, and it's used for > all transactions in the app. I construct it initially i

Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-25 Thread Zilvinas Vilutis
No, It's an off-topic for wicket, but maven just helps standardize things for development and make it easier to manage dependencies & stuff. It enables you to forget all the little details required to run a project based on open source libraries & frameworks - just add a dependency definition and

Re: Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread Martin Grigorov
It's 21st century, use Maven! It will download ONLY the needed jars. On Tue, Jul 26, 2011 at 4:10 AM, eugenebalt wrote: > I resolved all my issues, but I had to add a ton of JAR's that were never > mentioned anywhere. Thanks anyway. > > -- > View this message in context: > http://apache-wicket.1