From: Tim P <ti...@us...> - 2008-03-20 00:10:24
|
Update of /cvsroot/webmacro/webmacro/examples/advanced In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv22568/examples/advanced Modified Files: index.html wizard.tml wizardform.tml view.tml Log Message: Make work with jetty out of the box Index: index.html =================================================================== RCS file: /cvsroot/webmacro/webmacro/examples/advanced/index.html,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.html 27 Sep 2005 05:45:17 -0000 1.7 --- index.html 20 Mar 2008 00:10:20 -0000 1.8 *************** *** 1,20 **** <html> ! <center> ! Templates, Java Class Files, Further Reference ! <br>Last Updated 1-Oct-2005 ! </center> <p> These examples provide advanced usage of WebMacro and features in Release 2. ! These examples cannot be run out-of-the-box as can, for example, WebMacro Wiki. However, they provide a great insight into how WebMacro can be used to create text applications, web pages, source files, xml, and other text-based files. <p> <a href=list.tml>list.tml</a> Lists can be powerfully handled by getting to know the List Context Tool and its methods. Here is a simple example of transforming default arrays to more powerful lists implementing the java.util.List interface and thus being uniformly managed by the List Tool. <p> ! <a href=wizard.tml>wizard.tml</a> An example of how to render a form relying exclusively on introspection ! obtain the "View", the labels, the controls, the values. Labels are rendered in a locale sensitive manner: <pre> $field.MetaField.getLabel($User.Locale): --- 1,34 ---- <html> ! <title> ! WebMacro usage examples ! </title> ! <body> ! <h2 align="center"> ! WebMacro usage examples ! </h2> ! <h4 align="center">Last Updated 19-Mar-2008</h4> <p> These examples provide advanced usage of WebMacro and features in Release 2. ! </p> ! <p> However, they provide a great insight into how WebMacro can be used to create text applications, web pages, source files, xml, and other text-based files. + </p> <p> <a href=list.tml>list.tml</a> Lists can be powerfully handled by getting to know the List Context Tool and its methods. Here is a simple example of transforming default arrays to more powerful lists implementing the java.util.List interface and thus being uniformly managed by the List Tool. + </p> + <p> + <em> + The following examples are displayed for illustration but require other machinery + to actually be in place to be rendered. + </em> + </p> <p> ! <a href=wizard.tml>wizard.tml</a> An example of how to render a form relying exclusively on ! introspection to obtain the "View", the labels, the controls, the values. ! Labels are rendered in a locale sensitive manner: <pre> $field.MetaField.getLabel($User.Locale): *************** *** 23,66 **** <p> ! <a href=wizardform.tml>wizardform.tml</a> An example of to interact with server state variables ! and then how to evaluate conditions and parse in the correct template. ! ! <p> ! <a href=wizardform.tml>wizardform.tml</a> An example of to interact with server state variables ! and then how to evaluate conditions and parse in the correct template. ! <p> <a href=view.tml>view.tml</a> An example of a complete object report showing the "peers" of a logical view. In most web apps, views will be linked together as logical pages. ! <center> ! <p> ! <hr size=1 width=50%> ! The examples are best viewed with a text editor, not a browser. ! <p> ! ! <hr size=1 width=50%> ! <p> ! Other example resources: ! </center> <p> <a href=http://wiki.webmacro.org/WebMacroScriptLanguage>Scripting</a> tutorial under development by Keats Kirsch. ! <p> <a href=http://wiki.webmacro.org/SiteMap>Map</a> of the WM wiki site with many good development links. Be sure to check the date on the bottom of the page for when it was last edited. Some pages are out of date. <p> Many have generously contributed ideas and approaches in the current distribution. Check these out for ideas on how to solve a particular problem using WebMacro. ! ! <p> ! <a href=http://www.wangjammers.com/ignition>Ignition</a> ! For a comprehensive web builder based on WebMacro. ! ! ! </html> --- 37,66 ---- <p> ! <a href=wizardform.tml>wizardform.tml</a> An example of interacting with server state variables ! and how to evaluate conditions and parse in the correct template. ! </p> <p> <a href=view.tml>view.tml</a> An example of a complete object report showing the "peers" of a logical view. In most web apps, views will be linked together as logical pages. + </p> ! <h3 align="center"> ! Other example resources ! <h3> <p> <a href=http://wiki.webmacro.org/WebMacroScriptLanguage>Scripting</a> tutorial under development by Keats Kirsch. ! </p> <p> <a href=http://wiki.webmacro.org/SiteMap>Map</a> of the WM wiki site with many good development links. Be sure to check the date on the bottom of the page for when it was last edited. Some pages are out of date. + </p> <p> Many have generously contributed ideas and approaches in the current distribution. Check these out for ideas on how to solve a particular problem using WebMacro. ! </p> ! </body> </html> Index: wizardform.tml =================================================================== RCS file: /cvsroot/webmacro/webmacro/examples/advanced/wizardform.tml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wizardform.tml 1 Jul 2001 15:45:13 -0000 1.1 --- wizardform.tml 20 Mar 2008 00:10:20 -0000 1.2 *************** *** 1,2 **** --- 1,4 ---- + #set $Response.ContentType="text/plain" + #text #begin <!-- wizardform.tml *************** *** 61,62 **** --- 63,65 ---- #parse "footer.tml" } + #end \ No newline at end of file Index: view.tml =================================================================== RCS file: /cvsroot/webmacro/webmacro/examples/advanced/view.tml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** view.tml 27 Sep 2005 05:45:17 -0000 1.2 --- view.tml 20 Mar 2008 00:10:20 -0000 1.3 *************** *** 1,2 **** --- 1,4 ---- + #set $Response.ContentType="text/plain" + #text #begin <html> *************** *** 19,21 **** </html> ! --- 21,23 ---- </html> ! #end \ No newline at end of file Index: wizard.tml =================================================================== RCS file: /cvsroot/webmacro/webmacro/examples/advanced/wizard.tml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wizard.tml 1 Jul 2001 15:45:13 -0000 1.1 --- wizard.tml 20 Mar 2008 00:10:20 -0000 1.2 *************** *** 1,2 **** --- 1,4 ---- + #set $Response.ContentType="text/plain" + #text #begin <!-- wizard.tml *************** *** 32,33 **** --- 34,36 ---- </table> + #end \ No newline at end of file |