cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Delort" <>
Subject Re: [Cforms] fd:action in struc, class or union special issue
Date Mon, 16 Aug 2004 07:51:14 GMT

Hi everyone,

I made some test about the behaviour of the action widget in union, class
and struct.
It appears that when is an action widget is included in an union, it
becomes a submit (while it shouldn't).

In this is ONLY WITH UNIONS, not with classes nor struct. (I made a mistake
last time)

Please, can anyone involved with this kind of widget confirm this.

Here is the code I tried :   (quite simple I guess)

Definition file:

<?xml version="1.0"?>
<fd:form xmlns:fd=""

        <fd:field id="type">

          <fd:label>Widget Type</fd:label>

         <fd:datatype base="string"/>


            <fd:item value="action-in-union"></fd:item>

            <fd:item value=""></fd:item>



 <fd:union id="start" case="type">
      <fd:datatype base="string"/>
        <fd:action  id="action-in-union"  action-command="...">
          <fd:label>action in union</fd:label>
              java.lang.System.err.println("Action in a union");

Template file:

<?xml version="1.0"?>
<jx:template xmlns:jx="">
<page xmlns:ft="" xmlns:fi="">
    <ft:form-template action="project-selector2" method="POST">
       <ft:union id="start">
        <ft:case id="action-in-union">
          <hr />
            <ft:widget id="in-union" />
          <hr />
        <ft:case id="">
          <h3> error at start </h3>

Related flowscript :

function test()
 var form = new Form("forms/test.xml" );

Thanks in advance,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message