Re: JSInterop and "JSON.stringify" method return "Converting circular structure to JSON"

2024-05-22 Thread Marco Tenti (IoProgrammo88)


I misunderstood the documentation... ty for the clarification Thomas can 
you give me some confirmations.

The Date issue, When you say to use the JsDate do you mean the one in the 
elemental2 package (elemental2.core.JsDate) or in the gwt core (
com.google.gwt.core.client.JsDate) ?

So for the Date issue i just enough to replace this code :

@JsProperty *public* *native* *Date* getDataRepertorioDocumento();

 

@JsProperty *public* *native* *void* setDataRepertorioDocumento(*Date* 
dataRepertorioDocumento);

 

With:

@JsProperty *public* *native* Js*Date* getDataRepertorioDocumento();

 

@JsProperty *public* *native* *void* setDataRepertorioDocumento(*JsDate* 
dataRepertorioDocumento);

 

Right ?

 

For the "List" and "Map" problem, i will probably try to use some 
@JsOverlay instead to use a second argument  on the JSON.stringify by the 
way can you point me out some example (i'm not very skilled with this 
library) ?  
Also I found this project updated for GWT 2.9.0 and java 11  
https://github.com/jp-solutions/gwt-interop-utils 
. it’s seem goof enough for my use case,  i’ll try out and let you know it. 

Il giorno mercoledì 22 maggio 2024 alle 11:50:10 UTC+2 Vassilis Virvilis ha 
scritto:

> or passing a @JsFunction to JSON.stringify() as its second argument 
>
>
> I wish I knew that some time before...
>  
> -- 
> Vassilis Virvilis
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/c3bf1105-8329-431a-a42d-97ce7b4871e8n%40googlegroups.com.


Re: Using JsInterop to create JS object literals

2024-05-21 Thread Marco Tenti (IoProgrammo88)
I thank you Thomas for the clarification unfortunately I am forced to use 
setters and getters because I cannot find another way to set the values and 
compile the GWT java client.
As you said I seem to have solved it with:

@JsProperty public native String getCodeAdministration();

@JsProperty public native void setCodeAdministration(String 
codeAdministration);

Il giorno martedì 21 maggio 2024 alle 17:15:59 UTC+2 Thomas Broyer ha 
scritto:

> With the following:
>
> @JsType(namespace = JsPackage.GLOBAL, name = "Object", isNative = true)
> public class XXXGWT {
> public String codiceAmministrazione;
> }
>
> you should be able to write:
>
> var xxx = new XXXGWT();
> xxx.codiceAmministrazione = "foo";
>
> and have it translate more or less to:
>
> let xxx = new $wnd.Object()
> xxx.codiceAmministrazione = "foo";
>
> With the getter and setter, you have to annotate them with @JsProperty, 
> but the generated JS will be identical, so you've actually only made your 
> code more verbose for no compelling reasons (besides maybe pleasing static 
> analyzers like Sonar that will yell if you don't encapsulate fields).
>
>
> On Tuesday, May 21, 2024 at 4:30:35 PM UTC+2 tenti...@gmail.com wrote:
>
> Just to be clear on my use case this is my java class:
>
> @JsType(namespace = JsPackage.GLOBAL, name = "Object", isNative = true)
> public class XXXGWT {
>
> private String codiceAmministrazione;
> 
> @JsConstructor
> public DocumentoPAC4DTOGWT() {}
>
> public native String getCodiceAmministrazione();
>
> public native void setCodiceAmministrazione(String codiceAmministrazione);
>
> }
>
> and this is the erorr i'm getting on the setter : 
>
>
> DesktopApp-0.js:13132 Tue May 21 16:24:02 GMT+200 2024 
> com.google.gwt.logging.client.LogConfiguration SEVERE: Exception caught: 
> (TypeError) : b.setCodiceAmministrazione is not a function 
> com.google.gwt.event.shared.UmbrellaException: Exception caught: 
> (TypeError) : b.setCodiceAmministrazione is not a function
> Il giorno martedì 21 maggio 2024 alle 14:56:22 UTC+2 Marco Tenti 
> (IoProgrammo88) ha scritto:
>
> Sorry Thomas about your last comment "  I'd rather user fields than 
> getters/setters for such objects "  can you point me out to some example 
> for this ?
>
> Il giorno mercoledì 29 giugno 2022 alle 09:48:49 UTC+2 Thomas Broyer ha 
> scritto:
>
> Using isNative=true, you're telling GWT that you're only "mapping" in Java 
> a *type* that exists in JS. The default naming rule is that the full name 
> of that type is the fully qualified name of the Java class, you can change 
> the simple name with 'name', and the *prefix* with namespace (which 
> defaults to the package name for top-level classes, or the enclosing type's 
> JS name for nested classes). So with namespace=GLOBAL but without the 
> name="Object", you're saying that you want to basically do a 'new 
> $wnd.MyPluginConfig()' in JS, and the browser rightfully complains that 
> there's no such MyPluginConfig. Adding name="Object" means you'll do a 'new 
> $wnd.Object()' in JS.
>
> Fwiw, I'd rather user fields than getters/setters for such objects. YMMV.
>
> On Wednesday, June 29, 2022 at 8:38:19 AM UTC+2 Nicolas Chamouard wrote:
>
> Thank you !
> It is a bit mysterious to me, but with *name = "Object"* the constructor 
> works :)
>
>
> Le mercredi 29 juin 2022 à 00:47:32 UTC+2, m.conr...@gmail.com a écrit :
>
> try adding name = "Object" so that it uses an empty javascript Object as 
> the wrapped item.
>
> I found this via Googling:
>
> @JsType(namespace = JsPackage.GLOBAL, isNative = true, name = "Object") 
> public class MyPluginConfig { @JsProperty public void set(String 
> str); @JsProperty public String get(); ... }
>
> Ref: https://stackoverflow.com/a/36329387/12407701
>
>
> On Tue, Jun 28, 2022 at 6:24 PM Nicolas Chamouard  
> wrote:
>
> Yes, it does not change anything : 
>
> @JsType(*isNative*=*true*, *namespace* = JsPackage.*GLOBAL*)
>
> *public* *class* OptionOverrides {
>
>
> @JsConstructor
>
> *public* OptionOverrides() {}
>
> 
>
> @JsProperty
>
> *public* *native* String getInitialView();
>
> @JsProperty
>
> *public* *native* *void* setInitialView(String initialView);
>
> }
>
>
> Still the same error : *$wnd.OptionOverrides is not a constructor*
>
> Le mardi 28 juin 2022 à 23:27:08 UTC+2, m.conr...@gmail.com a écrit :
>
> Have you tried giving the class a constructor?
>
>
> On Tue, Jun 28, 2022 at 4:04 PM Nicolas Chamouard  
> wrote:
>
> Hello,

Re: Using JsInterop to create JS object literals

2024-05-21 Thread Marco Tenti (IoProgrammo88)
Just to be clear on my use case this is my java class:

@JsType(namespace = JsPackage.GLOBAL, name = "Object", isNative = true)
public class XXXGWT {

private String codiceAmministrazione;

@JsConstructor
public DocumentoPAC4DTOGWT() {}

public native String getCodiceAmministrazione();

public native void setCodiceAmministrazione(String codiceAmministrazione);

}

and this is the erorr i'm getting on the setter : 


DesktopApp-0.js:13132 Tue May 21 16:24:02 GMT+200 2024 
com.google.gwt.logging.client.LogConfiguration SEVERE: Exception caught: 
(TypeError) : b.setCodiceAmministrazione is not a function 
com.google.gwt.event.shared.UmbrellaException: Exception caught: 
(TypeError) : b.setCodiceAmministrazione is not a function
Il giorno martedì 21 maggio 2024 alle 14:56:22 UTC+2 Marco Tenti 
(IoProgrammo88) ha scritto:

> Sorry Thomas about your last comment "  I'd rather user fields than 
> getters/setters for such objects "  can you point me out to some example 
> for this ?
>
> Il giorno mercoledì 29 giugno 2022 alle 09:48:49 UTC+2 Thomas Broyer ha 
> scritto:
>
>> Using isNative=true, you're telling GWT that you're only "mapping" in 
>> Java a *type* that exists in JS. The default naming rule is that the 
>> full name of that type is the fully qualified name of the Java class, you 
>> can change the simple name with 'name', and the *prefix* with namespace 
>> (which defaults to the package name for top-level classes, or the enclosing 
>> type's JS name for nested classes). So with namespace=GLOBAL but without 
>> the name="Object", you're saying that you want to basically do a 'new 
>> $wnd.MyPluginConfig()' in JS, and the browser rightfully complains that 
>> there's no such MyPluginConfig. Adding name="Object" means you'll do a 'new 
>> $wnd.Object()' in JS.
>>
>> Fwiw, I'd rather user fields than getters/setters for such objects. YMMV.
>>
>> On Wednesday, June 29, 2022 at 8:38:19 AM UTC+2 Nicolas Chamouard wrote:
>>
>>> Thank you !
>>> It is a bit mysterious to me, but with *name = "Object"* the 
>>> constructor works :)
>>>
>>>
>>> Le mercredi 29 juin 2022 à 00:47:32 UTC+2, m.conr...@gmail.com a écrit :
>>>
>>>> try adding name = "Object" so that it uses an empty javascript Object 
>>>> as the wrapped item.
>>>>
>>>> I found this via Googling:
>>>>
>>>> @JsType(namespace = JsPackage.GLOBAL, isNative = true, name = "Object")
>>>> public class MyPluginConfig {
>>>> @JsProperty public void set(String str);
>>>> @JsProperty public String get();
>>>> ...
>>>> }
>>>>
>>>> Ref: https://stackoverflow.com/a/36329387/12407701
>>>>
>>>>
>>>> On Tue, Jun 28, 2022 at 6:24 PM Nicolas Chamouard <
>>>> ncham...@alara-group.fr> wrote:
>>>>
>>>>> Yes, it does not change anything : 
>>>>>
>>>>> @JsType(*isNative*=*true*, *namespace* = JsPackage.*GLOBAL*)
>>>>>
>>>>> *public* *class* OptionOverrides {
>>>>>
>>>>>
>>>>> @JsConstructor
>>>>>
>>>>> *public* OptionOverrides() {}
>>>>>
>>>>> 
>>>>>
>>>>> @JsProperty
>>>>>
>>>>> *public* *native* String getInitialView();
>>>>>
>>>>> @JsProperty
>>>>>
>>>>> *public* *native* *void* setInitialView(String initialView);
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>> Still the same error : *$wnd.OptionOverrides is not a constructor*
>>>>>
>>>>> Le mardi 28 juin 2022 à 23:27:08 UTC+2, m.conr...@gmail.com a écrit :
>>>>>
>>>>>> Have you tried giving the class a constructor?
>>>>>>
>>>>>>
>>>>>> On Tue, Jun 28, 2022 at 4:04 PM Nicolas Chamouard <
>>>>>> ncham...@alara-group.fr> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I am using JsInterop to integrate FullCalendar to my GWT application.
>>>>>>> As described here https://fullcalendar.io/docs/initialize-globals, 
>>>>>>> I am supposed to create an object literal and pass it to the Calendar() 
>>>>>>> constructor.
>>>>>>>
>>>>>>

Re: Using JsInterop to create JS object literals

2024-05-21 Thread Marco Tenti (IoProgrammo88)
Sorry Thomas about your last comment "  I'd rather user fields than 
getters/setters for such objects "  can you point me out to some example 
for this ?

Il giorno mercoledì 29 giugno 2022 alle 09:48:49 UTC+2 Thomas Broyer ha 
scritto:

> Using isNative=true, you're telling GWT that you're only "mapping" in Java 
> a *type* that exists in JS. The default naming rule is that the full name 
> of that type is the fully qualified name of the Java class, you can change 
> the simple name with 'name', and the *prefix* with namespace (which 
> defaults to the package name for top-level classes, or the enclosing type's 
> JS name for nested classes). So with namespace=GLOBAL but without the 
> name="Object", you're saying that you want to basically do a 'new 
> $wnd.MyPluginConfig()' in JS, and the browser rightfully complains that 
> there's no such MyPluginConfig. Adding name="Object" means you'll do a 'new 
> $wnd.Object()' in JS.
>
> Fwiw, I'd rather user fields than getters/setters for such objects. YMMV.
>
> On Wednesday, June 29, 2022 at 8:38:19 AM UTC+2 Nicolas Chamouard wrote:
>
>> Thank you !
>> It is a bit mysterious to me, but with *name = "Object"* the constructor 
>> works :)
>>
>>
>> Le mercredi 29 juin 2022 à 00:47:32 UTC+2, m.conr...@gmail.com a écrit :
>>
>>> try adding name = "Object" so that it uses an empty javascript Object as 
>>> the wrapped item.
>>>
>>> I found this via Googling:
>>>
>>> @JsType(namespace = JsPackage.GLOBAL, isNative = true, name = "Object")
>>> public class MyPluginConfig {
>>> @JsProperty public void set(String str);
>>> @JsProperty public String get();
>>> ...
>>> }
>>>
>>> Ref: https://stackoverflow.com/a/36329387/12407701
>>>
>>>
>>> On Tue, Jun 28, 2022 at 6:24 PM Nicolas Chamouard <
>>> ncham...@alara-group.fr> wrote:
>>>
 Yes, it does not change anything : 

 @JsType(*isNative*=*true*, *namespace* = JsPackage.*GLOBAL*)

 *public* *class* OptionOverrides {


 @JsConstructor

 *public* OptionOverrides() {}

 

 @JsProperty

 *public* *native* String getInitialView();

 @JsProperty

 *public* *native* *void* setInitialView(String initialView);

 }


 Still the same error : *$wnd.OptionOverrides is not a constructor*

 Le mardi 28 juin 2022 à 23:27:08 UTC+2, m.conr...@gmail.com a écrit :

> Have you tried giving the class a constructor?
>
>
> On Tue, Jun 28, 2022 at 4:04 PM Nicolas Chamouard <
> ncham...@alara-group.fr> wrote:
>
>> Hello,
>>
>> I am using JsInterop to integrate FullCalendar to my GWT application.
>> As described here https://fullcalendar.io/docs/initialize-globals, I 
>> am supposed to create an object literal and pass it to the Calendar() 
>> constructor.
>>
>> I have managed to create this class : 
>>
>> @JsType(*namespace* = JsPackage.*GLOBAL*)
>>
>> *public* *class* OptionOverrides {
>>
>>
>> @JsProperty
>>
>> *public* *native* String getInitialView();
>>
>> @JsProperty
>>
>> *public* *native* *void* setInitialView(String initialView);
>>
>> }
>>
>> It works but the FullCalendar complains about all the Java Object 
>> stuff that is translated to javascript : equals(), hashCode(), etc
>>
>> I have tried to add* isNative=true* to my class, but in this case i 
>> cannot instantiate it in Java (error : $wnd.OptionOverrides is not a 
>> constructor)
>>
>> Is there an other way to do this, am I missing something here ?
>>
>> Thanks
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to google-web-tool...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-web-toolkit/a03c881a-48d4-4892-9fae-7719bc9a57b8n%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "GWT Users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to google-web-tool...@googlegroups.com.

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-web-toolkit/4d8099ea-3a37-4026-b459-f228e35ca59bn%40googlegroups.com
  
 
 .

