cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lutz Thomas <l...@aim-ag.com>
Subject Binding to target xml produces -unknown- tag
Date Fri, 20 May 2005 15:01:02 GMT
Hi everybody !

 

I have a form binding problem, Input != Output. The binding definition works
well when loading the data to the form, but displaying the submitted data
via a jx template shows that the root tag, and the "repeater tags" (the tags
enclosing the repeater records) are wrong.

 

I get something like this:

 

<unknown xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">

<vunr>027</vunr>

<vubezeichnung>AXA Versicherung AG</vubezeichnung>

<extRefSys>OMDS</extRefSys>

<extRefKey>027</extRefKey>

<vertrag>

                        <item position="0">

<id>DB_VertragX_21</id>

<polizzenNr>3/38037993</polizzenNr>

                        </item>

            </vertrag>

</unknown>

 

The root tag unknown is generated by the jxtemplate, at least that's what I
think, with the xmlns:jx in the tag. 

 

If you have a look at the binding below, you will see that there should be
at least a xface-data/set/rec child structure under the unknown tag. And
that the subtags for vertrag are not item, but detail/set... so something
went wrong...

 

<?xml version="1.0" encoding="UTF-8"?>

<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" path="/">

    <fb:context path="xface-data/set/rec">

        <fb:value id="vunr" path="col[@name='vunr']"/>

        <fb:value id="vubezeichnung" path="col[@name='vubezeichnung']"/>

        <fb:value id="extRefSys" path="col[@name='extRefSys']"/>

        <fb:value id="extRefKey" path="col[@name='extRefKey']"/>

        <fb:repeater id="vertrag" parent-path="detail[@name='vertrag']/set"
row-path="rec">

            <fb:identy>

                <fb:value id="id" path="./@id"/>

            </fb:identy>

            <fb:on-bind>

                <fb:value id="id" path="./@id"/>

                <fb:value id="polizzenNr" path="col[@name='polizzenNr']"/>

                <fb:value id="vtgProdCd" path="col[@name='vtgProdCd']"/>

                <fb:value id="vtgProdukt" path="col[@name='vtgProdukt']"/>

                <fb:value id="zahlRhythmCd"
path="col[@name='zahlRhythmCd']"/>

                <fb:value id="zahlWegCd" path="col[@name='zahlWegCd']"/>

                <fb:value id="vtgStatusCd" path="col[@name='vtgStatusCd']"/>

                <fb:value id="vtgStatusBeg"
path="col[@name='vtgStatusBeg']"/>

                <fb:value id="vtgBeg" path="col[@name='vtgBeg']"/>

                <fb:value id="vtgEnd" path="col[@name='vtgEnd']"/>

                <fb:value id="hptfaelligkeit"
path="col[@name='hptfaelligkeit']"/>

                <fb:value id="durchfDat" path="col[@name='durchfDat']"/>

                <fb:value id="gueltigBeg" path="col[@name='gueltigBeg']"/>

                <fb:value id="aendGrundCd" path="col[@name='aendGrundCd']"/>

                <fb:value id="aendGrundbez"
path="col[@name='aendGrundbez']"/>

                <fb:value id="praemieNtoVtg"
path="col[@name='praemieNtoVtg']"/>

                <fb:value id="praemieBtoVtg"
path="col[@name='praemieBtoVtg']"/>

                <fb:value id="waehrungsCd" path="col[@name='waehrungsCd']"/>

                <fb:value id="blz" path="col[@name='blz']"/>

                <fb:value id="ktonr" path="col[@name='ktonr']"/>

                <fb:value id="vunr" path="col[@name='vunr']"/>

                <fb:value id="extRefSys" path="col[@name='extRefSys']"/>

                <fb:value id="extRefKey" path="col[@name='extRefKey']"/>

                <fb:repeater id="sparte"
parent-path="detail[@name='sparte']/set" row-path="rec">

                    <fb:identy>

                        <fb:value id="id" path="./@id"/>

                    </fb:identy>

                    <fb:on-bind>

                        <fb:value id="id" path="./@id"/>

                        <fb:value id="spartenCd"
path="col[@name='spartenCd']"/>

                        <fb:value id="spartenErweiterung"
path="col[@name='spartenErweiterung']"/>

                        <fb:value id="verbandSparteCd"
path="col[@name='verbandSparteCd']"/>

                        <fb:value id="spartentxt"
path="col[@name='spartentxt']"/>

                        <fb:value id="hauptTarifBez"
path="col[@name='hauptTarifBez']"/>

                        <fb:value id="sichergKz"
path="col[@name='sichergKz']"/>

                        <fb:value id="dirBeteiligtKz"
path="col[@name='dirBeteiligtKz']"/>

                        <fb:value id="sondervereinbarungKz"
path="col[@name='sondervereinbarungKz']"/>

                        <fb:value id="praemieNtoSp"
path="col[@name='praemieNtoSp']"/>

                        <fb:value id="praemieBtoSp"
path="col[@name='praemieBtoSp']"/>

                        <fb:value id="extRefSys"
path="col[@name='extRefSys']"/>

                        <fb:value id="extRefKey"
path="col[@name='extRefKey']"/>

                    </fb:on-bind>

                </fb:repeater>

            </fb:on-bind>

        </fb:repeater>

    </fb:context>

</fb:context>

 

Heeelp :-) !

 

Thanks,

tom


Mime
View raw message