Hello Ben

You are using JSON-RPC, have you tried DWR? In my case I'm using it, it
works fairly well, but I'm wondering how you implement JSON-RPC with
qooxdoo.

Here is a example how I implement dwr with qooxdoo:

    var uw = new QxUnitWindow();
    uge.getSubmitButton().addEventListener(QxConst.EVENT_TYPE_CLICK,
function()
    {
      var unitNumber = this.getUnitField().getValue();
      ValidationService.validateIsAutologous(unitNumber, {
        callback:function( message )
        {
          if ( message == null )
          {
            document.fracStepForm.lipemic.value = "Y";
            document.fracStepForm.submit();
          }
          else
          {
            alert(message.replace(/'/, '`'));
          }
        }
      });
    }, uw);

    // now add button to main document and show it
    this.getClientWindow().getClientDocument().add(uw);
    uw.open();

Regards

Johann Reyes


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ben Alex
Sent: Wednesday, March 08, 2006 8:52 AM
To: [email protected]
Subject: Re: [qooxdoo-devel] JSP Implementation

Ram Venkataraman wrote:
> How are you generating the Javascript required for Qooxdoo. Are you
using
> the QxBuilder object?
>   
No, I just load the app from a single HTML file that in turn loads a 
single AppIncluder.js. It in turn loads all of the objects (which live 
in separate files), including generating JSON-RPC proxies, loading a 
menu/toolbar/editor layout, then registering commands etc in the 
menus/toolbars. From there the user takes over and it's all 
event-driven. I don't have any HTMLs or web controllers in sight. I find

Qooxdoo very Swing-like, so I approach the client design as if it were a

rich client and not a web view. That means DTOs instead of domain 
objects (DO), and a services layer facade to help with DTO to DO
mapping.

Cheers
Ben


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Confidentiality Notice: This e-mail message, including any attachments, 
is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information. Any unauthorized review, 
use, disclosure, or distribution is prohibited.  If you are not the 
intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to