You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Sean Sullivan <se...@seansullivan.com> on 2006/10/07 03:21:38 UTC

BeanPanel

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


Re: BeanPanel

Posted by Eelco Hillenius <ee...@gmail.com>.
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 <ig...@gmail.com> 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 <se...@seansullivan.com> 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
> >
> >
>
>

Re: BeanPanel

Posted by Igor Vaynberg <ig...@gmail.com>.
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 <se...@seansullivan.com> 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
>
>