[Question] compiling standalone GWT .js file

  • epoy
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 31, 2006
  • Posts: 13
  • Loc: Phillipines
  • Status: Offline

Post September 26th, 2010, 3:00 pm

Hi guys,

I'm using PHP and Zend Framework on my server. And I want to use GWT on the client side. Is there a way where I can compile a .js file using GWT and then copy paste it to the PHP page? And what are the best practices on this situation? I'm using Netbeans as my IDE.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 26th, 2010, 3:00 pm

  • epoy
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 31, 2006
  • Posts: 13
  • Loc: Phillipines
  • Status: Offline

Post September 26th, 2010, 3:54 pm

after several minutes of testing, my problem was solved.

I just have to copy the compiled html, and js folder.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post September 26th, 2010, 9:25 pm

I know you've found a solution already, but if you find yourself with a few extra minutes, I for one would be interested to hear more about exactly what it is you're doing. I get the idea of wnating to use Google Web Tool-kit, but the copy/paste and compiled folders bit has me a little confused. :scratchhead:
Strong with this one, the sudo is.
  • epoy
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 31, 2006
  • Posts: 13
  • Loc: Phillipines
  • Status: Offline

Post September 27th, 2010, 9:03 am

When you create a Web Project in Netbeans using GWT and build it. The IDE will create a BUILD folder. Try to go to
Quote:
"projectpath/build/web"

then copy the html files and javascript library folder. It contains the compiled/build javascript and other stuff. Paste the javascript file on your PHP server project folder.

Quote:
example:
C:\xampp\htdocs\myproject\


Then test it in your browser
Quote:
http://localhost/myproject/yourhtmlfile.html


it works perfect for me.

If you are using Zend, you need to modify the html as a phtml on your view folder.
This is not the best solution but it is works for beginners.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 158 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.