Re: GWT project structure to reduce compile time

2013-12-21 Thread Thomas Broyer
If you GWT-compiler a module, it (generally) means it's standalone. It 
might be "inherited" by other modules, but you'd generally extract an 
intermediate module to work as a "library" (vs. "application").

But that shouldn't really affect what you're seeing. If your problem is 
that module_1 is recompiled when compiling a module that inherits it, then 
it probably means you have a configuration issue in your POM. Are you using 
module auto-discovery with the gwt-maven-plugin? (from what I can see from 
the code, it shouldn't see module_1, but maybe I missed something).

But are you really sure the modules are recompiled? Keep in mind that GWT 
compilation is monolithic (for the time being, this will change).

On Wednesday, December 11, 2013 5:00:36 PM UTC+1, Beatriz Nombela wrote:
>
> Hi!
>
> I'm trying to reduce the compile time of a GWT project on jenkins. My 
> project structure can be summarized to the following one:
>
> - module_1: jar and GWT module
> - module_2: multimodule maven project, each submodule is a jar, and each 
> one contains a GWT module. Each GWT module inherits from module_1
> - module_3: war, contains a GWT module that inherits from module_2
>
> The problem with this structure is the moment when everything is compiled 
> on jenkins:
> - module_1 compiles
> - module_2 compiles, and accordingly module_1 is compiled again
> - module_3 compiles, and accordingly each submodule in module_2 is 
> compiled, and at the same time module_1 is compiled again some more times
>
> My goal is to avoid recompiling some of the modules so many times. I'd 
> like to know whether the GWT modules are well structured or not, so I could 
> focus on restructuring GWT modules or in Jenkins side.
>
> Thanks in advance!
>

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


Re: "Object does not support property or method attachEvent" on IE 7,8,9,10

2013-12-21 Thread Jens

>
> The problem was reported by a client using IE8. We try to reproduce it 
> using IE8 User Agent String in IE 11 development tool. In the JS console we 
> get "Object doesn't support property or method 'attachEvent'.
>

By using the IE 8 user agent string you are forcing GWT to choose the IE 8 
permutation which uses attachEvent(). But at the same time you have told 
your IE 11 to work in document mode "edge" which means it uses the newest 
features and HTML APIs. In "edge" mode IE 11 does not support 
attachEvent(). So you should try to set the document mode to IE 8 too. If 
thats not possible or you are still seeing the issue in IE 11 then you have 
to use a real IE 8 (or maybe try IE 9/10 and set them to document mode of 
IE 8).

If the client reports the same issue using IE 8 then your client has a 
misconfigured IE 8 (similar to how you misconfigured your IE 11). You can 
search this group for attachEvent problems and if I remember correctly most 
of the time an old Chrome Frame plugin was installed in IE 8 which has 
caused GWT to still use the IE 8 permutation although the app will be 
rendered by the chrome engine/plugin which does not support attachEvent().

-- J.

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


Re: "Object does not support property or method attachEvent" on IE 7,8,9,10

2013-12-21 Thread Moutellou
The problem was reported by a client using IE8. We try to reproduce it 
using IE8 User Agent String in IE 11 development tool. In the JS console we 
get "Object doesn't support property or method 'attachEvent'.


On Saturday, December 21, 2013 9:35:00 AM UTC-5, Jens wrote:
>
> Do you have Chrome Frame installed in your IE? Or does your IE use a 
> custom User Agent string?
>
> This error basically means GWT is using code that only works in (older) 
> IE's (attachEvent) but the browser you are using is not IE (or its IE 11, 
> but in that case GWT should choose the Gecko/FireFox permutation which does 
> not use attachEvent)
>
> -- J.
>

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

Re: CellTable - ListDataProvider - Table not updating on subsequent calls

2013-12-21 Thread Alfredo Quiroga
Ufff it's been so long I can't remember :( sorry and on top of it I deleted the 
project. I just read my own email again to see if I could tell what I was doing 
wrong and even now can't really tell.

Sent from my iPhone

> On Dec 21, 2013, at 8:40 AM, Javed Sumra  wrote:
> 
> Hello Alfredo.  I am having a similar issue.  Did you get to the bottom of 
> this?
> 
> Thanks
> 
>> On Saturday, August 4, 2012 3:10:46 PM UTC+1, Alfredo Quiroga-Villamil wrote:
>> I am still investigating here on my side, but I have a feeling I might 
>> be missing the obvious so if someone knows what I am missing or 
>> potentially doing wrong please let me know. 
>> 
>> Elements: 
>> 
>> - A CellTable 
>> - A ListDataProvider 
>> - RequestFactory 
>> - A "refresh" button 
>> 
>> Scenario: 
>> 
>> - The CellTable is populated via RequestFactory. 
>> - On the first load, all data is shown in the table (all rows are populated) 
>> - I have a button (refresh). 
>> - The Table can be edited, so as an example I edit the first row, 
>> first cell and simply change the text to something else. 
>> - I click on the refresh button and load a brand new list of proxies 
>> from the server using request factory. 
>> - I clear my provider's list and add the new proxies. 
>> - The new list doesn't replace the old values (previously edited). 
>> 
>> Curiosity: 
>> 
>> I've noticed that after I click refresh, although at first glance the 
>> edited cell didn't change, if I click on it once or twice, it'll 
>> correctly display the last value loaded from the server. This is very 
>> unusual behavior. I've also tried to invoke refresh and flush on the 
>> provider itself after adding the new set of proxies. 
>> 
>> Presenter's code that is invoked for the first load and subsequent 
>> ones is shown below: 
>> 
>> @Override 
>> public void readAll() { 
>> 
>> destinationContext = 
>> factory.getRequestFactory().createDestinationContext(); 
>> destinationContext.findAll().with("cards", "cards.trunks", 
>> "daysOfWeek", "daysOfWeek.hourlySchedule", "holidays") 
>> .fire(new Receiver>() 
>> { 
>> 
>> @Override 
>> public void 
>> onSuccess(List proxies) { 
>> 
>> 
>> view.getDestinationCellTable().getProvider().getList().clear(); 
>> 
>> view.getDestinationCellTable().getProvider().getList().addAll(proxies); 
>> 
>> if (proxies != null && 
>> proxies.size() > 0) { 
>> 
>> view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0),
>>  
>> true); 
>> } 
>> 
>> } 
>> 
>> }); 
>> 
>> } 
>> 
>> I am still investigating here, but as I previously said if you see 
>> that I am simply missing the obvious I would appreciate it if you can 
>> let me know. 
>> 
>> Thank you in advance, 
>> 
>> Alfredo 
>> 
>> -- 
>> Alfredo Quiroga-Villamil 
>> 
>> AOL/Yahoo/Gmail/MSN IM:  lawwton
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.

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


