Hi,

> > I then added the sitemap pipelines and .js script from the 
> original form1
> > example, modified the source location to use the original 
> files and it still
> > works.
> > 
> 
> hoeray!
> (I take it you forgot the negation in that last sentence :-))


Oops, I didn't make myself clear enough: after modification the form1 setup
still works, while my "almost identical" form doesn't work.


> However, I did notice that while flow ignores it our sample sitemap.xmap 
> is still mentioning it today (that is fixed now on 2.1 cvs-head)

Right, that's where I got it from. Thanks for validating that I'm not going
crazy, because I couldn't find any reference to the parameter. :-)

As for details, see below.

Thanks and bye, Helma


My sitemap pipelines:

<map:match pattern="searchPerson.flow">
        <map:call function="woody">
                <map:parameter name="function" value="searchPerson"/>
                <map:parameter name="form-definition"
value="content/searchPersonDef.xml"/>
                <map:parameter name="attribute-name" value="searchPerson"/>
        </map:call>
</map:match>
                
<map:match pattern="searchWoody.form">
        <map:generate src="scratchpad/searchWoody.xml"/>
        <map:transform type="woody" label="debug3"/>
        <map:serialize type="xml"/>
</map:match>

Flowscript:

function searchPerson(form) {
    var model = form.getModel();

        model.Name_0 = "";
        model.Name_1 = "";
        model.Name_2 = "";
        model.BirthDate = new java.util.Date();
        model.Sex = "U";

        form.showForm("searchWoody.form");
} // searchPerson

searchpersonDef.xml:

<wd:form xmlns:wd="http://apache.org/cocoon/woody/definition/1.0";>
        <wd:widgets>
                <wd:output id="errMsg">
                        <wd:datatype base="string"/>
                </wd:output>
                <wd:field id="Name_0">
                        <wd:label>Achternaam</wd:label>
                        <wd:datatype base="string">
                                <wd:validation/>
                        </wd:datatype>
                </wd:field>
                <wd:field id="Name_1">
                        <wd:label>Voornaam</wd:label>
                        <wd:datatype base="string">
                                <wd:validation/>
                        </wd:datatype>
                </wd:field>
                <wd:field id="Name_2">
                        <wd:label>Tussenvoegsel(s)</wd:label>
                        <wd:datatype base="string">
                                <wd:validation/>
                        </wd:datatype>
                </wd:field>
                <wd:field id="BirthDate">
                        <wd:label>Geboortedatum</wd:label>
                        <wd:hint>voer de datum in als dd-mm-jjjj</wd:hint>
                        <wd:datatype base="date">
                                <wd:convertor type="formatting">
                                        <wd:pattern>dd-MM-yyyy</wd:pattern>
                                </wd:convertor>
                        </wd:datatype>
                </wd:field>
                <wd:field id="Sex">
                        <wd:label>Geslacht</wd:label>
                        <wd:datatype base="string">
                                <wd:selection-list>
                                        <wd:item value="Male">
                                                <wd:label>Man</wd:label>
                                        </wd:item>
                                        <wd:item value="Female">
                                                <wd:label>Vrouw</wd:label>
                                        </wd:item>
                                        <wd:item value="Unknown">
        
<wd:label>onbekend</wd:label>
                                        </wd:item>
                                </wd:selection-list>
                        </wd:datatype>
                </wd:field>
                <wd:submit id="searchButton"
action-command="searchButtonAction">
                        <wd:label>Zoek</wd:label>
                </wd:submit>
        </wd:widgets>
</wd:form>

SearchWoody.xml

<?xml version="1.0" ?>
<layout xmlns:wt="http://apache.org/cocoon/woody/template/1.0";
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
    <wt:form-template action="#{$continuation/id}.continue" method="POST">
<table>
<tr>
<td><wt:widget-label id="Name_0"/></td>
<td><wt:widget id="Name_0"/></td>
</tr>
<tr>
<td><wt:widget-label id="Name_2"/></td>
<td><wt:widget id="Name_2"/></td>
</tr>
<tr>
<td><wt:widget-label id="Name_1"/></td>
<td><wt:widget id="Name_1"/></td>
</tr>
<tr>
<td><wt:widget-label id="BirthDate"/></td>
<td><wt:widget id="BirthDate"/></td>
</tr>
<tr>
<td><wt:widget-label id="Sex"/></td>
<td><wt:widget id="Sex">
        <wi:styling list-type="radio"/>
</wt:widget>
</td>
</tr>
<tr>
<td>&#160;</td>
<td><wt:widget id="searchButton"/></td>
</tr>
</table>
</wt:form-template>
</layout>


Result in IE:

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <layout xmlns:wt="http://apache.org/cocoon/woody/template/1.0";
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
- <wi:form-template
action="42644d6a3613577b2447102d703b03226b832732.continue" method="POST"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
- <table>
- <tr>
  <td>Achternaam</td> 
- <td>
- <wi:field id="Name_0" required="false"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
  <wi:label>Achternaam</wi:label> 
  </wi:field>
  </td>
  </tr>
- <tr>
  <td>Tussenvoegsel(s)</td> 
- <td>
- <wi:field id="Name_2" required="false"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
  <wi:label>Tussenvoegsel(s)</wi:label> 
  </wi:field>
  </td>
  </tr>
- <tr>
  <td>Voornaam</td> 
- <td>
- <wi:field id="Name_1" required="false"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
  <wi:label>Voornaam</wi:label> 
  </wi:field>
  </td>
  </tr>
- <tr>
  <td>Geboortedatum</td> 
- <td>
- <wi:field id="BirthDate" required="false"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
  <wi:value>12/30/03</wi:value> 
  <wi:hint>voer de datum in als dd-mm-jjjj</wi:hint> 
  <wi:label>Geboortedatum</wi:label> 
  </wi:field>
  </td>
  </tr>
- <tr>
  <td>Geslacht</td> 
- <td>
- <wi:field id="Sex" required="false"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
  <wi:value>U</wi:value> 
  <wi:label>Geslacht</wi:label> 
  <wi:styling list-type="radio" />   <--- <wi:selection-list> should be
added here
  </wi:field>
  </td>
  </tr>
- <tr>
  <td> </td> 
- <td>
- <wi:action id="searchButton"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
  <wi:label>Zoek</wi:label> 
  </wi:action>
  </td>
  </tr>
  </table>
  </wi:form-template>
  </layout>

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

Reply via email to