GithubHelp home page GithubHelp logo

google-web-toolkit-incubator's People

Watchers

 avatar

google-web-toolkit-incubator's Issues

Feature request for StyleInjector

 ImmutableResourceBundle and StyleInjector work great for reducing css and
images requests for the referenced images. However startup time suffers on
large style sheets while the runtime goes through and replaces all the
%<somevalue>% tokens.

To eliminate this problem I am currently using firebug or a similar tool in
ie to copy the generated stylesheet content and  paste it into a file which
gets included in my main jsp on the server side (i have to check for
user-agent type to determine which generated style sheet to use since ie
and firefox generate differnt style sheets ) but this is a pretty hacky
work around.

What would be really nice is if the gwt compiler could generate the styel
sheets to static files like gemerated-stylesheet-ie.cache.css and
gemerated-stylesheet-gecko.cache.css and then the style injector figures
out which  static file to reference. This would greatly improve startup
time when using the style injector. 

Original issue reported on code.google.com by [email protected] on 11 Jan 2008 at 7:11

TableListener on ScrollPanel show row = (row + 1) when fired

What steps will reproduce the problem?
1. On a ScrollPanel adding a TableListener on the ExtendedGrid.

When is fired onCellClicked seems int row result is row + number of row
headers ? Well only I have 1 header row, the result for me is row + 1;

What is the expected output? What do you see instead?
It seems strange that if ExtendedGrig.getRowCount() return N rows on
onCellClicked shows with N+1 rows or N+header rows ( I'm not sure how adds
internally)

What version of the product are you using? On what operating system?
GWT 1.4.6 & Linux ubuntu Feisty

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Oct 2007 at 10:07

doc on making incubator jar files

I was hoping someone might give some instructions on the wiki on how to
make jar files of the incubator project that I could include in my GWT
applet.  I got the package working fine by including the source into my
tree but it would be much easier to handle if I could generate a jar file
of this work.  I tried copying all the src directory tree into the mirror
sources dir to get the .java files with the .class  files.  However, this
file just seems to break everything when I put it in the lib folder.

Original issue reported on code.google.com by [email protected] on 2 Oct 2007 at 10:40

Make Window constructor protected

What steps will reproduce the problem?
1. Ext 2.0 introduces the Window class
2. Therefore GWT's Window class is extended in util class BrowserWindow
3. Due to GWT's Window class's private constructor, extending is not possible

What is the expected output? What do you see instead?

I should be able to:

BrowserWindow extends Window { ... }

and then

if (left + window.getOffsetWidth() > BrowserWindow.getClientWidth()) {
    left = BrowserWindow.getClientWidth() - window.getOffsetWidth();
}
window.moveTo(left, top);

What version of the product are you using? On what operating system?

1.5 (SVN)

Please provide any additional information below.

GWT-Ext 2.0 is not publicly available yet.

Original issue reported on code.google.com by [email protected] on 7 Dec 2007 at 1:43

ScrollTable UI defect on firefox when adds some widget ( HorizontalPanel or Flextable for example )

What steps will reproduce the problem?
1. Add on dataTable row some widget like HorizontalPanel or FlexTable that
their HTML implementation is <table>...</table> type.

What is the expected output? What do you see instead?
It appears an extra space at the top left corner, generated by combination
of the <span style="padding: 0px;"> <table etc...

What version of the product are you using? On what operating system?
GWT 1.4.6, Ubuntu Feisty and friefox 1.5 and 2.0.0.6

Please provide any additional information below.
To solve it if <span style="padding: 0px;"> is changed to <div
style="padding: 0px;"> then runs propertly.

Other solution is to put a white-space: no-wrap; changind the style like
this <span style="padding: 0px; white-space: nowrap;"> but this solution
crashes with general use of method
dataTable.getCellFormatter().setWordWrap(row,column,boolean);




Original issue reported on code.google.com by [email protected] on 23 Oct 2007 at 6:26

Attachments:

non-static request and response classes

It would be convenient to be able to be able to embed information in the 
TableModel.Response and 
TableModel.Requst class stored in the TableModel. This would be possible if the 
Request and 
Response classes weren't static.  

Original issue reported on code.google.com by [email protected] on 23 Oct 2007 at 9:07

