Hi dearthanks for prompt reply
actually i am using this all the time , and this was a repetitive piece of
code all over my project so i am trying to make listView subclass which take
a panel class in its constructor and instantiate it on demand by using a
supplied factory interface whick takes care of differences between panel and
fragments but produce the same interface which is the suggested IItem or
DataItem and set it as the item
doing this with the current api is possible but require lot of tweaking to
allow both panels and components to b used
i thought that the suggested refactoring will b a better choice and also a
good programming practice (programming to interfaces) but i will respect ur
decision any way

thanks again
Joe

On Thu, May 21, 2009 at 1:57 AM, Jeremy Thomerson <jer...@wickettraining.com
> wrote:

> You can't just use item.add(new YourCustomPanel(id, getModel())?
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Wed, May 20, 2009 at 5:54 PM, Joe Fawzy <joewic...@gmail.com> wrote:
> > Hi allcan we refactor org.apache.wicket.markup.repeater.Item to an
> interface
> > IItem or DataItem or so , and make the standard Item class implement this
> > interface , this will maintain backward compatibility but allow us to use
> > panels and fragments as Item implementation (by overriding the newItem()
> > method) instead of being restricted to MarkupContainer which is not as
> > reusable as panels and fragments
> > thanks
> > joe
> >
>

Reply via email to