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

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

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

Re: behavior passing components during construction

2015-12-04 Thread Sebastien
Hi, see #bind()

behavior passing components during construction

2015-12-04 Thread Ronny Pscheidl
hello, i want to write an collapsebehavior based on bootstrap collapse ( http://getbootstrap.com/javascript/#collapse). so you have an icon or button or waht else which will toggle a container. both components are independent added to the page or panel. example: public class CollapseBehavior