Re: 6.0.x Docs Down?

2014-04-21 Thread William Speirs
this since a few days. > On Apr 21, 2014 7:01 PM, "William Speirs" 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/ > > > >

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 somethin

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

2014-04-15 Thread William Speirs
-spring-crud/ > > Martin Grigorov > Wicket Training and Consulting > > > On Tue, Apr 15, 2014 at 6:00 AM, William Speirs > 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. Beyon

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

2014-04-14 Thread William Speirs
;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? > > > > > > Bes

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: https://docs.google.com/presentation/d/1m3jdbpYoSBOCPz8Wes9

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 cl

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 wrote: > I'm using guice-persist ( > http://code.google.com/p/google-guice/wiki/GuicePersist) with Wicket and > trying to construct a SortableDataProvider that lev

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" wrote: Before anyone/everyone j

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: '_header_5:pag

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 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, > Gabriel

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 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-** > jar-with-the-maven-s

Re: Multiple wicket.properties files in uber JAR

2013-07-08 Thread William Speirs
On Jul 8, 2013 2:30 AM, "Martin Grigorov" 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 really getting

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, th

Re: DI Through Constructors w/Wicket

2013-07-01 Thread William Speirs
x27;s best practices. Bill- On Mon, Jul 1, 2013 at 12:44 PM, uwe schaefer 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 wr

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, 2

Re: DI Through Constructors w/Wicket

2013-06-29 Thread William Speirs
Tue, Jun 25, 2013 at 10:38 PM, Daniel Watrous wrote: > I worked out this process: > http://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 wrote: >

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 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 https://github.com/l0

Re: Attaching Ajax Function to Java Method

2013-05-14 Thread William Speirs
;Aftermath", > "Absinth"} ); > } > > // There's probably a built-in method that does this… > > private String toJSONArray(List strings) { > StringBuffer result = new StringBuffer("["); > for (String string : strings) { >

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: NumberTextField Issue

2013-03-11 Thread William Speirs
erTextField component has the ability 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 wrote: &

Re: NumberTextField Issue

2013-03-11 Thread William Speirs
; > On Sun, Mar 10, 2013 at 9:38 PM, William Speirs > 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?

Re: NumberTextField Issue

2013-03-10 Thread William Speirs
nentLabel: > > http://wicket.apache.org/apidocs/1.5/org/apache/wicket/markup/html/form/FormComponentLabel.html > > ~ Thank you, >Paul C Bors > > On Mar 10, 2013, at 15:38, William Speirs wrote: > > > I'm trying to use a NumberTextField with a type of Double and the

NumberTextField 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 IModel doubleModel; final NumberTextField d = new NumberTextField("d", d

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
nt/minis-parent > ) > if you like. > > > On Sun, Feb 3, 2013 at 5:38 AM, William Speirs 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 dynamica

Re: Style Modifier

2013-02-02 Thread William Speirs
opertyName,value) in a neat way .. > > On Fri, Feb 1, 2013 at 8:14 PM, William Speirs 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

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 StyleModi

Re: Pages, Panels, and Dependency Injection

2013-01-29 Thread William Speirs
he constructor via a response page: > > > >setResponsePage(new MyPage(new DAO(), currentUser)); > > > >Thanks... > > > >Bill- > > > > > >On Fri, Nov 30, 2012 at 3:35 AM, Martin Grigorov > >wrote: > > > >> Hi, > >> >

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: my_project MyProjectFilter org.apache.wicket.protocol.http.WicketFilter applicationClassName com.myproject.Application applicationFactoryClassName org.ap

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 wrote: > Hi, > > Yes, you can create your own org.apache.wicket.session.ISessionStore. > See the d

Re: FormComponentPanel & onchange Events

2012-12-15 Thread William Speirs
AjaxFormComponentUpdatingBehavior > rather than AjaxEventBehavior? > > 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 [mail

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 AjaxEven

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 wrote: > I have a table that

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 wrote: > Just realized that I have to create a new component fo

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 MyPage(Pane

Re: Dynamically Toggling a Details Row in a DataTable

2012-10-10 Thread William Speirs
u want in it (see how toolbars to the same > thing). > > As an idea, you might need a second flag to represent the type of the row > (simplified or detailed) or use inheritance and store the type flag at the > parent class and your collection should hold children as returned via a >

Re: Dynamically Toggling a Details Row in a DataTable

2012-10-10 Thread William Speirs
toggle between labels > and > >> form fields to set the contents of the table row. > >> > >> If you do want to show extra details that do not match the columns in > your > >> table, use a pop-up or modal pop-up. > >> > >> > >> ~ Thank you, >

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 t

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 re