You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Katharina Geissler <ge...@web.de> on 2004/07/23 11:47:01 UTC
Binding of boolean value (CForms)
Hi there,
if got a problem with the binding of an boolean value. It displays well
and also sets the attribute of the checkbox correctly, but when I'm
trying to send the form, I get the following error:
org.apache.commons.jxpath.JXPathException: Exception trying to create
xpath koordination-phasen-beginn/bereitstellung-instruktion/@checkbox;
Cannot create an attribute for path
/episode[1]/lernprozess-detailplanung[1]/koordination-
lernaktivitaeten[1]/koordination-lernaktivitaeten-phase[1]/
koordination-phasen-beginn/bereitstellung-instruktion/@checkbox,
operation is not allowed for this type of node
This is my binding-code (fragment):
<fb:context path="lernprozess-detailplanung">
<fb:repeater id="koordination-lernaktivitaeten"
parent-path="koordination-lernaktivitaeten"
row-path="koordination-lernaktivitaeten-phase">
<fb:identity>
<fb:value id="id" path="@id">
<!--optional convertor to use for mapping the unique
id-->
<fd:convertor datatype="long" />
</fb:value>
</fb:identity>
<fb:on-bind>
<fb:value id="bereitstellung-instruktion"
path="koordination-phasen-beginn/bereitstellung-instruktion/@checkbox">
<fd:convertor datatype="boolean" type="plain"/>
</fb:value>
<fb:on-delete-row>
<fb:delete-node/>
</fb:on-delete-row>
<fb:on-insert-row>
<fb:insert-node>
<koordination-lernaktivitaeten-phase id="" row-state="new">
<bereitstellung-instruktion/>
</koordination-lernaktivitaeten-phase>
</fb:insert-node>
</fb:on-insert-row>
</fb:repeater>
</fb:context>
I don't know what I'm doing wrong ... I have done this before and never
had a problem whit that. The only difference to my previous forms ist,
that now the booleanfield is inside a repeater. But that shoudn't make
any difference, or should ist?
Thanx for any advice,
Katharina
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Binding of boolean value (CForms)
Posted by Katharina Geissler <ge...@web.de>.
Thank you! :)) That workes!
And now I also understand what <fb:insert-node> really does! I thought
I only have to put the widgets in there that are written into my
data-file (backend) but you have to tell the binding the whole path
where to put the widgets. Now that I know, it sounds very logical ;)
Have fun and thanx again,
Katharina
Am 23.07.2004 um 13:46 schrieb Olivier Billard:
> Re-reading you binding, I think you've missed a
> "koordination-phasen-beginn" element, because that what the xpath
> engine is looking for :
>
> <fb:on-insert-row>
> <fb:insert-node>
> <koordination-lernaktivitaeten-phase id="" row-state="new">
> <koordination-phasen-beginn>
> <bereitstellung-instruktion checkbox=""/>
> </koordination-phasen-beginn>
> </koordination-lernaktivitaeten-phase>
> </fb:insert-node>
> </fb:on-insert-row>
>
> Katharina Geissler wrote:
>> Hi Olivier,
>> I've already tried that - it doesn't make any difference. It seems
>> that this really happens because the booleanfield is inside a
>> repeater! As soon as i put the booloeanfield outside the repeater it
>> works, so maybe this is a bug? I can't see what else I could be
>> doing wrong.
>> Or do you have another suggestion?
>> Thanx,
>> Katharina
>> Am 23.07.2004 um 12:26 schrieb Olivier Billard:
>>> Hi Katharina,
>>>
>>> Try to add the "checkbox" attribute in the "on-insert-row" :
>>>
>>> <fb:on-insert-row>
>>> <fb:insert-node>
>>> <koordination-lernaktivitaeten-phase id="" row-state="new">
>>> <bereitstellung-instruktion checkbox="" />
>>> </koordination-lernaktivitaeten-phase>
>>> </fb:insert-node>
>>> </fb:on-insert-row>
>>>
>>> --
>>> Olivier Billard
>>>
>>> Katharina Geissler wrote:
>>>
>>>> Hi there,
>>>> if got a problem with the binding of an boolean value. It displays
>>>> well and also sets the attribute of the checkbox correctly, but
>>>> when I'm trying to send the form, I get the following error:
>>>> org.apache.commons.jxpath.JXPathException: Exception trying to
>>>> create xpath
>>>> koordination-phasen-beginn/bereitstellung-instruktion/@checkbox;
>>>> Cannot create an attribute for path
>>>> /episode[1]/lernprozess-detailplanung[1]/koordination-
>>>> lernaktivitaeten[1]/koordination-lernaktivitaeten-phase[1]/
>>>> koordination-phasen-beginn/bereitstellung-instruktion/@checkbox,
>>>> operation is not allowed for this type of node
>>>> This is my binding-code (fragment):
>>>> <fb:context path="lernprozess-detailplanung">
>>>> <fb:repeater id="koordination-lernaktivitaeten"
>>>> parent-path="koordination-lernaktivitaeten"
>>>> row-path="koordination-lernaktivitaeten-phase">
>>>> <fb:identity>
>>>> <fb:value id="id" path="@id">
>>>> <!--optional convertor to use for mapping the
>>>> unique id-->
>>>> <fd:convertor datatype="long" />
>>>> </fb:value>
>>>> </fb:identity>
>>>> <fb:on-bind>
>>>> <fb:value id="bereitstellung-instruktion"
>>>> path="koordination-phasen-beginn/bereitstellung-instruktion/
>>>> @checkbox">
>>>> <fd:convertor datatype="boolean" type="plain"/>
>>>> </fb:value>
>>>> <fb:on-delete-row>
>>>> <fb:delete-node/>
>>>> </fb:on-delete-row>
>>>> <fb:on-insert-row>
>>>> <fb:insert-node>
>>>> <koordination-lernaktivitaeten-phase id=""
>>>> row-state="new">
>>>> <bereitstellung-instruktion/>
>>>> </koordination-lernaktivitaeten-phase>
>>>> </fb:insert-node>
>>>> </fb:on-insert-row>
>>>> </fb:repeater>
>>>> </fb:context>
>>>> I don't know what I'm doing wrong ... I have done this before and
>>>> never had a problem whit that. The only difference to my previous
>>>> forms ist, that now the booleanfield is inside a repeater. But
>>>> that shoudn't make any difference, or should ist?
>>>> Thanx for any advice,
>>>> Katharina
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Binding of boolean value (CForms)
Posted by Olivier Billard <ob...@jouve.fr>.
Re-reading you binding, I think you've missed a
"koordination-phasen-beginn" element, because that what the xpath engine
is looking for :
<fb:on-insert-row>
<fb:insert-node>
<koordination-lernaktivitaeten-phase id="" row-state="new">
<koordination-phasen-beginn>
<bereitstellung-instruktion checkbox=""/>
</koordination-phasen-beginn>
</koordination-lernaktivitaeten-phase>
</fb:insert-node>
</fb:on-insert-row>
Katharina Geissler wrote:
> Hi Olivier,
>
> I've already tried that - it doesn't make any difference. It seems that
> this really happens because the booleanfield is inside a repeater! As
> soon as i put the booloeanfield outside the repeater it works, so maybe
> this is a bug? I can't see what else I could be doing wrong.
>
> Or do you have another suggestion?
>
> Thanx,
> Katharina
>
>
> Am 23.07.2004 um 12:26 schrieb Olivier Billard:
>
>> Hi Katharina,
>>
>> Try to add the "checkbox" attribute in the "on-insert-row" :
>>
>> <fb:on-insert-row>
>> <fb:insert-node>
>> <koordination-lernaktivitaeten-phase id="" row-state="new">
>> <bereitstellung-instruktion checkbox="" />
>> </koordination-lernaktivitaeten-phase>
>> </fb:insert-node>
>> </fb:on-insert-row>
>>
>> --
>> Olivier Billard
>>
>> Katharina Geissler wrote:
>>
>>> Hi there,
>>> if got a problem with the binding of an boolean value. It displays
>>> well and also sets the attribute of the checkbox correctly, but
>>> when I'm trying to send the form, I get the following error:
>>> org.apache.commons.jxpath.JXPathException: Exception trying to
>>> create xpath
>>> koordination-phasen-beginn/bereitstellung-instruktion/@checkbox;
>>> Cannot create an attribute for path
>>> /episode[1]/lernprozess-detailplanung[1]/koordination-
>>> lernaktivitaeten[1]/koordination-lernaktivitaeten-phase[1]/
>>> koordination-phasen-beginn/bereitstellung-instruktion/@checkbox,
>>> operation is not allowed for this type of node
>>> This is my binding-code (fragment):
>>> <fb:context path="lernprozess-detailplanung">
>>> <fb:repeater id="koordination-lernaktivitaeten"
>>> parent-path="koordination-lernaktivitaeten"
>>> row-path="koordination-lernaktivitaeten-phase">
>>> <fb:identity>
>>> <fb:value id="id" path="@id">
>>> <!--optional convertor to use for mapping the
>>> unique id-->
>>> <fd:convertor datatype="long" />
>>> </fb:value>
>>> </fb:identity>
>>> <fb:on-bind>
>>> <fb:value id="bereitstellung-instruktion"
>>> path="koordination-phasen-beginn/bereitstellung-instruktion/ @checkbox">
>>> <fd:convertor datatype="boolean" type="plain"/>
>>> </fb:value>
>>> <fb:on-delete-row>
>>> <fb:delete-node/>
>>> </fb:on-delete-row>
>>> <fb:on-insert-row>
>>> <fb:insert-node>
>>> <koordination-lernaktivitaeten-phase id="" row-state="new">
>>> <bereitstellung-instruktion/>
>>> </koordination-lernaktivitaeten-phase>
>>> </fb:insert-node>
>>> </fb:on-insert-row>
>>> </fb:repeater>
>>> </fb:context>
>>> I don't know what I'm doing wrong ... I have done this before and
>>> never had a problem whit that. The only difference to my previous
>>> forms ist, that now the booleanfield is inside a repeater. But that
>>> shoudn't make any difference, or should ist?
>>> Thanx for any advice,
>>> Katharina
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Binding of boolean value (CForms)
Posted by Katharina Geissler <ge...@web.de>.
Hi Olivier,
I've already tried that - it doesn't make any difference. It seems that
this really happens because the booleanfield is inside a repeater! As
soon as i put the booloeanfield outside the repeater it works, so maybe
this is a bug? I can't see what else I could be doing wrong.
Or do you have another suggestion?
Thanx,
Katharina
Am 23.07.2004 um 12:26 schrieb Olivier Billard:
> Hi Katharina,
>
> Try to add the "checkbox" attribute in the "on-insert-row" :
>
> <fb:on-insert-row>
> <fb:insert-node>
> <koordination-lernaktivitaeten-phase id="" row-state="new">
> <bereitstellung-instruktion checkbox="" />
> </koordination-lernaktivitaeten-phase>
> </fb:insert-node>
> </fb:on-insert-row>
>
> --
> Olivier Billard
>
> Katharina Geissler wrote:
>> Hi there,
>> if got a problem with the binding of an boolean value. It displays
>> well and also sets the attribute of the checkbox correctly, but when
>> I'm trying to send the form, I get the following error:
>> org.apache.commons.jxpath.JXPathException: Exception trying to create
>> xpath
>> koordination-phasen-beginn/bereitstellung-instruktion/@checkbox;
>> Cannot create an attribute for path
>> /episode[1]/lernprozess-detailplanung[1]/koordination-
>> lernaktivitaeten[1]/koordination-lernaktivitaeten-phase[1]/
>> koordination-phasen-beginn/bereitstellung-instruktion/@checkbox,
>> operation is not allowed for this type of node
>> This is my binding-code (fragment):
>> <fb:context path="lernprozess-detailplanung">
>> <fb:repeater id="koordination-lernaktivitaeten"
>> parent-path="koordination-lernaktivitaeten"
>> row-path="koordination-lernaktivitaeten-phase">
>> <fb:identity>
>> <fb:value id="id" path="@id">
>> <!--optional convertor to use for mapping the unique
>> id-->
>> <fd:convertor datatype="long" />
>> </fb:value>
>> </fb:identity>
>> <fb:on-bind>
>> <fb:value id="bereitstellung-instruktion"
>> path="koordination-phasen-beginn/bereitstellung-instruktion/
>> @checkbox">
>> <fd:convertor datatype="boolean" type="plain"/>
>> </fb:value>
>> <fb:on-delete-row>
>> <fb:delete-node/>
>> </fb:on-delete-row>
>> <fb:on-insert-row>
>> <fb:insert-node>
>> <koordination-lernaktivitaeten-phase id=""
>> row-state="new">
>> <bereitstellung-instruktion/>
>> </koordination-lernaktivitaeten-phase>
>> </fb:insert-node>
>> </fb:on-insert-row>
>> </fb:repeater>
>> </fb:context>
>> I don't know what I'm doing wrong ... I have done this before and
>> never had a problem whit that. The only difference to my previous
>> forms ist, that now the booleanfield is inside a repeater. But that
>> shoudn't make any difference, or should ist?
>> Thanx for any advice,
>> Katharina
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Binding of boolean value (CForms)
Posted by Olivier Billard <ob...@jouve.fr>.
Hi Katharina,
Try to add the "checkbox" attribute in the "on-insert-row" :
<fb:on-insert-row>
<fb:insert-node>
<koordination-lernaktivitaeten-phase id="" row-state="new">
<bereitstellung-instruktion checkbox="" />
</koordination-lernaktivitaeten-phase>
</fb:insert-node>
</fb:on-insert-row>
--
Olivier Billard
Katharina Geissler wrote:
> Hi there,
>
> if got a problem with the binding of an boolean value. It displays well
> and also sets the attribute of the checkbox correctly, but when I'm
> trying to send the form, I get the following error:
>
> org.apache.commons.jxpath.JXPathException: Exception trying to create
> xpath koordination-phasen-beginn/bereitstellung-instruktion/@checkbox;
> Cannot create an attribute for path
> /episode[1]/lernprozess-detailplanung[1]/koordination-
> lernaktivitaeten[1]/koordination-lernaktivitaeten-phase[1]/
> koordination-phasen-beginn/bereitstellung-instruktion/@checkbox,
> operation is not allowed for this type of node
>
> This is my binding-code (fragment):
>
> <fb:context path="lernprozess-detailplanung">
> <fb:repeater id="koordination-lernaktivitaeten"
> parent-path="koordination-lernaktivitaeten"
> row-path="koordination-lernaktivitaeten-phase">
>
> <fb:identity>
> <fb:value id="id" path="@id">
> <!--optional convertor to use for mapping the unique
> id-->
> <fd:convertor datatype="long" />
> </fb:value>
> </fb:identity>
>
> <fb:on-bind>
> <fb:value id="bereitstellung-instruktion"
> path="koordination-phasen-beginn/bereitstellung-instruktion/@checkbox">
> <fd:convertor datatype="boolean" type="plain"/>
> </fb:value>
>
> <fb:on-delete-row>
> <fb:delete-node/>
> </fb:on-delete-row>
>
> <fb:on-insert-row>
> <fb:insert-node>
> <koordination-lernaktivitaeten-phase id="" row-state="new">
> <bereitstellung-instruktion/>
> </koordination-lernaktivitaeten-phase>
> </fb:insert-node>
> </fb:on-insert-row>
>
> </fb:repeater>
> </fb:context>
>
> I don't know what I'm doing wrong ... I have done this before and never
> had a problem whit that. The only difference to my previous forms ist,
> that now the booleanfield is inside a repeater. But that shoudn't make
> any difference, or should ist?
>
> Thanx for any advice,
> Katharina
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org