Re: Unable to determine key for 'mousedown' event. Returning null

2013-07-09 Thread Sahli Sabrina
It was a problem in Google web toolkit developper plug , i deleted it and 
install it again and the application works now 

Thanks

Le mardi 9 juillet 2013 11:01:16 UTC, Sahli Sabrina a écrit :
>
> hi , i have a gwt application  and i use smartgwt for the gui.
> today, i'm getting this error i dont inderstand why, 
>
>
> 00:02:39,873 [ERROR] 
>> 10:46:12.440:MDN2:WARN:Log:EventHandler.determineEventKeyName(): Unable to 
>> determine key for 'mousedown' event. Returning null 
>>
>> com.smartgwt.client.core.JsObject$SGWT_WARN: 
>> 10:46:12.440:MDN2:WARN:Log:EventHandler.determineEventKeyName(): Unable to 
>> determine key for 'mousedown' event. Returning null
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>  at 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>  at 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
>>  at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
>>  at 
>> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>>  at 
>> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
>>  at 
>> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
>>  at 
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
>>  at 
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>>  at java.lang.Thread.run(Thread.java:722)
>>
>>
> i cann't execute events in my application
>
>
> Does anyone got this error? how can i resolve it?
>
> Thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Unable to determine key for 'mousedown' event. Returning null

2013-07-09 Thread Sahli Sabrina
hi , i have a gwt application  and i use smartgwt for the gui.
today, i'm getting this error i dont inderstand why, 


00:02:39,873 [ERROR] 
> 10:46:12.440:MDN2:WARN:Log:EventHandler.determineEventKeyName(): Unable to 
> determine key for 'mousedown' event. Returning null 
>
> com.smartgwt.client.core.JsObject$SGWT_WARN: 
> 10:46:12.440:MDN2:WARN:Log:EventHandler.determineEventKeyName(): Unable to 
> determine key for 'mousedown' event. Returning null
>   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>   at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>   at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
>   at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
>   at 
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>   at 
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
>   at 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
>   at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
>   at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
>   at java.lang.Thread.run(Thread.java:722)
>
>
i cann't execute events in my application


Does anyone got this error? how can i resolve it?

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [LazyInitializationException] failed to lazily initialize a collection of role

2013-06-11 Thread Sahli Sabrina
OK thank you :) , actually i resolved the problem by creating an extension 
of the service in wish i override the function list like this 



> public List list() throws ServiceException {
>  List list = new ArrayList();
>  Listsocietes=new ArrayList();
> log.debug("debut de la recherche des objetsSociete ");
> try {
>  list = getSocieteDao().list();
>  
> 
> if(list!=null){
> for(Societe societe :list){
> Societe s=new Societe();
> s.setNomsociete(societe.getNomsociete());
> societes.add(s);
> }
> }
> log.debug("fin de recherche des objets Societe ");
> } catch (Exception re) {
> log.error("erreur de recherche ", re);
> throw new ServiceException(
> "error lors de la recherche de l'objet Societe : "
> + re.toString());
> }
> return societes;
>  }
>  
>


but i will use dto , i think it is better


thank you again 
Le mardi 11 juin 2013 15:15:36 UTC, Juan Pablo Gardella a écrit :
>
> See: 
> http://books.google.com.ar/books?id=OG816JSZYVcC&pg=PA159&lpg=PA159&dq=hibernate+filter+gwt&source=bl&ots=BM7BGKs_n6&sig=CXd4NoOk_Wu-_ixtoZhljgr0V8A&hl=es&sa=X&ei=eD63UfrXAcL84AOFm4HYBA&ved=0CEUQ6AEwAg#v=onepage&q=hibernate%20filter%20gwt&f=false
>
> This where I pick the idea and the implementation.
>
> And you can see alternatives here: 
> https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernate<https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernate?hl=es-ES>
>
> I prefer DTO + Dozzer.
>
> Juan
>
>
> 2013/6/11 Sahli Sabrina >
>
>> Thank you a lot , can you explain me please how it works and how to use 
>> it? because  i don"nt use gin so i can't make the difference in code
>>
>>
>> Le mardi 11 juin 2013 14:57:31 UTC, Juan Pablo Gardella a écrit :
>>>
>>> The filter is: https://bitbucket.org/**gardellajuanpablo/gwt-sample/**
>>> src/**8aba86d82778cb3a6f48f4d5f60f21**d4134282b4/src/main/java/com/**
>>> foo/server/rpc/hibernate/**HibernateFilter.java?at=**default<https://bitbucket.org/gardellajuanpablo/gwt-sample/src/8aba86d82778cb3a6f48f4d5f60f21d4134282b4/src/main/java/com/foo/server/rpc/hibernate/HibernateFilter.java?at=default>
>>>
>>>
>>>
>>>
>>> 2013/6/11 Sahli Sabrina 
>>>
>>> i  did'nt find the filter in your code . can you explain me please how 
>>>> did you do?
>>>>
>>>> thank you
>>>>
>>>> Le mardi 11 juin 2013 13:31:05 UTC, Juan Pablo Gardella a écrit :
>>>>>
>>>>> If you don't want use DTO pattern to transfer objects to UI, check 
>>>>> this 
>>>>> thread<https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/fkbowz5-5do>.
>>>>>  
>>>>> I've implemented a filter that you can use to put null lazy relationships.
>>>>>
>>>>> The problem is very common in Hibernate, check in google. It happens 
>>>>> when you serialize the object with GWT-RPC.
>>>>>
>>>>>
>>>>> 2013/6/11 Sahli Sabrina 
>>>>>
>>>>>> Hi everyOne,
>>>>>> when i try to get a list of object in "Societe" class  
>>>>>>
>>>>>>
>>>>>> i'm getting this exception
>>>>>>  
>>>>>>
>>>>>> LazyInitializationException] failed to lazily initialize a collection 
>>>>>>> of role: com.protid.prosa.shared.model.bo.Commune.soumission, 
>>>>>>> no session or session was closed
>>>>>>> [INFO] org.hibernate.**LazyInitializati**onException: failed to 
>>>>>>> lazily initialize a collection of role: com.protid.prosa.shared.model.
>>>>>>> bo.Commune.soumission, no session or session was closed
>>>>>>>
>>>>>>  
>>>>>>
>>>>>> Notice that the class *Societe *have an attribute of type *Adresse*. 
>>>>>> the adresse has an attribute *Commune* . A set of "Soumission" are 
>>>>>> declared in *Commune* class by the annotation OneToMany like this
>>>>>>
>

Re: [LazyInitializationException] failed to lazily initialize a collection of role

2013-06-11 Thread Sahli Sabrina
Thank you a lot , can you explain me please how it works and how to use it? 
because  i don"nt use gin so i can't make the difference in code


Le mardi 11 juin 2013 14:57:31 UTC, Juan Pablo Gardella a écrit :
>
> The filter is: 
> https://bitbucket.org/gardellajuanpablo/gwt-sample/src/8aba86d82778cb3a6f48f4d5f60f21d4134282b4/src/main/java/com/foo/server/rpc/hibernate/HibernateFilter.java?at=default
>
>
>
>
> 2013/6/11 Sahli Sabrina >
>
>> i  did'nt find the filter in your code . can you explain me please how 
>> did you do?
>>
>> thank you
>>
>> Le mardi 11 juin 2013 13:31:05 UTC, Juan Pablo Gardella a écrit :
>>>
>>> If you don't want use DTO pattern to transfer objects to UI, check this 
>>> thread<https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/fkbowz5-5do>.
>>>  
>>> I've implemented a filter that you can use to put null lazy relationships.
>>>
>>> The problem is very common in Hibernate, check in google. It happens 
>>> when you serialize the object with GWT-RPC.
>>>
>>>
>>> 2013/6/11 Sahli Sabrina 
>>>
>>>> Hi everyOne,
>>>> when i try to get a list of object in "Societe" class  
>>>>
>>>>
>>>> i'm getting this exception
>>>>  
>>>>
>>>> LazyInitializationException] failed to lazily initialize a collection 
>>>>> of role: com.protid.prosa.shared.model.**bo.Commune.soumission, no 
>>>>> session or session was closed
>>>>> [INFO] org.hibernate.**LazyInitializationException: failed to lazily 
>>>>> initialize a collection of role: 
>>>>> com.protid.prosa.shared.model.**bo.Commune.soumission, 
>>>>> no session or session was closed
>>>>>
>>>>
>>>>
>>>> Notice that the class *Societe *have an attribute of type *Adresse*. 
>>>> the adresse has an attribute *Commune* . A set of "Soumission" are 
>>>> declared in *Commune* class by the annotation OneToMany like this
>>>>
>>>> @OneToMany(fetch = FetchType.LAZY, mappedBy="commune",**
>>>>> targetEntity=com.protid.prosa.**shared.model.bo.Soumission.**class)
>>>>> @Cascade(value = {CascadeType.ALL })
>>>>> private Set soumission =new HashSet();
>>>>>
>>>>> public Set getSoumission(){
>>>>> return soumission;
>>>>> }
>>>>>  
>>>>> }
>>>>>
>>>>
>>>>
>>>> i don't get where is the problem because i'm not looking  for the 
>>>> "soumission " objects in the Commune class !!!
>>>>
>>>>
>>>> here is my rpc cal function
>>>>
>>>>
>>>>
>>>> private void getCompany(){
>>>>> 
>>>>> SocieteServiceAsync rpc=clientFactory.**
>>>>> getSocieteservicerpc();
>>>>>   
>>>>>  
>>>>> AsyncCallback> callback = new 
>>>>> AsyncCallback>() {
>>>>> public void onFailure(Throwable caught) {
>>>>> 
>>>>>}
>>>>>   
>>>>>  
>>>>> public void onSuccess(List result) {
>>>>>  
>>>>>   if(result!=null){
>>>>>   societe=result.get(0);
>>>>>result.get(0).getNomsociete();
>>>>> 
>>>>>   }
>>>>>  
>>>>> }
>>>>> };
>>>>> 
>>>>> rpc.list(callback);
>>>>>  
>>>>>  
>>>>> }
>>>>>
>>>>
>>>>
>>>> Please help, 
>>>>
>>>> Thank you
>>>>
>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Google Web Toolkit" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to google-web-toolkit+**unsubscr...@googlegroups.com.
>>>> To post to this group, send email to google-we...@**googlegroups.com.
>>>>
>>>> Visit this group at http://groups.google.com/**
>>>> group/google-web-toolkit?hl=en<http://groups.google.com/group/google-web-toolkit?hl=en>
>>>> **.
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>  
>>>>  
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [LazyInitializationException] failed to lazily initialize a collection of role

2013-06-11 Thread Sahli Sabrina
i  did'nt find the filter in your code . can you explain me please how did 
you do?

thank you

Le mardi 11 juin 2013 13:31:05 UTC, Juan Pablo Gardella a écrit :
>
> If you don't want use DTO pattern to transfer objects to UI, check this 
> thread<https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/fkbowz5-5do>.
>  
> I've implemented a filter that you can use to put null lazy relationships.
>
> The problem is very common in Hibernate, check in google. It happens when 
> you serialize the object with GWT-RPC.
>
>
> 2013/6/11 Sahli Sabrina >
>
>> Hi everyOne,
>> when i try to get a list of object in "Societe" class  
>>
>>
>> i'm getting this exception
>>  
>>
>> LazyInitializationException] failed to lazily initialize a collection of 
>>> role: com.protid.prosa.shared.model.bo.Commune.soumission, no session or 
>>> session was closed
>>> [INFO] org.hibernate.LazyInitializationException: failed to lazily 
>>> initialize a collection of role: 
>>> com.protid.prosa.shared.model.bo.Commune.soumission, no session or session 
>>> was closed
>>>
>>
>>
>> Notice that the class *Societe *have an attribute of type *Adresse*. the 
>> adresse has an attribute *Commune* . A set of "Soumission" are declared 
>> in *Commune* class by the annotation OneToMany like this
>>
>> @OneToMany(fetch = FetchType.LAZY, 
>>> mappedBy="commune",targetEntity=com.protid.prosa.shared.model.bo.Soumission.class)
>>> @Cascade(value = {CascadeType.ALL })
>>> private Set soumission =new HashSet();
>>>
>>> public Set getSoumission(){
>>> return soumission;
>>> }
>>>  
>>> }
>>>
>>
>>
>> i don't get where is the problem because i'm not looking  for the 
>> "soumission " objects in the Commune class !!!
>>
>>
>> here is my rpc cal function
>>
>>
>>
>> private void getCompany(){
>>> 
>>> SocieteServiceAsync rpc=clientFactory.getSocieteservicerpc();
>>>   
>>>  
>>> AsyncCallback> callback = new 
>>> AsyncCallback>() {
>>> public void onFailure(Throwable caught) {
>>> 
>>>}
>>>   
>>>  
>>> public void onSuccess(List result) {
>>>  
>>>   if(result!=null){
>>>   societe=result.get(0);
>>>result.get(0).getNomsociete();
>>> 
>>>   }
>>>  
>>> }
>>> };
>>> 
>>> rpc.list(callback);
>>>  
>>>  
>>> }
>>>
>>
>>
>> Please help, 
>>
>> Thank you
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [LazyInitializationException] failed to lazily initialize a collection of role

2013-06-11 Thread Sahli Sabrina


Le mardi 11 juin 2013 13:26:45 UTC, Sahli Sabrina a écrit :
>
> Hi everyOne,
> when i try to get a list of object in "Societe" class  
>
>
> i'm getting this exception
>  
>
> LazyInitializationException] failed to lazily initialize a collection of 
>> role: com.protid.prosa.shared.model.bo.Commune.soumission, no session or 
>> session was closed
>> [INFO] org.hibernate.LazyInitializationException: failed to lazily 
>> initialize a collection of role: 
>> com.protid.prosa.shared.model.bo.Commune.soumission, no session or session 
>> was closed
>>
>
>
> Notice that the class *Societe *have an attribute of type *Adresse*. the 
> adresse has an attribute *Commune* . A set of "Soumission" are declared 
> in *Commune* class by the annotation OneToMany like this
>
> @OneToMany(fetch = FetchType.LAZY, 
>> mappedBy="commune",targetEntity=com.protid.prosa.shared.model.bo.Soumission.class)
>> @Cascade(value = {CascadeType.ALL })
>> private Set soumission =new HashSet();
>>
>> public Set getSoumission(){
>> return soumission;
>> }
>>  
>> }
>>
>
>
> i don't get where is the problem because i'm not looking  for the 
> "soumission " objects in the Commune class !!!
>
>
> here is my rpc cal function
>
>
>
> private void getCompany(){
>> 
>> SocieteServiceAsync rpc=clientFactory.getSocieteservicerpc();
>>   
>>  
>> AsyncCallback> callback = new 
>> AsyncCallback>() {
>> public void onFailure(Throwable caught) {
>> 
>>}
>>   
>>  
>> public void onSuccess(List result) {
>>  
>>   if(result!=null){
>>   societe=result.get(0);
>>result.get(0).getNomsociete();
>> 
>>   }
>>  
>> }
>> };
>> 
>> rpc.list(callback);
>>  
>>  
>> }
>>
>
>
> Please help, 
>
> Thank you
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[LazyInitializationException] failed to lazily initialize a collection of role

2013-06-11 Thread Sahli Sabrina
Hi everyOne,
when i try to get a list of object in "Societe" class  


i'm getting this exception
 

LazyInitializationException] failed to lazily initialize a collection of 
> role: com.protid.prosa.shared.model.bo.Commune.soumission, no session or 
> session was closed
> [INFO] org.hibernate.LazyInitializationException: failed to lazily 
> initialize a collection of role: 
> com.protid.prosa.shared.model.bo.Commune.soumission, no session or session 
> was closed
>


Notice that the class *Societe *have an attribute of type *Adresse*. the 
adresse has an attribute *Commune* . A set of "Soumission" are declared in *
Commune* class by the annotation OneToMany like this

@OneToMany(fetch = FetchType.LAZY, 
> mappedBy="commune",targetEntity=com.protid.prosa.shared.model.bo.Soumission.class)
> @Cascade(value = {CascadeType.ALL })
> private Set soumission =new HashSet();
>
> public Set getSoumission(){
> return soumission;
> }
>  
> }
>


i don't get where is the problem because i'm not looking  for the 
"soumission " objects in the Commune class !!!


here is my rpc cal function



private void getCompany(){
> 
> SocieteServiceAsync rpc=clientFactory.getSocieteservicerpc();
>   
>  
> AsyncCallback> callback = new 
> AsyncCallback>() {
> public void onFailure(Throwable caught) {
> 
>}
>   
>  
> public void onSuccess(List result) {
>  
>   if(result!=null){
>   societe=result.get(0);
>result.get(0).getNomsociete();
> 
>   }
>  
> }
> };
> 
> rpc.list(callback);
>  
>  
> }
>


Please help, 

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Acitivities and places:problem in using eventBus

2013-06-07 Thread Sahli Sabrina
 
yes, the second activity started after the event is fired . Actually when  
i click in the button "next"
 in the first view, it called two functions in the first activity :
1.createSoumission() who fire the event 
2.and goto (Place SecondPlace)

i fixed the problem by switching the calls 

1. i call the goto (secondPlace)
2.createSoumission()


thank you a lot for you help, you saved my day 

Le vendredi 7 juin 2013 14:39:37 UTC+2, Donald Mteka a écrit :
>
>
> Is the second Activity ever started before you fire the event from first 
> Activity? Just check that you didn't fire the event before the second 
> Activity had the chance to start (hence register a handler).. Another 
> possibility would be different 'instances' of EventBus objects, which is 
> hardly the case as the bus was offered from PlaceHistoryHandler. 
>
> HTH.
>
>
> On Fri, Jun 7, 2013 at 2:57 PM, Sahli Sabrina 
> 
> > wrote:
>
>> ok thank you  a lot for the reply :) 
>>  
>>>
>>>  
>>>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Donald Mteka
> +255653105004
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Acitivities and places:problem in using eventBus

2013-06-07 Thread Sahli Sabrina
ok thank you  a lot for the reply :) 
 
>
>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Acitivities and places:problem in using eventBus

2013-06-07 Thread Sahli Sabrina
thank you for the reply here is the code


public class AddSoumissionEvent extends GwtEvent{
>
> public static TypeTYPE= new 
> Type();
> 
> 
> private Soumission soumission;
> public AddSoumissionEvent(Soumission soumission) {
>  
> this.soumission=soumission;
> 
> }
>
> public Soumission getSoumission() {
> return soumission;
> }
>
> public void setSoumission(Soumission soumission) {
> this.soumission = soumission;
> }
>
> @Override
> protected void dispatch(AddSoumissionHandler handler) {
>
> handler.onAddSoumissionHandler(this);
> 
> }
>
> @Override
> public com.google.gwt.event.shared.GwtEvent.Type 
> getAssociatedType() {
> // TODO Auto-generated method stub
> return TYPE;
> }
>
> 
> 
> 
> }
>
>
Le vendredi 7 juin 2013 13:21:27 UTC+2, Thomas Broyer a écrit :
>
> Can you show the code of the AddSoumissionEvent?
>
> On Friday, June 7, 2013 1:10:17 PM UTC+2, Sahli Sabrina wrote:
>>
>> Hi everyBody,
>>
>> I want to transfer an object from an activity to another one, for that i 
>> used the event bus:
>>
>> 1. i created an event "AddSoumissionEvent"  and handler 
>> "AddSoumissionHandler" 
>> 2.intialise the eventbus of the first activity with the eventBus offered 
>> in the start Function
>>
>>  
>>
>>
>>  public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
>>>  
>>> this.eventBus=eventBus;
>>> ...
>>>
>>> }
>>>
>>
>>
>>  
>>
>> 3.i  fire event in the first activity
>>
>> public void createSoumission(DynamicForm form) {
>>>  
>>> //create soumission
>>>
>>> Soumission soumission=new Soumission();
>>>
>>>   
>>>//initialize values
>>> 
>>>  //fire event
>>>
>>> eventBus.fireEvent(new AddSoumissionEvent(soumission));
>>> 
>>> }
>>>
>>>
>>
>> 4. the second activity receive the event ,i created the handler in in 
>> start funtion
>>
>>
>>
>> public void start(AcceptsOneWidget container, EventBus eventBus) {
>>>
>>>
>>> eventBus.addHandler(AddSoumissionEvent.TYPE, new AddSoumissionHandler(){
>>>
>>>   public void onAddSoumissionHandler(AddSoumissionEvent 
>>> event) {
>>>   System.out.println(" event received youp");
>>>   onAddSoum();
>>>
>>>   }
>>>   
>>>   
>>>   });
>>>
>>> }
>>>
>>
>>
>> the problem is the second activity doesn't receive the event :( i can't 
>> see where is the mistake .
>>
>> can anyone here tell me where is the mistake or give me a link for an 
>> example who shows how to use the eventBus with activities and places
>>
>> Thank you,
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Acitivities and places:problem in using eventBus

2013-06-07 Thread Sahli Sabrina
Hi everyBody,

I want to transfer an object from an activity to another one, for that i 
used the event bus:

1. i created an event "AddSoumissionEvent"  and handler 
"AddSoumissionHandler" 
2.intialise the eventbus of the first activity with the eventBus offered in 
the start Function

 


 public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
>  
> this.eventBus=eventBus;
> ...
>
> }
>


 

3.i  fire event in the first activity

public void createSoumission(DynamicForm form) {
>  
> //create soumission
>
> Soumission soumission=new Soumission();
>
>   
>//initialize values
> 
>  //fire event
>
> eventBus.fireEvent(new AddSoumissionEvent(soumission));
> 
> }
>
>

4. the second activity receive the event ,i created the handler in in start 
funtion



public void start(AcceptsOneWidget container, EventBus eventBus) {
>
>
> eventBus.addHandler(AddSoumissionEvent.TYPE, new AddSoumissionHandler(){
>
>   public void onAddSoumissionHandler(AddSoumissionEvent event) 
> {
>   System.out.println(" event received youp");
>   onAddSoum();
>
>   }
>   
>   
>   });
>
> }
>


the problem is the second activity doesn't receive the event :( i can't see 
where is the mistake .

can anyone here tell me where is the mistake or give me a link for an 
example who shows how to use the eventBus with activities and places

Thank you,










-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: gwt maven project ,update problem

2013-05-07 Thread sahli . sabrina
I just resolved the problem , it seem like files were generated in 
src\main\webapp\WEB-INF\classes folder so i deleted them and the project 
works fine now.

Thank you

Le lundi 6 mai 2013 09:32:54 UTC+1, sahli@gmail.com a écrit :
>
> hi,
>
>
> I have a gwt maven project, the problem is that the changes I make on the 
> application are not taken into account when running in jetty, how can i 
> do to resolve the problem? 
> please help me , 
> thank you a lot,
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: gwt maven project ,update problem

2013-05-06 Thread sahli . sabrina
I made the changes in java files (src/main/java ). And i run the 
application in devMode by using eclipse and i put the "gwt:run" command
After cleaning and re -runing the project i find that the java files 
generated are the old files (without change) and the samre execution 
results 

Thank you,

Le lundi 6 mai 2013 10:17:35 UTC+1, Thomas Broyer a écrit :
>
>
>
> On Monday, May 6, 2013 10:32:54 AM UTC+2, sahli@gmail.com wrote:
>>
>> hi,
>>
>>
>> I have a gwt maven project, the problem is that the changes I make on 
>> the application are not taken into account when running in jetty, how 
>> can i do to resolve the problem? 
>> please help me , 
>>
>
> Which kind of changes? (java? resources? in src/main/java or 
> src/main/resources?)
> Are you running in DevMode? How did you run it? (mvn gwt:run vs running 
> from your IDE)
> Are you making the changes in an IDE?
>
> BTW, the gwt-maven-plugin group is at 
> https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: gwt maven project ,update problem

2013-05-06 Thread sahli . sabrina

thank you for the reply, 

but i created the project using gwt-maven-archetypes :( . and i keep 
cleaning the project but i have the same problem



Le lundi 6 mai 2013 09:39:38 UTC+1, deepak chauhan a écrit :
>
> Tryto create the project using 
> https://github.com/tbroyer/gwt-maven-archetypes. I was also facing same 
> type of issues, but worked after using this archetype.
>
>
> On Mon, May 6, 2013 at 2:02 PM, > wrote:
>
>> hi,
>>
>>
>> I have a gwt maven project, the problem is that the changes I make on 
>> the application are not taken into account when running in jetty, how 
>> can i do to resolve the problem? 
>> please help me , 
>> thank you a lot,
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Deepak Chauhan 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




gwt maven project ,update problem

2013-05-06 Thread sahli . sabrina
hi,


I have a gwt maven project, the problem is that the changes I make on the 
application are not taken into account when running in jetty, how can i do 
to resolve the problem? 
please help me , 
thank you a lot,

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problem with the function "editRecord" in a DynamicForm (SmartGwt)

2013-03-29 Thread sahli . sabrina
Thank you so much for the reply,

I works fine in the showcase but the problem is a don't use XML for 
managing data so i think that the problem is in type of formItem used for 
displaying Date in the DynamicForm.

I used a FormItem and DateItem but i still had this problem but now  i'm 
using DateTimeItem , and strangely it works fine!! :)


Thank you,

Le vendredi 29 mars 2013 01:06:56 UTC+1, Sanjiv Jivan a écrit :
>
> This functionality works fine even for Date type fields. You can see this 
> by clicking any row in the grid which calls editRecord(..) on the form.
>
> http://www.smartclient.com/smartgwt/showcase/#featured_pattern_reuse
>
> If you're still having problems then post your question on the SmartGWT 
> forum including a minimal test case : 
> http://forums.smartclient.com/forumdisplay.php?f=14
>
> Thanks,
> Sanjiv
>
>
>
> On Mon, Mar 25, 2013 at 5:58 AM, >wrote:
>
>> i have in the GUI, a ListGrid and a DynamicForm. When i click on an 
>> element in the listGrid, i have to display the values of the edited record 
>> on the Dynamic form,
>> for this, i use the EditRecord(Record r) of the dynamicForm
>>
>>
>> public void updateInstanceDetailTabPane(Record record){
>>
>>   
>>  this.editionForm.editRecord(record);
>>
>>  }
>>
>>
>> it works however for the fields of type Date , the values displayed are 
>> the date of today and not the reel value of the field.
>>
>> My question is where is the problem and how can i display the values of 
>> type date with their reel values?
>>
>> thank you, 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Problem with the function "editRecord" in a DynamicForm (SmartGwt)

2013-03-25 Thread sahli . sabrina
i have in the GUI, a ListGrid and a DynamicForm. When i click on an element 
in the listGrid, i have to display the values of the edited record on the 
Dynamic form,
for this, i use the EditRecord(Record r) of the dynamicForm


public void updateInstanceDetailTabPane(Record record){
  
 
this.editionForm.editRecord(record);
  
}


it works however for the fields of type Date , the values displayed are the 
date of today and not the reel value of the field.

My question is where is the problem and how can i display the values of 
type date with their reel values?

thank you,

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to change the locale at runtime

2013-03-20 Thread sahli . sabrina
thank you for the reply, this is what i did and it works now :)

Le lundi 18 mars 2013 09:53:31 UTC+1, sahli@gmail.com a écrit :
>
> Hi, i'm beginner in gwt, how can i  change the locale language at runtime 
> like the 
> http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCheckBox, 
>
> thank you, 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to change the locale at runtime

2013-03-20 Thread sahli . sabrina


Le lundi 18 mars 2013 09:53:31 UTC+1, sahli@gmail.com a écrit :
>
> Hi, i'm beginner in gwt, how can i  change the locale language at runtime 
> like the 
> http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCheckBox, 
>
> thank you, 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to change the locale at runtime

2013-03-19 Thread sahli . sabrina
Hi, i'm beginner in gwt, how can i  change the locale language at runtime 
like the 
http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCheckBox, 

thank you, 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Problem installign gwt in eclipse

2012-06-07 Thread sahli sabrina
hi, i have eclipse version 3.5 and i want to set up gwt but i have
always this error message T

he operation cannot be completed. See the details.


details

Cannot complete the install because one or more required items could
not be found.
Software being installed: Google Plugin for Eclipse 3.5
2.6.1.v201205091048-rel-r35
(com.google.gdt.eclipse.suite.e35.feature.feature.group
2.6.1.v201205091048-rel-r35)
Missing requirement: Google Plugin for Eclipse 3.5 2.6.1.v201205091048-
rel-r35 (com.google.gdt.eclipse.suite.e35.feature.feature.group
2.6.1.v201205091048-rel-r35) requires 'org.eclipse.mylyn.commons.ui
0.0.0' but it could not be
found
.

can anyone help me to resolve this problem it is realy very important
and urgent for me

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.