Announcement Announcement Module
Collapse
No announcement yet.
<set name="var" value="expression" /> not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <set name="var" value="expression" /> not working

    Hi,

    I have the following code and two out of three are working.

    Code:
    	<view-state id="view">
    		<transition on="poll">
    			<set name="requestScope.message" value="new java.util.Date()" />
    		</transition>
    		<transition on="start">
    			<set name="requestScope.message" value="'Starting...'" />
    		</transition>
    		<transition on="stop">
    			<set name="requestScope.message" value="'Stopped...'" />
    		</transition>
    	</view-state>
    Both the 'Starting...' and 'Stopped...' are working, but the new java.util.Date() is not.

    The software is deployed with PrimeFaces 3.4 | PrimeFaces Theme 1.0.8 | Mojarra 2.1.13 | Spring Web Flow 2.3.1RELEASE | Spring Framework + Security 3.1.2RELEASE | WebLogic 10.3.4.

    The response for the java.util.Date() version is simply:

    Code:
    <?xml version='1.0' encoding='UTF-8'?>
    <partial-response><changes><update id="j_idt11:content"><![CDATA[<div id="j_idt11:content" class="notice"><label for="j_idt11:message" class="large">
    Current Time: </label>
    		<hr /><span id="j_idt11:message" class="large alt"></span></div>]]></update><update id="javax.faces.ViewState"><![CDATA[e1s1]]></update></changes></partial-response>
    For the others it is:

    Code:
    <?xml version='1.0' encoding='UTF-8'?>
    <partial-response><changes><update id="j_idt11:content"><![CDATA[<div id="j_idt11:content" class="notice"><label for="j_idt11:message" class="large">
    Current Time: </label>
    		<hr /><span id="j_idt11:message" class="large alt">Stopped...</span></div>]]></update><update id="javax.faces.ViewState"><![CDATA[e1s1]]></update></changes></partial-response>
    Does anyone know if there is something that I need to enable to prevent some kind of filtering of these values?

    Thanks,
    Stuart
Working...
X