org.apache.lenya.cms.cocoon.acting
Class HTMLFormSaveAction

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.acting.AbstractAction
          extended by org.apache.cocoon.acting.AbstractConfigurableAction
              extended by org.apache.lenya.cms.cocoon.acting.HTMLFormSaveAction
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe, org.apache.cocoon.acting.Action

public class HTMLFormSaveAction
extends org.apache.cocoon.acting.AbstractConfigurableAction
implements org.apache.avalon.framework.thread.ThreadSafe

FIXME: org.apache.xpath.compiler.XPathParser seems to have problems when namespaces are not declared within the root element. Unfortunately the XSLTs (during Cocoon transformation) are moving the namespaces to the elements which use them! One hack might be to parse the tree for namespaces (Node.getNamespaceURI), collect them and add them to the document root element, before sending it through the org.apache.xpath.compiler.XPathParser (called by XPathAPI) FIXME: There seems to be another problem with default namespaces WARNING: Internet Explorer sends X and Y coordinates for image buttons. These have to be treated differently. Mozilla does not send these coordinates.


Field Summary
 
Fields inherited from class org.apache.cocoon.acting.AbstractConfigurableAction
settings
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
HTMLFormSaveAction()
           
 
Method Summary
 java.util.Map act(org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver resolver, java.util.Map objectModel, java.lang.String source, org.apache.avalon.framework.parameters.Parameters parameters)
          Save data to temporary file
 
Methods inherited from class org.apache.cocoon.acting.AbstractConfigurableAction
configure
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLFormSaveAction

public HTMLFormSaveAction()
Method Detail

act

public java.util.Map act(org.apache.cocoon.environment.Redirector redirector,
                         org.apache.cocoon.environment.SourceResolver resolver,
                         java.util.Map objectModel,
                         java.lang.String source,
                         org.apache.avalon.framework.parameters.Parameters parameters)
                  throws java.lang.Exception
Save data to temporary file

Specified by:
act in interface org.apache.cocoon.acting.Action
Parameters:
redirector - a Redirector value
resolver - a SourceResolver value
objectModel - a Map value
source - a String value
parameters - a Parameters value
Returns:
a Map value
Throws:
java.lang.Exception - if an error occurs


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.