Re: Vector Support?

2008-09-14 Thread [EMAIL PROTECTED]

Well, you are right. Vector are not deprecated in the strict sense of
the word. I was confusing because the use of Vector should be avoided,
because that class is there only for legacy code support. If you need
to synchronize an ArrayList, you can instead use:  List list =
Collections.synchronizedList(new ArrayList(...));

Anyhow, because they are effectively not deprecated, this can't be the
cause of the warnings.

Ciao ;)
Roberto


On Sep 13, 10:49 pm, terje_sverje [EMAIL PROTECTED] wrote:
 Vectors are synchronized. ArrayLists are not. So I don't think they
 will go deprecated.

 On Sep 12, 12:25 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:

  I think that Java consider Vector class deprecated. Look at Java doc
  to see how to use ArrayList instead of Vector.

  Ciao ;)
  Roberto

  On Sep 11, 11:34 pm, Kevin [EMAIL PROTECTED] wrote:

   GWT client-side supports Vectors, right?

   I'm getting a ton of warnings about Vectors...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr

I am using a SuggestBox which I enable or disable with the help of a
FocusListener on the TextBox and a flag in the SuggestOracle. This
works very fine when I select a Suggestion via keyboard. However if I
select a Suggestion via mouse click the onLostFocus method closes the
SuggestionPopup before the Suggestion is selected.

I tried to solve this bug with the help of DeferredCommand, but then I
found out that the SuggestionMenu also uses this mechanism to fire the
SelectionCommand and so the Popup still closes before the
SelectionCommand is fired.

I also thought of using a Timer with a special delay to disable the
SuggestBox in the onLostFocus method, but this is the last thing I
want to do, because of very different execution durations of the
scripts in different browsers.

Has anyone got an idea to solve this problem?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr

Hmm. This would maybe help, although the SuggestBox is final and not
really designed for extending.

A great way would be changing the order of the events, so that the
click event fires before the focus event. Do you thinkt this is
possible - or even better: do you know a way to do this?


On Sep 14, 6:16 pm, Ian Petersen [EMAIL PROTECTED] wrote:
 On Sun, Sep 14, 2008 at 11:56 AM, jakob.korherr

 [EMAIL PROTECTED] wrote:
  Any other ideas?

 Not really.  I haven't used SuggestBox, yet, so I'm really just guessing.

 Could you subclass SuggestBox or some part of the SuggestBox system to
 work around the behaviour you don't want?

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



GWT + Entity Bean

2008-09-14 Thread Bálint Kriván
Hi!

I'm having an issue, and I hope someone can help me, because GWT looks very
great.

So I've started to make a very simple application.
I have an EJB package which contains the Session Beans and the Entity Beans.
In the WAR project I've set up the GWT:
I've created an Entry Point and a Service (RPC call) - In the implemented
RemoteServiceServlet I can use the Session Beans, which is connected to
Entity Beans. So I can make new objects to the database. It works fine.

But I would like to be able to retrieve objects as well, so I've created a
retrieve call aswell to this Service, and the returned value should be
Listhu.krivan.model.Topic (Topic is my Entity Bean).
But when I want to compile my project, it says that:
[ERROR] Errors in
'file:/home/balint/NetBeansProjects/GWTForum/GWTForum-war/src/java/hu/krivan/client/service/TopicService.java'
[ERROR] Line 20: No source code is available for type hu.krivan.model.Topic;
did you forget to inherit a required module?

(This is in Line 20:
public ListTopic retrieveTopics();
)

TopicService is my interface which implements RemoteService. How can I use
my ListTopic in the UI (so I would like to build a FlexTable based on
these Topic objects.)

Very thanks for your help!

Regards,
Kriván Bálint

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



How to address the deprecated method readLine()

2008-09-14 Thread Vasu

Hi !

I'm a newbie in Java programming. I created a java file and tried to
compile and got following message :

ICanReadApp.java:12: warning: [deprecation] readLine() in
java.io.DataInputStrea
m has been deprecated
  name=keyboardInput.readLine();

Can anybody help solve how to read a keyboard input if the above code
has been deprecated.

Thanks in advance for your help!
Vasu

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



I cannot run sample applications that came with GWT

2008-09-14 Thread bilahar A


A newbiew with GWT, wanted to explore it but cannot run
the examples as they crash. I am on a AMD 64 Turion, Ubuntu 64-bit
(Hardy Heron) and using sun java 6. I tried compiling firsnkst and
then running the examples but it didnt help.

Please help me. Tha

