cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roel Croonenberghs <Roel.Croonenber...@sofico.be>
Subject set value of a field
Date Thu, 15 Feb 2007 14:30:45 GMT
Hello,

I have a form with binding, define and template. I receive my information 
to display via a webservice in xml. I receive a value (5) in an element, 
but when i do the post of my form i want it to send a value of 10. How can 
I do that?

bind;
<bnd:value id="status"               path="data/new_status"/>

define;
<wd:field id="status">
    <wd:label><i18n:text>general.new_status</i18n:text></wd:label>
    <wd:datatype base="string"/> 
  </wd:field>

template;
<tr>
        <td width="80px"><wt:widget-label id="status"/></td>
        <td><wt:widget id="driver"></wt:widget></td>
</tr>


Thank you

Roel Croonenberghs
Mime
View raw message