>>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe 

Re: Problems moving JsInterop from GWT 2.7 to 2.8

2024-04-15 Thread Marco Tenti (IoProgrammo88)
" I also solved the problem of List and Map with an own Interface, which is 
an ArrayList/HashMap on serverside and an own implemented native List/Map 
on gwt side" can you share the solution ?

Il giorno venerdì 29 settembre 2017 alle 14:00:12 UTC+2 Ignacio Baca 
Moreno-Torres ha scritto:

> We have been using this technique for more than a year and it works 
> perfectly. We call it "Java Notation Object", hehe and you should 
> understand the limitations, which more or less you are currently 
> fulfilling. Just a few changes...
>
> The most important, yes, you should use 
> @JsType(isNative=true,namespace=GLOBAL,name="Object"), so you are actually 
> ignoring any kind of typing, so this is more a "scheme" of where to find 
> things than an actual typed object. This is pretty important! This is 
> pretty similar to JSON but in Java, and these classes are not actually Java 
> classes, are just a scheme. All these limitations are the common 
> intersection of the feature between Java and JS.
>
> You can do some tricks to use collections but we end up removing all of 
> them and using arrays instead. But, to make it easy to work with, we added 
> some @JsOverlay to return or set the Collection. For example if you have 
> "String[] roles" you can add "@JsOverlay getRoleSet() { return 
> Stream.of(roles).collecto(toSet()); }". Overlays are ok bc there are just 
> like extension method or static method, so no behavior is added to the 
> object.
>
> This work perfectly on both sides, but there is a small annoying 
> difference between GWT and Java, in java new Foo() will initialize 
> primitive types and in GWT (js) will not. So we never use constructor 
> directly, in the kind of classes we always add a static factory method and 
> we initialize any non-nullable field, even primitives! So in java you are 
> actually creating the object of the specified type, but in JS you are just 
> calling "new Object()", but it is ok, bc where are using a scheme, no a 
> type. And we never use instanceof on these schemes! This will work on the 
> Java side, but I strongly discourage, you should not need to do that.
>
> Finally, we never use getter and setter, don't make sense, you "cannot use 
> inheritance" (you can use with some ticks too, for example using some int 
> or string field as the type indicator and using, for example, the visitor 
> pattern to traverse, this is what actually people need to do in JS so, no 
> magic just the common intersection of features between java and json), 
> almost everything is like final and you must not add behavior, so it is 
> much explicit and easier to just make all field public.
>
> I think the first you should do is removing getters and setters, and add 
> @JsType(native,Object) to all your types, this refactor can be done almost 
> instantly in your IDE (inline method). Then stop using Collection might not 
> be so easy to refactor. So you might continue using it either using 
> overlays or creating a custom jsinterop-compatible type. In this case, I 
> recommend to not to use the whole java.util API bc it will force you to 
> export the whole API and use generateJsInteropExports. If you are really 
> interested or need help there just ask, but just try out avoiding maps, and 
> using arrays. Anyways, the "Map/List own interface" should work too, just 
> neet to make it work.
>
> On Fri, Sep 29, 2017 at 12:53 PM Thomas Broyer  wrote:
>
>>
>>
>> On Friday, September 29, 2017 at 11:09:42 AM UTC+2, Jürgen Beringer wrote:
>>>
>>> Hey,
>>>
>>> currently  I tried the 2. time to move our application from gwt 2.7 to 
>>> gwt 2.8, but I have big problems with the changes of JsInterop.
>>>
>>> The application contains a serverside java part, running in a jetty and 
>>> the client part, build with gwt, so I can reuse many software on server and 
>>> client side. (It is the main part of the website  www.spreadshirt.com )
>>> To use also the same data classes (containing only fields with getter 
>>> and setter, no other methods) on both sides, I used JsInterop and it works 
>>> very well with gwt 2.7 and exchanged the data as json.
>>>
>>> Example Data class:
>>>
>>> @JsType
>>> public class MyObject {
>>> private String id;
>>> 
>>> @JsProperty
>>> public String getId() {
>>> return id;
>>> }
>>> @JsProperty
>>> public void setId(String id) {
>>> this.id = id;
>>> }
>>> }
>>>
>>>
>>> The class can be used on server side like any normal java class with any 
>>> REST Framework. On gwt side I was able to convert a transmitted json to the 
>>> class with:
>>>
>>>
>>> MyObject myObject = getJsTypeObject(JsonUtils.safeEval(jsonString));
>>> //use getter and setter to access fields
>>>
>>> public static native  T getJsTypeObject(JavaScriptObject result)/*-{
>>> return result;
>>> }-*/;
>>>
>>>
>>> And to create Objects on gwt side and send them to the server as json:
>>>
>>> MyObject myObject = new MyObject();
>>> myObject.setId("1");
>>> String 

Re: Help to undrerstand how to use domino-jackson and the annotation JSONMapper

2024-04-15 Thread Marco Tenti (IoProgrammo88)
I also try to use the external approach described here 
https://dominokit.com/solutions/domino-jackson/v1/docs/getting-started/define-mappers
 
but it should be the same i must have the XXMapperImpl somewhere , but the 
java compiler tell me that class do not exists. Maybe there is some maven 
configuration to add somewehre ?

Il giorno lunedì 15 aprile 2024 alle 09:16:49 UTC+2 Marco Tenti 
(IoProgrammo88) ha scritto:

> The problem i cannot find the generate class "Person_MapperImpl" is under 
> the target folder somewhere ?
>
> Il giorno venerdì 12 aprile 2024 alle 18:25:30 UTC+2 Thomas Broyer ha 
> scritto:
>
>> Aren't you supposed to directly use the generated class rather than using 
>> GWT.create() ? (unless you also added a  in your gwt.xml)
>>
>> https://dominokit.com/solutions/domino-jackson/v1/docs/getting-started/quick-start
>>
>> On Friday, April 12, 2024 at 1:20:27 PM UTC+2 tenti...@gmail.com wrote:
>>
>>> I'm upgrading a old project and i want to replace the old gwt-jackson (
>>> https://dominokit.com/solutions/domino-jackson/v1)  with the 
>>> domino-jackson project (https://github.com/DominoKit/domino-jackson).
>>>
>>> It should be a simple transiction, but i cannot understand how to let 
>>> the GWT compilation "see" the implementations classes of the ObjectMapper 
>>> interface.
>>>
>>> *Here the "old" code from gwt-jackson*
>>>
>>> *public static interface AltriMetadatiDTOMapper extends 
>>> com.github.nmorel.gwtjackson.client.ObjectMapper>>
>>>  
>>> {} *
>>>
>>> * ... *
>>>
>>> * AltriMetadatiDTOMapper altriMetadatiDTOMapper = 
>>> GWT.create(AltriMetadatiDTOMapper.class); String jsonAltriMetadati = 
>>> altriMetadatiDTOMapper.write(object); *
>>>
>>> *Here the "new" code from domino-jackson*
>>> *@org.dominokit.jackson.annotation.JSONMapper public interface 
>>> AltriMetadatiDTOMapper extends 
>>> org.dominokit.jackson.ObjectMapper>> {}*
>>>
>>> * ... *
>>>
>>> * AltriMetadatiDTOMapper altriMetadatiDTOMapper = 
>>> GWT.create(AltriMetadatiDTOMappe.class); String jsonAltriMetadati = 
>>> altriMetadatiDTOMapper.write(object); *
>>>
>>> but it give to me this error
>>> [ERROR] Errors in 'xxx.java' [INFO] [ERROR] Line 662: Rebind result 
>>> 'xxx.AltriMetadatiDTOMapper' must be a class
>>>
>>> Did anyone know what i'm doing wrong ?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/226c4807-d150-4d8b-8baa-9426c0686e08n%40googlegroups.com.


Re: Help to undrerstand how to use domino-jackson and the annotation JSONMapper

2024-04-15 Thread Marco Tenti (IoProgrammo88)
The problem i cannot find the generate class "Person_MapperImpl" is under 
the target folder somewhere ?

Il giorno venerdì 12 aprile 2024 alle 18:25:30 UTC+2 Thomas Broyer ha 
scritto:

> Aren't you supposed to directly use the generated class rather than using 
> GWT.create() ? (unless you also added a  in your gwt.xml)
>
> https://dominokit.com/solutions/domino-jackson/v1/docs/getting-started/quick-start
>
> On Friday, April 12, 2024 at 1:20:27 PM UTC+2 tenti...@gmail.com wrote:
>
>> I'm upgrading a old project and i want to replace the old gwt-jackson (
>> https://dominokit.com/solutions/domino-jackson/v1)  with the 
>> domino-jackson project (https://github.com/DominoKit/domino-jackson).
>>
>> It should be a simple transiction, but i cannot understand how to let the 
>> GWT compilation "see" the implementations classes of the ObjectMapper 
>> interface.
>>
>> *Here the "old" code from gwt-jackson*
>>
>> *public static interface AltriMetadatiDTOMapper extends 
>> com.github.nmorel.gwtjackson.client.ObjectMapper>>
>>  
>> {} *
>>
>> * ... *
>>
>> * AltriMetadatiDTOMapper altriMetadatiDTOMapper = 
>> GWT.create(AltriMetadatiDTOMapper.class); String jsonAltriMetadati = 
>> altriMetadatiDTOMapper.write(object); *
>>
>> *Here the "new" code from domino-jackson*
>> *@org.dominokit.jackson.annotation.JSONMapper public interface 
>> AltriMetadatiDTOMapper extends 
>> org.dominokit.jackson.ObjectMapper>> {}*
>>
>> * ... *
>>
>> * AltriMetadatiDTOMapper altriMetadatiDTOMapper = 
>> GWT.create(AltriMetadatiDTOMappe.class); String jsonAltriMetadati = 
>> altriMetadatiDTOMapper.write(object); *
>>
>> but it give to me this error
>> [ERROR] Errors in 'xxx.java' [INFO] [ERROR] Line 662: Rebind result 
>> 'xxx.AltriMetadatiDTOMapper' must be a class
>>
>> Did anyone know what i'm doing wrong ?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/ebe6821a-dc64-4cd9-bf5f-5d9e4d230e40n%40googlegroups.com.


Re: Really need help getting CodeServer to run with Java 11 and GWT 2.10

2024-04-12 Thread Marco Tenti (IoProgrammo88)
This project has many good examples to check 
out https://github.com/NaluKit/nalu-examples, it help me a lot.

Il giorno venerdì 12 aprile 2024 alle 14:39:16 UTC+2 Mathias ha scritto:

> Hey Jens, thanks for replying!
>
> re. the gwt-type:
>
> 1. I only have one maven module that contains the entry point. the "gwt 
> client" module
> 2. All dependencies are either on third-party such as Lombok, or my own 
> other modules that only contain java classes and are built as jar-files.
> 3. I added the "type" gwt-lib to the dependencies in the "gwt client" pom, 
> but I didn't do anything to the pom files in the jar modules that the gwt 
> client depend on. I mean, Lombok doesn't have a packaging 
> gwt-lib in its pom, either. 
>
> On Friday 12 April 2024 at 11:15:38 UTC+2 Jens wrote:
>
>> A full example for multiple maven modules (more than just three) can be 
>> found here: 
>> https://github.com/tbroyer/gwt-maven-plugin/tree/main/src/it/e2e
>>
>> You have to add gwt-lib to your own maven library 
>> modules that contain a module.gwt.xml file. Maybe you forgot that?
>>
>> -- J.
>>
>> Mathias schrieb am Freitag, 12. April 2024 um 07:50:42 UTC+2:
>>
>>> I *really* could use some help getting my project up for development 
>>> after moving to gwt 2.10 and Java 11.
>>> I can unfortunately nolonger use the GWT intellij plugin i've loved and 
>>> used for 12 years apparently, and i'm struggling a bit to get the 
>>> codeserver running for my project.
>>>
>>> *CURRENT STATUS:*
>>> My project is over 12 years, but i migrated it from the old gwt mojo 
>>> plugin to the new tbroyer one last year.
>>> It builds into a war fine and deploys on tomcat. Prior to the migration 
>>> to GWT 2.10 (with new Jetty) and Java 11, i could run it with the GWT 
>>> Intellij plugin, which I've loved and used for those same 12 years. 
>>> But now the plugin unfortunately doesn't work, and from what I can tell 
>>> due to the JettyLauncher, (I get lots of classnotfounds for for example 
>>> javax.sql.DataSource)  it's kind of impossible to make it run? So I thought 
>>> I'd try what people have been saying, move to the manual thing with server 
>>> and code server, even though it's a more cumbersome setup.
>>>
>>> As part of trying to get this show on the road, i created an archetype 
>>> project and got codeserver and server running according to the new v2 
>>> tutorial. This works fine.
>>>
>>> *PROBLEM:*
>>> Basically i can't get the codeserver to run. My project is pretty large 
>>> so my "webclient" module that contains my gwt client has a bunch of 
>>> dependencies on my own child modules, and a couple of third-party ones such 
>>> as Lombok.
>>>
>>>
>>> When i try the codeserver with this command (from the tutorial)
>>> * mvn gwt:codeserver -pl webclient -am*
>>>
>>> ,where the webclient is the module containing the gwt code and entry 
>>> point, standing in the root dir of my project,
>>> ,i get page up and page down filled with missing dependencies from stuff 
>>> and "did you forget to inherit"-errors. (see error extract at the bottom)
>>>
>>> -I'm not sure if this has something to do with the "workdir", the 
>>> directory i stand in when i try to start the codeserver as described above, 
>>> some dependency declaration i'm missing or something else.
>>>
>>> -My dependencies should be ok since i can build it with the plugin, so 
>>> i'm a bit at a loss as to how make this work.
>>>
>>> -Help would be much appreciated, right now i can't develop and rolling 
>>> our project back to 2.8 and Java 8 wouldn't be great and take time. Man how 
>>> I wish that the intellij plugin had just kept working.
>>>
>>> as a final aside:
>>> The "neither a gwt-lib or jar" warning messages in the error log below - 
>>> i still get it if i add the gwt-lib type to the dependency, and the 
>>> archetype project prints the same error when created.
>>>
>>> *Extract from the error log:*
>>>
>>> [INFO] Ignoring com.myproject:generalcommons:jar:1.0-SNAPSHOT; neither a 
>>> gwt-lib or jar:sources; Did you forget to use gwt-lib in the 
>>> dependency declaration?
>>> [INFO] Ignoring com.myproject:webshared:jar:1.0-SNAPSHOT; neither a 
>>> gwt-lib or jar:sources; Did you forget to use gwt-lib in the 
>>> dependency declaration?
>>> [INFO] Ignoring com.myproject:webmaps:jar:1.0-SNAPSHOT; neither a 
>>> gwt-lib or jar:sources; Did you forget to use gwt-lib in the 
>>> dependency declaration?
>>> [INFO] Ignoring com.myproject:webshared:jar:1.0-SNAPSHOT; neither a 
>>> gwt-lib or jar:sources; Did you forget to use gwt-lib in the 
>>> dependency declaration?
>>> [INFO] Turning off precompile in incremental mode.
>>> [INFO] Super Dev Mode starting up
>>> [INFO]workDir: 
>>> /Users/mathias/.projects/myproject/target/gwt/codeserver
>>> [INFO][WARN] Deactivated PrecompressLinker
>>> [INFO] 19:00:51.710 [main] INFO org.eclipse.jetty.util.log - Logging 
>>> initialized @778ms to org.eclipse.jetty.util.log.Slf4jLog
>>> [INFO] 19:00:51.714 [main] DEBUG 
>>> 

Help to undrerstand how to use domino-jackson and the annotation JSONMapper

2024-04-12 Thread Marco Tenti (IoProgrammo88)
I'm upgrading a old project and i want to replace the old gwt-jackson 
(https://dominokit.com/solutions/domino-jackson/v1)  with the 
domino-jackson project (https://github.com/DominoKit/domino-jackson).

It should be a simple transiction, but i cannot understand how to let the 
GWT compilation "see" the implementations classes of the ObjectMapper 
interface.

*Here the "old" code from gwt-jackson*

*public static interface AltriMetadatiDTOMapper extends 
com.github.nmorel.gwtjackson.client.ObjectMapper>>
 
{} *

* ... *

* AltriMetadatiDTOMapper altriMetadatiDTOMapper = 
GWT.create(AltriMetadatiDTOMapper.class); String jsonAltriMetadati = 
altriMetadatiDTOMapper.write(object); *

*Here the "new" code from domino-jackson*
*@org.dominokit.jackson.annotation.JSONMapper public interface 
AltriMetadatiDTOMapper extends 
org.dominokit.jackson.ObjectMapper>> {}*

* ... *

* AltriMetadatiDTOMapper altriMetadatiDTOMapper = 
GWT.create(AltriMetadatiDTOMappe.class); String jsonAltriMetadati = 
altriMetadatiDTOMapper.write(object); *

but it give to me this error
[ERROR] Errors in 'xxx.java' [INFO] [ERROR] Line 662: Rebind result 
'xxx.AltriMetadatiDTOMapper' must be a class

Did anyone know what i'm doing wrong ?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/bc645145-3583-48ea-a757-ec2a2ad700c5n%40googlegroups.com.


Re: How to debug the java code on the eclipse ide with the tbroyer gwt maven plugin ?

2023-12-11 Thread Marco Tenti (IoProgrammo88)
So this debug mode is deprecated  
https://www.gwtproject.org/doc/latest/tutorial/debug.html  ? 

When I launch the "gwt:codeServer" command, i  go to the sources panel of 
the browser chrome, and I can browse the code and set the breakpoints , but 
I can not "see" the runtime values of the variables as it happens with 
standard javascript is this correct ?

 [image: ErrorPskCallStack.png]

Il giorno lunedì 4 dicembre 2023 alle 13:30:37 UTC+1 Ralph Fiergolla ha 
scritto:

> If I am not mistaken, you are mixing up things a little: the issue you 
> were looking at here https://github.com/tbroyer/gwt-maven-plugin/issues/82 
> is not about debugging the generated client part of your application, but 
> about the compiler that is actually generating the code you want to debug. 
>
> To avoid wasting your time trying to set up the Eclipse Plugin I would 
> suggest using your browser's built-in development tools (Ctrl+Shift+I). You 
> will see your JAVA source code and can put your breakpoints etc. and step 
> through your code. This works in Chrome, Firefox, Edge.
>
> Bon courage
> Ralph
>
> On Mon, Dec 4, 2023 at 1:16 PM Marco Tenti (IoProgrammo88) <
> tenti...@gmail.com> wrote:
>
>> Hello everyone, I am updating some old gwt projects and I started to 
>> study about 15 days ago the gwt framework, this is to specify that I don't 
>> know all the secrets of the framework yet.
>>
>> Following Nalu's approach and starting from his example at 
>> https://github.com/NaluKit/nalu-examples/tree/main/nalu-simple-app-example, 
>> I was able to start with the gwt:codeserver both client and server part of 
>> my projects successfully.
>>
>> Unfortunately, I still haven't figured out what I need to do to 
>> enablethe  debugging on the client part of the project on the IDE eclipse.
>>
>> I've read in this issue 
>> https://github.com/tbroyer/gwt-maven-plugin/issues/82 a possible 
>> solution, but it doesn't seem to work, I'm 100% sure I'm doing something 
>> wrong myself., can anyone tell me looking at Nalu's example what additional 
>> commands I need to set to configure to debugging on the client java code in 
>> the eclipse ide ?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-tool...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-web-toolkit/3369c8a1-d86f-40de-9816-d35d865a1e4en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-web-toolkit/3369c8a1-d86f-40de-9816-d35d865a1e4en%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/ed37a5ea-c5fa-4a74-9c37-3839311f410en%40googlegroups.com.


How to debug the java code on the eclipse ide with the tbroyer gwt maven plugin ?

2023-12-04 Thread Marco Tenti (IoProgrammo88)
Hello everyone, I am updating some old gwt projects and I started to study 
about 15 days ago the gwt framework, this is to specify that I don't know 
all the secrets of the framework yet.

Following Nalu's approach and starting from his example at 
https://github.com/NaluKit/nalu-examples/tree/main/nalu-simple-app-example, 
I was able to start with the gwt:codeserver both client and server part of 
my projects successfully.

Unfortunately, I still haven't figured out what I need to do to enablethe  
debugging on the client part of the project on the IDE eclipse.

I've read in this issue 
https://github.com/tbroyer/gwt-maven-plugin/issues/82 a possible solution, 
but it doesn't seem to work, I'm 100% sure I'm doing something wrong 
myself., can anyone tell me looking at Nalu's example what additional 
commands I need to set to configure to debugging on the client java code in 
the eclipse ide ?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/3369c8a1-d86f-40de-9816-d35d865a1e4en%40googlegroups.com.


Re: Our 10+ year journey with GWT (+ job opening)

2021-01-21 Thread Marco Castillo
It is nice to hear all this experience with GWT. I would like to share 
mine. I'm based in Guatemala, our development team develop a product, 
Axeso, it is a product that enhances the security in Google Apps (next 
GSuite, now Google Workspace). We develop the administrator console using 
GWT, the backend in Google App Engine using java mainly and NoSQL 
databases, and at this time (almost ten years later) we're deciding what 
new framework would be the successor of GWT.
I was considering https://gwtmaterialdesign.github.io/gwt-material-demo/, 
we would like to give our console a more material design look. And with all 
the stories I just read, maybe I will ditch React (it was going to be our 
choosed framework for substituting GWT) and kept GWT.
Regards


Marco
On Wednesday, January 20, 2021 at 10:14:32 AM UTC-6 David Nouls wrote:

> That is actually a good point indeed. We also have very old tech in 
> production including some ALGOL.
>
> I do have the impression that the JS Frameworks race has been slowing down 
> a bit. Sure there will always be some new ideas, but the big frameworks are 
> there for quite some.
>
> At least with GWT/Java it is rather easy to maintain! GWT does not change 
> much, sometimes that is an advantage.
> On 20 Jan 2021, 16:48 +0100, lofid...@gmail.com , 
> wrote:
>
> IMHO that's the problem with frameworks / languages. If they are "strong 
> enough" they won't be gone... I don't think that TypeScript / Vue.js / 
> React / Angular etc. will be vanished. They will stay forever just like 
> COBOL and other technologies like Borland / Embarcadero Delphi Object 
> Pascal. My comment above was a joke, because I don't know what will happen 
> in 10 years. There will be another hot things. Maybe we move completely on 
> the native client development instead of Web browser? But who knows...
>
> So at the end of the day the devs need to maintain apps with the zoo of 
> frameworks and languages.  
>
> Scary if you see this history of web frameworks: 
> https://raw.githubusercontent.com/mraible/history-of-web-frameworks-timeline/master/history-of-web-frameworks-timeline.png
>
> I think, it's time that the development of apps / Web apps should go 
> higher in the abstraction level to be technology / framework independent. 
> PIM (Platform Independent Model) anyone?  
>
> BTW.: I still have JSPs in production. Also COBOL 
>
> Cheers,
> Lofi
> t.br...@gmail.com schrieb am Mittwoch, 20. Januar 2021 um 14:36:30 UTC+1:
>
>> Why did you bet on GWT 10 years ago and wouldn't bet on TypeScript 
>> nowadays? 
>> (fwiw, TypeScript is already 8 years old; Vue.js is 6 years old, React is 
>> 7)
>>
>> On Tuesday, January 19, 2021 at 5:26:38 PM UTC+1 lofid...@gmail.com 
>> wrote:
>>
>>> @swas... 
>>>
>>> 
>>> Yes, almost 10 years for me too and production application  running for 
>>> 3 years.
>>> GWT 2.6.1 + Eclipse 4.8.  Tomcat8 + MySQL5.7  + Java8 + JasperReport
>>> my next 10 years plan is  move to TypeScript + VueJS.
>>> 
>>>
>>> After 10 years, will we still be able to see TypeScript + VueJS? 
>>>
>>> Cheers,
>>> Lofi
>>> RobW schrieb am Dienstag, 19. Januar 2021 um 15:29:42 UTC+1:
>>>
>>>> Our web front end is on 15 years with GWT as of this year, and we're 
>>>> expecting 5 more with luck. So we'll hit the 20 year mark if all goes well
>>>>
>>>> On Tuesday, 19 January 2021 at 10:46:44 UTC aka...@gmail.com wrote:
>>>>
>>>>> I wonder if that will actually last for the next 10 years.
>>>>>
>>>>> On Tuesday, January 19, 2021 at 10:04:19 AM UTC+2 swas...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> Yes, almost 10 years for me too and production application  running 
>>>>>> for 3 years.
>>>>>> GWT 2.6.1 + Eclipse 4.8.  Tomcat8 + MySQL5.7  + Java8 + JasperReport
>>>>>> my next 10 years plan is  move to TypeScript + VueJS. 
>>>>>> On Monday, 4 January 2021 at 23:37:53 UTC+7 Alexander Bertram wrote:
>>>>>>
>>>>>>> Nice to hear from everyone!
>>>>>>>
>>>>>>> Here's to the next ten years :-)
>>>>>>>
>>>>>>> Best wishes for 2021,
>>>>>>> Alex
>>>>>>>
>>>>>>> On Tuesday, December 22, 2020 at 10:22:08 AM UTC+1 Segun Razaq 
>>>>>>> Sobulo wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> I've been using GWT for 7+ years (with appengine j

[ERROR] Unable to find *.gwt.xml on your classpath

2014-07-23 Thread Marco
Hello all, 

I need some help with GWT. We have a Java project and we use GWT to build 
the UI, the structure of my project is something similar to this:
ProjectA
|
|--Server/Common/src
   |-com.abc.core
  |-util.gwt.xml
   |-com.abc.core.util (Package)
  |- test.java

|
|--Common/src
|-com.abc.gwt
 |-ws.gwt.xml
|-com.abc.gwt.client
 |- HP.java

I want to use a method that is in test.java from HP.java, for that I have 
created util.gwt.xml

?xml version=1.0 encoding=UTF-8?
module
  inherits name='com.google.gwt.user.User'/
  source path=util/source
/module

and modified the ws.gwt.xml

..
inherits name=com.abc.core.util/

entry-point class='com.abc.gwt.client.HP'/

When I try to compile the code I am getting this error:

compile.gwt:
[mkdir] Created dir: c:\Test_trunk_217\build\server\gwt
 [java] Loading inherited module 'com.abc.gwt.wsdev'
 [java]Loading inherited module 'com.abc.core.util'
 [java]   [ERROR] Unable to find 'com/abc/core/util.gwt.xml' on 
your classpath; could be a typo, or maybe you forgot to include a classpath 
entry for source?
 [java][ERROR] Line 14: Unexpected exception while processing 
element 'inherits'

Please give me a hand.

Thanks.

-- 
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/d/optout.


Re: Sporadic error with GWT and GAE

2013-05-30 Thread Marco
Dear all,
this error appeared again...cannot understand why. Could help me? Do you 
have any advice?

Thank you,
Marco.

On Tuesday, May 28, 2013 5:57:12 PM UTC+2, Marco wrote:

 Dear all,
 I have developed an application in GWT that is running on GAE and I am 
 receiving sporadic error like the one that I have reported in this post.
 The problem is that from the stack trace I cannot figure out which is the 
 cause (there is no my own code as you can see): please could you help me 
 understanding how to solve the problem?

 Thank you very much and best Regards,
 Marco.

 javax.servlet.ServletContext log: Exception while dispatching incoming RPC 
 call
 java.lang.IllegalArgumentException: encodedRequest cannot be empty
  at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:232)
  at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:206)
  at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
  at 
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at 
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
  at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
  at 
 com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
  at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  at 
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
  at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  at 
 com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:57)
  at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  at 
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
  at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
  at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
  at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at 
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
  at 
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
  at 
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266)
  at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
  at org.mortbay.jetty.Server.handle(Server.java:326)
  at 
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
  at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
  at 
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
  at 
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146)
  at 
 com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:439)
  at 
 com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:480)
  at 
 com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:487)
  at com.google.tracing.TraceContext.runInContext(TraceContext.java:774)
  at 
 com.google.tracing.TraceContext$DoInTraceContext.runInContext(TraceContext.java:751)
  at 
 com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:342)
  at 
 com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:334)
  at 
 com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:484)
  at 
 com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
  at java.lang.Thread.run(Thread.java:722)



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




Sporadic error with GWT and GAE

2013-05-28 Thread Marco
Dear all,
I have developed an application in GWT that is running on GAE and I am 
receiving sporadic error like the one that I have reported in this post.
The problem is that from the stack trace I cannot figure out which is the 
cause (there is no my own code as you can see): please could you help me 
understanding how to solve the problem?

Thank you very much and best Regards,
Marco.

javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
 java.lang.IllegalArgumentException: encodedRequest cannot be empty
   at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:232)
   at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:206)
   at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
   at 
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at 
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
   at 
 com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at 
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at 
 com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:57)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at 
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
   at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
   at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
   at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
   at 
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
   at 
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
   at 
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:266)
   at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
   at org.mortbay.jetty.Server.handle(Server.java:326)
   at 
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
   at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
   at 
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
   at 
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:146)
   at 
 com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:439)
   at 
 com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:480)
   at 
 com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:487)
   at com.google.tracing.TraceContext.runInContext(TraceContext.java:774)
   at 
 com.google.tracing.TraceContext$DoInTraceContext.runInContext(TraceContext.java:751)
   at 
 com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:342)
   at 
 com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:334)
   at 
 com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:484)
   at 
 com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
   at java.lang.Thread.run(Thread.java:722)



-- 
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: Menu Bar - hide

2013-05-05 Thread Marco
Has nobody any idea?

-- 
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 Designer - MenuBar

2013-04-05 Thread Marco
Yes, this issue has been fixed. 

The fix is in eclipse gwt plugin and not in gwt itself.
You have to update your eclipse plugin.

-- 
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 create deep copy of list on client side?

2013-04-05 Thread Marco
He problem is already described here:

https://groups.google.com/forum/#!msg/google-web-toolkit/Y0bN9QGsspQ/roqeVR7ryhcJ
https://groups.google.com/forum/?fromgroups=#!topic/Google-Web-Toolkit/MvLCaqJ2MBQ

but also with no solution.

GWT-RPC is already serializing and deserializing objects, therefore i 
thought there is a build in support in GWT.

I also contacted Christian Goudreau (steering committee member) but it 
seems that there is really no way.  :-(

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




Menu Bar - hide

2013-03-17 Thread Marco

I have a strange behaviour which also occurs in GWT Showcase.

http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwMenuBar

In the gwt showcase there is a menubar example with the menus:

File
-
New 
Open
Close
Recent
- Fishing in the desert.txt
- How to tame a wild parrot
Exit


If I move my mouse cursor on the menu Recent, then the submenu opens with 
Fishing in the desert
After I move my cursor on the Close menu item, but the submenu with 
Fishing... does not hide and keeps open.

I hope that you agree that this is a very strange behaviour. Is there any 
solution for this, maybe I have missed a property?

-- 
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: Object deep copy or serialization

2013-03-04 Thread Marco
I have the same issue. 

I found this:
http://stackoverflow.com/questions/4730463/gwt-overlay-deep-copy
but it seems a little bit strange?

One remark: AutoBean.clone() method is deprecated in the meantime.

Is there no other solution?

-- 
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: Tomcat error messages in localhost_access_log

2013-02-11 Thread Marco
Thanks for the remark with /w00tw00t.at.ISC.SANS.Win32:), i will 
investigate this.

In some rare cases I get following client error:

The call failed on the server; see server log for details


The only message I have is in localhost_access_log , therefore I asked for 
these messages in general.

I found this blog for this topic:
http://www.hierax.org/2010/01/gwt-with-rpcs-on-tomcat-6.html

In my case e.g.:
 [04/Feb/2013:19:05:55 +0100] POST /usergroup HTTP/1.1 500 57
 [04/Feb/2013:18:50:12 +0100] POST /locking HTTP/1.1 500 57

Do you have any experience with that?

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




Tomcat error messages in localhost_access_log

2013-02-10 Thread Marco
Hello,
i'm using gwt 2.5 and tomcat 7.
In my localhost_access_log logfile I have a lot of error messages.

Here an example:

 [10/Feb/2013:16:25:51 +0100] GET /resources/orders-96x96-disabled.png 
HTTP/1.1 304 -
 [10/Feb/2013:16:25:52 +0100] POST /masterdata HTTP/1.1 200 1749
 [10/Feb/2013:16:25:52 +0100] POST /user HTTP/1.1 200 533
 [10/Feb/2013:16:25:52 +0100] POST /masterdata HTTP/1.1 200 2145
 [10/Feb/2013:16:25:53 +0100] POST /customer HTTP/1.1 200 918
 [10/Feb/2013:16:25:56 +0100] POST /user HTTP/1.1 200 390
 [10/Feb/2013:16:26:06 +0100] POST /order HTTP/1.1 200 815
 [10/Feb/2013:16:26:48 +0100] POST /orderOverview HTTP/1.1 200 692
 [10/Feb/2013:18:47:00 +0100] GET /w00tw00t.at.ISC.SANS.Win32:) HTTP/1.1 
400 -
 [10/Feb/2013:19:02:36 +0100] GET /myapp.nocache.js HTTP/1.1 200 10313

Any idea where the errors come from?

-- 
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: Changing CSS for TabPanel

2013-01-22 Thread Marco Cuccato
I've the same problem but i want to use the CssResource approach.

I just want to set my custom CSS to a single TabBar/TabPanel instance, 
leaving the default gwt Theme on other all TabBar/Panel.

That's what i've done:
- found the original TabBar and TabPanel Gwt css file
- created a new css file, pasted the original css, edited class names by 
renaming all classe from .gwt-* to .myProject* and changed the attribute 
values
- created a CssResource with the two main selector methods: 
.myProjectTabBar and .myProjectTabPanel
- set my custom style to widget with:
mainTabPanel.getTabBar().addStyleName(Styles.INSTANCE.tabBarPanel().myProjectTabBar());
mainTabPanel.addStyleName(Styles.INSTANCE.tabBarPanel().myProjectTabPanel());
- added @external .myProject*; to my css file referenced by CssResource 
@Source annotation due to avoid (un)obfuscation exception

It works only for base-style like .myProjectTabBar, but not for substyles 
like .myProjectTabBar .myProjectTabBarItem {...}: the style still remains 
the Gwt default.

What i have to do for make my custom TabBar/Panel style works? 
I know that i can add the css in gwt.xml file (leaving original style names 
on it) but this means that ALL TabBar/Panel widget will be styled, isn't 
true?

Thanks in advance
M.

Il giorno domenica 10 maggio 2009 12:40:22 UTC+2, Salvador Diaz ha scritto:

 For a thourough example of TabPanel styling (including IE6 specific 
 hacks), take a look at the Showcase examples: 
 http://gwt.google.com/samples/Showcase/Showcase.html#CwTabPanel 

 Hope that helps, 

 Salvador 

 On May 9, 10:47 pm, mrfreeze81 mrfreez...@gmail.com wrote: 
  GWT has its own CSS for the widgets, you will have to change that 
  inorder to affect the widgets (in your case the tabpanel). Add this to 
  your CSS file, 
  eg:- 
  .gwt-TabPanel { 
  color: #3; 
  
  } 
  
  .gwt-TabPanelBottom { 
  
  } 
  
  etc. 
  
  CSS Style Rules 
  
  * .gwt-TabPanel { the tab panel itself } 
  * .gwt-TabPanelBottom { the bottom section of the tab panel (the 
  deck containing the widget) } 
  
  You can find this information in the GWT API 
  
  Thanks 
  Harry

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fbBMOGxkC-YJ.
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.



Re: Changing CSS for TabPanel

2013-01-22 Thread Marco Cuccato
Solved!

1. Custom styles named as GWT API says (.gwt-TabBar...);
2. Just wrapped the css file to a simple CssResorce, without the custom 
interface. There is no need to have a method for every style defined in 
file with this trick.

Thanks

Il giorno martedì 22 gennaio 2013 12:47:36 UTC+1, Marco Cuccato ha scritto:

 I've the same problem but i want to use the CssResource approach.

 I just want to set my custom CSS to a single TabBar/TabPanel instance, 
 leaving the default gwt Theme on other all TabBar/Panel.

 That's what i've done:
 - found the original TabBar and TabPanel Gwt css file
 - created a new css file, pasted the original css, edited class names by 
 renaming all classe from .gwt-* to .myProject* and changed the attribute 
 values
 - created a CssResource with the two main selector methods: 
 .myProjectTabBar and .myProjectTabPanel
 - set my custom style to widget with:

 mainTabPanel.getTabBar().addStyleName(Styles.INSTANCE.tabBarPanel().myProjectTabBar());

 mainTabPanel.addStyleName(Styles.INSTANCE.tabBarPanel().myProjectTabPanel());
 - added @external .myProject*; to my css file referenced by CssResource 
 @Source annotation due to avoid (un)obfuscation exception

 It works only for base-style like .myProjectTabBar, but not for substyles 
 like .myProjectTabBar .myProjectTabBarItem {...}: the style still remains 
 the Gwt default.

 What i have to do for make my custom TabBar/Panel style works? 
 I know that i can add the css in gwt.xml file (leaving original style 
 names on it) but this means that ALL TabBar/Panel widget will be styled, 
 isn't true?

 Thanks in advance
 M.

 Il giorno domenica 10 maggio 2009 12:40:22 UTC+2, Salvador Diaz ha scritto:

 For a thourough example of TabPanel styling (including IE6 specific 
 hacks), take a look at the Showcase examples: 
 http://gwt.google.com/samples/Showcase/Showcase.html#CwTabPanel 

 Hope that helps, 

 Salvador 

 On May 9, 10:47 pm, mrfreeze81 mrfreez...@gmail.com wrote: 
  GWT has its own CSS for the widgets, you will have to change that 
  inorder to affect the widgets (in your case the tabpanel). Add this to 
  your CSS file, 
  eg:- 
  .gwt-TabPanel { 
  color: #3; 
  
  } 
  
  .gwt-TabPanelBottom { 
  
  } 
  
  etc. 
  
  CSS Style Rules 
  
  * .gwt-TabPanel { the tab panel itself } 
  * .gwt-TabPanelBottom { the bottom section of the tab panel (the 
  deck containing the widget) } 
  
  You can find this information in the GWT API 
  
  Thanks 
  Harry



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/R6UVBu96xp4J.
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.



Re: GUI crashes when call .destroy() method on Layout class

2013-01-17 Thread Marco
Dear all, after tons of tests maybe I have figured out what was the 
problem: I think that every exception that I have got can be caused by 
following elements:

1) I use .destroy() method but the best way is to use .markForDestroy() 
method;
2) I use .draw() methods for each element that is part of my main layout 
and then, at the end, I make a call on .show() method of the layout class: 
I have changed my code removing calls to .draw() subclasses and inserting a 
call of .draw() method of my main layout class (instead of using a call to 
.show() method);
3) I use always this. marker in order to identify variables belonging to my 
class but I have read that this marker could generate some problem if the 
JNSI function does not correctly map it so I have removed it.

Thank you very much.

Marco.

On Monday, January 14, 2013 10:46:04 PM UTC+1, Marco wrote:

 Dear all,
 I am having problems with a GWT program (it is not pure GWT but it makes 
 use of SmartGWT framework) developed using a MVP approach and I need your 
 support: I have created dedicated classes for each window that I want to 
 render; every time I want to switch between pages I call destroy method 
 to the page that I want to close (i.e. I call destroy method on Layout 
 object) and I launch a custom event in order to load the new page. The 
 problem is that sometimes (I was not able to find a predefined pattern) the 
 method MyCurrentLoadedLayout.destroy(), called from my current loaded 
 layout, throws an exception and the program crash. 

 This is the exception that has been launched:

 java.lang.ClassCastException: null
 at java.lang.Class.cast(Class.java:2990)
 at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169)
 at 
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
 at 
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
 at 
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
 at 
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
 at 
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
 at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
 at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
 at 
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
 at com.smartgwt.client.widgets.BaseWidget.destroy(BaseWidget.java)
 at com.myTestClass.myTestLayout.destroyLytMain(myTestLayout.java:867)
 [...]

 I am sure that the Layout class is not null because, as I wrote, the major 
 of the time the code works correctly.
 This strange behavior happens, randomly, also when I try to launch an 
 event via EventBus:

 com.google.gwt.event.shared.UmbrellaException: Exception caught: null
 at com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:69)
 at 
 com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:57)
 at com.myTestClass.myTestLayout$10.onSuccess(myTestLayout.java:842)
 at 
 com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
 at 
 com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
 at 
 com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 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.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
 at 
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
 at 
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
 at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
 at 
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
 at 
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
 at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
 at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
 at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597

GUI crashes when call .destroy() method on Layout class

2013-01-16 Thread Marco
Dear all,
I am having problems with a GWT program (it is not pure GWT but it makes 
use of SmartGWT framework) developed using a MVP approach and I need your 
support: I have created dedicated classes for each window that I want to 
render; every time I want to switch between pages I call destroy method 
to the page that I want to close (i.e. I call destroy method on Layout 
object) and I launch a custom event in order to load the new page. The 
problem is that sometimes (I was not able to find a predefined pattern) the 
method MyCurrentLoadedLayout.destroy(), called from my current loaded 
layout, throws an exception and the program crash. 

This is the exception that has been launched:

java.lang.ClassCastException: null
at java.lang.Class.cast(Class.java:2990)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.widgets.BaseWidget.destroy(BaseWidget.java)
at com.myTestClass.myTestLayout.destroyLytMain(myTestLayout.java:867)
[...]

I am sure that the Layout class is not null because, as I wrote, the major 
of the time the code works correctly.
This strange behavior happens, randomly, also when I try to launch an event 
via EventBus:

com.google.gwt.event.shared.UmbrellaException: Exception caught: null
at com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:69)
at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:57)
at com.myTestClass.myTestLayout$10.onSuccess(myTestLayout.java:842)
at 
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
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.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
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:680)

Please could you help me understanding which is the problem? What can I do 
in order to figure out what is the cause?
Thank you vey much for your help and best Regards,
Marco.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/CU05cZKissgJ.
To post

ClassCastException Umbrella Exception: GUI randomly crashes

2013-01-16 Thread Marco
Dear all,
I have a problem with a GWT application (*not pure GWT but SmartGWT*): I 
have created dedicated classes for each window that I want to render (MVP 
model); 
every time I want to switch between windows I call destroy method to the 
layout that I want to close and I launch a custom event in order to load 
the new page (with related Layout). 

The problem is that sometimes (I was not able to find a predefined pattern) 
the method MyCurrentLoadedLayout.destroy() (example class name), 
called from my current loaded layout, throws an exception and the program 
crash. This is the exception that has been launched:

Code:
java.lang.ClassCastException: null
at java.lang.Class.cast(Class.java:2990)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:169)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:57)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.widgets.BaseWidget.destroy(BaseWidget.java)
at com.myTestClass.myTestLayout.destroyLytMain(myTestLayout.java:867) *--- 
here there is the command MyCurrentLoadedLayout.destroy() and 
MyCurrentLoadedLayout is NOT null because it contains all object that are 
currently displayed on a screen*
[...]

I am sure that the Layout class is not null because, as I wrote, the major 
of the time it works correctly: the crash happens randomly when I click on 
Logout button that destroys the current Layout and launches the event 
that loads the new Layout.

This strange behaviour happens, randomly, also when I try to launch an 
event via EventBus:

Code:
com.google.gwt.event.shared.UmbrellaException: Exception caught: null
at com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:69)
at 
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:57)
at com.myTestClass.myTestLayout$10.onSuccess(myTestLayout.java:842)
at 
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
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.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
[...]

Please could you help me understanding what is the cause of the block or 
can you suggest me how to deeply debug it in order to find the problem?
Thank you very much for your support.

Best Regards,
Marco.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/54ZUYsOQQeYJ.
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.



Re: Background css gradient

2012-12-24 Thread Marco
I had a little mistake in my program therefore CssResource did not work.

Only with the *literal *css description it work now:

