[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-07 Thread carlos.abreu
Hy Delphi and Christian, thanks for the tips... It worked very well in my application View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043665#4043665 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043665

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-05 Thread carlos.abreu
Thanks very much for the tips given, they will be very helpful. Last question There is a place to host a seam application ? I'm thinking in develop a project using SEAM and provide to the open community... thanks View the original post :

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-05 Thread Delphi's Ghost
I don't know anyplace that currently does it, but I'm no expert. Take a look at Michael Yuans posts about virtual private servers that lets you put what you want on the server. I'll refer you to his blog for details : http://www.michaelyuan.com/blog/index.php?s=hosting View the original

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread [EMAIL PROTECTED]
I don't understand what you want to do. Please post some pseudo code or something. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043321#4043321 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043321

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread carlos.abreu
Hy Christian basically what i need is to pass forward objects from my Action Class, to a generic Action class.. Example: public abstract class BaseAction(){ private BaseEntity em; protected void setEntity(BaseEntity em){ this.em = em; } } public class CompanyAction extends

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread Delphi's Ghost
If I'm understanding correctly, you want to use a more spring like service/dao design for developing your application? .You can implement DAOs and have them injected into your stateful beans : I think you can implement your DAOs as stateless session beans since the only 'state' you have is

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread [EMAIL PROTECTED]
I don't think injection occurs during construction of the CompanyAction Seam component (it has a @Name, right?). You might want to use a lookup in the constructor with Component.getInstance(company) instead. View the original post :

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread Delphi's Ghost
Oops, sorry, posted before I saw your last post describing your problem. From your code, the injection happens after the constructor is called. What you need is : | | @Create | public void forwardToBaseAction() { | super.setEntity(company) | } | | The @Create

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread carlos.abreu
Delphi i understand your sugestion, but when should i call the forwardToBaseAction() ??? In my Action constructor ?? Thanks in advance for your time guys... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043386#4043386 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread [EMAIL PROTECTED]
It's called by Seam when the component is instantiated, hence @Create. My solution is easier, call super(Component.getInstance(customer)) in your constructor. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043387#4043387 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread carlos.abreu
Ow, it's quite obvious i didn't realize that... You sugested to do something like this : public CompanyAction(){ super.setEntitty(Component.getInstance(company)); } The object attributes that will be passed to the super class will not be null ?? Thanks View the original post :

[jboss-user] [JBoss Seam] - Re: Can i use another kind of architeture for a SEAM applica

2007-05-04 Thread Delphi's Ghost
Hey Carlos anonymous wrote : | but when should i call the forwardToBaseAction() ??? In my Action constructor ?? As Christian said, the @Create annotation tells seam to call this function once the bean has been constructed. If you use Christians method beware that when you call setEntity,