Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(warning) This page is intended for WW developer not for WW users. If your a user of WW hopefully you dont need to know these details, but certainly more knowledge is better, so if your hungry eat up!framework developers rather than application developers.

The The WW ajax/dhtml components use the DOJO Toolkit for both javascript event handling and AJAX calls.

...

OK Great so your smart on DOJO Widgets and DOJO Events lets see how WW uses we use these.

...

Tag Code

Lets start with looking at what a user of WW would include in their page, a JSP in this case:

Code Block
titleSomeFile.jsp
<ww<saf:a
        id="link1"
        theme="ajax"
        href="/AjaxRemoteLink.action"
        showErrorTransportText="true"
        errorText="An Error ocurred">Update</ww:a>

This is just a standard WW framework component. All the attributes defined here must map to a component class thats defined in the taglib.tld. Were not going to go into how the WW componets work in this discussion, just be assured that nothing different happens here.

...

Component Template Code

WW The framework via the component system will read in the ajax/a.ftl file to determine how to generate the following html file. Again this is standard WW Component processing so well we'll breeze over this.

...

Generated Code

Now lets look at what this snippet of code would generate for us in html:

...