-
1. Re: how to reload/refresh css file after ajax/partial submit when the css is changed
pvito Dec 26, 2011 2:16 AM (in response to feuyeux)Hi, Lu Han.
I think you must not use css file for this.
Try next solution.
It is work for me.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j">
<h:head>
</h:head>
<h:body>
<a4j:jsFunction name="elTest" render="ecssText">
<a4j:param name="color" assignTo="#{ecss.color}"/>
</a4j:jsFunction>
<h:form>
<h:outputText id="ecssText" value="#{ecss.color}" style="color:#{ecss.color};"/>
<a4j:commandButton value="to red" onclick="elTest('red');" render="ecssText"/>
<a4j:commandButton value="to blue" onclick="elTest('blue');" render="ecssText"/>
</h:form>
</h:body>
</html>
Regards, Vitaliy.
-
2. Re: how to reload/refresh css file after ajax/partial submit when the css is changed
feuyeux Dec 26, 2011 10:49 AM (in response to pvito)1 of 1 people found this helpfulGood idea for me! Thanks!