Re: Keyboard Accessibility: while tabbing the first element in celltable gets focus

2022-09-12 Thread nidhizener
Thank you that worked!

On Friday, September 9, 2022 at 12:38:30 PM UTC-4 t.br...@gmail.com wrote:

> What kind of Cell is this? Can you show part of the code that sets up the 
> table?
> Did you set KeyboardSelectionPolicy to DISABLED?
>
> On Friday, September 9, 2022 at 6:09:14 PM UTC+2 nidhi@gmail.com 
> wrote:
>
>> I am working on adding keyboard accessibility to my application. When 
>> tabbing from on e widget to another if there is a celltable, it is included 
>> in the tabbing sequence. The cell table in not editable, still it gets into 
>> tabbing sequence. How do I remove the cell table from tabbing sequence? Is 
>> this known issue? Wondering if there are any work arounds? Any help will be 
>> appreciated. 
>
>

-- 
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/aa90713f-af30-4e7c-b8cf-e22296ab17b6n%40googlegroups.com.


Re: Keyboard Accessibility: while tabbing the first element in celltable gets focus

2022-09-09 Thread Thomas Broyer
What kind of Cell is this? Can you show part of the code that sets up the 
table?
Did you set KeyboardSelectionPolicy to DISABLED?

On Friday, September 9, 2022 at 6:09:14 PM UTC+2 nidhi@gmail.com wrote:

> I am working on adding keyboard accessibility to my application. When 
> tabbing from on e widget to another if there is a celltable, it is included 
> in the tabbing sequence. The cell table in not editable, still it gets into 
> tabbing sequence. How do I remove the cell table from tabbing sequence? Is 
> this known issue? Wondering if there are any work arounds? Any help will be 
> appreciated. 

-- 
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/975a3ff7-39c5-4229-9f6a-1c9641a5a12dn%40googlegroups.com.


Keyboard Accessibility: while tabbing the first element in celltable gets focus

2022-09-09 Thread nidhizener
I am working on adding keyboard accessibility to my application. When 
tabbing from on e widget to another if there is a celltable, it is included 
in the tabbing sequence. The cell table in not editable, still it gets into 
tabbing sequence. How do I remove the cell table from tabbing sequence? Is 
this known issue? Wondering if there are any work arounds? Any help will be 
appreciated. 

-- 
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/b4ada7ac-c305-4fa0-bf07-cba66323f425n%40googlegroups.com.


Re: Populating CellTable using ListDataProvider?

2021-10-22 Thread Slava Imeshev
Craig, 

Yep.  makes sense for "show-and-forget" use pattern.

The challenge with  is that things become complicated when there is 
a need to receive and act on events on row selection/de-section, 
pagination, getting the entire data object out of the row etc. I tried that 
but discovered that I'm reinventing CellTable.

At any rate, the only snag I had with CellTable is unexpected behavior with 
pageSize set to 0. It would be great to have better Javadoc for that, or 
throwing IllegalArgumentException for 0 size.

On Thursday, October 21, 2021 at 10:38:17 PM UTC-7 Craig Mitchell wrote:

> Just to clarify my comment.  I find it easier to use pure HTML + CSS then 
> GWT's built in CellTable etc.
>
> Eg:
> 
> @UiField TableElement myTable;
> TableRowElement row = myTable.insertRow(...);
> ...
>
> Then you can use all the fancy CSS styles, that others have written to 
> make tables look pretty.  No need to mangle them into what GWT wants.
>
> Adding GWT widgets into the table is a little annoying that you need to 
> call onAttach to get their events to work, but that's a minor inconvience.
>
> Anyhow, I wasn't suggesting writing any JavaScript.  :)
>
> Also not saying don't use CellTable.  Maybe you have a massive amount of 
> data, and all the fancy databinding will save you time in the long run.
>
> On Friday, 22 October 2021 at 2:37:14 am UTC+11 ime...@gmail.com wrote:
>
>> Hi Tomas,
>>
>> First, pls. let me thank you and the team for the amazing work on GWT.
>>
>> As for the documentation, I'd say it's lacking an example for importing 
>> custom widgets  because the way some of use read the XML. Personally I just 
>> automatically skip over the xmls section because it contains "standard" GWT 
>> namespaces. 
>>
>> I think the docs would benefit from explicitly stating
>>
>>  "To import your own widget com.example.gwt.client.SampeTextField, use 
>> the xmlns to add a package with your own packages and then use the prefix 
>> in the body of the template. For example:
>>
>> > xmlns:e='urn:import:com.example.gwt.client'>
>>
>>   
>>
>> 
>> "
>> On Thursday, October 21, 2021 at 4:20:49 AM UTC-7 t.br...@gmail.com 
>> wrote:
>>
>>> Is this 
>>> <http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Hello_Widget_World>
>>>  
>>> not enough? Buried too deep? Lacking examples and/or a step-by-step?
>>>
>>> In order to use a set of widgets in a ui.xml template file, you need to 
>>> tie their package to an XML namespace prefix. That’s what’s happening in 
>>> this attribute of the 
>>> root  element: 
>>> xmlns:g='urn:import:com.google.gwt.user.client.ui'. 
>>> This says that every class in the com.google.gwt.user.client.ui package can 
>>> be used as an element with prefix g and a tag name matching its Java class 
>>> name, like .
>>>
>>> See how the g:ListBox element has a visibleItemCount='1' attribute? That 
>>> becomes a call to ListBox#setVisibleItemCount(int) 
>>> <http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/ListBox.html#setVisibleItemCount-int->.
>>>  
>>> Every one of the widget’s methods that follow JavaBean-style conventions 
>>> for setting a property can be used this way.
>>>
>>> On Thursday, October 21, 2021 at 6:32:24 AM UTC+2 ime...@gmail.com 
>>> wrote:
>>>
>>>> Hey, hey, hey,
>>>>
>>>> I'm one of us Javascript-deaf. With GWT I'm back to my a screen-a-day 
>>>> in pure Java. Just loving it.
>>>>
>>>> Still, would GWT team be accepting of some PRs to update Javadocs? Took 
>>>> me a day of Googling to figure out how to make use of custom widgets in UI 
>>>> Binder templates.
>>>>
>>>> Slava
>>>>
>>>>
>>>> On Wednesday, October 20, 2021 at 7:15:59 PM UTC-7 Craig Mitchell wrote:
>>>>
>>>>> GWT does many great things.  Implementation of lists and tables wasn't 
>>>>> one of them (IMHO).
>>>>>
>>>>> If GWT 3 ever comes out.  It will be great to have separation of this 
>>>>> stuff.
>>>>>
>>>>> However, to answer your question, yes, it would make sense, I just 
>>>>> don't know what the likelihood of a 2.9.1 release is.
>>>>> On Tuesday, 19 October 2021 at 2:36:28 pm UTC+11 ime...@gmail.com 
>>>>> wrot

Re: Populating CellTable using ListDataProvider?

2021-10-21 Thread Craig Mitchell
Just to clarify my comment.  I find it easier to use pure HTML + CSS then 
GWT's built in CellTable etc.

Eg:

@UiField TableElement myTable;
TableRowElement row = myTable.insertRow(...);
...

Then you can use all the fancy CSS styles, that others have written to make 
tables look pretty.  No need to mangle them into what GWT wants.

Adding GWT widgets into the table is a little annoying that you need to 
call onAttach to get their events to work, but that's a minor inconvience.

Anyhow, I wasn't suggesting writing any JavaScript.  :)

Also not saying don't use CellTable.  Maybe you have a massive amount of 
data, and all the fancy databinding will save you time in the long run.

On Friday, 22 October 2021 at 2:37:14 am UTC+11 ime...@gmail.com wrote:

> Hi Tomas,
>
> First, pls. let me thank you and the team for the amazing work on GWT.
>
> As for the documentation, I'd say it's lacking an example for importing 
> custom widgets  because the way some of use read the XML. Personally I just 
> automatically skip over the xmls section because it contains "standard" GWT 
> namespaces. 
>
> I think the docs would benefit from explicitly stating
>
>  "To import your own widget com.example.gwt.client.SampeTextField, use the 
> xmlns to add a package with your own packages and then use the prefix in 
> the body of the template. For example:
>
>  xmlns:e='urn:import:com.example.gwt.client'>
>
>   
>
> 
> "
> On Thursday, October 21, 2021 at 4:20:49 AM UTC-7 t.br...@gmail.com wrote:
>
>> Is this 
>> <http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Hello_Widget_World>
>>  
>> not enough? Buried too deep? Lacking examples and/or a step-by-step?
>>
>> In order to use a set of widgets in a ui.xml template file, you need to 
>> tie their package to an XML namespace prefix. That’s what’s happening in 
>> this attribute of the 
>> root  element: 
>> xmlns:g='urn:import:com.google.gwt.user.client.ui'. 
>> This says that every class in the com.google.gwt.user.client.ui package can 
>> be used as an element with prefix g and a tag name matching its Java class 
>> name, like .
>>
>> See how the g:ListBox element has a visibleItemCount='1' attribute? That 
>> becomes a call to ListBox#setVisibleItemCount(int) 
>> <http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/ListBox.html#setVisibleItemCount-int->.
>>  
>> Every one of the widget’s methods that follow JavaBean-style conventions 
>> for setting a property can be used this way.
>>
>> On Thursday, October 21, 2021 at 6:32:24 AM UTC+2 ime...@gmail.com wrote:
>>
>>> Hey, hey, hey,
>>>
>>> I'm one of us Javascript-deaf. With GWT I'm back to my a screen-a-day in 
>>> pure Java. Just loving it.
>>>
>>> Still, would GWT team be accepting of some PRs to update Javadocs? Took 
>>> me a day of Googling to figure out how to make use of custom widgets in UI 
>>> Binder templates.
>>>
>>> Slava
>>>
>>>
>>> On Wednesday, October 20, 2021 at 7:15:59 PM UTC-7 Craig Mitchell wrote:
>>>
>>>> GWT does many great things.  Implementation of lists and tables wasn't 
>>>> one of them (IMHO).
>>>>
>>>> If GWT 3 ever comes out.  It will be great to have separation of this 
>>>> stuff.
>>>>
>>>> However, to answer your question, yes, it would make sense, I just 
>>>> don't know what the likelihood of a 2.9.1 release is.
>>>> On Tuesday, 19 October 2021 at 2:36:28 pm UTC+11 ime...@gmail.com 
>>>> wrote:
>>>>
>>>>> Folks, 
>>>>>
>>>>> Just following up on what turned to be my own blunder. Using 
>>>>> ListDataProvider doesn't work when the CellTable is created using 
>>>>> pageSize 
>>>>> = 0. 
>>>>>
>>>>> super(0, resources, keyProvider);
>>>>>
>>>>> It still works when using setRowCount(); setRowData();.
>>>>>
>>>>> So I fixed it for the time being by setting a meaningfully large 
>>>>> pageSize.
>>>>>
>>>>> Here is the question: would it make sense to add a bit more to the 
>>>>> Javadoc for pageSize. Or maybe checking for 0 and throwing 
>>>>> IllegalArgumentException?
>>>>>
>>>>> On Friday, September 24, 2021 at 4:44:10 PM UTC-7 Slava Imeshev wrote:
>>>>>
>>>>>> So, 

Re: Populating CellTable using ListDataProvider?

2021-10-21 Thread Slava Imeshev
Hi Tomas,

First, pls. let me thank you and the team for the amazing work on GWT.

As for the documentation, I'd say it's lacking an example for importing 
custom widgets  because the way some of use read the XML. Personally I just 
automatically skip over the xmls section because it contains "standard" GWT 
namespaces. 

I think the docs would benefit from explicitly stating

 "To import your own widget com.example.gwt.client.SampeTextField, use the 
xmlns to add a package with your own packages and then use the prefix in 
the body of the template. For example:



  


"
On Thursday, October 21, 2021 at 4:20:49 AM UTC-7 t.br...@gmail.com wrote:

> Is this 
> <http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Hello_Widget_World>
>  
> not enough? Buried too deep? Lacking examples and/or a step-by-step?
>
> In order to use a set of widgets in a ui.xml template file, you need to 
> tie their package to an XML namespace prefix. That’s what’s happening in 
> this attribute of the 
> root  element: 
> xmlns:g='urn:import:com.google.gwt.user.client.ui'. 
> This says that every class in the com.google.gwt.user.client.ui package can 
> be used as an element with prefix g and a tag name matching its Java class 
> name, like .
>
> See how the g:ListBox element has a visibleItemCount='1' attribute? That 
> becomes a call to ListBox#setVisibleItemCount(int) 
> <http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/ListBox.html#setVisibleItemCount-int->.
>  
> Every one of the widget’s methods that follow JavaBean-style conventions 
> for setting a property can be used this way.
>
> On Thursday, October 21, 2021 at 6:32:24 AM UTC+2 ime...@gmail.com wrote:
>
>> Hey, hey, hey,
>>
>> I'm one of us Javascript-deaf. With GWT I'm back to my a screen-a-day in 
>> pure Java. Just loving it.
>>
>> Still, would GWT team be accepting of some PRs to update Javadocs? Took 
>> me a day of Googling to figure out how to make use of custom widgets in UI 
>> Binder templates.
>>
>> Slava
>>
>>
>> On Wednesday, October 20, 2021 at 7:15:59 PM UTC-7 Craig Mitchell wrote:
>>
>>> GWT does many great things.  Implementation of lists and tables wasn't 
>>> one of them (IMHO).
>>>
>>> If GWT 3 ever comes out.  It will be great to have separation of this 
>>> stuff.
>>>
>>> However, to answer your question, yes, it would make sense, I just don't 
>>> know what the likelihood of a 2.9.1 release is.
>>> On Tuesday, 19 October 2021 at 2:36:28 pm UTC+11 ime...@gmail.com wrote:
>>>
>>>> Folks, 
>>>>
>>>> Just following up on what turned to be my own blunder. Using 
>>>> ListDataProvider doesn't work when the CellTable is created using pageSize 
>>>> = 0. 
>>>>
>>>> super(0, resources, keyProvider);
>>>>
>>>> It still works when using setRowCount(); setRowData();.
>>>>
>>>> So I fixed it for the time being by setting a meaningfully large 
>>>> pageSize.
>>>>
>>>> Here is the question: would it make sense to add a bit more to the 
>>>> Javadoc for pageSize. Or maybe checking for 0 and throwing 
>>>> IllegalArgumentException?
>>>>
>>>> On Friday, September 24, 2021 at 4:44:10 PM UTC-7 Slava Imeshev wrote:
>>>>
>>>>> So, I'm following basic examples, and I just cannot get it to work. 
>>>>> The populate() method below using ListDataProvider leaves the table 
>>>>> empty. populateWorking() works. Any hints?
>>>>>
>>>>> public class GapAnalysisListTable extends CellTable {
>>>>>
>>>>> public GapAnalysisListTable() {
>>>>>
>>>>> // Create a data provider.
>>>>> dataProvider = new ListDataProvider<>(GapAnalysisVO::getId);
>>>>>
>>>>> // Connect the table to the data provider.
>>>>> dataProvider.addDataDisplay(this);
>>>>> }
>>>>>
>>>>> public void populate(final GapAnalysisVO[] gapAnalysisVOList) {
>>>>>
>>>>> final List list = dataProvider.getList();
>>>>> list.addAll(Arrays.asList(gapAnalysisVOList));
>>>>> dataProvider.refresh();
>>>>> }
>>>>>
>>>>> public void populateWorks(final GapAnalysisVO[] gapAnalysisVOList) {
>>>>>
>>>>> setRowCount(gapAnalysisVOList.length);
>>>>> setRowData(Arrays.asList(gapAnalysisVOList));
>>>>> }
>>>>> }
>>>>>
>>>>

-- 
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/a877a8e7-8433-4fe6-b56d-4ab0646851f4n%40googlegroups.com.


Re: Populating CellTable using ListDataProvider?

2021-10-21 Thread Thomas Broyer
Is this 
<http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Hello_Widget_World> 
not enough? Buried too deep? Lacking examples and/or a step-by-step?

In order to use a set of widgets in a ui.xml template file, you need to tie 
their package to an XML namespace prefix. That’s what’s happening in this 
attribute of the 
root  element: xmlns:g='urn:import:com.google.gwt.user.client.ui'. 
This says that every class in the com.google.gwt.user.client.ui package can 
be used as an element with prefix g and a tag name matching its Java class 
name, like .

See how the g:ListBox element has a visibleItemCount='1' attribute? That 
becomes a call to ListBox#setVisibleItemCount(int) 
<http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/ListBox.html#setVisibleItemCount-int->.
 
Every one of the widget’s methods that follow JavaBean-style conventions 
for setting a property can be used this way.

On Thursday, October 21, 2021 at 6:32:24 AM UTC+2 ime...@gmail.com wrote:

> Hey, hey, hey,
>
> I'm one of us Javascript-deaf. With GWT I'm back to my a screen-a-day in 
> pure Java. Just loving it.
>
> Still, would GWT team be accepting of some PRs to update Javadocs? Took me 
> a day of Googling to figure out how to make use of custom widgets in UI 
> Binder templates.
>
> Slava
>
>
> On Wednesday, October 20, 2021 at 7:15:59 PM UTC-7 Craig Mitchell wrote:
>
>> GWT does many great things.  Implementation of lists and tables wasn't 
>> one of them (IMHO).
>>
>> If GWT 3 ever comes out.  It will be great to have separation of this 
>> stuff.
>>
>> However, to answer your question, yes, it would make sense, I just don't 
>> know what the likelihood of a 2.9.1 release is.
>> On Tuesday, 19 October 2021 at 2:36:28 pm UTC+11 ime...@gmail.com wrote:
>>
>>> Folks, 
>>>
>>> Just following up on what turned to be my own blunder. Using 
>>> ListDataProvider doesn't work when the CellTable is created using pageSize 
>>> = 0. 
>>>
>>> super(0, resources, keyProvider);
>>>
>>> It still works when using setRowCount(); setRowData();.
>>>
>>> So I fixed it for the time being by setting a meaningfully large 
>>> pageSize.
>>>
>>> Here is the question: would it make sense to add a bit more to the 
>>> Javadoc for pageSize. Or maybe checking for 0 and throwing 
>>> IllegalArgumentException?
>>>
>>> On Friday, September 24, 2021 at 4:44:10 PM UTC-7 Slava Imeshev wrote:
>>>
>>>> So, I'm following basic examples, and I just cannot get it to work. The 
>>>> populate() method below using ListDataProvider leaves the table empty. 
>>>> populateWorking() works. Any hints?
>>>>
>>>> public class GapAnalysisListTable extends CellTable {
>>>>
>>>> public GapAnalysisListTable() {
>>>>
>>>> // Create a data provider.
>>>> dataProvider = new ListDataProvider<>(GapAnalysisVO::getId);
>>>>
>>>> // Connect the table to the data provider.
>>>> dataProvider.addDataDisplay(this);
>>>> }
>>>>
>>>> public void populate(final GapAnalysisVO[] gapAnalysisVOList) {
>>>>
>>>> final List list = dataProvider.getList();
>>>> list.addAll(Arrays.asList(gapAnalysisVOList));
>>>> dataProvider.refresh();
>>>> }
>>>>
>>>> public void populateWorks(final GapAnalysisVO[] gapAnalysisVOList) {
>>>>
>>>> setRowCount(gapAnalysisVOList.length);
>>>> setRowData(Arrays.asList(gapAnalysisVOList));
>>>> }
>>>> }
>>>>
>>>

-- 
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/e015c9dd-d133-40e7-baed-5e52ba96c99dn%40googlegroups.com.


Re: Populating CellTable using ListDataProvider?

2021-10-20 Thread Slava Imeshev
Hey, hey, hey,

I'm one of us Javascript-deaf. With GWT I'm back to my a screen-a-day in 
pure Java. Just loving it.

Still, would GWT team be accepting of some PRs to update Javadocs? Took me 
a day of Googling to figure out how to make use of custom widgets in UI 
Binder templates.

Slava


On Wednesday, October 20, 2021 at 7:15:59 PM UTC-7 Craig Mitchell wrote:

> GWT does many great things.  Implementation of lists and tables wasn't one 
> of them (IMHO).
>
> If GWT 3 ever comes out.  It will be great to have separation of this 
> stuff.
>
> However, to answer your question, yes, it would make sense, I just don't 
> know what the likelihood of a 2.9.1 release is.
> On Tuesday, 19 October 2021 at 2:36:28 pm UTC+11 ime...@gmail.com wrote:
>
>> Folks, 
>>
>> Just following up on what turned to be my own blunder. Using 
>> ListDataProvider doesn't work when the CellTable is created using pageSize 
>> = 0. 
>>
>> super(0, resources, keyProvider);
>>
>> It still works when using setRowCount(); setRowData();.
>>
>> So I fixed it for the time being by setting a meaningfully large pageSize.
>>
>> Here is the question: would it make sense to add a bit more to the 
>> Javadoc for pageSize. Or maybe checking for 0 and throwing 
>> IllegalArgumentException?
>>
>> On Friday, September 24, 2021 at 4:44:10 PM UTC-7 Slava Imeshev wrote:
>>
>>> So, I'm following basic examples, and I just cannot get it to work. The 
>>> populate() method below using ListDataProvider leaves the table empty. 
>>> populateWorking() works. Any hints?
>>>
>>> public class GapAnalysisListTable extends CellTable {
>>>
>>> public GapAnalysisListTable() {
>>>
>>> // Create a data provider.
>>> dataProvider = new ListDataProvider<>(GapAnalysisVO::getId);
>>>
>>> // Connect the table to the data provider.
>>> dataProvider.addDataDisplay(this);
>>> }
>>>
>>> public void populate(final GapAnalysisVO[] gapAnalysisVOList) {
>>>
>>> final List list = dataProvider.getList();
>>> list.addAll(Arrays.asList(gapAnalysisVOList));
>>> dataProvider.refresh();
>>> }
>>>
>>> public void populateWorks(final GapAnalysisVO[] gapAnalysisVOList) {
>>>
>>> setRowCount(gapAnalysisVOList.length);
>>> setRowData(Arrays.asList(gapAnalysisVOList));
>>> }
>>> }
>>>
>>

-- 
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/a6f17d03-a70a-4cf5-822d-8da3c2cb1139n%40googlegroups.com.


Re: Populating CellTable using ListDataProvider?

2021-10-20 Thread Craig Mitchell
GWT does many great things.  Implementation of lists and tables wasn't one 
of them (IMHO).

If GWT 3 ever comes out.  It will be great to have separation of this stuff.

However, to answer your question, yes, it would make sense, I just don't 
know what the likelihood of a 2.9.1 release is.
On Tuesday, 19 October 2021 at 2:36:28 pm UTC+11 ime...@gmail.com wrote:

> Folks, 
>
> Just following up on what turned to be my own blunder. Using 
> ListDataProvider doesn't work when the CellTable is created using pageSize 
> = 0. 
>
> super(0, resources, keyProvider);
>
> It still works when using setRowCount(); setRowData();.
>
> So I fixed it for the time being by setting a meaningfully large pageSize.
>
> Here is the question: would it make sense to add a bit more to the Javadoc 
> for pageSize. Or maybe checking for 0 and throwing IllegalArgumentException?
>
> On Friday, September 24, 2021 at 4:44:10 PM UTC-7 Slava Imeshev wrote:
>
>> So, I'm following basic examples, and I just cannot get it to work. The 
>> populate() method below using ListDataProvider leaves the table empty. 
>> populateWorking() works. Any hints?
>>
>> public class GapAnalysisListTable extends CellTable {
>>
>> public GapAnalysisListTable() {
>>
>> // Create a data provider.
>> dataProvider = new ListDataProvider<>(GapAnalysisVO::getId);
>>
>> // Connect the table to the data provider.
>> dataProvider.addDataDisplay(this);
>> }
>>
>> public void populate(final GapAnalysisVO[] gapAnalysisVOList) {
>>
>> final List list = dataProvider.getList();
>> list.addAll(Arrays.asList(gapAnalysisVOList));
>> dataProvider.refresh();
>> }
>>
>> public void populateWorks(final GapAnalysisVO[] gapAnalysisVOList) {
>>
>> setRowCount(gapAnalysisVOList.length);
>> setRowData(Arrays.asList(gapAnalysisVOList));
>> }
>> }
>>
>

-- 
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/f6e7df58-a414-4ea7-937f-c7757bee41cen%40googlegroups.com.


Re: Populating CellTable using ListDataProvider?

2021-10-18 Thread Slava Imeshev
Folks, 

Just following up on what turned to be my own blunder. Using 
ListDataProvider doesn't work when the CellTable is created using pageSize 
= 0. 

super(0, resources, keyProvider);

It still works when using setRowCount(); setRowData();.

So I fixed it for the time being by setting a meaningfully large pageSize.

Here is the question: would it make sense to add a bit more to the Javadoc 
for pageSize. Or maybe checking for 0 and throwing IllegalArgumentException?

On Friday, September 24, 2021 at 4:44:10 PM UTC-7 Slava Imeshev wrote:

> So, I'm following basic examples, and I just cannot get it to work. The 
> populate() method below using ListDataProvider leaves the table empty. 
> populateWorking() works. Any hints?
>
> public class GapAnalysisListTable extends CellTable {
>
> public GapAnalysisListTable() {
>
> // Create a data provider.
> dataProvider = new ListDataProvider<>(GapAnalysisVO::getId);
>
> // Connect the table to the data provider.
> dataProvider.addDataDisplay(this);
> }
>
> public void populate(final GapAnalysisVO[] gapAnalysisVOList) {
>
> final List list = dataProvider.getList();
> list.addAll(Arrays.asList(gapAnalysisVOList));
> dataProvider.refresh();
> }
>
> public void populateWorks(final GapAnalysisVO[] gapAnalysisVOList) {
>
> setRowCount(gapAnalysisVOList.length);
> setRowData(Arrays.asList(gapAnalysisVOList));
> }
> }
>

-- 
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/44f9cd0e-abee-436b-aa00-a47c18a89b32n%40googlegroups.com.


Populating CellTable using ListDataProvider?

2021-09-24 Thread Slava Imeshev
So, I'm following basic examples, and I just cannot get it to work. The 
populate() method below using ListDataProvider leaves the table empty. 
populateWorking() works. Any hints?

public class GapAnalysisListTable extends CellTable {

public GapAnalysisListTable() {

// Create a data provider.
dataProvider = new ListDataProvider<>(GapAnalysisVO::getId);

// Connect the table to the data provider.
dataProvider.addDataDisplay(this);
}

public void populate(final GapAnalysisVO[] gapAnalysisVOList) {

final List list = dataProvider.getList();
list.addAll(Arrays.asList(gapAnalysisVOList));
dataProvider.refresh();
}

public void populateWorks(final GapAnalysisVO[] gapAnalysisVOList) {

setRowCount(gapAnalysisVOList.length);
setRowData(Arrays.asList(gapAnalysisVOList));
}
}

-- 
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/f2e1cbcb-ca37-4671-8b28-b019b3ddf3f8n%40googlegroups.com.


Re: Celltable loading state

2020-07-17 Thread Shakti Singh
dataGrid.setRowCount(0, false); should do the magic

On Friday, February 11, 2011 at 12:35:36 AM UTC+5:30, Deepak Singh wrote:
>
> Hi All,
>
> How can we set the loading image to be visible till the cell table loads ?
>
>

-- 
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/68c5ffb7-ff02-4afe-be50-dc75ee5a212eo%40googlegroups.com.


Re: Filters for cellTable

2019-05-04 Thread mabruneau
Hi,

For my project, I decided to go with a JSNI wrapper around this JS control:
- http://w2ui.com/web/demo/grid

It works well and has lots of settings. I'm not sure of your requirements 
but for me, it worked much better than the core UI library of GWT.

Good luck.

On Friday, 3 May 2019 09:53:53 UTC-7, nandi...@gmail.com wrote:
>
> HI All,
> I have a cellTable that displays date(as string)  in one column and few 
> other details in other column.
>
> Is there any way to have filter for this date column. Like date range. 
> On selecting the particular date range. The table should be displayed.
>
> Anyone got some information on this? Please.
> 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-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Filters for cellTable

2019-05-03 Thread nanditha212
HI All,
I have a cellTable that displays date(as string)  in one column and few other 
details in other column.

Is there any way to have filter for this date column. Like date range. 
On selecting the particular date range. The table should be displayed.

Anyone got some information on this? Please.
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-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2019-04-16 Thread Nanditha Nandu
Hi Craig,

I'm trying to place the SuggestBox widget inside CellTable.
Created the custom class "SuggestBoxTextInputCell" which extends the 
TextInputCell.


And changed the browserEvent as following:

*public* *void* onBrowserEvent(Context context, Element parent, String value
,

NativeEvent event, ValueUpdater valueUpdater) {

*super*.onBrowserEvent(context, parent, value, event, valueUpdater);

// Ignore events that don't target the input.

InputElement input = getInputElement(parent);

String eventType = event.getType();

*if* (BrowserEvents.*FOCUS*.equals(eventType)) {

TextBox textBox = *new* MyTextBox(input);

suggestBox = *new* MySuggestBox(suggestBox.getSuggestOracle(), textBox);

suggestBox.onAttach();

} 

Element *target* = event.getEventTarget().cast();

}


But I want to pass my own suggestionText. 

Hence the created a constructor:

*public* SuggestBoxTextInputCell(MultiWordSuggestOracle suggestions) {

*this*(suggestions, *new* TextBox());

}

*public* SuggestBoxTextInputCell(MultiWordSuggestOracle suggestions,

ValueBoxBase box) {

//this(suggestions, box);

}

After this I'm stuck.

And want to call SuggestBoxTextInputCell(Suggestions) in CellTable.

On Tuesday, April 16, 2019 at 6:06:10 AM UTC+5:30, Craig Mitchell wrote:

> It would help knowing what the problem is, as we don't know what your 
> custom SuggestBox is.
>
> Maybe look into 
> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid
>  and 
> look how EditTextCell works, and then make a EditSuggestBox.
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2019-04-15 Thread Craig Mitchell
It would help knowing what the problem is, as we don't know what your 
custom SuggestBox is.

Maybe look into 
http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomDataGrid 
and 
look how EditTextCell works, and then make a EditSuggestBox.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2019-04-14 Thread Nanditha Nandu
Any one has any solution on this? Please help. Thanks.





On Wednesday, April 10, 2019 at 10:07:18 PM UTC+5:30, Nanditha Nandu wrote:

> How to call this custom SuggestBox.. In the cellTable with passing default 
> suggestions. 
>
> Please help. 

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuggestBox in a CellTable

2019-04-10 Thread Nanditha Nandu
How to call this custom SuggestBox.. In the cellTable with passing default 
suggestions.

Please help. 

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Enter key to change the focus from one TextInputCell to another in a celltable.

2019-03-08 Thread renciac
You are a STAR Stefaan!! Thank you so much. After adding validation to the 
inputCell it was a real problem to get the tabbing sorted again. Thank you!

On Friday, September 21, 2012 at 11:11:10 PM UTC+2, Stefaan Vanderheyden 
wrote:
>
> Sorry, I forgot to mention:
>
> You get the currentRow from the index value provided in the field updater 
> and the currentCol by querying the celltable for the updated column's index 
> (cellTable.getColumnIndex(updatedCol))...
>
> On Friday, September 21, 2012 11:09:08 PM UTC+2, Stefaan Vanderheyden 
> wrote:
>>
>> Here is some code you might also find applicable to your use case:
>>
>> private void focusOnNext(final int currentRow, final int currentCol) {
>> // Scan remaining cells in table for a form element to focus on.
>> for (int r = currentRow; r < this.pricingTable.getRowCount(); 
>> r++) {
>> final NodeList rowCells =
>> this.pricingTable.getRowElement(r).getCells();
>> for (int c = 0; c < rowCells.getLength(); c++) {
>> if ((r == currentRow) && (c <= currentCol)) {
>> // don't process these cells since we would be moving 
>> the
>> // focus backwards!
>> } else {
>> if (rowCells.getItem(c).getElementsByTagName("input")
>> .getItem(0) != null) {
>> rowCells.getItem(c).getElementsByTagName("input")
>> .getItem(0).focus();
>> return;
>> }
>> if (rowCells.getItem(c).getElementsByTagName("select")
>> .getItem(0) != null) {
>> rowCells.getItem(c).getElementsByTagName("select")
>> .getItem(0).focus();
>> return;
>> }
>> if 
>> (rowCells.getItem(c).getElementsByTagName("textarea")
>> .getItem(0) != null) {
>> 
>> rowCells.getItem(c).getElementsByTagName("textarea")
>> .getItem(0).focus();
>> return;
>> }
>> }
>> }
>> }
>> }
>>
>> I call this method in my FieldUpdater after redrawing the row on a value 
>> change.  It works very nicely!
>>
>> On Wednesday, July 25, 2012 11:26:04 AM UTC+2, Nitin wrote:
>>>
>>> In the cell table to have tab flow working, I had to do the 
>>> following: 
>>> cellTable.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
>>>
>>> apart from changing the template of TextInputcell. This helped me in 
>>> getting the tab flow working properly i.e. when I hit TAB the focus shifts 
>>> to the next editable cell of the celltable.
>>>
>>> But there is one more requirement in my project which says that the 
>>> enter key should behave as the tab key and hence when we hit enter on a 
>>> particular TextInputcell, the focus should move to the next TextInputcell 
>>> of the celltable. Can anyone please help me with this?
>>>
>>> I have tried lots of things to achieve this, but none is working. This 
>>> is very urgent for the project. Please let me know, if you need more 
>>> information on the issue.
>>>
>>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how to create an anchor column in a celltable

2018-08-30 Thread Ousti Driss

Problem solved, thank you everyone,
a special thank to hy

