Just a guess,

I'm not sure, correct me if I'm wrong, but I don't think you can just
replace the ASO like you are doing.

getMerchantCreator().login probably does not return an ASO object. You
should make a shallow copy (ie copy all relevant info) from the returned
object to you ASO object.

Martijn

On Wed, 2008-09-03 at 12:56 +0400, Natia Gdzelishvili wrote:
> no
> 
> On Wed, Sep 3, 2008 at 12:52 PM, Sven Homburg <[EMAIL PROTECTED]>wrote:
> 
> > any exception stack ?
> >
> > 2008/9/3 Natia Gdzelishvili <[EMAIL PROTECTED]>
> >
> > > I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is:
> > >
> > > public class Login {
> > >    private String username;
> > >    private String password;
> > >    @Inject
> > >    private IBusinessServicesLocator _businessServicesLocator;
> > >    @ApplicationState
> > >    private User currUser;
> > >    private boolean userExists;
> > >
> > >
> > >    public String getUsername() {
> > >        return username;
> > >    }
> > >
> > >    public void setUsername(String username) {
> > >        this.username = username;
> > >    }
> > >
> > >    public String getPassword() {
> > >        return password;
> > >    }
> > >
> > >    public void setPassword(String password) {
> > >        this.password = password;
> > >    }
> > >
> > >    @SuppressWarnings("unchecked")
> > >    @OnEvent(value = "submit", component = "loginForm")
> > >    public Object submitLoginForm() {
> > >        Class nextPage;
> > >        try {
> > >            User u=getMerchantCreator().login(username, password);
> > > //*returns
> > > some object*
> > >            currUser = u; /*/ currUser object cannot be resolved*
> > >            nextPage = ViewAllMerchants.class;
> > >
> > >        } catch (UserNotFoundException e) {
> > >            nextPage = Login.class;
> > >            e.printStackTrace();
> > >        }
> > >        return nextPage;
> > >    }
> > >
> > >    private IMerchantCreatorLocal getMerchantCreator() {
> > >        return _businessServicesLocator.getMerchantCreatorLocal();
> > >    }
> > > }
> > >
> > > i cannot access curruser...
> > > please help..
> > >
> >
> >
> >
> > --
> > with regards
> > Sven Homburg
> > http://www.chenillekit.org
> > http://tapestry5-components.googlecode.com
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to