cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cocoon.erard" <cocoon.er...@besonet.ch>
Subject forms with ajax and cinclude
Date Fri, 21 Sep 2007 14:08:27 GMT
Hi, 

I've another problem in my application.

I've extracted a piece of my form template in a separate xml to have a module that can be
reused.

With this include Iinclude the commented part into my template.

In the form I enabled ajax, and when I have Errors while the validation this errors aren't
shown in browser for the included part. The rest is working.

Regards, 

Mike

<include:include src="cocoon:/part/checkCustomerData" />
    
<!-- div class="columns4">    
   <span class="title"><dbI18n:text>CUSTOMER_DATA</dbI18n:text></span>
        <table>
          <tr>
            <td class="label"><ft:widget-help-label id="bcNr"/></td>
            <td class="field"><ft:widget id="bcNr"><fi:styling maxlength="5"/></ft:widget></td>
            <td class="label"><ft:widget-label id="type"/></td>
            <td class="field"><ft:widget id="type" /></td>
          </tr>
          <tr class="alt">
            <td class="label"><ft:widget-label id="accountNo"/></td>
            <td class="field"><ft:widget id="accountNo"><fi:styling maxlength="16"/></ft:widget></td>
            <td class="label"><ft:widget-label id="branchNo"/></td>
            <td class="field"><ft:widget id="branchNo"><fi:styling maxlength="3"/></ft:widget></td>
          </tr>
        </table>
      </div-->


<map:otherwise>
            <map:generate type="jx" src="pages/forms/{1}_template.xml"/>
            <map:transform type="cinclude" />   
            <map:transform type="browser-update"/>
            <map:transform src="stylesheets/forms-style.xsl">
              <map:parameter name="dojo-resources" value="{servlet:ajax:/resource/external/dojo}"
/>
              <map:parameter name="forms-resources" value="{servlet:forms:/resource/external/forms}"
/>
            </map:transform>
            <map:transform type="dbi18n">
              <map:parameter name="locale" value="{../locale}" />
            </map:transform>
            <map:serialize type="xml" />
          </map:otherwise> 


____________________________________________
QuickLine WebMail - http://www.QuickLine.com

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


Mime
View raw message