cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers, AGP" <robby.pelss...@agp.nl>
Subject RE: problem with setting initial value of fieldwidget used in repeaterwidget
Date Mon, 28 Aug 2006 10:13:45 GMT
I checked JIRA and this problem was already closed.  So this answers my
question ....It was a bug.

Cheers,
Robby
  -----Oorspronkelijk bericht-----
  Van: Robby Pelssers, AGP [mailto:robby.pelssers@agp.nl]
  Verzonden: maandag 28 augustus 2006 11:20
  Aan: users@cocoon.apache.org
  Onderwerp: problem with setting initial value of fieldwidget used in
repeaterwidget


  Hi,

  I get a nullpointerexception when adding the line
<fd:initial-value>0</fd:initial:value> for the field-widget 'monday'.

  <fd:form>
    <fd:widgets>
     <fd:repeater id="projects">
        <fd:widgets>
          <fd:field id="contract">
            <fd:label>Contracts</fd:label>
            <fd:datatype base="string"/>
          </fd:field>
          <fd:field id="monday">
            <fd:label>Maandag</fd:label>
            <fd:datatype base="integer"/>
            <fd:initial-value>0</fd:initial-value>
            <fd:on-value-changed>
              <javascript>
                event.source.form.getAttribute("controller").handleHoursOfDa
yValueChanged(event, viewData);
              </javascript>
            </fd:on-value-changed>
          </fd:field>
          <fd:field id="tuesday">
            <fd:label>Dinsdag</fd:label>
            <fd:datatype base="integer"/>
          </fd:field>
          <fd:field id="wednesday">
            <fd:label>Woensdag</fd:label>
            <fd:datatype base="integer"/>
          </fd:field>
          <fd:field id="thursday">
            <fd:label>Donderdag</fd:label>
            <fd:datatype base="integer"/>
          </fd:field>
          <fd:field id="friday">
            <fd:label>Vrijdag</fd:label>
            <fd:datatype base="integer"/>
          </fd:field>
          <fd:output id="rowtotal">
            <fd:label>Totaal</fd:label>
            <fd:datatype base="integer"/>
          </fd:output>
        </fd:widgets>
      </fd:repeater>
    </fd:widgets>
  </fd:form>


  Anybody experienced the same problem?

  Kind regards,
  Robby Pelssers

Mime
View raw message