Hi Raffaele,
IMHO you should be able to access the cocoon object model in the binding.
I'm sure that this is possible with a javascript binding more or less like:

<fb:javascript id="foo" path="@foo">

 <fb:load-form>
   var reqParam = cocoon.request.getParameter('foo');
   if(reqParam == 'myDesiredValue')
      widget.setValue(formValue);
 </fb:load-form>
 <fb:save-form>
   ....

 </fb:save-form>
</fb:javascript>


Not sure about JXPath but I suppose it should be possible in the exact same
way it is possible in the JXTemplate (not sure though, so better try it)
more or less like:

${cocoon.request.getParameter('foo') }


BTW, you may find this[1] useful to know which objects you can access and
how to instantiate them.


HTH,
Gabriele



[1] http://cocoon.apache.org/2.1/userdocs/flow/api.html#request

On 12/1/06, Merico Raffaele <[EMAIL PROTECTED] > wrote:

Dear Community

I have a cform that binds with an XML document. In the fb file I would
like
to define an XPATH that contains values of given request parameters. Is
there any possibility to access the request object with JXPath. I so, how
does the syntax would look like.

Many thanks in advance ... Raffaele

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




--
-----------------------------------------
Eng. Gabriele Columbro
Consultant at Sourcesense Italy
-----------------------------------------
work: [EMAIL PROTECTED]
private: [EMAIL PROTECTED]
mobile: (0039)3201612846

yahoo: g.columbro
gtalk: [EMAIL PROTECTED]
AIM:   gabrielecolumbro

-----------------------------------------
"Keyboard not found.
Press F1 to continue"
-----------------------------------------

Reply via email to