Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Patrick Angeles
Eelco Hillenius wrote: > >[x] Can best be done in a limited fashion, where we only generify > IModel but not components. I care more about what generifying can do > for API clarity (declaring a component to only accept certain models > for instance) than static type checking. > >[x] Wha

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Patrick Angeles
igor.vaynberg wrote: > > component.detach() { > for (field:fields) { > if (imodel.class.isassignablefrom(field.gettype)) { > ((imodel)field.get(this)).detach(); > } > } > onDetach(); > } > +1 I'm also for moving getModel()/getModelObject() out of Component and only putti

Re: How reliable Validators are?

2008-06-06 Thread Patrick Angeles
Another difference, if you have to do a database roundtrip (which you will likely need to verify a password) then the code for the validator is a bit more complicated. You have to take into account the fact that this gets serialized/deserialized as part of the page so you can't just pass a DB conn

Re: How reliable Validators are?

2008-06-06 Thread Patrick Angeles
ly injecting the validator or making validate an >> inner/anon class so it can access component's fields. >> >> -igor >> >> On Fri, Jun 6, 2008 at 12:46 PM, James Carman >> <[EMAIL PROTECTED]> wrote: >>> You can, however, pass in an object obt

Re: generics

2008-07-01 Thread Patrick Angeles
I second Matej here... maybe instead of GenericPanel, GenericFragment, etc. you could name it something more explicit. Some examples: SingleModelPanel ModelBoundPanel It took me the better part of one day to convert a partially genericized project (we started out with 1.3 then switched to 1.4 mi

Re: generics

2008-07-01 Thread Patrick Angeles
add (new Link("edit", person) { public void onClick () { setResponsePage (new EditPersonPage (getModel())); } }); This code makes a lot more sense if it is inside a repeater... Rodolfo Hansen-2 wrote: > > I too like this compromise alot > > Although I don't see a good use case for ge

Re: sneak peek - brix - wicket/jcr cms

2008-07-09 Thread Patrick Angeles
Hi Dipu, Thanks for looking into Brix. If you can identify any specific areas where we could improve our documentation, let us know. wicket user-2 wrote: > > i am very impressed with what i see there, > > i had created a simple POC in my company for managing the contents in our > wicket apps

Callbacks triggered by keyboard...

2007-08-06 Thread Patrick Angeles
Is this possible in Wicket, say for example, as a way to scroll down a listing, or go left and right on a menu? Thanks in advance... -- View this message in context: http://www.nabble.com/Callbacks-triggered-by-keyboard...-tf4227815.html#a12027815 Sent from the Wicket - User mailing list archiv

AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Patrick Angeles
I noticed this in the examples: http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.AjaxDataTablePage Changing the sort order does not seem to take you to the first page... I stepped through the code, and it looks like it should

Re: AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Patrick Angeles
That was fast :) Also, while we're on it, I just noticed that the NavigationToolbar text is off. For a list of 50 items with a pagesize of 5, it says: "Showing 1 to 6 of 50" (should say "Showing 1 to 5 of 50"). -- View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTab

Re: AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Patrick Angeles
1.3-beta2 igor.vaynberg wrote: > > i believe this was fixed a long time ago, what version are you seeing this > with? > > -igor > > > On 8/24/07, Patrick Angeles <[EMAIL PROTECTED]> wrote: >> >> >> That was fast :) >> >> Also,

Re: AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Patrick Angeles
vaynberg wrote: > > i think it has been fixed since then. at least snapshots at > wicketstuff.org/wicket13 appear to be working fine. > > -igor > > On 8/24/07, Patrick Angeles <[EMAIL PROTECTED]> wrote: >> >> >> 1.3-beta2 >> >> >>

Re: "Wicket Employers" page on the wiki

2007-09-18 Thread Patrick Angeles
Added my company to the list. On 9/18/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > Sounds like a good idea to me. > > -Matej > > On 9/18/07, Scott Swank <[EMAIL PROTECTED]> wrote: > > Would it be appropriate to add a "Companies Hiring Wicket Developers" > page? :) >

Re: Presented Wicket to my Company...

2007-09-28 Thread Patrick Angeles
Just to add a few things to this list. I took a good look at JSF/Seam/EJB3/JPA stack about a year ago. - People say JSF has a rich ecosystem (Trinidad, ICEFaces, MyFaces, SEAM, Facelets, etc.) but the downside to that is that you won't have one forum to go to in order to get framework help. Contr

Re: getter setter strategy for models

2008-08-04 Thread Patrick Angeles
Have you tried private/default scoped setter methods, and would that be an okay compromise for what you want to do? lars vonk wrote: > > Hi, > > I realized that when I have a getter, but no setter for a certain > property on a Model object for form components it fails with the > message that i