PagingScrollTableDemo fails when trying to sort a column.

What steps will reproduce the problem?
1. Run PagingScrollTableDemo with gwt from trunk, instead of current 1.4 distro
2. Try to sort any column
3. An 'RPC failure' occurs.

What is the expected output? What do you see instead?
The table should sort the column and render the data.
Instead, an 'RPC failure' happens

What version of the product are you using? On what operating system?
Gwt incubator from svn, Gwt trunk from svn (1.5 'preview')

Please provide any additional information below.
Stack trace excerpt:
Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'com.google.gwt.widgetideas.table.client.TableModel$ColumnSortInfo' was not
included in the set of types which can be deserialized by this
SerializationPolicy. For security purposes, this type will not be deserialized.

Original issue reported on code.google.com by [email protected] on 24 Jan 2008 at 1:07

build file needs update to include *.gwt.xml files

What steps will reproduce the problem?
1. build using ant script doesn't create a usable jar, jar is missing
*.gwt.xml files (see second part of suggestion below)

As well, I think a comment in the build to tell user to update the
reference to their jar or to use an environment variable would be helpful.

--snip
as suggested by sakha:

changed line 21 from
       <classpath location="${gwt.location}/gwt-dev-linux.jar"/>
to
       <classpath location="${gwt.location}/gwt-dev-windows.jar"/>
this is for build under windows

AND
changed line 25 from :
          <include name="**/public/**"/>
to :
          <include name="**/*"/> 
--snip

I ran into same issue and fixed as suggested and worked

see:
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thr
ead/0922aa3d2e6557e6/6df0444b045f205e#6df0444b045f205e

Original issue reported on code.google.com by [email protected] on 14 Dec 2007 at 2:55

Giving exception while raise request to server

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Silpe out put we are expecting like getting hello from server. But it is 
giving java.lang.NumberFormatException: For input string: "" in server log 
files.

What version of the product are you using? On what operating system?

gwt-windows-1.3.3. OS- Windows XP

Please provide any additional information below.

 I am sending the file zip file and log file as a attachment. Please 
responde as soon as possible.


Original issue reported on code.google.com by [email protected] on 21 Sep 2007 at 9:54

Attachments:

RFE: Change build.xml to force javac to target 1.5

The incubator's build.xml should specify source and target attributes in
the <javac> ant target to target 1.5 class files outputting, since class
files generated with jdk > 1.5 will not run in a jdk5 environment. Since
@Override annotations are also within the src code, the target should also
indicate this.

The only thing to change is the <javac> target:

<javac compiler="javac1.4" listfiles="true" destdir="build/out"
source="1.5" target="1.5">

Original issue reported on code.google.com by [email protected] on 30 Jan 2008 at 11:29

DatePicker.showWeekOfYear(true) is badly broken

What steps will reproduce the problem?
calling showWeekOfYear(true) on datepicker will cause an index out of bounds 
exception.

This is caused by LocaleCalendarUtil.weekOfYear() using i as an index for the 
weekOfYear array.
i starts at a negative value and will immediately cause the exception.

Additionally, the weekOfYearFormatter is using the pattern "w" to get the week 
of year, which is 
not a supported pattern in GWTs implementation of DateTimeFormat.

Also, the calculations to find the weeks is an abuse of the Date.setDate() 
method. the loop is 
attempting to set the date using numbers outside of the 1-31 range (for the 
first 1 or 2 weeks, 
and the last week). This seems to work for the negative numbers, but not for 
the numbers 
greater than the last day of the month. EXCEPT, when the first negative number 
is used, the date 
is rolled to the previous month (and subsequently possibly the second previous 
month) so the 
algorithm doesn't really work anyway.

Something like: 
  public String[] weekOfYear() {

    String[] weekOfYear = new String[7];
    int index = 0;
    Date date;
    for (int i = 1 - prevMonthDays;
    i < currMonthSize + nextMonthDays;
    i += 7) {
      date = (Date)this.clone();
      date.setDate(i);
      weekOfYear[index++] = weekOfYearFormatter.format(date);
    }

    return weekOfYear;
  }
works better, but still fails for the weeks landing in "nextMonth", and doesn't 
address the week 
of year "w" formatting issue.



Original issue reported on code.google.com by [email protected] on 20 Nov 2007 at 11:44

