You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fuad Efendi <fu...@rbc.com> on 2006/11/15 20:58:14 UTC

CForms - need simplest aggregation of form and response

Hello,


I need simplest sample without flowscript and continuation. I read smth
about <fd:action> which does not use continuation...

Single html-page should show a form and the results of submitting a form via
GET method...

For instance, we have text box and submit button; it should show response
from Google together with form object.

I found probably best 'front-end' sample (CSS, xhtml):
http://members.a1.net/berni_huber/csscolumnsite/ - unfortunately it does not
contain Java sources, and does not work in cocoon 2.1.9 environment.

Thanks!
-- 
View this message in context: http://www.nabble.com/CForms---need-simplest-aggregation-of-form-and-response-tf2638495.html#a7365129
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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


RE: CForms - need simplest aggregation of form and response

Posted by Fuad Efendi <fu...@rbc.com>.
Thanks Helma,
analysing CAPTCHA I found {request-param:smth}, then by Google some docs
from API:

In the sitemap, input modules are made available through a
{modulename:attributename} syntax. For instance, if a RequestParameterModule
named request-param is defined in cocoon.xconf, then {request-param:user}
will in effect be replaced by the value of the user request parameter (e.g.
index.html?user=joe). Similarly, a SystemPropertyModule named
system-property would allow {system-property:user.home} to represent user's
home directory path. 
> 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/package-summary.html

and, finally this:
<map:match pattern="bar">
   <map:generate type="file" src="documents/{request-param:file}"/>
   <map:transform src="stylesheets/{request-param:stylesheet}"/>
   <map:serialize/>
</map:match>
http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html


It was difficult finding, I spent probably 5 days on a simple task (without
any previous knowledge of Cocoon); ordered 2 books, need to learn...


Linden H van der (MI) wrote:
> 
>> 
>>         <cinclude:parameter>
>>           <cinclude:name>query</cinclude:name>
>>           <cinclude:value>#{Please Help!}</cinclude:value>
>>         </cinclude:parameter>
> 
> Check the CAPTCHA samples, they do something similar to what you're
> trying to do.
> 
> HTH.
> 
> Bye, Helma
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/CForms---need-simplest-aggregation-of-form-and-response-tf2638495.html#a7404728
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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


RE: CForms - need simplest aggregation of form and response

Posted by "Linden H van der (MI)" <H....@MI.unimaas.nl>.
> 
>         <cinclude:parameter>
>           <cinclude:name>query</cinclude:name>
>           <cinclude:value>#{Please Help!}</cinclude:value>
>         </cinclude:parameter>

Check the CAPTCHA samples, they do something similar to what you're
trying to do.

HTH.

Bye, Helma

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


Re: CForms - need simplest aggregation of form and response

Posted by Fuad Efendi <fu...@rbc.com>.
I browsed docs for CInclude Transformer, it looks what I need...
http://cocoon.apache.org/2.1/userdocs/cinclude-transformer.html

But I don't understand still how to use request parameters _dynamically_

        <cinclude:parameter>
          <cinclude:name>query</cinclude:name>
          <cinclude:value>#{Please Help!}</cinclude:value>
        </cinclude:parameter>




Fuad Efendi wrote:
> 
> Hello,
> 
> 
> I need simplest sample without flowscript and continuation. I read smth
> about <fd:action> which does not use continuation...
> 
> Single html-page should show a form and the results of submitting a form
> via GET method...
> 
> For instance, we have text box and submit button; it should show response
> from Google together with form object.
> 
> I found probably best 'front-end' sample (CSS, xhtml):
> http://members.a1.net/berni_huber/csscolumnsite/ - unfortunately it does
> not contain Java sources, and does not work in cocoon 2.1.9 environment.
> 
> Thanks!
> 

-- 
View this message in context: http://www.nabble.com/CForms---need-simplest-aggregation-of-form-and-response-tf2638495.html#a7367548
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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