On Wednesday, August 29, 2018 at 6:52:36 PM UTC+2, hy wrote:
>
> Create a class that renders anchor like below:
>
> public class CustomAnchorCell
> extends ClickableTextCell {
>
> private String itsHref = "";
> private boolean isEnabled = true;
>
> public CustomAnchorCell(String inHref) {
> super();
> itsHref = inHref;
> }
>
> public CustomAnchorCell() {
> super();
> itsHref = "";
> }
>
> public CustomAnchorCell(String inHref, boolean inEnabled) {
> this(inHref);
> isEnabled = inEnabled;
> }
>
> @Override
> protected void render(Context context, SafeHtml value, SafeHtmlBuilder 
> sb) {
> if (value != null) {
> String theElementStart = "";
> String theElementEnd = "";
> if (isEnabled) {
> theElementStart = " theElementEnd = "";
> } else {
> theElementStart = " theElementEnd = "";
> }
> sb.appendHtmlConstant(theElementStart + " class='" + itsClassName 
> + "'>")
> .append(value)
> .appendHtmlConstant(theElementEnd);
> }
> }
>
> public void setHref(String inHref) {
> itsHref = inHref;
> }
>
> public void setEnabled(boolean inEnabled) {
> isEnabled = inEnabled;
> }
>
> public void setClassName(String inClassName) {
> itsClassName = inClassName;
> }
> }
>
>
>
> Use it like this:
>
> Column theReport = new Column< Report, String>(new 
> CustomAnchorCell()) {
> @Override
> public String getValue(Report object) {
> return "Hello New Tab";
> }
>
> @Override
> public void render(Cell.Context context, Report object, SafeHtmlBuilder 
> sb) {
> CustomAnchorCell theCustomAnchorCell = (CustomAnchorCell) getCell();
> theCustomAnchorCell.setHref("_your new tab url_");
> theCustomAnchorCell.setClassName(*"_your custom css class name_"*);
>
> super.render(context, object, sb);
> }
> };
>
>
>
> On Wednesday, August 29, 2018 at 10:50:25 AM UTC-4, Ousti Driss wrote:
>>
>> What I want is when you click on the cell a new tab opens with the url 
>> you clicked,
>> my string url column is filled with the response I get from the servlet
>> can you please give me more details on the alternative response.
>>
>> On Wednesday, August 29, 2018 at 3:45:27 PM UTC+2, Thomas Broyer wrote:
>>>
>>> If you want to display text as-is (e.g. not a link), then you can use a 
>>> ClickableTextCell (see it live, with source code, in 
>>> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellSampler),
>>>  
>>> the FieldUpdater will be called when the cell is clicked.
>>> Alternatively, you could use a TextCell with a custom SafeHtmlRenderer 
>>> that would wrap the URL in a link (easiest would probably be to implement 
>>> this using a SafeHtmlTemplates: pass the URL as input –you'll want to pass 
>>> it as a SafeUri, constructed using UriUtils.fromString()–, use it to 
>>> construct something like {0})
>>>
>>> On Tuesday, August 28, 2018 at 6:00:00 PM UTC+2, Ousti Driss wrote:
>>>>
>>>> Hey everyone,
>>>>
>>>> I'm writing the code of a simple web app using gwt, I have a Celltable 
>>>> all its columns are String type,
>>>> one of the columns is a url column , I want to make this column 
>>>> clickable, which means once you click on a cell
>>>> of this column, you are redicted to the url shown, is that possible?
>>>> i tried to add an anchor column to the table, but I got error messages 
>>>> while defining this column when I call the getValue method, the type of 
>>>> return should be a string!!
>>>> Is there a way to do such a thing?
>>>>
>>>> Thank you :) 
>>>>
>>>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how to create an anchor column in a celltable

2018-08-30 Thread Ousti Driss
Problem solved, thank you everyone,
a special thank to hy

On Tuesday, August 28, 2018 at 6:00:00 PM UTC+2, Ousti Driss wrote:
>
> Hey everyone,
>
> I'm writing the code of a simple web app using gwt, I have a Celltable all 
> its columns are String type,
> one of the columns is a url column , I want to make this column clickable, 
> which means once you click on a cell
> of this column, you are redicted to the url shown, is that possible?
> i tried to add an anchor column to the table, but I got error messages 
> while defining this column when I call the getValue method, the type of 
> return should be a string!!
> Is there a way to do such a thing?
>
> Thank you :) 
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how to create an anchor column in a celltable

2018-08-29 Thread hy
Create a class that renders anchor like below:

public class CustomAnchorCell
extends ClickableTextCell {

private String itsHref = "";
private boolean isEnabled = true;

public CustomAnchorCell(String inHref) {
super();
itsHref = inHref;
}

public CustomAnchorCell() {
super();
itsHref = "";
}

public CustomAnchorCell(String inHref, boolean inEnabled) {
this(inHref);
isEnabled = inEnabled;
}

@Override
protected void render(Context context, SafeHtml value, SafeHtmlBuilder sb) {
if (value != null) {
String theElementStart = "";
String theElementEnd = "";
if (isEnabled) {
theElementStart = "")
.append(value)
.appendHtmlConstant(theElementEnd);
}
}

public void setHref(String inHref) {
itsHref = inHref;
}

public void setEnabled(boolean inEnabled) {
isEnabled = inEnabled;
}

public void setClassName(String inClassName) {
itsClassName = inClassName;
}
}



Use it like this:

Column theReport = new Column< Report, String>(new 
CustomAnchorCell()) {
@Override
public String getValue(Report object) {
return "Hello New Tab";
}

@Override
public void render(Cell.Context context, Report object, SafeHtmlBuilder sb) 
{
CustomAnchorCell theCustomAnchorCell = (CustomAnchorCell) getCell();
theCustomAnchorCell.setHref("_your new tab url_");
theCustomAnchorCell.setClassName(*"_your custom css class name_"*);

super.render(context, object, sb);
}
};



On Wednesday, August 29, 2018 at 10:50:25 AM UTC-4, Ousti Driss wrote:
>
> What I want is when you click on the cell a new tab opens with the url you 
> clicked,
> my string url column is filled with the response I get from the servlet
> can you please give me more details on the alternative response.
>
> On Wednesday, August 29, 2018 at 3:45:27 PM UTC+2, Thomas Broyer wrote:
>>
>> If you want to display text as-is (e.g. not a link), then you can use a 
>> ClickableTextCell (see it live, with source code, in 
>> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellSampler),
>>  
>> the FieldUpdater will be called when the cell is clicked.
>> Alternatively, you could use a TextCell with a custom SafeHtmlRenderer 
>> that would wrap the URL in a link (easiest would probably be to implement 
>> this using a SafeHtmlTemplates: pass the URL as input –you'll want to pass 
>> it as a SafeUri, constructed using UriUtils.fromString()–, use it to 
>> construct something like {0})
>>
>> On Tuesday, August 28, 2018 at 6:00:00 PM UTC+2, Ousti Driss wrote:
>>>
>>> Hey everyone,
>>>
>>> I'm writing the code of a simple web app using gwt, I have a Celltable 
>>> all its columns are String type,
>>> one of the columns is a url column , I want to make this column 
>>> clickable, which means once you click on a cell
>>> of this column, you are redicted to the url shown, is that possible?
>>> i tried to add an anchor column to the table, but I got error messages 
>>> while defining this column when I call the getValue method, the type of 
>>> return should be a string!!
>>> Is there a way to do such a thing?
>>>
>>> Thank you :) 
>>>
>>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how to create an anchor column in a celltable

2018-08-29 Thread Ousti Driss
What I want is when you click on the cell a new tab opens with the url you 
clicked,
my string url column is filled with the response I get from the servlet
can you please give me more details on the alternative response.

On Wednesday, August 29, 2018 at 3:45:27 PM UTC+2, Thomas Broyer wrote:
>
> If you want to display text as-is (e.g. not a link), then you can use a 
> ClickableTextCell (see it live, with source code, in 
> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellSampler), 
> the FieldUpdater will be called when the cell is clicked.
> Alternatively, you could use a TextCell with a custom SafeHtmlRenderer 
> that would wrap the URL in a link (easiest would probably be to implement 
> this using a SafeHtmlTemplates: pass the URL as input –you'll want to pass 
> it as a SafeUri, constructed using UriUtils.fromString()–, use it to 
> construct something like {0})
>
> On Tuesday, August 28, 2018 at 6:00:00 PM UTC+2, Ousti Driss wrote:
>>
>> Hey everyone,
>>
>> I'm writing the code of a simple web app using gwt, I have a Celltable 
>> all its columns are String type,
>> one of the columns is a url column , I want to make this column 
>> clickable, which means once you click on a cell
>> of this column, you are redicted to the url shown, is that possible?
>> i tried to add an anchor column to the table, but I got error messages 
>> while defining this column when I call the getValue method, the type of 
>> return should be a string!!
>> Is there a way to do such a thing?
>>
>> Thank you :) 
>>
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how to create an anchor column in a celltable

2018-08-29 Thread Thomas Broyer
If you want to display text as-is (e.g. not a link), then you can use a 
ClickableTextCell (see it live, with source code, 
in 
http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellSampler), 
the FieldUpdater will be called when the cell is clicked.
Alternatively, you could use a TextCell with a custom SafeHtmlRenderer that 
would wrap the URL in a link (easiest would probably be to implement this 
using a SafeHtmlTemplates: pass the URL as input –you'll want to pass it as 
a SafeUri, constructed using UriUtils.fromString()–, use it to construct 
something like {0})

On Tuesday, August 28, 2018 at 6:00:00 PM UTC+2, Ousti Driss wrote:
>
> Hey everyone,
>
> I'm writing the code of a simple web app using gwt, I have a Celltable all 
> its columns are String type,
> one of the columns is a url column , I want to make this column clickable, 
> which means once you click on a cell
> of this column, you are redicted to the url shown, is that possible?
> i tried to add an anchor column to the table, but I got error messages 
> while defining this column when I call the getValue method, the type of 
> return should be a string!!
> Is there a way to do such a thing?
>
> Thank you :) 
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: how to create an anchor column in a celltable

2018-08-29 Thread Josselin Bardet
Hi,

You can use a custom cell to do what you want.
You can look at the ButtonCell class for exemple

The render() method is called for each row of the cell table, you can make
your  link there

@see com.google.gwt.cell.client.ButtonCell

Le mar. 28 août 2018 à 18:00, Ousti Driss  a écrit :

> Hey everyone,
>
> I'm writing the code of a simple web app using gwt, I have a Celltable all
> its columns are String type,
> one of the columns is a url column , I want to make this column clickable,
> which means once you click on a cell
> of this column, you are redicted to the url shown, is that possible?
> i tried to add an anchor column to the table, but I got error messages
> while defining this column when I call the getValue method, the type of
> return should be a string!!
> Is there a way to do such a thing?
>
> Thank you :)
>
> --
> 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 post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://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 "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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


how to create an anchor column in a celltable

2018-08-28 Thread Ousti Driss
Hey everyone,

I'm writing the code of a simple web app using gwt, I have a Celltable all 
its columns are String type,
one of the columns is a url column , I want to make this column clickable, 
which means once you click on a cell
of this column, you are redicted to the url shown, is that possible?
i tried to add an anchor column to the table, but I got error messages 
while defining this column when I call the getValue method, the type of 
return should be a string!!
Is there a way to do such a thing?

Thank you :) 

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT Celltable Issues

2018-03-06 Thread P.Pon rani
Hi,

I am facing celltable alignment issues in IE9. Columns fall down and 
aligned in a single block.

Compiler settings used was  

Is there any solution for the same.

Thanks,
Rani

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CellTable Page Size Optimization

2017-02-01 Thread Jens
Can't you just read the height of the table and calculate row count based 
on that height?

If you need notifications that a desktop user has made his browser as small 
as a mobile screen you can use media query events (use JSNI or JsInterop to 
make them available to your app).

https://developer.mozilla.org/de/docs/Web/API/Window/matchMedia

-- J.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CellTable Page Size Optimization

2017-02-01 Thread Björn Rudzewitz
Dear GWT Users,

I'm developing a GWT application that users access from devices with highly 
variable screen sizes and resolutions, such as mobile phones, desktops, 
tablet pcs, etc. In the application I use a CellTable to dispay data to the 
clients.

So far I couldn't find a way in which I can set the CellTable page size 
dynamically, i.e. always show the optimal number of rows per CellTable page 
such that is makes use of the given screen size. Did anyone of you face a 
similar problem or has suggestions how to tackle this ?

Best regards,
Bjoern

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT CELLTABLE How to restore old value in cell if validation fails

2017-01-03 Thread Ved Ratna Mehra
Its way too late but still and I think you must have already done this... 
Below would redraw only a single row.
dataGrid.redrawRow( rowIndexReceivedInUpdateMethod );