Load Error handeling in TableController

The TableController should allow one to handle rpc load errors.  

I would implement this in the following way:
The TableController should be able to fire an extra event
onLoadError(Throwable error).  This would be triggered by an extra method
in the Callback function in addition to onRowsReady, say call it
onRequestFailure(Throughable caught).  This method would be triggered when
the AsyncCallback returned onError(Throwable error).  In this way, errors
could be propagated up through TableController events.  

Original issue reported on code.google.com by [email protected] on 31 Oct 2007 at 8:07

The sorting in the PagingScrollTable demo shows a js error in ie6

What steps will reproduce the problem?
1. go to
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/PagingScrollTa
ble/index.html
 using ie6
2. click on a column to sort it

What is the expected output? What do you see instead?
The table orderer by the clicked column 


What version of the product are you using? On what operating system?
ie6, windows xp, gwt 1.4.61, incubator.jar 01-21-08

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Jan 2008 at 7:26

FirstTime ScrollTable data empty, ordering hangs error

What steps will reproduce the problem?
1. Create a ScrollTable without data and try to order.

On my case I test with two ScrollTable, one empty and other with data to
move values from one to other. If someone tries to order the empty
ScrollTable it crashes, but if some row is added and removed, since to
remove all, this not crashes.

GWT 1.4.6, Ubuntu Feisty

Please provide any additional information below.

The exception escaped is:

[ERROR] Uncaught exception escaped
java.lang.IndexOutOfBoundsException: Column index: 0, Column size: 0
    at
com.google.gwt.widgetideas.table.client.ExtendedGrid.sortColumn(ExtendedGrid.jav
a:994)
    at
com.google.gwt.widgetideas.table.client.ExtendedGrid.sortColumn(ExtendedGrid.jav
a:977)
    at
com.google.gwt.widgetideas.table.client.ScrollTable.onBrowserEvent(ScrollTable.j
ava:1116)
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1265)
    at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1244)
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1211)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:78)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5273)


I think on line 1108 "if (sortingEnabled) {" could be some control about
dataTable numColumns ( special case is not initializated ).

An easy way to solve it on my test code is to add, and remove at init a
column, but seems not to be a pleasant solution.

Original issue reported on code.google.com by [email protected] on 18 Oct 2007 at 2:04

Event handling for custom widgets in BulkLoadedTable

What steps will reproduce the problem?
1. Create a custom widget which can process some events. For example I have
ImageCheckbox which displays different images depending on its state.
2. Create BulkLoadedTable and insert your custom widget into any table
cell. As we have only StringCellRenderer for Bulk Loaded tables we have to
convert any widgets into String in renderCell method to be able to render them.
3. Run your code.

As a result such table will display all your custom widgets fine.
But the problem is that no events are being passed to such widgets. So you
have only some kind of read-only ImageCheckboxes which can not react to any
events.

If we do not use BulkRenderer than all just works fine but rendering is
very slow (comparing to Bulk loaded table). 

I tested this using GWT 1.4.61 and the latest GWT Incubator sources.

Are there any ways to get this working? 

Thanks,
Leonid

Original issue reported on code.google.com by [email protected] on 19 Dec 2007 at 7:05

TableModel.Response is not Serializable

When you pass a TableModel.Response through an RPC the Iterator flags the error:

[ERROR] Type 'java.util.Iterator' was not serializable and has no concrete 
serializable subtypes

It seems like this class should be made abstract and the Iterator should be 
removed because there 
is no way to know what type of data will be sent in the table implementation.

I guess the work around is don't inherit your Response methods from 
TableModel.Response but this 
means rewriting the callback function interface and fudging the inheritance 
from 
MutableTableModel.

Original issue reported on code.google.com by [email protected] on 10 Oct 2007 at 5:22

ScrollTable: Put a ScrollTable into a HorizontalSplitPanel and it sizes incorrectly (IE)

What steps will reproduce the problem?
1. Create a HorizontalSplitPanel.  Put whatever in the left side and then
put a ScrollTable into the right panel.
2. Set table.setResizePolicy(ScrollTable.RESIZE_POLICY_FILL_WIDTH);
3. Compile and look at the table in IE