.backgroundtoolbar {
  background-image: literal(-ms-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(-moz-linear-gradient(top, #000 20%, #fff 
80%));
  background-image: literal(-o-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(-webkit-linear-gradient(top, #000 20%, #fff 
80%));
  background-image: literal(linear-gradient(to bottom, #000 20%, #fff 
80%));
}

Thanks to Jens because without 
IGradientStyle.INSTANCE.style().ensureInjected()
it will not work.

The gradient is not working in IE but will work in Chrome. Any idea?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GyGMdCC7PhsJ.
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.



Re: Background css gradient

2012-12-24 Thread Marco
I have added following line to my css file:

filter: 
literal(progid:DXImageTransform.Microsoft.gradient(startColorstr='#cc', 
endColorstr='#00'));

now the gradient is also working in IE.

Thanks a lot.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Uk3Cn8CfRRUJ.
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.



Background css gradient

2012-12-23 Thread Marco
I have seen that it's possible to use css gradient in gwt 2.5.

http://code.google.com/p/google-web-toolkit/issues/detail?id=5771

I tried to set a css gradient to a simplepanel with both examples in bug 
5771:

.foo {
  background-image: literal(-ms-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(-moz-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(-o-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(-webkit-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(linear-gradient(to bottom, #000 20%, #fff 80%));
}

OR

@def FOO_GRADIENT_COLORS #000 20%, #fff 80%;
@def FOO_GRADIENT_OLD top FOO_GRADIENT_COLORS;
.foo {
  background-image: -ms-linear-gradient(FOO_GRADIENT_OLD);
  background-image: -moz-linear-gradient(FOO_GRADIENT_OLD);
  background-image: -o-linear-gradient(FOO_GRADIENT_OLD);
  background-image: -webkit-linear-gradient(FOO_GRADIENT_OLD);
  background-image: linear-gradient(to bottom, FOO_GRADIENT_COLORS);
}


I have set the css to my SimplePanel:

mySimplePanel.setStyleName(foo);


Sadly there is no effect. The panel is just white.


Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/m_vvHIriDiwJ.
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.



Re: Background css gradient

2012-12-23 Thread Marco
I tried this way now:

*GradientStyle.css*

.backgroundtoolbar {
  background-image: literal(-ms-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(-moz-linear-gradient(top, #000 20%, #fff 
80%));
  background-image: literal(-o-linear-gradient(top, #000 20%, #fff 80%));
  background-image: literal(-webkit-linear-gradient(top, #000 20%, #fff 
80%));
  background-image: literal(linear-gradient(to bottom, #000 20%, #fff 
80%));
}

public interface IGradientStyle extends ClientBundle {
 public static final IGradientStyle INSTANCE = 
GWT.create(IGradientStyle.class);
 @Source(GradientStyle.css)
Style style();

public interface Style extends CssResource{

String backgroundtoolbar();
}
}

mySimplePanel
.setStyleName(IGradientStyle.INSTANCE.style().backgroundtoolbar());

Again, no effect. Have I missed something? Is there a other better way to 
have a simple gradient background?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WBiCuucCWZQJ.
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.



Re: Background css gradient

2012-12-23 Thread Marco
@Jens
When and where should I call:
IGradientStyle.INSTANCE.style().ensureInjected()  ?

I called IGradientStyle.INSTANCE.style().ensureInjected() 
just before 
mySimplePanel
.setStyleName(IGradientStyle.INSTANCE.style().backgroundtoolbar());
but without any effect.

@Andrei:
What kind of definition should I use instead?
I tried IE and Chrome.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/V3qdA1hE1XAJ.
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.



Re: Clearing Browser cache for upadated deployments

2012-12-21 Thread Marco
http://seewah.blogspot.de/2009/02/gwt-tips-2-nocachejs-getting-cached-in.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/u2JGxvMGRgwJ.
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.



Re: Textarea KeyUpHandler not working

2012-11-29 Thread marco
Hi Thomas,

thanks for your explanation. I had that setElement(rootPanel.getElement()) 
thing in my mind, but I didn't really got what it does until your 
explanation. Now it makes much sense to me what happened.

Cheers,
Marco

Am Mittwoch, 28. November 2012 14:45:51 UTC+1 schrieb Thomas Broyer:



 On Wednesday, November 28, 2012 1:40:18 PM UTC+1, marco wrote:

 Ok I fixed it, with the following changes

 -public class ValidatableTextarea extends ComplexPanel
 +public class ValidatableTextarea extends FlowPanel
 -   private FlowPanel rootPanel;
 protected TextArea input;
 private Label errorLabel;

 @UiConstructor 
 public ValidatableTextarea() { 
 input = new TextArea(); 
 -   rootPanel = new FlowPanel(); 
 -   rootPanel.add(input); 
 +   add(input)

 -   setElement(rootPanel.getElement()); 
 }
 ...
 public void setText(String text) { 
 input.setText(String Text); 
 }
 ...
 public void addKeyUpHandler(KeyUpHandler keyUpHandler) { 
 input.addKeyUpHandler(keyUpHandler); 
 }

 Don't know why but it's working now.


 I know why: setElement() is only meant to be used when you create your own 
 Widget, not when you extend an existing one. The root of your problem was 
 actually using rootPanel;getElement() as the element for another widget, 
 yet adding widgets to rootPanel (which is never *attached* to the DOM: 
 its element is physically attached, by way of the ValidatableTextArea, 
 but the FlowPanel itself is not logically attached.

 Now, instead of *extending* FlowPanel, you should extend Composite 
 instead, and use a FlowPanel with setWidget (more or less reverting to your 
 previous code, fixing it: ComplexPanel→Composite, setElement→setWidget)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vlSS2xPuS5AJ.
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.



Textarea KeyUpHandler not working

2012-11-28 Thread marco
Hi there,

I'm trying to implement a counter for a textarea. Something like this is 
working for me

final TextArea textArea = new TextArea();final Label counter = new 
Label(Number of characters: 0);...private void addlistener() {
textArea.addKeyUpHandler(new KeyUpHandler() {
public void onKeyUp(KeyUpEvent keyUpEvent) {
  counter.setText( Number of 
characters:+textArea.getText().length());
}
});


In my project the TextArea is enhanced e.g. for displaying validation errors.


public class ValidatableTextarea extends ComplexPanel
private FlowPanel rootPanel;
protected TextArea input;
private Label errorLabel;

@UiConstructor 
public ValidatableTextarea() { 
input = new TextArea(); 
rootPanel = new FlowPanel(); 
rootPanel.add(input); 
setElement(rootPanel.getElement()); 
}
...
public void setText(String text) { 
input.setText(String Text); 
}
...
public void addKeyUpHandler(KeyUpHandler keyUpHandler) { 
input.addKeyUpHandler(keyUpHandler); 
}

My Presenter is calling ValidatableTextarea.addKeyUpHandler onBind but the 
keyhandler seems not to be added. The same thing happens when I call 
ValidatableTextarea.setText
My Presenter is a dialog, so when I call those functions in Presenter.openat 
least 
ValidatableTextarea.setText is working and the given text is displayed, but 
there is still no keyUpHandler working.

So is there any magic working I don't see? Any event I can listen to be 
sure that my ValidatableTextarea is ready to accept my keyUpHandler? Or is 
my given Handler somehow overwritten?

Thanks in advance,
Marco

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kBaHPnWDL5oJ.
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.



Re: Textarea KeyUpHandler not working

2012-11-28 Thread marco
Ok I fixed it, with the following changes

-public class ValidatableTextarea extends ComplexPanel
+public class ValidatableTextarea extends FlowPanel
-   private FlowPanel rootPanel;
protected TextArea input;
private Label errorLabel;

@UiConstructor 
public ValidatableTextarea() { 
input = new TextArea(); 
-   rootPanel = new FlowPanel(); 
-   rootPanel.add(input); 
+   add(input)

-   setElement(rootPanel.getElement()); 
}
...
public void setText(String text) { 
input.setText(String Text); 
}
...
public void addKeyUpHandler(KeyUpHandler keyUpHandler) { 
input.addKeyUpHandler(keyUpHandler); 
}

Don't know why but it's working now.

Cheers

Am Mittwoch, 28. November 2012 08:34:43 UTC+1 schrieb marco:

 Hi there,

 I'm trying to implement a counter for a textarea. Something like this is 
 working for me

 final TextArea textArea = new TextArea();final Label counter = new 
 Label(Number of characters: 0);...private void addlistener() {
 textArea.addKeyUpHandler(new KeyUpHandler() {
 public void onKeyUp(KeyUpEvent keyUpEvent) {
   counter.setText( Number of 
 characters:+textArea.getText().length());
 }
 });


 In my project the TextArea is enhanced e.g. for displaying validation errors.


 public class ValidatableTextarea extends ComplexPanel
 private FlowPanel rootPanel;
 protected TextArea input;
 private Label errorLabel;

 @UiConstructor 
 public ValidatableTextarea() { 
 input = new TextArea(); 
 rootPanel = new FlowPanel(); 
 rootPanel.add(input); 
 setElement(rootPanel.getElement()); 
 }
 ...
 public void setText(String text) { 
 input.setText(String Text); 
 }
 ...
 public void addKeyUpHandler(KeyUpHandler keyUpHandler) { 
 input.addKeyUpHandler(keyUpHandler); 
 }

 My Presenter is calling ValidatableTextarea.addKeyUpHandler onBind but 
 the keyhandler seems not to be added. The same thing happens when I call 
 ValidatableTextarea.setText
 My Presenter is a dialog, so when I call those functions in Presenter.openat 
 least 
 ValidatableTextarea.setText is working and the given text is displayed, 
 but there is still no keyUpHandler working.

 So is there any magic working I don't see? Any event I can listen to be 
 sure that my ValidatableTextarea is ready to accept my keyUpHandler? Or 
 is my given Handler somehow overwritten?

 Thanks in advance,
 Marco


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/e2xreRpjzXQJ.
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.



Re: GWT Designer - MenuBar

2012-11-11 Thread Marco

One more problem (see errormessage below).

@Thomas Broyer : can you please use your contacts to get any 
feedback/reaction about this critical designer issue.
See also:  http://code.google.com/p/gwt-designer/issues/detail?id=1
It's more than a month without any statement.  :-(

java.lang.IllegalArgumentException: Unable to find 'columns' in class 
com.google.gwt.user.client.ui.HTML
at 
org.eclipse.wb.internal.core.utils.reflect.ReflectionUtils$2.runObject(ReflectionUtils.java:1208)
at 
org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runObject(ExecutionUtils.java:240)
at 
org.eclipse.wb.internal.core.utils.reflect.ReflectionUtils.getFieldObject(ReflectionUtils.java:1202)
at 
com.google.gdt.eclipse.designer.model.widgets.cell.AbstractCellTableInfo.replaceCustomColumns(AbstractCellTableInfo.java:136)
at 
com.google.gdt.eclipse.designer.model.widgets.cell.AbstractCellTableInfo.refresh_afterCreate(AbstractCellTableInfo.java:119)
at 
org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
at 
org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1235)
at 
org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
at 
com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.refresh_afterCreate(UIObjectInfo.java:192)
at 
org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
at 
org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1235)
at 
org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
at 
com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.refresh_afterCreate(UIObjectInfo.java:192)
at 
org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
at 
org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1235)
at 
org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
at 
com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.refresh_afterCreate(UIObjectInfo.java:192)
at 
org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
at 
org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139)
at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
at 
org.eclipse.wb.core.model.ObjectInfo.execRefreshOperation(ObjectInfo.java:514)
at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:482)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:583)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:420)



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BREMje_--bsJ.
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.



Re: GWT Designer - MenuBar

2012-10-30 Thread Marco
Today I installed the new eclipse plugins:

Google Web Toolkit SDK 2.5.0 2.5.0.v201210291354-rel-r42
Google Plugin for Eclipse 4.2 3.1.1.v201210291354-rel-r42 

I don't have the previous posted error anymore:

org.eclipse.wb.internal.core.utils.check.AssertionFailedException: Can not find 
method setRowData(java.util.List) in class com.google.gwt.user.client.ui.HTML
at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:225)
at 
org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(Assert.java:174)


I still have the error with:

org.eclipse.wb.internal.core.utils.exception.DesignerException: 502 (Unable to 
load *.wbp-component.xml description.). com.google.gwt.user.client.ui.MenuBar

at 
org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:442)
at 
org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:289)


Can somebody confirm this error?


I already posted an issue 

http://code.google.com/p/gwt-designer/issues/detail?id=1 

weeks ago but sadly no reaction.


It's very frustrating to have an obvious critical bug and getting no help.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/doAqXH2kWlwJ.
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.



Re: GWT Designer - MenuBar

2012-10-28 Thread Marco
Next error in gwt designer after updating from gwt2.5_rc2 to gwt2.5.


Full context stack trace:

org.eclipse.wb.internal.core.utils.check.AssertionFailedException: Can not find 
method setRowData(java.util.List) in class com.google.gwt.user.client.ui.HTML
at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:225)
at 
org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(Assert.java:174)
at 
org.eclipse.wb.internal.core.utils.reflect.ReflectionUtils.invokeMethod(ReflectionUtils.java:866)
at 
com.google.gdt.eclipse.designer.model.widgets.cell.CellListInfo.refresh_afterCreate(CellListInfo.java:57)
at 
org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
at 
org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1235)
at 
org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
at 
com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.refresh_afterCreate(UIObjectInfo.java:192)
at 
org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
at 
org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1235)
at 
org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
at 
com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.refresh_afterCreate(UIObjectInfo.java:192)
at 
org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
at 
org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1235)
at 
org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
at 
com.google.gdt.eclipse.designer.model.widgets.UIObjectInfo.refresh_afterCreate(UIObjectInfo.java:192)
at 
org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
at 
org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139)
at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
at 
org.eclipse.wb.core.model.ObjectInfo.execRefreshOperation(ObjectInfo.java:514)
at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:482)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:583)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:420)
at 
org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at 
org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
at 
org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:266)
at 
org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:244)
at 
org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
at 
org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3023)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1730)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:270)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at 
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at 
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

Re: GWT Designer - MenuBar

2012-10-10 Thread Marco

I think this is an urgent issue. 
What's the best way to place this issue and to get feedback?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/YxHKugbN0JsJ.
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.



Re: GWT Designer - MenuBar

2012-10-10 Thread Marco
posted it to:
http://code.google.com/p/gwt-designer/issues/detail?id=1

I'm the first who has ever posted an issue to this project (ID 1).
Let's see if I get any response.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/G8t_QNbeLvwJ.
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.



GWT Designer - MenuBar

2012-10-07 Thread Marco
Hello,
i'm using following infrastructure:
Eclipse 4.2.1 
GWT Designer 2.6.0.r42x201206111253
GWT 2.5_RC 2

Problem is, that I can't choose MenuBar or MenuItem in GWT Designer Palette.

If I open a class with a menubar, i get following error:

org.eclipse.wb.internal.core.utils.exception.DesignerException: 502 (Unable to 
load *.wbp-component.xml description.). com.google.gwt.user.client.ui.MenuBar
at 
org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:442)
at 
org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription0(ComponentDescriptionHelper.java:289)
at 
org.eclipse.wb.internal.core.model.description.helpers.ComponentDescriptionHelper.getDescription(ComponentDescriptionHelper.java:258)
at 
org.eclipse.wb.internal.core.model.JavaInfoUtils.createJavaInfo(JavaInfoUtils.java:386)
at 
org.eclipse.wb.internal.core.parser.AbstractParseFactory.createInstance(AbstractParseFactory.java:504)
at 
org.eclipse.wb.internal.core.parser.AbstractParseFactory.create(AbstractParseFactory.java:174)
at 
com.google.gdt.eclipse.designer.parser.ParseFactory.create(ParseFactory.java:173)
at 
org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.endVisit(JavaInfoParser.java:696)
at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:401)
at 
org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$787a56ff.endVisit(generated)
at 
org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:337)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at 
org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:355)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:348)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:248)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:236)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:444)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:393)
at 
org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$787a56ff.endVisit(generated)
at 
org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
at 
org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at 
org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:355)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:337)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:348)
at 
org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:316)
at 

Re: CellTree: Changing the default no data message for empty nodes

