Re: AutoCompleteTextField - autocomplete multiple fields

2008-05-30 Thread Roland Huss
Hi Daniel, Daniel Stoch-2 wrote: > > The main > problem is that the AutoCompleteTextField and related classes > (behavior, renderer) are not easily to extend (eg. it is necessary to > make a few modifications in wicket-autocomplete.js but in > AbstractAutoCompleteBehavior the standard js is add

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

2008-06-04 Thread Roland Huss
Brill Pappin wrote: > > I don't know if you have every done true TDD (most people can't or think > they can), but it actually changes your code and the way you write it. > Starting with 2 users of your code makes a significant impact on what it > looks like in the end. > Just out of curiosity

Re: generics

2008-07-02 Thread Roland Huss
igor.vaynberg wrote: > > On Tue, Jul 1, 2008 at 11:28 PM, Eelco Hillenius > <[EMAIL PROTECTED]> wrote: > thats my point. you work on fields of one object, true, but it does > not necessarily have to be the form's modelobject unless you use a > compound property model. > The usage of a Compou

Re: generics

2008-07-02 Thread Roland Huss
svenmeier wrote: > > Just because you're using a CompoundPropertyModel on your Forms doesn't > mean you need it generified. > > Sven > > Roland Huss schrieb: >> >> igor.vaynberg wrote: >> >>> On Tue, Jul 1, 2008 at 11:28 PM, Eelco H

Re: Resource/SharedResource - Display an image

2008-07-09 Thread Roland Huss
greeklinux wrote: > > > > > But now I get a NullPointerException: > at .PhotoUploadPage$1.getResourceStream(PhotoUploadPage.java:66) > at org.apache.wicket.Resource.init(Resource.java:199) > at > org.apache.wicket.Resource.onResourceRequested(Resource.java:105) >

Re: Resource/SharedResource - Display an image

2008-07-09 Thread Roland Huss
greeklinux wrote: > > the line where the NullPointerException is thrown is: > > resourceStream = new ResourceReference(MyApplication.PROFILE_STANDARD) > > .getResource().getResourceStream(); > > If I am using only this ResourceReference then it w

Re: Resource/SharedResource - Display an image

2008-07-10 Thread Roland Huss
Hi, greeklinux wrote: > > your solution works. But the problem is that I am already registering the > resource in > an Initializer. But ok... > When you bind a resource reference to an application, it's not about registering the resource itself but looking it up. My fault. greeklinux wrote: >

Re: AutocompleteTextField

2008-07-18 Thread Roland Huss
Hi, you might want to have a look at wicketstuff-objectautocomplete which exactly adresses this scenario. It's not released though (and there are some changes in the pipeline so that it plays a smarter role when used within a form), but should work. The code is available via http://wicket-stuff.s

Re: How to handle these nested tags

2007-09-10 Thread Roland Huss
Hi, > > ¡¡ Welcome Could it be, that is not supported as markup for a Label component and that you should use something like instead ? ... roland -- View this message in context: http://www.nabble.com/How-to-handle-these-nested-%3Ctable%3E-tags-tf4412208.html#a12

Hook into RequestCycle ?

2008-02-12 Thread Roland Huss
Hi, what is the best place to hook into the request cycle before a page gets processed ? I looked through http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html but the information there seems to be a bit outdated ("the Session returned by the Application is asked to create a

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Roland Huss
Michael Mehrle wrote: > > Now, if I want to call a method that returns a String instead, like > so... > > add(new Label("greetings", new StringResourceModel("label.allAlbums", > this, new Model(getTotalAlbums(; > ^^^ > > ...with my properties file having this entry: > > la

RE: StringResourceModel - how to pass method call instead of bean

2008-02-12 Thread Roland Huss
Michael Mehrle wrote: > > One more question - what do you refer to with 'late binding' - I assume > the value would be computed 'late' in the process? Please elaborate or > send me a pointer. > ... > >> Alternatively, I you need late binding put >> >> new AbstractReadOnlyModel() { >>publi

Re: Hook into RequestCycle ?

2008-02-12 Thread Roland Huss
Martijn Dashorst wrote: > > The auth-roles project is basically an example, so the fact that you > copied > it, is a good thing (tm). Even though it is sufficient for a lot of > projects, if you need anything beyond the current capabilities, then > rolling > your own is the way to go. Or use Sw

Re: Hook into RequestCycle ?

2008-02-12 Thread Roland Huss
Hi Martijn, Martijn Dashorst wrote: > > Take a look at wicket-auth-roles. This provides the usual security stuff, > and you can easily also check for a set cookie. Just implement your own > authorisation scheme. > Thanks, this was exactly the pointer I was looking for (i.e. the hook via IUna

Re: Business/Domain objects used as wicket model object - opinions please

2008-02-13 Thread Roland Huss
Except for rather small scoped projects, I prefer the usage of DTOs (or formerly known as 'View Objects') over direct usage of domain objects. DTOs can be modelled much closer to the use case (i.e. view) at hand (by combining domain objects or leaving out non-required attributes to have objects

Re: Picnik components

2008-03-22 Thread Roland Huss
Hi Ruediger, Rüdiger_Schulz wrote: > > I'm sure some of you heard about picnik.com, this awesome online image > editor. As I'm in the process of integrating this in my website via their > API, I wanted to implement this as a collection of reusable Wicket > components. Has anyone already started