Reputation: 4418
I have created a GWT project that has some menu items. These menu items are created by using Anchor widgets in GWT. But all Action Handlers adeed to these anchors are not seems to be firing on any event that occurs.
What may be the problem? Please give me some head start to debug the problem?
Upvotes: 1
Views: 385
Reputation: 80340
You have to use specific constructor of the Anchor widget to enable scripting on it.
If you use UiBinder then add href="javascript:;"
to Anchor:
<g:Anchor href="javascript:;">
Upvotes: 2