@onevent anotation

2008-09-10 Thread Natia Gdzelishvili
Hello,
I want to know what values can be assigned to
@OnEvent(value=???, component="somecomponent") i kwon only "selected" and
"submit"


Re: T5.0.14 BeanEditForm

2008-09-04 Thread Natia Gdzelishvili
Than you...

On Thu, Sep 4, 2008 at 4:18 PM, Thiago H. de Paula Figueiredo <
[EMAIL PROTECTED]> wrote:

> Em Thu, 04 Sep 2008 09:15:25 -0300, Natia Gdzelishvili <
> [EMAIL PROTECTED]> escreveu:
>
>  on my page I have
>> 
>> but id is still on the edit form, how can i remove id from edit  form?
>>
>
> Intead of "remove", use "exclude". This Grid parameter was changed some
> Tapestry versions ago.
>
> Thiago
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


T5.0.14 BeanEditForm

2008-09-04 Thread Natia Gdzelishvili
on my page I have

but id is still on the edit form, how can i remove id from edit  form?


Re: Problem with aso

2008-09-04 Thread Natia Gdzelishvili
i've solved it, thank you all for helping

On Wed, Sep 3, 2008 at 8:46 PM, Marcus <[EMAIL PROTECTED]> wrote:

> Hi Natia,
> just correcting:
>
> _visit.setMyLoginId(u.getUserName());
>
> and check Jonathan's tip. (old Tapestry libraries in your classpath.)
>
>
> Marcus
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
yes i've tried many times

On Wed, Sep 3, 2008 at 5:09 PM, Geoff Callender <
[EMAIL PROTECTED]> wrote:

> Crazy thought - in your old project, if you're using Eclipse, have you
> tried Project > Clean... ?
>
>
> On 03/09/2008, at 11:05 PM, Natia Gdzelishvili wrote:
>
>  no I'm not tapestry 4 user  I'm new in tapestry
>> i thins there is some problem with my project, i've make new project anad
>> tested aso and it is working, I'll try to find out what it is
>> thank you
>>
>> On Wed, Sep 3, 2008 at 4:59 PM, Geoff Callender <
>> [EMAIL PROTECTED]> wrote:
>>
>>  Yeah, old habits die hard.
>>>
>>>
>>> On 03/09/2008, at 10:52 PM, Thiago H. de Paula Figueiredo wrote:
>>>
>>> Em Wed, 03 Sep 2008 08:44:43 -0300, Geoff Callender <
>>>
>>>> [EMAIL PROTECTED]> escreveu:
>>>>
>>>>   @ApplicationState
>>>>
>>>>>  private Visit _visit;
>>>>>  private boolean _visitExists;
>>>>>
>>>>>
>>>> Visit? Can I guess you were a long time Tapestry 4 user? :)
>>>>
>>>> Thiago
>>>>
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
no I'm not tapestry 4 user  I'm new in tapestry
i thins there is some problem with my project, i've make new project anad
tested aso and it is working, I'll try to find out what it is
thank you

On Wed, Sep 3, 2008 at 4:59 PM, Geoff Callender <
[EMAIL PROTECTED]> wrote:

> Yeah, old habits die hard.
>
>
> On 03/09/2008, at 10:52 PM, Thiago H. de Paula Figueiredo wrote:
>
>  Em Wed, 03 Sep 2008 08:44:43 -0300, Geoff Callender <
>> [EMAIL PROTECTED]> escreveu:
>>
>> @ApplicationState
>>>private Visit _visit;
>>>private boolean _visitExists;
>>>
>>
>> Visit? Can I guess you were a long time Tapestry 4 user? :)
>>
>> Thiago
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
maybe i have to add some configuration in appmodule...
package ge.bog.merchants.regform.pages;

import ge.bog.merchants.exception.UserNotFoundException;
import ge.bog.merchants.model.User;
import ge.bog.merchants.regform.helper.Visit;
import ge.bog.merchants.regform.services.IBusinessServicesLocator;
import ge.bog.merchants.services.iface.IMerchantCreatorLocal;

import org.apache.tapestry5.annotations.ApplicationState;
import org.apache.tapestry5.annotations.OnEvent;
import org.apache.tapestry5.ioc.annotations.Inject;

public class Login {
private String username;
private String password;
@Inject
private IBusinessServicesLocator _businessServicesLocator;
// @ApplicationState (create=false)
// private User currUser;
// private boolean currUserExists;

@ApplicationState
private Visit _visit;
private boolean _visitExists;

Object onActivate() {
if (_visitExists) {
@SuppressWarnings("unused")
String blah = _visit.getMyLoginId();
}
//if (currUserExists){
//String blah = currUser.getUserName();
//}
return null;
}

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 {
getMerchantCreator().login(username, password);
User u = null;
u = getMerchantCreator().getUser();
// currUser.setUserName(u.getUserName());
// currUser = u;
_visit.noteLogIn(u);
nextPage = ViewAllMerchants.class;

} catch (UserNotFoundException e) {
nextPage = Login.class;
e.printStackTrace();
}
return nextPage;
}

private IMerchantCreatorLocal getMerchantCreator() {
return _businessServicesLocator.getMerchantCreatorLocal();
}



}


On Wed, Sep 3, 2008 at 4:29 PM, Geoff Callender <
[EMAIL PROTECTED]> wrote:

> I can't see anything obviously wrong.  Can you post the whole Login class -
> all of it.
>
>
> On 03/09/2008, at 10:13 PM, Natia Gdzelishvili wrote:
>
>  public class Visit {
>>   // The logged in user
>>   private boolean _loggedIn = false;
>>   private String _myLoginId = null;
>>
>>   public void noteLogIn(User user) {
>>   _loggedIn = true;
>>   _myLoginId = user.getUserName();
>>
>>   }
>>
>>   public void noteLogOut() {
>>   _loggedIn = false;
>>   _myLoginId = null;
>>   }
>>
>>   public boolean isLoggedIn() {
>>   return _loggedIn;
>>   }
>>
>>   public String getMyLoginId() {
>>   return _myLoginId;
>>   }
>>
>> }
>>
>>
>>
>>   @ApplicationState
>>   private Visit _visit;
>>   private boolean _visitExists;
>>
>> public Object submitLoginForm() {
>>   Class nextPage;
>>   try {
>>   getMerchantCreator().login(username, password);
>>   User u = null;
>>   u = getMerchantCreator().getUser();
>>   _visit.noteLogIn(u);
>>   nextPage = ViewAllMerchants.class;
>>
>>   } catch (UserNotFoundException e) {
>>   nextPage = Login.class;
>>   e.printStackTrace();
>>   }
>>   return nextPage;
>>   }
>>
>> On Wed, Sep 3, 2008 at 4:06 PM, Carl Crowder <[EMAIL PROTECTED]>
>> wrote:
>>
>>  Is this actually a compilation error?
>>>
>>> Natia Gdzelishvili wrote:
>>>
>>>> in version 5.0.9 it is working
>>>>
>>>> I've addedvist class but still same situation _visit cannot be resolved
>>>>
>>>> On Wed, Sep 3, 2008 at 3:44 PM, Geoff Callender <
>>>> [EMAIL PROTECTED]> wrote:
>>>>
>>>>  Fernando's right.  Your field curruser starts out as an ASO but if you
>>>>> reassign it (eg. curruser = u) then it becomes something else which is
>>>>>
>>>> not
>>>
>>>> an ASO.
>>>>>
>>>>> Your code looks like it's a mod of JumpStart, but JumpStart actually
>>>>>
>>>> does
>>>
>>>> the same kind of thing Fernando's saying:
>>>>>
>>>>>  @ApplicationState
>>>>>  private Visi

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
public class Visit {
// The logged in user
private boolean _loggedIn = false;
private String _myLoginId = null;

public void noteLogIn(User user) {
_loggedIn = true;
_myLoginId = user.getUserName();

}

public void noteLogOut() {
_loggedIn = false;
_myLoginId = null;
}

public boolean isLoggedIn() {
return _loggedIn;
}

public String getMyLoginId() {
return _myLoginId;
}

}



