[Question] compiling standalone GWT .js file

  • epoy
  • Newbie
  • Newbie
  • epoy
  • Posts: 13
  • Loc: Phillipines

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • epoy
  • Newbie
  • Newbie
  • epoy
  • Posts: 13
  • Loc: Phillipines

Post 3+ Months Ago

after several minutes of testing, my problem was solved.

I just have to copy the compiled html, and js folder.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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:
  • epoy
  • Newbie
  • Newbie
  • epoy
  • Posts: 13
  • Loc: Phillipines

Post 3+ Months Ago

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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.