[Geoserver-devel] [jira] Created: (GEOS-4531) geoserver-printing: Specify the mapfish configuration file (config.yaml) per request

geoserver-printing: Specify the mapfish configuration file (config.yaml) per request
------------------------------------------------------------------------------------

                 Key: GEOS-4531
                 URL: http://jira.codehaus.org/browse/GEOS-4531
             Project: GeoServer
          Issue Type: New Feature
          Components: Community modules
            Reporter: Bernhard Kiselka
            Assignee: Andrea Aime
         Attachments: geoserver-printing.patch_changeConfigPerRequest.diff

For printing completely different documents (not only varying by parameters, but by complete different page setup and blocks) it necessary to specify the mapfish configuration file with the print request.

At the client the parameter is set by adding an additional config: another_config_file.yaml to the optional property baseParams of GeoExt.data.PrintProvider.
Example:

var printProviderNoMap = new GeoExt.data.PrintProvider({
  method: "POST", // necessary for big requests
  capabilities: printCapabilities, // provide url instead for lazy loading
  baseParams: {
    config: "config_nomap.yaml"
  }
}

This overrides the configuration of the initParameters property config from applicationContext.xml

Please review and integrate attached patch.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira