Does anyone know what aspects of the view are evaluated every time the page is invoked?  I am trying to use the following as my “view” element in the page flow:

 

<xsl:if test="true()">

            <xsl:variable name="myRandNum" select="math:random()" xmlns:math="java:java.lang.Math"/>

            <xsl:variable name="myDate">

                        <xsl:value-of select="current-dateTime()"/>

            </xsl:variable>

            <xhtml:input type="hidden" id="gen_rand_num" value="{$myRandNum}_{$myDate}"/>

</xsl:if>

 

It works, but it only seems to be evaluated once every so many hours instead of every time the page is called/invoked.  That is, the random number and date are generated then every subsequent call to the page gives the same random number and date.  Obviously, this isn’t what I want to happen, I would prefer it generate a new random number and the current time every time the page is visited/called/invoked/refreshed.  Any ideas?

 

Greg

Reply via email to