- This topic has 3 replies, 3 voices, and was last updated 13 years, 9 months ago by
neyde.
-
AuthorPosts
-
Could you all please post a tutorial that shows how to set up a form which is not a CRUD form?
For example, how about setting up a CUSTOMER->CUSTOMER ORDERS (1:M) data entry form or something straightforward like that?
I’m at the point where the scaffolding and reverse engineering of data tables for CRUD works well, but wish there were some additional tutorials.
Look forward to your reply.
Thanks,
— M
jkennedyMemberM,
I want to be sure that I understand your question. We do generate forms for managing relationships where you can create parents and then create children etc. So we are generating basic Create / Read / Update / Delete on a per entity basis, and we are generating the relationship management front end and back end code.
Are you asking for a tutorial on how to manage relationships between existing records rather than just letting you manage relationships between new records.
Thanks for any clarification.
Jack
@jkennedy wrote:
M,
I want to be sure that I understand your question. We do generate forms for managing relationships where you can create parents and then create children etc. So we are generating basic Create / Read / Update / Delete on a per entity basis, and we are generating the relationship management front end and back end code.
Are you asking for a tutorial on how to manage relationships between existing records rather than just letting you manage relationships between new records.
Thanks for any clarification.
Jack
Hi Jack,
I was really just asking for another type of tutorial. One which covers another user goal: creating a basic (parent-child) data entry form with JSPs that would require some additional input. Perhaps creating a model object to do some business logic.
Perhaps this sounds like a regular CRUD form, but I was thinking about something else too, like maybe a “login form”. In this case, you don’t need to persist data, but instead need to interact with the service layer.
I’m not sure how to do this.
Since MYE for Spring does so much for me already, it’s difficult to sometimes know how to jump in and do something that isn’t auto-generated. 🙂
Can you all create a tutorial like this? I’m not thinking it would be that involved.
Thanks,
— M
neydeMember@Mork wrote:
I was really just asking for another type of tutorial. One which covers another user goal: creating a basic (parent-child) data entry form with JSPs that would require some additional input. Perhaps creating a model object to do some business logic.
Perhaps this sounds like a regular CRUD form, but I was thinking about something else too, like maybe a “login form”. In this case, you don’t need to persist data, but instead need to interact with the service layer.
If you’re interested in login and security, then you may want to check out our Spring Security tutorial. It’s available in Eclipse Help, and online.
As far other use cases where you don’t want to persist data and only want interact with the service layer, then I would recommend creating a java bean (POJO) that would represent your model object. Then you can scaffold from the java bean, but uncheck the data layer option from “Application Layers and Packages” panel of the scaffolding wizard. You will end up with the JSP, controllers and services that you need. You will have to implement the service methods.
-
AuthorPosts