On Tuesday, August 9, 2011 at 12:53:48 PM UTC+5:30, vaibhav gwt wrote:
>
> Hi Loan, 
>
> Thanks for your solution. It works but  Performance is too bad. 
> i.e clearing incorrect values for the whole row (say 5) takes too much 
> time(clearViewData+ redraw table) 
>
> Reverting N records will take too much time :( 
>
> Is there any fast way to update old row/object in celltable ? 
>
>
>
>
>  // when setting up table columns add the edit cells to this list 
>  List editCells = new ArrayList(); 
>   
>
>  // clear incorrect values for the whole row 
>  for (EditTextCell editCell : editCells) 
>  { 
>   editCell.clearViewData(KEY_PROVIDER.getKey(object)); 
>
>  } 
> cellTable.redraw(); 
> On Aug 3, 5:44 pm, Ioan Agopian  wrote: 
> > No, I don't think that's possible. 
> > 
> > But you can store all your edit cells in a list and clear them all at 
> > once, like this: 
> > 
> > // when setting up table columns add the edit cells to this list 
> > List editCells = new ArrayList(); 
> >  
> > 
> > // clear incorrect values for the whole row 
> > for (EditTextCell editCell : editCells) 
> > { 
> >  editCell.clearViewData(KEY_PROVIDER.getKey(object)); 
> > 
> > } 
> > 
> > cellTable.redraw(); 
> > 
> > Regards, 
> > Ioan 
> > 
> > On Aug 3, 12:25 pm, vaibhav gwt  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > Thanks Loan :) 
> > > Icanrestoreoldvalueinspecificcellifvalidationfails. 
> > 
> > > Is it possible that all column values from particular 
> rowrestoretooldvalue? 
> > > || ID || Dept || Code || RNO || RCode 
> > > || .||ZCode || 
> > > || 1  ||  CS   || 001  ||  3  ||  030 
> > > || .||Q1|| 
> > > || 2 ||  DS   || 001  ||  5  ||   040 
> > > || .||S1 || 
> > 
> > > Suppose In above editable grid I changed 1st record i.e 
> > > || 1  ||  CS   || 001  ||  3  ||  030 
> > > || .||Q1|| 
> > > changed to 
> > > || 1  ||  BP   || 010  ||  3  ||  003 
> > > ||.||Q1|| 
> > 
> > > Is there any way torestoreoldobject(row) values instead to 
> clearingcellview data for each column and redraw editable grid. 
> > 
> > > In Short revert record tooldvaluewhich is selected by our checkbox 
> > > (All or selected chkbox only i.e selectionModel.isSelected(object) ) 
> > 
> > > My Grid contain (2-N) column so I am asking this question ? 
> > 
> > > On Aug 2, 5:42 pm, Ioan Agopian  wrote: 
> > 
> > > > Hi Vaibhav, 
> > 
> > > > Youcando it like this: 
> > > > // clear incorrect data 
> > > >cell.clearViewData(KEY_PROVIDER.getKey(object)); 
> > > > cellTable.redraw(); 
> > 
> > > > Wherecellis the TextEditCell that you're using for that column. 
> > 
> > > > Regards, 
> > > > Ioan 
> > 
> > > > On Aug 2, 12:59 pm, vaibhav bhalke  
> wrote: 
> > 
> > > > > Hi all, 
> > 
> > > > > PFA WebEx recording for Issue. 
> > 
> > > > > I want to used editableNumbercell like intger,decimal etc.. But 
> there is no 
> > > > > such gwt widget present so I am using editable textcelland using 
> > > > >validationfor numbers when user updatevalueincell. 
> > 
> > > > > How to avoidcellediting whenvalidationfails. 
> > 
> > > > >ifvalidationfail then editable-textcellvaluerestored tooldvalue.How 
> > > > > to do that? 
> > 
> > > > > intgerColumn.setFieldUpdater(new FieldUpdater String>() { 
> > > > > public void update(int index, RecordInfo object, 
> Stringvalue) { 
> > > > > // Called when the user changes thevalue. 
> > > > >if(value.matches("(-)?(\\d){1,8}")){ 
> > > > > object.setColumnInRecordEdited(true); 
> > > > > object.setValue(value); 
> > > > > RecordData.get().refreshDisplays(); 
> > >

Help modifying celltable styles with gss

2016-11-16 Thread Raymond Hawkins
I'm in the process of updating to GWT 2.8, and I have the following code 
from 2.7:
public interface DataGridResource extends DataGrid.Resources {
  public interface Style2 extends Style {}

  @Source({DataGrid.Style.DEFAULT_CSS, "MaterialDataGrid.css"})
  Style2 dataGridStyle();
}

Following the instructions on 
http://www.gwtproject.org/articles/gss_migration.html, I'm trying to switch 
to using all gss. however, when I try to change MaterialDataGrid.css 
to MaterialDataGrid.gss, I get the following error: "[ERROR] Only either 
css files or gss files are supported on one interface".

I assume this is because "You cannot mix css and gss on the same method 
(@Source annotation)." and DataGrid.Style.DEFAULT_CSS points 
to com/google/gwt/user/cellview/client/DataGrid.css. 

If I manually use "com/google/gwt/user/cellview/client/DataGrid.gss", it 
works fine, but there doesn't appear to be a constant for the gss path. Am 
I missing anything here, or should I just either use the full path in my 
code or replace ".css" with ".gss" on DataGrid.Style.DEFAULT_CSS?

Thank you!

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Refresh of CellTable via data transmitted via WebSocket delayed

2016-09-24 Thread Kay Pac
Thanks very much Thomas - that was it. I checked the gwt-websocket, and it 
is indeed using $entry, while gwt-stomp is not. I altered the code and the 
problem seems to be resolved. Whew! So happy to have found this solution.

Kay

On Friday, September 23, 2016 at 1:21:42 AM UTC-7, Thomas Broyer wrote:
>
>
>
> On Friday, September 23, 2016 at 2:04:19 AM UTC+2, Kay Pac wrote:
>>
>> I have a somewhat complex problem related to a CellTable that updates 
>> based on messages received over a WebSocket connection. The problem is as 
>> follows: The table does not update in real-time, even though "setRowData" 
>> and redraw* are called in real-time. There is a delay in the row appearing 
>> in the CellTable, or rather in the DOM as a table row. I realize that 
>> redraw does not actually redraw but sets a flag via 
>> HasDataPresenter.redraw, which checked elsewhere. It is often the case that 
>> mouse movement causes the row to appear - and I have been able to reproduce 
>> this behavior. When I put in a timer firing every 300 milliseconds, its 
>> execution also causes the row to appear.
>>
>
> That hints at the callback that calls the setRowData and redraw not being 
> wrapped in $entry().
> CellTable defers its DOM update using Scheduler.scheduleFinally(), and 
> "finally commands" (and "entry commands") are processed by $entry().
> So, your callback schedules a finally task, but because it's not in 
> $entry() it's not called "at the end of the event loop" as it's expected 
> to; it's actually called at the end of the next event loop that uses 
> $entry(), which is the case for almost anything that GWT does: event 
> handlers, timers, etc.
> So: make sure your WebSocket's callback is wrapped in $entry() (this also 
> takes care of the GWT.UncaughtExceptionHandler btw)
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Refresh of CellTable via data transmitted via WebSocket delayed

2016-09-23 Thread Thomas Broyer


On Friday, September 23, 2016 at 2:04:19 AM UTC+2, Kay Pac wrote:
>
> I have a somewhat complex problem related to a CellTable that updates 
> based on messages received over a WebSocket connection. The problem is as 
> follows: The table does not update in real-time, even though "setRowData" 
> and redraw* are called in real-time. There is a delay in the row appearing 
> in the CellTable, or rather in the DOM as a table row. I realize that 
> redraw does not actually redraw but sets a flag via 
> HasDataPresenter.redraw, which checked elsewhere. It is often the case that 
> mouse movement causes the row to appear - and I have been able to reproduce 
> this behavior. When I put in a timer firing every 300 milliseconds, its 
> execution also causes the row to appear.
>

That hints at the callback that calls the setRowData and redraw not being 
wrapped in $entry().
CellTable defers its DOM update using Scheduler.scheduleFinally(), and 
"finally commands" (and "entry commands") are processed by $entry().
So, your callback schedules a finally task, but because it's not in 
$entry() it's not called "at the end of the event loop" as it's expected 
to; it's actually called at the end of the next event loop that uses 
$entry(), which is the case for almost anything that GWT does: event 
handlers, timers, etc.
So: make sure your WebSocket's callback is wrapped in $entry() (this also 
takes care of the GWT.UncaughtExceptionHandler btw)

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Refresh of CellTable via data transmitted via WebSocket delayed

2016-09-22 Thread Kay Pac
I have a somewhat complex problem related to a CellTable that updates based 
on messages received over a WebSocket connection. The problem is as 
follows: The table does not update in real-time, even though "setRowData" 
and redraw* are called in real-time. There is a delay in the row appearing 
in the CellTable, or rather in the DOM as a table row. I realize that 
redraw does not actually redraw but sets a flag via 
HasDataPresenter.redraw, which checked elsewhere. It is often the case that 
mouse movement causes the row to appear - and I have been able to reproduce 
this behavior. When I put in a timer firing every 300 milliseconds, its 
execution also causes the row to appear.

It is flummoxing because the problem did not occur until I switched from a 
prototype implementation of basic websockets to a prototype implementation 
of STOMP-wrapped websockets (stomp being a MOM-supported protocol for 
supported messaging from "simple clients"). However, in both cases, there 
is no difference as to when the data is delivered via setData and redraw is 
called, so the change should not affect how or when the cellTable gets 
updated.

I am considering eliminating the use of CellTable and have a simpler DOM 
manipulation, but I'd prefer to determine what I am doing that is causing 
this problem, whether it is misuse of CellTable API or inappropriate 
expectations of CellTable behavior. I can't really post any code because it 
is all integrated, and I can kind of work around it.

Does anyone have any ideas how to approach this problem or where I might 
begin to look for a solution?

Sincerely,
Kay

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: selenium and waiting for CellTable to load

2016-08-09 Thread Kay Pac
I was thinking about this a bit, and I could probably use a hidden form 
field or some other DOM change to indicate the completion of the table load 
- it might be more reliable.

On Monday, August 8, 2016 at 11:34:04 AM UTC-7, Kay Pac wrote:
>
> Does anyone have code for interacting with celltables in selenim tests?
>
> I have a selenium test and a CellTable that is filled with the results of 
> an RPC call. The table displays a "loading" image until the rows are 
> populated, and I need to wait for the "loaded" condition in my selenium 
> test code. I notice that in the element tree there are two TBODY elements, 
> a second one which is styled "display: none" when the table is loaded - 
> this contains the loading image.
>
> I am using an xpath expression to find the second TBODY: 
> "//*[@id='gwt-debug-gameDetailsTable']/tbody[2]"
> Here is the code I am using right now. Basically, if the table has already 
> loaded prior to looking for the TBODY, everything is okay - isDIsplayed is 
> false. But if it isn't, neither of these ExpectedConditions work, even 
> though the first one only checks to see that it isn't displayed anymore. I 
> am using HTMLUnit version 22 and selenium 2.53.1.
>
> WebElement tbody2 = driver.findElement(By.xpath("//*[@id='" + 
> GWTID_GAMEDETAILSTABLE + "']/tbody[2]"));
> if(tbody2.isDisplayed())
> {
> try {
> logger.info("waiting for games table to load...");
> Boolean until = (new WebDriverWait(driver, 10)).until(new 
> ExpectedCondition() {
> @Nullable
> @Override
> public Boolean apply(@Nullable WebDriver input) {
> return tbody2.isDisplayed() == false;
> }
> });
> //Boolean until = (new WebDriverWait(driver, 
> 10)).until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("//*[@id='"
>  
> + GWTID_GAMEDETAILSTABLE + "']/tbody[2]")));
> logger.info("until = {}", until);
> } catch(Exception ex)
> {
> logger.warn("{}", ex);
> }
> } else {
> logger.info("no need to wait for games table to load, 
> 'loading' tbody is hidden");
> }
>
>
>
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


selenium and waiting for CellTable to load

2016-08-08 Thread Kay Pac
Does anyone have code for interacting with celltables in selenim tests?

I have a selenium test and a CellTable that is filled with the results of 
an RPC call. The table displays a "loading" image until the rows are 
populated, and I need to wait for the "loaded" condition in my selenium 
test code. I notice that in the element tree there are two TBODY elements, 
a second one which is styled "display: none" when the table is loaded - 
this contains the loading image.

I am using an xpath expression to find the second TBODY: 
"//*[@id='gwt-debug-gameDetailsTable']/tbody[2]"
Here is the code I am using right now. Basically, if the table has already 
loaded prior to looking for the TBODY, everything is okay - isDIsplayed is 
false. But if it isn't, neither of these ExpectedConditions work, even 
though the first one only checks to see that it isn't displayed anymore. I 
am using HTMLUnit version 22 and selenium 2.53.1.

WebElement tbody2 = driver.findElement(By.xpath("//*[@id='" + 
GWTID_GAMEDETAILSTABLE + "']/tbody[2]"));
if(tbody2.isDisplayed())
{
try {
logger.info("waiting for games table to load...");
Boolean until = (new WebDriverWait(driver, 10)).until(new 
ExpectedCondition() {
@Nullable
@Override
public Boolean apply(@Nullable WebDriver input) {
return tbody2.isDisplayed() == false;
}
});
//Boolean until = (new WebDriverWait(driver, 
10)).until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("//*[@id='" 
+ GWTID_GAMEDETAILSTABLE + "']/tbody[2]")));
logger.info("until = {}", until);
} catch(Exception ex)
{
logger.warn("{}", ex);
}
} else {
logger.info("no need to wait for games table to load, 'loading' 
tbody is hidden");
}



-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Updating CellTable row style

2016-03-19 Thread Gilberto
Inspect the row style at the browser developer tools to see which is 
preventing your classes to be applied.

Note that some styles can't be applied at row level, but only at cell 
level. I guess the border is one of those styles.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Updating CellTable row style

2016-03-19 Thread mohit
Thanks for the reply Jens!

I tried adding  

mappings.getRowElement(event.getValue().getExecutionOrder()).getStyle().
setBorderStyle(BorderStyle.SOLID);

 But it didn't work :(


mappings.getRowElement(event.getValue().getExecutionOrder() ).getStyle().
setBackgroundColor("Red");

did change the background colour of rows, though.


I don't understand why one style gets applied and other doesn't. 

On Saturday, March 19, 2016 at 6:07:10 PM UTC+5:30, Jens wrote:
>
> I guess your border-style is still set to "none" (the default value) 
> because you have not set any. You need to set it to "solid" for example.
>
> -- J.
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Updating CellTable row style

2016-03-19 Thread Jens
I guess your border-style is still set to "none" (the default value) 
because you have not set any. You need to set it to "solid" for example.

-- J.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Updating CellTable row style

2016-03-19 Thread mohit
Hi,

I am trying to update a row style for on mouse hover.

mappings.addCellPreviewHandler(new Handler() {

  @Override 
  public void onCellPreview(CellPreviewEvent event
) { 
if (BrowserEvents.MOUSEOVER.equals(event.getNativeEvent().getType
())) { 
   mappings.getRowElement(event.getValue().getExecutionOrder()).
getStyle().setBorderColor("Red"); 
  } 
});




Any idea why 
mappings.getRowElement(event.getValue().getExecutionOrder()).getStyle().
setBorderColor("Red"); 

has no effect?


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-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CellTable FieldUpdater Validation (not null, etc)

2016-02-26 Thread Denny Kluge
I had to call refresh on the DataProvider for the grid to display the 
previous value.

tColName.setFieldUpdater(new FieldUpdater() {
   public void update(int index, final MyModel model, final String newValue) 
{
  if (newValue == null || newValue.trim().isEmpty()) {
 textCellName.clearViewData(model);
 mDataProvider.refresh();
 return;
  }
   }
}




-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DataGrid/CellTable with several tbody elements - frustation on trying to implement

2016-02-18 Thread Gilberto
I don't agree 100% with that, at least not in GWT. The framework should 
provide a "good enough" default implementation that covers most of the user 
cases, but not forbid the developer from extending it - I'm not talking 
about making everything public, but making everything extensible. The 
developer who is extending it is (or should be) aware he is modified 
something internal of the framework, that could change or break in future 
versions.

As I said, in pure Java, making a field or method private doesn't prevent 
you from calling it outside, by using reflection. So that kind of 
consideration (making everything as closed as possible) on a framework is 
annoying but not a show-stopper. You still can extend it when you know what 
are you doing. In GWT, even if you know what are you doing, and even if 
what you are trying to do is supported by the specs, you just can't.

And as a side note, since the 2.X version is supposed to not involve 
anymore after 2.8, maintaining everything as closed as possible because "it 
could break in the future" doesn't apply anymore.

On Thursday, February 18, 2016 at 5:01:07 PM UTC-2, Jens wrote:
>
>
> Why GWT is designed that way, so hard to extend? Is that a reflection of a 
>> desperate need for contributors to the project, by having to "fork the 
>> whole thing"? Or is it to force the developers to use paid frameworks built 
>> on top of GWT?
>> Why package-scoped classes?
>> Why private fields on classes that are supposed to be extended?
>>
>
> Because it is generally a good practice to start as closed as possible and 
> then open up APIs you feel comfortable with. As a library / toolkit / SDK 
> you can not blindly make everything public because then you can never 
> refactor that API as it would break lots of people who became dependent on 
> these public APIs in the mean time.
>
> But you can always bring up specific cases on the gwt-contrib mailing list 
> so it can be discussed and maybe its fine to open up the API a bit here and 
> there.
>
> -- J.
>

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: DataGrid/CellTable with several tbody elements - frustation on trying to implement

2016-02-18 Thread Jens


> Why GWT is designed that way, so hard to extend? Is that a reflection of a 
> desperate need for contributors to the project, by having to "fork the 
> whole thing"? Or is it to force the developers to use paid frameworks built 
> on top of GWT?
> Why package-scoped classes?
> Why private fields on classes that are supposed to be extended?
>

Because it is generally a good practice to start as closed as possible and 
then open up APIs you feel comfortable with. As a library / toolkit / SDK 
you can not blindly make everything public because then you can never 
refactor that API as it would break lots of people who became dependent on 
these public APIs in the mean time.

But you can always bring up specific cases on the gwt-contrib mailing list 
so it can be discussed and maybe its fine to open up the API a bit here and 
there.

-- J.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


DataGrid/CellTable with several tbody elements - frustation on trying to implement

2016-02-18 Thread Gilberto
Hi there,

In my app I need to create a table with several sections, by using several 
tbody elements. For those how are wondering, yes, that's supported by the 
W3C spec: a table can have multiple tbody elements (see this question at 
StackOverflow 
<http://stackoverflow.com/questions/3076708/can-we-have-multiple-tbody-in-same-table>
 
for details).

I really need several tbody elements because the data structure and styling 
needed for each section cannot be achieved by just adding more table rows, 
or "header rows".

That being said, I started my research trying to find a way to do that with 
DataGrid/CellTable on GWT.

And then I found this thread:

https://groups.google.com/forum/#!topic/google-web-toolkit/6VxudGY11OA

... which states that:


[...] If you really need/want several tbodies, you'll have to fork the 
> whole thing


and

[...] If I were you, I'd first ask myself whether I really need those 
> multiple tbodies…


Well, in my opinion the framework is not supposed to judge if you need 
something or not, if what you want is supported by the specs. Anyway, the 
"you'll have to fork the whole thing" got me puzzled... How hard it would 
be to fork it?

First step is to create a custom CellTableBuilder. And by that I mean a 
class that implements CellTableBuilder directly, since we cannot use the 
DefaultCellTableBuilder or even the AbstractCellTableBuilder, because the 
"HtmlTableSectionBuilder tbody" object I need to access is private on 
AbstractCellTableBuilder. So I created a CustomCellTableBuilder with most 
code copied from AbstractCellTableBuilder and DefaultCellTableBuilder.

Ugly, but now I have access to the HtmlTableSectionBuilder object. Next 
step is to change it to allow multiple tbody elements.

And now the things started to be a real mess. The HtmlElementBuilderBase, 
which is the parent class of HtmlTableSectionBuilder, doesn't accept 
multiple top level tags. You are forced to start a tag and put stuff into 
it. And it gets worse: if you try to extend the HtmlElementBuilderBase to 
create your own builder, you just can't... because the constructor requires 
a HtmlBuilderImpl oject, which is only visible at package level 
(com.google.gwt.dom.builder.shared) !

And then I figured out what the "you'll have to fork the whole thing" 
means: I'd have to really fork the whole thing.

It's not the first time I stumble on package scoped classes or private 
fields/methods that forbids you to create a custom behaviour (even if that 
behaviour is supported by the specs). So I came with some questions:

Why GWT is designed that way, so hard to extend? Is that a reflection of a 
desperate need for contributors to the project, by having to "fork the 
whole thing"? Or is it to force the developers to use paid frameworks built 
on top of GWT?
Why package-scoped classes?
Why private fields on classes that are supposed to be extended?

In pure Java, such bad design for extension points can be treated with 
reflection. Not beautiful, not best performance, but it works. In GWT 
that's not an option, so we are left to "fork the whole thing".

I really hope that future versions of GWT have a better approach to 
extension points. The framework shouldn't forbid the developer from making 
his own choices.

-- 
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: reload celltable data

2015-12-15 Thread Tibor Mucha


cellTable.setVisibleRangeAndClearData(new Range(0, ), false);


On Tuesday, April 17, 2012 at 1:09:45 PM UTC+2, Magallo wrote:
>
> Just to quote U2I still haven't found what I'm looking for.. For 
> now I just use a custom label with the "loading..." text instead of a 
> loading indicator. I know it's not the right solution but it's a workaround 
> that helps waiting for the right solution.
>
> On Tuesday, March 20, 2012 3:20:57 PM UTC+1, develop.acb wrote:
>>
>>
>> Hello,
>> we have similar problems with CellTable and DataGrid. I can´t find a 
>> solution getting the loading indicator to work!
>> Is there anybody who could provide somthing like "How to use loading 
>> indicator"?
>>
>> Thanks...
>>
>>
>>
>> Am Montag, 5. März 2012 17:23:34 UTC+1 schrieb Magallo:
>>>
>>>
>>>
>>> On Friday, March 2, 2012 10:10:13 AM UTC+1, Magallo wrote:
>>>>
>>>> I have a very similar problem. I have a DataGrid and when I load data 
>>>> from an RPC I want to show the loading indicator on the grid and when the 
>>>> data are loaded I wanted to show them. I initialize the datagrid with;
>>>>
>>>> myDataGrid.setLoadingIndicator(new Image(/*my ImageResource object*/);
>>>>
>>>> then during the program flow, just before making an async RPC, I would 
>>>> like to set the DataGrid in the state of 'Loading'
>>>> so that the loading indicator is shown. Then, after the RPC returns I 
>>>> would like to set the DataGrid in the state of 'Loaded'
>>>> to show the data rows. I tried with this:
>>>>
>>>> 
>>>> myDataGrid.fireEvent(new LoadingStateChangeEvent(LoadingState.LOADING));
>>>> 
>>>> myDataGrid.fireEvent(new LoadingStateChangeEvent(LoadingState.LOADED));
>>>> but nothing happens.
>>>>
>>>> I have also tried to call setVisibleRangeAndClearData but it doesn't 
>>>> work.
>>>>
>>>> I read from Thomas Broyer that "the loading indicator is shown only 
>>>> when the LoadingState is LOADING, and that one is set by the internal 
>>>> HasDataPresenter only when the known rowData is empty (and the rowCount is 
>>>> not 0)." What exactly does it mean? What is the 'known' rowData? I use a 
>>>> ListDataProvider to bind data to the DataGrid. Where am I wrong? What is 
>>>> the right way to set the 'Loading' state of the DataGrid?
>>>>
>>>> jgm: does you code did the trick? I think anyway it's just a little too 
>>>> tricky. I think that considering how the DataGrid (and CellTable also) is 
>>>> designed, I really think and hope there is a simple way. The support for 
>>>> this is not really good. I think google should explain better how to use 
>>>> these controls.
>>>>
>>>> Cheers.
>>>>
>>>> On Wednesday, February 1, 2012 3:26:10 PM UTC+1, jgm wrote:
>>>>>
>>>>> Hi, 
>>>>>
>>>>> Thanks for your quick answer. 
>>>>>
>>>>> We also in the meantime found out that .. 
>>>>>
>>>>> private void clearTable() { 
>>>>> if (dataProvider.getDataDisplays() != null && 
>>>>> dataProvider.getDataDisplays().isEmpty() == false) { 
>>>>> dataProvider.removeDataDisplay(cellTable); 
>>>>> } 
>>>>>
>>>>> clearTableColumns(); 
>>>>> 
>>>>> cellTable.setVisibleRangeAndClearData(cellTable.getVisibleRange(), 
>>>>>
>>>>> true); 
>>>>> cellTable.setLoadingIndicator(imageProcessing); 
>>>>> } 
>>>>>
>>>>> did the trick ! 
>>>>>
>>>>> On 1 Feb., 14:44, Thomas Broyer  wrote: 
>>>>> > AFAICT, CellTable shows the loading indicator only when the 
>>>>> LoadingState is 
>>>>> > LOADING, and that one is set by the internal HasDataPresenter only 
>>>>> when the 
>>>>> > known rowData is empty (and the rowCount is not 0). So I think you 
>>>>> need to 
>>>>> > call setVisibleRangeAndClearData().
>>>>
>>>>
>>>> On Wednesday, February 1, 20

CellTable equivalent

2015-12-11 Thread Juan Pablo Gardella
Hi devs,

As GWT 3.0 will remove widgets, someone know if exists a CellTable
equivalence in JS libraries? CellTable and Datagrid are awesome components.

Juan

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


CellTable loses text selection on update.

2015-11-30 Thread jonbbbb
I have a CellTable with some text cells.

I have a AsyncDataProvider and inside there I have a timer that runs every 
second.

But when I call updateRowData(0, list) every second it replaces the text in 
the CellTable.

If you have selected the text with the mouse it removes the text selection. 
If you move the 
mouse while keeping the mouse button pressed it creates an anoying flashing 
effect on the
selection.

Maybe this is the expected behaviour. But I have seen some other javascript 
stuff that is not
GWT that is able to update the text in a table without doing anything with 
the text selection.
The text changes while being inside the text selection. That is what I want.

So is there anything I can do to not have the selection disappear?

This is the html it produces for a cell: 

description http://google.com


The only work around I can think of is to not allow text selection with CSS 
to avoid this altogether.

Thanks,
Jay.

-- 
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 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 insert Image into Column Header of CellTable (GWT)?

2015-10-22 Thread Thomas Broyer
Better actually use a Header with an ImageCell (or ImageRessourceCell) possibly 
within a CompositeCell if you also want/need text.

-- 
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 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 insert Image into Column Header of CellTable (GWT)?

2015-10-22 Thread grabljevec
Could this be modified somehow to choose image dynamically ?

On Friday, March 28, 2014 at 5:21:06 AM UTC, Tom wrote:
>
> Found the answer, using the background-image strategy
>
> In css:
>
> .columnHeader{
>  background-image:url('/images/icon/delete.png');
>  background-size:16px 16px;
>  background-repeat:no-repeat;
>  background-position:center;
>  
> }
>
>
> in Java
> TextHeader deleteHeader=new TextHeader("");
> deleteHeader.setHeaderStyleNames(getView().getRes().css().columnHeader());
> myCellTable.addColumn(deleteColumn,deleteHeader);
>
>
>
>
> On Friday, March 28, 2014 3:22:27 PM UTC+11, Tom wrote:
>>
>> If we use Text for the header then it may take some space, so I want the 
>> Header have an icon(like Delete Icon) so I can save some space for the 
>> Header.
>>
>> So I tried 
>>
>> myCellTable.addColumn(deleteColumn,new 
>> SafeHtmlHeader(SafeHtmlUtils.fromSafeConstant
>> ("")));
>>
>> It showed the image but the Image is very small about (10px - 10px) and 
>> it has a ugly border around the image.
>>
>>
>> Someone said using CUstom Header, but I couldn't override 
>> getHeaderStyleNames(). Ex:
>>
>> class DeleteHeader extends Header{
>> @Override
>> public String getHeaderStyleNames(){
>> return "css style";
>> }
>> }
>>
>> It said i have to override supertype something!!
>>
>> So how to fix it?
>>
>

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


Export CellTable to Excel ? HELP!

2015-10-07 Thread Aldo Pergjergji
Hi guys, 

i'm new in GWT and i need to export my CellTable to Excel (client side)?

Any example?

Thanks

Aldo

-- 
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 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: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Patrick May
On Friday, October 2, 2015 at 12:15:05 PM UTC-4, Thomas Broyer wrote:
>
>
> All subpanels have their height and width set to 100% by their containing 
>> panels.
>>
>
> Don't do that. ProvidesResize panels do set the size of their children.
>

Thanks for the pointer.  I removed all of those.
 

> *Observed Behavior*
>>
>> When the "Budget" menu item is clicked, the DockLayoutPanel is displayed, 
>> with its header Label, the DataGrid column headers are displayed, but the 
>> DataGrid rows do not appear.
>>
>
> Possibly related to https://github.com/gwtproject/gwt/issues/4694 (or 
> similar bug).
> Try calling forceLayout() on the DockLayoutPanel when you switch to it in 
> the DeckLayoutPanel.
>

That did it!

Thank you very much,

Patrick

-- 
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 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: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Patrick May
On Friday, October 2, 2015 at 9:48:59 AM UTC-4, Juan Pablo Gardella wrote:
>
> try set height in pixels
>

Okay, I tried that and the data still doesn't appear.  However, I resizing 
the browser window, even with the 100% height, does cause the data to 
appear.  Calling the DataGrid's onResize() method, even in a 
ScheduledCommand from the container's onLoad() method, does not cause the 
data to be displayed.

Where can I report this as a bug?

Thanks again.
 

-- 
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 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: GWT DataGrid does not display, CellTable does

2015-10-02 Thread jaga
I'd try placing each widget in its own container and showing hiding the 
containers rather than the tables.  If you use a layoutpanel as a container for 
each container then you can call LayoutPanel.setWidgetVisible().

-- 
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 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: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Thomas Broyer

On Friday, October 2, 2015 at 1:14:34 AM UTC+2, Patrick May wrote:
>
> My application consists of a SplitLayoutPanel that has a StackLayoutPanel 
> with two menu selections on the left and a DeckLayoutPanel on the right. 
>  The DeckLayoutPanel has two subpanels, one a SimpleLayoutPanel containing 
> a Label and one a DockLayoutPanel containing a Label and another 
> SimpleLayoutPanel.  The last SimpleLayoutPanel contains a DataGrid.
>
> SplitLayoutPanel (TestUI)
>   |
>   + StackLayoutPanel
>   |   |
>   |   + CellList (Profile)
>   |   |
>   |   + CellList (Admin)
>   |
>   + DeckLayoutPanel
>   |
>   + SimpleLayoutPanel
>   |   |
>   |   + Label
>   |
>   + DockLayoutPanel (BudgetPanel)
>   |
>   + Label
>   |
>   + SimpleLayoutPanel (LedgerPanel)
>   |
>   + DataGrid
>
> All subpanels have their height and width set to 100% by their containing 
> panels.
>

Don't do that. ProvidesResize panels do set the size of their children.
 

>
> The code is all available here:  
> https://github.com/patrickmay/data-grid-issue/tree/master/TestUI
>
> *Expected Behavior*
>
> The expected behavior is that clicking on the "Budget" menu item in the 
> StackLayoutPanel will show the BudgetPanel, including the LedgerPanel's 
> DataGrid.
>
>
> *Observed Behavior*
>
> When the "Budget" menu item is clicked, the DockLayoutPanel is displayed, 
> with its header Label, the DataGrid column headers are displayed, but the 
> DataGrid rows do not appear.
>

Possibly related to https://github.com/gwtproject/gwt/issues/4694 (or 
similar bug).
Try calling forceLayout() on the DockLayoutPanel when you switch to it in 
the DeckLayoutPanel.
 

> When a Label is added to the south area of the DockLayoutPanel, the 
> application compiles but nothing is displayed, not even the top level 
> StackLayoutPanel.
>

IIRC, the "center" area must always be added last. Calling addSouth() 
before add() might be enough to fix the problem (it's been a while since I 
last manipulated layout panels)
 

> When the DataGrid is replaced with a CellTable, the data is displayed 
> (although the height of each row is much more than necessary to hold the 
> data).
>

This is (probably) because the widget is given explicit dimensions by the 
SimpleLayoutPanel (through the ProvidesResize/RequiresResize chain up to 
the RootLayoutPanel).

-- 
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 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: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Patrick May
On Friday, October 2, 2015 at 9:48:59 AM UTC-4, Juan Pablo Gardella wrote:
>
> try set height in pixels
>
>
 I'll give it a try, but that's not really a robust approach.  GWT should 
be able to calculate the area it needs.  Setting explicit sizes seems error 
prone and inelegant.

Thanks for the response.

-- 
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 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: GWT DataGrid does not display, CellTable does

2015-10-02 Thread Juan Pablo Gardella
try set height in pixels

On 1 October 2015 at 18:14, Patrick May  wrote:

> My application consists of a SplitLayoutPanel that has a StackLayoutPanel
> with two menu selections on the left and a DeckLayoutPanel on the right.
> The DeckLayoutPanel has two subpanels, one a SimpleLayoutPanel containing a
> Label and one a DockLayoutPanel containing a Label and another
> SimpleLayoutPanel.  The last SimpleLayoutPanel contains a DataGrid.
>
> SplitLayoutPanel (TestUI)
>   |
>   + StackLayoutPanel
>   |   |
>   |   + CellList (Profile)
>   |   |
>   |   + CellList (Admin)
>   |
>   + DeckLayoutPanel
>   |
>   + SimpleLayoutPanel
>   |   |
>   |   + Label
>   |
>   + DockLayoutPanel (BudgetPanel)
>   |
>   + Label
>   |
>   + SimpleLayoutPanel (LedgerPanel)
>   |
>   + DataGrid
>
> All subpanels have their height and width set to 100% by their containing
> panels.
>
> The code is all available here:
> https://github.com/patrickmay/data-grid-issue/tree/master/TestUI
>
> *Expected Behavior*
>
> The expected behavior is that clicking on the "Budget" menu item in the
> StackLayoutPanel will show the BudgetPanel, including the LedgerPanel's
> DataGrid.
>
>
> *Observed Behavior*
>
> When the "Budget" menu item is clicked, the DockLayoutPanel is displayed,
> with its header Label, the DataGrid column headers are displayed, but the
> DataGrid rows do not appear.
>
> When a Label is added to the south area of the DockLayoutPanel, the
> application compiles but nothing is displayed, not even the top level
> StackLayoutPanel.
>
> When the DataGrid is replaced with a CellTable, the data is displayed
> (although the height of each row is much more than necessary to hold the
> data).
>
>
> *Questions*
>
> What needs to be done to get the DataGrid to display as expected?
>
> How can the rows be styled to have a smaller height?
>
> --
> 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 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 "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 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.


GWT DataGrid does not display, CellTable does

2015-10-01 Thread Patrick May
My application consists of a SplitLayoutPanel that has a StackLayoutPanel 
with two menu selections on the left and a DeckLayoutPanel on the right. 
 The DeckLayoutPanel has two subpanels, one a SimpleLayoutPanel containing 
a Label and one a DockLayoutPanel containing a Label and another 
SimpleLayoutPanel.  The last SimpleLayoutPanel contains a DataGrid.

SplitLayoutPanel (TestUI)
  |
  + StackLayoutPanel
  |   |
  |   + CellList (Profile)
  |   |
  |   + CellList (Admin)
  |
  + DeckLayoutPanel
  |
  + SimpleLayoutPanel
  |   |
  |   + Label
  |
  + DockLayoutPanel (BudgetPanel)
  |
  + Label
  |
  + SimpleLayoutPanel (LedgerPanel)
  |
  + DataGrid

All subpanels have their height and width set to 100% by their containing 
panels.

The code is all available here: 
 https://github.com/patrickmay/data-grid-issue/tree/master/TestUI

*Expected Behavior*

The expected behavior is that clicking on the "Budget" menu item in the 
StackLayoutPanel will show the BudgetPanel, including the LedgerPanel's 
DataGrid.


*Observed Behavior*

When the "Budget" menu item is clicked, the DockLayoutPanel is displayed, 
with its header Label, the DataGrid column headers are displayed, but the 
DataGrid rows do not appear.

When a Label is added to the south area of the DockLayoutPanel, the 
application compiles but nothing is displayed, not even the top level 
StackLayoutPanel.

When the DataGrid is replaced with a CellTable, the data is displayed 
(although the height of each row is much more than necessary to hold the 
data).


*Questions*

What needs to be done to get the DataGrid to display as expected?

How can the rows be styled to have a smaller height?

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


Celltable w/SelectionModel not firing onSelectionChange event

2015-09-23 Thread Matthew McLarty
I have a CellTable that doesn't seem to want to follow my defined 
SelectionModel. I know I must be missing something dumb, does anyone see 
what I've done wrong here?

public class QuoteTable extends CellTable {
Column editColumn;
Column quoteColumn;
Column referenceColumn;
Column dateColumn;
Column contactColumn;
Column summaryColumn;
ListHandler columnSortHandler;
QuoteSearchSnapshot quoteSearchSnapShot;

public final static String QUOTE = "Quote#";
public final static String REFERENCE = "Reference";
public final static String CONTACT = "Contact";
public final static String QUOTE_DATE = "Date";

final SingleSelectionModel selectionModel = new 
SingleSelectionModel();

public QuoteTable() {
selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() 
{
@Override
   public void onSelectionChange(SelectionChangeEvent event) {
QuoteListProxy selected = selectionModel.getSelectedObject();
 if (selected != null && quoteSearchSnapShot != null) {
 quoteSearchSnapShot.loadSnapShot(selected);
 }
  }
   });
initTable();
this.setSelectionModel(selectionModel);
}

private void initTable() {
//setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
initColumns();

for (int i = 0; i < this.getColumnCount(); i++) {
Column c = this.getColumn(i);
if (c.isSortable()) {
this.getHeader(i).setHeaderStyleNames("sortableColumn");
}
}
}

My initColumns() builds out a few TextCells and a few ActionCells. I know 
that the SelectionModel will always fire, even when an ActionCell is 
clicked, and that is the behavior I want but the SelectionChange event does 
not ever seem to get triggered. When I debug, I never even hit the 
breakpoint I have set in the onSelectionChange() method I've defined. Any 
insight would be appreciated? :)

-- 
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 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: CellTable rebuilding rows unnecessarily

2015-09-22 Thread William Davis
Or is it not possible for the celltable to only redraw new rows? Will it 
always redraw the whole table when adding to it?

On Monday, September 21, 2015 at 10:07:38 AM UTC-4, William Davis wrote:
>
> I have found an interesting issue, and I am wondering if I am misusing or 
> overlooking something. I have a large CellTable that is vertically 
> scrollable. I want to show all the rows at once instead of traditional 
> pagination. So at the bottom of my table I have a row that the user can 
> click to load 50 more rows. I have provided the table with a custom table 
> builder (setTableBuilder(new Builder());). When the user clicks "load more" 
> I query the data, add to the ListDataProvider and 
> call table.setVisibleRange(0, dataProvider.getList().size());. 
>
> I put a log statement in the 
>
> @Override
> public void buildRowImpl(Object rowValue, int absRowIndex) {
> }
>
> method to see when it was building rows. I notice that it would build 
> 0-dataProvider.getList().size() (all the rows), then it would build 
> oldLength-dataProvider.getList().size() (the new rows). For instance, if I 
> have 100 rows and then load 50 more it would build 0-150, and then rebuild 
> 100-50. What I want is for it to only build the new rows, obviously. 
>
> So I start debugging to see why it is rebuilding the whole table each 
> time. What I found was in 
> com.google.gwt.user.cellview.client.HasDataPresenter it would set the 
> "redrawRequired" flag to true at line 1325:
>
> else if (range1 == null && range0 != null && range0.getStart() == pageStart
> && (replaceDiff >= oldRowDataCount || replaceDiff > oldPageSize)) {
>   // Redraw if the new data completely overlaps the old data.
>  redrawRequired = true;
> }
>
> So my question is why does it think that the new data completely overlaps 
> the old data?
>
> Am I using something incorrectly, is there a better way? This gets to be 
> quite a slow down when it has to redraw thousands of rows that don't need 
> to be redrawn.
>
> Thanks,
> Will
>

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


Can u tell me how to add list Data (come from data base) in celltable withpagination

2015-09-22 Thread Deepak sahu


Hi  I `m new user of GWT and do not know how to work properally , 
 please can anyone tell me how to add list data (comes from database) in 
CellTable  

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


CellTable rebuilding rows unnecessarily

2015-09-21 Thread William Davis
I have found an interesting issue, and I am wondering if I am misusing or 
overlooking something. I have a large CellTable that is vertically 
scrollable. I want to show all the rows at once instead of traditional 
pagination. So at the bottom of my table I have a row that the user can 
click to load 50 more rows. I have provided the table with a custom table 
builder (setTableBuilder(new Builder());). When the user clicks "load more" 
I query the data, add to the ListDataProvider and 
call table.setVisibleRange(0, dataProvider.getList().size());. 

I put a log statement in the 

@Override
public void buildRowImpl(Object rowValue, int absRowIndex) {
}

method to see when it was building rows. I notice that it would build 
0-dataProvider.getList().size() (all the rows), then it would build 
oldLength-dataProvider.getList().size() (the new rows). For instance, if I 
have 100 rows and then load 50 more it would build 0-150, and then rebuild 
100-50. What I want is for it to only build the new rows, obviously. 

So I start debugging to see why it is rebuilding the whole table each time. 
What I found was in com.google.gwt.user.cellview.client.HasDataPresenter 
it would set the "redrawRequired" flag to true at line 1325:

else if (range1 == null && range0 != null && range0.getStart() == pageStart
&& (replaceDiff >= oldRowDataCount || replaceDiff > oldPageSize)) {
  // Redraw if the new data completely overlaps the old data.
 redrawRequired = true;
}

So my question is why does it think that the new data completely overlaps 
the old data?

Am I using something incorrectly, is there a better way? This gets to be 
quite a slow down when it has to redraw thousands of rows that don't need 
to be redrawn.

Thanks,
Will

-- 
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 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: CellTable Memory Leak in IE8

2015-08-13 Thread Dave Chapman
Hi Harvard,

Thanks for the update, I did think it was "lucky" my quick hack worked, but
glad I could help (in a small way!).

Cheers,
Dave

On 13 August 2015 at 04:29, Harvard Pan  wrote:

> Turns out that my test program no longer leaked because the rows in the
> test program's CellTable were no longer being replaced. After I changed the
> test program to output different data for each iteration, it became clear
> that the rows in the table just never changed. I tracked down the problem
> to setting the innerHTML for each row before the call to
> tableElement.replaceChild(newSection, section). Once I moved the setting of
> innerHTML to null to after this call, the table updates properly, but the
> leak still remains.
>
> Upon further testing, the memory leak seems to be largely from the
> replaceChild call. I guess if the entire TableSection is replaced in the
> DOM, IE8 doesn't properly clean this up, even if you set the innerHTML to
> null for the individual rows. I changed the implementation of
> replaceTableSection so that it ends up calling replaceAllRowsImplLegacy
> (which replaces one row at a time) and this yielded the correct result of
> updating the table while also not leaking memory.
>
> Here's the final code that I ended up with in ImplTrident:
> // GWT Issue #9164 - https://github.com/gwtproject/gwt/issues/9164
> // Discussion thread:
> https://groups.google.com/forum/#!topic/google-web-toolkit/lNOKG2dgAzs
> private native final void setRowInnerHtmlToNull(TableRowElement row)
> /*-{
>   row.innerHTML = null;
> }-*/;
>
> /**
>  * This method is used for legacy AbstractCellTable that's not a
>  * {@link TableSectionChangeHandler}.
>  */
> protected void replaceAllRowsImplLegacy(AbstractCellTable table,
> TableSectionElement section,
> SafeHtml html) {
>   // Remove all children.
>   Element child = section.getFirstChildElement();
>   while (child != null) {
> Element next = child.getNextSiblingElement();
> section.removeChild(child);
> // GWT Issue #9164 - https://github.com/gwtproject/gwt/issues/9164
> // Discussion thread:
> https://groups.google.com/forum/#!topic/google-web-toolkit/lNOKG2dgAzs
> if (TableRowElement.is(child)) {
> setRowInnerHtmlToNull(TableRowElement.as(child));
> }
> child = next;
>   }
>
>   // Add new child elements.
>   TableSectionElement newSection = convertToSectionElement(table,
> section.getTagName(), html);
>   child = newSection.getFirstChildElement();
>   while (child != null) {
> Element next = child.getNextSiblingElement();
> section.appendChild(child);
> child = next;
>   }
> }
>
> /**
>  * Render html into a table section. This is achieved by first setting
> the html in a DIV
>  * element, and then swap the table section with the corresponding
> element in the DIV. This
>  * method is used in IE since the normal optimizations are not
> feasible.
>  *
>  * @param table the {@link AbstractCellTable}
>  * @param section the {@link TableSectionElement} to replace
>  * @param html the html of a table section element containing the rows
>  */
> private void replaceTableSection(AbstractCellTable table,
> TableSectionElement section,
> SafeHtml html) {
>   String sectionName = section.getTagName().toLowerCase();
>   replaceAllRowsImplLegacy(table, section, html);
>   if ("tbody".equals(sectionName)) {
> ((TableSectionChangeHandler) table).onTableBodyChange(section);
>   } else if ("thead".equals(sectionName)) {
> ((TableSectionChangeHandler) table).onTableHeadChange(section);
>   } else if ("tfoot".equals(sectionName)) {
> ((TableSectionChangeHandler) table).onTableFootChange(section);
>   }
> }
>
> Again, many thanks for all your help. We couldn't have solved this
> otherwise.
>
> Harvard
>
>
> On Wed, Aug 5, 2015 at 9:07 AM, DaveC 
> wrote:
>
>> No worries, glad it worked! ;)
>>
>> I've not personally committed any code to the core gwt project but you
>> can find out more here
>> http://www.gwtproject.org/makinggwtbetter.html#contributingcode
>>
>> Bear in mind that GWT 3.0 is going to be a very different animal (for
>> instance, from what I understand there will be no widgets or gwt-rpc...),
>> so perhaps there isn't such a need to get these things fixed... I might be
>> wrong though.
>>
>> Cheers,
>> Dave
>>
>>
>> On Wednesday, 5 August 2

Re: CellTable Memory Leak in IE8

2015-08-12 Thread Harvard Pan
Turns out that my test program no longer leaked because the rows in the
test program's CellTable were no longer being replaced. After I changed the
test program to output different data for each iteration, it became clear
that the rows in the table just never changed. I tracked down the problem
to setting the innerHTML for each row before the call to
tableElement.replaceChild(newSection, section). Once I moved the setting of
innerHTML to null to after this call, the table updates properly, but the
leak still remains.

Upon further testing, the memory leak seems to be largely from the
replaceChild call. I guess if the entire TableSection is replaced in the
DOM, IE8 doesn't properly clean this up, even if you set the innerHTML to
null for the individual rows. I changed the implementation of
replaceTableSection so that it ends up calling replaceAllRowsImplLegacy
(which replaces one row at a time) and this yielded the correct result of
updating the table while also not leaking memory.

Here's the final code that I ended up with in ImplTrident:
// GWT Issue #9164 - https://github.com/gwtproject/gwt/issues/9164
// Discussion thread:
https://groups.google.com/forum/#!topic/google-web-toolkit/lNOKG2dgAzs
private native final void setRowInnerHtmlToNull(TableRowElement row)
/*-{
  row.innerHTML = null;
}-*/;

/**
 * This method is used for legacy AbstractCellTable that's not a
 * {@link TableSectionChangeHandler}.
 */
protected void replaceAllRowsImplLegacy(AbstractCellTable table,
TableSectionElement section,
SafeHtml html) {
  // Remove all children.
  Element child = section.getFirstChildElement();
  while (child != null) {
Element next = child.getNextSiblingElement();
section.removeChild(child);
// GWT Issue #9164 - https://github.com/gwtproject/gwt/issues/9164
// Discussion thread:
https://groups.google.com/forum/#!topic/google-web-toolkit/lNOKG2dgAzs
if (TableRowElement.is(child)) {
setRowInnerHtmlToNull(TableRowElement.as(child));
}
child = next;
  }

  // Add new child elements.
  TableSectionElement newSection = convertToSectionElement(table,
section.getTagName(), html);
  child = newSection.getFirstChildElement();
  while (child != null) {
Element next = child.getNextSiblingElement();
section.appendChild(child);
child = next;
  }
}

/**
 * Render html into a table section. This is achieved by first setting
the html in a DIV
 * element, and then swap the table section with the corresponding
element in the DIV. This
 * method is used in IE since the normal optimizations are not feasible.
 *
 * @param table the {@link AbstractCellTable}
 * @param section the {@link TableSectionElement} to replace
 * @param html the html of a table section element containing the rows
 */
private void replaceTableSection(AbstractCellTable table,
TableSectionElement section,
SafeHtml html) {
  String sectionName = section.getTagName().toLowerCase();
  replaceAllRowsImplLegacy(table, section, html);
  if ("tbody".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableBodyChange(section);
  } else if ("thead".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableHeadChange(section);
  } else if ("tfoot".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableFootChange(section);
  }
}

Again, many thanks for all your help. We couldn't have solved this
otherwise.

Harvard


On Wed, Aug 5, 2015 at 9:07 AM, DaveC 
wrote:

> No worries, glad it worked! ;)
>
> I've not personally committed any code to the core gwt project but you can
> find out more here
> http://www.gwtproject.org/makinggwtbetter.html#contributingcode
>
> Bear in mind that GWT 3.0 is going to be a very different animal (for
> instance, from what I understand there will be no widgets or gwt-rpc...),
> so perhaps there isn't such a need to get these things fixed... I might be
> wrong though.
>
> Cheers,
> Dave
>
>
> On Wednesday, 5 August 2015 13:24:27 UTC+1, Harvard Pan wrote:
>>
>> Dave,
>>
>> Thank you SO much for this. I tested this using my test project and it
>> seems to have solved the memory leak completely! I've attached my version
>> of the file (modified from 2.5.1-rc1 branch) with your changes.
>>
>> What's the best way to get this fix to the GWT code base so that future
>> versions of GWT will have this fix as well? I'd previously logged Issue
>> #9164 (https://github.com/gwtproject/gwt/issues/9164) on the gwtproject
>> page.
>>
>> Thanks again!
>> Harvard
>>
>> On Tuesday, August 4, 2015 at 7:11:24 AM UTC-4, DaveC wrote:
>>

Re: CellTable Memory Leak in IE8

2015-08-05 Thread DaveC
No worries, glad it worked! ;)

I've not personally committed any code to the core gwt project but you can 
find out more here 
http://www.gwtproject.org/makinggwtbetter.html#contributingcode

Bear in mind that GWT 3.0 is going to be a very different animal (for 
instance, from what I understand there will be no widgets or gwt-rpc...), 
so perhaps there isn't such a need to get these things fixed... I might be 
wrong though.

Cheers,
Dave

On Wednesday, 5 August 2015 13:24:27 UTC+1, Harvard Pan wrote:
>
> Dave,
>
> Thank you SO much for this. I tested this using my test project and it 
> seems to have solved the memory leak completely! I've attached my version 
> of the file (modified from 2.5.1-rc1 branch) with your changes.
>
> What's the best way to get this fix to the GWT code base so that future 
> versions of GWT will have this fix as well? I'd previously logged Issue 
> #9164 (https://github.com/gwtproject/gwt/issues/9164) on the gwtproject 
> page.
>
> Thanks again!
> Harvard
>
> On Tuesday, August 4, 2015 at 7:11:24 AM UTC-4, DaveC wrote:
>>
>> Hi,
>>
>> I think you'll have to dig into AbstractCellTable in order to fix this. I 
>> did a quick test of a fix I implemented and it "appears" to work for IE11 
>> running IE8/IE9 mode but not IE10 mode, I've not tested it in a real IE8 or 
>> IE9.
>>
>> Basically what I did was exaactly what you said - set row.innerHTML to 
>> null.
>>
>> I took a copy of AbstractCellTable (including the package structure) and 
>> placed it in my test project. In the ImplTrident inner class I've tweaked 
>> the methods replaceTableSection and replaceAllRowsImplLegacy to set the 
>> innerHTML to null for each row e.g. 
>>
>> *private native final void setRowInnerHtmlToNull(Element row)/*-{*
>> *row.innerHTML = null;*
>> *}-*/;*
>>
>> private void replaceTableSection.
>>
>>  TableElement tableElement = table.getElement().cast();
>>   
>> *  Element child = section.getFirstChildElement();*
>> *  while (child != null) {*
>> *setRowInnerHtmlToNull(child);*
>> *child = child.getNextSiblingElement();*
>> *  }*
>>   
>>   tableElement.replaceChild(newSection, section);
>>
>> .}
>>
>>  protected void replaceAllRowsImplLegacy(AbstractCellTable table, 
>> TableSectionElement section,
>> SafeHtml html) {
>>   // Remove all children.
>>   Element child = section.getFirstChildElement();
>>   while (child != null) {
>> Element next = child.getNextSiblingElement();
>> section.removeChild(child);
>> *setRowInnerHtmlToNull(child);*
>> child = next;
>>   }
>>
>> }
>>
>> Hope this helps.
>>
>> Cheers,
>> Dave
>>
>> On Thursday, 23 July 2015 22:05:10 UTC+1, Harvard Pan wrote:
>>>
>>> Hello,
>>>
>>> Our company uses GWT 2.5.1-rc1 and many of our customers (healthcare) 
>>> use IE8. We were hopeful that the memory leak in CellTable would have been 
>>> addressed by the memory leak fix for FlexTable. That leak (Issue 6938 - 
>>> https://code.google.com/p/google-web-toolkit/issues/detail?id=6938) was 
>>> fixed in 2.6. After grabbing the fix and merging it into the 2.5.1-rc1 
>>> code, we can confirm that FlexTable indeed is fixed and no longer leaking. 
>>> However, we still have leaking resources in CellTable. I've written a small 
>>> sample application to demonstrate the code that leaks. It's available on 
>>> BitBucket for anyone to pull.
>>>
>>>
>>> https://bitbucket.org/harvardpan/celltableleak/src/3eb0d9941df6fe40b4b09eef0ce1968c6db90da3/src/com/healthfortis/sample/celltableleak/client/CellTableLeak.java?at=master
>>>
>>> The root cause of 6938 was described in a Microsoft Connect page: 
>>> http://connect.microsoft.com/IE/feedback/details/790340/memory-leak-in-ie9-ie10-tables
>>> In it, it describes multiple reasons for the leak, including:
>>>
>>>- rows with ids
>>>- cells with ids
>>>- code that references a row.cells expression, even if it does not 
>>>store or use the result (that's the fix in 6938)
>>>- code that does not set row.innerHTML to null after invoking 
>>>table.deleteRow() for the row.
>>>
>>> I imagine that the CellTable leak is related to one of the conditions 
>>> above. I suspect the last one as I never do actually see any setting to 
>>> null of innerHTML in the javascript. Wanted to check in to see if anyone on 
>>> this forum had any ideas on where we could investigate next.
>>>
>>> Thanks!
>>> Harvard
>>>
>>

-- 
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: CellTable Memory Leak in IE8

2015-08-05 Thread Harvard Pan
Dave,

Thank you SO much for this. I tested this using my test project and it 
seems to have solved the memory leak completely! I've attached my version 
of the file (modified from 2.5.1-rc1 branch) with your changes.

What's the best way to get this fix to the GWT code base so that future 
versions of GWT will have this fix as well? I'd previously logged Issue 
#9164 (https://github.com/gwtproject/gwt/issues/9164) on the gwtproject 
page.

Thanks again!
Harvard

On Tuesday, August 4, 2015 at 7:11:24 AM UTC-4, DaveC wrote:
>
> Hi,
>
> I think you'll have to dig into AbstractCellTable in order to fix this. I 
> did a quick test of a fix I implemented and it "appears" to work for IE11 
> running IE8/IE9 mode but not IE10 mode, I've not tested it in a real IE8 or 
> IE9.
>
> Basically what I did was exaactly what you said - set row.innerHTML to 
> null.
>
> I took a copy of AbstractCellTable (including the package structure) and 
> placed it in my test project. In the ImplTrident inner class I've tweaked 
> the methods replaceTableSection and replaceAllRowsImplLegacy to set the 
> innerHTML to null for each row e.g. 
>
> *private native final void setRowInnerHtmlToNull(Element row)/*-{*
> *row.innerHTML = null;*
> *}-*/;*
>
> private void replaceTableSection.
>
>  TableElement tableElement = table.getElement().cast();
>   
> *  Element child = section.getFirstChildElement();*
> *  while (child != null) {*
> *setRowInnerHtmlToNull(child);*
> *child = child.getNextSiblingElement();*
> *  }*
>   
>   tableElement.replaceChild(newSection, section);
>
> .}
>
>  protected void replaceAllRowsImplLegacy(AbstractCellTable table, 
> TableSectionElement section,
> SafeHtml html) {
>   // Remove all children.
>   Element child = section.getFirstChildElement();
>   while (child != null) {
> Element next = child.getNextSiblingElement();
> section.removeChild(child);
> *setRowInnerHtmlToNull(child);*
> child = next;
>   }
>
> }
>
> Hope this helps.
>
> Cheers,
> Dave
>
> On Thursday, 23 July 2015 22:05:10 UTC+1, Harvard Pan wrote:
>>
>> Hello,
>>
>> Our company uses GWT 2.5.1-rc1 and many of our customers (healthcare) use 
>> IE8. We were hopeful that the memory leak in CellTable would have been 
>> addressed by the memory leak fix for FlexTable. That leak (Issue 6938 - 
>> https://code.google.com/p/google-web-toolkit/issues/detail?id=6938) was 
>> fixed in 2.6. After grabbing the fix and merging it into the 2.5.1-rc1 
>> code, we can confirm that FlexTable indeed is fixed and no longer leaking. 
>> However, we still have leaking resources in CellTable. I've written a small 
>> sample application to demonstrate the code that leaks. It's available on 
>> BitBucket for anyone to pull.
>>
>>
>> https://bitbucket.org/harvardpan/celltableleak/src/3eb0d9941df6fe40b4b09eef0ce1968c6db90da3/src/com/healthfortis/sample/celltableleak/client/CellTableLeak.java?at=master
>>
>> The root cause of 6938 was described in a Microsoft Connect page: 
>> http://connect.microsoft.com/IE/feedback/details/790340/memory-leak-in-ie9-ie10-tables
>> In it, it describes multiple reasons for the leak, including:
>>
>>- rows with ids
>>- cells with ids
>>- code that references a row.cells expression, even if it does not 
>>store or use the result (that's the fix in 6938)
>>- code that does not set row.innerHTML to null after invoking 
>>table.deleteRow() for the row.
>>
>> I imagine that the CellTable leak is related to one of the conditions 
>> above. I suspect the last one as I never do actually see any setting to 
>> null of innerHTML in the javascript. Wanted to check in to see if anyone on 
>> this forum had any ideas on where we could investigate next.
>>
>> Thanks!
>> Harvard
>>
>

-- 
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.
/*
 * Copyright 2010 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apa

Re: CellTable Memory Leak in IE8

2015-08-04 Thread DaveC
Hi,

I think you'll have to dig into AbstractCellTable in order to fix this. I 
did a quick test of a fix I implemented and it "appears" to work for IE11 
running IE8/IE9 mode but not IE10 mode, I've not tested it in a real IE8 or 
IE9.

Basically what I did was exaactly what you said - set row.innerHTML to null.

I took a copy of AbstractCellTable (including the package structure) and 
placed it in my test project. In the ImplTrident inner class I've tweaked 
the methods replaceTableSection and replaceAllRowsImplLegacy to set the 
innerHTML to null for each row e.g. 

*private native final void setRowInnerHtmlToNull(Element row)/*-{*
*row.innerHTML = null;*
*}-*/;*

private void replaceTableSection.

 TableElement tableElement = table.getElement().cast();
  
*  Element child = section.getFirstChildElement();*
*  while (child != null) {*
*setRowInnerHtmlToNull(child);*
*child = child.getNextSiblingElement();*
*  }*
  
  tableElement.replaceChild(newSection, section);

.}

 protected void replaceAllRowsImplLegacy(AbstractCellTable table, 
TableSectionElement section,
SafeHtml html) {
  // Remove all children.
  Element child = section.getFirstChildElement();
  while (child != null) {
Element next = child.getNextSiblingElement();
section.removeChild(child);
*setRowInnerHtmlToNull(child);*
child = next;
  }

}

Hope this helps.

Cheers,
Dave

On Thursday, 23 July 2015 22:05:10 UTC+1, Harvard Pan wrote:
>
> Hello,
>
> Our company uses GWT 2.5.1-rc1 and many of our customers (healthcare) use 
> IE8. We were hopeful that the memory leak in CellTable would have been 
> addressed by the memory leak fix for FlexTable. That leak (Issue 6938 - 
> https://code.google.com/p/google-web-toolkit/issues/detail?id=6938) was 
> fixed in 2.6. After grabbing the fix and merging it into the 2.5.1-rc1 
> code, we can confirm that FlexTable indeed is fixed and no longer leaking. 
> However, we still have leaking resources in CellTable. I've written a small 
> sample application to demonstrate the code that leaks. It's available on 
> BitBucket for anyone to pull.
>
>
> https://bitbucket.org/harvardpan/celltableleak/src/3eb0d9941df6fe40b4b09eef0ce1968c6db90da3/src/com/healthfortis/sample/celltableleak/client/CellTableLeak.java?at=master
>
> The root cause of 6938 was described in a Microsoft Connect page: 
> http://connect.microsoft.com/IE/feedback/details/790340/memory-leak-in-ie9-ie10-tables
> In it, it describes multiple reasons for the leak, including:
>
>- rows with ids
>- cells with ids
>- code that references a row.cells expression, even if it does not 
>store or use the result (that's the fix in 6938)
>- code that does not set row.innerHTML to null after invoking 
>table.deleteRow() for the row.
>
> I imagine that the CellTable leak is related to one of the conditions 
> above. I suspect the last one as I never do actually see any setting to 
> null of innerHTML in the javascript. Wanted to check in to see if anyone on 
> this forum had any ideas on where we could investigate next.
>
> Thanks!
> Harvard
>

-- 
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: GWT Celltable-Sorting on Multiple Column

2015-07-29 Thread vuolevi
http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellTable


Den onsdag 29 juli 2015 kl. 06:55:57 UTC+2 skrev Mohammed Sameen:
>
> How to perform sorting on multiple column Using GWT Celltable. I didnt 
> find any example code for this? See the below image
>
> [image: enter image description here] <http://i.stack.imgur.com/8txUa.png>
>
> I need to Perform sorting on multiple column.How to Achieve this using GWT 
> Celltable any clue?
>

-- 
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: GWT CellTable-How to Move the Sorting Arrow from Left to Right side

2015-07-28 Thread Mohammed Sameen
Thanks Thomas for your reply i am able to do with this 
setSortIconStartOfLine  but having one more issue there is lot of space 
between the Label and icon its because of fixed inline styling(i can 
override this but cant have handle because of label length).

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


GWT Celltable-Sorting on Multiple Column

2015-07-28 Thread Mohammed Sameen


How to perform sorting on multiple column Using GWT Celltable. I didnt find 
any example code for this? See the below image

[image: enter image description here] <http://i.stack.imgur.com/8txUa.png>

I need to Perform sorting on multiple column.How to Achieve this using GWT 
Celltable any clue?

-- 
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: GWT CellTable-How to Move the Sorting Arrow from Left to Right side

2015-07-27 Thread Thomas Broyer
There's a setSortIconStartOfLine in AbstractHeaderOrFooterBuilder.

On Monday, July 27, 2015 at 11:42:42 AM UTC+2, Mohammed Sameen wrote:
>
> I Would like to move the sorting arrow from left to right side in the cell 
> table header which is shown in below image[image: enter image description 
> here] 
>
> Any Suggestion?
>

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


GWT CellTable-How to Move the Sorting Arrow from Left to Right side

2015-07-27 Thread Mohammed Sameen


I Would like to move the sorting arrow from left to right side in the cell 
table header which is shown in below image[image: enter image description 
here] 

Any Suggestion?

-- 
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: Celltable keep selection after updateRowData

2015-07-24 Thread Jens
setKeyboardSelectionPolicy(KeyboardSelectionPolicy.BOUND_TO_SELECTION)

should work. Keyboard selections are then the same as SelectionModel 
selections.

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


Re: Celltable keep selection after updateRowData

2015-07-24 Thread Manuel
I removed keyboard-styles from the css and keep the default selectionModel 
instead setting a singleSelectionModel to the celltable. Now it works...

Regards,
Manuel

-- 
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: Celltable keep selection after updateRowData

2015-07-24 Thread Manuel
I had a look at my styles for the celltable. It appears that after the 
reload, the celltable sets the following styles on the selected row:
.cellTableKeyboardSelectedRow, .cellTableSelectedRow

While clicking on another row the cellTableKeyboardSelectedRow is set to 
the new row, the cellTableSelectedRow stays on the old selection.

Since both styles look the same, it appears that there are 2 selected rows. 

I tried to set a NoSelectionModel, but I can still select rows via 
mouse/keyboard and both styles are still applied... 
Anyone know, whats the proper way to get a singleSelection in this 
cellTable?

Regards,
Manuel







Am Freitag, 24. Juli 2015 16:29:55 UTC+2 schrieb Manuel:
>
> Hi everyone,
>
> I use the gwt celltable and get a problem, when reloading data:
> Im using single selection model with it.
>
> So after the celltable is loaded the first time, the data is displayed (9 
> records). I select one row and reload the data via a button.
> The data gets fetch from server and updateRowData(0,receivedData) is 
> called.
>
> The new data is now displayed and the previously selected row is still 
> selected. Thats good.
> But when I select another row, the previously selected row stays selected 
> and the newly selected line is also selected. So it appears, there are 2 
> rows selected, even though I got a single selection model.
>
> Same workflow on the datagrid, do not cause this problem.
>
> Does anyone know, how to solve this?
> Thanks in advance.
>
> Regards,
> Manuel
>
>
>

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


Celltable keep selection after updateRowData

2015-07-24 Thread Manuel
Hi everyone,

I use the gwt celltable and get a problem, when reloading data:
Im using single selection model with it.

So after the celltable is loaded the first time, the data is displayed (9 
records). I select one row and reload the data via a button.
The data gets fetch from server and updateRowData(0,receivedData) is called.

The new data is now displayed and the previously selected row is still 
selected. Thats good.
But when I select another row, the previously selected row stays selected 
and the newly selected line is also selected. So it appears, there are 2 
rows selected, even though I got a single selection model.

Same workflow on the datagrid, do not cause this problem.

Does anyone know, how to solve this?
Thanks in advance.

Regards,
Manuel


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


CellTable Memory Leak in IE8

2015-07-23 Thread Harvard Pan
Hello,

Our company uses GWT 2.5.1-rc1 and many of our customers (healthcare) use 
IE8. We were hopeful that the memory leak in CellTable would have been 
addressed by the memory leak fix for FlexTable. That leak (Issue 6938 - 
https://code.google.com/p/google-web-toolkit/issues/detail?id=6938) was 
fixed in 2.6. After grabbing the fix and merging it into the 2.5.1-rc1 
code, we can confirm that FlexTable indeed is fixed and no longer leaking. 
However, we still have leaking resources in CellTable. I've written a small 
sample application to demonstrate the code that leaks. It's available on 
BitBucket for anyone to pull.

https://bitbucket.org/harvardpan/celltableleak/src/3eb0d9941df6fe40b4b09eef0ce1968c6db90da3/src/com/healthfortis/sample/celltableleak/client/CellTableLeak.java?at=master

The root cause of 6938 was described in a Microsoft Connect 
page: 
http://connect.microsoft.com/IE/feedback/details/790340/memory-leak-in-ie9-ie10-tables
In it, it describes multiple reasons for the leak, including:

   - rows with ids
   - cells with ids
   - code that references a row.cells expression, even if it does not store 
   or use the result (that's the fix in 6938)
   - code that does not set row.innerHTML to null after invoking 
   table.deleteRow() for the row.

I imagine that the CellTable leak is related to one of the conditions 
above. I suspect the last one as I never do actually see any setting to 
null of innerHTML in the javascript. Wanted to check in to see if anyone on 
this forum had any ideas on where we could investigate next.

Thanks!
Harvard

-- 
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: Injecting JSNI(Datatables.net) to GWT CellTable to hide/show rows

2015-06-23 Thread Mohammed Sameen
Finally i did it by injecting plain javascript into gwt celltable..

private static native void loadDataJS_main(GWTExpandCollapse gwt)/*-{

$wnd.$(function() {
var inc = 0;
$wnd.jQuery('#btnId').click(function() {
 inc++;
 $wnd.$("#example tbody tr").each(function(i, object) { 
console.log("inc vlaue"+inc)
  if(inc%2==0){ 
  $wnd.$('#example tbody .dispId').remove();
  console.log("hide");
  }else{
  var safeHtml= 
g...@com.my.sample.client.gwt.GWTExpandCollapse::getRowValue(I)(i); 
 $wnd.$(object).after(safeHtml);
 console.log("show");
  }
});

});
});

}-*/;

-- 
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: Injecting JSNI(Datatables.net) to GWT CellTable to hide/show rows

2015-06-23 Thread Mohammed Sameen
Finally i did by injecting plain javascript into gwt celltable..

private static native void loadDataJS_main(GWTExpandCollapse gwt)/*-{

$wnd.$(function() {
var inc = 0;
$wnd.jQuery('#btnId').click(function() {
 inc++;
 $wnd.$("#example tbody tr").each(function(i, object) { 
console.log("inc vlaue"+inc)
 if(inc%2==0){ 
 $wnd.$('#example tbody .dispId').remove();
 console.log("hide");
 }else{
 var safeHtml= 
g...@com.my.sample.client.gwt.GWTExpandCollapse::getRowValue(I)(i); 
 $wnd.$(object).after(safeHtml);
 console.log("show");
 }
});

});
});

}-*/;

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


Injecting JSNI(Datatables.net) to GWT CellTable to hide/show rows

2015-06-22 Thread Mohammed Sameen
I am using Datatables js(using JSNI) for showing and hiding the row 
information for my table(which is created using Google web toolkit-gwt 
celltable) link(https://www.datatables.net/examples/api/row_details.html).My 
requirement is on click of Button i need to iterate the table and show 
/hide the information but its not working See below is my code

function format(d) {
  return ''
+ ''
+ 'Full name:'

+ '' + '';}



$wnd.$(function() {

var table = $wnd.$('#example').DataTable({
"columns" : [ {

"orderable" : false,
"data" : null,
"defaultContent" : ''
}, {
"data" : "firstName"
}, {
"data" : "middleName"
}, {
"data" : "lastName"
}, {
"data" : "age"
}, {
"data" : "empId"
}, {
"data" : "address"
} ],
"order" : [ [ 1, 'asc' ] ]
});

$wnd.jQuery('#btnId').click(function() {



$wnd.$("#example tbody tr").each(function(i) {  
var rowNo = table.row(i);

if (rowNo.child.isShown()) {
// This row is already open - close it
console.log("hide-->");
rowNo.child.hide();
} else {
console.log(rowNo.data());
  rowNo.child( format(rowNo.data()) ).show();
}
});
});
});


and finally i saw one difference is that the table which is created using GWT 
generates the table structure in this format. xxxyyy

since text will be there inside div which is inside td.How to solve this 
issue?How to show/hide the row inside the table?any help?

or Any other way to develop this feature using 
GWT(https://www.datatables.net/examples/api/row_details.html)?

-- 
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 implement Expandable-Collapsible Rows in CellTable ?

2015-05-07 Thread Larry L
Hi,

I have a follow up question about this CustomDataGrid example.
My DataGrid is enabled for selection. So I can select/highlight the major 
rows.
But how do I get the selected minor-rows? 

for example, my code is like this:
SelectionModel model = dataGrid.getSelectionModel();
But the minor rows are not in my SelectionModel.

Thanks,
Larry



On Sunday, August 4, 2013 at 6:58:02 PM UTC-4, Thomas Broyer wrote:
>
> Have a look at 
> http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid
> Spoiler alert: not straightforward.
>
> On Sunday, August 4, 2013 8:13:38 PM UTC+2, Jimmy Abraham wrote:
>>
>> Hi all,
>> please help me implement Collapsible Rows in CellTable.../is it already 
>> available in gwt?
>> thanks in advance 
>> jimmy
>>
>> On Saturday, 5 February 2011 00:47:30 UTC+4, Thomas Broyer wrote:
>>>
>>>
>>> On Friday, February 4, 2011 4:33:41 AM UTC+1, zixzigma wrote:
>>>>
>>>> I know that I am not doing things the right way,
>>>> do you have any tips on how to implement this feature ? 
>>>> Expandable/Collapsible Rows inside a CellTable ?
>>>>
>>>
>>> I would try doing it without widgets, with a CellList instead of a 
>>> CellTable (so that 1 row == 1 "cell", and the "second row" is just the cell 
>>> that expands; very useful I guess when you want "col span"), witha 
>>> CompositeCell (and using an inner table if possible, or just styling, to 
>>> align "columns").
>>>
>>> do you think this feature will be added in later releases of GWT ?
>>>>
>>>
>>> Yes, it will. 
>>>
>>

-- 
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 provide cellformatter in gwt Celltable?

2015-04-14 Thread Juan Pablo Gardella
See CellTable
<http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/cellview/client/CellTable.html>javadoc
and see how column's value are defined. You can put the format that you
want there.

On 14 April 2015 at 10:34, Abdul  wrote:

> In Celltable i want to set Cell formatter for Column,how to achieve
> this?Like I am getting some record from database say Column amount contains
> "1000" i want to display as "$1000" or want to apply some styling for
> column.Any Idea on this?
>
> --
> 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.


How to provide cellformatter in gwt Celltable?

2015-04-14 Thread Abdul
In Celltable i want to set Cell formatter for Column,how to achieve 
this?Like I am getting some record from database say Column amount contains 
"1000" i want to display as "$1000" or want to apply some styling for 
column.Any Idea on this?

-- 
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: Not Able to attach events on CellTable using native Javascript

2015-04-07 Thread Raphael Garnier
Hi,

jquery works on DOM elements.  When you're attaching the celltable there is 
a render process that constructs the DOM. You should call jquery only when 
"all is done".
Usually, I use the scheduleDeferred method of Scheduler to do that.

Furthermore, you should take a look at GQuery, so you could do jquery in 
java code (no JSNI).

An example from my app :

Scheduler.get().scheduleDeferred(new ScheduledCommand() {
  @Override
  public void execute() {
   list.getElement().appendChild(sortElement);
   gqCells = $(list).find(".cellListEvenItem, .cellListOddItem");
   gqCells.addClass(sortHandlerAppearance.css().sortedElement());
   gqCells.each(new com.google.gwt.query.client.Function() {
   ...




Le mercredi 1 avril 2015 14:57:12 UTC+2, Ramesh a écrit :
>
> Hi 
> I am attaching events on cell table data using native javascript(jquery), 
> but the events are not binding and what i have discovered is, If I use 
> these along with setTimeout(..,1) function, the events are binded and 
> working properly.
>
> This is the code i have used in UIBinder's java file.
>@Override
> protected void onAttach() {
> super.onAttach();
> clearRequiredValidatorOnNew();
> }
> 
>   $wnd.setTimeout(function() {
>$wnd.jQuery('.icon-pencil').click(function(e) {
> if ($wnd.jQuery(this).text().trim() == ''){
> $wnd.jQuery(this).closest('form').find('.reqField').each(function() {
> $wnd.jQuery(this).css('background','transparent');
> $wnd.jQuery(this).prev('label').removeClass('text-warning');
> $wnd.jQuery(this).prev('label').children('span.reqIndic').css('visibility', 
> 'hidden');
> });
> }
> });
> }, 1500);
> Here the class .icon-pencil will reside in CellTable(data).
>
> Please suggest how i can use this without timeout.
>

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


Not Able to attach events on CellTable using native Javascript

2015-04-01 Thread Ramesh
Hi 
I am attaching events on cell table data using native javascript(jquery), 
but the events are not binding and what i have discovered is, If I use 
these along with setTimeout(..,1) function, the events are binded and 
working properly.

This is the code i have used in UIBinder's java file.
   @Override
protected void onAttach() {
super.onAttach();
clearRequiredValidatorOnNew();
}

  $wnd.setTimeout(function() {
   $wnd.jQuery('.icon-pencil').click(function(e) {
if ($wnd.jQuery(this).text().trim() == ''){
$wnd.jQuery(this).closest('form').find('.reqField').each(function() {
$wnd.jQuery(this).css('background','transparent');
$wnd.jQuery(this).prev('label').removeClass('text-warning');
$wnd.jQuery(this).prev('label').children('span.reqIndic').css('visibility', 
'hidden');
});
}
});
}, 1500);
Here the class .icon-pencil will reside in CellTable(data).

Please suggest how i can use this without timeout.

-- 
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: Hide Column in CellTable

2015-03-24 Thread Jens
I see. On the  element you need to use "visibility:collapse" to hide 
the entire column. However browser support is pretty poor for it, seems to 
only work well in Firefox.

The other thread you have linked pretty much has all information available 
to solve your issue. Basically you have to show/hide each cell in a column 
like the guy in the last post did with JQuery.

If the number of columns in your table is fixed and known then you could 
also use the following css (example for 3 columns):

/* thead: th cells */
.hide-col-1 th:nth-of-type(1),
.hide-col-2 th:nth-of-type(2),
.hide-col-3 th:nth-of-type(3),
/* tbody/tfoot: td cells */
.hide-col-1 td:nth-of-type(1),
.hide-col-2 td:nth-of-type(2),
.hide-col-3 td:nth-of-type(3) {
display:none;
}

Then you can add/remove "hide-col-1" to the table and the corresponding 
column will be hidden. Here is a jsfiddle that hides the second 
column: http://jsfiddle.net/odbqq04x/

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


Re: Hide Column in CellTable

2015-03-24 Thread Abdullah
Hi Jens,
Thanks for your reply,
It is normal CSS only,not cssResource see the below snapshot

<https://lh5.googleusercontent.com/-2yVSY7erPy8/VRGlUc_O1nI/AIM/t_zT__44McU/s1600/CellTable.png>
CSS which are applied to the celltable column is appear on colgroup. Any 
Clue?


Hopefully it is a normal CSS file and not a CssResource? Check your 
browsers dev tools to see what is going on with your css.

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


Re: Hide Column in CellTable

2015-03-24 Thread Jens

>
>
> *cellTable.addColumnStyleName(1, "hide"); // added stylename to the Column 
> with index 1*
> *CSS:*
> Added this class in stylesheet
>  * .hide* {
> display: none;
> }   
>


Hopefully it is a normal CSS file and not a CssResource? Check your 
browsers dev tools to see what is going on with your css.

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


Re: Hide Column in CellTable

2015-03-24 Thread Abdullah
>From the below thread
https://groups.google.com/forum/#!searchin/google-web-toolkit/hiding$20column$20in$20celltable/google-web-toolkit/3XFe2jwI2ks/E_hDjEej5E8J

 Lot of suggestion is to use* add/removeColumnStyleName* but i used the 
same in my code but still not able to hide the column.See the below code 
snippet..

*Code:*
TextColumn empIdTxt = new TextColumn() {
@Override
public String getValue(ContactInfor object) {
return object.empId;
}
};
cellTable.addColumn(empIdTxt, "EMPLOYEE ID");

TextColumn addressTxt = new TextColumn() {
@Override
public String getValue(ContactInfor object) {
return object.address;
}
};
cellTable.addColumn(addressTxt, "ADDRESS");
cellTable.setRowData(loadContactInfo());
*cellTable.addColumnStyleName(1, "hide"); // added stylename to the Column 
with index 1*
*CSS:*
Added this class in stylesheet
 * .hide* {
display: none;
}   
Is any other think is missed out here?

On Tuesday, March 24, 2015 at 4:13:55 PM UTC+5:30, Abdullah wrote:
>
> Hi,
> How to hide the columns in gwt Cell table?I need column for grouping 
> purpose but don't want to show in table.Is there any way to hide..Any clue?
>

-- 
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: Hide Column in CellTable

2015-03-24 Thread Abdullah
>From the below thread
https://groups.google.com/forum/#!searchin/google-web-toolkit/hiding$20column$20in$20celltable/google-web-toolkit/3XFe2jwI2ks/E_hDjEej5E8J

 Lot of suggestion is to use* add/removeColumnStyleName* but i used the 
same in my code but still not able to hide the column.See the below code 
snippet..

*Code:*
TextColumn empIdTxt = new TextColumn() {
@Override
public String getValue(ContactInfor object) {
return object.empId;
}
};
cellTable.addColumn(empIdTxt, "EMPLOYEE ID");

TextColumn addressTxt = new TextColumn() {
@Override
public String getValue(ContactInfor object) {
return object.address;
}
};
cellTable.addColumn(addressTxt, "ADDRESS");
cellTable.setRowData(loadContactInfo());
*cellTable.addColumnStyleName(1, "hide"); // added stylename to the Column 
with index 1*
*CSS:*
Added this class in stylesheet
 * .hide* {
display: none;
}   
Is any other is missed out here?

On Tuesday, March 24, 2015 at 4:13:55 PM UTC+5:30, Abdullah wrote:
>
> Hi,
> How to hide the columns in gwt Cell table?I need column for grouping 
> purpose but don't want to show in table.Is there any way to hide..Any clue?
>

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


Hide Column in CellTable

2015-03-24 Thread Abdullah
Hi,
How to hide the columns in gwt Cell table?I need column for grouping 
purpose but don't want to show in table.Is there any way to hide..Any clue?

-- 
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: Wrapping JavaScript into GWT CellTable

2015-03-23 Thread Abdullah
Hi Thomas,
 Sorry, the Suggestion which you are given is working fine I Use "*flush()*" 
statement after loading data 
 
table.setRowData(loadContactInfo());  
  *  table.flush();*//flush force to render immediately
loadGridData();

 private List loadContactInfo() {
// To load data
List lstContact = new ArrayList();

lstContact.add(new ContactInfor("XXX", "YYY", "t", "26", "0300",Big 
Street"));
return ContactInfor;
}
 
public static native void loadGridData()/*-{
   //calling js for grouping functionality which contains table tr 
element
 }-*/; 

Thanks Thomas for your valuable suggestion.

Hi Thomas,
> Thanks for your reply, I tried the both approaches but still I am getting 
> the same JSO exception(undefined function) and I tried with adding Timer 
> then its working but this is not a good solution with that i cannot 
> proceed.Any Suggestion.
>
> On Thursday, March 19, 2015 at 12:14:43 PM UTC+5:30, Abdullah wrote:
>
>> Use a scheduleFinally command, or call flush() to force immediate 
>> rendering: 
>> http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/cellview/client/AbstractCellTable.html#flush()
>>  
>>
>

-- 
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: Wrapping JavaScript into GWT CellTable

2015-03-20 Thread Abdullah

Hi Thomas,
Thanks for your reply, I tried the both approaches but still I am getting 
the same JSO exception(undefined function) and I tried with adding Timer 
then its working but this is not a good solution with that i cannot 
proceed.Any Suggestion.
On Thursday, March 19, 2015 at 12:14:43 PM UTC+5:30, Abdullah wrote:
>
> Use a scheduleFinally command, or call flush() to force immediate 
> rendering: 
> http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/cellview/client/AbstractCellTable.html#flush()
>  
>
>

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


Wrapping JavaScript into GWT CellTable

2015-03-20 Thread Thomas Broyer
Use a scheduleFinally command, or call flush() to force immediate rendering: 
http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/cellview/client/AbstractCellTable.html#flush()

-- 
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: Wrapping JavaScript into GWT CellTable

2015-03-19 Thread Abdullah
Is there any other way to Handle?

On Thursday, March 19, 2015 at 12:14:43 PM UTC+5:30, Abdullah wrote:
>
> Hi,
> In GWT Cell Table I am wrapping jquery functionality (like grouping) Using 
> JSNI. But its throwing JavaScriptObject Exception(function is undefine).I 
> am calling this JSNI method once after the data is loaded
>
>
> *table.setRowData(loadContactInfo());  //To Load Data*
> *loadGridData();//Calling JSNI For Grouping *
>
>
>
> * private List loadContactInfo() {// 
> To load data List lstContact = new ArrayList(); 
> lstContact.add(new ContactInfor("XXX", "YYY", "t", "26", 
> "0300",Big Street"));return ContactInfor;} 
> public static native void loadGridData()/*-{   //calling js for 
> grouping functionality which contains table tr element }-*/; *
>
> Since its taking some few millisecond to redraw the cell table before that 
> itself the JSNI method is called which throws JSO exception.Is there any 
> other to wrap the JS into Cell table after the data gets loaded and 
> Rendered? Any Suggestion on this?
>
>

-- 
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: Wrapping JavaScript into GWT CellTable

2015-03-19 Thread Eric Ponthiaux

>
> Maybe that using a "deferred"  or  a "fixed delay" function call would 
> resolve your problem .
>

http://www.gwtproject.org/javadoc/latest/com/google/gwt/core/client/Scheduler.html


 


   
 

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


Wrapping JavaScript into GWT CellTable

2015-03-18 Thread Abdullah
Hi,
In GWT Cell Table I am wrapping jquery functionality (like grouping) Using 
JSNI. But its throwing JavaScriptObject Exception(function is undefine).I 
am calling this JSNI method once after the data is loaded


*table.setRowData(loadContactInfo());  //To Load Data*
*loadGridData();//Calling JSNI For Grouping *



* private List loadContactInfo() {// 
To load data List lstContact = new ArrayList(); 
lstContact.add(new ContactInfor("XXX", "YYY", "t", "26", 
"0300",Big Street"));return ContactInfor;} 
public static native void loadGridData()/*-{   //calling js for 
grouping functionality which contains table tr element }-*/; *

Since its taking some few millisecond to redraw the cell table before that 
itself the JSNI method is called which throws JSO exception.Is there any 
other to wrap the JS into Cell table after the data gets loaded and 
Rendered? Any Suggestion on this?

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


Add label next to SelectAll Checkbox in GWT CellTable column header

2015-03-06 Thread BM
I have a cell table and first column is row selection made of Checkboxes. 
The column header is custom SelectAll (Checkbox). Currently that column 
header only shows checkbox and the selectAll functionality works fine. 

What I want is to have a label next to SelectAll checkbox to basically 
refer that column header better. So it should look like --> [] Select All 

where [] is custom Select All header. 

Is there way to do that?

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


Grouping in celltable?

2015-03-06 Thread Abdullah
Hi,
Is there any way how to do grouping in GWT Celltable or Data Grid?Any 
example code?

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


Difference between CellTable and DataGrid?

2015-03-03 Thread Mohammed
Hi,
What is the difference between cell table and data grid? How to do grouping 
,Is it possible to have grouping in both cell table and data grid?

-- 
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: Adding Handler for Celltable ColumnField

2015-03-02 Thread Mohammed
Any Suggestion?

On Monday, March 2, 2015 at 11:21:35 AM UTC+5:30, Mohammed wrote:
>
> Hi,
> How to add Handler for Cell Table *Column Field* ?
>
> *See the Below Code snippet:*
>
> *TextColumn firstNameTxt = new 
> TextColumn() {*
> * @Override*
> * public String getValue(ContactInfor object) {*
> * return object.firstName;*
> * }*
>
> * };*
> *cellTable.addColumn(firstNameTxt, "FIRST NAME");*
>
> *TextColumn middleNameTxt = new 
> TextColumn() {*
> * @Override*
> * public String getValue(ContactInfor object) {*
> * return object.middleName;*
> * }*
> * };*
> *cellTable.addColumn(middleNameTxt, "MIDDLE NAME");*
>
> How to add handler for *firstNameTxt* column in outside of this class.I 
> have access of this column Field but i dont no how add handler for this 
> column?Any suggestion?
>

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


  1   2   3   4   5   6   7   8   9   10   >