[ http://jira.andromda.org/browse/JSF-1?page=comments#action_12316 ]
     
Wenhu Guan commented on JSF-1:
------------------------------

by the way, the generated DisplayAccountListDetailFormImpl class will be 
replaced everytime I run maven -o mda

should the implementation class be allowed  to remove?

> while page variable's type is an Entity, the generated code has compilation 
> error
> ---------------------------------------------------------------------------------
>
>          Key: JSF-1
>          URL: http://jira.andromda.org/browse/JSF-1
>      Project: JSF cartridge
>         Type: Bug
>  Environment: magic draw 9.5,andromda 3.2-rc1-snapshot
>     Reporter: Wenhu Guan
>     Assignee: Chad Brandon

>
> if the type of a page variable (come from an action to a FrondEndView) is an 
> <<Entity>>, the geneated code initialized the abstract class instead of the 
> implementation class.
> say, I modeled an <<Enitity>> Account,
> I have a action state "load account detail" which defers a function to 
> controller, the controller function name is loadAccount(accountId,Account). 
> From the "load account detail" action state there is a transition to a 
> <<FrontEndView>> - "display account detail". On the transition, I defined a 
> trigger with a parameter 'account' whose type is Account(a <<Entity>> ).
> In the generated form-- DisplayAccountListDetailFormImpl, the following code 
> has compilation error:
> public com.softwaredecision.crm.account.Account getAccount()
> {
> if (this.account == null)
> {
> this.account = new com.softwaredecision.crm.account.Account();
> }
> return this.account;
> }
> please be noted that Account is an abstract class, we must use the 
> implementation class AccountImpl [/code]




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

Reply via email to