Re: Cforms binding differences between 2.1.7 and 2.1.8?

2006-02-07 Thread Antonio Gallardo

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/[EMAIL 
PROTECTED]'${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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cforms binding differences between 2.1.7 and 2.1.8?

2006-02-07 Thread Antonio Fiol Bonnín
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 [EMAIL PROTECTED]:
 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/[EMAIL 
 PROTECTED]'${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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]