Re: How to set URL of application
I use Tomcat 7. I expose application over proxy. Thanks for replies. On 4 bře, 16:46, salk31 s...@redspr.com wrote: I think that is more of a configuration setting for you http server/ servlet container. Which one are you using? Also I guess on how you are exposing it to the outside world. It sounds like the servlet container doesn't know its correct name. On Mar 4, 7:45 am, vkrejcirik vkrejci...@gmail.com wrote: Hi, I haveapplicationwhich runs on private network. It hasURLhttp://hostname:8080/application. I need access for thisapplication from outside. So I expose thisapplicationout onURL http:outsideAddress/application. But when I try to access on this addess,applicationredirects to internal address andapplication doesn't run. Is there any possibility how tosetURLforapplication? Does any solution exist for this problem? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to set URL of application
Hi, I have application which runs on private network. It has URL http://hostname:8080/application. I need access for this application from outside. So I expose this application out on URL http:outsideAddress/application. But when I try to access on this addess, application redirects to internal address and application doesn't run. Is there any possibility how to set URL for application? Does any solution exist for this problem? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to set URL of application
Hi, I have application which runs on private network. It has URL http://hostname:8080/application. I need access for this application from outside. So I expose this application out on URL http:outsideAddress/application. But when I try to access on this addess, application redirects to internal address and application doesn't run. Is there any possibility how to set URL for application? Does any solution exist for this problem? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel, content widget is hidden after select tab
Ok, I tried firebug. I think it isn't attached. I cannot find my widgets in firebug. In the past, I used DecoratedTabPanel in the same way and it worked great. On 8 ún, 22:33, Jeff Larsen larse...@gmail.com wrote: That is the right way to get the doctype set to standards mode. Have you inspected your widgets with firebug to see if stuff is there but hidden or if it isn't even getting attached to the DOM? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TabLayoutPanel, content widget is hidden after select tab
I use TabLayoutPanel. I create 3 tabs and fill it with HTML widgets. Code: private TabLayoutPanel tab = new TabLayoutPanel(2, Unit.EM); ... tab.add(new Label(test), thirth); tab.add(new HTML(fourth), fourth); tab.add(new HTML(fifth), fifth); When I select some tab, page is empty. Page doesn't contain any widget. Could you give any suggestions? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel, content widget is hidden after select tab
How should I change doctype? I have this in my main html page: !doctype html !-- The DOCTYPE declaration above will set the-- !-- browser's rendering engine into -- !-- Standards Mode. Replacing this declaration -- !-- with a Quirks Mode doctype may lead to some -- !-- differences in layout. On 8 ún, 22:05, Jeff Larsen larse...@gmail.com wrote: Have you changed the doctype to standards mode? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTree, how can I hide blue background of cell and yellow background of head of cell after focus
Hi, I use CellTree wieh TreeViewModel for creating applications menu. When I select some cell, it changes background. (cells body is blue and cells head is yellow) Is it possible to remove this behavior? I think, I must add something in this part of code: /** * The cell used to render categories. */ private static class CategoryCell extends AbstractCellCategory { @Override public void render(Category value, Object key, SafeHtmlBuilder sb) { if (value != null) { sb.appendEscaped(value.getName()); } } } /** * The cell used to render content. */ private static class ContentWidgetCell extends AbstractCellContentWidget { public ContentWidgetCell() { // cell responds to change events. super(change); } @Override public void render(ContentWidget value, Object key, SafeHtmlBuilder sb) { if (value != null) { if (value instanceof GenderWidget) { GenderWidget tempValue = (GenderWidget) value; sb.appendHtmlConstant(table); for (Gender g : tempValue.getGenders()) { sb.appendHtmlConstant(trtd valign=\top\); sb.appendHtmlConstant(input type=\checkbox\ /); sb.appendHtmlConstant(/tdtd); // Display the name of gender sb.appendHtmlConstant(div style=\padding-left:10px;\); sb.appendEscaped(g.getName()); sb.appendHtmlConstant(/div); sb.appendHtmlConstant(/td/tr); } sb.appendHtmlConstant(/table); } else { sb.appendEscaped(value.getName()); } } } @Override public void onBrowserEvent(com.google.gwt.dom.client.Element parent, ContentWidget value, Object key, NativeEvent event, ValueUpdaterContentWidget valueUpdater) { // Check that the value is not null. if (value == null) { return; } // Call the super handler, which handlers the enter key. super.onBrowserEvent(parent, value, key, event, valueUpdater); // Handle click events. if (change.equals(event.getType())) { // Toggle the checkbox. ListCheckItem inputs = value.getInputElements(parent); for (CheckItem i : inputs) { if (i.getElement().isChecked()) { // System.out.println(i.getId() + je); value.getSearchParametersHolder().getSelectedGenders() .add(i.getId()); } else { // System.out.println(i.getId() + ne); if (value.getSearchParametersHolder() .getSelectedGenders().contains(i.getId())) value.getSearchParametersHolder() .getSelectedGenders().remove(i.getId()); } } } } } Thanks for reply. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: AbstractCell, is it possible to put ScrollPanel into cell?
Ok, thanks for reply ;) On 18 pro, 17:50, John LaBanca jlaba...@google.com wrote: You cannot embed the ScrollPanel widget in a Cell, but you can wrap the table element in a div with a fixed height and set overflow to auto, which will add scrollbars if needed. sb.appendHtmlConstant(div style=\height:100px;overflow:auto;\); sb.appendHtmlConstant(table); Alternatively, you could use a multiple select box instead of checkboxes. It wouldn't include checkboxes, but it allows multiple selection. sb.appendHtmlConstant(select multiple=\multiple\ size=\3\); Thanks, John LaBanca jlaba...@google.com On Sat, Dec 18, 2010 at 5:06 AM, vkrejcirik vkrejci...@gmail.com wrote: Hi, I would like to put ScrollPanel into AbstractCell. Is it possible? I have creating html table now in render method. I would like to put there scroll panel with checkboxes, if it is possilbe. Thanks for all replies. private static class ContentWidgetCell extends AbstractCellContentWidget { public ContentWidgetCell() { // cell responds to change events. super(change); } �...@override public void render(ContentWidget value, Object key, SafeHtmlBuilder sb) { if (value != null) { if (value instanceof GenderWidget) { GenderWidget tempValue = (GenderWidget) value; sb.appendHtmlConstant(table); for (Gender g : tempValue.getGenders()) { sb.appendHtmlConstant(trtd valign=\top\); sb.appendHtmlConstant(input type=\checkbox\ /); sb.appendHtmlConstant(/tdtd); // Display the name of gender sb.appendHtmlConstant(div style=\padding-left:10px;\); sb.appendEscaped(g.getName()); sb.appendHtmlConstant(/div); sb.appendHtmlConstant(/td/tr); } sb.appendHtmlConstant(/table); } else { sb.appendEscaped(value.getName()); } } } ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
AbstractCell, is it possible to put ScrollPanel into cell?
Hi, I would like to put ScrollPanel into AbstractCell. Is it possible? I have creating html table now in render method. I would like to put there scroll panel with checkboxes, if it is possilbe. Thanks for all replies. private static class ContentWidgetCell extends AbstractCellContentWidget { public ContentWidgetCell() { // cell responds to change events. super(change); } @Override public void render(ContentWidget value, Object key, SafeHtmlBuilder sb) { if (value != null) { if (value instanceof GenderWidget) { GenderWidget tempValue = (GenderWidget) value; sb.appendHtmlConstant(table); for (Gender g : tempValue.getGenders()) { sb.appendHtmlConstant(trtd valign=\top\); sb.appendHtmlConstant(input type=\checkbox\ /); sb.appendHtmlConstant(/tdtd); // Display the name of gender sb.appendHtmlConstant(div style=\padding-left:10px;\); sb.appendEscaped(g.getName()); sb.appendHtmlConstant(/div); sb.appendHtmlConstant(/td/tr); } sb.appendHtmlConstant(/table); } else { sb.appendEscaped(value.getName()); } } } ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How could I overwrite padding margin properties in standard.css style?
I use Standard GWT style, so my buttons have .gwt-Buttons style. I create my css file, where I add for example this: .gwt-Button-activeJob { padding: 0.2em; margin-top: 1.5em; margin-right: 0.2em; margin-left: 0.3em; margin-bottom: 0.3em; padding-left: 1em; padding-right: 1em; } In java code: cancelButton.addStyleDependentName(activeJob); But properties margin and padding are set in .gwt-Button in Standard.css file. So button ignores my definitions of padding and margin. Is there any solution how could I overwrite these properties? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How could I overwrite padding margin properties in standard.css style?
Yes, I tried this solution yet. When I set primaryName, it overwrite all properties. I would like to leave all properties except padding and margin. On 9 pro, 09:23, dominic jansen dom.jan...@googlemail.com wrote: hey, you can try it this way: cancelButton.setStylePrimaryName(activeJob); this will override all properties of the standard.css with you own styles. best dom 2010/12/9 vkrejcirik vkrejci...@gmail.com: I use Standard GWT style, so my buttons have .gwt-Buttons style. I create my css file, where I add for example this: .gwt-Button-activeJob { padding: 0.2em; margin-top: 1.5em; margin-right: 0.2em; margin-left: 0.3em; margin-bottom: 0.3em; padding-left: 1em; padding-right: 1em; } In java code: cancelButton.addStyleDependentName(activeJob); But properties margin and padding are set in .gwt-Button in Standard.css file. So button ignores my definitions of padding and margin. Is there any solution how could I overwrite these properties? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How could I overwrite padding margin properties in standard.css style?
I could copy .gwt-Button definition from standard.css into my css file, but I think there must be another more elegant way. On 9 pro, 09:30, vkrejcirik vkrejci...@gmail.com wrote: Yes, I tried this solution yet. When I set primaryName, it overwrite all properties. I would like to leave all properties except padding and margin. On 9 pro, 09:23, dominic jansen dom.jan...@googlemail.com wrote: hey, you can try it this way: cancelButton.setStylePrimaryName(activeJob); this will override all properties of the standard.css with you own styles. best dom 2010/12/9 vkrejcirik vkrejci...@gmail.com: I use Standard GWT style, so my buttons have .gwt-Buttons style. I create my css file, where I add for example this: .gwt-Button-activeJob { padding: 0.2em; margin-top: 1.5em; margin-right: 0.2em; margin-left: 0.3em; margin-bottom: 0.3em; padding-left: 1em; padding-right: 1em; } In java code: cancelButton.addStyleDependentName(activeJob); But properties margin and padding are set in .gwt-Button in Standard.css file. So button ignores my definitions of padding and margin. Is there any solution how could I overwrite these properties? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How could I overwrite padding margin properties in standard.css style?
It doesn't work. I think, that first is set standard.css style then my style. But thanks for reply. On 9 pro, 10:28, haimke haim.schind...@gmail.com wrote: try to use css keyword: !important example: #main { width:600px !important; width:800px; } On Dec 9, 10:03 am, vkrejcirik vkrejci...@gmail.com wrote: I use Standard GWT style, so my buttons have .gwt-Buttons style. I create my css file, where I add for example this: .gwt-Button-activeJob { padding: 0.2em; margin-top: 1.5em; margin-right: 0.2em; margin-left: 0.3em; margin-bottom: 0.3em; padding-left: 1em; padding-right: 1em; } In java code: cancelButton.addStyleDependentName(activeJob); But properties margin and padding are set in .gwt-Button in Standard.css file. So button ignores my definitions of padding and margin. Is there any solution how could I overwrite these properties? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How could I overwrite padding margin properties in standard.css style?
It's interesting, that I run app in dev mode, it works fine. When I make war and deploy it into Tomcat server it use default css style for these buttons and ignore my .gwt-Button-activeJob definition. By other widgets, I use setStyleName method and it works fine. On 9 pro, 10:39, vkrejcirik vkrejci...@gmail.com wrote: It doesn't work. I think, that first is set standard.css style then my style. But thanks for reply. On 9 pro, 10:28, haimke haim.schind...@gmail.com wrote: try to use css keyword: !important example: #main { width:600px !important; width:800px; } On Dec 9, 10:03 am, vkrejcirik vkrejci...@gmail.com wrote: I use Standard GWT style, so my buttons have .gwt-Buttons style. I create my css file, where I add for example this: .gwt-Button-activeJob { padding: 0.2em; margin-top: 1.5em; margin-right: 0.2em; margin-left: 0.3em; margin-bottom: 0.3em; padding-left: 1em; padding-right: 1em; } In java code: cancelButton.addStyleDependentName(activeJob); But properties margin and padding are set in .gwt-Button in Standard.css file. So button ignores my definitions of padding and margin. Is there any solution how could I overwrite these properties? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SliderBar has yellow border after clicking
Thanks Jim, it helps me. On 30 zář, 17:19, Jim Douglas jdou...@basis.com wrote: That's the focus rectangle. Try adding these: slider.getElement().getStyle().setProperty(outline, none); slider.getElement().setPropertyBoolean(hideFocus, true); And if you're targeting iOS, you'll probably want these as well: slider.getElement().getStyle().setProperty(webkitTouchCallout, none); slider.getElement().getStyle().setProperty(webkitUserSelect, none); On Sep 30, 5:20 am, vkrejcirik vkrejci...@gmail.com wrote: Hi, could you help me to remove yellow border after clicking on SliderBar? I cannot find it in css style. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SliderBar has yellow border after clicking
Hi, could you help me to remove yellow border after clicking on SliderBar? I cannot find it in css style. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: External Javascript library in GWT (Canviz)
Note: If I create another HTML object with content: HTML image = new HTML(div id=\debug_output\/div); Then there are any error. But I see anything. There isn't picture either log message. Do you have any idea please? On 22 zář, 09:39, vkrejcirik vkrejci...@gmail.com wrote: I try to use javascript library Canviz for rendering dot file to image on client side in my GWT application. I did these steps: 1) Insert script elements into my html main page. script type=text/javascript src=js/prototype.js/script script type=text/javascript src=js/path.js/script script type=text/javascript src=js/canviz.js/script script type=text/javascript src=js/x11colors.js/script 2) In java class, I create HTML object and set: image1.setHTML(div id=\image_2\/div); 3) Then I create native method: public static native void getImage2(String dot) /*-{ var canviz; canviz = new $wnd.Canviz(image_2); canviz.load(dot); }-*/; When I push the button and call method getImage2, then I get this error: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot set property 'innerHTML' of null stack: TypeError: Cannot set property 'innerHTML' of null at klass.load (http://127.0.0.1:8889/js/canviz.js:464:31) at unknown source at __gwt_jsInvoke (http://127.0.0.1:8889/clan/hosted.html?clan: 70:35) at eval at anonymous (http://127.0.0.1:8889/clan/hosted.html? clan:54:12) at XMLHttpRequest.anonymous (unknown source) at unknown source at __gwt_jsInvoke (http://127.0.0.1:8889/clan/hosted.html?clan: 70:35) at eval at anonymous (http://127.0.0.1:8889/clan/hosted.html? clan:54:12) at XMLHttpRequest.onreadystatechange (unknown source) type: non_object_property_store arguments: innerHTML, __gwt_ObjectId: 3497 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java : 1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 222) at java.lang.Thread.run(Unknown Source) Could you help me please? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: External Javascript library in GWT (Canviz)
I think, that I forgot call: canviz.draw(); But I still have error: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'canvasColor' of undefined stack: TypeError: Cannot read property 'canvasColor' of undefined at klass.draw (http://127.0.0.1:8889/js/canviz.js:649:36) at unknown source at __gwt_jsInvoke (http://127.0.0.1:8889/clan/hosted.html?clan: 70:35) at eval at anonymous (http://127.0.0.1:8889/clan/hosted.html? clan:54:12) at XMLHttpRequest.anonymous (unknown source) at unknown source at __gwt_jsInvoke (http://127.0.0.1:8889/clan/hosted.html?clan: 70:35) at eval at anonymous (http://127.0.0.1:8889/clan/hosted.html? clan:54:12) at XMLHttpRequest.onreadystatechange (unknown source) type: non_object_property_load arguments: canvasColor, __gwt_ObjectId: 3290 On 22 zář, 14:25, vkrejcirik vkrejci...@gmail.com wrote: Note: If I create another HTML object with content: HTML image = new HTML(div id=\debug_output\/div); Then there are any error. But I see anything. There isn't picture either log message. Do you have any idea please? On 22 zář, 09:39, vkrejcirik vkrejci...@gmail.com wrote: I try to use javascript library Canviz for rendering dot file to image on client side in my GWT application. I did these steps: 1) Insert script elements into my html main page. script type=text/javascript src=js/prototype.js/script script type=text/javascript src=js/path.js/script script type=text/javascript src=js/canviz.js/script script type=text/javascript src=js/x11colors.js/script 2) In java class, I create HTML object and set: image1.setHTML(div id=\image_2\/div); 3) Then I create native method: public static native void getImage2(String dot) /*-{ var canviz; canviz = new $wnd.Canviz(image_2); canviz.load(dot); }-*/; When I push the button and call method getImage2, then I get this error: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot set property 'innerHTML' of null stack: TypeError: Cannot set property 'innerHTML' of null at klass.load (http://127.0.0.1:8889/js/canviz.js:464:31) at unknown source at __gwt_jsInvoke (http://127.0.0.1:8889/clan/hosted.html?clan: 70:35) at eval at anonymous (http://127.0.0.1:8889/clan/hosted.html? clan:54:12) at XMLHttpRequest.anonymous (unknown source) at unknown source at __gwt_jsInvoke (http://127.0.0.1:8889/clan/hosted.html?clan: 70:35) at eval at anonymous (http://127.0.0.1:8889/clan/hosted.html? clan:54:12) at XMLHttpRequest.onreadystatechange (unknown source) type: non_object_property_store arguments: innerHTML, __gwt_ObjectId: 3497 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java : 1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 222) at java.lang.Thread.run(Unknown Source) Could you help me please? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Managing of connection to JMS server, listening to JMS Topic
Hi Chris, thank you for your links. They help me a lot! thanks On 8 čvn, 16:08, Chris Lercher cl_for_mail...@gmx.net wrote: Are you looking for this: http://forums.sun.com/thread.jspa?threadID=5397323 Probably, an even cleaner alternative would be to inject aJMS ConnectionFactory using Annotations:http://java.sun.com/javaee/5/docs/tutorial/doc/bnceh.html - I assume, it would clean up itself when undeploying, but I'm not sure about the details. On Jun 8, 3:21 pm, vkrejcirik vkrejci...@gmail.com wrote: Hi Paul, I thought about using Spring for server side, but now I have 99% complete application and I don't have time to redesign it for using Spring. Or could I use Spring only for management connection toJMS? I have only little experience with Spring.. DO you know, if it exists another way? When I must to call manually closeConnection? Thanks a lot for all comments. On 8 čvn, 13:49, Paul Grenyer paul.gren...@gmail.com wrote: Hi On Tue, Jun 8, 2010 at 12:38 PM, vkrejcirik vkrejci...@gmail.com wrote: Hi, I'm developing web based application with GWT toolkit. I have client and server part. On server part, I have class for managing of connection toJMSserver for listening toJMStopic. I don't find better way than periodically send request from client to server. On server I have saved last message fromJMStopic. I get this message and I send it to client. This application runs on tomcat server. I use JAXB for mappingJMSmessages to Java classes, which are generated from xml files. If you implmenet Sprin gon the server side you won't need JAXB and yourJMSclient will stop and start with the server. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Managing of connection to JMS server, listening to JMS Topic
Hi, I'm developing web based application with GWT toolkit. I have client and server part. On server part, I have class for managing of connection to JMS server for listening to JMS topic. I don't find better way than periodically send request from client to server. On server I have saved last message from JMS topic. I get this message and I send it to client. This application runs on tomcat server. I use JAXB for mapping JMS messages to Java classes, which are generated from xml files. I create connection to JMS server while initilalizing server part. I have problem while undeploying. If I undeploy application, I have error message on tomcat log and every client (web browser), which is connect to application in the same time will be freeze. Exactly, I don't know when I should call closeConnection from JMS sever. Is there any method or exception, which is call when application is undeploying? I think, this is my problem. Thanks for your help. I know, that it's complicated, so If you have any additional question, please ask. Stacktrace from log from tomcat server: INFO: Undeploying context [/disasterRecovery_prd] Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load com/pike/vectren/disasterRecovery/dashboard/ server/generated/direloadschema/jaxb.properties. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load META-INF/services/ javax.xml.bind.JAXBContext. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load com.sun.xml.internal.bind.v2.ContextFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1273) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233) at javax.xml.bind.ContextFinder.safeLoadClass(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(Unknown Source) at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at com.pike.vectren.disasterRecovery.dashboard.server.generated.NotifyCheckCreator.unmarshal(NotifyCheckCreator.java: 16) at com.pike.vectren.disasterRecovery.dashboard.server.NotifyCheckSubscriber.onMessage(NotifyCheckSubscriber.java: 69) at com.tibco.tibjms.TibjmsSession._submit(TibjmsSession.java:3568) at com.tibco.tibjms.TibjmsSession._dispatchAsyncMessage(TibjmsSession.java: 1964) at com.tibco.tibjms.TibjmsSession$Dispatcher.run(TibjmsSession.java: 3099) Jun 7, 2010 2:22:32 AM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load com.pike.vectren.disasterRecovery.dashboard.server.generated.direloadschema.ObjectFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1273) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(Unknown Source) at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.xml.bind.ContextFinder.newInstance(Unknown Source) at javax.xml.bind.ContextFinder.find(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at javax.xml.bind.JAXBContext.newInstance(Unknown Source) at
Re: Managing of connection to JMS server, listening to JMS Topic
Hi Paul, I thought about using Spring for server side, but now I have 99% complete application and I don't have time to redesign it for using Spring. Or could I use Spring only for management connection to JMS ? I have only little experience with Spring.. DO you know, if it exists another way? When I must to call manually closeConnection? Thanks a lot for all comments. On 8 čvn, 13:49, Paul Grenyer paul.gren...@gmail.com wrote: Hi On Tue, Jun 8, 2010 at 12:38 PM, vkrejcirik vkrejci...@gmail.com wrote: Hi, I'm developing web based application with GWT toolkit. I have client and server part. On server part, I have class for managing of connection to JMS server for listening to JMS topic. I don't find better way than periodically send request from client to server. On server I have saved last message from JMS topic. I get this message and I send it to client. This application runs on tomcat server. I use JAXB for mapping JMS messages to Java classes, which are generated from xml files. If you implmenet Sprin gon the server side you won't need JAXB and your JMS client will stop and start with the server. -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Reading message from JMS topic on server and sending context to client
Hi, I have application, which on server collects messages from JMS topic. I need to send this data from server to client. Is it possible? Or I must make RPC call on client, which periodicly send request to server for these messages and it send me the messages in response. thank you for your answers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.