On Thu, May 29, 2014 at 4:22 PM, Andrea Del Bene <[email protected]> wrote:
> Hi! I will try to answer your questions: > > My questions: >> 1. Shouldn't the uiIconList <div> be substituted/ommited? >> > Every direct child of RepeatingView inherits markup from its parent and > uses its custom markup as tag body. That's why uiIconList <div> is repeated > for each child. See RepeatingView's Javadoc for more details. > > Just to add: you can use <wicket:container> instead of <div> if you want it to disappear. See p.2 below. > 2. Shouldn't <wicket:panel> be substituted/ommited? >> > > Well, it depends. In DEVELOPMENT mode (the default) Wicket renders its > special tags (like <wicket:panel>) in output. In the guide ( > http://wicket.apache.org/guide/guide/maven.html#maven_1) it's also > explained how to start Wicket applications in DEPLOYMENT mode. In this mode > special tags and attributes like wicket:id are removed from the generated > markup. You can manually control this mechanism with method > Application.getMarkupSettings().setStripWicketTags > > > 3. Is there an equivalent to newChildId() on ListView? >> > No. ListView is designed to repeat more complex markup blocks, i.e blocks > that contains children components (children tags with wicket:id attribute). > So instead of directly adding a child component you must populate markup > bloc with ListView.populateItem. See ListView's Javadoc for more details. > > 4. newChildId() generates a wicket:id for each new Icon. Why is it not >> rendered? >> > simply because children use parent's markup and they don't have their own > wicket:id attribute. > > 5. Why don't I get an errror considering the Ids produced by newChildId() >> exist in java code/container and not in HTML??? >> > Although most of the time you will find the same wicket ids both in code > and in markup, that's not always necessary to obtain a consistent component > hierarchy. In other words the markup is not required to display wicket ids. > > >> Wow :D Hope I could be clear enough, Tx for your help! >> >> >> >> >> >> > PS: Javadocs for Wicket are here: http://ci.apache.org/projects/ > wicket/apidocs/6.0.x > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
