Yep, exactly like Igor says: I deleted it because I didn't have time
and inspiration to make it really good, and this first try was
seriously over-engineered. I included it with this email, but you'd
probably be better of giving this a fresh try, keeping things simple.
I have been thinking about having such a component as part of
Wicket-examples. Same thing: no time. But a good contribution might
work out :)
Eelco
On 10/7/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i think that was eelco's baby but he gave up on it due to lack of
time/interest. so he might be the best person to ask where the code was.
bean panels arent that difficult to build with wicket, so you might want to
give it a try yourself.
if i was going to build one i would do this:
wrap each form component in a panel - textfieldpanel, dropdownpanel, etc
bean panel's constructor would look like this:
{
repeatingview repeater=new repeatingview();
for (prop:props) {
border b=newBorder("borderid", prop);
repeater.add(b);
b.add(newEditor("editorid", prop, new PropertyModel(getModel(),
prop.getPath()));
}
}
and thats pretty much all there is to it.
newEditor() examines the property object whether that be Field or something
you defined, and creates the appropriate panel.
newBorder() creates a border that will contain the editor panel - this is
how users can customize the look and feel by adding whatever labels, etc
they want to the markup that is around the editor
-Igor
On 06 Oct 2006 18:21:38 -0700, Sean Sullivan <[EMAIL PROTECTED]> wrote:
>
>
> I'm looking for a Wicket component that offers functionality similar to
> the Tapestry BeanForm component:
>
> http://beanform.sourceforge.net/
>
> I found the BeanPanel component in wicket-extensions 1.1.1:
>
>
>
>
http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/beanedit/BeanPanel.html
>
> It appears that this class was removed from Wicket 1.2
>
> I searched the Subversion repository but I could not find the source
> code for BeanPanel. I looked in
> wicket-extensions, wicket-examples, and wicket-sandbox. Is anybody
> working on BeanPanel? Where can I find the code?
>
> Sean
>
>