Fornax-Platform
Forum

Sculptor - Cannot get update feature when using UpdateTask / updateWith

View: New views
5 Messages — Rating Filter:   Alert me  

Sculptor - Cannot get update feature when using UpdateTask / updateWith

by ylizzi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to use the updateWith statement in an UpdateTask but the
generated web flows does not allow to update my entity.
The generated list_include.html does not contain the update action column.
(It works properly with DeleteTask/deleteWith, I get the delete column)

Example with helloworld :
Business tier
Service MilkyService {
  findAllPlanet => @PlanetRepository.findAll;
  findPlanetById => @PlanetRepository.findById;
  savePlanet => @PlanetRepository.save;
}
       
Entity Planet {
  //scaffold
  String name key;
  String message;
  Integer diameter nullable;
  Integer population nullable;
  - Set<@Moon> moons opposite planet;
  Repository PlanetRepository {
    findAll;
    findById;
    save;
  }
}

Web tier
 ListTask for Planet {
   searchWith MilkyService.findAllPlanet
 }
CreateTask for Planet {
    createWith MilkyService.savePlanet
}
UpdateTask for Planet {
  updateWith MilkyService.savePlanet
  findWith MilkyService.findPlanetById
}

Is there something wrong in my way of using the update feature?

Thanks
Yannick

Re: Sculptor - Cannot get update feature when using UpdateTask / updateWith

by Patrik Nordwall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks. I have fixed it: http://fornax.itemis.de/jira/browse/CSC-390

/Patrik

ylizzi wrote:
Hi,

I'm trying to use the updateWith statement in an UpdateTask but the
generated web flows does not allow to update my entity.
The generated list_include.html does not contain the update action column.
(It works properly with DeleteTask/deleteWith, I get the delete column)

Example with helloworld :
Business tier
Service MilkyService {
  findAllPlanet => @PlanetRepository.findAll;
  findPlanetById => @PlanetRepository.findById;
  savePlanet => @PlanetRepository.save;
}
       
Entity Planet {
  //scaffold
  String name key;
  String message;
  Integer diameter nullable;
  Integer population nullable;
  - Set<@Moon> moons opposite planet;
  Repository PlanetRepository {
    findAll;
    findById;
    save;
  }
}

Web tier
 ListTask for Planet {
   searchWith MilkyService.findAllPlanet
 }
CreateTask for Planet {
    createWith MilkyService.savePlanet
}
UpdateTask for Planet {
  updateWith MilkyService.savePlanet
  findWith MilkyService.findPlanetById
}

Is there something wrong in my way of using the update feature?

Thanks
Yannick

Re: Sculptor - Cannot get update feature when using UpdateTask / updateWith

by ylizzi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks.
Now I can see the "edit" action, but when clicking on it, I get the following error:

System error (org.springframework.webflow.engine.NoMatchingTransitionException),
caused by: No transition found on occurence of event 'update' in state 'list' of flow 'milkyway/listPlanet' -- valid transitional criteria are array[view] -- likely programmer error, check the set of TransitionCriteria for this state

Yannick
 




Thanks. I have fixed it: http://fornax.itemis.de/jira/browse/CSC-390

/Patrik

ylizzi wrote:
Hi,

I'm trying to use the updateWith statement in an UpdateTask but the
generated web flows does not allow to update my entity.
The generated list_include.html does not contain the update action column.
(It works properly with DeleteTask/deleteWith, I get the delete column)

Example with helloworld :
Business tier
Service MilkyService {
  findAllPlanet => @PlanetRepository.findAll;
  findPlanetById => @PlanetRepository.findById;
  savePlanet => @PlanetRepository.save;
}
       
Entity Planet {
  //scaffold
  String name key;
  String message;
  Integer diameter nullable;
  Integer population nullable;
  - Set<@Moon> moons opposite planet;
  Repository PlanetRepository {
    findAll;
    findById;
    save;
  }
}

Web tier
 ListTask for Planet {
   searchWith MilkyService.findAllPlanet
 }
CreateTask for Planet {
    createWith MilkyService.savePlanet
}
UpdateTask for Planet {
  updateWith MilkyService.savePlanet
  findWith MilkyService.findPlanetById
}

Is there something wrong in my way of using the update feature?

Thanks
Yannick


Re: Sculptor - Cannot get update feature when using UpdateTask / updateWith

by Patrik Nordwall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, sorry. Now I have fixed the webflow definition also and I have tested with your sample.
/Patrik


Thanks.
Now I can see the "edit" action, but when clicking on it, I get the following error:

System error (org.springframework.webflow.engine.NoMatchingTransitionException),
caused by: No transition found on occurence of event 'update' in state 'list' of flow 'milkyway/listPlanet' -- valid transitional criteria are array[view] -- likely programmer error, check the set of TransitionCriteria for this state

Yannick
 



Patrik Nordwall wrote:
Thanks. I have fixed it: http://fornax.itemis.de/jira/browse/CSC-390

/Patrik

ylizzi wrote:
Hi,

I'm trying to use the updateWith statement in an UpdateTask but the
generated web flows does not allow to update my entity.
The generated list_include.html does not contain the update action column.
(It works properly with DeleteTask/deleteWith, I get the delete column)

Example with helloworld :
Business tier
Service MilkyService {
  findAllPlanet => @PlanetRepository.findAll;
  findPlanetById => @PlanetRepository.findById;
  savePlanet => @PlanetRepository.save;
}
       
Entity Planet {
  //scaffold
  String name key;
  String message;
  Integer diameter nullable;
  Integer population nullable;
  - Set<@Moon> moons opposite planet;
  Repository PlanetRepository {
    findAll;
    findById;
    save;
  }
}

Web tier
 ListTask for Planet {
   searchWith MilkyService.findAllPlanet
 }
CreateTask for Planet {
    createWith MilkyService.savePlanet
}
UpdateTask for Planet {
  updateWith MilkyService.savePlanet
  findWith MilkyService.findPlanetById
}

Is there something wrong in my way of using the update feature?

Thanks
Yannick

Re: Sculptor - Cannot get update feature when using UpdateTask / updateWith

by ylizzi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, it works fine now.

Yannick


Ok, sorry. Now I have fixed the webflow definition also and I have tested with your sample.
/Patrik


Thanks.
Now I can see the "edit" action, but when clicking on it, I get the following error:

System error (org.springframework.webflow.engine.NoMatchingTransitionException),
caused by: No transition found on occurence of event 'update' in state 'list' of flow 'milkyway/listPlanet' -- valid transitional criteria are array[view] -- likely programmer error, check the set of TransitionCriteria for this state

Yannick
 



Patrik Nordwall wrote:
Thanks. I have fixed it: http://fornax.itemis.de/jira/browse/CSC-390

/Patrik

ylizzi wrote:
Hi,

I'm trying to use the updateWith statement in an UpdateTask but the
generated web flows does not allow to update my entity.
The generated list_include.html does not contain the update action column.
(It works properly with DeleteTask/deleteWith, I get the delete column)

Example with helloworld :
Business tier
Service MilkyService {
  findAllPlanet => @PlanetRepository.findAll;
  findPlanetById => @PlanetRepository.findById;
  savePlanet => @PlanetRepository.save;
}
       
Entity Planet {
  //scaffold
  String name key;
  String message;
  Integer diameter nullable;
  Integer population nullable;
  - Set<@Moon> moons opposite planet;
  Repository PlanetRepository {
    findAll;
    findById;
    save;
  }
}

Web tier
 ListTask for Planet {
   searchWith MilkyService.findAllPlanet
 }
CreateTask for Planet {
    createWith MilkyService.savePlanet
}
UpdateTask for Planet {
  updateWith MilkyService.savePlanet
  findWith MilkyService.findPlanetById
}

Is there something wrong in my way of using the update feature?

Thanks
Yannick