Hi,

  _____  

From: Bubenik, Wolf [mailto:[email protected]]
To: Magnolia User-List [mailto:[email protected]]
Sent: Fri, 13 Feb 2009 18:34:29 +0100
Subject: [magnolia-user]  Mgnl 4.0 RC3: Form Module


   
  
  Hallo again, 
  
  how to use the form module as smart as possible?
  
  From the example form I learned that I have to
  - configure my Form in adminCentral: 
  -- create a form paragraph
  -- create a Dialog with controls, having the names I expect in my
  FormProcessor implementationThe form module already provides a form paragraph 
that you will need to  add to your page and start adding the input fields you 
want. It provides the dialogs as well.
When adding por example an inpur field ´name´ the dialog has a field 'field 
name' where you put the name you want for the parameter, example username, 
later to be accessed inside the form properties for sending the email like 
${{username}}, and any  where else as a regular parameter 
MgnlContext.getParameter('username')

  -- build the form on the admin gui
  -- insert the variables (${formFieldName}) into my dialog fields (this
  is the mapping from the HTML form to the form model bean)
  - Access the values in my FormProcessor implementation:
  -- get the content objct from the FormModel instance 
  -- read the desired nodeData values (names as declared for the dialog)
  from the conten instance
  -- do somthing with the data
  
  Is that correct?
  
  Is there a simpler, more direct way to access the user input (request
  parameters)?
  
  If I got this right, you are using the JCR repository to store the user
  input. Right?
  What is the scope for this?
  Are the created Content instances automatically removed from the
  repository (if persisted) and when does this happen?
  
  Does this consume much system resources?
  User input is not persisted. There are implementations for form processors, 
validation, dialogs and paragraphs within the module. If you installed the 
standard-templating-kit there is a example of contact form in 
wesite.demo-project that uses the form module as is.

  Thanks for enlightenment
  
  Wolf
  
  ----------------------------------------------------------------
  For list details see
  http://www.magnolia-cms.com/home/community/mailing-lists.html
  To unsubscribe, E-mail to: <[email protected]>
  ----------------------------------------------------------------
    
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to