Re: GWT on iSeries

2014-11-27 Thread karim duran
Hi Luca,

1) A JVM is a JVM ! While a JVM is compliant with Java virtual machine
specifications, you shouldn't meet any issue using it.
If you installed JAVA with a IBM LIC on iSerie, it's probably the IBM JVM.
But you can install Oracle JVM and test.
On IBM iSerie main screen type "qsh" to open an UNIX-like shell, then type
"java -version". You'll see if it's IBM or ORACLE JVM (hot spot)

2) Jetty is a lightweight JSP/Servlet engine used for developpement (GWT
Dev Mode) and debug purpose.
In order to test in pre-production, you should use TOMCAT on iSerie, as i
told you in my last mail.
USING WEBSPHERE DIRECTLY IN DEV MODE IS VERY HEAVY AND WASTE TIME !!! I
don't advise to do so.

3) If you still have some doubts, download a GWT example application (mail
client for exemple ) and deploy it to your websphere server. Test and
check. If your logs are clean. If so, it's OK.

I hope it helps you.

Regards.

Karim Duran

2014-11-21 13:48 GMT+01:00 Luca Tozzi :

> Yes.. my doubts are based on the IBM jvm
> have you find any difference among the Oracle JVM and IBM JVM...
> when compile GWT?
>
> And is Jetty a good Server for try application before to deploy on iSeries?
> or otherwise.. do you use WebSphere for iSeries directly when you develop?
>
> Il giorno martedì 18 novembre 2014 19:27:13 UTC+1, Terry Birch ha scritto:
>
>> Hi Luca,
>> We have been running GWT apps on the iSeries/Power 6 for several years in
>> Websphere. I have found it similar to running in Tomcat or other web
>> server, Did you have specific questions related to running on the i?
>> Terry
>>
>> On Tuesday, November 18, 2014 11:09:49 AM UTC-5, Luca Tozzi wrote:
>>>
>>> Anyone have experience on use GWT on WebSphere for iSeries?
>>>
>>> I need skills, about it, for analyze and develop an important business
>>> project.
>>>
>>> TNKS,
>>> Luca
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: GWT on iSeries

2014-11-18 Thread karim duran
Hi Luca,

GWT apps are not different from usual JEE Web Application.
JEE Web Applications are system or architecture independant, so they run on
iSeries too.

If you use IBM Rational studio (or Eclipse that is quite equivalent ),
develop your application as you did for Tomcat

or any Java application server with minimum JSP and Servlet runtime. Export
your application as a WAR package, then deploy it to WebSphere.

GWT don't put addons that are not compliant with JEE standards.

Things to check is that you have Google GWT libraries in the /lib
application folder.
It should work without problem.

Tell us if you meet any issue.

Karim.

2014-11-18 19:27 GMT+01:00 Terry Birch :

> Hi Luca,
> We have been running GWT apps on the iSeries/Power 6 for several years in
> Websphere. I have found it similar to running in Tomcat or other web
> server, Did you have specific questions related to running on the i?
> Terry
>
>
> On Tuesday, November 18, 2014 11:09:49 AM UTC-5, Luca Tozzi wrote:
>>
>> Anyone have experience on use GWT on WebSphere for iSeries?
>>
>> I need skills, about it, for analyze and develop an important business
>> project.
>>
>> TNKS,
>> Luca
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: How to apply a complete css file to an element in Ui-Binder?

2013-03-11 Thread karim duran
Hi membersound,

1) I think your SuggestBox should have a ui:field attribute

2) then, add a stylename attribute like this ->
styleName="{css.mySuggestBox}". Where mySuggestBox is your css style
directives name for your gwt:SuggestBox.

Also, In UI Visual Designer, just can click on your suggestbox, you have a
little button on properties panel (advanced properties) where you can type
an ui:field name and css properties too.

I hope it help you.

Regards.

Karim Duran



2013/3/10 membersound 

> How can I apply a complete css file to a specific element using UI Binder?
>
> I know the following does not work, as it is missing css.property statement.
> But you get the idea of what I'm trying: replacing all SuggestBox styles
> only for this specific suggestbox with the ones in my CSS file.
>
> 
> 
>  
>   //some other stuff
>//Error: incomplete field reference
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Displaying a PDF in a GWT application using a servlet (or not)

2012-03-15 Thread karim duran
Hi Philroc1,

I suggest you to developp your own servlet to do that.
PDF in a blob is a good solution ( no need to fill the filesystem ).
Put the SubscriberInformation object in session, so your servlet can find
it, and serve the PDF.

I met a similar problem, and it's how i did.

Regards.

Karim Duran

2012/3/15 philroc1 

> Hello,
>
> I have just developed a GWT application which displays a table
> containing client invoice data (invoice number, start date, etc.) I
> would now like to display the clients' invoice PDFs (which are stored
> in BLOBs) whenever they click PDF icons contained in the table's last
> column.
>
> One of my colleagues recommended creating an RPC "servlet" to do that.
> Unfortunately, I can't figure out how to pass user information
> (contained in a SubscriberInformation object in the GWT application)
> to the servlet so that it can easily retrieve the corresponding BLOB
> using one of the application's DAOs.
>
> I have thought of writing the contents of the blog to a file in the
> GWT application, and passing the file URL to the servlet, but the
> Project Manager doesn't want PDF files to be written to the file
> system.
>
> Any suggestions would be greatly appreciated.
>
> philroc1
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT in enterprise systems (SAP, AS/400)

2012-02-20 Thread karim duran
Dear Dominikz*,*
*
*
Ok, i understand that you don't want to use Java and i had a look at your
PDF before my last answer.
I agree with you : RPG native *pgm are fast.

But there's some points i had to consider when i worked on projects i told
you about.

1) You can use jt400 without any WebSphere or Tomcat. And i did client
applications without these
heavy gaz factory !!! You're right !

2) Performance are not so bad if you tell the OS400 to pre-compile your
Java pgm and use JIT ( just in time )
option. Don't use PDM option CRTJVPGM because you get bad performance.
Instead, build the pgm
in Rational studio and put it on IFS with FTP or client access.

3) I met situation where it wasn't possible to do simple things that i
could do with jt400 in minutes :
( DATAQUEUE, OUTQUEUE, thread programming, generate PDF without using
elephant infoprint service, and many others things)

But, what i wanted exactly to tell you, is that i run directly native RPG
PGM on os400 from my mobile device
used as a java client, without any server ( even apache and CGI PGM) on AS.
So it meets your idea.

About SAP i'm not enough specialist and i trust you and your experience.

Anyway, it was very interesting to talk with you, and i'd like to follow
your project or posts about it.

Hoping hear about you soon if you like.

Regards.

Karim Duran

2012/2/20 dominikz 

> Dear Karim,
>
> I'm very aware of jt400 library. I've done tons of things with that over a
> couple of past years. One problem with it is that it does not support
> everything you'd like to do with AS/400. The other is that it's performance
> is dreadful. Trust me, I checked it, even had lectures about it during
> conferences. I wouldn't even be going near RPG (since I'm java programmer)
> if the performance of jt400 wasn't so bad.
>
> The same is with JCo library on SAP. You need to run Java server in order
> to use it. And it's efficiency is also dreadful. Not even mentioning that
> if you look at its source code, you'll start tearing your hair out of your
> head. They've put there one class with dozens of static methods. One
> library with one class that is 1500 lines long. A nightmare.
>
> One more fact against Java is that you need to have java server to run it
> (WebSphere or Tomcat). And admins of AS400 don't like java since when they
> hear java they think 'WebSphere' which is a total mess. But this is another
> conversation I don't want to start here. The same is with SAP guys. When
> they hear 'Java', they run away in anger.
>
> Anyway going back to the original point, the whole idea is NOT TO USE JAVA
> AT ALL IN RUNTIME. This is how you should look at the PDF I've sent.
>
> Other than the above I really appreciate your answer :)
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/ETFpZEtuiGEJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: GWT in enterprise systems (SAP, AS/400)

2012-02-20 Thread karim duran
Hi Dominik,

I read the PDF and i'd like to tell you that i do the same on the AS400.
You can embed a JAVA library into your project, containing anything you
need to communicate with RPG programs on the iSerie.
If you add this library into your GWT project, it's even more easy and fun.

You can also add the library into Android device project. ( i didn't test
yet ).

For SAP, there is also a big Java API library you can use to talk to ABAP
pgm, or directly to SAP data.

(*) for iSerie ->

Have a look at this library : http://jt400.sourceforge.net/ ( open source
version )

You can find it (IBM production version ) directly on your AS400 :
jt400native.jar if you setup the right PTF for Java support.

Today, i connect to OS400 from my Android Phone or Tablet with a tn5250
terminal emulator from anywhere.

It was just a notice. I'm really interrested by your work.

Thanks.

Regards.

Karim Duran



2012/2/19 dominikz 

> Dear developers,
>
> I'm using GWT in combination with SAP and IBM's AS/400 (aka IBM i)
> systems.
> I thought that this topic may be interesting for some of you.
>
> Please see the attachment.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/rJdyAFa2clcJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: How to save a file in server

2012-02-16 Thread karim duran
Hi Yashujn,

Suppose you have a directory "myWebFiles" under the root of your Web
aplication, in your servlet code you can do that :

*1) INSIDE THE WEB APPLICATION PATH*
*
*
/* byteTowrite is type of byte[] */
try
{
String myWebFilesPath = getServletContext().getRealPath("/myWebFiles");
String fileName = "dataFile.xml";
FileOutPutStream localFile = new FileOutPutStrema(myWebFilesPath
+ fileName);
localFile.write(byteTowrite);
localFile.flush();
localFile.close();
}
catch { .../...}

*2) ANYWHERE ON THE SERVER WITH PARAMETER PATH*
*
*
*) in web.xml when you register your servlet, add a init parameter for your
servlet, call it "folderPath"
and give it the value you want (e.g "/var/www/myWebFiles/")


uploadedFilesFolderPath
/var/www/myWebFiles/


*) use it to write your file

/* byteTowrite is type of byte[] */
try
{
String myWebFilesPath
= getServletConfig().getInitParameter("uploadedFilesFolderPath");
String fileName = "dataFile.xml";
FileOutPutStream localFile = new FileOutPutStrem(myWebFilesPath + fileName);
localFile.write(byteTowrite);
localFile.flush();
localFile.close();
}
catch{.../...}

Of course, in this case, you have to config web.xml before deploying your
application, and tomcat runtime *must have write permission for the
folder /var/www/uploadedFiles/* in this exemple.

I hope it helps.

Look at the Servlet API javadoc for more details. It doesn't depends upon
GWT.

Regards.

Karim Duran

2012/2/16 yashujn 

> I am using tomcat server to for my GWT based project..
>
> I have to create a folder in the server and save .xml files in that
> folder.
>
> Need help regarding saving the file.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT App Deployed To Tomcat Displays Old Content

2012-01-24 Thread karim duran
Hi KGD,
*
*
I met the same issue ( ...a day ago ).
Remember that the Tomcat you use on your system is the same that Eclipse
use.
Eclipse just uses a connector to the tomcat runtime.
So, there might many reasons :

1) first, when you deploy your WAR, you forget to allow "overwrite existing
WAR" from
Eclipse export tool, and you still run the old WAR

2) stoping and starting Tomcat has no effect to the server session TLD cache
(not the browser cache ). Under Tomcat directory, you have a "work"
directory with *.tld files.
Delete all these files and stop-restart tomcat many times, even if you have
cleaned
the webapps directory

3) you think you clean your browser cache but the browser didn't clean its
cache
( yes it happens)
Press many time F5, clean cache from menu, request the same JSP with Tomcat
stopped
in order to really clean the browser cache

Tell me if it solves anything.

If not, we investigate more.

I hope it helps.

Regards.

Karim Duran

2012/1/24 KGD 

> Hi,
>I am currently using Eclipse with GWT SDK 2.4.0 to develop a
> GWT application.  Inside Eclipse, I have tested my application to
> ensure it pulls the dynamic content from a mysql database correctly.
>
>I have deployed it to a local Tomcat 7 installaton and the
> application war file deploys successfully.  However, the page displays
> the OLD hard-coded content which were merely placeholders.
>
>The content that is displayed when I deploy the app to Tomcat
> does not exist ANYWHERE in my source code as I removed it when I
> changed the source to my database.
>
>  Again, the app works fine when using the embedded App Engine
> for testing but real deployment to Tomcat continues to reflect old
> content.
>
>  I have started/stopped Tomcat, cleared my browser cache,
> manually deleted all files from the Tomcat webapps directory and still
> it's the exact same.
>
> There must be something that I'm missing and I'd appreciate
> any help that is available.
>
> Thanks,
> KGD
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How to inspect GWT generated javascript in Internet Explorer?

2012-01-17 Thread karim duran
Hi Thomas,

As you said, there is also a Developer Toolbar for IE8 ( IE6 IE7 too).

According to the Microsoft documentation
http://msdn.microsoft.com/en-us/library/dd565628.aspx

Tools provides support for *JScript *( read the documentation from the url
above ).

As you know, JScript is a specific Microsoft extension from ECMA Script
with non-portability issues.

I met these issues during my work, it's why i advice Mozilla tools.

Mozilla developper tools always use standard compliant tools. It's why i
made suggestion about them.

Without questioning the IE tools, I do think that the Mozilla tools are
more suitable.

Regards.

Karim Duran

2012/1/16 Thomas Broyer :
>
>
> On Monday, January 16, 2012 8:46:31 AM UTC+1, karim33 wrote:
>>
>> Hi Mariyan
>>
>> Tools to inspect javascript code in IE are difficult to find.
>
> Er, starting with IE8, simply hit F12.
>
> For IE6 and IE7 (but who really cares?), Microsoft provides the "IE
> Developer Toolbar" add-on.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/eGHXo6-8wKkJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: How to inspect GWT generated javascript in Internet Explorer?

2012-01-15 Thread karim duran
Hi Mariyan

Tools to inspect javascript code in IE are difficult to find.

There is a solution to do that with Mozilla / Firefox

1) Download the WebDeveloper tools for mozilla and install it
https://addons.mozilla.org/en-US/firefox/addon/web-developer/
You have all you need to inspect your page ( CSS, HTML DOM,
javascripts with a debbuger )

2) Download and install firebug, an advanced tool to debug your client scripts
https://addons.mozilla.org/en-US/firefox/addon/firebug/

3) Download and install the User Agent Switcher extension for Mozilla / Firefox
https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
A tool to change the client signature of your browser

>From the user-agent-switcher tool menu change user-agent to IE (
choose a provided version)

GWT will then believe that your browser is IE, serving generic and
specific javascript that
you can track, inspect and debug with the tools i'm speaking about.

I hope it helps.

Regards.

Karim Duran

2012/1/15 mariyan nenchev :
> Hi,
>
> I am unable to inspect GWT generated javascript code in IE?
> Any ideas how to do it?
>
> 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.

-- 
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 cross-domain requests works in Chrome/FF, fail in IE/Opera

2012-01-11 Thread karim duran
Hi darkflame,

As you see, all browsers don't support cross-domain scripting.
The good practice is to avoid cross-domain scripting.

Why ? Because for the moment, it's a W3C draft and not yet implemented
by browsers all implementors.

http://www.w3.org/TR/access-control/

So, your application might not work on any browser, because you don't
know if your application user use a compatible browser.

But, there is an issue :

If you need data from another domain, let request the data from server
side, then transmit the data back to the client.


CLIENT   --> server your app
-> other domain
<
<

There is a lot of library ( apache client HTTP, Google, REST, etc)
you can use to do that.

In my opinion, cross domain scripting is a real security problem.

I hope it helps.
Regards.

Karim Duran

2012/1/11 darkflame :
> I dont know about IE, but try Opera12 as cross-domain support via CORS
> was only added on that version.
>
> On Jan 10, 8:23 pm, ussuri  wrote:
>> Hello!
>>
>> I serve my gwt-based app from Google AppEngine from
>> .appspot.com - both the script (GWT) and data (XMLHTTPRequest
>> POSTs). If I open https://.appspot.com/app.html, everything
>> works perfectly in all modern browsers.
>>
>> However, I want to serve the .html page from my custom domain in order
>> to use SSL:https://mydomain.com/app.html
>>
>> I modified app.html to include script from appspot; I use a  and
>> do RootPanel.get("my_div"). I hard-coded appspot URLs for POSTs.
>>
>> This solution works perfectly in Chrome and Firefox with > name="xsiframe"/> (or "xs") - I open an HTTPS URL from my custom
>> domain, it loads GWT via https from appspot.com, and do AJAX
>> communication (not GWT-RPC, but pure ajax) with my appspot.com app via
>> ssl/https.
>>
>> BUT, in IE and Opera the page opens, GWT renders the content in the
>> page, but AJAX requests fails with XS-origin errors:
>>
>> com.google.gwt.http.client.RequestPermissionException: The URL
>> https://***.appspot.com/*** is invalid or violates the same-origin
>> security restriction
>>
>> I do set "Access-Control-XXX" headers in my servlet (java), and I
>> tried to set "X-XSS-Protection" to "0" in my custom domain, but still
>> IE and Opera do not let me query to appspot.
>>
>> What can I do to let IE at least to allow posting to appspot.com?
>>
>> Thanks,
>> MG
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Add packages to GWT project

2012-01-04 Thread karim duran
Hi Franco,

Of course you can  And  I should say you must...
GWT is a convenient technical framework, but it don't solve your business
problem or your application focus domain.

In Eclipse ( view project ) just right clic on your GWT project and
new->package, name it just say

com.franco ( for example )

Then on it right clic and  new -> class -> your business class

In UI component, you just have to instanciate your Objects and call their
services.

That's all.

I hope it helps.

Regards.

Karim Duran.

2011/12/28 franco <90fra...@gmail.com>

> Hello.
>
> I´m developing a simple project in GWT 2.4 with Eclipse JEE Indigo.
> I would like to know if I can add my own packages to the project. For
> example:
>
> src
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Problem with gwt fileUpload in GWT 2.4

2011-12-08 Thread karim duran
Hi James,

You can also use Apache commons fileupload library, it's easy to use and to
integrate with GWT.
http://commons.apache.org/fileupload/

Regards.

Karim Duran.

2011/12/8 James Drinkard 

> Okay, after doing more searching I found you can't do RPC with this
> widget, so I opted to create a regular httpServlet and that worked. Hope
> this helps someone!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/m3JtPntBkEwJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Dart and GWT

2011-11-11 Thread karim duran
Hi Eric,

I saw the Dart Editor  (Linux, Mac, Win). It's a standalone editor based on
Eclipse UI.
Is there a real Dart plugin for Eclipse ?
If not, do you plan to provide one ?

2011/11/11 Eric Clayberg (Google) 

> See... http://googlewebtoolkit.blogspot.com/2011/11/gwt-and-dart.html
>
> The Google Web Toolkit team has been asked recently about our plans
> following the announcement of the Dart programming 
> language a
> few weeks ago.
>
>
> Dart and GWT both share the goal of enabling structured web programming.
> In fact, many of the same engineers who brought you GWT are working on
> Dart. We view Dart as an ambitious evolution of GWT’s mission to make web
> apps better for end 
> users,
> and we’re optimistic about its potential. As Dart evolves and becomes ready
> for prime time, we anticipate working closely with the GWT developer
> community to explore Dart.
>
>
> Meanwhile, rest assured that GWT will continue to be a productive and
> reliable way to build the most ambitious web apps — and even games like
> Angry Birds. Key projects within Google rely on GWT every day, and we plan
> to continue improving (and open-sourcing) GWT based on their real-world
> needs.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/WzBPyXZ1GdgJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Failure Parsing XML Document from Servlet

2011-09-29 Thread karim duran
Hi AThinerCoin,

I agree with you : "I'm pretty sure it's not a GWT issue"...

1) if you want to serve XML from your servlet, why do you need to parse it
? Simply serve it. That's all
2) did you set correct content type from your sevlet ? ->
response.setContentType("text/xml");
3) did you close your stream with the close() method of the OutPutStream ?
4) your GWT client receive a raw XML stream. What do you do with it ?

I hope it helps.

Regards.

Karim Duran

2011/9/29 AThinerCoin 

> I'd like to pass an xml file to my gwt client.  I created another
> servlet that fetches it from the local file system and returns the xml
> file when I call its url.
>
> If I go to the url from my browser, it looks fine.  If I fetch the url
> from curl, it uses the >< kind of format.  If I fetch the url
> from my gwt client, I get different results and error messages in
> development versus production mode.
>
> If I archive the xml file directly into the war, my program works
> perfectly.
>
> I'm pretty sure it's not a GWT issue, but I'm not sure where else to
> turn.  Any guidance would be appreciated.
>
> In development, it looks like I don't get a result at all and my error
> is:
> (XMLParserImplSafari.java:38) 2011-09-28 18:13:24,828 [FATAL] Uncaught
> Exception:
> com.google.gwt.xml.client.impl.DOMParseException: Failed to parse:
> error on line 1 at column 1: Extra content at the end of the document
>at
>
> com.google.gwt.xml.client.impl.XMLParserImplSafari.throwDOMParseException(XMLParserImplSafari.java:
> 38)
>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:
> 167)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
> 326)
>at
>
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 207)
>at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 132)
>at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>at
>
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
> 91)
>at
>
> com.google.gwt.xml.client.impl.XMLParserImplSafari.parseImpl(XMLParserImplSafari.java)
>at
> com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:
> 278)
>at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)
>
> In production, I get what looks like the right result back (based on
> Log statements), and my error is:
> com.google.gwt.xml.client.impl.DOMParseException: Failed to parse:  xml version="1.0" encoding="UTF-8"?>
> GriffinDashboard Publi
>at
>
> Unknown.java_lang_Throwable_fillInStackTrace__Ljava_lang_Throwable_2(Unknown
> Source)
>at
>
> Unknown.com_google_gwt_xml_client_DOMException_DOMException__SLjava_lang_String_2V(Unknown
> Source)
>at
>
> Unknown.com_google_gwt_xml_client_impl_DOMParseException_DOMParseException__Ljava_lang_String_2Ljava_lang_Throwable_2V(Unknown
> Source)
>at Unknown.com_google_gwt_xml_client_impl_XMLParserImpl_
>
> $parse__Lcom_google_gwt_xml_client_impl_XMLParserImpl_2Ljava_lang_String_2Lcom_google_gwt_xml_client_Document_2(Unknown
> Source)
>at Unknown.com_atti_aas_griffin_dashboard_client_Config_
>
> $parseChart__Lcom_atti_aas_griffin_dashboard_client_Config_2Ljava_lang_String_2V(Unknown
> Source)
>at
>
> Unknown.com_atti_aas_griffin_dashboard_client_Config_Config__Ljava_lang_String_2V(Unknown
> Source)
>at Unknown.com_atti_aas_griffin_dashboard_client_GWTClient
>
> $1_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown
> Source)
>at Unknown.com_google_gwt_http_client_Request_
>
> $fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V(Unknown
> Source)
>at Unknown.com_google_gwt_http_client_RequestBuilder
> $1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V(Unknown
> Source)
>at Unk

Re: How to use external Java beans on client

2011-09-28 Thread karim duran
Hi David,

1) If you have the javadoc of the library where the javabean Class is, you
don't need the source at all.

2) Simply put the *.jar in /WEB-INF/lib of your web application. GWT don't
prevent you to use normal java library in your project. As soon as is done,
your javabean is in the CLASSPATH of your application. You can use it.

3) If you use Eclipse as IDE, simply right-clic on the project -> propertie
-> build path -> add external jar. And it's done

4) If you have the source, but don't have the javadoc, unzip the source jar
in a folder. Then repeat the step 3), clic on the jar you just added ->
javadoc location -> browse to the folder where you unzip the source. And
it's done.

I hope it helps.

Regards.

Karim Duran



2011/9/28 David 

> I need to use Java beans (classes with getters and setters) from an
> external jar-file (like Xyz-1.2.3.jar) on the browser client. These
> beans implements java.io.Serializable and the Java source is available
> in a separate Xyz-1.2.3-sources.jar. How could this be done?
>
> I found http://www.vogella.de/articles/GWTModules/article.html but
> still can't get it to work.
>
> Any help appreciated, 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.
>
>

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



Re: How To test Application an emulate many users

2011-09-28 Thread karim duran
Hi Juergen,

1) Build your application as you usually do. Deploy it.
2) Then download "Webload" tool ( open source version of the famous
Loadrunner from Mercury) http://www.webload.org
3) Read the instruction to integrate the plugin in your browser
4) Then browse your application as a normal user. WebLoad record your surf
on the application ( there is a record button ) into a script.
5) Then, stop recording, and replay with 1, 100, 1000 users

The tool record load average, request time, etc..and produce high quality
report.

I hope it helps.

Regards.

Karim Duran.


2011/9/28 Palo G. 

> You can use Selenium to do load test trought user interface with
> little modifications, or you can create load test using for example
> JMeter  that sends POST messages with content that you will catch from
> GWT RPC communication.
>
> On 28 zář, 08:57, Foermchen82  wrote:
> > Hi everybody,
> >
> > the GWT Test tools only allows to test single modules.
> >
> > But who is it possible to test a deployed application? I want to
> > emulate multiple users to have whole load test.
> >
> > Kind regrads,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: JSON

2011-09-20 Thread karim duran
Hi Facundo,

Did you try Google Gson :

http://code.google.com/p/google-gson/

Have a look, maybe it can help you.

Regards.

Karim Duran

2011/9/20 Facundo Schwindt 

> Hi Everyone.
>
> Anyone knows which are the best option for JSON Serialization and
> Deserialization ?
> Is only for JSON purpose !!
>
> I was looking Piriti and RestyGWT..
>
> I see that Piriti (http://code.google.com/p/piriti/wiki/GettingStarted)
> use aproximate 20 .jar  ( GIN 1.5 <http://code.google.com/p/google-gin/>, 
> Guice
> 3.0 <http://code.google.com/p/google-guice/> , Totoe 
> 0.2.4<http://code.google.com/p/totoe/>
>  )
>
> RestyGWT seem to be similar to Piriti but i did not test it yet
>
>
> Thanks
> Facundo
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: EJB integration in GWT-jBoss-project

2011-09-15 Thread karim duran
Hi Norman,

1) As you see in your log -> java.lang.NoClassDefFoundError:
sung/app/kylintv/product/Product , one of your Classes or package can't be
found by the server runtime.

Are you sure that your *.war is well generated ?

Open your *.war with a ZIP utility tool and check if there is a
'Product.class' and 'sung.app.kylintv.product' package. Sometimes Eclipse
War exportation tool don't include package or classes with compilation
warnings.

2) Of course GWT applications work with EJB...So in my opinion EJBs are not
the problem.

You'll tell me later.

I hope it helps.

Karim Duran.








2011/9/15 Norman Klingspor 

> Hello,
>
> I'm trying to establish a shop-system through gwt. In Ecplise running
> on jBoss 6.1.0.Final, GWT 2.4
>
> In my first approach I wanted to integrate my ejb-structures from the
> originial project. As a result I:
>
> 1.) created a .ejb project and integrated all classes relevant
> from my original project
> 2.) created a .gwt project, build first page, one button:
> establish database (which is implemented in my class ProductHome.java)
> 3.) adding an interface Product for ProductHome
> 4.) added my .ejb-project into my build-path, added the
> generated jar-file to the deployf-folder WEB-INF/classes by hand
> additionally
> 5.) build the Service DatabaseBuilderService (incl
> DatabaseBuilderServiceImpl and DatabaseBuilderServiceAsync)
> 6.) deployed the complete war-folder to jBoss into .gwt.war
>
> The page is build, and I can reach my side, pressing the button to
> start my function in .ejb CreateDefaultDatabase().
>
> In debug I reached the server-code-line, where the external function
> should be called.
>
> But in jBoss there still occurs this Error:
>
> 2011-09-15 17:17:26,324 ERROR [org.apache.catalina.core.ContainerBase.
> [jboss.web].[localhost].[/kylintv.gwt]] (http-127.0.0.1-8080-2)
> Exception while dispatching incoming RPC call:
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract boolean
>
> sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEntries()'
> threw an unexpected exception: java.lang.NoClassDefFoundError: sung/
> app/kylintv/product/Product
>at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 385) [:]
>at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 588) [:]
>at
>
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> 208) [:]
>at
>
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
> 248) [:]
>at
>
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
> 62) [:]
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:
> 1.0.0.Final]
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:
> 1.0.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 324) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>at
>
> org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:
> 67) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 274) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 275) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 161) [:6.1.0.Final]
>at
>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
> 181) [:6.1.0.Final]
>at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
>at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
>at
>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
> 88) [:6.1.0.Final]
>at
>
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
> 100) [:6.1.0.Final]
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 159) [:6.1.0.F

Re: What about non Javascript sites?

2011-09-07 Thread karim duran
Hi Raks & Alexandre,

Absolutely. It is even recommended to have a standard behavior if javascript is
disabled (which is rare these days).
To do this, create web pages with a traditional business logic. They will be
displayed without javascript  enabled.
If javascript is on, it must dynamically replace the contents of pages.
Many companies have this problem. But it requires more work to deal with

Another way is to display a friendly message to the user. :
"JavaScript should be enabled on your browser in order to this application
to run normally" or something like that.

I hope it helps.

Regards.

Karim Duran.

2011/9/7 Alexandre Dupriez 

> Hello,
>
> Could you please tell us more about the tier application you would
> have to maintain? Which technology is used, if not Javascript?
>
> On 6 sep, 15:43, raks  wrote:
> > Hi,
> >
> > I am very taken with GWT and I believe will make maintaining my company's
> > site easier.
> >
> > However, they say they need to maintain a non JavaScript version of the
> > site.
> >
> > Any ideas how we can do this? Would it have to be a seperate site? Can
> the
> > app be partitioned in some way?
> >
> > Thanks
> >
> > Raks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Developing GWT App using Tomcat

2011-09-06 Thread karim duran
Hi Ashwani,

You have two parts in a GWT application :
1) Client part :

   - User interface ( panels, menus, grids, tree etc)
   - javascript generated by the GWT compiler from your java client code

2) Server part :

   - Servlets which receive requests across RPC calls from the client
   - any logic business part for your application ( classes, packages,
   external java framework etc...)

So, you should have two package e.g com.myapp.client and com.myapp.server.

In Eclipse, add mysql connector reference  ( for me it's
connector-java-5.1.14-bin.jar ) in your project settings, as you do for
other java library.
In your server part code, connect to your database as you do in other
standard J2EE application.

By proceeding like that, you ensure having a standard behaviour for your
application.
You can test your applcation with your database in DEV and TEST mode.

When you deploy, the client part will be compiled in javascript to manage
the UI ( DHTML scripting based ). The generated javascript will make the
AJAX calls to your server part and feed your UI components as you decided in
your client code.

Don't forget to put MySql connector jar, in the correct tomcat installation
subfolder.( for me it's
/usr/share/tomcat5.5/common/lib/mysql-connector-java-5.1.14-bin.jar ).

I'm surprised that you can't debug your code !!! It should work, you should
be abble to debug your application. I think something is missing to your
project settings.

I hope it helps.

Regards.

Karim Duran


2011/9/6 Ashwani 

> Hi,
>
> I was developing simple app using embeded jetty server in GWT Designer
> till i got stuck when i was connecting to mysql db.
> The same code for connection works very well, if i run it as java
> application. But was failing when running using embedded server.
>
> The I decided to put the app on tomcat and then develop using it.
> Now the connection works but i face issue while development:
>
> 1) The option Debug->Web Application (running on external server) does
> not work. i.e break points are not hit.
> 2) Everytime i add code, i have re-deploy my application.
>
> How can work properly with Tomcat as server and GWT Designer as IDE ?
>
>
> Regards,
> Ashwani Kr Sharma
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT development is UNBEARABLY slow

2011-09-05 Thread karim duran
Hi John,

In my opinion GWT is not for little application ( just a newsgroup or forum
). For big application you earn lot of time because it's easy to build the
user interface, easy to test, easy to add functionalities...and easy to
deploy. Really cross browser, and friendly java based.

I agree with you. In dev mode or hosted mode it can be a little bit slow.

But when i deploy in production mode ( Tomcat or Glassfish server ), it's
fast, responsive, with full AJAX support. I can display complex UI in any
browsers, without worry about javascript, IE browser non conformance. Etc...

Really, this technology is a real pleasure.

If you have some pb with hosted mode and appengine, you can write Ant script
or Maven script to automatically deploy on tomcat, on each build, and test
in real condition.

In hosted mode, the code is "interpreted" by a dedicated JVM, it's why it
can be slow. But once compiled in javascript and deployed on server, for me
it's fast.

I think it's not a good idea to test your application every 5 mns. It's not
productive. Instead, i write 20 or 30 java classes, design my UI, build my
server component, and then, test my application.

You can really build a sophisticated application in few days. Once on server
it run fast.

Regards.

Karim Duran

2011/9/5 John Wheeler 

> The cross-browser time-savings are completely diminished when you take into
> account OOPHM or hosted mode development in ANY of the browsers with ALL of
> the optimizations on stackoverflow, in the newsgroups, etc. It is incredibly
> slow and frustrating.
>
> People considering GWT development need to know that the hosted mode and
> out of process plugins are essentially worthless because once your app gets
> to one or two screens, you'll be deploying to live everytime you want to
> test. This just sucks for app engine apps which take over a minute to
> deploy. I don't like having to wait 5 minutes for compile/test cycles.
>
> Seriously, it takes 5 seconds for a button to click. Do you guys plan on
> doing anything about it ever?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/q_Es5YL0ggcJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: mailto: links in Google Chrome

2011-09-01 Thread karim duran
Hi Melody,

In my opinion you shouldn't use target attribute with an email link. Target
attribute tells the browser how it should manage the link (e.g in the same
window, in the parent window, in a new window). It's appropriate for Web
browsing, not for email.

When the browser meet a email link mailto, it just asks the system to open
your client mail software as you said.

I agree with you, it's strange that you are redirect to about:blank page. I
can't reproduce this incident in a simple exemple. But my Google Chrome
version is old.

Does this pb happen in dev/test mode ? Or in deploiement mode ?
May be you can try to use a GWT link instead of hard coded HTML mailto link.

I hope it helps.

Regards

Karim Duran

2011/9/1 melody 

> I am trying to implement mailto: links in my application. When I use
> the mailto: link with the target attribute as shown below, the browser
> opens the email program fine but closes my GWT program by moving the
> browser to about:blank page.
>
> Send Email
>
> The same link works fine in Firefox without closing my GWT application/
> page.
>
>
> If I use the following link with the TARGET attribute, the email
> program is opened correctly but Google Chrome annoyingly opens a new
> tab with the URL about:blank
>
> Send Email
>
> Again the same links work fine in Firefox.
>
> Is there a way around this Google Chrome problem with email links?
>
> Thanks,
>
> Melody
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Providing html contents directly to servlet

2011-08-31 Thread karim duran
Hi Vijeta,

I don't really understand what you want to do, but it should work.
don't forget to

1) set your response content-type -> res.setContentType("text/html") befor
any output
2) close your stream

   - ServletOutputStream out = getOutputStream();
   - out.write(xml.getBytes());
   - out.close();

3) register your servlet in web.xml ( servlet class, servlet mapping ) in
order to let the J2EE container knows it exists
4) download Firefox liveHTTP and watch if you have a 404 or 500 http servor
error, then investigate

I hope it helps.
Regards.

Karim Duran

2011/8/30 Vijeta Angeer 

> Hi,
> We are providing html contents directly to the servlet,instead of that
> html file,but its not geting hit on onmoduleload() in the gwt
> entrypoint. f\
>
> Following is the snippet of my code,
>
> String xml=getHtmlForAuthPage();
> resp.getOutputStream().write(xml.getBytes());
>
> public String getHtmlForAuthPage(){
>
>StringBuilder sb = new StringBuilder();
>sb.append(
>  " "+
>  "" +
>  " html; charset=\"UTF-8\">" +
>  " " +
>  "Auth test"+
> " "+
>  " \"auth.css\">"+
>   " \"javascript\" src=\"com.ensarm.auth.auth/
> com.ensarm.auth.auth.nocache.js\">"+
>   ""+
>   ""
> +
> ""+
> ""+
> " \" tabIndex='-1' style=\"position:absolute;width:0;height:0;border:
> 0\">"+
>   ""+
>  ""+
>""+
>""+
>""+
>""+
>""+
>""+
>"" +
>   " " +
>
>" "+
>   "");
>
>return sb.toString();
>
>}
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Google logo's to brighten up the app.

2011-08-29 Thread karim duran
Hi Rohan

If you want a "Google-logo-like" for your app or product :

http://neswork.com/logo-generator/google-font

Regards
Karim Duran

2011/8/29 Rohan Chandiramani 

> Just a friendly bump, i would really like to know.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/DP69cnVdHTYJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Google logo's to brighten up the app.

2011-08-29 Thread karim duran
Hi Sean

If you want a "Google-logo-like" for your app or product :

http://neswork.com/logo-generator/google-font

Regards
Karim Duran

2011/8/29 Sean 

> Just use Google Image search to get the logos. As long as you don't say you
> drew it or its your product, you can use them.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/cWOly1b3nIYJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: GWT + HttpServlets

2011-08-25 Thread karim duran
Hi Hareen,

Could you be more precise. I don't understand what you mean 

What do you want to do, generate dynamically an image with a servlet ?
What kind of servlet ? a J2EE standard servlet or a GWT servlet ?

So, imagine that in your WebApp, your user is logged and you have store
userID in session as a String.
Imagine you use doGet(HttpServletRequest req, HttpServletResponse resp)
servlet method (GET HTTP action)

1) to retrieve information in session in standard J2EE servlet class just do
that :
String userID = (String)req.getSession().getAttribute("userID"); // return
the userID already stored in session

So, imagine that you get imageID as a request parameter named imageid
2) to serve an image from your servlet just do that :
String imageID = req.getParameter("imageid"); // retrieve the request
parameter imageid
resp.setContentType("image/png"); // you want to serve a PNG image

3) proceed to serve the image in HTTP outputstream
.../.. get image data in byte array byte[] imageBytes .../...
ServletOutputStream out = resp.getOutputStream();
out.write(imageBytes);
out.close();

4) Register your servlet "getimage" in web.xml in order the J2EE container
knows it exists

5) call your servlet with a url link in your web page :
/getimage?imageid=123456

That's all.

If you send me more information about what you want to do, i can help you
more.
GWT servlet extends standard HttpServlet, so methods are still available.

I hope it helps.

Regards.
Karim Duran


2011/8/25 Hareen Bejjanki 

> Can any one please suggest me a way to link an image to a HttpServlet,
> where I can use sessions, requests and etc..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Cross domain GWT RPC

2011-08-24 Thread karim duran
Hi Joe

I also think about this problem

Cross domain data exchange is not a GWT RPC problem, but rather a security
problem and an implementation support problem in Web browsers.

Some browsers already allow cross domain AJAX requests, and other don't.

In my opinion cross domain scripting is still a draft from the point of view
of the normalization :
http://dev.w3.org/2006/webapi/XMLHttpRequest-2/

Even if some browser already support cross domain scripting.

So, your application can use cross domain request, it doesn't mean that it
works on the user browser.

The solution you can adopt is to make a request from the server ( server 2
server )  :

domain1.com <-- myappli_client ---> domain2.net* WRONG, still
draft, not guaranteed to work*
---> <---

myappli_client ---> domain1.com > domain2.net   *OK works in all
cases*
 <---  <---

I hope it helps.
Regards
Karim Duran

2011/8/24 joe 

> d  vide.bz  writes:
>
> >
> > JSON or ProxyServlet is for me not an option. I need to transfert a
> > network of objects as GWT RPC can do with shared objects and not only
> > tree of data.
> >
> > About the ProxyServlet, the main domain is not mine.
> >
> > On Mar 25, 7:26 pm, "d...@..."
> >  wrote:
> > > Hi,
> > >
> > > I need to control the transport of a GWT RPC call. I need to include
> > > GWT serialized
> > > object or directly into the page, or with a custom cross domain
> > > transport.
> > >
> > > There is a way to do this?
> > >
> > > I have find two problem ... but it look like the development is
> > > stopped.
> > >
> > > http://code.google.com/p/gwt-rpc-plus/http://code.google.com/p/xdrpc/
> > >
> > > I have found even how to manually searilze objects with GWT but this
> > > "hack"
> > > does not like reliable.
> > >
> > > http://www.techhui.com/profiles/blogs/simpler-and-speedier-gwt-with
> > >
> > > There a news about this issue? How can I male a GWT RPC call cross
> > > domain
> > > to a custom url?
> >
>
> Any luck with this?
> I use the ClientSerializer class from:
> //
> http://code.google.com/p/cometd4gwt/source/browse/trunk/cometd4gwt/src/org/com
> etd4gwt/client/ClientSerializer.java?r=36
>
> to serialize on the client which I send to the server. On the server, I'm
> having
> trouble decoding the request as it needs to match an RPC defined interface.
>
> gwtws (gwt web sockets) had a nice serialization filter, but doestn't seem
> to
> work with the latest gwt release since some code refactoring in
> TypeOracleMediator class (eg computeBinaryClassName) and I couldn't find
> where a
> bunch of the functions are now located.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Generating XML

2011-08-20 Thread karim duran
Hi Gary,

I understand that you want to do. From a java object, you want to produce
XML representation.

Ok, you have many framewoks that do this for you.
The 2 solutions i propose to you :

1) Use a standard way ( good practice and a framework support )
Let see JAXB API on Oracle web site because it's a standard way ( JSR
recommendation if i remember )
http://www.oracle.com/technetwork/articles/javase/index-140168.html.
This operation is called "Marshaling" e.g transforming a java object in xml.
With JAXB you can fine tune the operation.
Download JAXB and its javadoc, set your Eclipse project to add relative
*.jar and javadoc. Then code

2) If you feel that it's a heavy for what you want to do, just override the
toString() method of your java class, in order to produce xml. Here's a very
simple exemple :

class Personn
{

 private String firstName, lastName;
.../... constructor(s), getters, setters, methods omitted .../

@override
public string toString()
{
 // you can get class fields using introspection if you want to automate the
process
 return "" + firstName + "" + "" + lastName
+ "";

}


}

 I hope it helps.

Regards.

Karim Duran

2011/8/19 DarthG 

> Part of my application requires an XML file to be generated from an
> object. The XML produced will be small in size and simple in
> structure. I could achieve this using elaborate string manipulation
> but I suspect there is a better way.
>
> I tried to use the xmlenc (http://xmlenc.sourceforge.net/) library,
> but it requires Writer objects to function, which GWT does not
> support. Is there an accepted way of XML generation for GWT? Or
> perhaps a way to synthesise Writer objects? Initially, I want the XML
> output on the console for testing, but eventually it will be stored on
> a server/database.
>
> Thanks,
> Gary
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Embed pdf into gwt app

2011-08-15 Thread karim duran
Hi Papick,

In my opinion, the problem is not about your iframe or any GWT container.
Concerning  or , i think you should use the standard way
provided by W3C specifications e.g .

GWT provides cross-browser support for rendering. But don't process
media-type rendering.

Remember that if your browser can find a plugin to display a media-type (PDF
in your case), the media-type will display in your browser as you expect.

If your browser can't find a plugin, it calls the system default application
for this media-type ( Adobe Reader for exemple in your case with PDF ).

But, from the point of view of the user of your application, *you don't have
any control on how his browser will behave*. I mean that when the user
browser meet the  tag, it can display the PDF as you expect because
the Adobe Reader plugin is on the user system; Or it can call the Adobe
Reader desktop application because the plugin is not available for his
browser.

In firefox, you can force the behavior for a media-type. Go to -> preference
-> application, and search PDF document. You can see many actions the
browser can provide. You can choose the one interesting you.

to know about installed plugins for your browser, just type url
"about:plugins".

Regards.

Karim Duran


2011/8/15 P.G.Taboada 

> hello,
>
> I am tryring to display PDF files in my app. Unfortunately, Firefox
> and Safari are downloading the PDF instead of showing them embedded.
>
> I tried "object" and "embed" and an iframe element, the PDF always
> gets downloaded. When using embed or object it even messes with the
> history, the app get thrown back in history (I am using Places/MVP).
>
> Did anyone succeed in showing a PDF?
>
> Brgds,
>
> Papick
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: onsubmit complete called in windows but problem in linux

2011-08-11 Thread karim duran
Hi Aman

I'm very surprised about your issue : "FileUpload works under Window not
Linux".
It smells file READ/WRITE permission
Have a reflection about this :

1) From point of view of client ( browser), an upload is no more than a HTTP
form POST with . The browser let you choose a
file from client local File System, with the standard OS OpenFile dialogbox
according to RFC 1867. The client part is standard and don't depend upon
your Operationg System and the browser you use e.g IE, Mozilla family,
Opera, Apple SAFARI.
GWT client part upload capability don't transgress this standard, just wrap
it in a friendly way.

Do you agree ?


2) The server part is the process receiving the POST HTTP, it can be a JAVA
Servlet, a PHP script etc...THIS PROCESS HAVE AN OWNER FROM THE POINT OF
VIEW OF OS READ/WRITE PERMISSION.

   - For this process you have to define the path where the file will be
   witten on the Server File System with a configuration directive.
   - If, let says, you define "C:\WebUploadFile\users\bob" it won't work
   under Linux, because Linux don't understand what is "C:\WebUploadFile" 
   So, set the path according to your OS path syntax.
   - If you use Tomcat, on window, it works ! I agree. It could also works
   on window if you define the path like that /WebUploadFile/users/bob because
   JVM has an intelligent path syntax managment. So, prefer UNIX like path
   syntax.
   - Under Linux, the process generally has the same permission than the
   server itself. I mean TOMCAT/TOMCAT owner/group. If you upload a file, and
   try to writte it on, let says, /var/webupload/users/bob, you have to ensure
   that the TOMCAT/TOMCAT profil has permission to write in this directory !!!
   - On window, permissions are blurred, so as TOMCAT is installed as a
   service, may be it can write anywhere on Win filesystem.

Try to check these points, may be it's the problem. The same issue can
appear on other J2EE server ( JBOSS, WebSphere, GlassFish...). It's not
related to GWT.

I hope it helps.

Regards.

Karim Duran

2011/8/11 aman 

> Thanks for your reply,though I am not using gwt-upload but I tried
> initially but it did not worked according to my expectations so now I
> am using the simple FileUpload control.It is working well in windows
> but not in linux can you suggest me some reason why this is happening
> because at the moment I am completely unable to figure out a reason
> why this is happening so.
>
> On Aug 10, 4:29 pm, Jeff Chimene  wrote:
> > On 08/10/2011 04:26 AM, aman wrote:
> >
> > > Hi,
> >
> > > I have created a file upload system which allows the user to
> > > upload .txt,.xls and .csv formats.When I executed in windows it is
> > > running fine but now when I deployed the application inlinux(Debian)
> > > using tomcat server I am facing this issue:
> >
> > > The onsubmit method is called for all the file formats.
> > >onSubmitCompletemethod is called only when text files are uploaded.I
> > > want to useonSubmitCompleteevent as I am using progress bar and
> > > wanted to perform necessary action on this event.
> >
> > Have you considered gwt-upload?
> >
> > I think it works w/ Tomcat. I've had great luck with it cross-platform.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: running gwt on websphere 6 and 7? confict of java version requirments?

2011-08-10 Thread karim duran
Hi Elhanan,

GWT run fine in IBM WebSphere. Take care about version problem as follow :

1) IBM WebSphere can run in JVM 1.5 or JVM 1.6
2) GWT is full supported in 1.5 but using 1.6 is just a recommendation
3) the "2.5" version you are speaking about is for servlet specification, so
you have to check in IBM WebSphere libs what is "j2ee.jar" version. It's
doesn't depend upon JVM version but J2EE.
4) if you compile your project ( ant task or Eclipse ) with a 1.6 java
compiler, you can't run it in IBM WebSphere running a 1.5 JVM ( inverse is
true ). that's why, may be, you get java.lang.UnsupportedClassVersionError

I hope it helps.

Regards.

Karim Duran

2011/8/10 Elhanan 

> hi..
>
> on one hand i see that there is a warning of running gwt on java lower then
> 1.6,
> however if i would like to use webspehre 6 or even 7 ,which support spec
> 2.5 then i have a problem according to eclipse because it claims that the
> spec 2.5 does not support java 6 .
>
> on top of that, i keep getting a warning in gwt compile of eclipse of "use
> of prior java version is depricated"
> AND i keep getting java.lang.UnsupportedClassVersionError: Bad version
> number in .class file in compiling the project, although i also have a jdk 5
> in eclipse, all the jdk's are configured for java 6_26.
> so what should i do?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/YH5f4v2mzRcJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Storing User-Information in client

2011-08-09 Thread karim duran
Hi Ashwin,

1) You can store user id in session ( http session ), this is very secure
way and a good practice.
2) you can store user id in crypted cookie ( less secure )
3) you can store user id in javascipt varaible ( more less secure, for
intranet only in my opinion)

These solutions (1 & 2)  are independant from GWT, it's HTTP protocol
specification.

See the J2EE API documentation (HttpSession, HttpServletResponse)

I hope it helps.

regards.

Karim Duran

2011/8/9 Ashwin Desikan 

> **
> Folks,
>
> What is the best way to store user information ( i require only the
> user-id) in the client? I have to pass user-id along with my queries to the
> server to filter responses for the logged-in user. I fetch user-information
> using the UserServiceLocator as part of the application login. I am
> currently making a gwt-request every time to fetch the currentUser in the
> following manner
>
> requests.userServiceRequest().getCurrentUser().fire(new Receiver()
> {
>
> @Override
> public void onSuccess(GaeUser user) {
> userId = user.getEmail();
> userName = user.getNickname();
> }
>
> });
>
> With the above approach, I have to run my subsequent queries to fetch
> user-related data onSuccess of the above operation. Is there a better
> approach to store the logged-in user-id on the client, instead of making a
> server call every time?
>
> Any suggestions?
>
> regards
> Ashwin
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Calling a Java Method from Handwritten JavaScript

2011-08-09 Thread karim duran
Hi ASlak,

It should work. I already  did that.

Don't forget that, finally, all your java code will be translated in
optimized javascript.
I haven't enough element about your problem to really help you.

So, here's my proposition.

1) build your application as you usually do
2) run it in firefox
3) install firebug, a firefox extension wich provide a javascript debuger
with breakpoint management and step debuging
4) open tab "javascript" in firebug and set a breakpoint where your
javascipt method is called
5) watch your variables, fields...etc...and try  to analyse what is
happening.

I used this methodology to track some jsni method behaviour, difficult to
debug, from the point of view of java.

I hope it helps.

Regards.

Karim Duran

2011/8/8 ASlak 

> I have some code in my host html page that I would like to call one of
> my java methods from.
>
> The relevant part of the html looks like:
> 
> if(myCondition){
> sendRequest(myVar);
> }
> 
>
> I have a method in my java code for my gwt project that is called
> sendRequest.
>
> I am also using a method that looks like:
> public native void exportMethod(myApp app)/*-{
> $wnd.sendRequest =
> $entry(app.@com.myCompany.myProject.client.myClass::sendRequest(Ljava/
> lang/String;));
> }-*/;
>
>
> This is based off of what I found in the gwt documentation here:http://
> code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
>
> The problem is that this is not working, and I am not sure why.
>
> I would appreciate it if anyone could give me a hint.
>
> 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.
>
>

-- 
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: component for editing an image

2011-08-08 Thread karim duran
Hi Moa-Code,

As you can see by scanning GWT widget library, you won't find a component
"ready to use" doing what you want.

But, there is a solution provided by HTML5 canvas element.

1) in GWT designer, choose an HTMLPanel as container.
2) in this container, embed a web page with  ( standard mode
HTML5 for recent browser)
3) in this HTML page insert this : 
4) with javascript, create an image : var myImgToProcess = new Image();
myImgToProcess.src='url of your img';
5) put the image on the canvas ( see canvas
specification<http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html>)
:

   - get the graphic context of the canvas to draw your image
   - with javascript mouse event handler, allow your end-user to draw cercle
   etc..on your image
   - serialize ( save) in a javascript integer array, the strokes that user
   is drawing

6) send an AJAX request to the server, send the array of strokes in a POST
HTTP

That's all.

Remember that GWT is a framework, allowing you to developp a Ajax web
application using java langage in a friendly way. Your code is translated in
optimized javascript. But HTML is still omnipresent, and you can still use
it.

I hope it helps.

Regards.

Karim Duran.

2011/8/7 moa-code 

> Hi,
>
> I want a component that I can use to allow a user to draw a box or
> circle over an image they have previously uploaded. I then want the
> component to message the circle or squares dimensions back to the
> server, so the server can either perform a crop on image to the size
> of the square, or perform some other image manipulation on the area
> where the circle was.
>
> I do not want to have to use Flash or Java Applet for this, as I would
> really want this to work without Java installed and on machines
> without flash.
>
> Is GWT able to do this sort of thing?
>
> Any pointers or example would be most appreciated as I am totally new
> to GWT.
>
> 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.
>
>

