Exception-undefined is not a function(While adding anchor to htmlpanel)

2014-10-07 Thread Mohammed Sameen
Hi,
I am getting exception while adding the Anchor to HTMLPanel,Below is the 
code


private HTMLPanel panel;
private HorizontalPanel hPanel=new HorizontalPanel();;

Anchor anchor=new Anchor();
anchor.setVisible(true);
anchor.getElement().setPropertyString("id", "hintButton");

public void createPanel(String title){
if(panel!=null){
hPanel.remove(panel);
}
panel=new HTMLPanel(title);
panel.add(anchor);   //exception while adding anchor to HTMLPanel second 
time
hPanel.add(panel);
}
the above code is working fine ,its creating the htmlpanel with anchor and 
executing fine for firstTime.When i am calling the Method createPanel for 
second Time its giving the below exception.

11:27:41.673 [ERROR] [demowidgetlibrary] Uncaught exception escaped

com.google.gwt.event.shared.UmbrellaException: Exception caught: 
(TypeError) 
@com.google.gwt.dom.client.Node::removeChild(Lcom/google/gwt/dom/client/Node;)([JavaScript
 
object(40)]): undefined is not a function
at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
at 
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:125)
at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:177)
at 
com.google.gwt.user.client.ui.ValueBoxBase.onBrowserEvent(ValueBoxBase.java:252)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1467)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1406)
at 
com.google.gwt.user.client.impl.DOMImplStandard.dispatchEvent(DOMImplStandard.java:323)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) 
@com.google.gwt.dom.client.Node::removeChild(Lcom/google/gwt/dom/client/Node;)([JavaScript
 
object(40)]): undefined is not a function
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.dom.client.Node$.removeChild$(Node.java)
at 
com.google.gwt.user.client.ui.ComplexPanel.remove(ComplexPanel.java:71)
at 
com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:202)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:96)
at com.google.gwt.user.client.ui.HTMLPanel.add(HTMLPanel.java:150)
at 
com.jenzabar.jx.ui.widgets.item.LabelBoxField.createHTMLPanel(LabelBoxField.java:200)
at 
com.jenzabar.jx.ui.widgets.item.LabelBoxField.setRequiredTitle(LabelBoxField.java:111)
at 
com.jenzabar.jx.ui.widgets.base.FormField.setRequiredErrorOnBlur(FormField.java:288)
at 
com.jenzabar.jx.ui.widgets.item.TextB

Re: How to config so that the Server can see the image location of GWT app when the app was not put into ROOT folder of Tomcat?

2014-10-07 Thread Milan Cvejic
Have you tried using ClientBundle.

Here is a nice explanation on how to use it with UiBinder

http://hcklab.blogspot.com/2010/11/uibinder-css-and-images-gwt.html

Cheers.

On Monday, October 6, 2014 1:36:10 PM UTC+2, Tom wrote:
>
> Ok, I built an GWT app. It has images folder located inside war folder.
>
> In my UiBinder I have something likje this
>
>  
>
> I compiled my project and bring all the compiled files into Root folder of 
> tomcat then all imagea are fine as I can see them
>
> But if I copy the compiled files into a folder that is not Root folder 
> like ABC, then i can not see the image though the app works fine. This time 
> the image location will be ABC/images
>
> I do not want to change ABC/images/.. for all the image url in my Gwt 
> app, then the question is how to config the server so that i can see my 
> images?
>
>
> http://stackoverflow.com/questions/26215380/how-to-config-so-that-the-server-can-see-the-image-location-of-gwt-app-when-the
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Attaching Source Maps when injecting external java script file

2014-10-07 Thread Milan Cvejic
Actual problem is using minified version of jQuery library that is hosted 
on some other servers (eg. google) and I can not change that. 

Therefore I am asking is there any way to make GWT to include source maps 
when injecting external javascript libraries?

On Tuesday, October 7, 2014 4:28:08 PM UTC+2, jchimene wrote:
>
>  That really is a 404.
>
> Check your sources.
>
> On 10/06/2014 06:52 PM, Milan Cvejic wrote:
>  
> Definitely not the answer that I am looking for. But thanks anyway.  
>
>  I am wrapping some jQuery plugin, and I need jQuery as dependence.
>
> On Monday, October 6, 2014 4:02:31 PM UTC+2, jchimene wrote: 
>>
>>  On 10/05/2014 02:08 PM, Milan Cvejic wrote:
>>  
>> Hi,  
>> I am getting 404 asking me for jquery.min.map when injecting JQuery using 
>>
>>   ScriptInjector.fromUrl("//
>> ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery.min.js").inject();
>>  
>>  Does anyone have any experience with injecting source maps with Script 
>> Injector?
>>
>>  Thanks,
>> Milan
>>  
>>
>> Maybe not the answer you're looking for, but have you tried GQuery?
>>
>> http://code.google.com/p/gwtquery/
>>  
>  -- 
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


handler for search field keypresses/keyup events not working in gwtchosen 2.0.0-snapshot - workaround?!

2014-10-07 Thread marian lux
Can anyone help me with a workaround (sample code) how to get the 
keyup-events working on gwtchosen 2.0.0-snapshot?
I need this to work with this widget like a suggestbox (if string does not 
exist in the list, I want to add it to the list) for my serach-application.

Here is the post form gwtquery-forum:
https://groups.google.com/forum/#!topic/gwtquery/uX6YKdjBbm8

And here is a detailed description an a bug entry for this:
https://github.com/ArcBees/gwtchosen/issues/104

THX
Marian

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Custom PickList Editor

2014-10-07 Thread Gwt User
Hello,

I've created a custom Widget Picklist (two CellList of User).
Now I want to implement an Editor, that handle the functions addToList and 
removeFromList. 
Which Editor and how should I use? (I have hear of something 
like IsEditor> ...)

Best regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Attaching Source Maps when injecting external java script file

2014-10-07 Thread Jeffrey Chimene
That really is a 404.

Check your sources.

On 10/06/2014 06:52 PM, Milan Cvejic wrote:
> Definitely not the answer that I am looking for. But thanks anyway. 
>
> I am wrapping some jQuery plugin, and I need jQuery as dependence.
>
> On Monday, October 6, 2014 4:02:31 PM UTC+2, jchimene wrote:
>
> On 10/05/2014 02:08 PM, Milan Cvejic wrote:
>> Hi, 
>> I am getting 404 asking me for jquery.min.map when injecting
>> JQuery using 
>>
>> |
>> 
>> ScriptInjector.fromUrl("//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery.min.js
>> 
>> ").inject();
>> |
>>
>> Does anyone have any experience with injecting source maps with
>> Script Injector?
>>
>> Thanks,
>> Milan
>
> Maybe not the answer you're looking for, but have you tried GQuery?
>
> http://code.google.com/p/gwtquery/
> 
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to google-web-toolkit+unsubscr...@googlegroups.com
> .
> To post to this group, send email to
> google-web-toolkit@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New Widget: Window Panel (minimize, maximize/restore, close, resize)

2014-10-07 Thread Anirudh Karthik
Hi Joe, I am trying to add the same functionality to my window widget . can 
u kindly suggest me the code details .
Hoping for your positive reply :) my mail id is rapport...@gmail.com

On Thursday, December 3, 2009 3:32:37 PM UTC+5:30, Joe wrote:
>
> Hello everyone, 
>
> please check out this new widget I have built called: WindowPanel. 
>
> It extends DialogBox widget and it contains no JSNI code. 
>
> It has 4 functionalities: minimize, maximize/restore, close, and 
> resize. 
>
> Please note that the resize functionality is only from the bottom 
> right corner of the window. 
>
> Feedback, discussions, notes, and comments are always welcome. 
>
> The WindowPanel widget exists on: 
>
>http://property-leb.appspot.com/ 
>
> Thank's in advance! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.