Hi,
It doesn't sound right.
We will have a look at it a.s.a.p.
Though, it might take a few days because of holidays...

.../Andreas

On Wed, Aug 5, 2009 at 11:21 AM, ylizzi <yannick.li...@gmail.com> wrote:

>
> Hi,
>
> I'm trying to use the createWith statement in a CreateTask but the
> corresponding generated CreateAction does not reflect it in Event
> save(RequestContext) mehtod. It leads to a compilation failure.
>
> I reproduce it starting from helloworld / Archetype Tutorial:
> Business model:
> Service MilkyService {
>   savePlanet => @PlanetRepository.save;
> }
> Entity Planet {
>   String name key;
>   String message;
>   Integer diameter nullable;
>   Integer population nullable;
>   - Set<@Moon> moons opposite planet;
>
>   Repository PlanetRepository {
>      save;
>   }
> }
> GUI model:
> CreateTask for Planet {
>  createWith MilkyService.savePlanet
> }
>
> This leads to a compilation failure in CreatePlanetAction.save (cannot find
> symbol save) because it is generated like this:
> public Event save(RequestContext ctx) {
>        CreatePlanetForm form = formObject(ctx);
>        Planet model = form.toModel();
>
>        model = milkyService.save(ServiceContextStore.get(), model);
>
>        putModelInFlashScope(ctx, "Planet", model);
>        return success();
> }
> where milkyService.save does not exists and should be savePlanet instead.
>
> What do I miss?
>
> Thanks
> Yannick
> --
> View this message in context:
> http://www.nabble.com/Sculptor---Problem-in-web-tier-when-using-createWith-tp24823520s17564p24823520.html
> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to