-- 
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: Cannot open GWT classes with GWT Designer

2011-07-27 Thread karim duran
Hi Jordi,

here's my opinion after reading your log.

1) sometimes Eclipse just open the code in a certain way because you may
click in a alternative view ( package view, navigator view instead of
project view) depending how you customized your Eclipse.
May be you should try right-clic -> open with -> GWT designer from project
view. And try to reproduce the incident after restarting Eclipse.

2) But, by reading your log, i think there's also a pb with your project
folders. It seems that Eclipse can't find a CSS file. And then a GEF
exception occurs...GEF is the plugin responsible to draw the palette and
visual designer interface. Specially, by binding UI components and their CSS
properties.

So,

did you import that project ?
did you create it from scratch ?
did you delete a CSS file before this action ?
did you change manually any important file ( conf, xml etc...) ?
did you respect GWT project folders structure ?

regards.

karim duran

2011/7/27 Jordan Reynolds 

> I am using the GWT plugin along with GWT Designer on Eclipse 3.6. I
> get the following error when trying to switch from "Source" to
> "Design" view in GWT Designer:
>
> Any suggestion would be greatly appreciated!
>
> java.lang.NoSuchMethodError:
>
> com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getCSSFiles()Ljava/
> util/List;
>at
>
> com.google.gdt.eclipse.designer.gxt.parser.ClassLoaderValidator.hasRequiredStyles(ClassLoaderValidator.java:
> 89)
>at
>
> com.google.gdt.eclipse.designer.gxt.parser.ClassLoaderValidator.validate(ClassLoaderValidator.java:
> 45)
>at
>
> com.google.gdt.eclipse.designer.parser.ParseFactory.validate(ParseFactory.java:
> 465)
>at
>
> com.google.gdt.eclipse.designer.parser.ParseFactory.getClassLoader(ParseFactory.java:
> 433)
>at
>
> org.eclipse.wb.internal.core.parser.AbstractParseFactory.initializeClassLoader(AbstractParseFactory.java:
> 732)
>at
>
> com.google.gdt.eclipse.designer.parser.ParseFactory.getRootContext(ParseFactory.java:
> 103)
>at
>
> org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:
> 1185)
>at
>
> org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:
> 244)
>at org.eclipse.wb.internal.core.parser.JavaInfoParser.access
> $9(JavaInfoParser.java:240)
>at org.eclipse.wb.internal.core.parser.JavaInfoParser
> $1.runObject(JavaInfoParser.java:153)
>at org.eclipse.wb.internal.core.parser.JavaInfoParser
> $1.runObject(JavaInfoParser.java:1)
>at
>
> org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:
> 153)
>at
>
> org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:
> 151)
>at
>
> org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:
> 513)
>at org.eclipse.wb.internal.core.editor.DesignPage.access
> $9(DesignPage.java:501)
>at org.eclipse.wb.internal.core.editor.DesignPage
> $8$1.run(DesignPage.java:434)
>at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:
> 179)
>at
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:
> 150)
>at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
>at org.eclipse.wb.internal.core.editor.DesignPage
> $8.run(DesignPage.java:431)
>at
>
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:
> 464)
>at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:
> 372)
>at
>
> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:
> 507)
>at
>
> org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:
> 450)
>at
>
> org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:
> 400)
>at
>
> org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:
> 381)
>at
> org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:
> 90)
>at
>
> org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:
> 248)
>at
>
> org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:
> 226)
>at
>
> org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:
> 125)
>at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode
> $1.widgetSelected(DefaultMultiMode.java:63)
>at
>