[ https://issues.apache.org/jira/browse/TILES-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13824946#comment-13824946 ]
Mck SembWever edited comment on TILES-574 at 11/17/13 8:41 PM: --------------------------------------------------------------- Reproduced after i added to PatternUtilTest the following… {code} @Test public void testReplacePlaceholdersEL_2() { Map<String, Attribute> attributes = new HashMap<String, Attribute>(); attributes.put( "something", new Attribute("some-${requestScope.someVariable}-other-{1}-${requestScope.someOtherVariable}.jsp")); Definition definition = new Definition("definitionName", new Attribute("template"), attributes); Definition nudef = PatternUtil .replacePlaceholders(definition, "nudef", "value0", "value1", "value2", "value3"); assertEquals("nudef", nudef.getName()); Attribute attribute = nudef.getAttribute("something"); assertEquals( "some-${requestScope.someVariable}-other-value1-${requestScope.someOtherVariable}.jsp", attribute.getValue()); } {code} was (Author: michaelsembwever): Reproduced after i added to PatternUtilTest the following… {code} @Test public void testReplacePlaceholdersEL_2() { Map<String, Attribute> attributes = new HashMap<String, Attribute>(); attributes.put("something", new Attribute("some-${requestScope.someVariable}-other-{1}-${requestScope.someOtherVariable}.jsp")); Definition definition = new Definition("definitionName", new Attribute("template"), attributes); Definition nudef = PatternUtil.replacePlaceholders(definition, "nudef", "value0", "value1", "value2", "value3"); assertEquals("nudef", nudef.getName()); Attribute attribute = nudef.getAttribute("something"); assertEquals("some-${requestScope.someVariable}-other-value1-${requestScope.someOtherVariable}.jsp", attribute.getValue()); } {code} > Tiles expressions do not work after wildcard > -------------------------------------------- > > Key: TILES-574 > URL: https://issues.apache.org/jira/browse/TILES-574 > Project: Tiles > Issue Type: Bug > Components: tiles-el, tiles-extras, tiles-servlet-wildcard > Affects Versions: 3.0.1 > Environment: Windows 7, Tomcat 6, Java 1.6, Spring 3.2.4 > Reporter: Stephen Parker > Assignee: Mck SembWever > > Using tiles 3.0.1 w. Spring 3.2.4 I am trying to use an multiple expressions > that include a wildcard: > {code} > <definition name="*.container" extends="base.container.layout"> > <put-list-attribute name="commonContainerScripts" cascade="true"> > <add-attribute > expression="resources/${buildVersion}/scripts{1}/startup${minType}.js" /> > </put-list-attribute> > </definition> > {code} > the first variable buildVersion resolves correctly. \{1} also resolves > correctly, however if minType appears after \{1}, minType resolves to > buildVersion. If I move minType in my expression to before \{1}, then it > resolves properly. -- This message was sent by Atlassian JIRA (v6.1#6144)