Matt Sergeant wrote:
On 3 Feb 2005, at 03:59, Marco Marongiu wrote:

So it looks like the onvalidate attribute is read, but the callback is not executed...


Can you examine the generated XSP code (easiest done via AxTraceIntermediate) and see if the onvalidate sub name is being passed to the textfield() function?

Matt

I don't know what has happened but *that part* now is working. To do the test you asked me I just copied the newrequest.xsp file to matt.xsp and changed the relevant things, like:

[EMAIL PROTECTED]:~/storage/htdocs/forms$ diff newrequest.xsp matt.xsp
48,58d47
< *validate_servizio = \&validate_notempty ;
< *validate_identificativo = \&validate_notempty ;
< *validate_scritture_giorno = \&validate_number ;
< *validate_cancellazioni_giorno = \&validate_number ;
< *validate_crescita_1m = \&validate_number ;
< *validate_crescita_3m = \&validate_number ;
< *validate_crescita_6m = \&validate_number ;
< *validate_crescita_1y = \&validate_number ;
< *validate_ip_client = \&validate_nfs_parameter ;
< *validate_default_gw_client = \&validate_nfs_parameter ;
<
130c119
< <td><f:textfield name="servizio" width="40" maxlength="40"/></td>
---
> <td><f:textfield name="servizio" width="40" maxlength="40" onvalidate="validate_notempty"/></td>


and so on. Now that part just works, but there is another problem...

The form contains also two single-select and two checkbox fields; while the values of the textfields are retained between two submissions, the values of single-select and checkboxes are not. Let's take a single-select field for example:

            <f:single-select name="protocollo">
              <f:options>
                <option><name>NFS</name><value>NFS</value></option>
                <option><name>CIFS</name><value>CIFS</value></option>
                <option><name>iSCSI</name><value>iSCSI</value></option>
              </f:options>
            </f:single-select>

If I select iSCSI, for example, I have the evidence that value is correctly submitted, but when the form is redisplayed after the submission the value showed is NFS again... I expect it to show the latest selected value instead, as happens for the textfields. In the case of the checkboxes I also tried to force the form to retain the value selected by means of the load_* callback, but with no luck at all...

What should I check? I can send the traces if you need them...

Ciao and thanks
--bronto

--
Marco Marongiu                                Tiscali Services s.r.l.
System Engineer                               S.S. 195, km 2,300
IT Systems Management Dept.                   Loc. "Sa Illetta"
Phone: +39 070 460 1684                       09122  Cagliari   (CA)
Fax:   +39 070 460 9684                       Sardegna - Italia
------------------------------------------------------------------------
If you don't know where you're going / any road will take you there
                       -- George Harrison, "Any Road", Brainwashed, 2002
------------------------------------------------------------------------

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



Reply via email to