navin mca ha scritto:
Hi Antonio,
>Oh boy your English gave me an headache!
I am really sorry for my bad english.
Following is my tile definition.
<definition name="forwardDynamicTile" path="/WEB-INF/testLayOut.jsp">
<put name="attribute1" value="attribute1Value" type="string"/>
<putList name="body">
<add value="/WEB-INF/position1.jsp" />
<!--Conditional Include-->
<add value="/WEB-INF/position3.jsp" />
<!--Conditional Include-->
<add value="/WEB-INF/position4.jsp" />
<add value="/WEB-INF/position5.jsp" />
</putList>
Here
<add value="/WEB-INF/position3.jsp" />
is the condional tile which will be added/removed at run time from the tile definition object based on some request flag.
So my query is
What will happen when there will be multiple calls for the same Tile definition for both form of the tile object(with or without position3.jsp tile)
It is a so-called race-condition: it depends what happens first. Anyway
it will lead you to a 50% chance to have it wrong. How Tiles definitions
are created depends on the DefinitionsFactory. The default one creates
definitions for their use in the whole application. Therefore if you
change it once, it will be changed forever (until you change it again :-P ).
The only way to solve your problem is to implement DefinitionsFactory or
extend FactorySet class. To configure it modify struts-config.xml this way:
**snip**
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/dimensions-config.xml"/>
<!-- all the rest -->
</plug-in>
**snap**
Ciao
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]