You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Victoria Vitaver <vi...@tt.com.au> on 2005/05/27 03:45:48 UTC

posibilities with lenya

Hi,

I am a Lenya/Cocoon newbie who needs to assess the suitability of using 
Lenya for a new project.

 From what I have read I understand that it is possible to create forms 
to capture/validate/store user input using cocoon. Right?

Also, is it possible to use the inbuilt Lucine to
a. perform search on various fields (ie advanced search)
b. look through(create index on) xml documents which are not generated 
using lenya(ie are not necessarily a part of the site)?

Finally .. is it possible to dynamically modify menus based on what 
files currently exist in a directory? Is there a nice way of doing this 
with Lenya or would I just need to write an external program that takes 
care of this?

Sorry if the answers to these questions are basic/obvious, but I am just 
working on getting my head around Lenya and its limitations.

Thank you muchly,

Vica


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: posibilities with lenya

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Victoria Vitaver wrote:

> Basically I need to create a form to capture input from a user of the 
> live website.
> Eg. To make a form for a user to enter their interest in a product and 
> allow them to select the product depending on the files that exist in a 
> directory  (ie an xml file would correspond to a product). Their 
> response would then be stored in a file and an email would be sent. 
> Typically I would be using JSP technology for this kind of form.

the lenya forms are primarily meant for editing content. your usecase 
sounds like you may want to use CForms:

http://wiki.apache.org/lenya/HowToCFormsInLenya

>> yes. you probably would use the directory generator for this. take a 
>> look at the blog publication for samples of this
> 
> Sorry, which part of the blog publication should I direct my attention to?

sitemap.xmap, and the map:generate and xinclude parts specifically

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Sending email (was Re: posibilities with lenya)

Posted by Mark Lundquist <ml...@comcast.net>.
On May 27, 2005, at 9:47 AM, I wrote:

> PS — For sending emails from Web apps, I recommend the Spring mail  
> sender component... very easy to use.

While poking around, I just discovered that Cocoon has a similar  
component built-in... just not well-documented.

	http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/mail/ 
MailMessageSender.html

HTH,
—ml—


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: posibilities with lenya

Posted by Mark Lundquist <ml...@comcast.net>.
Hi,

On May 27, 2005, at 12:04 AM, Victoria Vitaver wrote:

> Basically I need to create a form to capture input from a user of the 
> live website.
> Eg. To make a form for a user to enter their interest in a product and 
> allow them to select the product depending on the files that exist in 
> a directory  (ie an xml file would correspond to a product). Their 
> response would then be stored in a file and an email would be sent.

Right...

You're correct that you'd be dealing with the "Cocoon" layer there 
rather than the Lenya layer (but see below).  Cocoon has a good forms 
framework (http://cocoon.apache.org/2.1/userdocs/forms/index.html)

> Typically I would be using JSP technology for this kind of form.

Part of the reason Cocoon exists is so that you don't have to use JSP 
:-).  If you use the Cocoon forms framework, that will give you a 
gentle introduction to "flowscript" 
(http://cocoon.apache.org/2.1/userdocs/forms/index.html).  Flowscript 
is server-side Javascript augmented with web continuations, and it's 
the controller language used in most Cocoon applications.  Unlike JSP, 
flowscript is not embedded in page source markup.

What you are describing is not hard to do using the Cocoon forms + 
flowscript combination.

HTH,
—ml—

PS — For sending emails from Web apps, I recommend the Spring mail 
sender component... very easy to use.


Re: posibilities with lenya

Posted by Victoria Vitaver <vi...@tt.com.au>.
>>  From what I have read I understand that it is possible to create 
>> forms to capture/validate/store user input using cocoon. Right?
> 
> can you be more specific? there are various editors to edit documents 
> against an xml schema, indeed.
> 

Basically I need to create a form to capture input from a user of the 
live website.
Eg. To make a form for a user to enter their interest in a product and 
allow them to select the product depending on the files that exist in a 
directory  (ie an xml file would correspond to a product). Their 
response would then be stored in a file and an email would be sent. 
Typically I would be using JSP technology for this kind of form.

> 
>> Finally .. is it possible to dynamically modify menus based on what 
>> files currently exist in a directory? Is there a nice way of doing 
>> this with Lenya or would I just need to write an external program that 
>> takes care of this?
> 
> 
> yes. you probably would use the directory generator for this. take a 
> look at the blog publication for samples of this

Sorry, which part of the blog publication should I direct my attention to?


Thank you for your help :)

Vica

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: posibilities with lenya

Posted by so...@gmail.com.
> Victoria Vitaver wrote:
> >  From what I have read I understand that it is possible to create forms
> > to capture/validate/store user input using cocoon. Right?

Lenya allows you to easily create web Forms.  You define the fields
with many native validation rules.  You can choose from several
standard layouts, even mixing them on one form.  Setting values for
the fields and saving the results is handled with JavaScript.  You can
bypass the standard methods by pulling the form from somewhere else,
or by setting the FORM ACTION to send the page to another system (but
I cannot think of a reason for doing that.)

> > Also, is it possible to use the inbuilt Lucine to
> > a. perform search on various fields (ie advanced search)

Yes, there is an example in the documentation that filters using the
language field.  Other fields can be added easily.

> > b. look through(create index on) xml documents which are not generated
> > using lenya(ie are not necessarily a part of the site)?

The default configuration is to crawl a website and create the index
from the results, so many websites can be added to a single index. 
(Web pages do not have standard fields, so this may be difficult to
combine with your field-specific search.)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: posibilities with lenya

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Victoria Vitaver wrote:

>  From what I have read I understand that it is possible to create forms 
> to capture/validate/store user input using cocoon. Right?

can you be more specific? there are various editors to edit documents 
against an xml schema, indeed.

> Also, is it possible to use the inbuilt Lucine to
> a. perform search on various fields (ie advanced search)

yes, with customization

> b. look through(create index on) xml documents which are not generated 
> using lenya(ie are not necessarily a part of the site)?

yes, with the crawler

> Finally .. is it possible to dynamically modify menus based on what 
> files currently exist in a directory? Is there a nice way of doing this 
> with Lenya or would I just need to write an external program that takes 
> care of this?

yes. you probably would use the directory generator for this. take a 
look at the blog publication for samples of this

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org