Hi,

Could someone give me some insight into the use of WebMarkupContainers with
repeaters.  In particular, I was wondering how come there does not need to
be markup that has the id of the interposed WebMarkupContainer?  (Also, a
pointer to the code, if it exists, where repeaters do special handing of
their direct children.)

Here is a code snippet from the examples:

...

        RepeatingView repeating = new RepeatingView("repeating");
        add(repeating);

        int index = 0;
        while (contacts.hasNext())
        {
            WebMarkupContainer item = new
WebMarkupContainer(repeating.newChildId());
            repeating.add(item);
            Contact contact = (Contact)contacts.next();

            item.add(new ActionPanel("actions", new
DetachableContactModel(contact)));
            item.add(new Label("contactid",
String.valueOf(contact.getId())));
            item.add(new Label("firstname", contact.getFirstName()));
            item.add(new Label("lastname", contact.getLastName()));
            item.add(new Label("homephone", contact.getHomePhone()));
            item.add(new Label("cellphone", contact.getCellPhone()));
...

How come the markup parser doesn't get upset that there is no component with
the wicket:id=repeating.newChildId()?



-- 
View this message in context: 
http://www.nabble.com/Repeaters%27-use-of-WebMarkupContainer-question-tf4704749.html#a13448018
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to