6.0.x Docs Down?

2014-04-21 Thread William Speirs
Am I looking in the wrong place, or are the 6.0.x docs down and have been for almost a week now? http://ci.apache.org/projects/wicket/apidocs/6.0.x/ An old link for the 1.5 docs is still up and working: https://wicket.apache.org/apidocs/1.5/ But I cannot figure out how to munge that into

Re: 6.0.x Docs Down?

2014-04-21 Thread William Speirs
on this since a few days. On Apr 21, 2014 7:01 PM, William Speirs wspe...@apache.org wrote: Am I looking in the wrong place, or are the 6.0.x docs down and have been for almost a week now? http://ci.apache.org/projects/wicket/apidocs/6.0.x/ An old link for the 1.5 docs is still up

Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice

2014-04-15 Thread William Speirs
Grigorov Wicket Training and Consulting On Tue, Apr 15, 2014 at 6:00 AM, William Speirs wspe...@apache.org wrote: Off-topic a bit... on the JPA front, I'm still relatively new and finding it not as useful as I would have hoped. Beyond VERY simple read-by-primary-key and update/create/delete

Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice

2014-04-14 Thread William Speirs
as well. I'll definitely be looking into this for my next project, if not porting some of my current ones. When using Croquet, how easy would it be to drop in a different JPA implementation in place of Hibernate? Best, Chris On Wed, Apr 9, 2014 at 12:51 PM, William

Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice

2014-04-09 Thread William Speirs
I gave a talk at ApacheCon NA yesterday on Croquet. It is a combination of Wicket, Jetty, Hibernate, and Guice to make it super-easy to start writing Wicket code almost immediately, instead of spending time configuring everything. Slides:

Re: Wicket + Guice + Transactional

2014-03-02 Thread William Speirs
Thanks for the idea... it worked! However the only hitch now is that I'm force to use field injection which makes unit testing that much harder (I really like everything constructor injected). I guess what I'd need to do is have my Guice binding be to a @Provides method which constructs a proxy

Re: Wicket + Guice + Transactional

2014-03-01 Thread William Speirs
Does anyone have any thoughts on this? Thanks! Bill- On Wed, Feb 26, 2014 at 11:10 PM, William Speirs wspe...@apache.org wrote: I'm using guice-persist ( http://code.google.com/p/google-guice/wiki/GuicePersist) with Wicket and trying to construct a SortableDataProvider that leverages

Wicket + Guice + Transactional

2014-02-26 Thread William Speirs
I'm using guice-persist ( http://code.google.com/p/google-guice/wiki/GuicePersist) with Wicket and trying to construct a SortableDataProvider that leverages Guice's @Transactional annotation on the methods that read from the DB. In my page I pass this SortableDataProvider to a DataTable which down

Re: Unable to find component in Development ONLY

2013-09-15 Thread William Speirs
Turns out that Eclipse was a red harring. The real issue is that when I run in Eclipse it runs in development mode but when I run the JAR it is deployment mode. Is that of help to anyone? Thanks... Bill- On Sep 14, 2013 10:01 PM, William Speirs wspe...@apache.org wrote: Before anyone/everyone

Unable to find component in Eclipse ONLY

2013-09-14 Thread William Speirs
Before anyone/everyone jumps on me, this code works PERFECTLY when I build a JAR (using embedded jetty) and run it. However, it fails in Eclipse with the following: Last cause: Unable to find component with id 'pageTitle' in [HtmlHeaderContainer [Component id = _header_5]] Expected:

Re: http://wicketinaction.com/ broken?

2013-07-19 Thread William Speirs
Worked for me... try again? Bill- On Fri, Jul 19, 2013 at 2:52 PM, Gabriel Landon glan...@piti.pf wrote: Hi, The website wicketinaction.com seems to be down, only the home page is working. All the other pages return a 404. Where can I find a working version of the website? Regards,

Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread William Speirs
On Jul 8, 2013 2:30 AM, Martin Grigorov mgrigo...@apache.org wrote: I don't see another solution. Call them manually in the beginning of your MyApp#init() method. Calling them is one thing, but that's actually not enough. It appears I also have to add the string resources. (That is where I was

Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread William Speirs
On Mon, Jul 8, 2013 at 8:24 AM, Sven Meier s...@meiers.net wrote: Hi, for string resources you could use shade transformers to join the property files: http://stackoverflow.com/**questions/6831954/how-to-** package-an-apache-cxf-**application-into-a-monolithic-**

Multiple wicket.properties files in uber JAR

2013-07-07 Thread William Speirs
I'm attempting to create an uber JAR using the Maven shade plugin and running into an issue shading wicket, wicket-extensions and wicket-devutils. All 3 of these module contain a wicket.properties file that point at their respective Initializers. The problem is that when I create the shaded JAR,

Re: DI Through Constructors w/Wicket

2013-07-01 Thread William Speirs
best practices. Bill- On Mon, Jul 1, 2013 at 12:44 PM, uwe schaefer u...@codesmell.de wrote: On 06/29/2013 03:13 PM, William Speirs wrote: I'm strongly leaning towards the best practice of: If you're having to create an injector in your unit test, then you're doing it wrong. maybe it makes

Re: DI Through Constructors w/Wicket

2013-06-29 Thread William Speirs
://software.danielwatrous.com/wicket-guice-including-unittests/ It enables unittests and may help you toward your goal. Daniel On Tue, Jun 25, 2013 at 7:14 PM, William Speirs wspe...@apache.org wrote: I think I know the answer before I ask, but is there any way to do constructor injection

Re: clustering and failover

2013-06-29 Thread William Speirs
Another consideration is if you're using any authentication that relies upon the tomcat session, then bouncing to another box (if you're doing round-robin load balanced) would mean your users will have to reauthenticate. Been there, still have the bite marks from that :-) Bill- On Fri, Jun 28,

DI Through Constructors w/Wicket

2013-06-25 Thread William Speirs
I think I know the answer before I ask, but is there any way to do constructor injection with Wicket? Say I have a web page and an email service. I need the email service in the web page. Now everyone is going to say, Simply use field injection. That will work, but makes unit testing a real pain

Re: Attaching Ajax Function to Java Method

2013-05-15 Thread William Speirs
On Wed, May 15, 2013 at 10:56 AM, David Beer david.m.b...@gmail.com wrote: Hi Bill I would also suggest you take a look at the Wicket-Bootstrap project by agilecoders for Bootstrap integration. Is very good and has a lot of the bootstrap components. http://wb.agilecoders.de/demo/ and

Attaching Ajax Function to Java Method

2013-05-14 Thread William Speirs
I'm trying to create a typeahead component for Wicket that uses Bootstrap's Typeahead: To set this up though I need to provide the .typeahead method in JavaScript with a function that will return the results, given the query. What I'd like to do is attach that JavaScript function to a Java method

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread William Speirs
(,)); } result.append(]); return result.toString(); } } Hope this works for you. -- Don Ferguson On Tuesday, May 14, 2013 at 1:36 PM, William Speirs wrote: I'm trying to create a typeahead component for Wicket that uses Bootstrap's Typeahead: To set this up though I need to provide

Re: NumberTextFieldDouble Issue

2013-03-11 Thread William Speirs
, Mar 10, 2013 at 9:38 PM, William Speirs wspe...@apache.org wrote: I'm trying to use a NumberTextField with a type of Double and the form will only let me type in integers (or doubles that end in .0). Is this a known issue? Is there a workaround? Can you explain more ? I don't remember

Re: NumberTextFieldDouble Issue

2013-03-11 Thread William Speirs
to setMaximum setMinimum, should it also have a setStep method? Otherwise you're forced to use a combination of Wicket methods HTML attributes to control the input box. Thoughts? Bill- On Mon, Mar 11, 2013 at 4:51 PM, William Speirs wspe...@apache.org wrote: I'll need to double check and get back

NumberTextFieldDouble Issue

2013-03-10 Thread William Speirs
I'm trying to use a NumberTextField with a type of Double and the form will only let me type in integers (or doubles that end in .0). Is this a known issue? Is there a workaround? My basic code... *Java* private IModelDouble doubleModel; final NumberTextFieldDouble d = new

Re: NumberTextFieldDouble Issue

2013-03-10 Thread William Speirs
, Paul C Bors On Mar 10, 2013, at 15:38, William Speirs wspe...@apache.org wrote: I'm trying to use a NumberTextField with a type of Double and the form will only let me type in integers (or doubles that end in .0). Is this a known issue? Is there a workaround? My basic code... *Java

Re: Eclipse or IntelliJ

2013-02-20 Thread William Speirs
I've always used Eclipse and am currently using Juno. The Maven support got much better, but other stupid things seem to have broke. For example, switching tabs into the XML editor (or pom editor) seems to require calculating Pi to 10 million digits each time. Actually, I think there is a memory

Re: Style Modifier

2013-02-03 Thread William Speirs
/minis-parent ) if you like. On Sun, Feb 3, 2013 at 5:38 AM, William Speirs wspe...@apache.org wrote: @Paul Bors I would normally do the same type of thing, but I found myself in a situation where I needed to style the background color of a div that is dynamically loaded from a DB. ie