@ApplicationState
private Visit _visit;
private boolean _visitExists;

public Object submitLoginForm() {
Class nextPage;
try {
getMerchantCreator().login(username, password);
User u = null;
u = getMerchantCreator().getUser();
_visit.noteLogIn(u);
nextPage = ViewAllMerchants.class;

} catch (UserNotFoundException e) {
nextPage = Login.class;
e.printStackTrace();
}
return nextPage;
}

On Wed, Sep 3, 2008 at 4:06 PM, Carl Crowder <[EMAIL PROTECTED]> wrote:

> Is this actually a compilation error?
>
> Natia Gdzelishvili wrote:
> > in version 5.0.9 it is working
> >
> > I've addedvist class but still same situation _visit cannot be resolved
> >
> > On Wed, Sep 3, 2008 at 3:44 PM, Geoff Callender <
> > [EMAIL PROTECTED]> wrote:
> >
> >> Fernando's right.  Your field curruser starts out as an ASO but if you
> >> reassign it (eg. curruser = u) then it becomes something else which is
> not
> >> an ASO.
> >>
> >> Your code looks like it's a mod of JumpStart, but JumpStart actually
> does
> >> the same kind of thing Fernando's saying:
> >>
> >>@ApplicationState
> >>private Visit _visit;
> >>private boolean _visitExists;
> >>
> >> 
> >>
> >>User user = getSecurityFinderService().authenticateUser(_loginId,
> >> _password);
> >>
> >>// Store the user in the Visit
> >>
> >>_visit.noteLogIn(user);
> >>
> >> and Visit then sets its fields based on the user. That way it remains an
> >> ASO.
> >>
> >>public void noteLogIn(User user) {
> >>_loggedIn = true;
> >>_myUserId = user.getId();
> >>_myLoginId = user.getLoginId();
> >>}
> >>
> >> HTH,
> >>
> >> Geoff
> >>
> >>
> >>
> >> On 03/09/2008, at 7:24 PM, Fernando Padilla wrote:
> >>
> >>  Also, i thought you were to think of an ASO almost as a singleton or a
> >>> service.  Tapestry will create it for you on first access.  I didn't
> know
> >>> you could set it.  Even if I'm wrong, using this design pattern might
> clean
> >>> things up a little.
> >>>
> >>>
> >>> So you should use another class to contain a reference to the current
> >>> active user, call it "UserContainer".
> >>>
> >>>
> >>> @AplicationState
> >>> private UserContainer currUser;
> >>>
> >>>
> >>> and it would have methods like:
> >>>
> >>> currUser.hasUser()
> >>> currUser.setUser(User user)
> >>> currUser.getUser()
> >>>
> >>>
> >>> or whatever you like.
> >>>
> >>>
> >>>
> >>> José Paumard wrote:
> >>>
> >>>> Natia,
> >>>> I think there is a mistake in your code :
> >>>> private User currUser ;
> >>>> private boolean userExists ;
> >>>> I dont think T5 will link userExists and currUser, currUser should be
> >>>> named user, or userExists currUserExists (please correct me if I'm
> wrong).
> >>>> That said, what do you mean "I cant access currUser", do you mean that
> >>>> the ASO is null in other classes that want to read it ? Or do you mean
> that
> >>>> userExists is always false (which is normal, see above).
> >>>> José
> >>>> Natia Gdzelishvili a écrit :
> >>>>
> >>>>> 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 IBusin

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
in version 5.0.9 it is working

I've addedvist class but still same situation _visit cannot be resolved

On Wed, Sep 3, 2008 at 3:44 PM, Geoff Callender <
[EMAIL PROTECTED]> wrote:

> Fernando's right.  Your field curruser starts out as an ASO but if you
> reassign it (eg. curruser = u) then it becomes something else which is not
> an ASO.
>
> Your code looks like it's a mod of JumpStart, but JumpStart actually does
> the same kind of thing Fernando's saying:
>
>@ApplicationState
>private Visit _visit;
>private boolean _visitExists;
>
> 
>
>User user = getSecurityFinderService().authenticateUser(_loginId,
> _password);
>
>// Store the user in the Visit
>
>_visit.noteLogIn(user);
>
> and Visit then sets its fields based on the user. That way it remains an
> ASO.
>
>public void noteLogIn(User user) {
>_loggedIn = true;
>_myUserId = user.getId();
>_myLoginId = user.getLoginId();
>}
>
> HTH,
>
> Geoff
>
>
>
> On 03/09/2008, at 7:24 PM, Fernando Padilla wrote:
>
>  Also, i thought you were to think of an ASO almost as a singleton or a
>> service.  Tapestry will create it for you on first access.  I didn't know
>> you could set it.  Even if I'm wrong, using this design pattern might clean
>> things up a little.
>>
>>
>> So you should use another class to contain a reference to the current
>> active user, call it "UserContainer".
>>
>>
>> @AplicationState
>> private UserContainer currUser;
>>
>>
>> and it would have methods like:
>>
>> currUser.hasUser()
>> currUser.setUser(User user)
>> currUser.getUser()
>>
>>
>> or whatever you like.
>>
>>
>>
>> José Paumard wrote:
>>
>>> Natia,
>>> I think there is a mistake in your code :
>>> private User currUser ;
>>> private boolean userExists ;
>>> I dont think T5 will link userExists and currUser, currUser should be
>>> named user, or userExists currUserExists (please correct me if I'm wrong).
>>> That said, what do you mean "I cant access currUser", do you mean that
>>> the ASO is null in other classes that want to read it ? Or do you mean that
>>> userExists is always false (which is normal, see above).
>>> José
>>> Natia Gdzelishvili a écrit :
>>>
>>>> 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..
>>>>
>>>>
>>>>  -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
I've made both but it doesn't work
i.ve added
${user.getUserName} and on another  page there is "merchantregform Start
PageApplicationStateManager "

On Wed, Sep 3, 2008 at 2:56 PM, Hugo Palma <[EMAIL PROTECTED]> wrote:

> You have two ways of setting the currUser DAO:
>
> 1. Copy fields from one object to another.
> Just add this to your code:
>
> currUser.setUsername(user.getUsername);
> currUser.setPassword(user.getPassword);
> .
>
> You don't have to assign the currUser field. That will the done for you by
> Tapestry.
>
> 2. Declare the ASO like this:
>
> @ApplicationState(created=false)
> private User currUser;
>
> assign the field like this:
>
> currUser = u;
>
>
> Natia Gdzelishvili wrote:
>
>> I've tried to do this:
>> currUser=new User();
>> and then set some values but it does not work...
>>
>> On Wed, Sep 3, 2008 at 2:26 PM, Natia Gdzelishvili
>> <[EMAIL PROTECTED]>wrote:
>>
>>
>>
>>> I'm not using userExists,
>>> in tapestry 5.0.9 everything was working, i was doing the same
>>>
>>>
>>> On Wed, Sep 3, 2008 at 1:24 PM, Fernando Padilla <[EMAIL PROTECTED]
>>> >wrote:
>>>
>>>
>>>
>>>> Also, i thought you were to think of an ASO almost as a singleton or a
>>>> service.  Tapestry will create it for you on first access.  I didn't
>>>> know
>>>> you could set it.  Even if I'm wrong, using this design pattern might
>>>> clean
>>>> things up a little.
>>>>
>>>>
>>>> So you should use another class to contain a reference to the current
>>>> active user, call it "UserContainer".
>>>>
>>>>
>>>> @AplicationState
>>>> private UserContainer currUser;
>>>>
>>>>
>>>> and it would have methods like:
>>>>
>>>> currUser.hasUser()
>>>> currUser.setUser(User user)
>>>> currUser.getUser()
>>>>
>>>>
>>>> or whatever you like.
>>>>
>>>>
>>>>
>>>>
>>>> José Paumard wrote:
>>>>
>>>>
>>>>
>>>>> Natia,
>>>>>
>>>>> I think there is a mistake in your code :
>>>>>
>>>>> private User currUser ;
>>>>> private boolean userExists ;
>>>>>
>>>>> I dont think T5 will link userExists and currUser, currUser should be
>>>>> named user, or userExists currUserExists (please correct me if I'm
>>>>> wrong).
>>>>>
>>>>> That said, what do you mean "I cant access currUser", do you mean that
>>>>> the ASO is null in other classes that want to read it ? Or do you mean
>>>>> that
>>>>> userExists is always false (which is normal, see above).
>>>>>
>>>>> José
>>>>>
>>>>> Natia Gdzelishvili a écrit :
>>>>>
>>>>>
>>>>>
>>>>>> 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..
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
ok, but why I can not make assignment?

On Wed, Sep 3, 2008 at 2:53 PM, Sven Homburg <[EMAIL PROTECTED]>wrote:

> the aso created internal by tapestry
> you should not create the object by youself
>
> aso should used as container
>
> 2008/9/3 Natia Gdzelishvili <[EMAIL PROTECTED]>
>
> > I'm not using userExists,
> > in tapestry 5.0.9 everything was working, i was doing the same
> >
> > On Wed, Sep 3, 2008 at 1:24 PM, Fernando Padilla <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Also, i thought you were to think of an ASO almost as a singleton or a
> > > service.  Tapestry will create it for you on first access.  I didn't
> know
> > > you could set it.  Even if I'm wrong, using this design pattern might
> > clean
> > > things up a little.
> > >
> > >
> > > So you should use another class to contain a reference to the current
> > > active user, call it "UserContainer".
> > >
> > >
> > > @AplicationState
> > > private UserContainer currUser;
> > >
> > >
> > > and it would have methods like:
> > >
> > > currUser.hasUser()
> > > currUser.setUser(User user)
> > > currUser.getUser()
> > >
> > >
> > > or whatever you like.
> > >
> > >
> > >
> > >
> > > José Paumard wrote:
> > >
> > >> Natia,
> > >>
> > >> I think there is a mistake in your code :
> > >>
> > >> private User currUser ;
> > >> private boolean userExists ;
> > >>
> > >> I dont think T5 will link userExists and currUser, currUser should be
> > >> named user, or userExists currUserExists (please correct me if I'm
> > wrong).
> > >>
> > >> That said, what do you mean "I cant access currUser", do you mean that
> > the
> > >> ASO is null in other classes that want to read it ? Or do you mean
> that
> > >> userExists is always false (which is normal, see above).
> > >>
> > >> José
> > >>
> > >> Natia Gdzelishvili a écrit :
> > >>
> > >>> 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..
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>
>
> --
> with regards
> Sven Homburg
> http://www.chenillekit.org
> http://tapestry5-components.googlecode.com
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
I've tried to do this:
currUser=new User();
and then set some values but it does not work...

On Wed, Sep 3, 2008 at 2:26 PM, Natia Gdzelishvili
<[EMAIL PROTECTED]>wrote:

> I'm not using userExists,
> in tapestry 5.0.9 everything was working, i was doing the same
>
>
> On Wed, Sep 3, 2008 at 1:24 PM, Fernando Padilla <[EMAIL PROTECTED]>wrote:
>
>> Also, i thought you were to think of an ASO almost as a singleton or a
>> service.  Tapestry will create it for you on first access.  I didn't know
>> you could set it.  Even if I'm wrong, using this design pattern might clean
>> things up a little.
>>
>>
>> So you should use another class to contain a reference to the current
>> active user, call it "UserContainer".
>>
>>
>> @AplicationState
>> private UserContainer currUser;
>>
>>
>> and it would have methods like:
>>
>> currUser.hasUser()
>> currUser.setUser(User user)
>> currUser.getUser()
>>
>>
>> or whatever you like.
>>
>>
>>
>>
>> José Paumard wrote:
>>
>>> Natia,
>>>
>>> I think there is a mistake in your code :
>>>
>>> private User currUser ;
>>> private boolean userExists ;
>>>
>>> I dont think T5 will link userExists and currUser, currUser should be
>>> named user, or userExists currUserExists (please correct me if I'm wrong).
>>>
>>> That said, what do you mean "I cant access currUser", do you mean that
>>> the ASO is null in other classes that want to read it ? Or do you mean that
>>> userExists is always false (which is normal, see above).
>>>
>>> José
>>>
>>> Natia Gdzelishvili a écrit :
>>>
>>>> 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..
>>>>
>>>>
>>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
I'm not using userExists,
in tapestry 5.0.9 everything was working, i was doing the same

On Wed, Sep 3, 2008 at 1:24 PM, Fernando Padilla <[EMAIL PROTECTED]> wrote:

> Also, i thought you were to think of an ASO almost as a singleton or a
> service.  Tapestry will create it for you on first access.  I didn't know
> you could set it.  Even if I'm wrong, using this design pattern might clean
> things up a little.
>
>
> So you should use another class to contain a reference to the current
> active user, call it "UserContainer".
>
>
> @AplicationState
> private UserContainer currUser;
>
>
> and it would have methods like:
>
> currUser.hasUser()
> currUser.setUser(User user)
> currUser.getUser()
>
>
> or whatever you like.
>
>
>
>
> José Paumard wrote:
>
>> Natia,
>>
>> I think there is a mistake in your code :
>>
>> private User currUser ;
>> private boolean userExists ;
>>
>> I dont think T5 will link userExists and currUser, currUser should be
>> named user, or userExists currUserExists (please correct me if I'm wrong).
>>
>> That said, what do you mean "I cant access currUser", do you mean that the
>> ASO is null in other classes that want to read it ? Or do you mean that
>> userExists is always false (which is normal, see above).
>>
>> José
>>
>> Natia Gdzelishvili a écrit :
>>
>>> 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..
>>>
>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
no assignment cant be done
 currUser = u;  // "currUser cannot be resolved" when i;m inspecting
currUser

On Wed, Sep 3, 2008 at 1:02 PM, Hugo Palma <[EMAIL PROTECTED]> wrote:

> When you say that you can't access currUser what exactly does that mean ?
> That it's always null ?
>
>
> Natia Gdzelishvili wrote:
>
>> 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..
>>
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
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
>


Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
can anyone help me, what I'm doing wrong...

On Wed, Sep 3, 2008 at 11:06 AM, Natia Gdzelishvili <[EMAIL PROTECTED]
> wrote:

> 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..
>


Re: inject services into dispatcher

2008-09-03 Thread Natia Gdzelishvili
Thank you Cris

On Tue, Sep 2, 2008 at 4:28 PM, Chris Lewis <[EMAIL PROTECTED]>wrote:

> Natia,
>
> Those articles talk precisely about how to get a inject a service
> (ApplicationStateManager) into another service (AccessController), and
> then how to use that ApplicationStateManager to check ASOs for the
> current user request. Essentially you must instantiate your service with
> the other service as a constructor argument, or via setter injection in
> a service builder method.
>
> chris
>
> Natia Gdzelishvili wrote:
> > i have read this but, from there i understand how can i use aso, but how
> can
> > i inject services?
> >
> > On Tue, Sep 2, 2008 at 3:12 PM, Chris Lewis <[EMAIL PROTECTED]
> >wrote:
> >
> >
> >> Hello,
> >>
> >> I assume you haven't yet read these articles:
> >>
> >> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher
> >> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2
> >>
> >> They answer both of these questions.
> >>
> >> sinerely,
> >> chris
> >>
> >> Natia Gdzelishvili wrote:
> >>
> >>> hello,
> >>> i have service BusinessServicesLocator, and AccessController
> dispatcher.
> >>> I want to inject my service unto dispatcher how can i do this?
> >>> and also i want to know how can i access application state object from
> >>> dispatcher
> >>> thank in advance
> >>>
> >>>
> >>>
> >> --
> >> http://thegodcode.net
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
>
> --
> http://thegodcode.net
>
>


Problem with aso

2008-09-03 Thread Natia Gdzelishvili
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..


Re: inject services into dispatcher

2008-09-02 Thread Natia Gdzelishvili
i have read this but, from there i understand how can i use aso, but how can
i inject services?

On Tue, Sep 2, 2008 at 3:12 PM, Chris Lewis <[EMAIL PROTECTED]>wrote:

> Hello,
>
> I assume you haven't yet read these articles:
>
> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher
> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2
>
> They answer both of these questions.
>
> sinerely,
> chris
>
> Natia Gdzelishvili wrote:
> > hello,
> > i have service BusinessServicesLocator, and AccessController dispatcher.
> > I want to inject my service unto dispatcher how can i do this?
> > and also i want to know how can i access application state object from
> > dispatcher
> > thank in advance
> >
> >
>
> --
> http://thegodcode.net
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


inject services into dispatcher

2008-09-02 Thread Natia Gdzelishvili
hello,
i have service BusinessServicesLocator, and AccessController dispatcher.
I want to inject my service unto dispatcher how can i do this?
and also i want to know how can i access application state object from
dispatcher
thank in advance


Re: T5+EJB3

2008-08-26 Thread Natia Gdzelishvili
I've found some thing thanks

On Tue, Aug 26, 2008 at 12:47 PM, Natia Gdzelishvili <
[EMAIL PROTECTED]> wrote:

> can you give me an example of integration t5 ejb, in jumpstart i could not
> found
>
> On Tue, Aug 26, 2008 at 12:36 PM, Kristian Marinkovic <
> [EMAIL PROTECTED]> wrote:
>
>> you cannot use ejb annotation in tapestry pages
>>
>> please take a look at
>> http://files.doublenegative.com.au/jumpstart/home.html
>> for a EJB integration
>>
>> g,
>> kris
>>
>>
>>
>>
>> "Natia Gdzelishvili" <[EMAIL PROTECTED]>
>> 26.08.2008 10:31
>> Bitte antworten an
>> "Tapestry users" 
>>
>>
>> An
>> "Tapestry users" 
>> Kopie
>>
>> Thema
>> Re: T5+EJB3
>>
>>
>>
>>
>>
>>
>> can anyone help me...
>>
>> On Mon, Aug 25, 2008 at 5:00 PM, Natia Gdzelishvili
>> <[EMAIL PROTECTED]
>> > wrote:
>>
>> > Hello
>> > I have a  stateful session bean
>> > UserCreatorBean which implements UserCreatorLocale
>> > on a tapestry page when submit is done  I want to call UserLocaleBeans's
>> > some method, I am injecting bean with @EJB anotation but it is not
>> injected
>> > (null pointer exception when invoking bean's method).
>> > How can i inject stateful bean in tapestry.
>> > thank you in advance
>> >
>>
>>
>


Re: T5+EJB3

2008-08-26 Thread Natia Gdzelishvili
can you give me an example of integration t5 ejb, in jumpstart i could not
found

On Tue, Aug 26, 2008 at 12:36 PM, Kristian Marinkovic <
[EMAIL PROTECTED]> wrote:

> you cannot use ejb annotation in tapestry pages
>
> please take a look at
> http://files.doublenegative.com.au/jumpstart/home.html
> for a EJB integration
>
> g,
> kris
>
>
>
>
> "Natia Gdzelishvili" <[EMAIL PROTECTED]>
> 26.08.2008 10:31
> Bitte antworten an
> "Tapestry users" 
>
>
> An
> "Tapestry users" 
> Kopie
>
> Thema
> Re: T5+EJB3
>
>
>
>
>
>
> can anyone help me...
>
> On Mon, Aug 25, 2008 at 5:00 PM, Natia Gdzelishvili
> <[EMAIL PROTECTED]
> > wrote:
>
> > Hello
> > I have a  stateful session bean
> > UserCreatorBean which implements UserCreatorLocale
> > on a tapestry page when submit is done  I want to call UserLocaleBeans's
> > some method, I am injecting bean with @EJB anotation but it is not
> injected
> > (null pointer exception when invoking bean's method).
> > How can i inject stateful bean in tapestry.
> > thank you in advance
> >
>
>


Re: T5+EJB3

2008-08-26 Thread Natia Gdzelishvili
can anyone help me...

On Mon, Aug 25, 2008 at 5:00 PM, Natia Gdzelishvili <[EMAIL PROTECTED]
> wrote:

> Hello
> I have a  stateful session bean
> UserCreatorBean which implements UserCreatorLocale
> on a tapestry page when submit is done  I want to call UserLocaleBeans's
> some method, I am injecting bean with @EJB anotation but it is not injected
> (null pointer exception when invoking bean's method).
> How can i inject stateful bean in tapestry.
> thank you in advance
>


T5+EJB3

2008-08-25 Thread Natia Gdzelishvili
Hello
I have a  stateful session bean
UserCreatorBean which implements UserCreatorLocale
on a tapestry page when submit is done  I want to call UserLocaleBeans's
some method, I am injecting bean with @EJB anotation but it is not injected
(null pointer exception when invoking bean's method).
How can i inject stateful bean in tapestry.
thank you in advance


Re: T5:calendar component problem

2008-04-11 Thread Natia Gdzelishvili
yes in 5.0.9 version it is working and it looks like it should, I've change
version

On Fri, Apr 11, 2008 at 4:27 PM, Marcelo Lotif <[EMAIL PROTECTED]> wrote:

> I'm using 5.0.9 in production due to lack of some features in the new
> calendar...
> Is working very fine for me in both browsers (FF2 & IE7)
>
> 2008/4/11, Natia Gdzelishvili <[EMAIL PROTECTED]>:
> >
> > In firefox it was working.
> > In T5.0.11 it was fixed calendar was display in IE, but it looked simple
> > (i
> > mean skin)
> > I hope in new version bugs will be fixed
> >
> >
> > On Wed, Apr 9, 2008 at 5:13 PM, MoritzGilsdorf <[EMAIL PROTECTED]>
> > wrote:
> >
> >
> > >
> > > I once had the problem of executing javascript code from inside a
> table
> > in
> > > IE. I found out that in IE it is not allowed to execute js in tables.
> > > Maybe
> > > this is a similar problem. Did you tried other Browsers?
> > >
> > >
> > >
> > > Jens Pfau wrote:
> > > >
> > > > Hi Natia,
> > > >
> > > > did you figure out how to get the calendar popup to be shown? I have
> a
> > > > similar problem which breaks the click event observing in IE such
> that
> > > > neither calendar nor colorpicker popups can be invoked.
> > > >
> > > > Regards
> > > > Jens
> > > >
> > > >
> > > >
> > > > Natia Gdzelishvili wrote:
> > > >>
> > > >> Can anyone tell me how to work with dateField,  how to change
> styles,
> > > >> I am trying to change date format but it doesn't changes, and again
> > it
> > > >> doesn't work in Internet Explorer
> > > >>
> > > >> Thanks in advance
> > > >>
> > > >> On Thu, Apr 3, 2008 at 4:34 PM, Natia Gdzelishvili
> > > >> <[EMAIL PROTECTED]>
> > > >> wrote:
> > > >>
> > > >>> hi,
> > > >>> I have a problem with tapestry calendar  component, on page I
> have:
> > > >>>
> > > >>> 
> > > >>>
> > > >>> In firefox when i click calendar icon calendar is displayed but IE
> > it
> > > >>> doesn't
> > > >>> Please help
> > > >>> Thanks in advance
> > > >>>
> > > >>
> > > >>
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://www.nabble.com/T5%3Acalendar-component-problem-tp16473758p16585485.html
> > > Sent from the Tapestry - User mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>
>
> --
> Atenciosamente,
> Marcelo Lotif
>


Re: T5:calendar component problem

2008-04-11 Thread Natia Gdzelishvili
In firefox it was working.
In T5.0.11 it was fixed calendar was display in IE, but it looked simple (i
mean skin)
I hope in new version bugs will be fixed


On Wed, Apr 9, 2008 at 5:13 PM, MoritzGilsdorf <[EMAIL PROTECTED]>
wrote:

>
> I once had the problem of executing javascript code from inside a table in
> IE. I found out that in IE it is not allowed to execute js in tables.
> Maybe
> this is a similar problem. Did you tried other Browsers?
>
>
>
> Jens Pfau wrote:
> >
> > Hi Natia,
> >
> > did you figure out how to get the calendar popup to be shown? I have a
> > similar problem which breaks the click event observing in IE such that
> > neither calendar nor colorpicker popups can be invoked.
> >
> > Regards
> > Jens
> >
> >
> >
> > Natia Gdzelishvili wrote:
> >>
> >> Can anyone tell me how to work with dateField,  how to change styles,
> >> I am trying to change date format but it doesn't changes, and again it
> >> doesn't work in Internet Explorer
> >>
> >> Thanks in advance
> >>
> >> On Thu, Apr 3, 2008 at 4:34 PM, Natia Gdzelishvili
> >> <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >>> hi,
> >>> I have a problem with tapestry calendar  component, on page I have:
> >>>
> >>> 
> >>>
> >>> In firefox when i click calendar icon calendar is displayed but IE it
> >>> doesn't
> >>> Please help
> >>> Thanks in advance
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/T5%3Acalendar-component-problem-tp16473758p16585485.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: T5.0.11 beanEditForm

2008-04-11 Thread Natia Gdzelishvili
I'll try it

On Fri, Apr 11, 2008 at 1:38 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:

> This has been fixed in 5.0.12 where you can now add the @Inject annotation
> to the constructor that Tapestry should use for auto-instantiating your
> object.
>
> -Filip
>
>
> On 2008-04-07 11:09, Natia Gdzelishvili wrote:
>
> > I  am using beanedit form, i have a simple code
> >
> > AddCelebrity.tml
> > 
> >
> > AddCelebrity.java
> > public class AddCelebrity {
> >@Persist
> >private Celebrity celebrity;
> >
> >public Celebrity getCelebrity() {
> >return celebrity;
> >}
> >
> >public void setCelebrity(Celebrity celebrity) {
> >this.celebrity = celebrity;
> >}
> >
> > }
> >
> > Celebrity.java
> > public class Celebrity {
> >private long id;
> >private String firstName;
> >private String lastName;
> >private Date dateOfBirth;
> >private Occupation occupation;
> >private String biography;
> >private boolean birthDateVerified;
> >
> >public Celebrity() {
> >}
> >
> >public Celebrity(String firstName, String lastName,Date dateOfBirth,
> >Occupation occupation) {
> >this.firstName = firstName;
> >this.lastName = lastName;
> >this.dateOfBirth = Formats.parseDate("12/02/1981");
> >this.occupation = occupation;
> >}
> > 
> > setter and getter methods
> > }
> >
> > I  was using tapestry 5.0.10 everything worked fine, but when I upgraded
> > application to 5.0.11 I'm getting error:
> >
> > org.apache.tapestry.internal.services.RenderQueueException Render queue
> > error in SetupRender[AddCelebrity:celebrity.editor]: Exception
> > instantiating
> > instance of ge.bog.celebrities.entity.Celebrity (for component
> > 'AddCelebrity:celebrity.editor'): Error invoking constructor
> > ge.bog.celebrities.entity.Celebrity(String, String, Date, Occupation)
> > (at
> > Celebrity.java:35) (for service 'BeanModelSource'): No service
> > implements
> > the interface java.util.Date.
> > ...
> > java.lang.RuntimeException No service implements the interface
> > java.util.Date.
> > ..
> >
> > Please help
> > thank in advance
> >
> >
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: T5.0.11 beanEditForm

2008-04-08 Thread Natia Gdzelishvili
Can anyone help?

On Mon, Apr 7, 2008 at 1:09 PM, Natia Gdzelishvili <[EMAIL PROTECTED]>
wrote:

> I  am using beanedit form, i have a simple code
>
> AddCelebrity.tml
> 
>
> AddCelebrity.java
> public class AddCelebrity {
> @Persist
> private Celebrity celebrity;
>
> public Celebrity getCelebrity() {
> return celebrity;
> }
>
> public void setCelebrity(Celebrity celebrity) {
> this.celebrity = celebrity;
> }
>
> }
>
> Celebrity.java
> public class Celebrity {
> private long id;
> private String firstName;
> private String lastName;
> private Date dateOfBirth;
> private Occupation occupation;
> private String biography;
> private boolean birthDateVerified;
>
> public Celebrity() {
> }
>
> public Celebrity(String firstName, String lastName,Date dateOfBirth,
> Occupation occupation) {
> this.firstName = firstName;
> this.lastName = lastName;
> this.dateOfBirth = Formats.parseDate("12/02/1981");
> this.occupation = occupation;
> }
> 
> setter and getter methods
> }
>
> I  was using tapestry 5.0.10 everything worked fine, but when I upgraded
> application to 5.0.11 I'm getting error:
>
> org.apache.tapestry.internal.services.RenderQueueException Render queue
> error in SetupRender[AddCelebrity:celebrity.editor]: Exception instantiating
> instance of ge.bog.celebrities.entity.Celebrity (for component
> 'AddCelebrity:celebrity.editor'): Error invoking constructor
> ge.bog.celebrities.entity.Celebrity(String, String, Date, Occupation) (at
> Celebrity.java:35) (for service 'BeanModelSource'): No service implements
> the interface java.util.Date.
> ...
> java.lang.RuntimeException No service implements the interface
> java.util.Date.
> ..
>
> Please help
> thank in advance
>
>
>


Re: 答复: from T5.0.11 to T5.0.6

2008-04-08 Thread Natia Gdzelishvili
I've made new project and add my classes and now every thing work

2008/4/8 Natia Gdzelishvili <[EMAIL PROTECTED]>:

> i change version because i had problem:
> AddCelebrity.tml
> 
>
> AddCelebrity.java
> public class AddCelebrity {
> @Persist
> private Celebrity celebrity;
>
> public Celebrity getCelebrity() {
> return celebrity;
> }
>
> public void setCelebrity(Celebrity celebrity) {
> this.celebrity = celebrity;
> }
>
> }
>
> Celebrity.java
> public class Celebrity {
> private long id;
> private String firstName;
> private String lastName;
> private Date dateOfBirth;
> private Occupation occupation;
> private String biography;
> private boolean birthDateVerified;
>
> public Celebrity() {
> }
>
> public Celebrity(String firstName, String lastName,Date dateOfBirth,
> Occupation occupation) {
> this.firstName = firstName;
> this.lastName = lastName;
> this.dateOfBirth = Formats.parseDate("12/02/1981");
> this.occupation = occupation;
> }
> 
> setter and getter methods
> }
>
> I  was using tapestry 5.0.10 everything worked fine, but when I upgraded
> application to 5.0.11 I'm getting error:
>
> org.apache.tapestry.internal.services.RenderQueueException Render queue
> error in SetupRender[AddCelebrity:celebrity.editor]: Exception instantiating
> instance of ge.bog.celebrities.entity.Celebrity (for component
> 'AddCelebrity:celebrity.editor'): Error invoking constructor
> ge.bog.celebrities.entity.Celebrity(String, String, Date, Occupation) (at
> Celebrity.java:35) (for service 'BeanModelSource'): No service implements
> the interface java.util.Date.
> ...
> java.lang.RuntimeException No service implements the interface
> java.util.Date.
> and no one answered , i was stucked, and i preferred to go back to old
> version
>
>
> 2008/4/8 Michael Gerzabek <[EMAIL PROTECTED]>:
>
> Natia Gdzelishvili schrieb:
> > > can anyone help..
> > >
> > Try this:
> >
> > 1. *Use T5.0.11*, it's the latest stable release, also voted beta from
> > dev team. There is not a single reason why you would use 5.0.6. You even
> > can continue using the book. There are only very few things that changed
> > from 5.0.6 to 5.0.11. You can find those things when you double check
> > the release notes [1] that are on the T5 homepage and the upgrade notes
> > [2] that are on the nightly builds website. Sounds a lot read but is
> > really fast forward.
> >
> > 2. use the extension .tml for your template files
> > 3. put your templates either on your context root, which is
> > YOUR_PROJECT/src/main/webapp if you used the maven archetype, or put
> > them into your resources package, which is
> > YOUR_PROJECT/src/main/resources/YOUR_JAVA_PACKAGE/PAGENAME.tml. The
> > preferred option is to put your templates in your resources section.
> > More info on this can be found in the online documentation in the
> > section project layout [3].
> > 4. restart jetty
> >
> > now everything should be fine.
> > Regards,
> > Michael
> >
> > [1] http://tapestry.apache.org/tapestry5/release-notes.html
> > [2]
> > http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html
> > [3]
> >
> > http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/project-layout.html
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: 答复: from T5.0.11 to T5.0.6

2008-04-08 Thread Natia Gdzelishvili
i change version because i had problem:
AddCelebrity.tml


AddCelebrity.java
public class AddCelebrity {
@Persist
private Celebrity celebrity;

public Celebrity getCelebrity() {
return celebrity;
}

public void setCelebrity(Celebrity celebrity) {
this.celebrity = celebrity;
}

}

Celebrity.java
public class Celebrity {
private long id;
private String firstName;
private String lastName;
private Date dateOfBirth;
private Occupation occupation;
private String biography;
private boolean birthDateVerified;

public Celebrity() {
}

public Celebrity(String firstName, String lastName,Date dateOfBirth,
Occupation occupation) {
this.firstName = firstName;
this.lastName = lastName;
this.dateOfBirth = Formats.parseDate("12/02/1981");
this.occupation = occupation;
}

setter and getter methods
}

I  was using tapestry 5.0.10 everything worked fine, but when I upgraded
application to 5.0.11 I'm getting error:

org.apache.tapestry.internal.services.RenderQueueException Render queue
error in SetupRender[AddCelebrity:celebrity.editor]: Exception instantiating
instance of ge.bog.celebrities.entity.Celebrity (for component
'AddCelebrity:celebrity.editor'): Error invoking constructor
ge.bog.celebrities.entity.Celebrity(String, String, Date, Occupation) (at
Celebrity.java:35) (for service 'BeanModelSource'): No service implements
the interface java.util.Date.
...
java.lang.RuntimeException No service implements the interface
java.util.Date.
and no one answered , i was stucked, and i preferred to go back to old
version


2008/4/8 Michael Gerzabek <[EMAIL PROTECTED]>:

> Natia Gdzelishvili schrieb:
> > can anyone help..
> >
> Try this:
>
> 1. *Use T5.0.11*, it's the latest stable release, also voted beta from
> dev team. There is not a single reason why you would use 5.0.6. You even
> can continue using the book. There are only very few things that changed
> from 5.0.6 to 5.0.11. You can find those things when you double check
> the release notes [1] that are on the T5 homepage and the upgrade notes
> [2] that are on the nightly builds website. Sounds a lot read but is
> really fast forward.
>
> 2. use the extension .tml for your template files
> 3. put your templates either on your context root, which is
> YOUR_PROJECT/src/main/webapp if you used the maven archetype, or put
> them into your resources package, which is
> YOUR_PROJECT/src/main/resources/YOUR_JAVA_PACKAGE/PAGENAME.tml. The
> preferred option is to put your templates in your resources section.
> More info on this can be found in the online documentation in the
> section project layout [3].
> 4. restart jetty
>
> now everything should be fine.
> Regards,
> Michael
>
> [1] http://tapestry.apache.org/tapestry5/release-notes.html
> [2]
> http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html
> [3]
>
> http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/project-layout.html
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: 答复: from T5.0.11 to T5.0.6

2008-04-08 Thread Natia Gdzelishvili
can anyone help..

2008/4/8 Natia Gdzelishvili <[EMAIL PROTECTED]>:

> tamplates are in webcontext, as thy were before
>
> 2008/4/8 滕训华 <[EMAIL PROTECTED]>:
>
> You only need to move the template files to up level (Webcontext not
> > WEB-INF) and rename their extension as .tml,it will be ok
> >
> > -邮件原件-
> > 发件人: Natia Gdzelishvili [mailto:[EMAIL PROTECTED]
> > 发送时间: 2008年4月8日 15:13
> > 收件人: Tapestry users
> > 主题: Re: from T5.0.11 to T5.0.6
> >
> > if you dont recomend then which book or tutorial use.
> > i had a problem with BeanEditForm and I wrote about that but no one
> > answered
> >
> > and now what should , i cant run application
> >
> > On Tue, Apr 8, 2008 at 11:02 AM, Chris Lewis <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Perhaps it was the version previous then (it changed around that
> > release
> > > I think). You say you had problems you couldn't solve - why? Was the
> > > code old, or were you trying to use that book (one I wouldn't
> > recommend)
> > > for 5.0.11?
> > >
> > > Natia Gdzelishvili wrote:
> > > > and why do i need to change file extentions, I'm reading "Tapestry 5
> > > > Building Web Applications" book and there template files have .tml
> > > > extentions.
> > > > any way i have changed but it doesn't work
> > > >
> > > > On Tue, Apr 8, 2008 at 10:52 AM, Natia Gdzelishvili <
> > > [EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > >
> > > >> I am not happy to doing this but, in new version i faced some
> > problems
> > > and
> > > >> i cant solve them.
> > > >>
> > > >>
> > > >> On Tue, Apr 8, 2008 at 10:42 AM, Chris Lewis <
> > [EMAIL PROTECTED]
> > > >
> > > >> wrote:
> > > >>
> > > >>
> > > >>> I won't bother asking why you're doing that, and advise you to NOT
> > do
> > > >>> it. There are many changes from 5.0.6 to 5.0.11 - many. I'd guess
> > that
> > > >>> issue is caused by the template file name extension change (from
> > .html
> > > >>> to .tml). So in your case you'll have to rename all of your .tml
> > files
> > > >>> to .html. There probably are many other problems with your code
> > due to
> > > >>> compatibility changes, so again I strongly advise that you not do
> > > that.
> > > >>>
> > > >>> chris
> > > >>>
> > > >>> Natia Gdzelishvili wrote:
> > > >>>
> > > >>>> I change my application from tapestry 5.0.11 version to 5.0.6 and
> > I'm
> > > >>>> getting :
> > > >>>> java.lang.RuntimeException Page Start did not generate any markup
> > > when
> > > >>>> rendered. This could be because its template file could not be
> > > >>>>
> > > >>> located, or
> > > >>>
> > > >>>> because a render phase method in the page prevented rendering.
> > > >>>> what is wrong?
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>> --
> > > >>> http://thegodcode.net
> > > >>>
> > > >>>
> > > >>>
> > -
> > > >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >>> For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>>
> > > >>>
> > > >>>
> > > >
> > > >
> > >
> > > --
> > > http://thegodcode.net
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: 答复: from T5.0.11 to T5.0.6

2008-04-08 Thread Natia Gdzelishvili
tamplates are in webcontext, as thy were before

2008/4/8 滕训华 <[EMAIL PROTECTED]>:

> You only need to move the template files to up level (Webcontext not
> WEB-INF) and rename their extension as .tml,it will be ok
>
> -邮件原件-
> 发件人: Natia Gdzelishvili [mailto:[EMAIL PROTECTED]
> 发送时间: 2008年4月8日 15:13
> 收件人: Tapestry users
> 主题: Re: from T5.0.11 to T5.0.6
>
> if you dont recomend then which book or tutorial use.
> i had a problem with BeanEditForm and I wrote about that but no one
> answered
>
> and now what should , i cant run application
>
> On Tue, Apr 8, 2008 at 11:02 AM, Chris Lewis <[EMAIL PROTECTED]>
> wrote:
>
> > Perhaps it was the version previous then (it changed around that release
> > I think). You say you had problems you couldn't solve - why? Was the
> > code old, or were you trying to use that book (one I wouldn't recommend)
> > for 5.0.11?
> >
> > Natia Gdzelishvili wrote:
> > > and why do i need to change file extentions, I'm reading "Tapestry 5
> > > Building Web Applications" book and there template files have .tml
> > > extentions.
> > > any way i have changed but it doesn't work
> > >
> > > On Tue, Apr 8, 2008 at 10:52 AM, Natia Gdzelishvili <
> > [EMAIL PROTECTED]>
> > > wrote:
> > >
> > >
> > >> I am not happy to doing this but, in new version i faced some
> problems
> > and
> > >> i cant solve them.
> > >>
> > >>
> > >> On Tue, Apr 8, 2008 at 10:42 AM, Chris Lewis <
> [EMAIL PROTECTED]
> > >
> > >> wrote:
> > >>
> > >>
> > >>> I won't bother asking why you're doing that, and advise you to NOT
> do
> > >>> it. There are many changes from 5.0.6 to 5.0.11 - many. I'd guess
> that
> > >>> issue is caused by the template file name extension change (from
> .html
> > >>> to .tml). So in your case you'll have to rename all of your .tml
> files
> > >>> to .html. There probably are many other problems with your code due
> to
> > >>> compatibility changes, so again I strongly advise that you not do
> > that.
> > >>>
> > >>> chris
> > >>>
> > >>> Natia Gdzelishvili wrote:
> > >>>
> > >>>> I change my application from tapestry 5.0.11 version to 5.0.6 and
> I'm
> > >>>> getting :
> > >>>> java.lang.RuntimeException Page Start did not generate any markup
> > when
> > >>>> rendered. This could be because its template file could not be
> > >>>>
> > >>> located, or
> > >>>
> > >>>> because a render phase method in the page prevented rendering.
> > >>>> what is wrong?
> > >>>>
> > >>>>
> > >>>>
> > >>> --
> > >>> http://thegodcode.net
> > >>>
> > >>>
> > >>>
> -
> > >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>>
> > >
> > >
> >
> > --
> > http://thegodcode.net
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: from T5.0.11 to T5.0.6

2008-04-08 Thread Natia Gdzelishvili
if you dont recomend then which book or tutorial use.
i had a problem with BeanEditForm and I wrote about that but no one answered

and now what should , i cant run application

On Tue, Apr 8, 2008 at 11:02 AM, Chris Lewis <[EMAIL PROTECTED]>
wrote:

> Perhaps it was the version previous then (it changed around that release
> I think). You say you had problems you couldn't solve - why? Was the
> code old, or were you trying to use that book (one I wouldn't recommend)
> for 5.0.11?
>
> Natia Gdzelishvili wrote:
> > and why do i need to change file extentions, I'm reading "Tapestry 5
> > Building Web Applications" book and there template files have .tml
> > extentions.
> > any way i have changed but it doesn't work
> >
> > On Tue, Apr 8, 2008 at 10:52 AM, Natia Gdzelishvili <
> [EMAIL PROTECTED]>
> > wrote:
> >
> >
> >> I am not happy to doing this but, in new version i faced some problems
> and
> >> i cant solve them.
> >>
> >>
> >> On Tue, Apr 8, 2008 at 10:42 AM, Chris Lewis <[EMAIL PROTECTED]
> >
> >> wrote:
> >>
> >>
> >>> I won't bother asking why you're doing that, and advise you to NOT do
> >>> it. There are many changes from 5.0.6 to 5.0.11 - many. I'd guess that
> >>> issue is caused by the template file name extension change (from .html
> >>> to .tml). So in your case you'll have to rename all of your .tml files
> >>> to .html. There probably are many other problems with your code due to
> >>> compatibility changes, so again I strongly advise that you not do
> that.
> >>>
> >>> chris
> >>>
> >>> Natia Gdzelishvili wrote:
> >>>
> >>>> I change my application from tapestry 5.0.11 version to 5.0.6 and I'm
> >>>> getting :
> >>>> java.lang.RuntimeException Page Start did not generate any markup
> when
> >>>> rendered. This could be because its template file could not be
> >>>>
> >>> located, or
> >>>
> >>>> because a render phase method in the page prevented rendering.
> >>>> what is wrong?
> >>>>
> >>>>
> >>>>
> >>> --
> >>> http://thegodcode.net
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >
> >
>
> --
> http://thegodcode.net
>
>


Re: from T5.0.11 to T5.0.6

2008-04-07 Thread Natia Gdzelishvili
and why do i need to change file extentions, I'm reading "Tapestry 5
Building Web Applications" book and there template files have .tml
extentions.
any way i have changed but it doesn't work

On Tue, Apr 8, 2008 at 10:52 AM, Natia Gdzelishvili <[EMAIL PROTECTED]>
wrote:

> I am not happy to doing this but, in new version i faced some problems and
> i cant solve them.
>
>
> On Tue, Apr 8, 2008 at 10:42 AM, Chris Lewis <[EMAIL PROTECTED]>
> wrote:
>
> > I won't bother asking why you're doing that, and advise you to NOT do
> > it. There are many changes from 5.0.6 to 5.0.11 - many. I'd guess that
> > issue is caused by the template file name extension change (from .html
> > to .tml). So in your case you'll have to rename all of your .tml files
> > to .html. There probably are many other problems with your code due to
> > compatibility changes, so again I strongly advise that you not do that.
> >
> > chris
> >
> > Natia Gdzelishvili wrote:
> > > I change my application from tapestry 5.0.11 version to 5.0.6 and I'm
> > > getting :
> > > java.lang.RuntimeException Page Start did not generate any markup when
> > > rendered. This could be because its template file could not be
> > located, or
> > > because a render phase method in the page prevented rendering.
> > > what is wrong?
> > >
> > >
> >
> > --
> > http://thegodcode.net
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: from T5.0.11 to T5.0.6

2008-04-07 Thread Natia Gdzelishvili
I am not happy to doing this but, in new version i faced some problems and i
cant solve them.

On Tue, Apr 8, 2008 at 10:42 AM, Chris Lewis <[EMAIL PROTECTED]>
wrote:

> I won't bother asking why you're doing that, and advise you to NOT do
> it. There are many changes from 5.0.6 to 5.0.11 - many. I'd guess that
> issue is caused by the template file name extension change (from .html
> to .tml). So in your case you'll have to rename all of your .tml files
> to .html. There probably are many other problems with your code due to
> compatibility changes, so again I strongly advise that you not do that.
>
> chris
>
> Natia Gdzelishvili wrote:
> > I change my application from tapestry 5.0.11 version to 5.0.6 and I'm
> > getting :
> > java.lang.RuntimeException Page Start did not generate any markup when
> > rendered. This could be because its template file could not be located,
> or
> > because a render phase method in the page prevented rendering.
> > what is wrong?
> >
> >
>
> --
> http://thegodcode.net
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


from T5.0.11 to T5.0.6

2008-04-07 Thread Natia Gdzelishvili
I change my application from tapestry 5.0.11 version to 5.0.6 and I'm
getting :
java.lang.RuntimeException Page Start did not generate any markup when
rendered. This could be because its template file could not be located, or
because a render phase method in the page prevented rendering.
what is wrong?


T5.0.11 beanEditForm

2008-04-07 Thread Natia Gdzelishvili
I  am using beanedit form, i have a simple code

AddCelebrity.tml


AddCelebrity.java
public class AddCelebrity {
@Persist
private Celebrity celebrity;

public Celebrity getCelebrity() {
return celebrity;
}

public void setCelebrity(Celebrity celebrity) {
this.celebrity = celebrity;
}

}

Celebrity.java
public class Celebrity {
private long id;
private String firstName;
private String lastName;
private Date dateOfBirth;
private Occupation occupation;
private String biography;
private boolean birthDateVerified;

public Celebrity() {
}

public Celebrity(String firstName, String lastName,Date dateOfBirth,
Occupation occupation) {
this.firstName = firstName;
this.lastName = lastName;
this.dateOfBirth = Formats.parseDate("12/02/1981");
this.occupation = occupation;
}

setter and getter methods
}

I  was using tapestry 5.0.10 everything worked fine, but when I upgraded
application to 5.0.11 I'm getting error:

org.apache.tapestry.internal.services.RenderQueueException Render queue
error in SetupRender[AddCelebrity:celebrity.editor]: Exception instantiating
instance of ge.bog.celebrities.entity.Celebrity (for component
'AddCelebrity:celebrity.editor'): Error invoking constructor
ge.bog.celebrities.entity.Celebrity(String, String, Date, Occupation) (at
Celebrity.java:35) (for service 'BeanModelSource'): No service implements
the interface java.util.Date.
...
java.lang.RuntimeException No service implements the interface
java.util.Date.
..

Please help
thank in advance


Re: T5:calendar component problem

2008-04-04 Thread Natia Gdzelishvili
Can anyone tell me how to work with dateField,  how to change styles,
I am trying to change date format but it doesn't changes, and again it
doesn't work in Internet Explorer

Thanks in advance

On Thu, Apr 3, 2008 at 4:34 PM, Natia Gdzelishvili <[EMAIL PROTECTED]>
wrote:

> hi,
> I have a problem with tapestry calendar  component, on page I have:
>
> 
>
> In firefox when i click calendar icon calendar is displayed but IE it
> doesn't
> Please help
> Thanks in advance
>


T5:calendar component problem

2008-04-03 Thread Natia Gdzelishvili
hi,
I have a problem with tapestry calendar  component, on page I have:



In firefox when i click calendar icon calendar is displayed but IE it
doesn't
Please help
Thanks in advance


Re: component event handling problem

2008-04-02 Thread Natia Gdzelishvili
thank you, it helped me :)

On Wed, Apr 2, 2008 at 1:03 PM, Francois Armand <[EMAIL PROTECTED]>
wrote:

> Natia Gdzelishvili wrote:
>
> > on page Registration.tml i have:
> > 
> > //...some component
> >  > value="submit">
> > 
> >
> > and on Registartion.java
> > @OnEvent(component="submitButton")
> >void onSubmitButton() {
> >System.out.println("Submit button was pressed!");
> >}
> > [..]
> > please help me:)
> > thanks in advanc
> >
>
> A button doesn't send the "submit" event but the "selected" event, as you
> can see here:
> http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Submit.html
> Try onSelectedFromSubmitButton() {...}
>
> Hope it will help,
>
>
> --
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> ---
> InterLDAP - http://interldap.org FederID - http://www.federid.org/
> Open Source identities management and federation
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: component event handling problem

2008-04-02 Thread Natia Gdzelishvili
on page Registration.tml i have:

//...some component



and on Registartion.java
@OnEvent(component="submitButton")
void onSubmitButton() {
System.out.println("Submit button was pressed!");
}

void onSubmitFromRegistrationForm(){
System.out.println("The form was submitted!");

}
when i click on submit button only onSubmitFromRegistrationForm is invoked.
in "Tapestry 5 Building Web Applications, Alexander Kolesnikov" is written
that first will be invoked onSubmitButton and then
onSubmitFromRegistrationForm,  but submit component event handler is not
invoked at all, when i run application output is:

The form was submitted!
problem is with submit component, when i change submit with actionLink ,
actionLink's eventHandler is invoked

please help me:)
thanks in advance
On Wed, Apr 2, 2008 at 12:39 PM, Natia Gdzelishvili <[EMAIL PROTECTED]>
wrote:

> hi,
> I'm using tapestry 5.0.10 version,
> i have a problem with handling submit component event handling
> on page i have:
> 
>
> 
>


component event handling problem

2008-04-02 Thread Natia Gdzelishvili
hi,
I'm using tapestry 5.0.10 version,
i hve a broblem with dandling submit component event handling
on page i have: