I have a Widget base entity extended by several concrete product
entities.  I have

public class <T extends Widget> EditWidgetPage
{
 ...
 @Persist
 public Long _someWidgetId;

 public T _someWidget;

 // normal setters / getters

 void onActivate (long id)
 {
   _someWidgetId = id;
   _someWidget = _dao.get (id); // gets right subtype of Widget.
Generics. Tested.
 }

 // onPassivate as per usual pattern.

 void onActionFromEditForm ()
 {
   _dao.saveOrUpdate (_someWidget);
 }
}

The page for this just uses a bean edit form, nothing else:
object="someWidget".  The saveOrUpdate call complains that someWidget
is of type Widget rather than the subclass it's instantiated to be.
Any thoughts?

bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to