You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Becker <jo...@hotmail.com> on 2003/10/27 10:15:36 UTC
XSP-vormvalidation question!
Hi,
I have a problem. When I try to validate a form the
<xsp-formval:get-attribute tag doesn't write anything in my docuement:
Here the code:
if (userHasSeenForm) {
<xsp-formval:on-null> ....
</xsp-formval:on-null> <xsp-formval:on-error>
....
</xsp-formval:on-error> <xsp-formval:on-toosmall> <b> Only
logins with at least
<xsp-formval:get-attribute parameter="login"
name="min-len"/>
characters are accepted.
</b> </xsp-formval:on-toosmall>
....
The output is always:
Only logins with at least characters are accepted.
No min-len is added.
What am I doing wrong?
Regards
Jonny
_________________________________________________________________
NEU: Polyphone Klingeltöne und farbige Logos für Ihr Handy!
http://polyphonetoene.handy.msn.de Jetzt Handy aufpeppen!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: xsp-formval question
Posted by Jian Dai <ja...@comcast.net>.
Thanks a lot.
Jian
-----Original Message-----
From: Christian Haul [mailto:haul@informatik.tu-darmstadt.de]
Sent: Monday, October 27, 2003 11:15 AM
To: users@cocoon.apache.org
Subject: Re: xsp-formval question
Jian Dai wrote:
> Hi,
>
> Is there anybody know if we can dynamic assign the value for the name
> in <xsp-formval> tag? Here is an example:
> -----Original Message-----
> From: Johannes Becker [mailto:jonnybecker@hotmail.com]
> Sent: Monday, October 27, 2003 1:16 AM
> To: users@cocoon.apache.org
> Subject: XSP-vormvalidation question!
>
>
> Hi,
>
> I have a problem. When I try to validate a form the
> <xsp-formval:get-attribute tag doesn't write anything in my docuement:
Can't answer those questions off head (have a look at the logicsheet!)
but I would strongly suggest to consider the Cocoon Forms framework aka
Woody or at least to use the SimpleFormTransformer and forget about the
logicsheet.
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: xsp-formval question
Posted by Christian Haul <ha...@informatik.tu-darmstadt.de>.
Jian Dai wrote:
> Hi,
>
> Is there anybody know if we can dynamic assign the value for the name
> in <xsp-formval> tag? Here is an example:
> -----Original Message-----
> From: Johannes Becker [mailto:jonnybecker@hotmail.com]
> Sent: Monday, October 27, 2003 1:16 AM
> To: users@cocoon.apache.org
> Subject: XSP-vormvalidation question!
>
>
> Hi,
>
> I have a problem. When I try to validate a form the
> <xsp-formval:get-attribute tag doesn't write anything in my docuement:
Can't answer those questions off head (have a look at the logicsheet!)
but I would strongly suggest to consider the Cocoon Forms framework aka
Woody or at least to use the SimpleFormTransformer and forget about the
logicsheet.
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
xsp-formval question
Posted by Jian Dai <ja...@comcast.net>.
Hi,
Is there anybody know if we can dynamic assign the value for the name
in <xsp-formval> tag? Here is an example:
we have a xsp-formval tag like <xsp-formval:is-error name="paraname" />,
can we set the value of paraname dynamic during runtime? I have tried to
do something like following:
<xsp-formval:is-error>
<xsp-atttribute name="name">paraname</xsp-attribute>
</xsp-formval:is-error>
But it did not work. the name's value could not be setted here.
Many thanks in advance.
Jack
-----Original Message-----
From: Johannes Becker [mailto:jonnybecker@hotmail.com]
Sent: Monday, October 27, 2003 1:16 AM
To: users@cocoon.apache.org
Subject: XSP-vormvalidation question!
Hi,
I have a problem. When I try to validate a form the
<xsp-formval:get-attribute tag doesn't write anything in my docuement:
Here the code:
if (userHasSeenForm) {
<xsp-formval:on-null> ....
</xsp-formval:on-null> <xsp-formval:on-error>
....
</xsp-formval:on-error> <xsp-formval:on-toosmall> <b> Only
logins with at least
<xsp-formval:get-attribute parameter="login"
name="min-len"/>
characters are accepted.
</b> </xsp-formval:on-toosmall>
....
The output is always:
Only logins with at least characters are accepted.
No min-len is added.
What am I doing wrong?
Regards
Jonny
_________________________________________________________________
NEU: Polyphone Klingeltöne und farbige Logos für Ihr Handy!
http://polyphonetoene.handy.msn.de Jetzt Handy aufpeppen!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org