SV: StringResourceModels doesn't seem to detach properly

2012-01-04 Thread Einar Bjerve
of property substitution models and detachable parameters is done in StringResourceModel#onDetach(), these objects won't be detached. I believe this is a bug, as it was changed between 1.4 and 1.5. In 1.4 it was consistent, in 1.5 it isn't. Best regards Einar Bjerve -Opprinnelig melding- Fra

Re: StringResourceModels doesn't seem to detach properly

2012-01-04 Thread Einar Bjerve
at 10:44 AM, Einar Bjerve einar.bje...@visma.no wrote: Hi, Well, StringResourceModel#detach() is called, but since the SRM isn't attached, StringResourceModel#onDetach() is never called and the result is that the property substitution model isn't detached. I'll demonstrate with a bit

StringResourceModels doesn't seem to detach properly

2012-01-03 Thread Einar Bjerve
is detached with the StringResourceModel. This behavior seems kind of inconsistent to me. Is this intended and correct? Best regards Einar Bjerve

Re: Ajax and ModalWindow Strange behaviour

2010-12-04 Thread Einar Bjerve
Could it be that the modalwindow detaches your models when it closes? Den 3. des. 2010 kl. 15.22 skrev Poko Booth: Hmmm.. Turns out it's not the modal window the one causing the problem. The modal was activated by an ajaxsubmitlink and the page form had required components thus errors took

Re: How to enable/disable an hierarchy?

2010-12-01 Thread Einar Bjerve
at 1:21 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: have a field in the page that controls whether or not these components should be enabled/disabled, then override their onconfigure() methods and setenable/disabled based on the field. -igor On Tue, Nov 30, 2010 at 3:17 PM, Einar Bjerve

Re: How to enable/disable an hierarchy?

2010-12-01 Thread Einar Bjerve
Thanks, finally got it to work. By overriding parentPanel.onBeforeRender(), and visit the children I was able to enable/disable child components. It is important to call super.onBeforeRender() before visiting children to populate the ListView first. I could not use onConfigure() because some of

How to enable/disable an hierarchy?

2010-11-30 Thread Einar Bjerve
Hi all, How can we enable/disable almost an entire hierarchy under certain circumstances, while still keeping some of them open for editing/clicking? The obvious solution would be to enable/disable the ancestor and override isEnabledInHierarchy for the few components that should still be

Re: how Translate SingIn panel...

2010-09-15 Thread Einar Bjerve
As far as I know SigninPanel only partially support localization, so you have to override SigninPanel, and provide your own html with the correct translation. And you should probably add signInFailed to your properties so you get that message in your language too Einar Den 15. sep. 2010 kl.