Re: How to Update Cell Table Footer Dynamically

2015-07-08 Thread Donald Mteka
Hello Mohammed,
Do you mean this method
com.google.gwt.user.cellview.client.AbstractCellTable.addColumn(Column, Header, Header)
does not meet your requiirement? (i.e dynamically updating the column
footer)
Or do you mean you just want a footer and not a header?
If so, you could provide an empty header and be left with your preferred
footer..
Regards.

On Wed, Jul 8, 2015 at 11:48 AM, Mohammed Sameen 
wrote:

> Thanks Donald for your reply,As i already mention While creating column
> field i can use this addColumn but data is loading after this celltable
> creation,in that case i can't use addColumn.I just want to update the
> column footer.
>
> --
> 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.
>



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


Re: How to Update Cell Table Footer Dynamically

2015-07-08 Thread Donald Mteka
You should use the addColumn method which takes a Header object as a footer.
That way you have complete control at when to and what to show for the
footer text.
Just make sure you call cellTable.redrawFooters() each time you change the
footer text.
Regards

On Wed, Jul 8, 2015 at 10:06 AM, Mohammed Sameen 
wrote:

> I am trying to add footer to the celltable and finding hard time to change
> the celltable footer dynamically but i am able to add while creating
> columns like below
>
> cellTable.addColumn(qty, "Qty",Integer.toString(totalQty));
>
> This is not i am looking for,Is there any way to set footer to cell table
> dynamically.Any help?
>
> --
> 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.
>



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


Re: Update GWT 2.7

2015-03-23 Thread Donald Mteka
Hello ELkeke,

Use mvn process-classes gwt:run.
Regards

On Mon, Mar 23, 2015 at 12:32 PM, ELkeke  wrote:

> Nobody has some ideas to resolve my problem ? I don't understand why the
> compiler in hosted mode and *only in hosted mode*, it doesn't find the
> generated class by a generator...
> The class is located in the folder : target\.generated\fr\core\
> generator\MyClassLoader.
>
> If somebody can help me because I am blocked with this problem...
>
> Thank you
>
>
> Le mercredi 4 mars 2015 15:19:23 UTC+1, ELkeke a écrit :
>
>> Hi,
>>
>> I updated my application GWT with the new version 2.7. I have problems
>> with generators, generated class, but before with the version GWT
>> 2.6.1;everything was Ok, I don't change my code, only update the version of
>> GWT 2.6.1 -> 2.7.
>>
>> This is the error message :
>> [ERROR] Could not find fr.core.generator.MyClassLoader in types compiled
>> from source. Is the source glob too strict?
>> ...
>> [ERROR] Compiler returned false
>>
>> I don't understand this message because the MyClassLoader is a class
>> generated by a class(=MyClassLoaderGenerator) which extend
>> com.google.gwt.core.ext.Generator.
>> When I survey the target created by maven 3, I have found this class :
>> target\.generated\fr\core\generator\MyClassLoader.
>>
>> When I do : mvn clean install : no problem !
>> If I deploy my application in a Tomcat : no problem !
>> The problem happens when I do : mvn gwt:run (run the SuperDevMode).
>>
>> Help me, thank you.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



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


Re: Image and ImageElement

2014-10-28 Thread Donald Mteka
The wrap methods expect an element that is already attached to the dom. In
your case, why not  create the Image widget directly?
On Oct 28, 2014 8:14 PM, "Tony B"  wrote:

> Tried that - got assert error on "assert
> Document.get().getBody().isOrHasChild(element);" at start of wrap method (
> see my other post here
> 
> for a post on this topic ).  The "wrap" method not working is part of the
> reason why I am so confused as it is the most logical solution.
>
>
> On Tuesday, October 28, 2014 1:03:25 PM UTC-4, Jens wrote:
>>
>> Image.wrap(ImageElement)
>>
>> -- 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/d/optout.
>

-- 
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: Master-details panel

2014-03-11 Thread Donald Mteka
You can use DataGrid, to handle events from cells, take a look here
http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Rendering_HTML_for_Cells



On Mon, Mar 10, 2014 at 4:46 PM, Amir kessentini
wrote:

> let's go to seriously things ;
> i have created e method in my gwt server which return a list of data
> 
> in my gui i'm using a flextable to display that data and it's works
> perfectly.
> but i thinks it's not good to work with flex table because i have to
> create my column and it's not mapped to the structure for personne
> class.more than that i can't select a row with that flex table.
>
> i'm thinking to use grid data but the problem is that i can't set widget
> to a column.for example i nedd to create a delete button for each row in
> data grid.
> there is also celletab and many other components but i'm really confused.
> help plz
>
> --
> 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.
>



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


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

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)

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.


Re: Acitivities and places:problem in using eventBus

2013-06-07 Thread Donald Mteka
Is the second Activity ever started before you fire the event from first
Activity? Just check that you didn't fire the event before the second
Activity had the chance to start (hence register a handler).. Another
possibility would be different 'instances' of EventBus objects, which is
hardly the case as the bus was offered from PlaceHistoryHandler.

HTH.


On Fri, Jun 7, 2013 at 2:57 PM, Sahli Sabrina wrote:

> ok thank you  a lot for the reply :)
>
>>
>>
>>>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-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.
>
>
>



-- 
Donald Mteka
+255653105004

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




Re: TabLayoutPanel get index of tab which added a special widget

2013-06-07 Thread Donald Mteka
Hello Jochen,
The index of a tab in a TabPanel is same as its corresponding widget in
widgetContainer. Thus, "Tab name" index is same as  'myView' index. Using
the view, you get its index from tabPanel.getWidgetIndex(myView) , which is
same as the tab index, then you can proceed to select it.
Regards,


On Fri, Jun 7, 2013 at 2:33 PM, Jochen Schnaidt
wrote:

> Hi,
>
> I'm struggling getting the index of a tab in a TabLayoutPanel. I am
> working on legacy code so no big chance changing panel types and stuff.
>
> Code looks like this:
>
> TabLayoutPanel tabLayoutPanel = new TabLayoutPanel();
>
> MyView myView = new MyView();
>
> tabLayoutPanel.add(myView , "Tab name");
>
> Later I need to select the right tab.
>
> tabPanel.selectTab(3);
>
> At the moment the tab containing myView is the fourth which is added but
> I want to avoid magic numbers.
>
> Is there an appropriate way to get the tab's index which contains myView?
> I tried searching by widget but without success.
>
> May be not a big question but till now my attempts failed. Today is not
> my day.
>
> Thanks in advance.
>
> Best regards
>
> Jochen
>
> --
> 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.
>
>
>



-- 
Donald Mteka
+255653105004

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




Re: What is the reason for the History.newItem(token) to invoke the onvaluechange(...) by default

2013-05-27 Thread Donald Mteka
Use History.newItem(token,false) to avoid firing the history event in the
first part of your code.

Calling History.newItem(token)  cause firing of the history event...


On Mon, May 27, 2013 at 1:51 PM, Jens  wrote:

> I think its not the default behavior because its more likely that you use
> the history.newItem() method to actually navigate to a different place.
>
> Actually when your whole app uses history tokens, then "clicking on the
> tab title" would not cause the tab panel to switch tabs itself but it would
> cause a history.newItem() and because of that new history token the tab
> will be selected later on in your ValueChangeHandler.
>
> You could achieve this by adding a BeforeSelectionHandler to your tab
> panel. Inside the handler you can cancel the tab switch (event.cancel())
> and create a new History item instead. Then the history mechanism you have
> implemented will do the tab selection everytime someone clicked a tab.
>
> -- 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Donald Mteka
+255653105004

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