Re: behavior passing components during construction

2015-12-05 Thread Ronny Pscheidl
Hi Martin, thanks for reply. i used onComponentTag. 2015-12-05 13:43 GMT+01:00 Martin Grigorov : > Hi Ronny , > > Your approach is OK. > All that you need is to save target.getMarkupId() in a member variable for > later use. > Use Behavior#onComponentTag() instead of adding yet another behavior

Re: behavior passing components during construction

2015-12-05 Thread Martin Grigorov
Hi Ronny , Your approach is OK. All that you need is to save target.getMarkupId() in a member variable for later use. Use Behavior#onComponentTag() instead of adding yet another behavior to write the attribute. On Dec 5, 2015 2:11 PM, "Ronny Pscheidl" wrote: > this is not the use case. collapseb

Re: behavior passing components during construction

2015-12-05 Thread Ronny Pscheidl
this is not the use case. collapsebehavior is set to component icon which toggles the target component. the initial state of target has to be collapsed. my approach is that the collapsebehavior could also set the needed css class to the target component and not to add this manually to the target co