:~/gwt-linux-1.5.0/samples/Hello$ sh Hello-shell
Exception in thread main java.lang.UnsatisfiedLinkError: /home/
bilahari/gwt-linux-1.5.0/libswt-pi-gtk-3235.so: /home/bilahari/gwt-
linux-1.5.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32
(Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.clinit(Display.java:126)
at com.google.gwt.dev.GWTShell.clinit(GWTShell.java:302)


Bilahari

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



GWT compilation Error

2008-09-14 Thread [EMAIL PROTECTED]

Hi group,

i am new to this tool. i need help from any one of you. when i try to
run my build i get the following error. any help to resolve this
greatly accepted.

[jar] Building jar: C:\Users\Myproject\EMR20-PT03-
[EMAIL PROTECTED]
\lib\EMR20-Base.jar
gwt-compile:
 [java] Loading module
'com.emr.pt03.accountgroup01.AccountGroup01'
 [java]Loading inherited module 'com.google.gwt.user.User'
 [java]   Loading inherited module 'com.google.gwt.core.Core'
 [java]  [ERROR] Line 23: Unexpected element 'define-
linker'
 [java]  [ERROR] Failure while parsing XML
 [java] com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
 [java] at
com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement(DefaultSchema.java:
80)
 [java] at
com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema.java:93)
 [java] at
com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema.java:93)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:171)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
454)
 [java] at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:
217)
 [java] at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:
594)
 [java] at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:
777)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
748)
 [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1453)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
333)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
 [java] at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:295)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.access$100(ReflectiveParser.java:48)
 [java] at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
366)
 [java] at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
175)
 [java] at com.google.gwt.dev.cfg.ModuleDefSchema
$BodySchema.__inherits_begin(ModuleDefSchema.java:143)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 [java] at java.lang.reflect.Method.invoke(Unknown Source)
 [java] at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
223)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:242)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
454)
 [java] at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:
217)
 [java] at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:
594)
 [java] at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:
777)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
748)
 [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1453)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
333)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
 [java] at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:295)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.access$100(ReflectiveParser.java:48)
 [java] at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
366)
 [java] at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
175)
 [java] at 

@EJB annotation

2008-09-14 Thread Oleana

Hi, can I use @EJB annotaion to call enterprose bean in gwt1.5?

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



Re: Using EasyMock in GWT Test Cases

2008-09-14 Thread Waleed Zedan
Hi,

Try to include the easy mock jars in the classpath of the gwt compiler.

br.

On Sun, Sep 14, 2008 at 2:05 AM, ksachdeva [EMAIL PROTECTED] wrote:


 Hi,

 I am trying to use the EasyMock in my unit tests and I am getting a
 weired behavior. Here are the details of my configuration:

 Windows Vista SP1; GWT 1.5.2; EasyMock 2.4; Eclipse 3.4

 The error I am getting when I run my MyTest-hosted.launch
 configuration from eclipse:

 Compiling Java source files in module 'com.myns.MyModule.JUnit'
   Removing units with errors
  [ERROR] Errors in 'file:/C:/---removed-for-clarity--/test/
 com/myns/client/subpackage/MyModuleTest.java'
 [ERROR] Line 25: No source code is available for type
 org.easymock.EasyMock; did you forget to inherit a required module?

 From error it seems like it is looking for JUnit / EasyMock
 sources 

 My understanding was that in hosted mode there would be no conversion
 to JavaScript so I should be able to use EasyMock to mock some of my
 classes.

 Here is how my methods look in the test case:

  public String getModuleName() {
return com.myns.MyModule;
  }

  public void testSimple() {
  SomeInterface mock = createMock(SomeInterface.class);
  }

 If I remove the code for mocking from testSimple() then I can see that
 my unit test work !!!

 Please help

 Regards
 Kapil


 



-- 
Waleed Zedan
SCJP 1.4 , CCNA

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



Re: GWT

2008-09-14 Thread Herman

can you post the solution to this problem? I am running into the same
problem and I am not using eclipse for IDE, can that contribute to the
problem?

On Sep 6, 7:33 pm, Daniel [EMAIL PROTECTED] wrote:
 This issue has been solved thanks to the help of a very informative
 irc #gwt member.  :)

 On Sep 5, 3:28 pm, Daniel [EMAIL PROTECTED] wrote:

  Hi all,

  GWT is great!

  I'm following through the tutorial, but I've gotten stuck on the RPC
  stuff.  When I run it I get this error:

  -

  [ERROR] Unable to instantiate
  'com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl'
  java.lang.ClassNotFoundException:
  com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:169)
          at
  com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServle­t.java:
  952)
          at
  com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
  278)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
          at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:
  237)
          at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:
  157)
          at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­ava:
  214)
          at
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.java:
  104)
          at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
  520)
          at
  org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex­tValve.java:
  198)
          at
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­ava:
  152)
          at
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.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(StandardValveConte­xt.java:
  104)
          at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
  118)
          at
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.java:
  102)
          at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
  520)
          at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­a:
  109)
          at
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.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.util.threads.ThreadPool
  $ControlRunnable.run(ThreadPool.java:683)
          at java.lang.Thread.run(Thread.java:619)

  followed by:

  [ERROR] Unable to dispatch request

  -

  I'm guessing that gwt doesn't compile the server side stuff
  automatically for debugging?

  If so, would I just create a directory called stockPrices in www/
  com.google.gwt.sample.stockwatcher.StockWatcher, and compile the
  servlet there, and if so, would I still need to create entries in a
  WEB-INF/whatever.xml file?

  Just a little confused because the tutorial made it seem like gwt
  handled the servlets automatically.

  Thanks for the help in advance.  :)

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



