cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriele Columbro" <colum...@gmail.com>
Subject Re: Cform binding
Date Fri, 01 Dec 2006 17:30:32 GMT
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 <raffaele.merico@less.ch > 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 
-----------------------------------------
Eng. Gabriele Columbro
Consultant at Sourcesense Italy
-----------------------------------------
work: g.columbro@pronetics.it
private: columbro@gmail.com
mobile: (0039)3201612846

yahoo: g.columbro
gtalk: columbro@gmail.com
AIM:   gabrielecolumbro

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

Mime
View raw message