Multi-tenancy with style

2010-11-04 Thread cretzel
We're building a multi-tenant capable application. The basic idea is to identify the tenant for a request and put the tenant information into a ThreadLocal. One requirement is to enable 'localization' per tenant, i.e. to allow tenant-specific labels, like for example one tenant wants to display

Re: AjaxEditableLabel uses wicketAjaxGet

2010-09-29 Thread cretzel
Stupid me. Thx. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxEditableLabel-uses-wicketAjaxGet-tp2719139p2719168.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Announcing: Scala-Wicket Extensions Project

2009-09-10 Thread cretzel
Antony Stubbs wrote: Yes, the ⇒ is actually what the = is supposed to be in Scala, and is a UTF8 character, which I'm sure would be supported by all modern editors. I'm surprised you can't see it properly. What OS and version of Eclipse are you viewing them with? I am toying around with

Re: Turning off ModificationWatcher

2009-07-02 Thread cretzel
Fixed as of Wicket 1.4.0-RC6. now uses an interface. you may use IResourceSettings.setResourceWatcher() to set whatever IModificationWatcher you want cretzel wrote: Posted https://issues.apache.org/jira/browse/WICKET-2340 https://issues.apache.org/jira/browse/WICKET-2340

Re: Turning off ModificationWatcher

2009-06-23 Thread cretzel
Posted https://issues.apache.org/jira/browse/WICKET-2340 https://issues.apache.org/jira/browse/WICKET-2340 igor.vaynberg wrote: or you can add an rfe into jira to make it more open... -igor -- View this message in context:

Re: Turning off ModificationWatcher

2009-06-18 Thread cretzel
relied on an interface IModificationWatcher in future versions, so that it can be replaced by a customized version. Or don't make it final. - cretzel Jonathan Locke wrote: not sure, but try getResourceSettings().setResourcePollFrequency(null) in your app init Matt Welch wrote: I'm

Re: Factory for Components

2009-04-24 Thread cretzel
We are using Spring. Liam Clarke-Hutchinson-3 wrote: Are you using an IoC container at all? On 4/24/09, Nick Wiedenbrück mailinglists...@googlemail.com wrote: Hi, I'm having many Components (DropDowns, ChoiceRenderers, ...) that are reused in different places in my application. For

Re: Factory for Components

2009-04-24 Thread cretzel
My primary reason is to be able to substitute another (improved) version for this component. For example, if we have a simple custom DropDown and we instantiate it by calling new DropDown() all over in the code it might be difficult, to replace that by a new version, e.g.

Re: IDataProvider/LoadableDetachableModel for indexed lists

2008-12-16 Thread cretzel
igor.vaynberg wrote: class addressmodel extends ldm { private final int idx; private final imodel customer; public addressmodel(imodel customer, address address) { this.customer=customer; this.idx=customer.getaddresses().indexof(address); } ... Nice. Thanks igor.

IDataProvider/LoadableDetachableModel for indexed lists

2008-12-15 Thread cretzel
Hi, what's the best way to implement an IDataProvider and a LoadableDetachable for an indexed list? Suppose I have a Customer who has a list of Adresses. class Customer { ListAdress adresses; } Now I want to implement a data provider/ldm for the adresses of a customer. I suppose the usual

Re: JavaScript onChange after onClick

2008-07-21 Thread cretzel
Hi Timo, thanks for that hint. Actually, we didn't prove these issues. We should give it a try ... Thanks Timo Rantalaiho wrote: Hello, Great that you could solve your issue, but I'll comment on a couple of things anyway. On Wed, 16 Jul 2008, cretzel wrote: We are doing validation

Re: JavaScript onChange after onClick

2008-07-18 Thread cretzel
the button div a tabIndex=0 attribute on in its onclick I call this.focus(). Then it works (even in IE). cretzel wrote: Hi, I'm having a problem regarding JavaScript/Ajax and I'm not sure if it's actually related to Wicket. I've got a Button and a TextField within a Form. The TextField

Re: JavaScript onChange after onClick

2008-07-16 Thread cretzel
Hi Timo, thanks for your reply. Anyway, if your intent to only validate when the textfield loses focus? If it would be OK to validate on each keypress, you could try using OnChangeAjaxBehavior in the TextField. We are doing validation via Ajax, so we decided to not to validate on each

JavaScript onChange after onClick

2008-07-15 Thread cretzel
Hi, I'm having a problem regarding JavaScript/Ajax and I'm not sure if it's actually related to Wicket. I've got a Button and a TextField within a Form. The TextField uses an AjaxUpdatingBehavior for validation, which is fired onchange. The Button submits the form via Ajax onclick. In my case,

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread cretzel
Thanks for the immediate replies. Seems that, when using that pattern, one really always has to be aware of the fact that changes are made directly to persistent instances. Otherwise it could easily happen to get inconsistent data into the DB. Michael Sparer wrote: I'd say either enable

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread cretzel
you are right. That's the reason of using OSIV, although these two concepts are somewhat related to each other. I mean, when you are not using OSIV, you have to collect all the data you want to display on the presentation tier within a facade, for example. One possiblity is then to

OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-25 Thread cretzel
Hi, I'm using Wicket together with Spring and Hibernate. And it's quite common, I think, to use an OpenSessionInViewFilter and a LoadableDetachableModel which wraps the domain objects loaded with Hibernate, so that when the model is detached it only holds the ID of the domain object and when its