What is the expected output? What do you see instead?
Mozilla works fine, in Internet Explorer 7 the ScrollTable makes an extra
space at the right hand side of the table the size of the Scrollbar, and
the bottom horizontal scrollbar of the splitpanel is enabled with the extra
space.


What version of the product are you using? On what operating system?
Incubator latest trunk, GWT trunk.


Please provide any additional information below.
Putting a SimplePanel wrapper doesn't seem to help.

Original issue reported on code.google.com by [email protected] on 28 Jan 2008 at 9:52

ScrollTable: If ScrollTable has a bottom border, it begins to grow about 1 pixel a second in Firefox.

What steps will reproduce the problem?
1. Create a ScrollTable
2. Set the following css
.gwt-ScrollTable {
    width: 100%;
    height: 100%;
    border-bottom: 1px solid #CCCCCC;
}
3. Compile and watch in Firefox

What is the expected output? What do you see instead?
The table begins to grow 1 pixel at a time.


What version of the product are you using? On what operating system?
GWT Trunk and Incubator Trunk


Please provide any additional information below.
The Element that is growing is the data table wrapper.

Original issue reported on code.google.com by [email protected] on 25 Jan 2008 at 6:15

implementation sugestions

Its not clear how the model controller view system should be implemented. 
A simple diagram or documentation would be useful.  I have been implementing 

Server
Service <- rpc -> Model, handles rpc calls ->controller <- view

This leads to a fair bit of redundancy in code.  It seems a more efficient
design might be to leave the model on the server side and use rpc's to
interface the controller with the model. The controller has already been
designed with cashing, so that would make sense. 

Original issue reported on code.google.com by [email protected] on 16 Oct 2007 at 4:32

ScrollTable with Fill Width creates extra space in IE

What steps will reproduce the problem?
1. Run the attached file
2. Note that the horizontal scrollbar at the bottom of host mode (ie7)
is enabled and there is extra space despite the fact that FillWidth is enabled.

What is the expected output? What do you see instead?
FillWidth should create no horizontal scrollbar

What version of the product are you using? On what operating system?
trunk on all counts, windows.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 30 Jan 2008 at 5:14

Attachments:

The paging in the PagingScrollTable demo shows a js error in ie6

What steps will reproduce the problem?
1. go to
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/PagingScrollTa
ble/index.html
with ie6
2. go to the last page
3. go to the first page

What is the expected output? What do you see instead?
Expected output
see the first page correctly

Actual output
shows a js error

What version of the product are you using? On what operating system?
ie6, win xp, gwt 1.4.61 and incubator 01-21-08

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Jan 2008 at 7:29

Wish list: session managment

When you are using a servlet to handle multiple requests from different
users you can run into this problem:

User 1: requests a table with query A. 
Servlet Response: The first 50 rows of the results of query A are sent to
user 1.
User 2: requests a table with query B.
Servlet Response: The first 50 rows of the results of query B are sent to
user 1.

Now the first problem comes when User 1 requests the next page of rows
50-100.  How does the servlet know if its dishing up results from query A
or query B?  Then there is the second problem: how can it dish up multiple
requests simultaneously in a scalable way?

I think the first problem should be addressed by the table model on the
server side.  The second problem is not really GWT's problem but the first
problem should be solved in a way that facilitates the developer's solution
to the second problem.  

I'm not an expert at solving these problems but this is how I would do it:

So I would build my table model as a servlet.  The servelt would hash a
state object that would tell the servlet which query it was serving up
results from.  For every initial database query a new state would be
created and hashed.  For every rows request of that query, the state would
be looked up in the hash.  

I would use the session id in the http request header as a key for the
hash.  I think this should stay constant for each session.  In GWT this is
done by:

  getThreadLocalRequest().getSession()

In this way the state of the system could be determined.

The question now comes, what is the state object? 

Possible answers:
1. The query structure used to make the initial call to the database.
If this is the case a new query would have to be made to the database each
time the user hit a next button.  This could be bad, but hibernate does
table cashing so perhaps its not so bad (if you use hiberante).

2. The query result.  This could get very big.  Perhaps not a great idea.  

3. Some other object, I belive hiberante has something called
"conversations" to preserve these kinds of things.   

Because there are multiple ways of solving this problem it would probably
best to keep the sate object generic and let the user set it.  

