[Axualize-users] Java Constants; include for XMLs
Brought to you by:
russwyte
From: Alexandru P. <ale...@ya...> - 2003-03-17 13:41:28
|
Date: Mon, 17 Mar 2003 04:58:47 -0800 (PST) From: "Russell White" <rus...@ya...> Subject: Re: Java Constants; include for XMLs To: "Alexandru Pitis" <ale...@ya...> CC: mat...@vf... Alex, It is good to hear from you. I would be nice if you could cross post this on the Axualize user mailing list so that other users can benefit from your question answer. If you have not subscribed you may want to do so. http://lists.sourceforge.net/lists/listinfo/axualize-users comments inline: --- Alexandru Pitis <ale...@ya...> wrote: > > Hello, > > Since a while I am working on a project that uses Axualize to automatically > build the GUI from XMLs. This approach fits quite well the needs. Excelent. Ours too, we are using it on several large projects. > > I still have some open points. Maybe you can help. I would be quite grateful. > > 1. Is there any support in Axualize for using in XMLs the constants from the > java classes? > For instance, I want to write in the XML the code: > java.awt.GridBagConstraints.SOUTH and not the value 15 that is the actual > value of the SOUTH constant. > I know it is possible to extend Axualize with tag handlers, but I was > thinking that I missed some capabilities provided by Axualize. Or, should > such a tag be written by me? Constants in java are simply public static final fields. Thus to refer to one in Axualize is this simple: <object class="java.awt.GridBagConstraints" field="SOUTH"/> If you are using GridBagLayout you may wish to investigate the <GridBagConstraints/> tag and TagHandler which greatly simply the process. > > 2. There is about an XML that increased along the time. I would like to split > it. Is there any "include" functionality that would include in one XML > another one? Something like the > <load-classes href="file:/..." /> tag, but for actualizing another XML file > and including the result of the included one in the XML that specifies the > inclusion. Yes, this is a core feature. Checkout the <process>, <get> ,and <post> tags. The process tag processes(or includes if you will) an XML document from a URL. The get and post tags do the same thing exception that they directly relate to HTTP requests and have the ability to pass Maps of Objects as HTTP parameters. The <get> and <post> tags also keep track of cookies so session management is included automatically. > > > Many thanks in advance, > Alex > No problem. WR Russ --------------------------------- Do you Yahoo!? Yahoo! Web Hosting - establish your business online |