Integrating a help system

2008-09-14 Thread [EMAIL PROTECTED]

Does anyone have a recommendation for a integrated help system that
plays nice with GWT?

Right now we are thinking of using CHM to author then exporting to
HTML.  We would still need to build hooks into our widgets to provide
the context piece of the context help.

Anyone have something that works better?

TIA

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



Re: Dialog Box wouldn't open in deployment mode

2008-09-14 Thread kojo

I inspected the script under firebug and discovered that a 'typeError'
was caught. The code still works in hosted mode anyway. I have
attached the section of the code responsible.

11801 try {
11802 for (j = 0; j  this
$static.departmentListBox.element.options.length; ++j) {
11803 if ($matches($getItemText_0(this$static.departmentListBox, j),
employee.department.name_0)) { // offending line
11804 this$static.departmentListBox.element['selectedIndex'] = j;
11805 }
11806 }
11807 }
11808 catch ($e0) {
11809 $e0 = caught_0($e0);
11810 if (instanceOf($e0, 49)) {
11811 }
11812 else
11813 throw $e0;
11814 }
11815}
11816

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



slow scrolling in gwt

2008-09-14 Thread Czarna Foka

Hi
I'm very exciting of power of gwt and I have great idea for web
application but...
One of component on my application will be group chat so I try do
performance tests and it shows me that scrolling in gwt isn't very
fast.

I did chat component as HTML inside ScrollPanel and client side
receive message from server and appends it on the end of HTML and next
step is scrolling ScrollPanel to bottom. All works fine till when HTML
contains more rows than about 2000. After this one more message cause
that scrolling take 100% power of computer for short time (less 1
second). I need optimize it, please help me maybe other component?
In gmail chat this problem not appears, why? :)

My procedure on client side looks like:

1. in loop add message(s) to StringBuilder
2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's
Widget)
3. ScrollPanel.scrollToBottom

any suggestions?


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



Re: slow scrolling in gwt

2008-09-14 Thread Len

Hi

Perhaps a way is not to keep all the lines in the scroll panel - only
the last 100 or so. When new lines are added after 100 remove the old
ones and if you need to, keep them in a buffer. Then when someone
scrolls back up past 100 lines you can add them back to the buffer.
In other words the scroll bar is virtual.


Hth
Len

2008/9/13 Czarna Foka [EMAIL PROTECTED]:

 Hi
 I'm very exciting of power of gwt and I have great idea for web
 application but...
 One of component on my application will be group chat so I try do
 performance tests and it shows me that scrolling in gwt isn't very
 fast.

 I did chat component as HTML inside ScrollPanel and client side
 receive message from server and appends it on the end of HTML and next
 step is scrolling ScrollPanel to bottom. All works fine till when HTML
 contains more rows than about 2000. After this one more message cause
 that scrolling take 100% power of computer for short time (less 1
 second). I need optimize it, please help me maybe other component?
 In gmail chat this problem not appears, why? :)

 My procedure on client side looks like:

 1. in loop add message(s) to StringBuilder
 2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's
 Widget)
 3. ScrollPanel.scrollToBottom

 any suggestions?


 


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



Re: [ERROR]Failed to load module com.gwt.LoginCliente. Please see the log in the development shell for details.

2008-09-14 Thread Amit Dhingra
Hi Shi,
Please be sure that
com.gwtext.client.widgets.Panel
is supported by google gwt compiler.
As java.text.* and java.sql.* are not supported and if used, you will get
tonnes of errors.

Cheers,
Amit Dhingra



On Sun, Sep 14, 2008 at 2:57 PM, Shi [EMAIL PROTECTED] wrote:


 Hi, I'm new here, and beginners with GWT.
 I am using the plugin Cypal STudio for GWT, but I can not go forward
 because when I try to debug an error I always, when I declare and
 initialize variables in the onModuleLoad() method or I declare outside
 of the method and I initialize inside the method.
 I noticed that this happens with variables declared like instance of
 class imported from gwtext.
 The module is this:
 
 package com.gwt.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.user.client.Window;
 import com.gwtext.client.widgets.Panel;


 public class LoginCliente implements EntryPoint {

private Panel loginPanel = null;

public void onModuleLoad() {
Window.alert(ciao);

Panel formPanel = new Panel();
 }}


 --
 LoginCliente.gwt.xml
 
 module


inherits name='com.google.gwt.user.User' /
inherits name='com.gwtext.GwtExt' /

entry-point class='com.gwt.client.LoginCliente' /
 /module

 --


 Have you any idea?
 thank you!

 



-- 
Warm Regards,
Amit Dhingra

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



Re: @EJB annotation

2008-09-14 Thread Len

Hi

That depends on your servlet container and not GWT. If your container
supports the @EJB injection then yes otherwise no. JBoss 5 does but
not 4 as far as I am aware.

Len


2008/9/14 Oleana [EMAIL PROTECTED]:

 Hi, can I use @EJB annotaion to call enterprose bean in gwt1.5?

 


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



Re: slow scrolling in gwt

2008-09-14 Thread Amit Dhingra
Hi,
Though I am a newbie to GWT, but would like to ask if you are facing this on
both hosted and external browsers. As I had issues of slow switching between
tabs in hosted browser, but on firefox it runs fine.

Cheers,
Amit Dhingra

On Sat, Sep 13, 2008 at 3:39 AM, Czarna Foka [EMAIL PROTECTED] wrote:


 Hi
 I'm very exciting of power of gwt and I have great idea for web
 application but...
 One of component on my application will be group chat so I try do
 performance tests and it shows me that scrolling in gwt isn't very
 fast.

 I did chat component as HTML inside ScrollPanel and client side
 receive message from server and appends it on the end of HTML and next
 step is scrolling ScrollPanel to bottom. All works fine till when HTML
 contains more rows than about 2000. After this one more message cause
 that scrolling take 100% power of computer for short time (less 1
 second). I need optimize it, please help me maybe other component?
 In gmail chat this problem not appears, why? :)

 My procedure on client side looks like:

 1. in loop add message(s) to StringBuilder
 2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's
 Widget)
 3. ScrollPanel.scrollToBottom

 any suggestions?


 



-- 
Warm Regards,
Amit Dhingra

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



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread Ian Petersen

On Sun, Sep 14, 2008 at 12:43 PM, jakob.korherr
[EMAIL PROTECTED] wrote:
 Hmm. This would maybe help, although the SuggestBox is final and not
 really designed for extending.

You can work around that by maintaining your own version of
SuggestBox.  If you extract SuggestBox.java from gwt-user.jar and put
it in a source directory in your project that comes before
gwt-user.jar on the CLASSPATH, the GWT compiler will pick up the
extracted version instead of the version in gwt-user.jar.  You can
then modify the extracted version to suit your needs--whether that
means just removing the final keyword, or more invasive changes.  If
the right place to make the change is in a class other than
SuggestBox, just extract its source file instead.  If you come up with
a clean patch that looks generally useful, you could submit it for
inclusion in GWT 1.6, too.

 A great way would be changing the order of the events, so that the
 click event fires before the focus event. Do you thinkt this is
 possible - or even better: do you know a way to do this?

I think that might be difficult to impossible.  Ignore GWT for a
moment and consider just what the browser is doing: clicking on the
pop-up list causes the text box to lose focus.  I'm pretty sure every
browser will fire the lost-focus event on the text box before firing
the click event on the pop-up's element.  GWT can't do anything about
the order in which the browser delivers events, and the only way it
can fire lost-focus or click events for itself is by piggy-backing on
the browser-native events.

The only idea I have that might make it possible is to complicate
SuggestBox's event handling.  When the wrapped text box fires
onLostFocus, the SuggestBox could set up a delayed call to fire its
own onLostFocus, rather than firing it directly.  In the pop-up's
onClick listener, the delayed onLostFocus would then be canceled.  The
idea is that if focus is lost because some other widget has gained it,
then the delayed onFocusLost will fire.  If, on the other hand, focus
is lost because the pop-up has gained it, then the SuggestBox as a
whole hasn't really lost focus, so the pending onFocusLost can be
sanely canceled.

The biggest problem I see with the above approach is that it would
probably re-order related onFocusLost and onFocus events.  Normally,
if widget A loses focus to widget B, A's onLostFocus fires before B's
onFocus.  If widget A is a SuggestBox modified as above, though, then
I think B will fire onFocus before A fires onFocusLost.  Ideally,
that's not a problem--event driven programmes shouldn't normally
depend on the order of events being fired, I wouldn't think--but real
life is hardly ideal.

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



Re: Embed Flex/Flash in GWT

2008-09-14 Thread Amit Dhingra
Hi Pete,
Can you please provide me link to the widget, as I might also wanna try
using it. :)

Cheers,
Amit Dhingra

