Posted by shridharns
on January 6, 2009 at 5:14 PM PST
We use jmaki extensively in our application. We use several widgets in a single
page. So we wanted to make use of CombinedResourceServlet. But when you have an
h:form in the jsf page and have the widgets loading after the closing of h:form
tag, then the combined resources loads right at the closing h:form tag, ahead of
the jmaki.js and rest of the widgets loading at a later stage. This causes the
jmaki object being not available for the initialization of the widgets' js and
hence results in exception on client.
The reason seems to be the fact that PageRenderer extends Renderer class and
closing of h:form results in calling the encodeEnd method. encodeEnd method
inserts the combined resources into the jsf response!
Anyone facing this issue?