-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello

I am having a problem with PerForm. I am using version 1.83 and the CVS
header is the following:

# $Id: PerForm.pm,v 1.24 2003/08/10 16:43:56 matt Exp $

When I submit a form, only the state of text fields is mantained across
posts. Checkboxes and single-select, for example, get resetted to the
default value. The real form is a bit complicated, so I shortened it to
this simple example:

- ---8<------8<------8<------8<------8<------8<------8<------8<------8<---
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="application/x-xsp" href="NULL"?>
<?xml-stylesheet type="application/x-xpathscript"
href="/style/page-perform.xps"?>

<xsp:page
~  language="Perl"
~  xmlns:f="http://axkit.org/NS/xsp/perform/v1";
~  xmlns:xsp="http://apache.org/xsp/core/v1";
~  >

~  <html>
~    <head>
~      <title>Test</title>
~    </head>

~    <body>
~    <f:form name="new_storage">
~          <f:textfield name="servizio" width="30" maxlength="30"/>

~          <f:textfield name="identificativo" width="30" maxlength="30"/>
~          <f:checkbox name="in_produzione" value="In produzione"
checked="1"/>
~          <f:single-select name="allocazione" default="temp">
~            <f:options>
~              <option><name>temporanea</name><value>temp</value></option>
~              <option><name>definitiva</name><value>def</value></option>
~            </f:options>
~          </f:single-select>
~          <f:submit name="sabmitt" value=" SABMITT " />
~    </f:form>
~    </body>
~  </html>
</xsp:page>
- ---8<------8<------8<------8<------8<------8<------8<------8<------8<---

(the page-perform.xps stylesheet just loads the XPS stylesheet that
comes with PerForm).

I check the checkbox, select "definitiva" in the selection box, write
"raga" in the first field and "muffin" in the second, then push the
"SABMITT" button, and what I get is the form with the text boxes still
containing "raga" and "muffin", but the checkbox is unchecked and the
selection box is back to "temporanea".

I expected the state to be kept between posts... what's going wrong?
Where am I wrong?

Thanks in advance for your help
- --bronto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCeM2093TBccTUZLIRAiPEAKCOFMrKd9wmn+0QpLYvx9CXT8DQagCfay2D
hK/Y9cicez9qNK/Ok5MlG/M=
=oxC6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to