What you want is already there: qxbuilder can parse inline widgets after page load. but according to what I heard, qxbuilder is broken in 0.5.1.

Christian

Jose Henrique Steckelberg F. schrieb:
I've been following qooxdoo devel for some time, and would like to
propose something which is somewhat related to the PHP framework
discussion thread: could dojo's way of "templating" applications be
implemented in qooxdoo? QxBuilder should be able to read the page's
html at onLoad and parse its contents, changing it dinamically for
QxWidgets by means of innerHtml/outerHtml, but only those specifically
tagged, and leave the rest untouched, so the page's html could turn
into its own template and content at the same time. Something like:
<html>
  <form>
    <input qxWidget="qxInput"/>
  </form>
some text here
  <div qxWidget="qxTree" icon="..." title="...">
    <div qxWidget="qxTreeFolder" title="..." >
      <div qxWidget="qxTreeFile" title="..." >
      </div>
    </div>
  </div>
some text there
</html>
QxBuilder could read and modify the page above, so each tag with qxWidget attribute would be switched for it's corresponding qxWidget, with it's attributes set from
the html source too.
Benefits:
1) ability to use standard html editors for app design
2) no separate download of XML/JSON/JS/other app UI templates
3) easier integration with current web server frameworks, which already work with html, (like JSF or wicket) they would not need to generate qx's proprietary xml format or
something else, just plain html tags with qx's attributes mixed in.
4) no need to learn yet another XML dialect
I imagine it wouldn't be so hard to adapt qxBuilder to read page's html. Plus it could demand pages to be XHTML compliant in order to make parsing simpler/easier/faster too.
What do you think?
--
------------------------------
Zenrique Steckelberg



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

Reply via email to