2012-10-03 Thread Marco
There is already an open issue:

http://code.google.com/p/google-web-toolkit/issues/detail?id=6868

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/K3zY1KvOeUsJ.
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.



Re: CaptionPanel - CaptionLayoutPanel

2012-10-03 Thread Marco
Furtunately I got an answer at stackoverflow:

http://stackoverflow.com/questions/12588759/captionpanel-captionlayoutpanel

Only problem is, that I have to set the childs height 
manually to 98% (normally it's not necessary for Layout Panels) to fit in 
the caption panel. 

I can live with this problem and maybe it's useful for somebody in the 
future.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bqmoVt02VcYJ.
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.



DecoratorPanel - Layout panel

2012-09-25 Thread Marco
I want to use the DecoraterPanel inside a Layout Panel (DockLayoutPanel) .
The problem is that there is no DecoratorLayoutPanel implementation and 
therefore if I want to use
this panel inside a Layout Panel, all childs will loose the resize events 
because the resize-chain is broken through  the DecoraterPanel .

Is there any workaround?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XF5SvRYBmmoJ.
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.



CaptionPanel - CaptionLayoutPanel

2012-09-25 Thread Marco
I want to use the CaptionPanel inside a Layout Panel (DockLayoutPanel) .

The problem is that there is no CaptionLayoutPanel(like SimpleLayoutPanel) 
implementation and therefore if I want to use
this panel inside a Layout Panel, all childs will loose the resize events 
because the resize-chain is broken through  the CaptionPanel.

Is there any workaround?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5PNpPdIWCk4J.
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.



Re: GUI Design - Layout Panels

2012-09-20 Thread Marco
Thx for the answer but my problems described in my post are not solved with 
your solution.

One more thing to be clear, with Layout Panels I don't mean just the 
LayoutPanel.class but
all the classes described here:
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#LayoutPanels
 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/uj6ntd_noDgJ.
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.



Re: GUI Design - Layout Panels

2012-09-20 Thread Marco
Thanks Thomas for this hint, also HeaderPanel was new for me.

Maybe for better understanding I have added a screenshot with some remarks 
of GwtTestDockFilled.class

My background is plain Java, therefore it's easier for me to have 
less CSS,HTMLPanel I think.  ;-)

I still have no idea whats the best way to structure my application. It's 
also a hard for me to understand
all the panels and which panels can/should be used together in which order 
(also with respect of standard-mode).

Normally I think it sould be very easy. I have 4 areas (or maybe it's 
better to have only 3). 
Toolbar (fix size), WorkspaceHeader(with no fix size because of 
DisclosurePanel), Workspace (should use all available space), and a 
statusbar(fix size) area.

Can you please give me one more hint.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/hc3hQJ_r8KEJ.
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.

attachment: appLayout.png

GUI Design - Layout Panels

2012-09-19 Thread Marco
Hello,
i have planned to design my application with following areas:
---
Toolbar Area
--
Workspace Header (for some information or filter criteria's)
---
Workspace Area
---
Statusbar Area
---

To use a datagrid which automatically resizes with the screensize, I have 
read that the best way
is to use the DockLayoutPanel.
I have also read following article:
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels 

In this articel it's also recommended to use Layout Panels for better 
standard mode support. 
Therefore I have build a very easy example to test the Layout Panels.

In my GwtTestDock.java example I have created a empty application skeleton 
with Layout Panels.
In GwtTestDockFilled.java I have filled this skeleton with some widgets.

In this example I have some problems:
* The css padding is not working for SimpleLayoutPanel. Which class should 
I use instead?
I want to use the css padding in the empty skeleton class because if I 
replace the widgets for
this place holder, it should automatically use the css of the parent 
(slpWorkspaceHeaderPlaceholder).
I don't want to set the padding for every child 
of slpWorkspaceHeaderPlaceholder.

* The Disclosure Panel for Additional Details is not working. The reason 
is because the DockLayoutPanel
has a fix size for North. I tested a solution that I just change the North 
size if I open the Disclosure Pane but
the animation is not working.

* Is this the right track to design my application or should I use 
different Panels?

* Should I try to use only Layout Panels (better standard-mode support) or 
are there special cases for other Panels?

Thx for any help.
Marco

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/m7UFnpv49UgJ.
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.

package com.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.LayoutPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.SimpleLayoutPanel;
import com.google.gwt.user.client.ui.DisclosurePanel;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.cellview.client.DataGrid;
import com.google.gwt.user.cellview.client.TextColumn;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class GwtTestDock implements EntryPoint {
	private SimpleLayoutPanel slpToolbarPlaceholder;
	private SimpleLayoutPanel slpWorkspacePlaceholder;
	private SimpleLayoutPanel slpWorkspaceHeaderPlaceholder;
	private SimpleLayoutPanel slpStatusbarPlaceholder;

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {

		RootLayoutPanel rootLayoutPanel = RootLayoutPanel.get();
		
		DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.PX);
		rootLayoutPanel.add(dockLayoutPanel);
		dockLayoutPanel.addNorth(getSlpToolbarPlaceholder(), 60.0);
		dockLayoutPanel.addNorth(getSimpleLayoutPanel_2(), 60.0);
		dockLayoutPanel.addSouth(getSimpleLayoutPanel_3(), 60.0);
		dockLayoutPanel.add(getSlpWorkspacePlaceholder());
	}
	private SimpleLayoutPanel getSlpToolbarPlaceholder() {
		if (slpToolbarPlaceholder == null) {
			slpToolbarPlaceholder = new SimpleLayoutPanel();
		}
		return slpToolbarPlaceholder;
	}
	private SimpleLayoutPanel getSlpWorkspacePlaceholder() {
		if (slpWorkspacePlaceholder == null) {
			slpWorkspacePlaceholder = new SimpleLayoutPanel();
		}
		return slpWorkspacePlaceholder;
	}
	private SimpleLayoutPanel getSimpleLayoutPanel_2() {
		if (slpWorkspaceHeaderPlaceholder == null) {
			slpWorkspaceHeaderPlaceholder = new SimpleLayoutPanel();
			slpWorkspaceHeaderPlaceholder.setStyleName(test);
		}
		return slpWorkspaceHeaderPlaceholder;
	}
	private SimpleLayoutPanel getSimpleLayoutPanel_3() {
		if (slpStatusbarPlaceholder == null) {
			slpStatusbarPlaceholder = new SimpleLayoutPanel();
		}
		return slpStatusbarPlaceholder;
	}
}
package com.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.cellview.client.DataGrid;
import com.google.gwt.user.cellview.client.SimplePager;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DisclosurePanel;
import

DockLayoutPanel/SimpleLayoutPanel - Css padding

2012-09-18 Thread Marco
Hello,
i have the problem that the css padding is not working for me, the margin 
and background-color does.
Here a simple example to show the problem. 
Has anybody an idea where the problem is?
Thx a lot
Marco
 
 
.test {
margin: 4px;
padding: 20px;
background-color: Lime;
}
 
 
public class GwtTest implements EntryPoint {
 private LayoutPanel layoutPanel;
private Button btnNewButton;
private Button btnNewButton_1;
private SimpleLayoutPanel simpleLayoutPanel;
private SimpleLayoutPanel simpleLayoutPanel_1;
private HorizontalPanel horizontalPanel;
private Button btnNewButton_2;
private Button btnNewButton_3;

/**
 * This is the entry point method.
 */
public void onModuleLoad() {

RootLayoutPanel rootLayoutPanel = RootLayoutPanel.get();
 DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.PX);
rootLayoutPanel.add(dockLayoutPanel);
dockLayoutPanel.addNorth(getSimpleLayoutPanel(), 40.0);
dockLayoutPanel.add(getSimpleLayoutPanel_1());
}
private LayoutPanel getLayoutPanel() {
if (layoutPanel == null) {
layoutPanel = new LayoutPanel();
layoutPanel.add(getBtnNewButton());
layoutPanel.setWidgetLeftWidth(getBtnNewButton(), 0.0, Unit.PX, 81.0, 
Unit.PX);
layoutPanel.setWidgetTopHeight(getBtnNewButton(), 0.0, Unit.PX, 28.0, 
Unit.PX);
layoutPanel.add(getBtnNewButton_1());
layoutPanel.setWidgetLeftWidth(getBtnNewButton_1(), 88.0, Unit.PX, 81.0, 
Unit.PX);
layoutPanel.setWidgetTopHeight(getBtnNewButton_1(), 0.0, Unit.PX, 28.0, 
Unit.PX);
}
return layoutPanel;
}
private Button getBtnNewButton() {
if (btnNewButton == null) {
btnNewButton = new Button(New button);
}
return btnNewButton;
}
private Button getBtnNewButton_1() {
if (btnNewButton_1 == null) {
btnNewButton_1 = new Button(New button);
}
return btnNewButton_1;
}
private SimpleLayoutPanel getSimpleLayoutPanel() {
if (simpleLayoutPanel == null) {
simpleLayoutPanel = new SimpleLayoutPanel();
simpleLayoutPanel.setStyleName(test);
simpleLayoutPanel.setWidget(getLayoutPanel());
}
return simpleLayoutPanel;
}
private SimpleLayoutPanel getSimpleLayoutPanel_1() {
if (simpleLayoutPanel_1 == null) {
simpleLayoutPanel_1 = new SimpleLayoutPanel();
simpleLayoutPanel_1.setStyleName(test);
simpleLayoutPanel_1.setWidget(getHorizontalPanel());
}
return simpleLayoutPanel_1;
}
private HorizontalPanel getHorizontalPanel() {
if (horizontalPanel == null) {
horizontalPanel = new HorizontalPanel();
horizontalPanel.add(getBtnNewButton_2());
horizontalPanel.add(getBtnNewButton_3());
}
return horizontalPanel;
}
private Button getBtnNewButton_2() {
if (btnNewButton_2 == null) {
btnNewButton_2 = new Button(New button);
}
return btnNewButton_2;
}
private Button getBtnNewButton_3() {
if (btnNewButton_3 == null) {
btnNewButton_3 = new Button(New button);
}
return btnNewButton_3;
}
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/AkJ8mnhEffMJ.
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.



Re: How to use a DisclosurePanel within a DockLayoutPanel's north panel

2012-09-16 Thread Marco
 

 Have you found a solution in the meantime?

Has anybody else an idea?
 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TePZo1qbXuAJ.
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.



GET instead of a POST when submitting a form in Safari 5

2012-06-19 Thread Marco
I run into a serious issue using Safari 5.1.7.

I'm working on a GWT application using GWT SDK 2.3.0, hosted by Jetty 7.2.2 
and running on Windows XP 32 bits. In this application we have to let the 
user uploads some files. Most of the time it works well but at some point 
it sends a GET request instead of a POST request. I have to mention that 
this problem only occurs with Safari, never with Firefox, Chrome, IE and 
Opera.

It's easy to reproduce this issue. Simply get a simple GWT app with a file 
upload form. Then upload a file multiple times until the issue arises. The 
problem always occurs sooner or later.

It is expected that a POST request is sent to the server with the file to 
upload and other parameters if any. Actually at some point a GET request is 
sent instead. A new tab opens with the response of this request. The GET 
request is empty, no parameters, nothing.

I think this problem is more related to Safari than to GWT but I'm not 100% 
sure about this. Anyway I must fix this problem, so any workaround is 
welcome.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Bvremyqx4LIJ.
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.



Re: Editor Framework: Client side validation and error handling

2012-05-18 Thread Marco
Found a solution to 1): I put the validation annotations in a separate 
interface that is implemented by both the proxy interface (client) and the 
domain class (server). Since the validation annotations will automatically 
be passed down the inheritance hierarchy, validation works now on the 
client as well as on the server. 

For a longer description with example see my reply to How to do client side 
validation with annotated rules on domain classes 
(RequestFactory)http://stackoverflow.com/a/10659828/862411
.

- Marco

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/tt85P2AMliIJ.
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.



Re: GWT Remote Logging - Logger Name replaced by logOnServer

2012-05-02 Thread Marco
Just had the same problem. Seems to be Issue 
1930http://code.google.com/p/googleappengine/issues/detail?id=1930

As a (temporary) workaround I replaced the 
RemoteLoggingServiceUtilhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/logging/server/RemoteLoggingServiceUtil.htmlwith
 my own implementation. My logging util logs the JUL 
(java.util.logging) 
LogRecordhttp://docs.oracle.com/javase/6/docs/api/java/util/logging/LogRecord.htmls
 
to SLF4J through 
SLF4JBridgeHandlerhttp://www.slf4j.org/legacy.html#jul-to-slf4j
.

Hopefully this will not be neccessary any more in future versions of GWT.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/CJJtdmFcu9oJ.
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.



Re: want to set browser to full screen mode

2012-03-06 Thread Marco
Have you found a solution in the meantime?

Am Dienstag, 28. September 2010 16:18:42 UTC+2 schrieb ganesh b:

 hai to all, 
 i am new to gwt, i want to run my gwt page in full screen mode, can 
 any tell me to to do this. 

 regards 
 ganesh

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/aJSaTEpll0MJ.
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.



Re: How can I run a GWT application in full screen mode

2012-03-06 Thread Marco

Have you found a solution in the meantime?
@Stevko: Good to know but do you have a solution with example anyway?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/z_rao6bX9LQJ.
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.



GWT - Datagrid Selection Color

2012-03-05 Thread Marco
Hi,
is there a way to change global the selection color of gwt datagrid? I
added following css-format in the main-app-css file:

.dataGridSelectedRow {
  background: #1EDA17;
  color: white;
  height: auto;
  overflow: auto;
}

I have seen also following link:
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiCss.html

Sadly my change had no effect. Do I miss any setStyleName() call?

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



Re: No type for token

2012-02-20 Thread Marco Asteriti
Thanks Brandon, I tied cleaning and GWT compile just in case (it did work 
for getting request factory validation to work, once) but it didn't have 
the desired effect.  My request context is very similar to the one you 
linked, the difference is I used only RequestT for all my method 
invocations, not the InstanceRequestT, T. Here's the code bit:

@ServiceName(value = com.masteriti.manager.server.access.PersonDao, 
 locator = 
com.masteriti.manager.server.locator.DaoServiceLocator)
public interface PersonRequest extends RequestContext {
 RequestListPersonProxy listAll();
 RequestVoid save(PersonProxy person);
 RequestPersonProxy saveAndReturn(PersonProxy person);
 RequestVoid delete(PersonProxy person); 
}

The other thing I noticed looking around demo source code is that hardly 
anyone uses @Embedded objects in their entities.  Even the DynaTableRF 
source doesn't use the @Embedded notation as shown in Google's RequestFactory 
Tutorialhttp://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#valueProxies,
 
instead it simply has 

  private Address address = new Address();

I'll try that today and see if it works, but any other suggestions would be 
welcome!

Marco

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xkDH2eCm9dcJ.
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.



Re: No type for token

2012-02-20 Thread Marco Asteriti


On Monday, February 20, 2012 9:29:54 AM UTC-5, Thomas Broyer wrote:

 Several things:

- Annotation processing in Eclipse a barely usable. I battled for 
hours yesterday to make it refresh the generated DeobfuscatorBuilder. 
 IIRC, 