On Sun, Sep 14, 2008 at 4:07 PM, Pete Kay [EMAIL PROTECTED] wrote:

 Hi,

 I have a small Flex/Flash widget that can record voices.  Is it possible to
 embed that widget inside a GWT table cell?

 Any sample code showing how it can be done will be greatly appreciated.

 Thanks in advance for your kind help.

 Best Regards,
 Pete

 



-- 
Warm Regards,
Amit Dhingra

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



Re: I cannot run sample applications that came with GWT

2008-09-14 Thread Amit Dhingra
Found this googling...


Sounds like you got a 64-bit setup.

Tough luck. Won't work. When it's out, buy an OS that can interop 32-
bit and 64-bit properly, I guess. (Mac OS X Leopard).

Alternatively, complile the relevant .so (libswt-pi-gtk) yourself
using gcc, or try and find a 64-bit version. SWT is hosted somewhere
on www.eclipse.org, and you should be able to just replace the .so
file, though it MUST be the same version (3235), or it won't
interoperate with the SWT class files used by GWT. You may be able to
replace swt.jar if that file even exists with a newer version if you
can't find a 3235 64-bit version. (GWT may have integrated those files
into the main JAR file which will make your life very difficult).
If you get stuck, well, the GWT -Compiler- won't need that library so
that will still work. Just can't use hosted mode.


Cheers,
Amit



On Sat, Sep 13, 2008 at 9:22 PM, bilahar A [EMAIL PROTECTED] wrote:



A newbiew with GWT, wanted to explore it but cannot run
 the examples as they crash. I am on a AMD 64 Turion, Ubuntu 64-bit
 (Hardy Heron) and using sun java 6. I tried compiling firsnkst and
 then running the examples but it didnt help.

 Please help me. Tha

 :~/gwt-linux-1.5.0/samples/Hello$ sh Hello-shell
 Exception in thread main java.lang.UnsatisfiedLinkError: /home/
 bilahari/gwt-linux-1.5.0/libswt-pi-gtk-3235.so: /home/bilahari/gwt-
 linux-1.5.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32
 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.clinit(Display.java:126)
at com.google.gwt.dev.GWTShell.clinit(GWTShell.java:302)


 Bilahari

 



-- 
Warm Regards,
Amit Dhingra

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



SQL DateTime object to java.util.Date through JSON

2008-09-14 Thread Amit Dhingra
Hi,
I have JSON SQL DateTime objects, which I wish to convert to
java.util.Date objects, for which I have coded as below... (I am using
com.google.gwt.i18n.client.DateTimeFormat.parse for conversion)

if (...) {
.
.
.
System.out.println(sDate); //sDate is derived from a JSON obj
System.out.println(eDate); //eDate is derived from a JSON obj

Date stDate  = DateTimeFormat.getFormat(-MM-dd
HH:MM:SS).parse(sDate);
Date endDate = DateTimeFormat.getFormat(-MM-dd
HH:MM:SS).parse(eDate);

System.out.println(sDate ++ eDate +  Converted Dates are  +
stDate.toString() ++ endDate.toString());
.
.
.
}

The code above gives the following output on the console

2008-09-01 10:00:00
2008-09-01 10:30:00
2008-09-01 10:00:00  2008-09-01 10:30:00 Converted Dates are Mon Sep
01 10:00:00 IST 2008  Tue Jun 01 10:00:00 IST 2010
2008-09-01 10:30:00
2008-09-01 11:00:00
2008-09-01 10:30:00  2008-09-01 11:00:00 Converted Dates are Tue Jun
01 10:00:00 IST 2010  Mon Sep 01 11:00:00 IST 2008
2008-09-03 10:00:00
2008-09-03 10:30:30
2008-09-03 10:00:00  2008-09-03 10:30:30 Converted Dates are Wed Sep
03 10:00:00 IST 2008  Thu Jun 03 10:00:00 IST 2010
2008-09-04 10:00:00
2008-09-04 10:30:00
2008-09-04 10:00:00  2008-09-04 10:30:00 Converted Dates are Thu Sep
04 10:00:00 IST 2008  Fri Jun 04 10:00:00 IST 2010

Here I am correctly receiving the JSON object, but while converting it
into the java object using
DateTimeFormat.getFormat(-MM-dd HH:MM:SS).parse
I get wrong results, e.g.
here
2008-09-01 10:00:00
2008-09-01 10:30:00
2008-09-01 10:00:00  2008-09-01 10:30:00 Converted Dates are Mon Sep
01 10:00:00 IST 2008  Tue Jun 01 10:00:00 IST 2010

The converted date is Tue Jun 01 10:00:00 IST 2010 which is incorrect.

And I see that it is just the second date which is every time wrong!!!

Am not able to get hold of the flaw here.
Where I might be going wrong???

Thanks in advance.

Thanks  Regards,
Amit

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



Re: SQL DateTime object to java.util.Date through JSON

2008-09-14 Thread Amit Dhingra