However, the point that these objects could be very large leads to another
problem: How do you know when the keys should be disposed of?  I think the
table model could provide a way to remove old state objects from the hash
table.  You could store a time stamp with the state object in the hash each
time the state is accessed.   Then you could scan the hash table for
expired state objects at regular intervals and remove old ones.  

Original issue reported on code.google.com by [email protected] on 19 Oct 2007 at 3:04

Feature: SelectionGrid should not highlight selected rows when you move over them.

What steps will reproduce the problem?
1. When you select a row using a selection grid, the row still has the same
formatting when you move over it as when it's not selected.

What is the expected output? What do you see instead?
If a row is selected it should not highlight when you move over it.

Every person I've tested this with finds it unintuitive to have the row not
change color when you click on it (because your hovering over it).  They
then click on it 5 or 6 times trying to make it select before moving the
mouse and realizing its already selected.

Either by default selected rows should not highlight, or there should be an
option to enable it.

Thanks.


Original issue reported on code.google.com by [email protected] on 1 Feb 2008 at 7:54

Instant hosted mode support

As per:
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thr
ead/1edeb4f7f461ddab/bbcbab71b806354a#bbcbab71b806354a

For release after 1.5, support of customized class loading to allow for
Javarebel and the like.


Original issue reported on code.google.com by [email protected] on 27 Jan 2008 at 12:59

ScrollTable enhancement, add setUserObject method

What steps will reproduce the problem?
1. Like on TreeItem with setUserObject method it'll be so useful to have
some method like this for each row, because if not to control extra row
values ( Object ) it's necessari to create a external data List with this
objects and link this information with one hidden value column. It'll be
really great to link internally directly.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Oct 2007 at 8:07

missing default constructor, and not implements isSerializable

What steps will reproduce the problem?
1. download incubator jar
2. try to create a Scrolltable as below

A) TableModel.Request doesn't have a default constructor, so can't
deserialize
B) TableModel.Request.columnColumnSortList didn't implement
isSerializable and didn't have a default constructor

fix:
Give the Request a default constructor, and
them implement isSerializable and give default constructor on the
ColumnSortList object


What is the expected output? What do you see instead?
should see a scrolltable, but get a stack trace about not being able to
serialize instead.

What version of the product are you using? On what operating system?
gwt 1.4 on windows xp

Please provide any additional information below.

Here is the test code (based on test case code)

  public static ScrollTable createScrollTable() {
    FixedWidthGrid headerTable = new FixedWidthGrid();;
    FixedWidthGrid footerTable = new FixedWidthGrid();;

    TableController tableController = new TableController(new
ClientTableModel() {
      public Object getCell(int rowNum, int colNum) {
        if (colNum > 4) {
          return null;
        } else {
          return rowNum + ":" + colNum;
        }
      }
    });

    FixedWidthGrid dataTable = new PagingGrid(tableController);
    ScrollTable scrollTable = new PagingScrollTable((PagingGrid) dataTable,
headerTable);
    scrollTable.setFooterTable(footerTable);

    return scrollTable;
  }

Original issue reported on code.google.com by [email protected] on 14 Dec 2007 at 2:52

ScrollTable user interface locks up when displaying medium amounts of data even with DeferredCommand (FF Only)

What steps will reproduce the problem?
1. Run the attached file in any project with ScrollTable
2. Move the mouse a bunch which the table shows data and then again after
it clears and shows data again.
3. Note how during the first display at around the 100 mark the table ui
just locks for about a second, and how it doesn't when the table is emptied
of data and then filled again.

I tried to slow down the table enough to make this problem visible.  On
more heavy duty apps where the table data is retrieved in chunks (for
example 100 at a time for 600) from the server, it is very obvious.

What is the expected output? What do you see instead?

  The user interface should not lock at all when displaying data,
especially when each line has the same data, however the table ui locks up
for a second each time on the first run.  If you add other widgets to the
screen those will still work.

What version of the product are you using? On what operating system?

Trunk version of GWT Incubator, Windows Firefox.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 22 Jan 2008 at 10:17

Attachments:

Changing page size to < current page size in PagingScrollTable demo causes IE6 and FF2 to freeze

