cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <dho...@csir.co.za>
Subject Re: Form data not reflecting changes...
Date Wed, 04 May 2005 13:43:06 GMT
I am reasonably sure it is the same file... 

Here is the sitemap snippets:

Editing:

     <map:match pattern="indicator-edit">
       <map:act type="auth-protect">
         <map:parameter name="handler" value="socindhandler"/>   
         <map:call function="handleForm">
           <map:parameter name="function"    value="form2xml"/>
           <map:parameter name="form-definition"
value="forms/ind/ind_model.xml"/>
           <map:parameter name="bindingURI"     
value="forms/ind/ind_bind.xml"/>
           <map:parameter name="documentURI"
value="indicators/blank.xml"/> <!-- override in script -->
           <map:parameter name="form-type" value="ind"/>
           <map:parameter name="form-action" value="edit"/>
           <map:parameter name="userID" 
value="{session-attr:userID}"/>
         </map:call>
      </map:act>
      <!-- something was wrong, redirect to login page -->
      <map:redirect-to uri="login"/>           
     </map:match>

Viewing:

    <map:match pattern="indicators-view/*">
      <map:generate src="indicators/{1}.xml"/>
      <map:transform src="stylesheets/ind/single-html.xsl">
       <map:parameter name="use-request-parameters" value="true"/>
       <map:parameter name="contextPath"
value="{request:contextPath}"/>
       <map:parameter name="servletPath"
value="{request:servletPath}"/>
       <map:parameter name="serverName" value="{request:serverName}"/>
       <map:parameter name="serverPort" value="{request:serverPort}"/>
       <map:parameter name="userID"  value="{session-attr:userID}"/>
       <map:parameter name="userTag" value="{session-attr:userTag}"/>
       <map:parameter name="userRole" value="{session-attr:userRole}"/>
      
      </map:transform>    
      <map:call resource="docs-page2html"/> 
      <map:serialize type="html"/>
    </map:match> 

Does this help shed any light?

Derek

>>> verdin@agrocampus-rennes.fr 2005/05/04 03:13:00 PM >>>
Maybe with some samples from your sitemap...

are you sure that your souce file and you save file are the same ?
Derek Hohls wrote:

>I am having problems with a CForm that is not showing updated
>data; the form opens and displays data - however, after editing
>the updates are not displayed in the form itself... although the
>display of the data from the form (via another pipeline) *does* 
>show that the edits have been made successfully.  A quick check
>of the source file (the form is bound to a plain XML file)  also
>reflects the changes.  Even stranger, when I access the site from
>a separate machine, I get the same result... the data from *before*
>the edit on the first machine is shown in the form edit box, while
the
>
>file display page shows the changes.
>
>Any ideas why this is happening, or how to overcome it?
>
>Thanks
>Derek
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
>For additional commands, e-mail: users-help@cocoon.apache.org 
>
>
>
>  
>

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


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


Mime
View raw message