I refresh the project in eclipse, then restarted it, then disabled 
annotation processing, deleted the .apt_generated folder and re-enabled 
annotation processing. If you can use Maven for your project, then I'd bet 
it works much better there! (I had the issue on the gwt-user project 
itself, so it wasn't an option for me) Next time, I'll try setting up a 
build action (or whatever) to run javac -proc:only instead of relying of 
Eclipse's built-in (and awfully buggy) APT.

 Thanks for the reply, Thomas.  This item did the trick.  Following your 
procedure to refresh the project took care of the No type for token... 
error.  The code now runs without errors although its still not saving 
 addresses, but at least I'll have an opportunity to debug it in my code. 
 I've never used maven, and have been resistant to adding more new stuff on 
my plate, but I may have to at this point.  Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/yPhwdjkGGU8J.
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.



Re: Celltree - Add, Update, Remove Nodes

2012-02-04 Thread Marco
Here my third try: This way is recommended by gwt-commiter.
Please see following issue: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=7160

Current status:
* Adding is possible
* Removing is possible if not last child!

So, last open point, refresh the tree if last open child!

package com.test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.user.cellview.client.CellTree;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.view.client.ListDataProvider;
import com.google.gwt.view.client.SingleSelectionModel;
import com.google.gwt.view.client.TreeViewModel;

public class MyCelltreeTest2 implements EntryPoint {
private AbsolutePanel absolutePanel;
private CellTree cellTree;
private Button btnAdd;
private Button btnRemove;
private MyTreeModel myTreeModel;
private SingleSelectionModelMyNode selectionModelCellTree =
null;
private MapMyNode, ListDataProviderMyNode mapDataProviders
= null;
private ListDataProviderMyNode rootDataProvider = null;

public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
rootPanel.add(getAbsolutePanel(), 0, 0);
}

private AbsolutePanel getAbsolutePanel() {
if (absolutePanel == null) {
absolutePanel = new AbsolutePanel();
absolutePanel.setSize(612px, 482px);
absolutePanel.add(getCellTree(), 0, 0);
absolutePanel.add(getBtnAdd(), 265, 428);
absolutePanel.add(getBtnRemove(), 336, 428);
}
return absolutePanel;
}
private CellTree getCellTree() {
if (cellTree == null) {
myTreeModel = new MyTreeModel();
cellTree = new CellTree(myTreeModel, null);
cellTree.setSize(285px, 401px);
}
return cellTree;
}
private Button getBtnAdd() {
if (btnAdd == null) {
btnAdd = new Button(Add);
btnAdd.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event)
{

MyNode node =
selectionModelCellTree.getSelectedObject();
//  if(node != null)
myTreeModel.add(node,
Bla);
}
});
}
return btnAdd;
}
private Button getBtnRemove() {
if (btnRemove == null) {
btnRemove = new Button(Remove);
btnRemove.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event)
{

MyNode node =
selectionModelCellTree.getSelectedObject();
//  if(node != null)
 
myTreeModel.remove(node);
}
});
}
return btnRemove;
}


public class MyNode {

private String name;
private ArrayListMyNode childs; //nodes childrens
private MyNode parent; //track internal parent


public MyNode(String name) {
super();
parent = null;
this.name = name;
childs = new ArrayListMyNode();
}
public boolean hasChildrens() {
return childs.size()0;
}
public ArrayListMyNode getList() {
return childs;
}
public MyNode getParent() {
return parent;
}

public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

public class MyTreeModel implements TreeViewModel {


public MyTreeModel() {
selectionModelCellTree = new
SingleSelectionModelMyNode();
mapDataProviders = new HashMapMyCelltreeTest2.MyNode,
ListDataProviderMyNode();
}

public void add(MyNode myparent, String name) {

MyNode child = new MyNode(name);

//root-node
if(myparent == null){
rootDataProvider.getList().add(child);
   

Re: Celltree - Add, Update, Remove Nodes

2012-01-29 Thread Marco
Here an example of my second try.
I tried to close/reopen the nodes to refresh the tree but sadly
without success.
The refresh for adding is working but not for removing a node.

I replaced my refresh method by following two methods.
Still no help?

public void refresh() {

 closeReopenTreeNodes(cellTree.getRootTreeNode());
}

private void closeReopenTreeNodes(TreeNode node) {
if(node == null) {
return;
}
for(int i = 0; i  node.getChildCount(); i++) {

 if(node.getChildValue(i).equals(this)){

 if(node.getParent() != null){

 
node.getParent().setChildOpen(i, false);
 
//node.getParent().setChildOpen(i, true);
 }

 node.setChildOpen(i, false);
 node.setChildOpen(i, true);
 }
 TreeNode child = node.setChildOpen(i, 
node.isChildOpen(i));
 closeReopenTreeNodes(child);
}
}

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



Re: Celltree - Add, Update, Remove Nodes

2012-01-27 Thread Marco
Ok here a very simple complete example of my try to add/remove
nodes in a celltree.
Sadly it doesn't work very well. Please try my example and maybe now
somebody can give me a hint how to solve this problem.



import java.util.ArrayList;
import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.user.cellview.client.CellTree;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.view.client.ListDataProvider;
import com.google.gwt.view.client.SingleSelectionModel;
import com.google.gwt.view.client.TreeViewModel;

public class MyCelltreeTest implements EntryPoint {
private AbsolutePanel absolutePanel;
private CellTree cellTree;
private Button btnAdd;
private Button btnRemove;
private MyTreeModel myTreeModel;
private SingleSelectionModelMyNode selectionModelCellTree = null;

public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
rootPanel.add(getAbsolutePanel(), 0, 0);
}

private AbsolutePanel getAbsolutePanel() {
if (absolutePanel == null) {
absolutePanel = new AbsolutePanel();
absolutePanel.setSize(612px, 482px);
absolutePanel.add(getCellTree(), 0, 0);
absolutePanel.add(getBtnAdd(), 265, 428);
absolutePanel.add(getBtnRemove(), 336, 428);
}
return absolutePanel;
}
private CellTree getCellTree() {
if (cellTree == null) {
myTreeModel = new MyTreeModel();
cellTree = new CellTree(myTreeModel, null);
cellTree.setSize(285px, 401px);
}
return cellTree;
}
private Button getBtnAdd() {
if (btnAdd == null) {
btnAdd = new Button(Add);
btnAdd.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {

MyNode node = 
selectionModelCellTree.getSelectedObject();
if(node != null)
myTreeModel.addNew(node, Bla);
}
});
}
return btnAdd;
}
private Button getBtnRemove() {
if (btnRemove == null) {
btnRemove = new Button(Remove);
btnRemove.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {

MyNode node = 
selectionModelCellTree.getSelectedObject();
if(node != null)
myTreeModel.remove(node);
}
});
}
return btnRemove;
}


public class MyNode {

private String name;
private ArrayListMyNode childs; //nodes childrens
private MyNode parent; //track internal parent
private MyCell cell; //for refresh - reference to visual
component

public MyNode(String name) {
super();
parent = null;
this.name = name;
childs = new ArrayListMyNode();
}

public void addSubMenu(MyNode m) {
m.parent = this;
childs.add(m);
}

public void removeMenu(MyNode m) {

m.getParent().childs.remove(m);
}
public boolean hasChildrens() {
return childs.size()0;
}
public ArrayListMyNode getList() {
return childs;
}
public MyNode getParent() {
return parent;
}
public void setCell(MyCell cell) {
this.cell = cell;
}
public void refresh() {
  if(parent!=null) {
  parent.refresh();
  }
  if (cell!=null) {
  cell.refresh(); //refresh tree
  }
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

public class MyTreeModel implements TreeViewModel {
private MyNode officialRoot; //default not 

Celltree - Add, Update, Remove Nodes

2012-01-22 Thread Marco
Hey all,
I try to implement an example with an Celltree with some basic
functions
like add, update and remove some nodes.

It seems that this basic functionally is very tricky. I tried it with
an hashmap to store the Node/Dataprovider an the corresponding object.
If I select an object in my celltree I search for the dataprovider in
the
hashmap and add/remove the new node to this dataprovider.

Additionally I have to refresh the dataprovider from the new node and
the parent.

My solution is not working very well and doesn't looks very nice.

I searched for this topic but I didn't found a good/easy solution.

Is there no smart solution for that because this is a very basic
funtionallity and
lot of people must have this 'challenge'?

Has anybody a running small example how to add/remove dynamically
nodes?

I'm using GWT 2.4.

Thanks a lot for any help!
Marco

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



Re: Fast way for email, phone input validation

2011-06-27 Thread marco . m . alves
Thanks!
Sent from my BlackBerry® wireless device

-Original Message-
From: mohamed salah mohamedhasanshaks...@gmail.com
Sender: google-web-toolkit@googlegroups.com
Date: Mon, 27 Jun 2011 13:42:39 
To: google-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: Fast way for email, phone input validation

salam
there mohammad salah
validate your phone create method validate your email

---
  // this method is email for examplem...@mm.com

public static boolean isEmail(final String value) {
boolean valid = true;
if (value != null) {
valid = value.matches(.+@.+\\.[a-z]+);

if (value.contains( )) {
valid = false;
}
}

return valid;

}
---

// this method is email is not empty
public static boolean isEmptyValue(final String value) {
boolean valid = true;
if (value == null) {
return valid = false;
}
if (value.trim().equals()) {
return valid = false;
}

return valid;
}
---
// this method is email min lenght
public static boolean checkMinlength(final String value, final int
minLength) {
boolean valid = true;
if (value != null) {
if (value.length()  minLength) {
valid = false;
}

}

return valid;

}

---
// this method is MaX length

public static boolean checkMaXlength(final String value, final int
maxLength) {
boolean valid = true;
if (value != null) {
if (value.length()  maxLength) {
valid = false;
}

}

return valid;

}
---

validate is Fone
---
create varible
public static final String RGEX_PHONE_ONLY =
^\\(?(\\d{3}-)\\)?(\\d{3}-)?(\\d{4})$;
this varible validate to phone for example method

---
//this method is Phone for example 111-111- is true.
-111- is not true
-- is not true
111-111-111 is not true
and contune.
this method .
---
public static boolean isPhone(String value) {
boolean valid = false;
valid = value.matches(RGEX_PHONE_ONLY);
if (valid) {
valid = true;
}
return valid;
}
---
*Regard: Senior : Mohamed salah hasan
Mobile :+20106594094
tel :+2024460320
Mail:mohamedhasanshaks...@gmail.com*

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


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



Re: Fast way for email, phone input validation

2011-06-27 Thread Marco Alves
Thanks for the note.

On Mon, Jun 27, 2011 at 1:31 PM, David Goodenough 
david.goodeno...@btconnect.com wrote:

 On Monday 27 Jun 2011, mohamed salah wrote:
  salam
  there mohammad salah
  validate your phone create method validate your email
 
  ---
// this method is email for examplem...@mm.com
 
  public static boolean isEmail(final String value) {
  boolean valid = true;
  if (value != null) {
  valid = value.matches(.+@.+\\.[a-z]+);
 
  if (value.contains( )) {
  valid = false;
  }
  }
 
  return valid;
 
  }
  ---
 
  // this method is email is not empty
  public static boolean isEmptyValue(final String value) {
  boolean valid = true;
  if (value == null) {
  return valid = false;
  }
  if (value.trim().equals()) {
  return valid = false;
  }
 
  return valid;
  }
  ---
  // this method is email min lenght
  public static boolean checkMinlength(final String value, final int
  minLength) {
  boolean valid = true;
  if (value != null) {
  if (value.length()  minLength) {
  valid = false;
  }
 
  }
 
  return valid;
 
  }
 
  ---
  // this method is MaX length
 
  public static boolean checkMaXlength(final String value, final int
  maxLength) {
  boolean valid = true;
  if (value != null) {
  if (value.length()  maxLength) {
  valid = false;
  }
 
  }
 
  return valid;
 
  }
  ---
 
  validate is Fone
  ---
  create varible
  public static final String RGEX_PHONE_ONLY =
  ^\\(?(\\d{3}-)\\)?(\\d{3}-)?(\\d{4})$;
  this varible validate to phone for example method
 
  ---
  //this method is Phone for example 111-111- is true.
  -111- is not true
  -- is not true
  111-111-111 is not true
 Note this is only valid for US phone numbers.  It takes no account
 of country codes or other international phone formats.

 David
  and contune.
  this method .
  ---
  public static boolean isPhone(String value) {
  boolean valid = false;
  valid = value.matches(RGEX_PHONE_ONLY);
  if (valid) {
  valid = true;
  }
  return valid;
  }
  ---
  *Regard: Senior : Mohamed salah hasan
  Mobile :+20106594094
  tel :+2024460320
  Mail:mohamedhasanshaks...@gmail.com*

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




-- 
Marco Manteigas Alves
tlm: 96 983 46 23
skype: marco.m.alves

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



Import GWT prj

2011-03-28 Thread Marco Gadaleta
Hello everyone,
I'm trying to create a project of Utils for other GWT Project.
In this Utils I can put some code so that  does not duplicate it.

There is a way to do this if considering that in Util Project could be GWT
ui code (layoutpanel, button, etc..)?


Thx
-- 
Marco

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



Re: Import GWT prj

2011-03-28 Thread Marco Gadaleta
Please..

On Mon, Mar 28, 2011 at 11:10 AM, Marco Gadaleta
gadaleta.ma...@gmail.comwrote:

 Hello everyone,
 I'm trying to create a project of Utils for other GWT Project.
 In this Utils I can put some code so that  does not duplicate it.

 There is a way to do this if considering that in Util Project could be GWT
 ui code (layoutpanel, button, etc..)?


 Thx
 --
 Marco




-- 
Marco

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



TabLayoutPanel

2011-03-28 Thread Marco Gadaleta
Hello,
I'm using DecoratorTabPanel inside my gwt project but
the compiler say me that DecoratorTabPanel was deprecated and recommend to
me to use
TabLayoutPanel.
But a TabLayoutPanel doesn't work  inside a RootPanel that is the component
that i must use.

Some suggestion?

Is there a way to set DecoratorTabPanel to 100% in width and height?

-- 
Marco

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



Re: FocusPanel selection borderless

2011-03-25 Thread Marco Gadaleta
any help..

On Thu, Mar 24, 2011 at 3:40 PM, Marco Gadaleta gadaleta.ma...@gmail.comwrote:

 Hello everyone,
 I'm using a FocusPanel widget and i wan't to remove the border of selection
 when i click on the focus panel.
 I've try with a css with border: none  but without succes..
 Any idea?

 --
 Marco




-- 
Marco

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



Celltable renderer object

2011-03-25 Thread Marco Gadaleta
Hello everyone,
is there a way to obtain the object that cellTable has rendering during the
rendering?

For example i've associated a list of object as  dataprovider to celltable
and i want to know what is the object
that celltable has rendering in that time?
This is useful to me becouse i can add or not dinamically another column
based on a specific value of the object

-- 
Marco

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



Re: Style TabLayoutPanel

2011-03-24 Thread Marco Gadaleta
I've try to found a solution online but nothing.
I had this css

.gwt-DecoratorPanel {

}

.gwt-DecoratorPanel .topCenter,

.gwt-DecoratorPanel .bottomCenter {

  background: #cc;

}

.gwt-DecoratorPanel .middleLeft,

.gwt-DecoratorPanel .middleRight {

  background: #cc;

}

.gwt-DecoratorPanel .topLeftInner,

.gwt-DecoratorPanel .topRightInner,

.gwt-DecoratorPanel .bottomLeftInner,

.gwt-DecoratorPanel .bottomRightInner {

  background: #cc;

}


.gwt-DecoratedTabBar .tabTopLeft {

 background: url(images/corner.png) no-repeat 0px -55px;

 -background: url(images/corner_ie6.png) no-repeat 0px -55px;

}

.gwt-DecoratedTabBar .tabTopRight {

 background: url(images/corner.png) no-repeat -6px -55px;

 -background: url(images/corner_ie6.png) no-repeat -6px -55px;

}

.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopLeft {

 background-position: 0px -61px;

}

.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopRight {

 background-position: -6px -61px;

}


But nothing change.
There is another way?

On Wed, Mar 23, 2011 at 10:45 PM, Marco Gadaleta
gadaleta.ma...@gmail.comwrote:

 Hello everyone,
 I'm trying to style a TabLayoutPanel but without success.
 More precisely, I'm trying to change the color of tab and the border of
 content area..
 but i cannot find their way..

 Any suggestion would be appreciated.
 Thx

 --
 Marco




-- 
Marco

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



Re: Style TabLayoutPanel

2011-03-24 Thread Marco Gadaleta
Thx, it has produced a result only : the images on the angles has changed,
but the tab color is the same...
I don't know where is the problem..

On Thu, Mar 24, 2011 at 11:44 AM, mtrebizan mtrebi...@gmail.com wrote:

 try reorder css files. usually your css file has to be in the last
 position, to override standard.css from GWT. other way is to use !
 important. example:

 .gwt-DecoratorPanel .bottomCenter {
 background: #ccc !important;
  }

 marko

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




-- 
Marco

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



FocusPanel selection borderless

2011-03-24 Thread Marco Gadaleta
Hello everyone,
I'm using a FocusPanel widget and i wan't to remove the border of selection
when i click on the focus panel.
I've try with a css with border: none  but without succes..
Any idea?

-- 
Marco

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



Re: Style TabLayoutPanel

2011-03-24 Thread Marco Gadaleta
I use !important for all..

On Thu, Mar 24, 2011 at 3:45 PM, mtrebizan mtrebi...@gmail.com wrote:

 You tried assign !important to all your styles or did you just used
 mine? You should try using Firebug (addon for Firefox).

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




-- 
Marco

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



TableLayoutPanel css

2011-03-23 Thread Marco Gadaleta
can Someone help me saying where i can found an example for a
tablelayoupanel styling ?

thx

-- 
Marco

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



Re: DockLayoutPanel with global Scroll

2011-03-23 Thread Marco Gadaleta
Thx john..i think to follow your suggestion.

On Tue, Mar 22, 2011 at 9:06 PM, John LaBanca jlaba...@google.com wrote:

 ResizeLayoutPanel ProvidesResize but does not RequireResize, so it allows
 you to embed layout panels within your app.  However, I wouldn't recommend
 using too many of them as it could affect the performance of your app.
 ResizeLayoutPanel is checked into trunk and will be included in GWT 2.3.

 Thanks,
 John LaBanca
 jlaba...@google.com


 On Tue, Mar 22, 2011 at 3:21 PM, Jens jens.nehlme...@gmail.com wrote:

 Yeah right. LayoutPanel and all other LayoutPanels should be in a
 LayoutPanel hierarchy starting with RootLayoutPanel. If you ever put a
 LayoutPanel in a normal panel I think you have to set width and height to
 100%.

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





-- 
Marco

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



Re: TableLayoutPanel css

2011-03-23 Thread Marco Gadaleta
TableLayoutPanel is incorrect.
I was referring to TabLayoutPanel;

On Wed, Mar 23, 2011 at 12:05 PM, Marco Gadaleta
gadaleta.ma...@gmail.comwrote:

 can Someone help me saying where i can found an example for a
 tablelayoupanel styling ?

 thx

 --
 Marco




-- 
Marco

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



Re: TableLayoutPanel css

2011-03-23 Thread Marco Gadaleta
nothing..??

On Wed, Mar 23, 2011 at 12:24 PM, Marco Gadaleta
gadaleta.ma...@gmail.comwrote:

 TableLayoutPanel is incorrect.
 I was referring to TabLayoutPanel;


 On Wed, Mar 23, 2011 at 12:05 PM, Marco Gadaleta gadaleta.ma...@gmail.com
  wrote:

 can Someone help me saying where i can found an example for a
 tablelayoupanel styling ?

 thx

 --
 Marco




 --
 Marco




-- 
Marco

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



Style TabLayoutPanel

2011-03-23 Thread Marco Gadaleta
Hello everyone,
I'm trying to style a TabLayoutPanel but without success.
More precisely, I'm trying to change the color of tab and the border of
content area..
but i cannot find their way..

Any suggestion would be appreciated.
Thx

-- 
Marco

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



Re: Celltable Css

2011-03-22 Thread Marco Gadaleta
The problem of ClientBundle however is that if i've a bundle it must be in
the same position of css..in this way i can't add external css dynamically..

On Mon, Mar 21, 2011 at 11:32 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Monday, March 21, 2011 8:24:05 PM UTC+1, gadaleta.marco wrote:

 It' so strange.
 In this way i cant handle multiple css..


 Yes you can.

 You can have several CellTable.Resources/Style instances, and you can also
 define your CellTable.Style to use @external CSS class names soyou can style
 them with an external CSS stylesheet.




-- 
Marco

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



DockLayoutPanel with global Scroll

2011-03-22 Thread Marco Gadaleta
Hello everyone,
i'm trying to use a docklayoutpanel inside a scrollpanel,
but if i do this gwt gets angry with me...

I use a docklayoutpanel becouse i want to adapt width to screen size,
and a scrollpanel becouse i can have very long content and i want a unique
scroll for all elements added to the screen..

Any suggestion is appreciated.

Thx,
-- 
Marco

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



Re: DockLayoutPanel with global Scroll

2011-03-22 Thread Marco Gadaleta
thx ;-)

On Tue, Mar 22, 2011 at 3:16 PM, Patrice De Saint Steban 
patou.de.saint.ste...@gmail.com wrote:

 Hello

 you can't use the DockLayoutPanel for do this, but you can use the
 LayoutPanel to add Layer, and attach Layer on the Top, left and Right to the
 screen and allow the size to be growing to the content.

 Patrice




-- 
Marco

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



Re: DockLayoutPanel with global Scroll

2011-03-22 Thread Marco Gadaleta
But if i want to add a LayoutPanel i cant use RootPanel but I must use
RootLayoutPanel..
Is it right?

On Tue, Mar 22, 2011 at 3:36 PM, Marco Gadaleta gadaleta.ma...@gmail.comwrote:

 thx ;-)