What steps will reproduce the problem?
1. Launch IE6/FF2
2. Open
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/PagingScrollTa
ble/index.html
3. Click on the Paging tab below the table
4. Set Page Size to something less than the current size (10 works for me)
5. Click Set Page Size
6. Witness browser freeze

What is the expected output? What do you see instead?
Expected the page size to update in a timely manner to reflect what the
user entered.  I saw the browser freeze up and the "slow javascript" dialog
pop up asking if I wanted to cancel the script.

What version of the product are you using? On what operating system?
IE6/FF2 on Win2K Pro (believe it or not)

Please provide any additional information below.
I've noticed that GWT in general has problems with resizing as well as
creating large-ish (200+ rows) grids.  I'm using the gwt-advanced-table
widget and having very similar problems.

Original issue reported on code.google.com by [email protected] on 16 Jan 2008 at 6:22

Sort order images not displayed (and other refactoring requests)

What steps will reproduce the problem?
1. Create a TableModel that calls an RPC from inside
requestRows(Request,Response) loading data from the server
2. Create a PagingScrollTable with a PagingGrid as data and a
FixedWidthDataGrid as header
3. Click on the column header to sort

What is the expected output? What do you see instead?

Expect to see image indicating sort order on primary sort column.  No image
is set.

What version of the product are you using? On what operating system?

gwt-1.4.61 / gwt-incubator-r282
Windows XP / Firefox 2.0.0.9

Please provide any additional information below.

This appears to be a problem with how the sort order image is being placed
on the column.  When no ColumnSorter is set for the SortableFixedWidthGrid,
the default behavior is to force the reloading of the current page with a
call to gotoPage(currentPage,true).  The code should be refactored so that
the image is placed when the page is done loading, perhaps by adding a
callback to gotoPage() and calling fireColumnSorted() from inside it.

This would require additional refactoring so that there is only a single
TableDataRequestListener for each PagingTable (why would there ever be more
than one of these anyway?) that has a single method onRequestData(Request
_request,Response _response).  It might even be worth to adding callback's
to each of the methods gotoFirstPage() gotoLastPage() gotoPage().

Making these changes would also allow you to subclass the Request object so
that it would be possible to have external filtering widgets fire events to
your data table, requesting new sorted and filtered data be loaded.  This
is currently not possible to do because the request parameters (firstRow,
rowCount, and sortList) are being passed explicitly to the TableController
which then passes them on to TableModel.requestRows() which then wraps them
in a Request and calls TableModel.requestRows().

Original issue reported on code.google.com by [email protected] on 27 Dec 2007 at 1:57

gridView page size defaults to 0

Unless a gridView widget's page size is explicitly set to a non-zero value, it 
will stay at zero 
irregardless of the model or the controller's settings.  This may be the 
desired behavior because the 
view should not be controlled by the model but its worth a warning in the 
javaDoc or something.  
Perhaps it should default to 20, or some standard size so you can tell its 
working with the gui.  

Original issue reported on code.google.com by [email protected] on 5 Oct 2007 at 9:36

Mac: DOM.eventGetButton(event) returns -1; expected 1

What steps will reproduce the problem?
1. Run ScrollTableDemo on the Mac (hosted mode).
2. Try to resize columns with the mouse.
3. See how columns don't resize.

What is the expected output? What do you see instead?
I kinda hoped to see the columns resize.  Instead they don't.

What version of the product are you using? On what operating system?
GWT Mac 1.4.60; MacBook Pro; Mac OS X 10.4.10

Please provide any additional information below.
I tracked it down to lines 959 & 970 of ScrollTable.java.
In particular:

    DOM.eventGetButton(event) != Event.BUTTON_LEFT

is unexpectedly true.  Further digging indicates that

    DOM.eventGetButton(event)

is returning -1 (Event.UNDEFINED) rather than 1 (Event.BUTTON_LEFT), even 
though the event in 
question is precipitated by a left button press.


Original issue reported on code.google.com by [email protected] on 16 Nov 2007 at 8:44

Custom sorting with SortableFixedWidthGrid wants to be easier

The methods in SortableFixedWidthGrid.ColumnSorterCallback are protected, 
therefore subclasses of SortableFixedWidthGrid.ColumnSorter cannot invoke 
them from within onSortColumn().

