Thank you Paloma. Now I have another doubt that if I want to present the form in area of Lenya content area with the Lenya menu tab and bar. How to do that? Now I have changed the jx file as below, but there is still no menu tab and bar. Thank you for any help in advance.

Regards,
Suriya

-------------------------------------------------------------------------------------------------------------------------------------------

<page:page xmlns:c=" http://apache.org/cocoon/templates/jx/1.0"
           xmlns="http://www.w3.org/1999/xhtml"
           xmlns:i18n=" http://apache.org/cocoon/i18n/2.1"
           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
           xmlns:jx=" http://apache.org/cocoon/templates/jx/1.0"
           >
          
  <page:title>
    <i18n:text>Contact</i18n:text>
  </page:title>
  <page:body>
    <div class="lenya-box">
      <div class="lenya-box-title"/>  
   <div class="lenya-box-body">
    <jx:choose>
      <jx:when test="${usecase.getParameter('sent').equals('true')}">
        <p>
          Your message was sent.<br/>
          Thanks a lot!
        </p>
      </jx:when>
      <jx:otherwise>

        <form id="form-contact">
          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
            <input type="hidden" name=" lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
         
          <table style="font-size: small">
            <tr>
              <td colspan="2">
                <jx:import uri="fallback://lenya/usecases/templates/messages.jx"/>
              </td>
            </tr>
           
            <tr>
              <td><label for="" Name</i18n:text> *</label></td>
              <td><input type="text" name="name" value="${usecase.getParameter('name')}"/></td>
            </tr>
            <tr>
              <td><label for="" E-Mail Address</i18n:text> *</label></td>
              <td><input type="text" name="email" value="${usecase.getParameter('email')}"/></td>
            </tr>
            <tr>
              <td><label for="" Message</i18n:text> *</label></td>
              <td><textarea name="message"><jx:out value="${usecase.getParameter('message')}"/></textarea></td>
            </tr>
           
            <tr>
              <td/>
              <td>
                <input i18n:attr="value" name="submit" type="submit" value="Submit"/>
              </td>
            </tr>
          </table>
        </form>
       
      </jx:otherwise>
    </jx:choose>
   
  </page:body>
</page:page>

-------------------------------------------------------------------------------------------------------------------------------------------  



2006/10/19, Paloma Gomez <[EMAIL PROTECTED]>:
Hi Suriya,

You have to add an entry to lenya/pubs/default/config/ac/usecase-policies.xml specifying which roles are required to be allowed to invoke the usecase in this publication.

HTH,
Paloma




Reply via email to