 On Tue, Mar 22, 2011 at 3:16 PM, Patrice De Saint Steban 
 patou.de.saint.ste...@gmail.com wrote:

 Hello

 you can't use the DockLayoutPanel for do this, but you can use the
 LayoutPanel to add Layer, and attach Layer on the Top, left and Right to the
 screen and allow the size to be growing to the content.

 Patrice




 --
 Marco




-- 
Marco

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



Style CellTable UiBinder

2011-03-21 Thread Marco Gadaleta
Hello everyone,
I'm going crazy..
I'm trying to set a style to celltable object in this way:
mycelltable.setStylePrimaryName;
I also tryed to set mycelltable.addColumnStyleName
but...nothing...

any help would be appreciated
Thx,
Marco

-- 
Marco

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



Style CellTable UiBinder

2011-03-21 Thread Marco Gadaleta
Hello everyone,
I'm going crazy..
I'm trying to set a style to celltable object in this way:
mycelltable.setStylePrimaryName;
I also tryed to set mycelltable.addColumnStyleName
but...nothing...

any help would be appreciated
Thx,
Marco

-- 
Marco

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



Re: Style CellTable UiBinder

2011-03-21 Thread Marco Gadaleta
Help!!!

On Mon, Mar 21, 2011 at 1:40 PM, Marco Gadaleta gadaleta.ma...@gmail.comwrote:

 Hello everyone,
 I'm going crazy..
 I'm trying to set a style to celltable object in this way:
 mycelltable.setStylePrimaryName;
 I also tryed to set mycelltable.addColumnStyleName
 but...nothing...

 any help would be appreciated
 Thx,
 Marco

 --
 Marco




-- 
Marco

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



Celltable Css

2011-03-21 Thread Marco Gadaleta
Hello i'm needing help about the possibility to style cellTable using a css
declared in this way in the host page:

 link type=text/css rel=stylesheet href=Global.css

I'm trying to assign css in setstyle..but without result.
Any help is appreciate


-- 
Marco

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



Re: Celltable Css

2011-03-21 Thread Marco Gadaleta
It' so strange.
In this way i cant handle multiple css..


On Mon, Mar 21, 2011 at 5:40 PM, Y2i yur...@gmail.com wrote:

 Not sure if declaring styles in html file will work, but the standard
 approach where you pass resources to the cell table constructor works.

 http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_an_external_resource
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/CellTable.html#CellTable(int,
 com.google.gwt.user.cellview.client.CellTable.Resources)

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




-- 
Marco

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



Re: CellTable Filter

2011-03-18 Thread Marco Gadaleta
Se dovessi trovare qualcosa ti faccio un fischio :-)

On Fri, Mar 18, 2011 at 8:44 AM, Albert Lacambra alacam...@gmail.comwrote:

 You could just take the filtered elements and full it again. I don't know
 of some native method. Some other idea would be welcome :D

 Al


 On 17 March 2011 19:12, gadaleta.marco gadaleta.ma...@gmail.com wrote:

 Hello everyone,
 I was wondering if there is the possibility to apply a filter on a
 celltable or celllist.
 If so, could you tell me how?

 Txh,
 Marco

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


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




-- 
Marco

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



Re: DropDown Button

2011-03-15 Thread Marco Gadaleta
Hi Jim,
I've yet done as you have say to me.
But can you tell me the instruction to insert an arrow on th face?

Thx you,
Marco

On Mon, Mar 14, 2011 at 9:34 PM, Jim Douglas jdou...@basis.com wrote:

 Make a button with text and a dropdown arrow on the face, react to the
 button click by showing an autohide popup panel containing a menubar
 at the appropriate location.

 Implementation details left an an exercise for the student.

 On Mar 14, 1:12 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  +1
 
  2011/3/14 Marco Gadaleta gadaleta.ma...@gmail.com
 
 
 
   Nothing???
 
   On Wed, Mar 9, 2011 at 1:53 PM, gadaleta.marco 
 gadaleta.ma...@gmail.comwrote:
 
   hello everyone,
   there a way to create a button in gwt like gmail more actions button
   without using external library?
   Thx, hope you can help me.
 
   --
   Marco
 
   --
   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.

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




-- 
Marco

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



Add icon to Button

2011-03-14 Thread Marco Gadaleta
Hi,
i'm try to add icon to a button using gwt.
Someone can help me?

Thx,
Marco

-- 
Marco

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



Re: DropDown Button

2011-03-14 Thread Marco Gadaleta
Nothing???

On Wed, Mar 9, 2011 at 1:53 PM, gadaleta.marco gadaleta.ma...@gmail.comwrote:

 hello everyone,
 there a way to create a button in gwt like gmail more actions button
 without using external library?
 Thx, hope you can help me.




-- 
Marco

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



Re: DropDown Button

2011-03-14 Thread Marco Gadaleta
?

On Mon, Mar 14, 2011 at 9:12 PM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 +1

 2011/3/14 Marco Gadaleta gadaleta.ma...@gmail.com

 Nothing???

 On Wed, Mar 9, 2011 at 1:53 PM, gadaleta.marco 
 gadaleta.ma...@gmail.comwrote:

 hello everyone,
 there a way to create a button in gwt like gmail more actions button
 without using external library?
 Thx, hope you can help me.




 --
 Marco

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


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




-- 
Marco

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



Re: ImageCell clickable

2011-03-12 Thread Marco Gadaleta
There is a way to handle selection?

On Sat, Mar 12, 2011 at 12:21 PM, gadaleta.marco
gadaleta.ma...@gmail.comwrote:

 Hi,
 there is a a way to click on an ImageCell colum like
 ClickableTextCell?

 Thx,
 Marco




-- 
Marco

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



FieldUpadater not work

2011-03-12 Thread Marco Gadaleta
Hi i've created a field updater for celltable column.

It works for TextColum but not for ImageCell.


Why this?

-- 
Marco

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



Re: ImageCell clickable

2011-03-12 Thread Marco Gadaleta
I've fix it write my own class

On Sat, Mar 12, 2011 at 1:18 PM, Marco Gadaleta gadaleta.ma...@gmail.comwrote:

 There is a way to handle selection?


 On Sat, Mar 12, 2011 at 12:21 PM, gadaleta.marco gadaleta.ma...@gmail.com
  wrote:

 Hi,
 there is a a way to click on an ImageCell colum like
 ClickableTextCell?

 Thx,
 Marco




 --
 Marco




-- 
Marco

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



Datagrid Json

2011-03-09 Thread Marco Gadaleta
Hi, this is the possibility to use json object inside celltable ?
I hope in a response.
Thx,

-- 
Marco

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



Multi Gwt Project

2011-03-05 Thread Marco Gadaleta
Hello everyone,
i want put a question relative a kind of multi-project project
implementation .
I have 2 gwt modules (Main Project,  X Project).
i want to load X Project into Main Project with the possibility to pass
values between modules.
What is the best practies?

Thx, Marco

-- 
Marco

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



Re: RequestBuilder and StatusCode=0

2011-03-04 Thread Marco Gadaleta
Thank you for reply.
In this link
http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c46 i've
read that
i must add dependency to the project. How do i can do this?

On Thu, Mar 3, 2011 at 7:36 PM, Y2i yur...@gmail.com wrote:

 Could be the Same Origin Policy violation that has been discussed on this
 forum
 https://groups.google.com/d/msg/google-web-toolkit/bqADKUq2Eoo/tWeiF5Me3KUJ

 https://groups.google.com/forum/?fromgroups#!searchin/google-web-toolkit/RequestBuilder$20and$20StatusCode=0


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




-- 
Marco

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



Re: RequestBuilder and StatusCode=0

2011-03-04 Thread Marco Gadaleta
http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_JSONFeedsFromOtherDomain

I'm trying to use this method. It call the servlet, but it doesn't return me
anything.
Any suggestion?



On Fri, Mar 4, 2011 at 10:41 AM, Alex D. alex.dobjans...@gmail.com wrote:

 Same Origin Policy - you cannot call another host, or same host with
 different port. XML-RPC implementation will not allow you to do that.
 Actually, the XmlHttpRequest that is ajax core and used for all the calls
 will not allow you to do that (so the browser will actually limit you
 there). You could use REST, or have a proxy implementation (you proxy to a
 servlet using XML-RPC and the servlet is doing the call to that host, using
 http client).

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




-- 
Marco

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



  1   2   >