Re: Use of Mixins

2016-03-21 Thread Shan Wijesinghe
Hi Dan, I initially thought I need to apply the titleUiEvent to the Mixin but when I changed it to the original view model it worked. I haven't tried using the custom facet factory still. I will follow the documentation on that. Thank you. Best Regards, Dilshan. On Sun, Mar 20, 2016 at

Re: Use of Mixins

2016-03-20 Thread Dan Haywood
Hi Dilshan, You don't quite have this right. It's still necessary to annotate the view model with @DomainObjectLayout, and optionally to specify a titleUiEvent, eg [1] The event subscriber then checks for the event on the JAXB view model, eg [2] If you didn't want to annotate the JAXB view mode

Re: Use of Mixins

2016-03-02 Thread Shan Wijesinghe
* Please ignore the mismatch between the Myclass_viewmodel and it's constructor named as TrsItem_ViewModelTrs On Wed, Mar 2, 2016 at 3:18 PM, Shan Wijesinghe wrote: > Thank you for the information Dan. > > I did the following. But it seems title is not set still. What is the > problem. > > // Mi

Re: Use of Mixins

2016-03-02 Thread Shan Wijesinghe
Thank you for the information Dan. I did the following. But it seems title is not set still. What is the problem. // Mixin @DomainObject(nature = Nature.MIXIN) @DomainObjectLayout(titleUiEvent = Myclass_viewmodel.TitleUiEvent.class) public class Myclass_viewmodel { private final Myclass myclass

Re: Use of Mixins

2016-03-01 Thread Dan Haywood
The easiest approach is probably to use the UiEvent classes defined in @DomainObjectLayout, and then set up a subscriber of these events. HTH, Dan On 2 Mar 2016 07:03, "Shan Wijesinghe" wrote: > Hi all, > >I have a JAXB annotated view model. I want to change "title" and > "iconName" using a

Use of Mixins

2016-03-01 Thread Shan Wijesinghe
Hi all, I have a JAXB annotated view model. I want to change "title" and "iconName" using a Mixin to my original java class without adding title and iconName methods to original class. How can I do this. Please make suggestions. Thanks in advance. --regards Dilshan.