After the custom sorting logic is performed, the final step should be to 
invoke onSortingComplete() with the new row order information, but this is 
not currently possible due to the visibility of onSortingComplete().

Workaround:

1) Subclass SortableFixedWidthGrid
2) Create a sublass of SortableFixedWidthGrid.ColumnSorterCallback as an 
inner class within the class created in 1.  
3) Override onSortingComplete in the inner class as a pass-through to the 
superclass implementation.
4) Re-implement sortColumn(int column, boolean ascending) to create an 
instance of the new inner class.
5) Use the new subclass in place of SortableFixedWidthGrid and use your 
custom ColumnSorter subclass with it.

Attached file contains an example of this workaround.

Original issue reported on code.google.com by [email protected] on 14 Jan 2008 at 9:57

Attachments:

Previous Page does not work on IE (both 6 and 7)

What steps will reproduce the problem?
1. Open the demo at
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/PagingScrollTa
ble/index.html
2. Klick on "Next Page" paging button
3. Klick on "Previous Page" paging button

What is the expected output? What do you see instead?
Expected to see the previous page again. Instead all cells of the data
table are empty, loading indicator still visible.

What version of the product are you using? On what operating system?
GWT 1.4.6. Error occurs on Windows (IE6 + 7). Works in FF, not tested on
Safari.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 4 Feb 2008 at 6:39

SortableFixedWidthGrid.sortColumn() overrides CustomSorter's sort policy

Currently SortableFixedWidthGrid.sortColumn() will reverse the ordering of
what is displayed in the current page without regard to the CustomSorter's
sort policy.

In other words, if I specify my own CustomSorter class to
SortableFixedWidthGrid it should delegate sorting to the custom sorter.  By
default it should not reverse the order of what's on-screen in this case. 
What if I want the entire data set reversed and not just the current page?

A simple fix is to check if a ColumnSorter has not been specified and if so
do the "see if column is already sorted" logic.  I can provide a patch if
necessary.

Thanks!

Original issue reported on code.google.com by [email protected] on 4 Feb 2008 at 6:01

DatePicker adds itself as a ChangeListener everytime showYearMonthListing(true) is called

What steps will reproduce the problem?
Create a new Date Picker. (defaults to showing year month listings)
call showYearMonthListing(true)
now select a new mont or year from one of the lists. the onChange() method will 
be called twice 

Simply changing names.addChangeListener(this) in draw controls to:
      names.removeChangeListener(this);
      names.addChangeListener(this);
will insure that the date picker is never added more than once to the lists.



Original issue reported on code.google.com by [email protected] on 20 Nov 2007 at 10:57

fillWidth method on unvisible ScrollTable not runs

What steps will reproduce the problem?
1. Scrolltable on a tabPanel, were scrollTable tab panel is not visible (
not selected tab ).
2. Executing the table.fillWidth() method.
3. Select the tab where's the ScrollTable.

What is the expected output? What do you see instead?
When the ScrollTable tab is selected ( visible ) the fillWidth() runs
properly, but when this is not selected (unvisible) the fillWidth makes
nothing.

What version of the product are you using? On what operating system?
GWT 1.4.6, and Ubuntu Feisty

Please provide any additional information below.
Because I resize several widget areas ( some not always visible, like some
unvisible tabs on a tabPanel ) it'll be good, that the table column adjust
be fired before any resizing ( visible or unvisible tab ).

Actual way to solve it, on my case, is every time I set visible a tab with
a scrollPanel then fire the fillWidth method.

Original issue reported on code.google.com by [email protected] on 22 Oct 2007 at 9:38

scrollTableLoading.gif missing in 10-25 jar

What steps will reproduce the problem?
1. Write a little app using PagingScrollTable
2. Run this little app (in hosted mode), click on any of the page 
navigation buttons (like <| , < , > , |> )
3. Notice that an empty icon will be momentarily shown instead of loading 
gif.
4. Also notice that "Hosted Console" complains as "Resource not found: 
scrollTableLoading.gif".
5) See if the gwt-incubator-10-25-07.jar (the latest jar) contains 
widgetideas/table/client/scrollTableLoading.gif.(It does NOT).
6) See that this file is there in trunk.
7) Also note that jar file contains it 
at "com/google/gwt/demos/scrolltable/public".

