this has been done before by users who wanted similar functionality. i believe you create a wicket tag handler that preprocesses the markup as it is loaded/cached into wicket. maybe someone who has done this can elaborate more.

-Igor


On 5/14/06, Bruno Borges <[EMAIL PROTECTED]> wrote:
I don't think wicket has support for what you are asking for, but I can think in one possibility which is the use of Velocity to pre-render the html before wicket.



On 5/14/06, Yuri Magrisso <[EMAIL PROTECTED]> wrote:
Hi,

Is there a way to define a parameter in the HTML markup, which is not specific for a component and is replaced when the markup tree is rendered. Consider for example the following HTML:

<html>
<header>
<script src="" ... />
<link href="" ... />
</header>
<body>
  <table>
    <tr><td><img src="" /></td><td>Some Text A</td></tr>
    <tr><td><img src="" /></td><td>Some Text B</td></tr>
    <tr><td><img src="" /></td><td>Some Text C</td></tr>
     ....
  </table>
</body>
</html>

I want to be able to replace ${basep} without declaring a component. In the given example it seams better to just declare a component inside a repeater, but In more complex scenarios where the same text (base path) is repeated across variety of tags, which are not repetitive it seams simpler to just declare a markup variable and have it replaced without writing / declaring componets just for the purpose.

Thanks,
Yuri



--
Bruno Borges
Summa Technologies

Reply via email to