A component that takes some domain object, and for every property dynamically
loads an appropriate form element.

@Test
{
    private class DomainObject{
        List<Property1> prop1s;
        Boolean prop2;
    }
    panel = new DynamicPropertyPanel(new DomainObject());
    assertComponent("panel:form:formElement:0", DropDownChoice.class);
    assertComponent("panel:form:formElement:1", Checkbox.class);

    //test customization
    panel = new DynamicPropertyPanel(new DomainObject());
    panel.setProperty("prop1s", RadioGroup.class);
    assertComponent("panel:form:formElement:0", RadioGroup.class);
    assertComponent("panel:form:formElement:1", Checkbox.class);
}

My company would purchase several copies of the book if I recommended to do
so; which I would.  

Jonathan Locke wrote:
> 
> Well, over the break here I've started something I swore I would never do
> again (well, two things, if you include the JavaOne talk I'm working on).
> I'm writing a (hopefully relatively short) book. It's called "Twenty-Six
> Wicket Tricks". Each trick in the book (lettered from A-Z) demonstrates
> something that people typically want to do and in the process builds a
> reusable and educational component. I've got 13 tricks coded up now and
> ideas for a handful more, but if there are any requests out there, please
> let me know. I'd also be interested in getting some idea how many people
> would be interested in this book (would provide some fuel for me to get it
> done). It does not cover any of the same ground as Wicket in Action (which
> you should buy if you have not already!), BTW. It's more of a companion to
> that book.
> 
> Happy Holidays!
> 
> Best,
> 
>        Jonathan
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21246830.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to