Re: Using java 1.5 enums as property selection models

2006-10-31 Thread Stephanos Piperoglou
"Martin Strand" <[EMAIL PROTECTED]> wrote on 30/10/2006 17:33:32: > On Mon, 30 Oct 2006 18:24:27 +0100, Stephanos Piperoglou [EMAIL PROTECTED]> wrote: > > > I was kind of expecting to be able to use a generic type (T > > above) as an instance of java.lang.Class. Unsurprisingly, I can't. > > Surp

Re: Using java 1.5 enums as property selection models

2006-10-30 Thread Martin Strand
Afaik, the type info isn't available at runtime for generic classes so it can't be done. On Mon, 30 Oct 2006 18:24:27 +0100, Stephanos Piperoglou <[EMAIL PROTECTED]> wrote: > andyhot <[EMAIL PROTECTED]> wrote on 30/10/2006 16:30:08: > >> However, Daniel has recently added this in the BeanForm.s

Re: Using java 1.5 enums as property selection models

2006-10-30 Thread Stephanos Piperoglou
andyhot <[EMAIL PROTECTED]> wrote on 30/10/2006 16:30:08: > However, Daniel has recently added this in the BeanForm.sourceforge.net > project. > See > http://beanform.sourceforge.net/beanform- > core/xref/net/sf/beanform/util/EnumPropertySelectionModel.html > > or get the beanform jar and add it

Re: Using java 1.5 enums as property selection models

2006-10-30 Thread andyhot
The v.3 implementation is at http://svn.apache.org/viewvc/tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/form/EnumPropertySelectionModel.java?view=markup However, Daniel has recently added this in the BeanForm.sourceforge.net project. See http://beanform.sourceforge.net/b

Using java 1.5 enums as property selection models

2006-10-30 Thread Stephanos Piperoglou
Apparently there was an EnumPropertySelectionModel in Tapestry 3 that was dropped in version 4 due to namespace conflicts. Is there any contributed or official replacement or should I just roll my own (and possibly submit it)? To clarify, I need an implementation of IPropertySelectionModel that