Re: CellTable - ListDataProvider - Table not updating on subsequent calls

2013-12-21 Thread Javed Sumra
Hello Alfredo.  I am having a similar issue.  Did you get to the bottom of 
this?

Thanks

On Saturday, August 4, 2012 3:10:46 PM UTC+1, Alfredo Quiroga-Villamil 
wrote:
>
> I am still investigating here on my side, but I have a feeling I might 
> be missing the obvious so if someone knows what I am missing or 
> potentially doing wrong please let me know. 
>
> Elements: 
>
> - A CellTable 
> - A ListDataProvider 
> - RequestFactory 
> - A "refresh" button 
>
> Scenario: 
>
> - The CellTable is populated via RequestFactory. 
> - On the first load, all data is shown in the table (all rows are 
> populated) 
> - I have a button (refresh). 
> - The Table can be edited, so as an example I edit the first row, 
> first cell and simply change the text to something else. 
> - I click on the refresh button and load a brand new list of proxies 
> from the server using request factory. 
> - I clear my provider's list and add the new proxies. 
> - The new list doesn't replace the old values (previously edited). 
>
> Curiosity: 
>
> I've noticed that after I click refresh, although at first glance the 
> edited cell didn't change, if I click on it once or twice, it'll 
> correctly display the last value loaded from the server. This is very 
> unusual behavior. I've also tried to invoke refresh and flush on the 
> provider itself after adding the new set of proxies. 
>
> Presenter's code that is invoked for the first load and subsequent 
> ones is shown below: 
>
> @Override 
> public void readAll() { 
>
> destinationContext = 
> factory.getRequestFactory().createDestinationContext(); 
> destinationContext.findAll().with("cards", "cards.trunks", 
> "daysOfWeek", "daysOfWeek.hourlySchedule", "holidays") 
> .fire(new 
> Receiver>() { 
>
> @Override 
> public void 
> onSuccess(List proxies) { 
>
> 
> view.getDestinationCellTable().getProvider().getList().clear(); 
>
> 
> view.getDestinationCellTable().getProvider().getList().addAll(proxies); 
>
>
> if (proxies != null && 
> proxies.size() > 0) { 
> 
> view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0),
>  
>
> true); 
> } 
>
> } 
>
> }); 
>
> } 
>
> I am still investigating here, but as I previously said if you see 
> that I am simply missing the obvious I would appreciate it if you can 
> let me know. 
>
> Thank you in advance, 
>
> Alfredo 
>
> -- 
> Alfredo Quiroga-Villamil 
>
> AOL/Yahoo/Gmail/MSN IM:  lawwton 
>

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


Re: Soft Permutation Creating JavaScript for Server Side Script Selection

2013-12-21 Thread Jens

>
> As far as I am aware off you can always collapse different permutations 
> into a single one or a subset.
>

Ah sure you can do that. You could even collapse everything (even the 
user.agent) and then use the Single Script Linker to produce a single 
script for everything. Obviously you got some overhead but maybe it is good 
enough for you (for example if its an intranet app and you have high 
bandwidth anyways).

To try it you can do:





-- J.

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


Re: binding MultiSelectionModel to checkBoxColumn in CellTable, but why checkBoxs in column were not AUTO-selected CORRESPONDINGLY to SelectionModel?

2013-12-21 Thread Tom
Thank you Donald Mteka anyway, 
Since you brought up that line of code & that trigger my brain to get it 
right.

On Sunday, December 22, 2013 1:32:17 AM UTC+11, Donald Mteka wrote:
>
> That's correct.  
> infact your 'notion' of the key is the only thing that changed, from 
> 'combination of id&no'  to the  array Object itself!
>  That was same thing as creating CompoundKey class if you insisted on 
> maintaining that picture of a key.. 
> It works because by returning the key as the array object itself, not only 
> should obj1.equals(obj2) return true, but obj1 == obj2 alse. 
> The model would use .equals method to compare the keys returned by the 
> ProvidesKey to determine whether an object is contained in its selected 
> set. 
>  Glad you fixed it!!
>  
>
>
> On Sat, Dec 21, 2013 at 5:20 PM, Tom >wrote:
>
>> hi, i haven't try ur method but i fixed,
>> first, just use item[]
>> public Object getKey(String[] item) {
>>  return item == null ? null : item;
>> }
>>
>>
>> & then 
>> public Boolean getValue(String[] object) {
>>  return selectionModel.isSelected(object);
>> }
>>
>> thenb use 
>> cellTable.setSelectionModel(selectionModel, 
>> DefaultSelectionEventManager. createCheckboxManager());
>>
>> Finally, it work as i expected
>>
>>
>> On Sunday, December 22, 2013 1:13:30 AM UTC+11, Donald Mteka wrote:
>>
>>> Ok, the following changes should fix your problem:
>>> 1) Crate a class CompoundKey, or similarly, overriding the equals method 
>>> as follows
>>> public class CompoundKey{
>>> private String id;
>>>private String no;
>>> public CombinedKey(String id, String no){
>>>  this.id=id;
>>>  this.no=no;
>>> }
>>>
>>>   public boolean equals(Object other){
>>> if(!(other instanceof CompoundKey))return false;
>>>
>>>CompoundKey otherCK=(CompoundKey)other;
>>>   return this.id.equals(otherCK.id) && this.no.equals(otherCK.no);
>>>   }
>>>   
>>>  }
>>>
>>> 2)Implement ProvidesKey's getKey method as:
>>>  public Object getKey(String[] object){
>>>   return new CompoundKey(object[0],object[1]);
>>>   }
>>>
>>> 3)Implement CheckBox column's getValues method as:
>>>   public Object getValue(String[] object){
>>>   return model.isSelected(object);
>>> }
>>>  
>>> HTH,
>>>
>>>
>>> On Sat, Dec 21, 2013 at 4:57 PM, Tom  wrote:
>>>
 The unique key is the combination of ID and No column
 so how to fix?


 On Sunday, December 22, 2013 12:43:04 AM UTC+11, Donald Mteka wrote:

> Hello Tom,
>  your problem stems from the use of newly created array objects in 
> your ProvidesKey and checkbox Column implementations. These array objects 
> returned for getKey(..)  and getValue(...) would never equal any other! 
> Hence model.isSelected(..) will always return false. 
>
>  And as a side note, your null check in ProvidesKey implementation is 
> insignificant as the NullPointerException would have been already thrown 
> at 
> line:
>  
>
> String[] itemArr={item[0],item[1]};
>
>
> Regards
>
>
>
> On Sat, Dec 21, 2013 at 4:08 PM, Tom  wrote:
>
>> Here is my problem. I have simple table with 3 columns (Id, no, text) 
>> Id and no combination creates a unique key for each row.
>>
>> Id - no - text
>> 12 - 1 - my text1
>> 12 - 2 - my text2
>> 13 - 1 - cool
>> 13 - 2 - cool2
>> 13 - 3 - cool3
>>
>> Now, i want to load these data into a CellTable with 4 columns (the 
>> 1st column is checkBoxColumn, the other 3 columns are ID/No/Text 
>> textcolum. 
>> I also want to put a SelectAllCheckBox on the Header of checkBoxColumn 
>> so 
>> that when user click on selectAllCheckBox then all the current visible 
>> checkBoxes got selected (of cause celltable could have many page but it 
>> will select only the visible ones).
>>
>> Here is the code, i finished all the requirements except 1, that is 
>> "when i clicked the selectAllCheckBox, theselectionModel got 
>> selected but the correspondingly checkBoxes were not selected.
>>
>> Here is the Code.
>>
>> public static final ProvidesKey KEY_PROVIDER = new 
>> ProvidesKey() {
>>   @Override
>>   public Object getKey(String[] item) {
>> String[] itemArr={item[0],item[1]};
>> return item == null ? null : itemArr;
>>
>>   }
>> };
>>
>> Here is the main CrllTable code:
>>
>> final MultiSelectionModel selectionModel = new 
>> MultiSelectionModel(KEY_PROVIDER);
>>
>> final CellTable cellTable = new CellTable();
>>
>> Column checkColumn = new Column(
>> new CheckboxCell(true, false)) {
>> @Override
>> public Boolean getValue(String[] object) {
>> // Get the value from the selection model.
>>  String[] objectArr={object[0],object[1]};
>>
>>  return sel

Re: "Object does not support property or method attachEvent" on IE 7,8,9,10

2013-12-21 Thread Jens
Do you have Chrome Frame installed in your IE? Or does your IE use a custom 
User Agent string?

This error basically means GWT is using code that only works in (older) 
IE's (attachEvent) but the browser you are using is not IE (or its IE 11, 
but in that case GWT should choose the Gecko/FireFox permutation which does 
not use attachEvent)

-- J.

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


Re: binding MultiSelectionModel to checkBoxColumn in CellTable, but why checkBoxs in column were not AUTO-selected CORRESPONDINGLY to SelectionModel?

2013-12-21 Thread Donald Mteka
That's correct.
infact your 'notion' of the key is the only thing that changed, from
'combination of id&no'  to the  array Object itself!
 That was same thing as creating CompoundKey class if you insisted on
maintaining that picture of a key..
It works because by returning the key as the array object itself, not only
should obj1.equals(obj2) return true, but obj1 == obj2 alse.
The model would use .equals method to compare the keys returned by the
ProvidesKey to determine whether an object is contained in its selected
set.
 Glad you fixed it!!



On Sat, Dec 21, 2013 at 5:20 PM, Tom  wrote:

> hi, i haven't try ur method but i fixed,
> first, just use item[]
> public Object getKey(String[] item) {
>  return item == null ? null : item;
> }
>
>
> & then
> public Boolean getValue(String[] object) {
>  return selectionModel.isSelected(object);
> }
>
> thenb use
> cellTable.setSelectionModel(selectionModel,
> DefaultSelectionEventManager. createCheckboxManager());
>
> Finally, it work as i expected
>
>
> On Sunday, December 22, 2013 1:13:30 AM UTC+11, Donald Mteka wrote:
>
>> Ok, the following changes should fix your problem:
>> 1) Crate a class CompoundKey, or similarly, overriding the equals method
>> as follows
>> public class CompoundKey{
>> private String id;
>>private String no;
>> public CombinedKey(String id, String no){
>>  this.id=id;
>>  this.no=no;
>> }
>>
>>   public boolean equals(Object other){
>> if(!(other instanceof CompoundKey))return false;
>>
>>CompoundKey otherCK=(CompoundKey)other;
>>   return this.id.equals(otherCK.id) && this.no.equals(otherCK.no);
>>   }
>>
>>  }
>>
>> 2)Implement ProvidesKey's getKey method as:
>>  public Object getKey(String[] object){
>>   return new CompoundKey(object[0],object[1]);
>>  }
>>
>> 3)Implement CheckBox column's getValues method as:
>>   public Object getValue(String[] object){
>>   return model.isSelected(object);
>> }
>>
>> HTH,
>>
>>
>> On Sat, Dec 21, 2013 at 4:57 PM, Tom  wrote:
>>
>>> The unique key is the combination of ID and No column
>>> so how to fix?
>>>
>>>
>>> On Sunday, December 22, 2013 12:43:04 AM UTC+11, Donald Mteka wrote:
>>>
 Hello Tom,
  your problem stems from the use of newly created array objects in your
 ProvidesKey and checkbox Column implementations. These array objects
 returned for getKey(..)  and getValue(...) would never equal any other!
 Hence model.isSelected(..) will always return false.

  And as a side note, your null check in ProvidesKey implementation is
 insignificant as the NullPointerException would have been already thrown at
 line:


 String[] itemArr={item[0],item[1]};

 Regards



 On Sat, Dec 21, 2013 at 4:08 PM, Tom  wrote:

> Here is my problem. I have simple table with 3 columns (Id, no, text)
> Id and no combination creates a unique key for each row.
>
> Id - no - text
> 12 - 1 - my text1
> 12 - 2 - my text2
> 13 - 1 - cool
> 13 - 2 - cool2
> 13 - 3 - cool3
>
> Now, i want to load these data into a CellTable with 4 columns (the
> 1st column is checkBoxColumn, the other 3 columns are ID/No/Text 
> textcolum.
> I also want to put a SelectAllCheckBox on the Header of checkBoxColumn so
> that when user click on selectAllCheckBox then all the current visible
> checkBoxes got selected (of cause celltable could have many page but it
> will select only the visible ones).
>
> Here is the code, i finished all the requirements except 1, that is
> "when i clicked the selectAllCheckBox, theselectionModel got selected
> but the correspondingly checkBoxes were not selected.
>
> Here is the Code.
>
> public static final ProvidesKey KEY_PROVIDER = new 
> ProvidesKey() {
>   @Override
>   public Object getKey(String[] item) {
> String[] itemArr={item[0],item[1]};
> return item == null ? null : itemArr;
>
>   }
> };
>
> Here is the main CrllTable code:
>
> final MultiSelectionModel selectionModel = new 
> MultiSelectionModel(KEY_PROVIDER);
>
> final CellTable cellTable = new CellTable();
>
> Column checkColumn = new Column(
> new CheckboxCell(true, false)) {
> @Override
> public Boolean getValue(String[] object) {
> // Get the value from the selection model.
>  String[] objectArr={object[0],object[1]};
>
>  return selectionModel.isSelected(objectArr);
>
>
>
>  }
>  };
>
>  cellTable.setSelectionModel(selectionModel);
>  CheckboxHeader selectAllCheckBoxHeader = new CheckboxHeader();
>  selectAllCheckBoxHeader.addValueChangeHandler(new ValueChangeHandler(){
>
> @Override
> public void onValueChange(ValueChangeEvent event) {
> 

Re: binding MultiSelectionModel to checkBoxColumn in CellTable, but why checkBoxs in column were not AUTO-selected CORRESPONDINGLY to SelectionModel?

2013-12-21 Thread Tom
hi, i haven't try ur method but i fixed,
first, just use item[]
public Object getKey(String[] item) {
 return item == null ? null : item;
}


& then 
public Boolean getValue(String[] object) {
 return selectionModel.isSelected(object);
}

thenb use 
cellTable.setSelectionModel(selectionModel, 
DefaultSelectionEventManager. createCheckboxManager());

Finally, it work as i expected

On Sunday, December 22, 2013 1:13:30 AM UTC+11, Donald Mteka wrote:
>
> Ok, the following changes should fix your problem:
> 1) Crate a class CompoundKey, or similarly, overriding the equals method 
> as follows
> public class CompoundKey{
> private String id;
>private String no;
> public CombinedKey(String id, String no){
>  this.id=id;
>  this.no=no;
> }
>
>   public boolean equals(Object other){
> if(!(other instanceof CompoundKey))return false;
>
>CompoundKey otherCK=(CompoundKey)other;
>   return this.id.equals(otherCK.id) && this.no.equals(otherCK.no);
>   }
>   
>  }
>
> 2)Implement ProvidesKey's getKey method as:
>  public Object getKey(String[] object){
>   return new CompoundKey(object[0],object[1]);
>  }
>
> 3)Implement CheckBox column's getValues method as:
>   public Object getValue(String[] object){
>   return model.isSelected(object);
> }
>  
> HTH,
>
>
> On Sat, Dec 21, 2013 at 4:57 PM, Tom >wrote:
>
>> The unique key is the combination of ID and No column
>> so how to fix?
>>
>>
>> On Sunday, December 22, 2013 12:43:04 AM UTC+11, Donald Mteka wrote:
>>
>>> Hello Tom,
>>>  your problem stems from the use of newly created array objects in your 
>>> ProvidesKey and checkbox Column implementations. These array objects 
>>> returned for getKey(..)  and getValue(...) would never equal any other! 
>>> Hence model.isSelected(..) will always return false. 
>>>
>>>  And as a side note, your null check in ProvidesKey implementation is 
>>> insignificant as the NullPointerException would have been already thrown at 
>>> line:
>>>  
>>>
>>> String[] itemArr={item[0],item[1]};
>>>
>>> Regards
>>>
>>>
>>>
>>> On Sat, Dec 21, 2013 at 4:08 PM, Tom  wrote:
>>>
 Here is my problem. I have simple table with 3 columns (Id, no, text) 
 Id and no combination creates a unique key for each row.

 Id - no - text
 12 - 1 - my text1
 12 - 2 - my text2
 13 - 1 - cool
 13 - 2 - cool2
 13 - 3 - cool3

 Now, i want to load these data into a CellTable with 4 columns (the 1st 
 column is checkBoxColumn, the other 3 columns are ID/No/Text textcolum. I 
 also want to put a SelectAllCheckBox on the Header of checkBoxColumn so 
 that when user click on selectAllCheckBox then all the current visible 
 checkBoxes got selected (of cause celltable could have many page but it 
 will select only the visible ones).

 Here is the code, i finished all the requirements except 1, that is 
 "when i clicked the selectAllCheckBox, theselectionModel got selected 
 but the correspondingly checkBoxes were not selected.

 Here is the Code.

 public static final ProvidesKey KEY_PROVIDER = new 
 ProvidesKey() {
   @Override
   public Object getKey(String[] item) {
 String[] itemArr={item[0],item[1]};
 return item == null ? null : itemArr;

   }
 };

 Here is the main CrllTable code:

 final MultiSelectionModel selectionModel = new 
 MultiSelectionModel(KEY_PROVIDER);

 final CellTable cellTable = new CellTable();

 Column checkColumn = new Column(
 new CheckboxCell(true, false)) {
 @Override
 public Boolean getValue(String[] object) {
 // Get the value from the selection model.
  String[] objectArr={object[0],object[1]};

  return selectionModel.isSelected(objectArr);



  }
  };

  cellTable.setSelectionModel(selectionModel);
  CheckboxHeader selectAllCheckBoxHeader = new CheckboxHeader();
  selectAllCheckBoxHeader.addValueChangeHandler(new ValueChangeHandler(){

 @Override
 public void onValueChange(ValueChangeEvent event) {
 // TODO Auto-generated method stub
 System.out.println("test");
 for (String[] item : cellTable.getVisibleItems()) {


 if (!selectionModel.isSelected(item)) {
 System.out.println(Arrays.toString(item));
   selectionModel.setSelected(item, true);

 }
 }
 }

   });
   cellTable.addColumn(checkColumn, selectAllCheckBoxHeader);

 When I clikced the selectAll, then non of visible checkBoxes got check, 
 but when printout

 Set selSet=selectionModel.getSelectedSet();
 for(String[] s : selSet){
  

Re: binding MultiSelectionModel to checkBoxColumn in CellTable, but why checkBoxs in column were not AUTO-selected CORRESPONDINGLY to SelectionModel?

2013-12-21 Thread Donald Mteka
Ok, the following changes should fix your problem:
1) Crate a class CompoundKey, or similarly, overriding the equals method as
follows
public class CompoundKey{
private String id;
   private String no;
public CombinedKey(String id, String no){
 this.id=id;
 this.no=no;
}

  public boolean equals(Object other){
if(!(other instanceof CompoundKey))return false;

   CompoundKey otherCK=(CompoundKey)other;
  return this.id.equals(otherCK.id) && this.no.equals(otherCK.no);
  }

 }

2)Implement ProvidesKey's getKey method as:
 public Object getKey(String[] object){
  return new CompoundKey(object[0],object[1]);
 }

3)Implement CheckBox column's getValues method as:
  public Object getValue(String[] object){
  return model.isSelected(object);
}