FeedbackPanel default outputMarkupId = true

2008-08-18 Thread Patrick Angeles
Does it make sense to have outputMarkupId default to true for FeedbackPanel? Use case: somePanel.add (new OnChangeAjaxBehavior() { protected void onUpdate (AjaxRequestTarget target) { // do stuff, Session.get().info ("did stuff"); target.addChildren (getPage(), FeedbackPanel.class

Re: Another Brix Project...

2008-08-22 Thread Patrick Angeles
Wow. Thanks for the heads up. We'll email those guys and let them know of our project just to make sure we're not working on two very similar things at once. jwcarman wrote: > > http://blog.playlouder.com/2008/03/11/about-brix/ > > --

Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-23 Thread Patrick Angeles
You can use annotations or spring-javaconfig with Spring if you don't want to go through too much XML configuration. That criticism is really unwarranted these days. The annotation-style configuration is very similar to how Guice works, whereas spring-javaconfig is basically like writing the sprin

Re: Wicket Cart: open-source e-commerce wicket app

2008-08-27 Thread Patrick Angeles
James, If you need any CMS functionality at all for your cart project, please have a look at: http://brix-cms.googlecode.com/ For example, you could incorporate your cart panels as "tiles" inside of Brix. msc65jap wrote: > > Is anyone interested in contributing to an open-source e-commerce >

Re: Page models

2008-08-27 Thread Patrick Angeles
I don't tend to use models in my pages. I tend to think of Pages as having more to do with site navigation, as opposed to what is actually displayed in them... (you would then add genericized panels, like ViewOrderPanel, etc., to a page.). John Patterson wrote: > > Yeah guess I will do that. w

Re: job postings

2008-10-09 Thread Patrick Angeles
Ditto... http://www.inertiabev.com/inertiabev/page/jobs.jsp >From the company that brought you Brix CMS. (http://code.google.com/p/brix-cms/) We are based in Napa, but are willing to consider telecommute. -- View this message in context: http://www.nabble.com/job-postings-tp19602122p1990514

Re: How can I use the wicketdate-time stuff with DateTime on my model?

2008-10-09 Thread Patrick Angeles
We use DateTime/LocalDate in our entities as well. It's easy enough to roll your own form components. See the patch and zip file attached to this issue, you can probably just put those classes in your own project and run with it. https://issues.apache.org/jira/browse/WICKET-466 The patch is mea

Re: Mount URL to another host?

2008-10-10 Thread Patrick Angeles
If you want it external to Wicket, you probably want to use a ServletFilter... something like: http://tuckey.org/urlrewrite/ Zach Cox wrote: > > I feel dumb for even asking this, as there's got to be an easy way, but my > brain is blocked today... > > I need a URL on my site, say http://mysit

Yet another Wicket quick start application...

2009-02-17 Thread Patrick Angeles
For anyone interested, I've made public yet another quick start application that brings together Wicket, Spring 2.5 and Hibernate. The app features a basic CRUD framework based on wicketstuff-crud. The CRUD framework uses bean annotations to define CRUD properties. It also uses the excellent InMe

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Patrick Angeles
To answer your question, yes spring beans are singleton by default. The @SpringBean annotation works roughly like this: in your Application class, you set a ComponentInstantiationListener which gets called every time a Wicket page/component is instantiated. The particular listener that gets set (

Re: Doubt in wicket and multiple views

2008-02-06 Thread Patrick Angeles
So long as everything runs in the same webapp, you should be able to use the same model. From a wicket application, you can always get to the request object to get to the virtual host, so you can use that info to present a different view. Mathias P.W Nilsson wrote: > > Hi! > > I have one model

Re: Evaluating Wicket

2008-02-06 Thread Patrick Angeles
Hi Rene, Some answers... * What experience do you have regarding performance of wicket applications? We're still in development, but so far performance hasn't been an issue. * Is there a way to cluster wicket applications? Yes. Same way you would cluster any webapp. Wicket also has a number of

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-21 Thread Patrick Angeles
+1 (has anyone voted -1 yet?) Martijn Dashorst wrote: > > This thread is for voting only. Use the [discuss] thread for voicing > your opinion or asking questions. This makes counting the votes much > easier. > > The discussion on our development list makes it clear that a lot of > folks are a

Re: clustering failover error

2008-03-24 Thread Patrick Angeles
What kind of objects are in the session? Maybe something that's bytecode instrumented? Scott Swank wrote: > > Seemingly yes. If we write the session to disk, stop the jvm, restart > the jvm, and then read the session from disk on the same server we > get this exception. > > - Scott > > > O