You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Carlos M. S. Bento Nogueira" <cm...@student.dei.uc.pt> on 2005/07/01 02:35:27 UTC

[cforms]submit-on-change deprecated??

Hi all!

I'm writing a modified version of cforms examples provided with 
cocoon2.1.7 and i just found out that
submit-on-change used on

<ft:widget id="number1">
     <fi:styling submit-on-change="true"/>
</ft:widget>

isn't replaced by onchange="forms_submitForm(this)" when the html page
is generated! Thus the only way i found to put this feature to work was
to replace submit-on-change with onchange="forms_submitForm(this)" like 
this:

<ft:widget id="number1">
     <fi:styling onchange="forms_submitForm(this)"/>
</ft:widget>

Has submit-on-change been deprecated or is there problem on some pipeline 
on my sitemap?? I'm using the same pipelines to generate the html as the 
pipelines used on cforms example:various actions 
(cocoon/samples/blocks/forms/form1)

Thanks is advance,
CarlosN.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [cforms]submit-on-change deprecated??

Posted by "Carlos M. S. Bento Nogueira" <cm...@student.dei.uc.pt>.
Thanks a lot Mark!!! I had seen it before but i forgot i had  changed
some priorities in the xsl generation so this code wasn't executing
at right time!! :S

CarlosN.


On Thu, 30 Jun 2005, Mark Lundquist wrote:

> On 2005-06-30 17:35:27 -0700, "Carlos M. S. Bento Nogueira" 
> <cm...@student.dei.uc.pt> said:
>
>> <...snip>
>> Has submit-on-change been deprecated or is there problem on some pipeline 
>> on my sitemap??
>
> Nope... it hasn't been deprecated.  You've probably seen the transform that 
> does does this, in forms-field-styling.xsl:
>
> <xsl:template match="fi:styling/@submit-on-change" mode="styling">
>   <xsl:if test=". = 'true'">
>     <xsl:attribute name="onchange">forms_submitForm(this)</xsl:attribute>
>   </xsl:if>
> </xsl:template>
>
> If it works in the 2.1.7 samples, then it works in 2.1.7 (sheepish grin :-), 
> unless there is some bug that you're tickling somehow.
>
> Sorry I don't have a more helpful answer :-/  maybe someone else will...
> —ml—
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>

-- 

Re: [cforms]submit-on-change deprecated??

Posted by Mark Lundquist <ml...@comcast.net>.
On 2005-06-30 17:35:27 -0700, "Carlos M. S. Bento Nogueira" 
<cm...@student.dei.uc.pt> said:

> <...snip>
> Has submit-on-change been deprecated or is there problem on some 
> pipeline on my sitemap??

Nope... it hasn't been deprecated.  You've probably seen the transform 
that does does this, in forms-field-styling.xsl:

  <xsl:template match="fi:styling/@submit-on-change" mode="styling">
    <xsl:if test=". = 'true'">
      <xsl:attribute name="onchange">forms_submitForm(this)</xsl:attribute>
    </xsl:if>
  </xsl:template>

If it works in the 2.1.7 samples, then it works in 2.1.7 (sheepish grin 
:-), unless there is some bug that you're tickling somehow.

Sorry I don't have a more helpful answer :-/  maybe someone else will...
—ml—



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org