You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Joris Vanleene (JIRA)" <ji...@apache.org> on 2013/09/09 10:48:52 UTC

[jira] [Commented] (TAP5-2176) SymbolBeanFactoryPostProcessor breaks property placeholder in spring when using default values

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

Joris Vanleene commented on TAP5-2176:
--------------------------------------

If I switch to     
   <context-param>
    <param-name>tapestry.use-external-spring-context</param-name>
    <param-value>true</param-value>
    </context-param>

and use the 
    <listener>
  		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>

Then I do not have the problem.
                
> SymbolBeanFactoryPostProcessor breaks property placeholder in spring when using default values
> ----------------------------------------------------------------------------------------------
>
>                 Key: TAP5-2176
>                 URL: https://issues.apache.org/jira/browse/TAP5-2176
>             Project: Tapestry 5
>          Issue Type: Bug
>            Reporter: Joris Vanleene
>
> When a property used in a spring config xml has a default value tapestry will set this as the value of the property, then the spring property placeholder will run but he will not replace the property with the correct value from a properties file because it is already set by tapestry with the default value!
> Tapestry Spring Module SymbolBeanFactoryPostProcessor should only touch properties that start with 'tapestry.'

--
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