Re: GWT PHP HTML 5 interaction

2009-10-08 Thread skorpiostinger

Great !!!

I have already downloaded eclipse, gwt plugin for eclipse, Tomcat,
ANT.

Also I have Apache/PHP/MYSQL are up and running at my RHE 5 Linux
server machine. The only conclusion I have right now how they would be
interacting between each other.

I do not want to maintain to servers TOMACT/APACHE ... it would give
more pain I guess.

I understand I have to create a very small PHP application and full
GWT interfaze client side application. It would be part of existing
php application (header, top and main menu) and GWT widgets would be
add some extra functionality as part of the whole system to upgrade
usability and lookfeel deisgn for my Email Template Blast engine.

--
PHP:  ?php showTopMenu()?
--
GWT: scrip JStunction showEmailBlastElementByName();/script
--

Here is database interaction scheme:


--php---MENU(DB(MySQL))---JSON,GWT rpc--TEMPLATE
(XML)JSON, phpDRAFTS(DB(MYSQL)---php mail()-


I see the issues right now.

- interaction between Java Script/PHP server speed optimization;

- technical implementation and maintenance;

- HTML 5, cross-browser support;

My research worked out the following:

Here is an excellent XML, GWT, and PHP Tutorial at ibm.com/
developerworks that explains the bridge between GWT and PHP using XML

http://download.boulder.ibm.com/ibmdl/pub/software/dw/xml/x-gwtphp/x-gwtphp-pdf.pdf

I used work with Java servers and the problem I had was the speed.

PHP engine has definitely an excellent speed.

To be continued ...

R

On Oct 7, 11:25 pm, Dominik Steiner dominik.j.stei...@googlemail.com
wrote:
 Hi,

 to be honest I'm no php guy, so I'm not sure about the implementation  
 details of the hessian control on php side.

 on gwt side you simply implement an interface, for example like this

 public interface HelpHessianService {

         public ListString getHelpTopics(String search);

 }

 and you then instantiate this interface via a helper method

 import com.caucho.hessian.client.HessianProxyFactory;

                         String hostUrl = getHostUrl(request);
                         String url = hostUrl + /index.php?
 main_page=gwt_handlerhessian=true;
                         HessianProxyFactory factory = new 
 HessianProxyFactory();
                         HelpHessianService helpHessianService =  
 factory.create(HelpHessianService.class, url);

 and then you can just call helpHessianService.getHelpTopics(search);

 HTH

 Dominik



  Thank you,

  Dominik for your prompt reply.

  It is sounds great to me. I have a feeling I could provide  
  connection through the hessian web service to PHP application to get  
  some of the services from the PHP/Apache application.

  Also I have researched in the web and found the Hessian PHP Client/
  Server application.

  Dominik, how the hessian protocol is basically operate the data from  
  the PHP/Apache and
  GWT/Tomcat.

  More details appreciated.

  Regards,

  R

  On Wed, Oct 7, 2009 at 11:27 AM, Dominik Steiner 
  dominik.j.stei...@googlemail.com
   wrote:

  on our project our GWT frontend (running on tomcat) was talking with
  the php backend (on another server) via hessian protocol and it was
  working good.

  HTH

  Dominik
  On Oct 6, 11:26 am, Takalov Rustem takalov.rus...@gmail.com wrote:
   Hey Guys,

   I have been researching on GWT and PHP integration a while.

   The reason is - I need a simple, flexible client - side AJAX based  
  Framework
   to develop and integrate web - based application into existing PHP
   application running @ Rackspace (Linux, PHP, MySQL).

   Is anyway to integrate GWT api's into PHP code or I need to call  
  PHP scripts
   from GWT?

   Do I have to run Tomcat server, Apache at the same server? How  
  they would
   interact between each other?

   I think the solution connected with JSON, Jetty, hosted server  
  mode, but I
   am not sure.

   Here is php script:

   ?php

   echo html/html;

   // I need AJAX Editor to Save/Load Editable Text Box to load it  
  unto MySQL
   DB.

   echo scriptAJAXEditor();/script;

   ?

   How will it interact with HTML 5 manifest?

   Let me know if any questions.

   Thanks,

   Guys

   R

  --
  Regards,
  Rustem T
--~--~-~--~~~---~--~~
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 PHP HTML 5 interaction

2009-10-08 Thread skorpiostinger

Hi!

In my case, I run PHP via Apache, and I use straightforward AJAX calls
from GWT. PHP never knows about GWT; it just delivers XML or JSON. GWT
doesn't mind about PHP; it just receives the XML or JSON data,
processes it, and goes on. You won't need Tomcat (or JBoss or anything
like that) unless you are using GWT RPC; if your server side only runs
PHP, Apache will be enough.

Maybe this article I wrote for IBM could help you? I also wrote this
article for Linux Journal, on other methods for getting JSON, and this
other IBM article on processing XML. Please let me know if you have
further questions.