HTH,


On Sat, Dec 21, 2013 at 4:57 PM, Tom  wrote:

> The unique key is the combination of ID and No column
> so how to fix?
>
>
> On Sunday, December 22, 2013 12:43:04 AM UTC+11, Donald Mteka wrote:
>
>> Hello Tom,
>>  your problem stems from the use of newly created array objects in your
>> ProvidesKey and checkbox Column implementations. These array objects
>> returned for getKey(..)  and getValue(...) would never equal any other!
>> Hence model.isSelected(..) will always return false.
>>
>>  And as a side note, your null check in ProvidesKey implementation is
>> insignificant as the NullPointerException would have been already thrown at
>> line:
>>
>>
>> String[] itemArr={item[0],item[1]};
>>
>> Regards
>>
>>
>>
>> On Sat, Dec 21, 2013 at 4:08 PM, Tom  wrote:
>>
>>> Here is my problem. I have simple table with 3 columns (Id, no, text) Id
>>> and no combination creates a unique key for each row.
>>>
>>> Id - no - text
>>> 12 - 1 - my text1
>>> 12 - 2 - my text2
>>> 13 - 1 - cool
>>> 13 - 2 - cool2
>>> 13 - 3 - cool3
>>>
>>> Now, i want to load these data into a CellTable with 4 columns (the 1st
>>> column is checkBoxColumn, the other 3 columns are ID/No/Text textcolum. I
>>> also want to put a SelectAllCheckBox on the Header of checkBoxColumn so
>>> that when user click on selectAllCheckBox then all the current visible
>>> checkBoxes got selected (of cause celltable could have many page but it
>>> will select only the visible ones).
>>>
>>> Here is the code, i finished all the requirements except 1, that is
>>> "when i clicked the selectAllCheckBox, theselectionModel got selected
>>> but the correspondingly checkBoxes were not selected.
>>>
>>> Here is the Code.
>>>
>>> public static final ProvidesKey KEY_PROVIDER = new 
>>> ProvidesKey() {
>>>   @Override
>>>   public Object getKey(String[] item) {
>>> String[] itemArr={item[0],item[1]};
>>> return item == null ? null : itemArr;
>>>
>>>   }
>>> };
>>>
>>> Here is the main CrllTable code:
>>>
>>> final MultiSelectionModel selectionModel = new 
>>> MultiSelectionModel(KEY_PROVIDER);
>>>
>>> final CellTable cellTable = new CellTable();
>>>
>>> Column checkColumn = new Column(
>>> new CheckboxCell(true, false)) {
>>> @Override
>>> public Boolean getValue(String[] object) {
>>> // Get the value from the selection model.
>>>  String[] objectArr={object[0],object[1]};
>>>
>>>  return selectionModel.isSelected(objectArr);
>>>
>>>
>>>
>>>  }
>>>  };
>>>
>>>  cellTable.setSelectionModel(selectionModel);
>>>  CheckboxHeader selectAllCheckBoxHeader = new CheckboxHeader();
>>>  selectAllCheckBoxHeader.addValueChangeHandler(new ValueChangeHandler(){
>>>
>>> @Override
>>> public void onValueChange(ValueChangeEvent event) {
>>> // TODO Auto-generated method stub
>>> System.out.println("test");
>>> for (String[] item : cellTable.getVisibleItems()) {
>>>
>>>
>>> if (!selectionModel.isSelected(item)) {
>>> System.out.println(Arrays.toString(item));
>>>   selectionModel.setSelected(item, true);
>>>
>>> }
>>> }
>>> }
>>>
>>>   });
>>>   cellTable.addColumn(checkColumn, selectAllCheckBoxHeader);
>>>
>>> When I clikced the selectAll, then non of visible checkBoxes got check,
>>> but when printout
>>>
>>> Set selSet=selectionModel.getSelectedSet();
>>> for(String[] s : selSet){
>>>   System.out.println("Mine: "+Arrays.toString(s));
>>> }
>>>
>>> it showed the currect selected items
>>>
>>> Suppose pageSize is 3, then Output :
>>>
>>> Mine: [12,1,my text1]
>>> Mine: [12,2,my text2]
>>> Mine: [13,1,cool]
>>>
>>> So how to make visible checkBoxes got selected automatically EXACTLY and
>>> CORESPONDINGLY /In TANDEM as the selectionModel got selected
>>>
>>> Note: I also tried cellTable.setSelectionModel(selectionModel,
>>> DefaultSelectionEventManager. createCheckboxManager()); but
>>> not working.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To uns

Re: binding MultiSelectionModel to checkBoxColumn in CellTable, but why checkBoxs in column were not AUTO-selected CORRESPONDINGLY to SelectionModel?

2013-12-21 Thread Tom
The unique key is the combination of ID and No column
so how to fix?

On Sunday, December 22, 2013 12:43:04 AM UTC+11, Donald Mteka wrote:
>
> Hello Tom,
>  your problem stems from the use of newly created array objects in your 
> ProvidesKey and checkbox Column implementations. These array objects 
> returned for getKey(..)  and getValue(...) would never equal any other! 
> Hence model.isSelected(..) will always return false. 
>
>  And as a side note, your null check in ProvidesKey implementation is 
> insignificant as the NullPointerException would have been already thrown at 
> line:
>  
>
> String[] itemArr={item[0],item[1]};
>
> Regards
>
>
>
> On Sat, Dec 21, 2013 at 4:08 PM, Tom >wrote:
>
>> Here is my problem. I have simple table with 3 columns (Id, no, text) Id 
>> and no combination creates a unique key for each row.
>>
>> Id - no - text
>> 12 - 1 - my text1
>> 12 - 2 - my text2
>> 13 - 1 - cool
>> 13 - 2 - cool2
>> 13 - 3 - cool3
>>
>> Now, i want to load these data into a CellTable with 4 columns (the 1st 
>> column is checkBoxColumn, the other 3 columns are ID/No/Text textcolum. I 
>> also want to put a SelectAllCheckBox on the Header of checkBoxColumn so 
>> that when user click on selectAllCheckBox then all the current visible 
>> checkBoxes got selected (of cause celltable could have many page but it 
>> will select only the visible ones).
>>
>> Here is the code, i finished all the requirements except 1, that is "when 
>> i clicked the selectAllCheckBox, theselectionModel got selected but the 
>> correspondingly checkBoxes were not selected.
>>
>> Here is the Code.
>>
>> public static final ProvidesKey KEY_PROVIDER = new 
>> ProvidesKey() {
>>   @Override
>>   public Object getKey(String[] item) {
>> String[] itemArr={item[0],item[1]};
>> return item == null ? null : itemArr;
>>
>>   }
>> };
>>
>> Here is the main CrllTable code:
>>
>> final MultiSelectionModel selectionModel = new 
>> MultiSelectionModel(KEY_PROVIDER);
>>
>> final CellTable cellTable = new CellTable();
>>
>> Column checkColumn = new Column(
>> new CheckboxCell(true, false)) {
>> @Override
>> public Boolean getValue(String[] object) {
>> // Get the value from the selection model.
>>  String[] objectArr={object[0],object[1]};
>>
>>  return selectionModel.isSelected(objectArr);
>>
>>
>>
>>  }
>>  };
>>
>>  cellTable.setSelectionModel(selectionModel);
>>  CheckboxHeader selectAllCheckBoxHeader = new CheckboxHeader();
>>  selectAllCheckBoxHeader.addValueChangeHandler(new ValueChangeHandler(){
>>
>> @Override
>> public void onValueChange(ValueChangeEvent event) {
>> // TODO Auto-generated method stub
>> System.out.println("test");
>> for (String[] item : cellTable.getVisibleItems()) {
>>
>>
>> if (!selectionModel.isSelected(item)) {
>> System.out.println(Arrays.toString(item));
>>   selectionModel.setSelected(item, true);
>>
>> }
>> }
>> }
>>
>>   });
>>   cellTable.addColumn(checkColumn, selectAllCheckBoxHeader);
>>
>> When I clikced the selectAll, then non of visible checkBoxes got check, 
>> but when printout
>>
>> Set selSet=selectionModel.getSelectedSet();
>> for(String[] s : selSet){
>>   System.out.println("Mine: "+Arrays.toString(s));
>> }
>>
>> it showed the currect selected items
>>
>> Suppose pageSize is 3, then Output :
>>
>> Mine: [12,1,my text1]
>> Mine: [12,2,my text2]
>> Mine: [13,1,cool]
>>
>> So how to make visible checkBoxes got selected automatically EXACTLY and 
>> CORESPONDINGLY /In TANDEM as the selectionModel got selected
>>
>> Note: I also tried cellTable.setSelectionModel(selectionModel, 
>> DefaultSelectionEventManager. createCheckboxManager()); but 
>> not working.
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Donald Mteka
> +255653105004
>  

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


Re: binding MultiSelectionModel to checkBoxColumn in CellTable, but why checkBoxs in column were not AUTO-selected CORRESPONDINGLY to SelectionModel?

2013-12-21 Thread Donald Mteka
Hello Tom,
 your problem stems from the use of newly created array objects in your
ProvidesKey and checkbox Column implementations. These array objects
returned for getKey(..)  and getValue(...) would never equal any other!
Hence model.isSelected(..) will always return false.

 And as a side note, your null check in ProvidesKey implementation is
insignificant as the NullPointerException would have been already thrown at
line:


String[] itemArr={item[0],item[1]};

Regards



On Sat, Dec 21, 2013 at 4:08 PM, Tom  wrote:

> Here is my problem. I have simple table with 3 columns (Id, no, text) Id
> and no combination creates a unique key for each row.
>
> Id - no - text
> 12 - 1 - my text1
> 12 - 2 - my text2
> 13 - 1 - cool
> 13 - 2 - cool2
> 13 - 3 - cool3
>
> Now, i want to load these data into a CellTable with 4 columns (the 1st
> column is checkBoxColumn, the other 3 columns are ID/No/Text textcolum. I
> also want to put a SelectAllCheckBox on the Header of checkBoxColumn so
> that when user click on selectAllCheckBox then all the current visible
> checkBoxes got selected (of cause celltable could have many page but it
> will select only the visible ones).
>
> Here is the code, i finished all the requirements except 1, that is "when
> i clicked the selectAllCheckBox, theselectionModel got selected but the
> correspondingly checkBoxes were not selected.
>
> Here is the Code.
>
> public static final ProvidesKey KEY_PROVIDER = new 
> ProvidesKey() {
>   @Override
>   public Object getKey(String[] item) {
> String[] itemArr={item[0],item[1]};
> return item == null ? null : itemArr;
>
>   }
> };
>
> Here is the main CrllTable code:
>
> final MultiSelectionModel selectionModel = new 
> MultiSelectionModel(KEY_PROVIDER);
>
> final CellTable cellTable = new CellTable();
>
> Column checkColumn = new Column(
> new CheckboxCell(true, false)) {
> @Override
> public Boolean getValue(String[] object) {
> // Get the value from the selection model.
>  String[] objectArr={object[0],object[1]};
>
>  return selectionModel.isSelected(objectArr);
>
>
>
>  }
>  };
>
>  cellTable.setSelectionModel(selectionModel);
>  CheckboxHeader selectAllCheckBoxHeader = new CheckboxHeader();
>  selectAllCheckBoxHeader.addValueChangeHandler(new ValueChangeHandler(){
>
> @Override
> public void onValueChange(ValueChangeEvent event) {
> // TODO Auto-generated method stub
> System.out.println("test");
> for (String[] item : cellTable.getVisibleItems()) {
>
>
> if (!selectionModel.isSelected(item)) {
> System.out.println(Arrays.toString(item));
>   selectionModel.setSelected(item, true);
>
> }
> }
> }
>
>   });
>   cellTable.addColumn(checkColumn, selectAllCheckBoxHeader);
>
> When I clikced the selectAll, then non of visible checkBoxes got check,
> but when printout
>
> Set selSet=selectionModel.getSelectedSet();
> for(String[] s : selSet){
>   System.out.println("Mine: "+Arrays.toString(s));
> }
>
> it showed the currect selected items
>
> Suppose pageSize is 3, then Output :
>
> Mine: [12,1,my text1]
> Mine: [12,2,my text2]
> Mine: [13,1,cool]
>
> So how to make visible checkBoxes got selected automatically EXACTLY and
> CORESPONDINGLY /In TANDEM as the selectionModel got selected
>
> Note: I also tried cellTable.setSelectionModel(selectionModel,
> DefaultSelectionEventManager. createCheckboxManager()); but not
> working.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Donald Mteka
+255653105004

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


"Object does not support property or method attachEvent" on IE 7,8,9,10

2013-12-21 Thread Moutellou
I have a blank page when running my app in developement or compiled mode (IE 
7,8,9,10). The bug seems to be originated from 
@com.google.gwt.user.client.ui.ResizeLayoutPanel. 

Any help would appreciated. 

GWT 2.5.1, GQuery 1.4.0

com.google.gwt.core.client.JavaScriptException: (TypeError) 
@com.google.gwt.user.client.ui.ResizeLayoutPanel$ImplTrident::initResizeEventListener(Lcom/google/gwt/user/client/Element;)([JavaScript
 object(608)]): L’objet ne gère pas la propriété ou la méthode « attachEvent »
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
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.google.gwt.user.client.ui.ResizeLayoutPanel$ImplTrident.initResizeEventListener(ResizeLayoutPanel.java)
at 
com.google.gwt.user.client.ui.ResizeLayoutPanel$ImplTrident.init(ResizeLayoutPanel.java:271)
at com.google.gwt.user.client.ui.HeaderPanel.(HeaderPanel.java:97)
at com.google.gwt.user.cellview.client.DataGrid.(DataGrid.java:586)
at com.google.gwt.user.cellview.client.DataGrid.(DataGrid.java:570)
at com.google.gwt.user.cellview.client.DataGrid.(DataGrid.java:557)

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


binding MultiSelectionModel to checkBoxColumn in CellTable, but why checkBoxs in column were not AUTO-selected CORRESPONDINGLY to SelectionModel?

2013-12-21 Thread Tom


Here is my problem. I have simple table with 3 columns (Id, no, text) Id 
and no combination creates a unique key for each row.

Id - no - text
12 - 1 - my text1
12 - 2 - my text2
13 - 1 - cool
13 - 2 - cool2
13 - 3 - cool3

Now, i want to load these data into a CellTable with 4 columns (the 1st 
column is checkBoxColumn, the other 3 columns are ID/No/Text textcolum. I 
also want to put a SelectAllCheckBox on the Header of checkBoxColumn so 
that when user click on selectAllCheckBox then all the current visible 
checkBoxes got selected (of cause celltable could have many page but it 
will select only the visible ones).

Here is the code, i finished all the requirements except 1, that is "when i 
clicked the selectAllCheckBox, theselectionModel got selected but the 
correspondingly checkBoxes were not selected.

Here is the Code.

public static final ProvidesKey KEY_PROVIDER = new 
ProvidesKey() {
  @Override
  public Object getKey(String[] item) {
String[] itemArr={item[0],item[1]};
return item == null ? null : itemArr;

  }
};

Here is the main CrllTable code:

final MultiSelectionModel selectionModel = new 
MultiSelectionModel(KEY_PROVIDER);

final CellTable cellTable = new CellTable();

Column checkColumn = new Column(
new CheckboxCell(true, false)) {
@Override
public Boolean getValue(String[] object) {
// Get the value from the selection model.
 String[] objectArr={object[0],object[1]};

 return selectionModel.isSelected(objectArr);



 }
 };

 cellTable.setSelectionModel(selectionModel);
 CheckboxHeader selectAllCheckBoxHeader = new CheckboxHeader();
 selectAllCheckBoxHeader.addValueChangeHandler(new ValueChangeHandler(){

@Override
public void onValueChange(ValueChangeEvent event) {
// TODO Auto-generated method stub
System.out.println("test");
for (String[] item : cellTable.getVisibleItems()) {


if (!selectionModel.isSelected(item)) {
System.out.println(Arrays.toString(item));
  selectionModel.setSelected(item, true);

}
}
}

  });
  cellTable.addColumn(checkColumn, selectAllCheckBoxHeader);

When I clikced the selectAll, then non of visible checkBoxes got check, but 
when printout

Set selSet=selectionModel.getSelectedSet();
for(String[] s : selSet){
  System.out.println("Mine: "+Arrays.toString(s));
}

it showed the currect selected items

Suppose pageSize is 3, then Output :

Mine: [12,1,my text1]
Mine: [12,2,my text2]
Mine: [13,1,cool]

So how to make visible checkBoxes got selected automatically EXACTLY and 
CORESPONDINGLY /In TANDEM as the selectionModel got selected

Note: I also tried cellTable.setSelectionModel(selectionModel, 
DefaultSelectionEventManager. createCheckboxManager()); but not 
working.

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


Re: Soft Permutation Creating JavaScript for Server Side Script Selection

2013-12-21 Thread Martin Kersten
As far as I am aware off you can always collapse different permutations 
into a single one or a subset. Also we want to control it to the level that 
we have our own internationalization support by embed certain keys we draw 
from external message collections. 

So a permutation explosion is what we dont want. Also we want to control 
the scripts reload and caching ourself. Simple as that. This configuration 
issue is that critical that we consider using Dart to simply generate a 
single js file and do not deal with inherited modules and this permutation 
/ script selecting configuration issues. I know its simple and I understand 
the reason why it exists. But since we fairly dont update the javascript 
that often and different teams are developing certain parts, we want to 
have it as clear and close to what exists as we would when writing 
javascript directly.

Cheers,

Martin (Kersten),
Germany

Am Freitag, 20. Dezember 2013 01:57:07 UTC+1 schrieb Jens:
>
> Are you aware that this approach will fail as soon as you have deferred 
> binding properties (your own or through a 3rd party lib) that can only be 
> filled with a value through JS execution inside the browser? Or put 
> differently: If you have a deferred binding property whose values can not 
> be inferred from the user agent string.
>
> It would be far more robust if you would only embed the app.nocache.js 
> contents into your index.php/jsp and leave the permutation files untouched. 
> That way you eliminate the request of app.nocache.js but you can still have 
> any kind of deferred binding property.
>
> If you still want to follow your path, I think you need to implement your 
> own linker that changes the names of the emitted artifacts to the format 
> you would like to have.
>
> A basic example of a custom linker: 
> http://webcentersuite.blogspot.de/2011/05/writing-gwt-linker-for-offline.html
>
> -- J.
>

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


Re: Multi Modules

2013-12-21 Thread Davide Micheletti
> ok thanks.. really i don't understand where i fail.. these is my folders
> - war
>  -  module1
>+ gwt
>- module1.nocache.js
>  - module2
>+ (no gwt folder??? why??))
>- module2.nocache.js
>  - WEB-INF
>- client
>- server
>- shared
>- module1.xml
>- module2.xml
>  - CSS
>  - module1.HTML
>  - module2.HTML
>
> These is my 2 XML
> module1 (DoppioModulo)
> 
>
> 
>
>  http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";
> PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN">
> -
> 
>  
> 
>
> 
>
> 
>  
>
> 
>
> 
>  
> 
>  
> 
>
> 
>
>
> module2.xml (Secondo)
>
> 
>  http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";
> PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN">
> -
> 
> 
> 
> 
>
>
> My 2 HTML
> Module1
> 
>   
> 
>
> 
> 
> 
> 
>
> 
> 
> 
> Web Application Starter Project
>
> 
> 
> 
> 
> 
>  src="doppiomodulo/doppiomodulo.nocache.js">
>   
>
>   
>   
>   
>   
>   
>   
>
> 
>  style="position:absolute;width:0;height:0;border:0">
>
> 
> 
>   
> Your web browser must have JavaScript enabled
> in order for this application to display correctly.
>   
> 
>
> 
>
> 
>
>
> Module2
> 
> 
>   
> 
> SecondaPag
>  src="secondo/secondo.nocache.js">
>   
>
>   
>  style="position:absolute;width:0;height:0;border:0">
>
> 
>
> Thanks in advance
>
> Davide
>
>
> On Thu, Dec 19, 2013 at 6:57 PM, Jens 
>  'jens.nehlme...@gmail.com');>
> > wrote:
>
>>  If i don't inherit the module however the class doesn't run!!

>>>
>> Then you have missed something. Maybe you have a typo somewhere (check if
>> your