Oops I didn't notice that the message had been approved by the
moderator...
Sorry for having send it twice!!!

Cheers,
Amit


On Sep 15, 12:10 am, Amit Dhingra [EMAIL PROTECTED] wrote:
 Hi,
 I have JSON SQL DateTime objects, which I wish to convert to
 java.util.Date objects, for which I have coded as below... (I am using
 com.google.gwt.i18n.client.DateTimeFormat.parse for conversion)

 if (...) {
 .
 .
 .
 System.out.println(sDate); //sDate is derived from a JSON obj
 System.out.println(eDate); //eDate is derived from a JSON obj

 Date stDate  = DateTimeFormat.getFormat(-MM-dd
 HH:MM:SS).parse(sDate);
 Date endDate = DateTimeFormat.getFormat(-MM-dd
 HH:MM:SS).parse(eDate);

 System.out.println(sDate ++ eDate +  Converted Dates are  +
 stDate.toString() ++ endDate.toString());
 .
 .
 .

 }

 The code above gives the following output on the console

 2008-09-01 10:00:00
 2008-09-01 10:30:00
 2008-09-01 10:00:00  2008-09-01 10:30:00 Converted Dates are Mon Sep
 01 10:00:00 IST 2008  Tue Jun 01 10:00:00 IST 2010
 2008-09-01 10:30:00
 2008-09-01 11:00:00
 2008-09-01 10:30:00  2008-09-01 11:00:00 Converted Dates are Tue Jun
 01 10:00:00 IST 2010  Mon Sep 01 11:00:00 IST 2008
 2008-09-03 10:00:00
 2008-09-03 10:30:30
 2008-09-03 10:00:00  2008-09-03 10:30:30 Converted Dates are Wed Sep
 03 10:00:00 IST 2008  Thu Jun 03 10:00:00 IST 2010
 2008-09-04 10:00:00
 2008-09-04 10:30:00
 2008-09-04 10:00:00  2008-09-04 10:30:00 Converted Dates are Thu Sep
 04 10:00:00 IST 2008  Fri Jun 04 10:00:00 IST 2010

 Here I am correctly receiving the JSON object, but while converting it
 into the java object using
 DateTimeFormat.getFormat(-MM-dd HH:MM:SS).parse
 I get wrong results, e.g.
 here
 2008-09-01 10:00:00
 2008-09-01 10:30:00
 2008-09-01 10:00:00  2008-09-01 10:30:00 Converted Dates are Mon Sep
 01 10:00:00 IST 2008  Tue Jun 01 10:00:00 IST 2010

 The converted date is Tue Jun 01 10:00:00 IST 2010 which is incorrect.

 And I see that it is just the second date which is every time wrong!!!

 Am not able to get hold of the flaw here.
 Where I might be going wrong???

 Thanks in advance.

 Thanks  Regards,
 Amit
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: GWT + Entity Bean

2008-09-14 Thread Len

Hi

GWT needs to be able to see the source of your entities so you need to
include them in the GWT compile. To do this create a module xml file
in the server package that contains a src =entityDir statement
where entityDir is your directory containing the entity classes. Then
include this module in your main module.

Len

2008/9/13 Bálint Kriván [EMAIL PROTECTED]:
 Hi!

 I'm having an issue, and I hope someone can help me, because GWT looks very
 great.

 So I've started to make a very simple application.
 I have an EJB package which contains the Session Beans and the Entity Beans.
 In the WAR project I've set up the GWT:
 I've created an Entry Point and a Service (RPC call) - In the implemented
 RemoteServiceServlet I can use the Session Beans, which is connected to
 Entity Beans. So I can make new objects to the database. It works fine.

 But I would like to be able to retrieve objects as well, so I've created a
 retrieve call aswell to this Service, and the returned value should be
 Listhu.krivan.model.Topic (Topic is my Entity Bean).
 But when I want to compile my project, it says that:
 [ERROR] Errors in
 'file:/home/balint/NetBeansProjects/GWTForum/GWTForum-war/src/java/hu/krivan/client/service/TopicService.java'
 [ERROR] Line 20: No source code is available for type hu.krivan.model.Topic;
 did you forget to inherit a required module?

 (This is in Line 20:
 public ListTopic retrieveTopics();
 )

 TopicService is my interface which implements RemoteService. How can I use
 my ListTopic in the UI (so I would like to build a FlexTable based on
 these Topic objects.)

 Very thanks for your help!

 Regards,
 Kriván Bálint
 


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



Re: @EJB annotation

2008-09-14 Thread Ian Petersen

On Sun, Sep 14, 2008 at 2:59 PM, Len [EMAIL PROTECTED] wrote:
 That depends on your servlet container and not GWT. If your container
 supports the @EJB injection then yes otherwise no. JBoss 5 does but
 not 4 as far as I am aware.

