Problem with DisclosurePanel

2010-03-03 Thread Juan M.M.M.
Hi ppl!

Look at this image =>
http://gwtupload.googlegroups.com/web/dpProblem.png?gsc=U-ruySMpq...

Someone knows how can I remove this disgusting line?

Best 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RootPanel.get() problems

2010-02-09 Thread Juan M.M.M.
Thx for the reply

p.d: it's enough with the prototype of the method ;D

Bye!

On Feb 9, 3:10 pm, Thomas Broyer  wrote:
> On Feb 9, 10:37 am, "Juan M.M.M."  wrote:
>
> > Hi man!
>
> > Thx for the reply but I can't set the visiblitiy with this method
> > Document.get().getElementById(...) .
>
> > Can you tell me the exact sintax to acced to the setVisibility method
> > through Document clas?
>
> Either getStyle.setDisplay(Display.NONE) to hide and
> getStyle().clearDisplay() to show; or UIObject.setVisible(elt, false)
> to hide (pass 'true' as the second argument to show).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RootPanel.get() problems

2010-02-09 Thread Juan M.M.M.
Hi man!

Thx for the reply but I can't set the visiblitiy with this method
Document.get().getElementById(...) .

Can you tell me the exact sintax to acced to the setVisibility method
through Document clas?

best regards!

On Feb 3, 5:38 pm, Thomas Broyer  wrote:
> On Feb 2, 6:00 pm, "Juan M.M.M."  wrote:
>
>
>
> > hi!
>
> > I'm becoming exasperated because this class sometimes works fine and
> > sometimes it going crazy. Let's supose this HTML like mine
>
> > ...
> > 
> >    
> >       
> >       
> >    
> >    
> >    
> > 
>
> > In method OnModuleLoad() u can refeer with this sentence RootPanel.get
> > ("div_name") to the DIV layer without problems. Then if u do the same
> > but in another public method, for example u could be refeer to the
> > frame1 and frame2 layer BUT if u refeer to frame1.1, u will get this
> > error:
>
> > java.lang.AssertionError: A widget that has an existing parent widget
> > may not be added to the detach list
> >     at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose
> > (RootPanel.java:136)
> >     at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
> >     at com.my.irn.client.IRn.DisplayResults(IRn.java:398)
> >     at com.my.irn.client.IRn.Paginar(IRn.java:450)
>
> > ...
>
> > Why is hapenning with this class?
>
> See:http://code.google.com/p/google-web-toolkit/issues/detail?id=3511
> and linked issues.
>
> > Can I try another way to setWidgets,
>
> As suggested by rjrjr on the above-linked issue, you could use
> HTMLPanel:
>    RootPanel frame1 = RootPanel.get("frame1");
>    HTMLPanel html = new HTMLPanel(frame1.getElement().getInnerHTML());
>    frame1.getElement().setInnerHTML("");
>    frame1.add(html);
>    // then you can use html.addAndReplace("frame1.1", someOtherWidget)
>
> > setVisibility, etc to the DIVs layer.
>
> As I said on the above-linked issue, if all you want is setVisible,
> use Document.get().getElementById(...) instead of RootPanel.get(...)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RootPanel.get() problems

2010-02-04 Thread Juan M.M.M.
hi!

Thx for the reply. Is this Issue resolved in the new version of GWT
(GWT-2.0.1) ?

Thanks for the answers! Bye!

On Feb 3, 5:38 pm, Thomas Broyer  wrote:
> On Feb 2, 6:00 pm, "Juan M.M.M."  wrote:
>
>
>
> > hi!
>
> > I'm becoming exasperated because this class sometimes works fine and
> > sometimes it going crazy. Let's supose this HTML like mine
>
> > ...
> > 
> >    
> >       
> >       
> >    
> >    
> >    
> > 
>
> > In method OnModuleLoad() u can refeer with this sentence RootPanel.get
> > ("div_name") to the DIV layer without problems. Then if u do the same
> > but in another public method, for example u could be refeer to the
> > frame1 and frame2 layer BUT if u refeer to frame1.1, u will get this
> > error:
>
> > java.lang.AssertionError: A widget that has an existing parent widget
> > may not be added to the detach list
> >     at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose
> > (RootPanel.java:136)
> >     at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
> >     at com.my.irn.client.IRn.DisplayResults(IRn.java:398)
> >     at com.my.irn.client.IRn.Paginar(IRn.java:450)
>
> > ...
>
> > Why is hapenning with this class?
>
> See:http://code.google.com/p/google-web-toolkit/issues/detail?id=3511
> and linked issues.
>
> > Can I try another way to setWidgets,
>
> As suggested by rjrjr on the above-linked issue, you could use
> HTMLPanel:
>    RootPanel frame1 = RootPanel.get("frame1");
>    HTMLPanel html = new HTMLPanel(frame1.getElement().getInnerHTML());
>    frame1.getElement().setInnerHTML("");
>    frame1.add(html);
>    // then you can use html.addAndReplace("frame1.1", someOtherWidget)
>
> > setVisibility, etc to the DIVs layer.
>
> As I said on the above-linked issue, if all you want is setVisible,
> use Document.get().getElementById(...) instead of RootPanel.get(...)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



RootPanel.get() problems

2010-02-02 Thread Juan M.M.M.
hi!

I'm becoming exasperated because this class sometimes works fine and
sometimes it going crazy. Let's supose this HTML like mine

...

   
  
  
   
   
   


In method OnModuleLoad() u can refeer with this sentence RootPanel.get
("div_name") to the DIV layer without problems. Then if u do the same
but in another public method, for example u could be refeer to the
frame1 and frame2 layer BUT if u refeer to frame1.1, u will get this
error:


java.lang.AssertionError: A widget that has an existing parent widget
may not be added to the detach list
at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose
(RootPanel.java:136)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
at com.my.irn.client.IRn.DisplayResults(IRn.java:398)
at com.my.irn.client.IRn.Paginar(IRn.java:450)

...

Why is hapenning with this class? Can I try another way to setWidgets,
setVisibility, etc to the DIVs layer.


The full error message, below:

java.lang.AssertionError: A widget that has an existing parent widget
may not be added to the detach list
at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose
(RootPanel.java:136)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
at com.my.irn.client.IRn.DisplayResults(IRn.java:398)
at com.my.irn.client.IRn.Paginar(IRn.java:450)
at com.my.irn.client.IRn$1MyHandler$1.onSuccess(IRn.java:267)
at com.my.irn.client.IRn$1MyHandler$1.onSuccess(IRn.java:1)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:216)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
(RequestBuilder.java:396)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke
(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative
(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke
(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Using my own external jars

2010-01-21 Thread Juan M.M.M.
And what about RPC? Is this the solution, right?

On 20 ene, 17:32, Eric  wrote:
> On Jan 19, 4:59 pm, jfagh  wrote:
>
> > Juan,
> > Also, you need to include both .java and .class files in your JAR. And
> > the .java files must not reference any unsupported libraries (i.e.
> > those that cannot be translated from java to js by GWT)
> > James
>
> He doesn't need to include the source files in the same jar. It is
> perfectly
> valid to build more than one file, presumably through Ant or Maven:
>
> module.jar
> module-src.jar
> module-javadoc.jar
>
> I would include module.gwt.xml in the source jar.  But if he's trying
> to
> include third-party libraries without source code in his GWT
> compilation,
> he'll have problems.  They should stay on the server.
>
> Respectfully,
> Eric Jablow
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-21 Thread Juan M.M.M.
And what about RPC? Is this the solution, right?

On 20 ene, 17:32, Eric  wrote:
> On Jan 19, 4:59 pm, jfagh  wrote:
>
> > Juan,
> > Also, you need to include both .java and .class files in your JAR. And
> > the .java files must not reference any unsupported libraries (i.e.
> > those that cannot be translated from java to js by GWT)
> > James
>
> He doesn't need to include the source files in the same jar. It is
> perfectly
> valid to build more than one file, presumably through Ant or Maven:
>
> module.jar
> module-src.jar
> module-javadoc.jar
>
> I would include module.gwt.xml in the source jar.  But if he's trying
> to
> include third-party libraries without source code in his GWT
> compilation,
> he'll have problems.  They should stay on the server.
>
> Respectfully,
> Eric Jablow
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-21 Thread Juan M.M.M.
And what about RPC? Is this the solution, right?

On 20 ene, 17:32, Eric  wrote:
> On Jan 19, 4:59 pm, jfagh  wrote:
>
> > Juan,
> > Also, you need to include both .java and .class files in your JAR. And
> > the .java files must not reference any unsupported libraries (i.e.
> > those that cannot be translated from java to js by GWT)
> > James
>
> He doesn't need to include the source files in the same jar. It is
> perfectly
> valid to build more than one file, presumably through Ant or Maven:
>
> module.jar
> module-src.jar
> module-javadoc.jar
>
> I would include module.gwt.xml in the source jar.  But if he's trying
> to
> include third-party libraries without source code in his GWT
> compilation,
> he'll have problems.  They should stay on the server.
>
> Respectfully,
> Eric Jablow
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
http://www.flickr.com/photos/46306...@n05/4290882114/sizes/o/  <-
Here there is more info about the structure of the project and .jar
files that I want to use (intimeclien1.0.jar and xmlutils2.0.jar).
 Also I've created the XMLUtils.gwt.xml with this content:

**





*

And Intimeclient.gwt.xml with this content:

**




**
 Is there any wrong sentece?. I'm renaming the modules (xxx.gwt.xml
files) because they are not into .jar package.

What's going on?


thanks!
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
Sorry I dont know what is happening
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
Ok. I'm going crazy with this problem. 
http://www.flickr.com/photos/46306...@n05/4290746026/sizes/o/
<--- There u can see my project structure and the error log when I try
to join in the web application with firefox. I'm going crazy because I
have allready done this for another .jar (commos-fileupload-1.2.jar)
library but I can't do it with xmlutils2.0.jar and
intimeclient1.0.jar. That's what I've tried:

-Copying the .jar files into a lib folder created into the project IRn
folder. Once the libraries are there click with the right button and
then build path -> add to build path. And then these .jar files
automatically get into Referenced libraries section.

-I've tried to the same than above point but before I've included the
PATH of boths .jar into the CLASSPATH of bashrc file.

-Also, I've tried to the same and after do this I've linked the source
code of these libraries.

What else can I try?

Do you know any tutorial or manual about 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
Ok. I'm going crazy with this problem. 
http://www.flickr.com/photos/46306...@n05/4290746026/sizes/o/
<--- There u can see my project structure and the error log when I try
to join in the web application with firefox. I'm going crazy because I
have allready done this for another .jar (commos-fileupload-1.2.jar)
library but I can't do it with xmlutils2.0.jar and
intimeclient1.0.jar. That's what I've tried:

-Copying the .jar files into a lib folder created into the project IRn
folder. Once the libraries are there click with the right button and
then build path -> add to build path. And then these .jar files
automatically get into Referenced libraries section.

-I've tried to the same than above point but before I've included the
PATH of boths .jar into the CLASSPATH of bashrc file.

-Also, I've tried to the same and after do this I've linked the source
code of these libraries.

What else can I try?

Do you know any tutorial or manual about 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
Ok. I'm going crazy with this problem. 
http://www.flickr.com/photos/46306...@n05/4290746026/sizes/o/
<--- There u can see my project structure and the error log when I try
to join in the web application with firefox. I'm going crazy because I
have allready done this for another .jar (commos-fileupload-1.2.jar)
library but I can't do it with xmlutils2.0.jar and
intimeclient1.0.jar. That's what I've tried:

-Copying the .jar files into a lib folder created into the project IRn
folder. Once the libraries are there click with the right button and
then build path -> add to build path. And then these .jar files
automatically get into Referenced libraries section.

-I've tried to the same than above point but before I've included the
PATH of boths .jar into the CLASSPATH of bashrc file.

-Also, I've tried to the same and after do this I've linked the source
code of these libraries.

What else can I try?

Do you know any tutorial or manual about 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
Ok. I'm going crazy with this problem. 
http://www.flickr.com/photos/46306...@n05/4290746026/sizes/o/
<--- There u can see my project structure and the error log when I try
to join in the web application with firefox. I'm going crazy because I
have allready done this for another .jar (commos-fileupload-1.2.jar)
library but I can't do it with xmlutils2.0.jar and
intimeclient1.0.jar. That's what I've tried:

-Copying the .jar files into a lib folder created into the project IRn
folder. Once the libraries are there click with the right button and
then build path -> add to build path. And then these .jar files
automatically get into Referenced libraries section.

-I've tried to the same than above point but before I've included the
PATH of boths .jar into the CLASSPATH of bashrc file.

-Also, I've tried to the same and after do this I've linked the source
code of these libraries.

What else can I try?

Do you know any tutorial or manual about 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
Ok. I'm going crazy with this problem. 
http://www.flickr.com/photos/46306...@n05/4290746026/sizes/o/
<--- There u can see my project structure and the error log when I try
to join in the web application with firefox. I'm going crazy because I
have allready done this for another .jar (commos-fileupload-1.2.jar)
library but I can't do it with xmlutils2.0.jar and
intimeclient1.0.jar. That's what I've tried:

-Copying the .jar files into a lib folder created into the project IRn
folder. Once the libraries are there click with the right button and
then build path -> add to build path. And then these .jar files
automatically get into Referenced libraries section.

-I've tried to the same than above point but before I've included the
PATH of boths .jar into the CLASSPATH of bashrc file.

-Also, I've tried to the same and after do this I've linked the source
code of these libraries.

What else can I try?

Do you know any tutorial or manual about 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-20 Thread Juan M.M.M.
Ok. This is what I've done at the moment.
-I've added the external JARS.
-I've added the source code to this JARS.
...
And what about the gwt.xml file where I have to put it?

On Jan 19, 9:59 pm, jfagh  wrote:
> Juan,
> Also, you need to include both .java and .class files in your JAR. And
> the .java files must not reference any unsupported libraries (i.e.
> those that cannot be translated from java to js by GWT)
> James
>
> On Jan 19, 10:14 am, "Juan M.M.M."  wrote:
>
> > Ok. I'm developing my web application in eclipse. If I have my
> > example.jar library already referenced (Referenced libraries section)
> > in the project. Can I create the Example.gwt.xml file into the
> > com.my.project.client section?
>
> > Thanks for the answer
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Using my own external jars

2010-01-19 Thread Juan M.M.M.
Ok. I'm developing my web application in eclipse. If I have my
example.jar library already referenced (Referenced libraries section)
in the project. Can I create the Example.gwt.xml file into the
com.my.project.client section?


Thanks for the answer
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Using my own external jars

2010-01-19 Thread Juan M.M.M.
hi ppl!
This is the question. I want to use an external jar but i would like
to use them without modify the .jar file. Is that possible? I know
that I have to create a file ".gwt.xml" to set the inherit dependences
of the files. But I would to know if there is another possibility to
use the external jars. Is possible to have the ".gwt.xml" out off the
jar file?


Thanks!!
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Loading images from local filesystem.

2010-01-13 Thread Juan M.M.M.
Yes I understand what u say. I will try to, I don't know how but I
will try it.


P.D.: I did it in a web application with C#.


Thanks!!!
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Loading images from local filesystem.

2010-01-13 Thread Juan M.M.M.
Basically, this is the question. What I want to do is simple in C# but
too difficult with JAVA and GWT, I don't know why.

First I declare a Panel, after this declare de vertical panel wich
will contain the FileUpload. What I want to do is browse an image of
my local system and when I click on the submit button load this image
in a image object displayed in the interface. It is only a proof but I
need to learn how 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Open Dialog Box

2010-01-13 Thread Juan M.M.M.
Two questions:

1) I need that once I browse the Image in my filsesystem and after
this click on the submit boton, How Can I get the local URL of the
Image?

2) and .. How Can I load an Image that is in mi local filesystem
because if I use the normal constructor Image img = new Image("/home/
Juan/picture.jpg"); it doesn't work but It works If use a real URL on
the internet  like for example "http://www.cambio-climatico.com/wp-
content/photos/perito_moreno_01.jpg".



Need 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Open Dialog Box

2010-01-12 Thread Juan M.M.M.
Once I have selected the file (It will allways be an Image), how can I
get the URL of the image to use it in an Image object?

On 12 ene, 12:02, Abdullah Shaikh  wrote:
> You need to use FileUpload
>
> - Abdullah
>
> On Tue, Jan 12, 2010 at 4:27 PM, Juan M.M.M.  wrote:
> > Hi everybody!
>
> > What I want to do is make up a button that will be open an dialog box
> > to select a file of my hard disk. This is the first time I am using
> > GWT 2.0 framework but is so strange that this platform doesn't has the
> > tipical OpenFileDialog class. Someone knows something about this?
>
> > Best greetings!!
>
> > Thank you!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Open Dialog Box

2010-01-12 Thread Juan M.M.M.
Thanks!!!

On 12 ene, 12:02, Abdullah Shaikh  wrote:
> You need to use FileUpload
>
> - Abdullah
>
> On Tue, Jan 12, 2010 at 4:27 PM, Juan M.M.M.  wrote:
> > Hi everybody!
>
> > What I want to do is make up a button that will be open an dialog box
> > to select a file of my hard disk. This is the first time I am using
> > GWT 2.0 framework but is so strange that this platform doesn't has the
> > tipical OpenFileDialog class. Someone knows something about this?
>
> > Best greetings!!
>
> > Thank you!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Open Dialog Box

2010-01-12 Thread Juan M.M.M.
Hi everybody!

What I want to do is make up a button that will be open an dialog box
to select a file of my hard disk. This is the first time I am using
GWT 2.0 framework but is so strange that this platform doesn't has the
tipical OpenFileDialog class. Someone knows something about this?


Best greetings!!

Thank you!
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Problems reading the content of a text file.

2009-12-23 Thread Juan M.M.M.
Thank you very much. You got the answer!

>> "../movies.txt"

Happy Christmas!

On 22 dic, 21:14, Sripathi Krishnan 
wrote:
> The URL you are trying to access is wrong...
>
> Assuming you module is named hangman, this line
>                final RequestBuilder requestBuilder = new RequestBuilder(
> RequestBuilder.POST, "movies.txt" );
>
> makes  a request tohttp://myserver.com/mywar/hangman/movies.txt, whereas
> you want it to behttp://myserver.com/mywar/movies.txt
>
> Try using "../movies.txt", or use GWT.getHostPageBaseURL() ..
>
> --Sri
>
> 2009/12/22 Juan M.M.M. 
>
> > Hi!
>
> > I'm doing an example that I found ina book about GWT. It's the typical
> > example of the hangman. I'm using Eclipse and GWT 2.0. This is my
> > code:
>
> > public class AhorGwt implements EntryPoint {
>
> >        private FlowPanel letters = new FlowPanel();
> >        private Label wordLabel = new Label();
> >        private Image image = new Image();
>
> >        private final int MAX_GUESSES = 6;
> >        private int misses;
> >        private String[] words;
> >        private String word;
> >        private char[] visibleWord;
>
> >       �...@override
> >        public void onModuleLoad() {
> >                //create interface
> >                RootPanel ahorcado = RootPanel.get("ahorcado");
> >                ahorcado.add(letters);
> >                ahorcado.add(image);
> >                ahorcado.add(wordLabel);
>
> >                //load words
> >                final RequestBuilder requestBuilder = new RequestBuilder
> > ( RequestBuilder.POST, "movies.txt" );
> >                try {
> >                         requestBuilder.sendRequest( null, new
> > RequestCallback(){
>
> >                                public void onError(Request request,
> > Throwable exception) {
> >                                        GWT.log( "failed getting movie
> > list", exception );
> >                                }
>
> >                                public void onResponseReceived(Request
> > request, Response response)
> > {
> >                                        words =
> > response.getText().split("\n");
> >                                        GWT.log(words[2], null);
> >                                        startGame();
> >                                }} );
> >                } catch (RequestException e) {
> >                        GWT.log( "failed getting movie list", e );
> >                }
> >                wordLabel.setStyleName("word");
> >        }
> >        // ...
> > }
>
> > My movies.txt file is under /war/ file next to my index.html. Ok, once
> > I get the supossed text file into 'words' variable I do a 'GWT.log
> > (words[2], null);' in the console developent mode of eclipse I get
> > this "HTTP Status 404 - Status report". As you can see, the file
> > movies.txt hasn't been loaded. Instead of this, the program has red a
> > kind of default text/html file. I don't know if the problem is in the
> > location of the file or If I'm using a wrong method to read files on
> > the client side.
>
> > Thanks,
>
> > Juanma
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Problems reading the content of a text file.

2009-12-22 Thread Juan M.M.M.
Hi!

I'm doing an example that I found ina book about GWT. It's the typical
example of the hangman. I'm using Eclipse and GWT 2.0. This is my
code:

public class AhorGwt implements EntryPoint {

private FlowPanel letters = new FlowPanel();
private Label wordLabel = new Label();
private Image image = new Image();

private final int MAX_GUESSES = 6;
private int misses;
private String[] words;
private String word;
private char[] visibleWord;

@Override
public void onModuleLoad() {
//create interface
RootPanel ahorcado = RootPanel.get("ahorcado");
ahorcado.add(letters);
ahorcado.add(image);
ahorcado.add(wordLabel);

//load words
final RequestBuilder requestBuilder = new RequestBuilder
( RequestBuilder.POST, "movies.txt" );
try {
 requestBuilder.sendRequest( null, new 
RequestCallback(){

public void onError(Request request, Throwable 
exception) {
GWT.log( "failed getting movie list", 
exception );
}

public void onResponseReceived(Request request, 
Response response)
{
words = response.getText().split("\n");
GWT.log(words[2], null);
startGame();
}} );
} catch (RequestException e) {
GWT.log( "failed getting movie list", e );
}
wordLabel.setStyleName("word");
}
// ...
}


My movies.txt file is under /war/ file next to my index.html. Ok, once
I get the supossed text file into 'words' variable I do a 'GWT.log
(words[2], null);' in the console developent mode of eclipse I get
this "HTTP Status 404 - Status report". As you can see, the file
movies.txt hasn't been loaded. Instead of this, the program has red a
kind of default text/html file. I don't know if the problem is in the
location of the file or If I'm using a wrong method to read files on
the client side.

Thanks,

Juanma

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.