Note that there are some explanatory texts on larger screens.

plurals
  1. POJscolor stops working after first postback of fresh deploy, but continues to work after postback of a reload
    primarykey
    data
    text
    <p>Could anyone tell me something helpful to the following behavior in JSF with Jscolor component?</p> <p>I have got this simple xhtml code:</p> <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"&gt; &lt;h:head&gt; &lt;title&gt;RDFa test&lt;/title&gt; &lt;/h:head&gt; &lt;h:body&gt; &lt;script type="text/javascript" src="resources/js/jscolor/jscolor.js"/&gt; &lt;h:form&gt; &lt;h:commandButton class="color" value="ok"/&gt; &lt;h:commandButton value="server" type="submit" action="#{testBean.tmp}"/&gt; &lt;/h:form&gt; &lt;/h:body&gt; &lt;/html&gt; </code></pre> <p>TestBean.java:</p> <pre><code>@ManagedBean @SessionScoped public class TestBean implements Serializable { public TestBean() {} public void tmp() { System.out.println("SERVER!"); } } </code></pre> <p>If I do the first deployment and click on the "server" button, the Jscolor will go away and does not work (it is like destroying the javascript on the page)! If I then reload the page and click on the same button, the Jscolor works normally. There's no exception in server log, nor any error in Firebug JS console. How is this caused and how can I solve it?</p> <p><strong>EDIT:</strong> I am not the only developer, who straggles with this issue. Here tyhand describes exactly, what I mean: <a href="http://www.tek-tips.com/viewthread.cfm?qid=1641380" rel="nofollow">http://www.tek-tips.com/viewthread.cfm?qid=1641380</a></p> <p>COuld you please explain me what is happening and how to solve it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload