You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
treeGrid.addCellContextClickHandler(new CellContextClickHandler() {
public void onCellContextClick(final CellContextClickEvent event) {
SC.say("Hi!");
}
});
What is the expected output? What do you see instead?
Right click on the cell. In GWT hosted mode I see a message "Hi!", as
expected. When I deploy to the production server, I see browser context menu.
What version of the product are you using? On what operating system?
I tried with build from 2008-12-02 and 2008-12-04, both yield the same result.
Please provide any additional information below.
GWT 1.5.3, smartgwt2008-12-04.jar, Eclipse Ganymede, Cypal Studio,
jdk1.6.0_10, Tomcat 6.0.18
Original issue reported on code.google.com by ngcut...@gmail.com on 13 Dec 2008 at 4:35
The text was updated successfully, but these errors were encountered:
Corerction. SC.say() works, but com.smartgwt.client.widgets.Window does not. It
does
not appear on cell context click, only browser context menu. But it works in
hosted mode.
Original comment by ngcut...@gmail.com on 13 Dec 2008 at 6:30
Attached is source that shows exactly what I want to do and the problem with
it. Zip
file contains eclipse project (not the project folder itself, only the contents
under
it). Module my.smart.module.MySmartTree is the one. It extends the sample 'Load
from
local data' and adds cell context click handler. When you run it under GWT
Hosted
mode, a window with property form appears on a right click. When you deploy it
under
Tomcat, and open with a browser (FF and IE tested), only browser context menu
appears.
Original comment by ngcut...@gmail.com on 15 Dec 2008 at 10:56
It took me some time to resolve this...
The problem is not in event dispatching, it works fine, but in the following
line of
my code:
ps.setColWidths(new int[] {50, 200});
Hosted mode will accept this and display window properly. However, to have
correct
behaviour in production environment, without hosted mode, the line should be
like this:
ps.setColWidths(new Object[] {50, 200});
As the method signature requires Object[], I would expect an error in hosted
mode too
but it did not happen and made a heavy confusion.
I consider this issue closed.
Original comment by ngcut...@gmail.com on 29 Dec 2008 at 2:18
Original issue reported on code.google.com by
ngcut...@gmail.com
on 13 Dec 2008 at 4:35The text was updated successfully, but these errors were encountered: