SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
> So this special component is designed to be aware of children components > only at the rendering time ( working with the markupStream ) and not at the > pre-rendering. As the ListView depends on pre-rendering logic, add an > transparent resolved component in ajax request target has no effect beca

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Pedro Santos
When an transparent resolved component is rendered, it is able to correctly resolve any wicket:id in the inner html object because it delegates the Component#get to its parent, and it is able to know who are its children components traversing the html at at the markupStream object. So this special

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Martin Makundi
Transparent container probably doesn't exist/have an id so yes.. but I guess this could be "fixed"/automated in wicket. ** Martin 2010/11/29 Wilhelmsen Tor Iver : >> wicket:enclosure is not present if not visible (from browser >> perspective). So it cannot be repainted. > > I think we are talking

SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
> wicket:enclosure is not present if not visible (from browser > perspective). So it cannot be repainted. I think we are talking past each other: It was just an example of something that is a transparent container to a Wicket developer, though it is implemented using IComponentResolver instead o

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Martin Makundi
wicket:enclosure is not present if not visible (from browser perspective). So it cannot be repainted. http://apache-wicket.1842946.n4.nabble.com/Wicket-ajax-enabled-enclosures-td3033370.html 2010/11/29 Wilhelmsen Tor Iver : >> I don't know what you mean with transparent but ofcourse you cannot >>

SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
> I don't know what you mean with transparent but ofcourse you cannot > repaint invisible things. A transparent container is one that appears in the markup and in the code but which returns true for isTransparentResolver(). It's not "invisible" but is not part of the explicit hierarchy. An examp

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Martin Makundi
I don't know what you mean with transparent but ofcourse you cannot repaint invisible things. ** Martin 2010/11/29 Wilhelmsen Tor Iver : >> >>   >> >> >> Which is laid out as: >> ... >> panel.add((listviewContainer = new >> WebMarkupContainer("listview-container")).setOutputMarkupId(true)); >>

SV: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Wilhelmsen Tor Iver
> > > > > Which is laid out as: > ... > panel.add((listviewContainer = new > WebMarkupContainer("listview-container")).setOutputMarkupId(true)); > ... This is almost what I have (in the Page), except the outermost one is transparent; in the "real" project the only reason is to wrap both a

Re: Painting a ListView in Ajax via a transparent container fails

2010-11-28 Thread Martin Makundi
Hi! If you have: Which is laid out as: ... panel.add((listviewContainer = new WebMarkupContainer("listview-container")).setOutputMarkupId(true)); ... And in your ajax update you call: ... target.addComponent(listviewContainer); .. This should work. ** Martin 2010/11/28 Wilhelmsen Tor Iv

Painting a ListView in Ajax via a transparent container fails

2010-11-28 Thread Wilhelmsen Tor Iver
In my quest for a more portlet-oriented use of Wicket, I am trying an approach where you switch panels (by constructing new instances and repainting a "wrapper") within one Page. However, it seems that ListViews do not get repainted (no calls to populateItem()) in that scenario: 1) Initial