here is the solution that I reached:
1. my.xml (validation file):
Define your widgets
<x-tad-bigger> </x-tad-bigger><x-tad-bigger><fd:widgets></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger><fd:field</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>"fname"</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger><fd:label></x-tad-bigger><x-tad-bigger>First Name</x-tad-bigger><x-tad-bigger></fd:label></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger><fd:datatype</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>/></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger><fd:validation></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger><fd:length</x-tad-bigger><x-tad-bigger> </x-tad-bigger><x-tad-bigger>/></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger></fd:validation></x-tad-bigger><x-tad-bigger>
</x-tad-bigger><x-tad-bigger></fd:field>
</fi:widgets>
2. my_template.jx (form)
</x-tad-bigger><x-tad-bigger><?xml version="1.0"?>
<!DOCTYPE catalog-demo PUBLIC "-//Indexgeo//DTD Catalog Demo v1.0//EN"
"http://www.indexgeo.com.au/dtd/catalog-demo-v10.dtd"
[
<!ENTITY testpub PUBLIC "-//Arbortext//TEXT Test Public Identifier//EN"
"bogus-system-identifier.xml">
<!ENTITY testsys SYSTEM "urn:x-arbortext:test-system-identifier">
<!ENTITY testovr PUBLIC "-//Arbortext//TEXT Test Override//EN"
"testovr.txt">
<!ENTITY % ISOnum PUBLIC
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
"ISOnum.pen">
%ISOnum;
<!ENTITY note "Note:">
<!ENTITY nbsp " ">
<!ENTITY pound "£">
<!ENTITY copy "©">
<!ENTITY % ISOpub PUBLIC
"ISO 8879:1986//ENTITIES Publishing//EN//XML"
"ISOpub.pen">
%ISOpub;
<!ENTITY copysr "ࡅ">
]>
<page
xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
xmlns:cinclude="http://apache.org/cocoon/include/1.0"
xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"
>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="55" valign="bottom"><img src="images/firstname.gif" width="89" height="16" /></td>
<td width="220" valign="top" align="left">
<fi:group>
<fi:styling type="tabs"/>
<fi:state>
<ft:widget id="fname">
<fi:styling listbox-size="22" class="keyinbox"/>
</ft:widget>
</fi:state>
</fi:group>
</td>
</tr>
</table>
</page>
3. flowscript:
var form = new Form("my.xml");
form.showForm("my_site_map.xml");
var model = form.getModel();
var bizData = {"firstName" : model.fname}
var name = bizData.firstName
4. sitemap (snippet)
<map:match pattern="**my_site_map.xml">
<map:generate type="jx" src="jx/my_template.jx"/>
<map:transform type="forms"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="resources/forms-field-styling.xsl"/>
<map:transform type="cinclude"/>
<map:transform type="xsltc" src="style/my_template.xsl"/>
<map:call resource="serialize"/>
</map:match>
hope this is helpful to others as well!
Andrew</x-tad-bigger>
On 19 Nov 2004, at 06:52, Derek Hohls wrote:
Care to post the solution so that others could benefit?
Sorted.... thanks....[EMAIL PROTECTED] 2004/11/19 12:51:14 AM >>>
regards
Andrew
On 18 Nov 2004, at 22:13, Andrew M wrote:
Hi,
if anybody could point to any resource that can solve this problem in
the next 30 minutes would be most appreciated!
regards
Andrew
On 18 Nov 2004, at 21:09, Andrew M wrote:
Hi,
i'm having a wonderful time trying to figure out why my input boxes
align="left">cannot retain state. If I do the following:
<td width="220" valign="top"
listbox-size="2" value=""<ft:widget id="fname">
<fi:styling
class="keyinbox"/>
</ft:widget>
</td>
I get the following output in the html:
<input name="fname" id="fname" value="" type="text" class="keyinbox"
size="2"><span class="forms-field-required">
which is absolutely what I want, minus the fact that I have not
specified that it should retain state. What do i now need to add to
the code for it to retain state and keep the html format intact? I
have read the documentation which shows examples for retaining state
---------------------------------------------------------------------of selections/options but not for a single input text field.<beya-email.gif>
regards
Andrew
+The home of urban music
+ http://www.beyarecords.com
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<<inline: beya-email.gif>>
�+The home of urban music
+ http://www.beyarecords.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
