You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antonio Fiol Bonnín <an...@gmail.com> on 2006/02/06 10:53:17 UTC

Cforms binding differences between 2.1.7 and 2.1.8?

Hello,

I am using bindings to edit a certain part of the file. However, I am
trying to get some fields mapped to a completely different part of it.
I think this binding file used to work perfectly with 2.1.7 and does
not work completely on 2.1.8. Any idea why?

The portion not working (fields do not get filled in) under 2.1.8 is:
  <fb:value id="nombre"
path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName"
direction="load" />
  <fb:value id="apellidos"
path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn"
direction="load" />

Thank you very much.

--
Antonio Fiol

------------


<fb:context
xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
xmlns:ldap="http://apache.org/cocoon/LDAP/1.0"
path="/agregado/permisos/publicacion/persona[@login='${parameters.getParameter('id')}']"
>

  <fb:value id="nombre"
path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName"
direction="load" />
  <fb:value id="apellidos"
path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn"
direction="load" />
  <fb:value id="login" path="'${parameters.getParameter('id')}'"
direction="load" />

  <fb:repeater id="permisos"
               parent-path="."
               row-path="permiso">
    <fb:identity>
      <fb:value id="id" path="concat(@fullPath,',',@dir)" direction="load" />
    </fb:identity>
    <fb:on-bind>
      <fb:value id="fullPath" path="@fullPath" direction="load" />
      <fb:value id="dir" path="@dir" direction="load" />

      <fb:value id="permiso" path="@permiso">
        <fd:convertor datatype="boolean" />
      </fb:value>
    </fb:on-bind>

  </fb:repeater>

</fb:context>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Cforms binding differences between 2.1.7 and 2.1.8?

Posted by Antonio Fiol Bonnín <an...@gmail.com>.
I don't think so.

I am executing ldap:execute-query only, and the same pipeline (=ldap
query) works in other places in our application.

It looks more like a binding issue instead, possibly being caused by
absolute xpath expressions pointing outside the context.

--
Antonio

2006/2/8, Antonio Gallardo <ag...@agssa.net>:
> Is [1] your problem? -
> [1] http://issues.apache.org/jira/browse/COCOON-1705


> >Hello,
> >
> >I am using bindings to edit a certain part of the file. However, I am
> >trying to get some fields mapped to a completely different part of it.
> >I think this binding file used to work perfectly with 2.1.7 and does
> >not work completely on 2.1.8. Any idea why?
> >
> >The portion not working (fields do not get filled in) under 2.1.8 is:
> >  <fb:value id="nombre"
> >path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName"
> >direction="load" />
> >  <fb:value id="apellidos"
> >path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn"
> >direction="load" />
> >
> >------------
> >
> >
> ><fb:context
> >xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
> >xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
> >xmlns:ldap="http://apache.org/cocoon/LDAP/1.0"
> >path="/agregado/permisos/publicacion/persona[@login='${parameters.getParameter('id')}']"
> >
> >
> >
> >  <fb:value id="nombre"
> >path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName"
> >direction="load" />
> >  <fb:value id="apellidos"
> >path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn"
> >direction="load" />
> >  <fb:value id="login" path="'${parameters.getParameter('id')}'"
> >direction="load" />
> >
> >  <fb:repeater id="permisos"
> >               parent-path="."
> >               row-path="permiso">
> >    <fb:identity>
> >      <fb:value id="id" path="concat(@fullPath,',',@dir)" direction="load" />
> >    </fb:identity>
> >    <fb:on-bind>
> >      <fb:value id="fullPath" path="@fullPath" direction="load" />
> >      <fb:value id="dir" path="@dir" direction="load" />
> >
> >      <fb:value id="permiso" path="@permiso">
> >        <fd:convertor datatype="boolean" />
> >      </fb:value>
> >    </fb:on-bind>
> >
> >  </fb:repeater>
> >
> ></fb:context>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Cforms binding differences between 2.1.7 and 2.1.8?

Posted by Antonio Gallardo <ag...@agssa.net>.
Is [1] your problem? -

Best Regards,

Antonio Gallardo

[1] http://issues.apache.org/jira/browse/COCOON-1705

Antonio Fiol Bonnín wrote:

>Hello,
>
>I am using bindings to edit a certain part of the file. However, I am
>trying to get some fields mapped to a completely different part of it.
>I think this binding file used to work perfectly with 2.1.7 and does
>not work completely on 2.1.8. Any idea why?
>
>The portion not working (fields do not get filled in) under 2.1.8 is:
>  <fb:value id="nombre"
>path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName"
>direction="load" />
>  <fb:value id="apellidos"
>path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn"
>direction="load" />
>
>Thank you very much.
>
>--
>Antonio Fiol
>
>------------
>
>
><fb:context
>xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
>xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
>xmlns:ldap="http://apache.org/cocoon/LDAP/1.0"
>path="/agregado/permisos/publicacion/persona[@login='${parameters.getParameter('id')}']"
>  
>
>
>  <fb:value id="nombre"
>path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:givenName"
>direction="load" />
>  <fb:value id="apellidos"
>path="/agregado/listas/ldap:lista-personas/ldap:persona[ldap:sAMAccountName='${parameters.getParameter('id')}']/ldap:sn"
>direction="load" />
>  <fb:value id="login" path="'${parameters.getParameter('id')}'"
>direction="load" />
>
>  <fb:repeater id="permisos"
>               parent-path="."
>               row-path="permiso">
>    <fb:identity>
>      <fb:value id="id" path="concat(@fullPath,',',@dir)" direction="load" />
>    </fb:identity>
>    <fb:on-bind>
>      <fb:value id="fullPath" path="@fullPath" direction="load" />
>      <fb:value id="dir" path="@dir" direction="load" />
>
>      <fb:value id="permiso" path="@permiso">
>        <fd:convertor datatype="boolean" />
>      </fb:value>
>    </fb:on-bind>
>
>  </fb:repeater>
>
></fb:context>
>
>---------------------------------------------------------------------
>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