Re: How can I get Image from ImageBundle by String?

2009-08-24 Thread
well, I have never tryed that.
Learn it. thank you;

2009/8/24 Paul Robinson 

>
> Reflection is not supported in GWT.
>
> 李静 wrote:
> > hi,
> > maybe you can use Reflection ;
> > just like:
> > Class target = ICONS.getClass();
> > Method m = target.getMethod(methodName, String.class);
> > m.invoke(ICONS, parameters...);
> > 2009/8/23 barclay allen  > <mailto:barclayal...@gmail.com>>
> >
> >
> > I have an image bundle setup.
> >
> > public static final MyIcons ICONS = GWT.create(MyIcons.class);
> >
> > I can get the image with this.
> > ICONS.smiley_face().createImage()
> >
> >
> > How can I dynamically get the smiley_face image by passing a string
> > "smiley_face"?
> >
> > --
> > 李静
>  >
> > >
>
> >
>


-- 
LiJ

--~--~-~--~~~---~--~~
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: FileNotFoundException while getting Resources from jar in WEB-INF/lib

2009-08-23 Thread
Did you inherits the needed module to your module.gxt.xml

2009/8/24 ajaxDeveloper 

>
> Hi,
>
> I my images and resource files are in the jar files which are deployed
> to WEB-INF/lib folder. but when I want to access them from Servlet in
> GWT I got FileNotFoundException.
>
> Please do help me how can I solve this issue I need urgent help.
>
> Regards
> >
>


-- 
李静

--~--~-~--~~~---~--~~
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: [ERROR] Line 25: No source code is available for type com.google.gwt.sample.showcase.client.content.text.RichTextToolbar; did you forget to inherit a required module?

2009-08-23 Thread
 the module you need  to
your  module.gxt.xml

2009/8/22 Prashant Gupta 

> Hi,
>
> I am trying to use RichTextArea with RichTextToobar. I have added all the
> source files in
> \gwt-windows-1.7.0\samples\Showcase\src\com\google\gwt\sample\showcase\client
> to my source folder. Following is a snippet from my code :
>
> *Line 24 : *final RichTextArea content = new RichTextArea();
> *Line 25 : *final RichTextToolbar toolbar = new RichTextToolbar(content);
>
> Follwing is a snippet form error log :
>
> [ERROR] Line 25: No source code is available for type
> com.google.gwt.sample.showcase.client.content.text.RichTextToolbar; did you
> forget to inherit a required module?
>
> Where and what should I include to make my code working?
>
> 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: javascript in war folder not included after building war file

2009-08-23 Thread
stylesheet src="js/ext/resources/css/ext-all.css" />
remove '/' before 'js'


2009/8/22 Frank 

>
> Try this way:
>
> 
>
>
> On Jul 4, 11:35 pm, Marko Vuksanovic 
> wrote:
> > I have copied ext-js library into war folder of my gwt project. Then I
> > have included it in my project.gwt.xml file as follows:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > after building the project, using the ant script that was created by
> > the gwt sdk command line tool, the ext folder is not included in the
> > \js\ folder (nor in the ).
> >
> > There is also one more problem that I encountered - When I deploy the
> > war file onto a server- when I typehttp://localhost:8080/project
> > (which is the name of the war file as well as the gwt project itself)
> > the application looks for the javascript files
> athttp://localhost:8080/js/ext..
> > and it should be looking for them athttp://localhost:8080/project/js/ext.
> >
> > Any help on this issue would be greatly appreciated.
>
> >
>


-- 
李静

--~--~-~--~~~---~--~~
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 I get Image from ImageBundle by String?

2009-08-23 Thread
hi,
maybe you can use Reflection ;
just like:

Class target = ICONS.getClass();
Method m = target.getMethod(methodName, String.class);
m.invoke(ICONS, parameters...);
2009/8/23 barclay allen 

>
> I have an image bundle setup.
>
> public static final MyIcons ICONS = GWT.create(MyIcons.class);
>
> I can get the image with this.
> ICONS.smiley_face().createImage()
>
>
> How can I dynamically get the smiley_face image by passing a string
> "smiley_face"?
> >
>


-- 
李静

--~--~-~--~~~---~--~~
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: Hide pannel

2009-08-23 Thread
mybe you can try gxt,
see the demos on the http://extjs.com website

2009/8/23 rasp 

