cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian Dai" <jack2...@comcast.net>
Subject xsp-formval question
Date Mon, 27 Oct 2003 21:56:19 GMT
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


Mime
View raw message