What is the expected output? What do you see instead?
1) Jar file should contain scrollTableLoading.gif at 
widgetideas/table/client. It(10-25.jar) does NOT.

What version of the product are you using? On what operating system?
1) 10-25.

Please provide any additional information below.
1) This maybe due to the way files are copied to "build/out" by build.xml.
2) Below is the build.xml snippet related
- <target name="build" depends="findgwt">
 - <copy todir="build/out">
  -  <fileset dir="src">
       <include name="**/public/**" /> 
       <exclude name="**/.svn/**" /> 
     </fileset>
   </copy>
  </target>

3) It seems if following line is used in place of above <include 
name ...>, this isssue maybe fixed (though not sure);
       <include name="**/public/*" /> 





Original issue reported on code.google.com by [email protected] on 12 Dec 2007 at 6:34

DatePicker Handler pattern

The DatePicker currently uses an onChange event to signify that something has 
changed. this is not 
very extendable, and fires whenever the month or year is changed even though a 
new date hasn't 
been selected.

By changing to the handler pattern like is used by FormPanel, the DatePicker 
could have separate 
events for selecting dates, and browsing months. This change also allows the 
developer to restrict 
which dates are browsable by setting a cancel flag on the onBrowse event.

The supplied patch makes this change.

Original issue reported on code.google.com by [email protected] on 21 Nov 2007 at 9:23

Attachments:

reorganize svn module

I strongly recommend that the module be reorganized by "sub project" as it
could get pretty hairy in there as things evolve.

Maybe two branches like the Apache group does; one for less stable and one
for more stable.

Original issue reported on code.google.com by [email protected] on 5 Oct 2007 at 3:03

Empty ScrollTable throws exception

What steps will reproduce the problem?
1. From a fresh gwt incubator eclipse setup, put the following into the
entry point:
  private SortableFixedWidthGrid grid = new SortableFixedWidthGrid(); 
  private FixedWidthFlexTable headerTable = new FixedWidthFlexTable();    


  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    ScrollTable scrollTable = new ScrollTable(grid, headerTable); 
    RootPanel.get().add(scrollTable);
  }
2. run the application


What is the expected output? What do you see instead?
Expected to see an empty table. Instead get an exception:
[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: JavaScript Error exception:
Invalid argument.
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:481)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:270)
    at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:137
)
    at com.google.gwt.user.client.impl.DOMImpl.setStyleAttribute(DOMImpl.java:397)
    at com.google.gwt.user.client.DOM.setStyleAttribute(DOM.java:1153)
    at
com.google.gwt.widgetideas.table.client.ScrollTable.resizeTablesVerticallyNow(Sc
rollTable.java:1256)
    at
com.google.gwt.widgetideas.table.client.ScrollTable$1.execute(ScrollTable.java:6
07)
    at
com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.jav
a:307)
    at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:203)
    at com.google.gwt.user.client.Timer.fireImpl(Timer.java:164)

If I comment out lines 1256 and 1257 from ScrollTable.java it will work.

What version of the product are you using? On what operating system?
r237 on Windows XP.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 29 Nov 2007 at 10:09

ScrollTable resize on ie7 not running!

What steps will reproduce the problem?

The ScrollTable does not run on my Internet Explorer


What is the expected output? What do you see instead?

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: JavaScript Error exception:
Ungültiges Argument.
 at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:481)
 at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:270)
 at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:137
)
 at com.google.gwt.user.client.impl.DOMImpl.setStyleAttribute(DOMImpl.java:397)
 at com.google.gwt.user.client.DOM.setStyleAttribute(DOM.java:1153)
 at
com.google.gwt.widgetideas.table.client.ScrollTable.resizeTablesVerticallyNow(Sc
rollTable.java:1301)
 at
com.google.gwt.widgetideas.table.client.ScrollTable$1.execute(ScrollTable.java:5
98)
 at
com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.jav
a:307)
 at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:203)
 at com.google.gwt.user.client.Timer.fireImpl(Timer.java:164)



What version of the product are you using? On what operating system?
Windows XP Pro, IE7,gwt-incubator-10-25-07.jar, gwt-1.4.60

Original issue reported on code.google.com by [email protected] on 9 Nov 2007 at 3:41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.