>
> Hi all!
> How can I create some hide-panel, like this:
>
> http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=google-web-toolkit-incubator
> 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: Career suggestion needed

2009-08-23 Thread
hi,
i do think the GWT is the both side,
without GWT, the client programer should be good at js,css , what i am not
so good at.
so, the GWT helps me. we only need to write javas.
on the client side, we use GWT, and on the server side, we can import some
other frameworks
such as spring, hibernate.  i don't think it's hard for our java programer..

it's my personal thought!!
2009/8/24 venki 

>
> Hi all..
>
> I have been working on GWT for last 6 months. Any way i hope i am
> doing well . I am aware of Gwt related projects such as
> SmartGwt,GwtIncubator, GWT-widgets library like that. I got confidence
> on my self that i can deserve GWT.I will keep update GWT knowledge.In
> order to build my career path for long time i need your suggestions.
>
> GWT is client side so i am in confused state whether i have to focus
> on only client side technologies or server side technologies also. Any
> way let me know your suggestions.
>
> Thanks 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: VerticalSplitPanel doesn't show widgets

2009-08-23 Thread
well, you sure it dosen't have compile error?
see your constructor method!!

2009/8/23 google400 

>
> This is some very simple code that I'm using to try showing a
> VerticalSplitPanel, but the widgets I add don't show. The divider
> thing of VerticalSplitPanels does show however the widgets I add
> don't.
>
> Code:
>
>public class MyView extends Composite
>{
>private VerticalSplitPanel mainPanel=new VerticalSplitPanel();
>
>public CountryFilterView()
>{
>
>mainPanel.setSize("100%", "100%");
>mainPanel.setSplitPosition("50%");
>// Add some content
>String randomText = "This is some text to show how the
> contents on either "
>+ "side of the splitter flow.   "
>+ "This is some text to show how the contents on either "
>+ "side of the splitter flow.   "
>+ "This is some text to show how the contents on either "
>+ "side of the splitter flow.   ";
>mainPanel.setTopWidget(new HTML(randomText));
>mainPanel.setBottomWidget(new HTML(randomText));
>initWidget(mainPanel);
>}
>}
>
> Am I doing something wrong, or is VerticalPanel just very annoyingly
> buggy?
>
> >
>


-- 
李静

--~--~-~--~~~---~--~~
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: Running the GWT project on external server(tomcat) in the eclipse

2009-08-23 Thread
hi,
first, you should create a dinatic web project(set runtime target  null, or
maybe build error)
second, add a new GWT module (you must have GWT plugins),
third, write you code,
ok, it's time  clean/build your project,
ok, run as on server.

hope that helps you !!

2009/8/23 rami 

>
> Hi all,
>
>  I'm trying to use an external server(tomcat 6) to run the GWT project
> in the eclipse, instead of the GWT build-in server, I did a search in
> the GWT documentation, I did not find any thing to demonstrate this,
> Is there any way to do this?
>
>
> 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: 求助,无法在eclipse3.5中导入samples里的项目

2009-08-23 Thread
貌似这个话题两个版本,还有个英文的,刚才先看到英文的,搞了半天回复了,结果发现下一个邮件就是中文版的。
郁闷掉了!!!

2009/8/24 陈金元 

> 新建的时候选择从目录新建就可以了。。。不需要拷代码的。。。
> 话说这个论坛居然有人用中文问问题。。?我当时问的时候累死累活翻成英文的。
>
> --
> Date: Mon, 24 Aug 2009 10:55:46 +0800
> Subject: Re: 求助,无法在eclipse3.5中导入samples里的项目
> From: lijing0...@gmail.com
> To: google-web-toolkit@googlegroups.com
>
> 你好:
> samples 里面没有eclipse项目文件,你可以在eclipse里新建一个项目,把samples里的代码拷过去就行了!!
>
> 2009/8/24 holeo 
>
> 我在eclipse3.5中,安装有google eclipse 3.5 plug-ins.
> 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的
> samples里的项目.提示:No projects are found to import.
> 怎么解决这个问题呢?
>
>
>
>
> --
> 李静
>
> >
>


-- 
李静

--~--~-~--~~~---~--~~
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: 求助,无法在eclipse3.5中导入samples里的项目

2009-08-23 Thread
你好:
samples 里面没有eclipse项目文件,你可以在eclipse里新建一个项目,把samples里的代码拷过去就行了!!

2009/8/24 holeo 

> 我在eclipse3.5中,安装有google eclipse 3.5 plug-ins.
> 使用 File -> Import... -> Existing Projects into Workspace 但无法导入gwt1.7里面的
> samples里的项目.提示:No projects are found to import.
> 怎么解决这个问题呢?
> >
>


-- 
李静

--~--~-~--~~~---~--~~
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.7 Now Available

2009-08-23 Thread
hi,
the samples projects don't have eclipse files in them.
maybe you can create a new project and copy the src files.
hope that helps you!

2009/8/24 holeo 

>
> In eclipse3.5 and Google eclipse 3.5 plug-ins,
> Use "File -> Import... -> Existing Projects into Workspace"
> I can't import GWT1.7 /samples project. ! "No projects are found to
> import."
>
> help help!!
>
> On Jul 23, 6:54 am, Bruce Johnson  wrote:
> > Hi everyone,
> >
> > (Most people are probably already quite aware of the new GWT 1.7 release,
> > but we wanted to send out an "official" announcement we could pin to the
> top
> > of the message list.)
> >
> > GWT 1.7 is a minor update that adds better support for Internet Explorer
> 8,
> > Firefox 3.5, and Safari 4. Each of these new browser versions introduced
> at
> > least one change that negatively impacted compiled GWT modules, so we
> > recommend that you do update to GWT 1.7 and recompile your existing
> > applications to ensure that they work with the latest versions of
> browsers.
> > No source code changes on your part should be required.
> >
> > Normally, a minor update such as this would have been named 1.6.5 (the
> > previous latest version of GWT was 1.6.4), but we did add the value "ie8"
> to
> > the "user.agent" deferred binding property, which could impact projects
> > using custom deferred binding rules that are sensitive to that property.
> > Thus, we went withGWT 1.7 rather than GWT 1.6.5, to indicate that you may
> > need to pay attention to that change. Details are in the release notes.
> >
> > In every other respect, this is just a bugfix release, so in the vast
> > majority of cases, the update-recompile process should be nearly
> effortless.
> >
> > Download here:
> http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=GW...
> >
> > Cheers,
> > Bruce, on behalf of your friendly GWT Team
>
> >
>


-- 
Lij

--~--~-~--~~~---~--~~
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: Qustion -> com.google.gwt.user.client.rpc.SerializationException

2009-08-20 Thread
com.google.gwt.user.client.rpc.SerializationException:
the object should be seralizable. right?

2009/8/20 develo 

>
> Nice to meet you.
> I didn't know unsolve problem ... T.T
>
>
>
> [WARN] Exception while dispatching incoming RPC call
> java.lang.RuntimeException:
> com.google.gwt.user.client.rpc.SerializationException:
> java.lang.reflect.InvocationTargetException
> at
>
> org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException
> (GWTRPCServiceExporter.java:344)
> at org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall
> (GWTRPCServiceExporter.java:313)
> at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
> at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest
> (GWTRPCServiceExporter.java:363)
> at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle
> (HttpRequestHandlerAdapter.java:49)
> at org.springframework.web.servlet.DispatcherServlet.doDispatch
> (DispatcherServlet.java:875)
> at org.springframework.web.servlet.DispatcherServlet.doService
> (DispatcherServlet.java:807)
> at org.springframework.web.servlet.FrameworkServlet.processRequest
> (FrameworkServlet.java:571)
> at org.springframework.web.servlet.FrameworkServlet.doPost
> (FrameworkServlet.java:511)
> ...
> ...
> ...
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'java.math.BigDecimal' was not included in the set of types which can
> be serialized by this SerializationPolicy or its Class object could
> not be loaded. For security purposes, this type will not be
> serialized.
> at
>
> com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
> (StandardSerializationPolicy.java:83)
> at
>
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
> (ServerSerializationStreamWriter.java:591)
> at
>
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
> (AbstractSerializationStreamWriter.java:129)
> at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize
> (RpcMap_CustomFieldSerializer.java:37)
> at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>
>
>
>
> I'm setting 'gwt-math 2.1.jar' and 'gwt-math-server-2.1.jar' . This is
> add build path.
> and to inherit the gwt-math into the gwt.xml.
>
> 
> 
>
>
> I don't know.. help me please
>
> >
>


-- 
LiJ

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