Hi Vineet,

Maybe someone else with more experience with the details of what 
you're doing can comment more, but please find my comments below:

On 25 Feb 2012 at 0:59, Vineet Reynolds wrote:

> 
> @Named("Chart of Accounts")
> public class AccountRepositoryDefault extends 
> AbstractFactoryAndRepository implements AccountRepository
> {
> 
>      // {{ Create new (already persisted) Account
>      @Override
>      public Account newAccount(Account newAccount)
>      {
.. snip..
>      }
>      // }}
> 
> 
> When I attempt to perform this action (of saving/creating a new entity) 
> exposed by the repository, both in the default Swing viewer as well as 
> the HTML viewer, I'm presented with a dialog requesting an input of an 
> already created instance of <T>, i.e. Account in this case. 

Yes, your "newAccount(Account newAccount)" method says to expect 
an instance of an Account.

> While this 
> behavior of the Isis viewers is understandable, this is quite contrary 
> to my expectation that I would be presented with a dialog listing all 
> the enabled properties of an Account that would allow for creation of a 
> new instance on the fly.

I'm a little surprised - the behaviour you describe is exactly what I 
*would* expect.

But I don't know what you mean by " presented with a dialog listing all 
the enabled properties of an Account that ..."

If you want to be presented with a list of options to choose from, you 
should use the default* applib methods.

Regards,
Kevin

Reply via email to