Best regards,
Federico Kereki

On Oct 8, 12:51 pm, skorpiostinger takalov.rus...@gmail.com wrote:
 Great !!!

 I have already downloaded eclipse, gwt plugin for eclipse, Tomcat,
 ANT.

 Also I have Apache/PHP/MYSQL are up and running at my RHE 5 Linux
 server machine. The only conclusion I have right now how they would be
 interacting between each other.

 I do not want to maintain to servers TOMACT/APACHE ... it would give
 more pain I guess.

 I understand I have to create a very small PHP application and full
 GWT interfaze client side application. It would be part of existing
 php application (header, top and main menu) and GWT widgets would be
 add some extra functionality as part of the whole system to upgrade
 usability and lookfeel deisgn for my Email Template Blast engine.

 --- 
 ---
 PHP:  ?php showTopMenu()?
 --- 
 ---
 GWT: scrip JStunction showEmailBlastElementByName();/script
 --- 
 ---

 Here is database interaction scheme:

 --php---MENU(DB(MySQL))---JSON,GWT rpc--TEMPLATE
 (XML)JSON, phpDRAFTS(DB(MYSQL)---php mail()-

 I see the issues right now.

 - interaction between Java Script/PHP server speed optimization;

 - technical implementation and maintenance;

 - HTML 5, cross-browser support;

 My research worked out the following:

 Here is an excellent XML, GWT, and PHP Tutorial at ibm.com/
 developerworks that explains the bridge between GWT and PHP using XML

 http://download.boulder.ibm.com/ibmdl/pub/software/dw/xml/x-gwtphp/x-...

 I used work with Java servers and the problem I had was the speed.

 PHP engine has definitely an excellent speed.

 To be continued ...

 R

 On Oct 7, 11:25 pm, Dominik Steiner dominik.j.stei...@googlemail.com
 wrote:



  Hi,

  to be honest I'm no php guy, so I'm not sure about the implementation  
  details of the hessian control on php side.

  on gwt side you simply implement an interface, for example like this

  public interface HelpHessianService {

          public ListString getHelpTopics(String search);

  }

  and you then instantiate this interface via a helper method

  import com.caucho.hessian.client.HessianProxyFactory;

                          String hostUrl = getHostUrl(request);
                          String url = hostUrl + /index.php?
  main_page=gwt_handlerhessian=true;
                          HessianProxyFactory factory = new 
  HessianProxyFactory();
                          HelpHessianService helpHessianService =  
  factory.create(HelpHessianService.class, url);

  and then you can just call helpHessianService.getHelpTopics(search);

  HTH

  Dominik

   Thank you,

   Dominik for your prompt reply.

   It is sounds great to me. I have a feeling I could provide  
   connection through the hessian web service to PHP application to get  
   some of the services from the PHP/Apache application.

   Also I have researched in the web and found the Hessian PHP Client/
   Server application.

   Dominik, how the hessian protocol is basically operate the data from  
   the PHP/Apache and
   GWT/Tomcat.

   More details appreciated.

   Regards,

   R

   On Wed, Oct 7, 2009 at 11:27 AM, Dominik Steiner 
   dominik.j.stei...@googlemail.com
wrote:

   on our project our GWT frontend (running on tomcat) was talking with
   the php backend (on another server) via hessian protocol and it was
   working good.

   HTH

   Dominik
   On Oct 6, 11:26 am, Takalov Rustem takalov.rus...@gmail.com wrote:
Hey Guys,

I have been researching on GWT and PHP integration a while.

The reason is - I need a simple, flexible client - side AJAX based  
   Framework
to develop and integrate web - based application into existing PHP
application running @ Rackspace (Linux, PHP, MySQL).

Is anyway to integrate GWT api's into PHP code or I need to call  
   PHP scripts
from GWT?

Do I have to run Tomcat server, Apache at the same server? How  
   they would
interact between each other?

I think the solution connected with JSON, Jetty, hosted server  
   mode, but I
am

GWT, PHP, HTML 5

2009-10-06 Thread skorpiostinger

Hey Guys,

I have been researching on GWT and PHP integration a while.

The reason is - I need a simple, flexible client - side AJAX based
Framework to develop and integrate web - based application into
existing PHP application running @ Rackspace (Linux, PHP, MySQL).

Is anyway to integrate GWT api's into PHP code or I need to call PHP
scripts from GWT?

Do I have to run Tomcat server, Apache at the same server? How they
would interact between each other?

I think the solution connected with JSON, Jetty, hosted server mode,
but I am not sure.

Here is php script:

?php

echo html/html;

// I need AJAX Editor to Save/Load Editable Text Box to load it unto
MySQL DB.

echo scriptAJAXEditor();/script;

?

How will it interact with HTML 5 manifest?

Let me know if any questions.

Thanks,

Guys

R

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