Implicit in what Len has said is the fact that @EJB might work on the
server (depending on your servlet container) but _won't_ work on the
client.  As such, it's not really a GWT issue.

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



Re: CSS not work when using GWT4Gadgets

2008-09-14 Thread Len

Hi Norman,

Which browser are you using ? I have had some errors like this with IE
and had to put a string of selectors in like

#html body headerStyle {
...
}


Len

2008/9/14 [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi all,

 I try to build a Gadget with GWT4Gadgets. I added some basic CSS file,
 but it seems to get not used. I tried to set the grids first column
 color to blue with:
 grid.getRowFormatter().setStyleName(0,headerStyle);

 In css I have:

 .headerStyle { background-color: blue; }

 In the module xml file it get included with:  stylesheet
 src='DFIGadget.css' /

 But it just seems to not work. Is there anything I miss ?

 Thx,
 Norman
 


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



Re: Any ideas on how to make a popup stay on top?

2008-09-14 Thread Thomas Wrobel

Sorry about the lack of xml files, that was sloopy of me.
I should have just ziped the whole project directory, but I was in a
bit of a rush.

Its really odd that the Z-indexing worked, as that was the first thing I tried
I'll have a few experiments in the full app and see if it acts the
same as the cut-down one I sent out.

Thanks,
Thomaas

2008/9/12 Thomas Broyer [EMAIL PROTECTED]:



 On 11 sep, 16:14, Thomas Wrobel [EMAIL PROTECTED] wrote:
 Ok,thanks, I upload an example zip of what I'm trying to do here;

 www.darkflame.co.uk/client.zip

 It would have been far better with the appropriate directory structure
 and .gwt.xml (and even TestProject-shell.cmd...)

 Basically, I want it if the user clicks on popup1, then popup2, popup1
 stays ontop.

 I've removed your workaround, added a this.addStyleName(darkflame-
 OverlayPopUp) in the OverlayPopUp constructor, and added the
 following CSS rule in the TestProject.html:

   .darkflame-OverlayPopUp { z-index: 1000; }

 ...and the draggable popup stays on top (tested both in hosted mode –
 IE7– and an IE6 within a Virtual PC).



 


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



Re: Embed Flex/Flash in GWT

2008-09-14 Thread fred

You could look at the source for the gwt-voices project.

Fred

On 9/14/08, Amit Dhingra [EMAIL PROTECTED] wrote:
 Hi Pete,
 Can you please provide me link to the widget, as I might also wanna try
 using it. :)

 Cheers,
 Amit Dhingra

 On Sun, Sep 14, 2008 at 4:07 PM, Pete Kay [EMAIL PROTECTED] wrote:

 Hi,

 I have a small Flex/Flash widget that can record voices.  Is it possible
 to
 embed that widget inside a GWT table cell?

 Any sample code showing how it can be done will be greatly appreciated.

 Thanks in advance for your kind help.

 Best Regards,
 Pete

 



 --
 Warm Regards,
 Amit Dhingra

 



-- 
Fred Sauer
[EMAIL PROTECTED]

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



Store object in HTTP session

2008-09-14 Thread hezjing
Hi
When a user successfully login, I want to store the login information into a
session.
How do we store an object in the HTTP session?

I read this Using Servlet Sessions in
GWThttp://developerlife.com/tutorials/?p=230,
and it explained that all GWT services are implemented in classes that
extend the RemoteServiceServlet class.
From there, we can retrieve the session from the current request.

Unfortunately, I'm following the GWT tutorial and all my services now extend
the RemoteService.
How can I retrieve the HTTP session if my service extends RemoteService?

What is the different if a service extends RemoteService
or RemoteServiceServlet?


-- 

Hez

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



Re: Store object in HTTP session

2008-09-14 Thread Sebastien

On client side, you can use a static variable to store your data.

On 15 sep, 05:32, Ian Petersen [EMAIL PROTECTED] wrote:
 On Sun, Sep 14, 2008 at 11:00 PM, hezjing [EMAIL PROTECTED] wrote:
  What I want is how to access the session from the client code?

 Impossible.  The session exists on the server only.

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



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr

Thanks for the explanation - I knew that already (had to do so with
Tree to change a private method).

This is a good approach. Now I just have to think how to implement it.
I will try some different things - I have some ways in mind by now. If
I find a good workaround, I will let you know!

Thanks again for your answer. Jakob


