[JBoss Seam] - Re: seam jsf desgin question
by Holger Prause
You'll run into problems if you try to put the action methods on entities (e.g. Seam annotations have no effect).
Oh i see, so i really have to split actions and model(entity) bean (like it is
now)
shouldnt this difference be reflected in your package structure or would u put all into the same package
for example:
1)
de.mycompany.groups
-Group.java //entity bean
-ManageGroup.java //action interface
-ManageGroupAction.java //action interface implementation
i noticed when i put actions and beans into the same package and that package contains, lets say 6 entity classes - u will have 18 classes
(6*3 [1 for the entity , 1 for the action interface, 1 for the action implementation]) in one singly package, its gets too huge very quick.
Should i make a subfolder action in every package or do it this way ?
or just like this way
2)
de.mycompany.model.group
-Group.java
de.mycompany.view.group
-ManageGroup.java
-ManageGroupAction.java
or this way
3)
de.mycompany.group.model
-Group.java
de.mycompany.group.view
-ManageGroup.java
-ManageGroupAction.java
or finally this way
4)
de.mycompany.group
-Group.java
de.mycompany.group.view
-ManageGroup.java
-ManageGroupAction.java
waht solution would u choose ?
I prefer 2) but i am not sure anymore, can u help please?
Bye,
Holger
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991501#3991501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991501
18 years, 1 month