Component hierarchy question

2010-01-21 Thread Marek Šabo
Hi, suppose you have menubar with ajaxfallbacklinks that you want to change panels in the main area. new AjaxFallbackLink(search) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) {

Re: Component hierarchy question

2010-01-21 Thread Alexander Monakhov
Hi. I'm not sure. But when you call add() method you pass reference to the certain component. If you create new object and assign reference to it, you just create reference to new object, but old one references to old object. For example, // here is new component creation 1. Component c = new

Re: Component hierarchy question

2010-01-21 Thread Marek Šabo
Hi, thanks, sorry about silly question I forgot that java passes method arguments by value and copies references. Maybe I got confused with c++ pointers. Regards, -- Marek Šabo On 01/21/2010 03:48 PM, Alexander Monakhov wrote: Hi. I'm not sure. But when you call add() method you pass