Hi,
My GWT module UI is only single button (like AddThis/ShareThis Sharing Button), and all other stuff is done in JS Popup panels. Id is specified as Global JS variable (i.e. myConfig.id=22) and getting that Id in GWT module using JSNI method ($wnd.myConfig.id).
NOTE: There is also another way pass parameter, which is by setting
<div id='gwtRootPanel' alt='6323'> </div>
<script type="text/javascript" language="javascript" src="com.test.gwt.Common/com.test.gwt.Common.nocache.js"></script>
& in GWT code
RootPanel rootPanel = RootPanel.get("gwtRootPanel");
System.out.println("Passed Value " + DOM.getElementAttribute(rootPanel.getElement(), "alt"));
Both way works fine for only 1 button in page, Now I dont see any of this option feasible for adding multiple buttons (like same Share button for each blog in Blog Post list) in one HTML page..
If Using 1st way,
How to get different values for same GWT compiled file?
If using 2nd way,
Cannot use same < div id='gwtRootPanel' >...
Any Hint or solution?
Cheers,
Nachiket