primefaces 3.4.1 partial response error
Posted: 09 Apr 2013, 15:34
Xhtml looks like following .Use this xhtml to notify the user when reach any condition given.
<h:body>
<link rel="stylesheet" href="../css/alertnm.css" type="text/css"/>
<script type="text/javascript" src="../js/alertnm.js"/>
<f:view>
<h:form>
<h:outputText value="#{notificationBean.strMessg}" id="outText" escape="false" styleClass="msgCls"/>
<p:poll interval="20" listener="#{notificationBean.browserNotified}" update="outText" id="notificationPoll" partialSubmit="true">
</p:poll>
<audio id="audio1" src="../img/new_notification.wav" preload="auto"></audio>
</h:form>
</f:view>
</h:body>
But I got the following exception..
<?xml version='1.0' encoding='UTF-8'?> <partial-response><error><error-name>class java.lang.IndexOutOfBoundsException</error-name><error-message><![CDATA[Index: 0, Size: 0]]></error-message></error></partial-response>
Can you please exactly tell me what cud be the reason for this error ?.....
<h:body>
<link rel="stylesheet" href="../css/alertnm.css" type="text/css"/>
<script type="text/javascript" src="../js/alertnm.js"/>
<f:view>
<h:form>
<h:outputText value="#{notificationBean.strMessg}" id="outText" escape="false" styleClass="msgCls"/>
<p:poll interval="20" listener="#{notificationBean.browserNotified}" update="outText" id="notificationPoll" partialSubmit="true">
</p:poll>
<audio id="audio1" src="../img/new_notification.wav" preload="auto"></audio>
</h:form>
</f:view>
</h:body>
But I got the following exception..
<?xml version='1.0' encoding='UTF-8'?> <partial-response><error><error-name>class java.lang.IndexOutOfBoundsException</error-name><error-message><![CDATA[Index: 0, Size: 0]]></error-message></error></partial-response>
Can you please exactly tell me what cud be the reason for this error ?.....