Re: Style Modifier

2013-02-02 Thread William Speirs
(propertyName,value) in a neat way .. On Fri, Feb 1, 2013 at 8:14 PM, William Speirs wspe...@apache.org wrote: I created a Behavior the other night that allows one to modify the style attribute of a tag by easily adding or removing a CSS property. Why is this better/different than

Style Modifier

2013-02-01 Thread William Speirs
I created a Behavior the other night that allows one to modify the style attribute of a tag by easily adding or removing a CSS property. Why is this better/different than AttributeModifier? Because you can update a CSS property inside the style attribute. Basic usage: myComponent.add(new

Re: Pages, Panels, and Dependency Injection

2013-01-29 Thread William Speirs
, William Speirs wspe...@apache.org wrote: I'm having trouble understanding how to inject components into a page so that the page will be easy to unit test later. Say I have a page that contains two panels. I can easily use constructor injection to inject these panels into the page

Re: How to set up GuiceWebApplicationFactory and the Guice Servlet scopes

2013-01-12 Thread William Speirs
I used the GuiceWebApplicationFactory as follows in my web.xml: display-namemy_project/display-name filter filter-nameMyProjectFilter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param

Re: Wicket, Heroku and scaling

2013-01-11 Thread William Speirs
@Jens Jahnke if you do create an ISessionStore for redis, please post back if you're willing to share. I could see the use in that! Thanks... Bill- On Wed, Jan 9, 2013 at 3:34 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Yes, you can create your own

Re: FormComponentPanel onchange Events

2012-12-15 Thread William Speirs
? Can you post the non-working code up if those suggestions don't solve it? I'd be happy to have a look at it. Cheers, Col. -Original Message- From: William Speirs [mailto:wspe...@apache.org] Sent: Thursday, 13 December 2012 1:51 PM To: users Subject: FormComponentPanel onchange

FormComponentPanel onchange Events

2012-12-12 Thread William Speirs
I've created a FormComponentPanel with 2 text boxes: A B. I've add this new FormComponentPanel to my page twice: 1 2. What I'd like to have happen is when I change the value of 1A I want that same value copied into 2A. I call setOutputMarkupId to true on 1A, 1B, 2A, and 2B. I setup an

Re: Recommended way to hide and show table rows dynamically?

2012-12-06 Thread William Speirs
This might be of zero use to you, but I had something similar where I was exposing a table row by button/link. I created a somewhat generic solution and posted it here: https://github.com/wspeirs/wicket-details-table Bill- On Thu, Dec 6, 2012 at 12:40 PM, shimin_q smq...@hotmail.com wrote: I

Re: problem with editable datatable

2012-12-01 Thread William Speirs
When I've had to do this, I usually use a fragment. It keeps all the HTML on a single page and is a bit cleaner I think: http://wicket.apache.org/learn/examples/usingfragments.html Bill- On Fri, Nov 30, 2012 at 8:14 AM, hannes1608 hannes1...@yahoo.de wrote: Just realized that I have to create

Pages, Panels, and Dependency Injection

2012-11-29 Thread William Speirs
I'm having trouble understanding how to inject components into a page so that the page will be easy to unit test later. Say I have a page that contains two panels. I can easily use constructor injection to inject these panels into the page: class MyPage extends WebPage { @Inject public

Re: Dynamically Toggling a Details Row in a DataTable

2012-10-10 Thread William Speirs
-Original Message- From: William Speirs [mailto:wspe...@apache.org] Sent: Tuesday, October 09, 2012 3:01 PM To: users@wicket.apache.org Subject: Dynamically Toggling a Details Row in a DataTable I would like to create a component that generates an additional row in a DataTable

Re: Dynamically Toggling a Details Row in a DataTable

2012-10-10 Thread William Speirs
or detailed) or use inheritance and store the type flag at the parent class and your collection should hold children as returned via a getRowContent() method. ~ Thank you, Paul Bors -Original Message- From: William Speirs [mailto:wspe...@apache.org] Sent: Wednesday, October 10, 2012

Dynamically Toggling a Details Row in a DataTable

2012-10-09 Thread William Speirs
I would like to create a component that generates an additional row in a DataTable for each existing row. This additional row will contain details for the above row. I would like to have a column in the DataTable that contains a link/button/etc which controls the visibility (display: hidden for

Group Select with Beans

2012-04-12 Thread William Speirs
I have 2 JavaBeans A B. A has 2 fields: String name, Integer b_id. B has 2 fields: Integer id, String display. I have a list of beans for B: 1, foo 2, bar I have a single A bean, where its b_id corresponds to an id in bean B (basically the beans represent 2 tables in a DB with the ids as