On Sep 14, 9:02 pm, Ian Petersen [EMAIL PROTECTED] wrote:
 On Sun, Sep 14, 2008 at 12:43 PM, jakob.korherr

 [EMAIL PROTECTED] wrote:
  Hmm. This would maybe help, although the SuggestBox is final and not
  really designed for extending.

 You can work around that by maintaining your own version of
 SuggestBox.  If you extract SuggestBox.java from gwt-user.jar and put
 it in a source directory in your project that comes before
 gwt-user.jar on the CLASSPATH, the GWT compiler will pick up the
 extracted version instead of the version in gwt-user.jar.  You can
 then modify the extracted version to suit your needs--whether that
 means just removing the final keyword, or more invasive changes.  If
 the right place to make the change is in a class other than
 SuggestBox, just extract its source file instead.  If you come up with
 a clean patch that looks generally useful, you could submit it for
 inclusion in GWT 1.6, too.

  A great way would be changing the order of the events, so that the
  click event fires before the focus event. Do you thinkt this is
  possible - or even better: do you know a way to do this?

 I think that might be difficult to impossible.  Ignore GWT for a
 moment and consider just what the browser is doing: clicking on the
 pop-up list causes the text box to lose focus.  I'm pretty sure every
 browser will fire the lost-focus event on the text box before firing
 the click event on the pop-up's element.  GWT can't do anything about
 the order in which the browser delivers events, and the only way it
 can fire lost-focus or click events for itself is by piggy-backing on
 the browser-native events.

 The only idea I have that might make it possible is to complicate
 SuggestBox's event handling.  When the wrapped text box fires
 onLostFocus, the SuggestBox could set up a delayed call to fire its
 own onLostFocus, rather than firing it directly.  In the pop-up's
 onClick listener, the delayed onLostFocus would then be canceled.  The
 idea is that if focus is lost because some other widget has gained it,
 then the delayed onFocusLost will fire.  If, on the other hand, focus
 is lost because the pop-up has gained it, then the SuggestBox as a
 whole hasn't really lost focus, so the pending onFocusLost can be
 sanely canceled.

 The biggest problem I see with the above approach is that it would
 probably re-order related onFocusLost and onFocus events.  Normally,
 if widget A loses focus to widget B, A's onLostFocus fires before B's
 onFocus.  If widget A is a SuggestBox modified as above, though, then
 I think B will fire onFocus before A fires onFocusLost.  Ideally,
 that's not a problem--event driven programmes shouldn't normally
 depend on the order of events being fired, I wouldn't think--but real
 life is hardly ideal.

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



java.lang.ClassNotFoundException

2008-09-14 Thread Ananda Rao

Hi All,

i am getting the below error when i try to execute the code.
can you please help me in this regard.since iam new to java i need help
from you to resolve this error.
please help me

Root cause.

[EMAIL PROTECTED]
 com.emr.pt01.doctormaster.server.DoctorServiceImpl
java.lang.ClassNotFoundException:
com.emr.pt01.doctormaster.server.DoctorServiceImpl
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1387)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1233)
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1094)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
808)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
   at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
   at java.lang.Thread.run(Thread.java:619)
Sep 15, 2008 12:02:35 AM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Allocate exception for servlet
com.emr.pt01.doctormaster.server.DoctorServiceImpl
javax.servlet.ServletException: Wrapper cannot find servlet class
com.emr.pt01.doctormaster.server.DoctorServiceImpl or a class it
depends on
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1102)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
808)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
   at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
   at java.lang.Thread.run(Thread.java:619)
Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextDestroyed()
Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextDestroyed()


Regards,
Ananda

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



Re: Using EasyMock in GWT Test Cases

2008-09-14 Thread Arthur Kalmenson

It's not possible to use EasyMock in GWTTestCases. EasyMock requires
Java Reflections (AFAIK), and therefore cannot be run in hosted mode.
This is why you need to architect your application in such a way that
most of your business logic lives in classes that don't use GWT
widgets and are therefore testable outside of GWTTestCase.

Regards,
Arthur Kalmenson

On Sep 13, 6:05 pm, ksachdeva [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to use the EasyMock in my unit tests and I am getting a
 weired behavior. Here are the details of my configuration:

 Windows Vista SP1; GWT 1.5.2; EasyMock 2.4; Eclipse 3.4

 The error I am getting when I run my MyTest-hosted.launch
 configuration from eclipse:

 Compiling Java source files in module 'com.myns.MyModule.JUnit'
    Removing units with errors
       [ERROR] Errors in 'file:/C:/---removed-for-clarity--/test/
 com/myns/client/subpackage/MyModuleTest.java'
          [ERROR] Line 25: No source code is available for type
 org.easymock.EasyMock; did you forget to inherit a required module?

 From error it seems like it is looking for JUnit / EasyMock
 sources 

 My understanding was that in hosted mode there would be no conversion
 to JavaScript so I should be able to use EasyMock to mock some of my
 classes.

 Here is how my methods look in the test case:

  public String getModuleName() {
     return com.myns.MyModule;
   }

   public void testSimple() {
           SomeInterface mock = createMock(SomeInterface.class);
   }

 If I remove the code for mocking from testSimple() then I can see that
 my unit test work !!!

 Please help

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