Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CellContextClickEvent does not happen in production mode, only in GWT hosted mode #43

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

Attachments:

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

Original comment by sanjiv.j...@gmail.com on 29 Dec 2008 at 2:42

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant