Re: Copy to Clipboard

2009-03-25 Thread Kevin Tarn
Hi Harish,
I am sorry I was not aware of I had another version of code doing copy/paste
for FF. FF is complicate to support copy/paste due to user privilage
protection. In addition to your code below, you still need to follow FF's
requirement to open privilage of copy/paste:
http://www.mozilla.org/editor/midasdemo/securityprefs.html

If you only want to make your copy/paste working on TextBox, there is an
easier way. You can use below method to get any user selection:
public static native String copyFrom() /*-{
var sel = $wnd.window.getSelection();
return sel.toString();
}-*/;

And then insert the text string you got into your TextBox.

Kevin

On 3/25/09, Harish Nair  wrote:
>
> I got this code from web its still not working is there any change i should
> make to run and copy text to clipboard.
>
> public static native void copyFrom(String mytext) /*-{
> if (window.clipboardData)
> {
> // IE
> $wnd.window.clipboardData.setData('text', mytext);
> // Netscape
> }
> else if (window.netscape)
> {
>
> netscape.security.PrivilegeManager.enablePrivilege
> ('UniversalXPConnect');
> var clip =
> components.classes['@
> mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard<http://mozilla.org/widget/clipboard;1%27%5D.createInstance%28Components.interfaces.nsIClipboard>);
> if (!clip) return;
>
> //
> var trans =
> Components.classes['@
> mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransfera<http://mozilla.org/widget/transferable;1%27%5D.createInstance%28Components.interfaces.nsITransfera>ble);
> if (!trans) return;
>
> //
> trans.addDataFlavor('text/unicode');
>
> //
> var str = new Object();
> var len = new Object();
> var str =
> 
> Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsS
> tring);
>
> var copytext=mytext;
> str.data=copytext;
> trans.setTransferData("text/unicode",str,copytext.length*2);
> var clipid=Components.interfaces.nsIClipboard;
> if (!clip) return false;
> clip.setData(trans,null,clipid.kGlobalClipboard);
> }
> alert("Following info was copied to your clipboard:\n\n" + mytext);
>
> }-*/;
>
>
> -harry
>
> 2009/3/24 Harish Nair 
>
>> Hi Kevin,
>>
>> This is not working in FF where as its working very well in IE. Please
>> advice me how to do it on FF as the site is going to run on that.
>>
>> -
>> Harry
>>
>>
>> 2009/3/24 Kevin Tarn 
>>
>>> It was tested in IE and Firefox. I am not sure whether it works on Chrome
>>> or Webkit.
>>>
>>> Kevin
>>>
>>>
>>> On 3/24/09, Dmitry Sterinzat  wrote:
>>>>
>>>>
>>>> Does it work only for IE or it's crossbrowser code?
>>>>
>>>> 2009/3/24 Kevin Tarn :
>>>>
>>>> > You can try below JSNI methods:
>>>> > public static native void
>>>> copyFrom(com.google.gwt.user.client.Element
>>>> > element) /*-{
>>>> > $wnd.window.clipboardData.setData('text', element);
>>>> > }-*/;
>>>> >
>>>> > public static native void
>>>> pasteTo(com.google.gwt.user.client.Element
>>>> > element) /*-{
>>>> > $wnd.window.clipboardData.getData(element);
>>>> > }-*/;
>>>> >
>>>> > Kevin
>>>> >
>>>> > On 3/24/09, Harry  wrote:
>>>> >>
>>>> >> Hi,
>>>> >>
>>>> >> My project is that user is enabled to copy the content of a text box
>>>> >> and paste it on another form using 'Copy' button. Please advice how
>>>> to
>>>> >> do it as GWT is not support copying to system clipboard.
>>>> >>
>>>> >> Please help its important.
>>>> >>
>>>> >> Thanks
>>>> >>
>>>> >> Harry
>>>> >>
>>>> >
>>>> >
>>>> > >
>>>> >
>>>>
>>>>
>>>>
>>>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: Easy "List to Tree" Drag-n-Drop

2009-03-24 Thread Kevin Tarn
It doesn't matter what widget you use for GWT-DnD. The dnd operation can be
configured to any AbsolutePanel. So you can put your Tree and List widget in
one AbsolutePanel, and create a DropController for your Tree widget.

Kevin

On 3/25/09, SerBeys  wrote:
>
>
> I've read about GWT-dnd, but I didn't find the examle of List to Tree
> DnD (Only List to List).
> does GWT-dnd library allow to use such kind of DnD?
>
>
> On Mar 24, 10:23 pm, obesga  wrote:
> > There's a GWT-dnd library, search google code.
> >
> > Oskar
> >
> > On 24 mar, 13:36, SerBeys  wrote:
> >
> >
> >
> > > I need to create an application with  List to Tree Drag-n-Drop.
> > > The Tree have some structure, for example:
> >
> > > Root_term
> > > ---Term1
> > > ---Term2
> > > ---Term3
> > > ---Term4
> > > ---Term5
> >
> > > And the user should be able to fill this tree with data from ListBox
> > > using DnD (replace temporary "Term" values with values from ListBox).
> >
> > > The example with GWT-Ext (http://gwt-ext.com/demo/#gridDD) is rather
> > > good, but I need replacing instead of adding nodes.
> >
> > > Please advise simple solution to this problem.
> > > It would be nice not to use the GWT-Ext
> >
>

--~--~-~--~~~---~--~~
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: Copy to Clipboard

2009-03-24 Thread Kevin Tarn
It was tested in IE and Firefox. I am not sure whether it works on Chrome or
Webkit.

Kevin

On 3/24/09, Dmitry Sterinzat  wrote:
>
>
> Does it work only for IE or it's crossbrowser code?
>
> 2009/3/24 Kevin Tarn :
>
> > You can try below JSNI methods:
> > public static native void copyFrom(com.google.gwt.user.client.Element
> > element) /*-{
> > $wnd.window.clipboardData.setData('text', element);
> > }-*/;
> >
> > public static native void pasteTo(com.google.gwt.user.client.Element
> > element) /*-{
> > $wnd.window.clipboardData.getData(element);
> > }-*/;
> >
> > Kevin
> >
> > On 3/24/09, Harry  wrote:
> >>
> >> Hi,
> >>
> >> My project is that user is enabled to copy the content of a text box
> >> and paste it on another form using 'Copy' button. Please advice how to
> >> do it as GWT is not support copying to system clipboard.
> >>
> >> Please help its important.
> >>
> >> Thanks
> >>
> >> Harry
> >>
> >
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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: Copy to Clipboard

2009-03-24 Thread Kevin Tarn
You can try below JSNI methods:
public static native void copyFrom(com.google.gwt.user.client.Element
element) /*-{
$wnd.window.clipboardData.setData('text', element);
}-*/;

public static native void pasteTo(com.google.gwt.user.client.Element
element) /*-{
$wnd.window.clipboardData.getData(element);
}-*/;

Kevin

On 3/24/09, Harry  wrote:
>
>
> Hi,
>
> My project is that user is enabled to copy the content of a text box
> and paste it on another form using 'Copy' button. Please advice how to
> do it as GWT is not support copying to system clipboard.
>
> Please help its important.
>
> Thanks
>
> Harry
> >
>

--~--~-~--~~~---~--~~
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: How to retrieve data as byte[] in GWT from getImageData

2009-03-03 Thread Kevin Tarn
Unfortunately, using JsArrayInteger is very slow:
public byte[] getBitmap() {
//String str = getImageData(0, 0, width, height);
//byte[] ar = new byte[str.length()];
//for (int i=0; i wrote:

>
>
> On 3 mar, 23:47, Kevin Tarn  wrote:
> > Yes. That's what I like to do. Could you give an example of retreiving
> > canvas raw data by GWT instead of JSNI?
>
> Get our JSNI methods the shorter you can. Here, just make it get
> oData.data and return it as a JsArrayNumber; then do all the following
> in Java, with aImgData being the JsArrayNumber.
> My guess is that you could turn it directly to bytes as the array
> length could be computed early from width+height.
>
>
> >
>

--~--~-~--~~~---~--~~
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: How to retrieve data as byte[] in GWT from getImageData

2009-03-03 Thread Kevin Tarn
Yes. That's what I like to do. Could you give an example of retreiving
canvas raw data by GWT instead of JSNI?

Kevin

On Wed, Mar 4, 2009 at 4:18 AM, Matt Bishop  wrote:

>
> This is pretty cool. You should try converting the data in GWT instead
> of JSNI. It could go straight to bytes, or at least it could take
> advantage of GWT's StringBuilder speed.
>
>
> On Mar 1, 4:57 pm, Kevin Tarn  wrote:
> > Forgot to tell: getImageData method convert raw data to a Windows DIB
> > format.
> >
> > Kevin
> >
> > On Mon, Mar 2, 2009 at 8:52 AM, Kevin Tarn  wrote:
> > > I got idea from canvas2image.js(
> http://www.nihilogic.dk/labs/canvas2image/).
> > > So I wrote a JSNI methods as below:
> >
> > > public native String getImageData(int left, int top, int width, int
> > > height) /*-{
> >
> > > var oData = th...@com.messenger.client.framework.canvas
> ::context.getImageData(left,
> > > top, width, height);
> >
> > > var aImgData = oData.data;
> >
> > > var strPixelData = "";
> > > var y = height;
> > > var iPadding = (4 - ((width * 3) % 4)) % 4;
> >
> > > do {
> > > var iOffsetY = width*(y-1)*4;
> > > var strPixelRow = "";
> > > for (var x=0;x > > var iOffsetX = 4*x;
> >
> > > if (aImgData[iOffsetY+iOffsetX+2] == 0 &&
> > > aImgData[iOffsetY+iOffsetX+1] == 0 &&
> > > aImgData[iOffsetY+iOffsetX] == 0) {
> >
> > > strPixelRow += String.fromCharCode(255);
> > > strPixelRow += String.fromCharCode(255);
> > > strPixelRow += String.fromCharCode(255);
> > > } else {
> > > strPixelRow +=
> > > String.fromCharCode(aImgData[iOffsetY+iOffsetX+2]);
> > > strPixelRow +=
> > > String.fromCharCode(aImgData[iOffsetY+iOffsetX+1]);
> > > strPixelRow +=
> > > String.fromCharCode(aImgData[iOffsetY+iOffsetX]);
> > > }
> > > }
> > > for (var c=0;c > > strPixelRow += String.fromCharCode(0);
> > > }
> > > strPixelData += strPixelRow;
> > > } while (--y);
> >
> > > return strPixelData;
> > > }-*/;
> >
> > > As above method, I got a raw data in String object. So I need another
> > > method to convert it to byte array. Here it is:
> >
> > > public byte[] getBitmap() {
> > > String str = getImageData(0, 0, width, height);
> > > byte[] ar = new byte[str.length()];
> > > for (int i=0; i > > ar[i] = (byte)((int)str.charAt(i) & 0xff);
> > > return ar;
> > > }
> >
> > > Hope this is helpful.
> >
> > > Kevin
> >
> > > On Sat, Feb 28, 2009 at 10:41 PM, Fabrício Cabral <
> fabrici...@gmail.com>wrote:
> >
> > >> Could you say how you solved this problem? For historic purpose...
> >
> > >> Thanks in advance!
> >
> > >> > I have solved problem.
> >
> > >> > Kevin
> > >> --
> > >> --fx
> >
>

--~--~-~--~~~---~--~~
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: How to retrieve data as byte[] in GWT from getImageData

2009-03-01 Thread Kevin Tarn
Forgot to tell: getImageData method convert raw data to a Windows DIB
format.

Kevin

On Mon, Mar 2, 2009 at 8:52 AM, Kevin Tarn  wrote:

> I got idea from canvas2image.js(http://www.nihilogic.dk/labs/canvas2image/).
> So I wrote a JSNI methods as below:
>
> public native String getImageData(int left, int top, int width, int
> height) /*-{
>
> var oData = 
> th...@com.messenger.client.framework.canvas::context.getImageData(left,
> top, width, height);
>
> var aImgData = oData.data;
>
> var strPixelData = "";
> var y = height;
> var iPadding = (4 - ((width * 3) % 4)) % 4;
>
> do {
> var iOffsetY = width*(y-1)*4;
> var strPixelRow = "";
> for (var x=0;x var iOffsetX = 4*x;
>
> if (aImgData[iOffsetY+iOffsetX+2] == 0 &&
> aImgData[iOffsetY+iOffsetX+1] == 0 &&
> aImgData[iOffsetY+iOffsetX] == 0) {
>
> strPixelRow += String.fromCharCode(255);
> strPixelRow += String.fromCharCode(255);
> strPixelRow += String.fromCharCode(255);
> } else {
> strPixelRow +=
> String.fromCharCode(aImgData[iOffsetY+iOffsetX+2]);
> strPixelRow +=
> String.fromCharCode(aImgData[iOffsetY+iOffsetX+1]);
> strPixelRow +=
> String.fromCharCode(aImgData[iOffsetY+iOffsetX]);
> }
> }
> for (var c=0;c strPixelRow += String.fromCharCode(0);
> }
> strPixelData += strPixelRow;
> } while (--y);
>
> return strPixelData;
> }-*/;
>
>
> As above method, I got a raw data in String object. So I need another
> method to convert it to byte array. Here it is:
>
> public byte[] getBitmap() {
> String str = getImageData(0, 0, width, height);
> byte[] ar = new byte[str.length()];
> for (int i=0; i ar[i] = (byte)((int)str.charAt(i) & 0xff);
> return ar;
> }
>
>
> Hope this is helpful.
>
> Kevin
>
>
>
> On Sat, Feb 28, 2009 at 10:41 PM, Fabrício Cabral wrote:
>
>>
>> Could you say how you solved this problem? For historic purpose...
>>
>> Thanks in advance!
>>
>> > I have solved problem.
>> >
>> > Kevin
>> --
>> --fx
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
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: How to retrieve data as byte[] in GWT from getImageData

2009-03-01 Thread Kevin Tarn
I got idea from canvas2image.js(http://www.nihilogic.dk/labs/canvas2image/).
So I wrote a JSNI methods as below:

public native String getImageData(int left, int top, int width, int
height) /*-{

var oData =
th...@com.messenger.client.framework.canvas::context.getImageData(left,
top, width, height);

var aImgData = oData.data;

var strPixelData = "";
var y = height;
var iPadding = (4 - ((width * 3) % 4)) % 4;

do {
var iOffsetY = width*(y-1)*4;
var strPixelRow = "";
for (var x=0;xwrote:

>
> Could you say how you solved this problem? For historic purpose...
>
> Thanks in advance!
>
> > I have solved problem.
> >
> > Kevin
> --
> --fx
>
> >
>

--~--~-~--~~~---~--~~
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: GWT on NetBeans 6.5 / gwt4nb

2009-02-26 Thread Kevin Tarn
You have to unjar GWT4NB to a directory. Modify build.xml in extracted
directory, and then jar the whole package back. Reinstall your revised
GWT4NB in NetBeans.

Kevin

On Fri, Feb 27, 2009 at 12:13 AM, Selfish Gene  wrote:

>
> Any changes to build.xml are overwritten by GWT4NB.
>
> Are there any entries I can add to gwt.properties that might help me
> solve this problem.
>
>
>
> On Feb 26, 9:37 am, Kevin Tarn  wrote:
> > Jason's blog did a good job:
> http://lemnik.wordpress.com/2008/07/27/fixing-compilation-in-gwt4nb/
> >
> > Kevin
> >
> > On Thu, Feb 26, 2009 at 11:32 PM, Selfish Gene 
> wrote:
> >
> > > I am trying to migrate from eclipse to Netbeans as I felt 6.5 more
> > > compelling and the migration is definitely not an easy task. I am
> > > seeing lot of OutofMemory errors. I modified project.properties and
> > > used "jvmargs=-Xmx512m" for GWT compiler, shell. But It still breaks
> > > some place.
> >
> > >
> ---
> ---
> --
> > > Starting GlassFish V3
> > > GlassFish V3 Start Failed
> > > C:\My Documents\NetBeansProjects\Nodal\ShadowSettlements\nbproject
> > > \build-gwt.xml:33: Deployment error:
> > > GlassFish V3 Start Failed
> > > See the server log for details.
> > > BUILD FAILED (total time: 2 minutes 4
> >
> > >
> ---
> ---
> --
> >
> > > The target in build.xml that breaks
> >
> > >
> ---
> ---
> --
> > > > > depends="init,compile,compile-jsps,-do-compile-single-jsp,dist"
> > > if="netbeans.home">
> > >
> > >
> > >
> > >
> >
> > >
> ---
> ---
> --
> >
> > > Any suggestions would be greatly appreciated.
> >
> > > Thanks
> > > -R
> >
>

--~--~-~--~~~---~--~~
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: How to build showcase example without existing bin folder?

2009-02-26 Thread Kevin Tarn
Memory Heap error permanent fix for GWT4NB





Inbox
X





Reply to all
Forward
Reply by chat
Filter messages like this
Print
Add to Contacts list
Delete this message
Report phishing
Report not phishing
Show original
Show in fixed width font
Show in variable width font
Message text garbled?
Why is this spam/nonspam?
AcidCow to Google
show details Feb 11
Reply


[ERROR] Unexpected internal compiler error java.lang.OutOfMemoryError:
Java heap space
[ERROR] Out of memory; to increase the amount of memory, use the -Xmx
flag at startup (java -Xmx128M ...)

After being annoyed with this problem I ended up patching the GWT4NB
plugin module to allow for a Max heap of 512Mb...  I did the same for
google hosted mode browser thingy - since the hosted mode was also
running out of memory.  This is now a permanent fix so I no longer
have to go and change the ant build file each time I load the project.

you can download the module from here:
https://secure.lancet.co.za/PathPortal/org-netbeans-modules-gwt4nb_PATCHED_MEMORY_ISSUE.nbm
 - You'll need to uninstall your previous GWT4NB and install this one
afterwards.

otherwise if you'd rather do it yourself...
then download the GWT4NB module and open it in winrar/some other
archiver...
find the .jar file (\netbeans\modules\org-netbeans-modules-gwt4nb.jar)
and extract and open that in winrar...
find the build-gwt.xml file (org\netbeans\modules\gwt4nb\resources
\build-gwt.xml)...
then make the following changes (note the 512m in both cases and
compare to your build file):
1)Fixes memory issue on compile (maxmemory="512m"):

 

2)Fixes memory issue when loading into google's hosted mode
application (-Xmx512m):

 

...Once you've made the necessary changes, save and overwrite the
build-gwt.xml file in the jar archive...
then overwrite the jar archive in the nbm archive.




On Sun, Feb 22, 2009 at 12:10 AM, SaveTheHero  wrote:

>
> I am using GWT 1.5.3, NetBeans 6.5, GWT4NB 2.5.0
>
> Loading module 'com.google.gwt.sample.showcase.Showcase'
>   [ERROR] Unable to load class
> 'com.google.gwt.sample.showcase.generator.ShowcaseGenerator'
> java.lang.ClassNotFoundException:
> com.google.gwt.sample.showcase.generator.ShowcaseGenerator
>
>
> And the Showcase-compile can't build project without classes in bin
> folder.
>
> Please help!
>
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
>
>

--~--~-~--~~~---~--~~
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: GWT on NetBeans 6.5 / gwt4nb

2009-02-26 Thread Kevin Tarn
Jason's blog did a good job:
http://lemnik.wordpress.com/2008/07/27/fixing-compilation-in-gwt4nb/

Kevin

On Thu, Feb 26, 2009 at 11:32 PM, Selfish Gene  wrote:

>
> I am trying to migrate from eclipse to Netbeans as I felt 6.5 more
> compelling and the migration is definitely not an easy task. I am
> seeing lot of OutofMemory errors. I modified project.properties and
> used "jvmargs=-Xmx512m" for GWT compiler, shell. But It still breaks
> some place.
>
>
>
> 
> Starting GlassFish V3
> GlassFish V3 Start Failed
> C:\My Documents\NetBeansProjects\Nodal\ShadowSettlements\nbproject
> \build-gwt.xml:33: Deployment error:
> GlassFish V3 Start Failed
> See the server log for details.
> BUILD FAILED (total time: 2 minutes 4
>
>
> 
>
> The target in build.xml that breaks
>
>
>
> 
> depends="init,compile,compile-jsps,-do-compile-single-jsp,dist"
> if="netbeans.home">
>
>
>
>
>
>
> 
>
> Any suggestions would be greatly appreciated.
>
> Thanks
> -R
> >
>

--~--~-~--~~~---~--~~
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: how to dynamically update image on the app

2009-02-25 Thread Kevin Tarn
You can try:
image.setUrl("");
image.setUrl(url);

Kevin

On Thu, Feb 26, 2009 at 10:26 AM, Peter Radmanesh  wrote:

> Maybe the data returned by the URL is cached; have you tried adding a
> time-stamp to the URL (i.e.
> http://xxx.xxx.xx/graph.php?width=320&height=145&ts=)
>
>
> On Wed, Feb 25, 2009 at 5:26 PM, mars  wrote:
>
>>
>> hi,
>>
>> i have images on my application, which set their url to the following"
>>
>> http://xxx.xxx.xx/graph.php?width=320&height=145
>>
>> this url return an image created by server, it changes dynamically, so
>> in my code, i have:
>>
>>
>> image = new Image(url);  (url is the above)
>> add(image);
>>
>> but once the image is loaded, it stay static forever, won't updated
>> following server.
>>
>> i try different way to udpate image:
>>
>> public void udpate() {
>>   image = null;
>>   image = new Image(url);
>> }
>> but still it stay static
>>
>> can anyone help? thanks!!!1
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: How to retrieve data as byte[] in GWT from getImageData

2009-02-25 Thread Kevin Tarn
I have solved problem.

Kevin

On Thu, Feb 26, 2009 at 12:45 AM, Kevin Tarn  wrote:

>
> I have a canvas widget. I want to use JSNI to get canvas bitmap by
> getImageData method. Is there a way to return getImageData output to
> Java byte[]?
>
> Kevin
> >
>

--~--~-~--~~~---~--~~
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 retrieve data as byte[] in GWT from getImageData

2009-02-25 Thread Kevin Tarn

I have a canvas widget. I want to use JSNI to get canvas bitmap by
getImageData method. Is there a way to return getImageData output to
Java byte[]?

Kevin
--~--~-~--~~~---~--~~
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 retrieve data in GWT from getImageData

2009-02-25 Thread Kevin Tarn
I have a canvas widget. I want to use JSNI to get canvas bitmap by
getImageData method. Is there a way to return getImageData output to Java
byte[]?

Kevin

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Given a HTML width and know the height required for content

2009-02-05 Thread Kevin Tarn
If the width of HTML is given, is it possible to get the required height to
completely show the HTML content?

Best
Kevin

--~--~-~--~~~---~--~~
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: GWT and Business Intelligence.

2009-01-15 Thread Kevin Tarn
GWT is just a framework that can let a Java developer utilize OOP to develop
a web service easily. Under this benefit, it also easily integrate existing
server part technology or any other services already opened in internet.

Before GWT, there are a lot of 3rd party libraries implemented by AJAX. The
web designer who familiar with javascript may not be required to familiar
with OO design. So your question is concerned by what type and capability of
your human resource in your organization.

As we can foresee, more and more web services or javascript libraries will
have a wrapper in GWT. There are also bunch of growing libraries that are
implemented in purely GWT and opened source. It will minimize the effort to
create a new service. GWT's branch, OOPHM, that has already integrated
existing web browsers as host browser in development environment. The
developer can easily debug and develop consistent solution in variant
commercial browser.

Kevin

On Wed, Jan 14, 2009 at 7:53 PM, Miroslav Genov wrote:

>
> Hello,
>  First I wanna thank on all of you for the answers. As it seems there
> is an already solution that is doing this, but I was wondering if using
> of GWT is appropriate for that kind of applications ?
>
>  My idea was to see whether there are people in the mailing list that
> are having experience with such or similar applications.
>
>  With most of the web frameworks the developers can reach the final
> goal but on what costs ? - time for learning, time for development and
> etc.
>
>
> Regards,
>   Miroslav
>
>
>
> On Wed, 2009-01-14 at 01:59 -0800, Thomas Broyer wrote:
> >
> >
> > On 13 jan, 13:10, Kevin Tarn  wrote:
> > > Vanilla seems to be blocked for download.
> >
> > Actually seems like a broken link (and outdated site: Vanilla is now
> > at version 1.3).
> > Downloads can be found here: http://www.bpm-conseil.org/
> >
> > (I wouldn't look at the source code if I were you; it's just a proof
> > that it can be done, not at all a "reference implementation" that you
> > would use as an inspiration)
> > >
>
>
> >
>

--~--~-~--~~~---~--~~
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: GWT and Business Intelligence.

2009-01-14 Thread Kevin Tarn
Thanks, Thomas.

Kevin

On Wed, Jan 14, 2009 at 5:59 PM, Thomas Broyer  wrote:

>
>
>
> On 13 jan, 13:10, Kevin Tarn  wrote:
> > Vanilla seems to be blocked for download.
>
> Actually seems like a broken link (and outdated site: Vanilla is now
> at version 1.3).
> Downloads can be found here: http://www.bpm-conseil.org/
>
> (I wouldn't look at the source code if I were you; it's just a proof
> that it can be done, not at all a "reference implementation" that you
> would use as an inspiration)
> >
>

--~--~-~--~~~---~--~~
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: GWT and Business Intelligence.

2009-01-13 Thread Kevin Tarn
Vanilla seems to be blocked for download.

Kevin

On Tue, Jan 13, 2009 at 6:57 PM, Thomas Broyer  wrote:

>
>
> On 12 jan, 21:32, Miroslav Genov wrote:
> > Hello ,
> >I have a question regarding using of GWT for the creation of a
> > intranet system for business intelligence. Is GWT good for creation of
> > such application ?
>
> Vanilla's UI is built with GWT.
> http://ns36005.ovh.net/web/guest/news/articles/vanilla
>
> Does that answer your question? ;-)
> >
>

--~--~-~--~~~---~--~~
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: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread Kevin Tarn
Did you define your servlet in web.xml that is located in your NetBeans
project directory's web\WEB-INF?

Ex.

Login
xxx.xxx.server.LoginServiceImpl


Login
/xxx.xxx.xxx/LoginService


If you deploy your project by WAR file, you just need to copy WAR to your
tomcat. You don't need to write mapping in tomcat's conf.

Kevin

On Sat, Jan 10, 2009 at 12:47 AM, joe young  wrote:

>
> where is the classpath of the hosted browser?
>
> there is no classes in /tomcat directory, do i need to copy the
> classes to /tomcat//webapps/ROOT/WEB-INF/classes/  ??
>
>
>
> On Jan 9, 11:36 am, "olivier FRESSE"  wrote:
> > is com.sun.dmt.admin.server.login.LoginServiceImpl in the classpath of
> the
> > hosted browser ?
> > If you use the Tomcat instance of the hosted browser, that should be
> enough.
> >
> > 2009/1/9 joe young 
> >
> >
> >
> > > I'm having trouble calling RPC in shell hosted mode.
> >
> > > Currently I have a simple login page that use rpc to validate the user/
> > > password.  And when I tried running with shell hosted mode, it always
> > > give me an onFailure() Error "ERROR"
> > >  final AsyncCallback callback = new AsyncCallback() {
> > >public void onSuccess(Object result) {
> > >// take the result coming from the server
> > >boolean ok = Boolean.valueOf(result.toString
> > > ()).booleanValue();
> > >if (ok) {
> > >MessageBox.alert("Success", "Successfully logged
> > > in!");
> > >} else {
> > >MessageBox.alert("Invalid", "Your User/Password
> > > combination is incorrect.");
> > >}
> > >}
> > >public void onFailure(Throwable caught) {
> > >MessageBox.alert("Error", "ERROR:");
> > >}
> > >};
> >
> > > From the error log, i got the following 3 errors.
> > > ---
> > > [INFO] StandardContext[]Marking servlet LoginService as unavailable
> > > ---
> > > [WARN] StandardContext[]Error loading WebappClassLoader
> > >  delegate: false
> > >  repositories:
> > > --> Parent Classloader:
> > > sun.misc.launcher$appclassloa...@1372a1a
> > >  com.sun.dmt.admin.server.login.LoginServiceImpl
> > > java.lang.ClassNotFoundException:
> > > com.sun.dmt.admin.server.login.LoginServiceImpl
> > >at org.apache.catalina.loader.WebappClassLoader.loadClass
> > > (WebappClassLoader.java:1340)
> > >at org.apache.catalina.loader.WebappClassLoader.loadClass
> > > (WebappClassLoader.java:1189)
> > >at org.apache.catalina.core.StandardWrapper.loadServlet
> > > (StandardWrapper.java:964)
> > >at org.apache.catalina.core.StandardWrapper.allocate
> > > (StandardWrapper.java:687)
> > >at org.apache.catalina.core.StandardWrapperValve.invoke
> > > (StandardWrapperValve.java:144)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at org.apache.catalina.core.StandardContextValve.invokeInternal
> > > (StandardContextValve.java:198)
> > >at org.apache.catalina.core.StandardContextValve.invoke
> > > (StandardContextValve.java:152)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at org.apache.catalina.core.StandardHostValve.invoke
> > > (StandardHostValve.java:137)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.valves.ErrorReportValve.invoke
> > > (ErrorReportValve.java:118)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:102)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at org.apache.catalina.core.StandardEngineValve.invoke
> > > (StandardEngineValve.java:109)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> > > 929)
> > >at
> > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> > > 160)
> > >at org.apache.coyote.http11.Http11Processor.process
> > > (Http11Processor.java:799)
> > >at org.apache.coyote.http11.Http11Protocol
> > > $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> > >at org.apache.tomcat.util.net.TcpWorkerThread.runIt
> > > (PoolTcpEndpoint.java:577)
> > >at org.apache.tomcat.

Re: GWT 1.4: Getting file path for FileUpload?

2008-12-29 Thread Kevin Tarn
You cannot rely on getFilename to return full path of file. It depens on
browser. For example, Firefox did not return full path of it.

Kevin

On Tue, Dec 30, 2008 at 1:12 AM, Lothar Kimmeringer wrote:

>
> zilvonias schrieb:
>
> > 1. User selects a file using the FileUpload widget.
> > 2. GWT client requests the filename and filepath of the file selected
> > from the FileUpload widget.
>
> fileUpload.getFilename should return the filename including the
> absolute path. So you "only" need to separate the two parts
> using indexOf and substring.
>
>
> Regards, Lothar
>
> >
>

--~--~-~--~~~---~--~~
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: GWT 1.4: Getting file path for FileUpload?

2008-12-29 Thread Kevin Tarn
There is no way to get file path from client side due to browser's security
policy. You have to do it via a signed java applet or get it from your
servlet.

Kevin

On Mon, Dec 29, 2008 at 11:52 PM, zilvonias  wrote:

>
> Hi all!
>
> Is there a way, client-side, to fetch the filepath for a FileUpload
> widget, i.e.
>
> 1. User selects a file using the FileUpload widget.
> 2. GWT client requests the filename and filepath of the file selected
> from the FileUpload widget.
>
> I'm currently using GWT 1.4.61.  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: How can do mapping for another servlet

2008-12-24 Thread Kevin Tarn
There is no difference of mapping servlet or GWT-RPC. You can do the same
way to map your servlet in gwt.xml.

Kevin

On Wed, Dec 24, 2008 at 1:44 PM, avd  wrote:

>
> Hello sir,
> Thanks to GWT froups to solve my privious problems,really its very
> helpful to develop my project.
> now i have an another problem-I have two programs First is applet and
> Second is a servlet i using it for upload a image to server side.i had
> intregate applet in gwt by using Applet Intregration module but how
> can i use my servlet because in gwt.xml file i can only mapping for
> serviceImpl file.so please help me for mapping another servlet in gwt.
>
>
> with regards
> avdhesh
> >
>

--~--~-~--~~~---~--~~
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: problem with Date

2008-12-23 Thread Kevin Tarn
SimpleDateFormat.format is used to convert java.util.Date object to a String
object. You used it in oposite direction by converting a String object to
Date object. That's the reason of exception happened.

On Tue, Dec 23, 2008 at 10:25 PM, arnaud wrote:

>
> That is the value of  updatedParameters[i][1]  Thu Dec 18 00:00:00 UTC
> +0100 2008.
>
> Fred Janon a écrit :
> > The format would have to be "MM/dd/" is you want month/day/year. MM
> is
> > the month, mm is the minutes. But that's not the answer to your question,
> > sorry.
> >
> > Fred
> >
> > On Tue, Dec 23, 2008 at 21:02, arnaud 
> wrote:
> >
> > >
> > > Hello every one,
> > > i write this code to format a date
> > >
> > >  SimpleDateFormat   sdf = new SimpleDateFormat  ("mm/dd/");
> > >   String date =
> > > sdf.format(updatedParameters
> > > [i][1]);
> > >
> paramValue.setDateField(sdf.parse(date));
> > >
> > > where is a String and i have tis error:
> > >
> > > java.lang.IllegalArgumentException: Cannot format given Object as a
> > > Date
> > >
> > > What can i do please?
> > > Arnaud
> > > >
> > >
> >
>

--~--~-~--~~~---~--~~
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: problem with Date

2008-12-23 Thread Kevin Tarn
Is updatedParameters[i][1] a Date type of object?

Kevin

On Tue, Dec 23, 2008 at 8:02 PM, arnaud wrote:

>
> Hello every one,
> i write this code to format a date
>
>  SimpleDateFormat   sdf = new SimpleDateFormat  ("mm/dd/");
>   String date =
> sdf.format(updatedParameters
> [i][1]);
>   paramValue.setDateField(sdf.parse(date));
>
> where is a String and i have tis error:
>
> java.lang.IllegalArgumentException: Cannot format given Object as a
> Date
>
> What can i do please?
> Arnaud
> >
>

--~--~-~--~~~---~--~~
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: So I want to make a better-looking radio group...

2008-12-23 Thread Kevin Tarn
I can't find ScrollTable widget in GWT's library. Is that your custom
widget? What is its parent class? If you use ScrollPanel as the holder of
HorizontalPanel, the dummy label cannot be added for ScrollPanel. Instead,
the width of child widget of HorizontalPanel should be given, and simply set
HorizontalPanel's alignment is enough.

Could you post some of your codes? It will be helpful to find out what's the
problem.

Kevin


On Tue, Dec 23, 2008 at 6:06 PM, dduck wrote:

>
> On Dec 22, 2:13 pm, "Kevin Tarn"  wrote:
> > You can add a dummy Label object into right most side, and setCellWidth
> of
> > label widget to 100%.
>
> A good suggestion, but it doesn't fix the real problem.
>
> The table is a ScrollTable with the following style in the CSS
>
>
> .gwt-ScrollTable {
>  border-color: #aaa;
>  border-style: solid;
>  border-width: 1px 0px 1px 1px;
> }
>
> 
>
> That's the default style for the ScrollTable.
>
> The solid border style apparently means that internally in the cell
> the solid border is inherited into my widget - a HorizontalPanel that
> I add the images to. Hence, the images are separated by a bit of white
> space and a solid, vertical line.
>
> Anders
> >
>

--~--~-~--~~~---~--~~
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: TabPanel listeners

2008-12-22 Thread Kevin Tarn
Does addTabListener not enough for your requirement?

Kevin

On Mon, Dec 22, 2008 at 10:58 PM, jake H  wrote:

>
> Hello,
> I m creating a simple tabpanel with subpanels like the one follows
>
>  TabPanel tpanel = new TabPanel();
>  tpanel.add(new HTML("tbp"),"Basic");
>  TabPanel subpanel = new TabPanel();
>
>
>  subpanel.add(new HTML("aaa"),"Two");
>  subpanel.add(new HTML("aaa"),"Three");
>  subpanel.selectTab(0);
>  tpanel.add(subpanel,"Basic");
>  tpanel.add(new HTML("tbp"),"Basic");
>
> I want to ask if its possible with tabListeners , not to create the
> interface from the start but when the user press the One subpanel for
> example then it will load whatever it wants.
>
> Basic  | Basic | Basic
> |
> One | Two | Three  , by pressing One then load the stuff. I dont want
> to load them all from the beginning.
>
> Ty.
> >
>

--~--~-~--~~~---~--~~
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: So I want to make a better-looking radio group...

2008-12-22 Thread Kevin Tarn
You can add a dummy Label object into right most side, and setCellWidth of
label widget to 100%.

Kevin

On Mon, Dec 22, 2008 at 9:08 PM, dduck wrote:

>
> Hi,
>
> For reasons that seems good and sufficient, I would like to create my
> own radio-group-like group of buttons or images that represent
> selecting one state from 4 possible ones. Basically I would like to do
> this:
>
> ...
>
> I would like to insert this as a widget for a row of data in a table.
>
> Unfortunately I can't make the images flush against each other.
> Instead I get an ugly gap between them.
>
> Am I using the correct class? I have used Image, and use
> ClickListeners to change the images accordingly, but should I perhaps
> use e.g. PushButton?
>
> Any suggestions, help?
>
> Anders
> >
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-22 Thread Kevin Tarn
Glad to know you have solve it.

Kevin

On Mon, Dec 22, 2008 at 7:27 PM, ArunDhaJ  wrote:

>
> Hi,
> I got this problem fixed.. :-)
> I started using gwt with IE6 and later upgraded to IE7. Till then it
> was working fine.
> 3 days back I uninstalled IE7 and this problem started.
> Today I installed IE7 again to check this and now its working
> fine... :-) I dont know the reason...
>
> Please let me know if you could able to infer the root cause.
>
> Thanks Kevin and Ian for your support. This discussion was worth and I
> learnt few internals of GWT and Tomcat from your suggestions.
>
> Regards
> ArunDhaJ
> www.arundhaj.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-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: 3D button with 3 images

2008-12-21 Thread Kevin Tarn
I implemented custom button by a DecoratedPanel, and sinkEvents to process
mouse click, over, etc.

Kevin

On Sun, Dec 21, 2008 at 3:09 AM, mbazs  wrote:

>
> Hi,
>
> I'm a beginner in GWT, but I have a problem at this very beginning.
> I'd like to create a custom 3D button (a sliced one, with a left,
> center and right part, center should be repeated), but as I can see,
> Button class doesn't seem to provide a way to achieve this (it doesn't
> have a 1x3 pattern that can be seen at DialogBox class (3x3 table) ).
>  Any ideas?
>
> Thx
> MB
>
> >
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-21 Thread Kevin Tarn
Hi Arun,
Did you have packaged gwt-servlet into your WAR file? Please only put
gwt-user.jar into your WAR. Regarding APR, you can download a DLL and place
it into \windows\system32 or your tomcat's bin directory, and then restart
tomcat.

http://tomcat.heanet.ie/native/1.1.12/binaries/win32/tcnative-1.dll

Kevin

On Sun, Dec 21, 2008 at 7:35 PM, ArunDhaJ  wrote:

>
> Hi,
> I'm experiencing the same problem with Apache tomcat servers too... :-
> (
> I've started the Apache tomcat server and tried accessing a site
> configured within it. It too gives "The page cannot be displayed"
> error.
>
> I've enabled Valve configuration. It just created an empty file, still
> no logs within it
>
> one of the log shows an error. may be this may throw light on some
> thing
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
>
> Is there any problem with Tomcat or Java??? shall I reinstall Java?
>
> Regards
> ArunDhaJ
> >
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-20 Thread Kevin Tarn
Yes. GWT's host browser used embedded tomcat server. It didn't use your
installed standalone tomcat. Is your problem disappearred in normal browser,
ex. IE? If normal browser has same problem, please check the Valve log.

In addition, as my experience, it's not difficult to migrate to 1.5 form
1.4.62. You can get a try. Using normal browser as hosted browser is
essential for development.

Kevin

On Sun, Dec 21, 2008 at 1:26 PM, ArunDhaJ  wrote:

>
> I've cleared the cache, temporary internet files and cleanup, but
> still the problem persists.
>
> As I checked the gwt's tomcat config folder, Valve component was not
> configured. I tried copying the server.xml file from Apache Tomcat
> 6.0.16 and uncommented the AccessLogValve. It seems the gwt shell
> didnt considered the file and didnt log.
>
> I'm using gwt 1.4.62. I suppose I cant use OOPHM.
>
> Regards
> ArunDhaJ
> >
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-20 Thread Kevin Tarn
Hi Arun,
If the problem only happened on GWT's hosted browser, I would suggest you to
change GWT 1.53 to GWT OOPHM branches. OOPHM can let you pick firefox or IE
as hosted browser. I used it for a while and satisfied by it. The current
build has also merged recent 1.53 release.

Kevin

On Sun, Dec 21, 2008 at 11:59 AM, Kevin Tarn  wrote:

> I think it should not be the cache problem because the GWT's sample project
> got the same result according to Arun. He should get into HTTP server to
> find out what resource cannot be requested by HTTP server. HTTP 400 comes
> from server, I don't think the result related to GWT's shell.
>
> Kevin
>
>
> On Sun, Dec 21, 2008 at 11:43 AM, Ian Bambury wrote:
>
>> It could be a caching problem. This might be worth a try (if you get
>> really desperate and you are convinced everything else is OK).
>> Clear all temporary files from IE.
>> Delete all the temporary files from the project (www, bin, tomcat) and
>> from any other project if paranoid or if you have changed the package name
>> recently to something you might have used before.
>> Click on the project in Eclipse. Press F5,
>> then do a project | clean.
>>
>> Ian
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-20 Thread Kevin Tarn
I think it should not be the cache problem because the GWT's sample project
got the same result according to Arun. He should get into HTTP server to
find out what resource cannot be requested by HTTP server. HTTP 400 comes
from server, I don't think the result related to GWT's shell.

Kevin

On Sun, Dec 21, 2008 at 11:43 AM, Ian Bambury  wrote:

> It could be a caching problem. This might be worth a try (if you get really
> desperate and you are convinced everything else is OK).
> Clear all temporary files from IE.
> Delete all the temporary files from the project (www, bin, tomcat) and from
> any other project if paranoid or if you have changed the package name
> recently to something you might have used before.
> Click on the project in Eclipse. Press F5,
> then do a project | clean.
>
> Ian
>
> >
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-20 Thread Kevin Tarn
The information is too rough. Did you set Tomcat Vavle to get more detail
log? You can refer to below link:
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

Kevin

On Sun, Dec 21, 2008 at 11:20 AM, ArunDhaJ  wrote:

>
> This is the only log captured in GWT Development shell
> >>> [INFO] Starting HTTP on port 
>
> Immediately hosted browser shows "The page cannot be found"
> :-(
> :-(
>
> Regards
> ArunDhaJ
> >
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-20 Thread Kevin Tarn
Did you try to see the request log from tomcat to see which resource caused
HTTP400?

Kevin

On Sun, Dec 21, 2008 at 2:14 AM, ArunDhaJ  wrote:

>
> Nope. It too produces same error...
>
> HTTP 400 - Bad request
>
> Regards
> ArunDhaJ
> >
>

--~--~-~--~~~---~--~~
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: shell fails loading

2008-12-20 Thread Kevin Tarn
Can you successful run GWT's sample in shell?

Kevin

On Sun, Dec 21, 2008 at 12:46 AM, ArunDhaJ  wrote:

>
> They are perfectly intact. Assuming some gwt files got corrupted,
> replaced with fresh gwt package and created a new application. But
> still the problem persists.
>
> Regards
> ArunDhaJ
> >
>

--~--~-~--~~~---~--~~
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: How to create a website using GWT

2008-12-20 Thread Kevin Tarn
Please follow below link information:
https://gwt4nb.dev.java.net/

Kevin

On Sat, Dec 20, 2008 at 9:19 PM, Venkat  wrote:

>
> Hi All,
>
> I am new to GWT, I would like to know how to create a website using
> GWT in Netbeans, I mean not with controls as we use in Eclipse IDE. I
> am sorry .If I am not clear.
>
> Thanks
> Venkat
> >
>

--~--~-~--~~~---~--~~
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: images don't show in IE

2008-12-20 Thread Kevin Tarn
It might be not related though. But why do you call sos.flush after
sos.close?

Kevin

On Sat, Dec 20, 2008 at 6:41 AM, L Frohman  wrote:

>
> Thanks,
> my servlet:
>
> public class ThumbnailServlet extends HttpServlet {
>private static Log s_logger =
> LogFactory.getLog(ThumbnailServlet.class);
>private static final long serialVersionUID = 1L;
>
>public void doGet(HttpServletRequest request, HttpServletResponse
> response)
> throws ServletException, IOException {
>response.setContentType("image/JPEG");
>ServletOutputStream sos = response.getOutputStream();
>BasicDataSource basicDataSource =
>
> (BasicDataSource)WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean("dataSource");
>try {
>Class.forName(basicDataSource.getDriverClassName());
>Connection conn =
> DriverManager.getConnection(basicDataSource.getUrl(),
> basicDataSource.getUsername(), basicDataSource.getPassword());
>Statement stmt = conn.createStatement();
>ResultSet rs = stmt.executeQuery("select thumbnail
> from construct_data
> where id_construct = " + request.getParameter("id"));
>if ( rs.next() ) {
>byte[] b = rs.getBytes(1);
>if (b!=null) {
>sos.write(b);
>}
>}
>stmt.close();
>rs.close();
>conn.close();
>}
>catch (Exception e) {
>s_logger.error("Failed request for thumbnail for ID:
> \"" +
> request.getParameter("id") + "\"", e);
>}
>sos.close();
>sos.flush();
>}
>
>public void doPost(HttpServletRequest request, HttpServletResponse
> response) throws ServletException, IOException {
>   ...
>}
> }
>
> --
> From: 
> Sent: Friday, December 19, 2008 1:56 PM
> To: "Google Web Toolkit" 
> Subject: Re: images don't show in IE
>
> >
> > Are you doing some thing like response.setContentType("image/jpeg") in
> > your servlet.
> >
> > Perhaps posting some of you servlet might help.
> >
> > On Dec 19, 2:58 pm, "L Frohman"  wrote:
> >> My GWT page displays a bunch of .jpg images, and they display fine in
> all
> >> browsers, except for IE. The URL for the jpg image is a
> >> servlet that generates the jpg, so there is no ".jpg" extension. In IE,
> >> no images show, either in web or hosted mode. In hosted mode,
> >> I set a breakpoint on an onclick for a button, so I could click it and
> >> look at the page .html in the debugger. None
> >> of the __pendingSrc= in the img tag had changed to src=. Does anyone
> know
> >> what would cause this?
> > >
>
> >
>

--~--~-~--~~~---~--~~
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: Selection of cells in Flex Table

2008-12-19 Thread Kevin Tarn
You need to call FlexTable.addTableListener, and so your operations in
onCellClicked.

Kevin

On Fri, Dec 19, 2008 at 9:13 PM, Fameeda wrote:

>
> Hi,
>
> We have a flex table and require user to be able to select cells in
> it. Multiple cells are also to be selected. Once selected we need to
> do some operation on selected cells like merging them.
> Is it possible to select cells either by mouse/keyboard.
> Can someone please guide on how we can achieve this.
>
> Thanks,
> Fameeda
> >
>

--~--~-~--~~~---~--~~
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: Dialogs BP: Do I need to remove the listeners used for widgets inside a dialog and detach the dialog?

2008-12-18 Thread Kevin Tarn
It depends on your application purpose. If you want to keep Dialog instance
for furthur use, you can keep the reference variable not to set it to null.
GWT eases the developer to remember destroying widgets.

When you set a widget's reference to null, GWT will free the resource
automatically.

Kevin

On Thu, Dec 18, 2008 at 4:58 PM, Fred Janon  wrote:

> I use a couple of dialogs that are created and shown by clicking on buttons
> on a page. The dialogs have widgets with listeners. Once the user is done
> with a dialog, it's hidden (I guess there is no Dialog.destroy method or
> equivalent). The dialogs can be used as many times as the user clicks on the
> buttons. Do I need to remove the listeners and detach the dialog when the
> dialog is hidden? Do I need to create each dialog only once and re-use it?
> What the best practices for dialogs?
>
> Thanks
>
> Fred
>
>
> >
>

--~--~-~--~~~---~--~~
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: How to close application using GWT code

2008-12-17 Thread Kevin Tarn
Use JSNI:
/**
 * Close browser window.
 */
public static native void closeBrowser()
/*-{
$wnd.close();
}-*/;

Kevin

On Wed, Dec 17, 2008 at 10:46 PM, Arul
wrote:

>
> Hi,
>  I have a button called close, when selecting the button I want the
> application gets closed instead selecting exit button either IE
> browser or hosted browser window exit button.
>
>  In VB, there would be function to achive this but in GWT I am unable
> to find this?
>
> Could anone send me the code?
>
> Thanks
> Arul
> >
>

--~--~-~--~~~---~--~~
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: 2 column flex table with another table inside

2008-12-16 Thread Kevin Tarn
Did you ever try to use getCellFormatter().setStyleName to give your cell
specific CSS style?

Kevin

On Wed, Dec 17, 2008 at 2:48 AM, mwaschkowski wrote:

>
> No ideas? Am I the only one that ran into this kind of situation?
>
> On Dec 13, 9:01 am, mwaschkowski  wrote:
> > Hi,
> >
> > I ran into some difficulty with alignment today with a 2 column table:
> >
> > Col 1 | Col 2
> > x   | y
> > x   | inner table
> > x   | y
> >
> > What I found is I wanted to have the inner table set to cell padding
> > 5, but the resulting table ended up with a 5px space on left side of
> > inner table looking like:
> >
> > Col 1 | Col 2
> > x   | y
> > x   |  inner table
> > x   | y
> >
> > I managed to work around it, by adding a column in the middle and then
> > playing around with the cell spacing and sizing, but I'm figuring
> > there may be a better way. Anyone know of a best practice approach to
> > this? Please note that I do want the first column to be the width of
> > the largest element in the column, and I'm looking for something
> > relatively simple so I can consistently use it when this crops up
> > again.
> >
> > Thanks!
> >
> > Mark
> >
>

--~--~-~--~~~---~--~~
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: Accessing a Java method from external javascript

2008-12-16 Thread Kevin Tarn
One way you can bridge a javascript function that is inside a JSNI method to
your js function. Ex.:

In a JSNI:

public void foo_wrapper(JNITest obj)
/*-{
@com.client.JNITest::testWrapper = function(str)
{
o...@com.client.jnitest::foo(Ljava/lang/String;)(str);
};
$wnd.register_wrapper(@com.client.JNITest::testWrapper);

-}*/;


In your Test.js:

var wrapperRegistered;

function testWrapper(wrapper) {
wrapperRegistered = wrapper;
}

function callJavaMethod() {
wrapper("test");
}

Best
Kevin

On Tue, Dec 16, 2008 at 11:59 PM, Jag  wrote:

>
> I want to call a Java method from my javascript  in a GWT application.
> Here i have a js method in an external javascript file as below
>
> Test.js
>
> function callJavaMethod(){
> }
>
> I have a method in my java file as below,
>
> JNITest.java
>
> public class JNITest{
>
> public void foo(String strTest){
>   ///operations
> }
>
> }
>
> Is it possible to call the foo() from my callJavaMethod() in Test.js
> file. If so how can be done? A sample code would be more helpful.
>
> 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: Image viewer widget

2008-12-16 Thread Kevin Tarn
You can dynamic change Image widget's size by calling setSize.

Kevin

On Tue, Dec 16, 2008 at 11:41 PM, ArunDhaJ  wrote:

>
> Please lemme know which widget...
>
> - ArunDhaJ
> www.arundhaj.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-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: incubator + ProgressBar

2008-12-16 Thread Kevin Tarn
Understand you now. Loading of your program is not related to ProgressBar.
You can set several check points in your widgets' loading when their onLoad
get called. Then update progress bar as your judgement what the progress it
is.

Kevin

On Tue, Dec 16, 2008 at 9:19 PM, Suri  wrote:

>
> Hey Kevin
> Thanks fpr the description. I get the part of setting the value by
> using the setProgress method. My question was how would I be getting
> this value to set. i.e since the program I have is loading up, is
> there a way to determine the progress of the load? Or would I be
> making it some sort of static variable where after certain methods in
> my program have been completed, I update the value of the progress
> bar?
>
> Thanks again
>
> Suri
>
> On Dec 15, 8:08 pm, "Kevin Tarn"  wrote:
> > You can simply inherit ProgressBar to overwrite method "generateText".
> This
> > method is used to generated text for shown on progress bar. The progress
> > value can be set dynamically by method "setProgress".
> >
> > You have to set progress bar to be invisible or remove it from parent if
> you
> > don't want your user to see it after complete.
> >
> > Best
> > Kevin
> >
> > On Tue, Dec 16, 2008 at 8:42 AM, Suri  wrote:
> >
> > > Hi all,
> > > I'd like some  help on how to use the ProgressBar from the incubator.
> > > I saw the 2 lines of code in the incubator documentation and tried to
> > > undestand some of the API. I guess my confusion is the design. I
> > > currently have a GWT module that takes a while to load up.
> >
> > > 1) How (if at all?) can i go about figuring out how much % or atleast
> > > figure out if the module has loaded completely and so how would I
> > > change this value dynamically on the progress bar?
> >
> > > 2) Once the load is complete, do i remove the widget or set its
> > > visibility to false?
> >
> > > Thanks
> > > Suri
> >
>

--~--~-~--~~~---~--~~
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: incubator + ProgressBar

2008-12-15 Thread Kevin Tarn
You can simply inherit ProgressBar to overwrite method "generateText". This
method is used to generated text for shown on progress bar. The progress
value can be set dynamically by method "setProgress".

You have to set progress bar to be invisible or remove it from parent if you
don't want your user to see it after complete.

Best
Kevin

On Tue, Dec 16, 2008 at 8:42 AM, Suri  wrote:

>
> Hi all,
> I'd like some  help on how to use the ProgressBar from the incubator.
> I saw the 2 lines of code in the incubator documentation and tried to
> undestand some of the API. I guess my confusion is the design. I
> currently have a GWT module that takes a while to load up.
>
> 1) How (if at all?) can i go about figuring out how much % or atleast
> figure out if the module has loaded completely and so how would I
> change this value dynamically on the progress bar?
>
> 2) Once the load is complete, do i remove the widget or set its
> visibility to false?
>
> Thanks
> Suri
> >
>

--~--~-~--~~~---~--~~
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: 1.5 : the new DOM model

2008-12-15 Thread Kevin Tarn
sinkEvents is disappearred in 1.5? Not quite sure what's your question and
reply. DOM.setEventListener is deprecated in 1.5 or above. That's the reason
to use DOM.sinkEvents if you know how to deal with your created Element.

Best
Kevin

On Tue, Dec 16, 2008 at 2:42 AM, step3...@yahoo.fr wrote:

>
> it isn't enough, you need to seteventlistener and sinkevents.
>
>
> PS :  DOM.sinkEvents so disappear in 1.5 !
>
> On 15 déc, 17:41, "Kevin Tarn"  wrote:
> > You can use sinkEvents instead:
> >
> > Element el = DOM.getElementById(id);
> > if (el != null)
> > {
> > DOM.sinkEvents(el, Event.ONCLICK|Event.ONMOUSEOVER);
> > }
> >
> > Best
> > Kevin
> >
> > On Mon, Dec 15, 2008 at 8:21 PM, step3...@yahoo.fr  >wrote:
> >
> >
> >
> > > Hello,
> >
> > > I can't find in the new DOM model of 1.5 a method to apply a listener
> > > on an element (like in DOM model of the 1.4 : DOM.seteventlistener)
> >
> > > So how can i set an eventlistener on an element in 1.5 ?
> >
> > > Thanks
> >
> > > Stephane
> >
>

--~--~-~--~~~---~--~~
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: 1.5 : the new DOM model

2008-12-15 Thread Kevin Tarn
You can use sinkEvents instead:

Element el = DOM.getElementById(id);
if (el != null)
{
DOM.sinkEvents(el, Event.ONCLICK|Event.ONMOUSEOVER);
}

Best
Kevin

On Mon, Dec 15, 2008 at 8:21 PM, step3...@yahoo.fr wrote:

>
> Hello,
>
> I can't find in the new DOM model of 1.5 a method to apply a listener
> on an element (like in DOM model of the 1.4 : DOM.seteventlistener)
>
> So how can i set an eventlistener on an element in 1.5 ?
>
>
> Thanks
>
> Stephane
> >
>

--~--~-~--~~~---~--~~
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: Drawing seperator (Line) between widgets

2008-12-15 Thread Kevin Tarn
You can try below example:

VerticalPanel vp = new VerticalPanel();
vp.setStyleName("Seperator");
Tool.add(vp);  // Tool is your holder of group elements

In your css, please add:

.Seperator {
   /* 1px width, solid silver color separator */
background: 1px solid silver;
width: 1px;
height: 100%;
}

Best
Kevin


On Tue, Dec 16, 2008 at 12:04 AM, Arul
wrote:

>
> Hi,
>  I tried but no solution found.
> Here I need to group elements after that I need to draw line between
> different groups.
>
> I believe there must be easy way to do that. It would be nice if
> anyone send the code in GWT.
> what surprising is none of the examples not shown these kind of
> things.
>
>  Normally if a presentation layer is like VB then there would be
> component available in to have these features.
> Wonder why GWT does not have it.
>
> Thanks
> Arul
> >
>

--~--~-~--~~~---~--~~
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: Clickable text

2008-12-15 Thread Kevin Tarn
If you want to have mouse over effect, you should use sinkEvents instead of
ClickListener. You can sink extra event ONMOUSEOVER and change Label style
attribute when onBrowserEvent gets called.

Best
Kevin

On Mon, Dec 15, 2008 at 11:43 PM, Smith  wrote:

>
> Thanks, Kevin. How about  myLabel.addClickListener(ClickListener
> listener)  ?
>
> Also,is there a  disadvantage with making labels clickable? The user
> wouldn't know if that text is clickable unless you mention that
> explicitly. I mean if you bring the mouse over it, would it give any
> indication that it's clickable?
>
> Thanks,
>
>
> On Dec 15, 7:20 am, "Kevin Tarn"  wrote:
> > You can inherit Label and sink ONCLICK event by add below line in
> > constructor of inherited class.
> >
> > void InheritLabelConstructor(String text) {
> > super(text);
> > sinkEvents(Event.ONCLICK);
> >
> > }
> >
> > void onBrowserEvent(Event event) {
> > super.onBrowserEvent(event);
> > if (event.getTypeInt() == Event.ONCLICK) {
> >  // do something
> > }
> >
> > }
> >
> > Best
> > Kevin
> >
> > On Mon, Dec 15, 2008 at 11:07 PM, Smith 
> wrote:
> >
> > > All,
> >
> > > Is there a way to add some clickable text into a panel? I am aware of
> > > Hyperlink, but I don't need history support. All I need is to show
> > > another panel when a text is clicked on.
> >
>

--~--~-~--~~~---~--~~
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: Clickable text

2008-12-15 Thread Kevin Tarn
You can inherit Label and sink ONCLICK event by add below line in
constructor of inherited class.

void InheritLabelConstructor(String text) {
super(text);
sinkEvents(Event.ONCLICK);
}

void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if (event.getTypeInt() == Event.ONCLICK) {
 // do something
}
}

Best
Kevin
On Mon, Dec 15, 2008 at 11:07 PM, Smith  wrote:

>
> All,
>
> Is there a way to add some clickable text into a panel? I am aware of
> Hyperlink, but I don't need history support. All I need is to show
> another panel when a text is clicked on.
>
> >
>

--~--~-~--~~~---~--~~
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: are the GWT books on amazon any good?

2008-12-15 Thread Kevin Tarn
I also recommend this book.

Kevin

On Mon, Dec 15, 2008 at 8:34 PM, rmuller  wrote:

>
> Hi Will,
>
> Highly recommended:
> http://www.amazon.com/gp/product/0321501969/105-5731162-7905258?ie=UT...
>
> If you are new to GWT, this is all you need.
>
> Regards,
>
> Ronald
> >
>

--~--~-~--~~~---~--~~
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: OOPHM r4218: java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService

2008-12-04 Thread Kevin Tarn
Thanks for the reply. First, this problem did not happen in GWT 1.53. It
only happens on OOPHM branch. I believe the WAR includes jar correctly.
Attached is my web.xml. The lib folder I means is the subfolder of installed
Tomcat directory.



On Thu, Dec 4, 2008 at 5:45 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:

>
> This is an issue of your web.xml or war not including the jar
> correctly (or at all).  By dumping it into the lib folder (which one?)
> it will automatically be on the class path already.
>
> Posting your web.xml could allow people to help discern why it's not
> including the jar.
>
> On Dec 3, 4:42 am, Kevin Tarn <[EMAIL PROTECTED]> wrote:
> > I used NetBeans for my GWT project. Recently I tried to build OOPHM
> > for using Firefox as my hosted browser. If I put gwt-user.jar into my
> > WAR package, this ClassNotFoundException occurred. I tried to remove
> > gwt-user.jar from WAR package, and put it into tomcat's lib folder.
> > This exception doesn't happen.
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---


http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

XimLib
com.xcome.server.XimLibImpl


SQLDB
com.xcome.server.SQLDBImpl


GetIcon
com.xcome.server.GetIcon


UploadIcon
com.xcome.server.UploadIcon


XimLib
/com.xcome.xim/XimLib


SQLDB
/com.xcome.xim/SQLDB


GetIcon
/com.xcome.xim/GetIcon.jpg


UploadIcon
/com.xcome.xim/UploadIcon



30



xim.html




	







	





OOPHM r4218: java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.RemoteService

2008-12-03 Thread Kevin Tarn

I used NetBeans for my GWT project. Recently I tried to build OOPHM
for using Firefox as my hosted browser. If I put gwt-user.jar into my
WAR package, this ClassNotFoundException occurred. I tried to remove
gwt-user.jar from WAR package, and put it into tomcat's lib folder.
This exception doesn't happen.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---