You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/04/08 15:53:16 UTC

[jira] [Commented] (CAMEL-6251) Not possible to use propertyplaceholders for camel dataformat pretty-print attribute

    [ https://issues.apache.org/jira/browse/CAMEL-6251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625376#comment-13625376 ] 

Claus Ibsen commented on CAMEL-6251:
------------------------------------

See this FAQ
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
                
> Not possible to use propertyplaceholders for camel dataformat pretty-print attribute
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6251
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6251
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jaxb
>    Affects Versions: 2.10.2
>            Reporter: David J. M. Karlsen
>
> It's not possible to use propertyplaceholders for the prettyPrint attribute for the jaxb configuration when using spring DSL.
> {noformat}
> 			<marshal>
> 				<jaxb prettyPrint="${jaxb.prettyPrint}" contextPath="my.contextpath"
> 					partClass="my.Document" 
> 					partNamespace="{my}Document" />
> 			</marshal> 
> {noformat}
> It will print:
> Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${jaxb.prettyPrint}' is not a valid value for 'boolean'.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira