[JBoss JIRA] (RF-12579) a4:status - out of memory with Jsf ui:debug tag under IE and time to time FireFox
by Jean ANDRE (JIRA)
Jean ANDRE created RF-12579:
-------------------------------
Summary: a4:status - out of memory with Jsf ui:debug tag under IE and time to time FireFox
Key: RF-12579
URL: https://issues.jboss.org/browse/RF-12579
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2.3.Final
Environment: aspectjrt-1.6.12 - bcprov-jdk14-127 - cglib-nodep-2.2.2 - cssparser-0.9.6 - guava-11.0.2 - hibernate-validator-4.2.0 - javax.faces-2.1.13 - junit-4.10 - log4j-1.2.16 - org.springframework.* -3.0.6.RELEASE - sac-1.3.jar - slf4j-api-1.6.4 - slf4j-log4j12-1.6.4 - WAS8 - RAD
Reporter: Jean ANDRE
We have a form which triggers an ajax request - We also use the tag a4j:status to report status to the end-user on ajax request.
We also use the tag ui:debug to help us in debugging.
As so long the a4j:status is not called, everything is going well. However, when an ajax request is asked, we display a waiting message. When we return back to the form, any key triggers a popup panel displaying the message "out-of memory".
Removing the jsf tag ui:debug, solve the problem.
Then, it seems that the a4j:status is conflicting with the jsf tag ui:debug.
Under IE, the error is reported as following at the function faceletsDebug, line 317.
{code}
function faceletsDebug(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600,left = 240,top = 212');"); };var faceletsOrigKeyup = document.onkeyup; document.onkeyup = function(e) { if (window.event) e = window.event; if (String.fromCharCode(e.keyCode) == 'D' & e.shiftKey & e.ctrlKey) faceletsDebug('/NestedWeb/pages/index.jsf?facelets.ui.DebugOutput=1351537421561'); else if (faceletsOrigKeyup) faceletsOrigKeyup(e); };
//]]>
</script>
{code}
The page we use as template is as following
{code}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<f:view locale="#{currentUser.locale}">
<h:head>
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="private" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en, fr" />
<title><ui:insert name="title"><h:outputText value="#{msg['common.label.application.title']}"/></ui:insert></title>
<link type="text/css" rel="stylesheet" href="#{webApplicationUtil.baseURL}css/nested.css" />
<script type="text/javascript">//<![CDATA[
function isWindows() {
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
return (re.exec(ua) != null);
}
function stopPropagation(event) {
if (isWindows()) {
window.event.cancelBubble = true;
} else {
event.stopPropagation();
}
}
//]]></script>
</h:head>
<h:body>
<!-- -->
<!-- RF 11694 workaround -->
<!-- JSF JAVASERVERFACES-2016 -->
<!-- -->
<h:outputStylesheet id="datatableEcss" library="org.richfaces" name="datatable.ecss" />
<h:outputScript id="datatableJs" library="org.richfaces" name="datatable.js" />
<h:outputStylesheet library="org.richfaces" name="accordion.ecss" />
<h:outputScript library="org.richfaces" name="accordion.js" />
<h:outputScript library="org.richfaces" name="accordionItem.js" />
<div id="body" class="body-container">
<!-- -->
<!-- H E A D E R -->
<!-- -->
<div id="header" class="header-container">
<ui:insert name="header" />
</div>
<!-- -->
<!-- B O D Y -->
<!-- -->
<div id="content" class="content">
<!-- -->
<!-- STATUS -->
<!-- -->
<a4j:status id="ajax-status"
name="ajaxStatus"
onstart="#{rich:component('messageWaiter')}.show()"
onstop="#{rich:component('messageWaiter')}.hide()"
onerror="#{rich:component('errorReporter')}.show()" />
<!-- -->
<!-- WAITER MESSAGE -->
<!-- -->
<rich:popupPanel id="messageWaiter"
modal="false"
autosized="true"
resizeable="false"
shadowDepth="3"
shadowOpacity="2"
top="250">
Please wait...
</rich:popupPanel>
<!-- -->
<!-- ERROR REPORTER -->
<!-- -->
<rich:popupPanel id="errorReporter"
modal="true"
autosized="true"
resizeable="false"
shadowDepth="3"
shadowOpacity="2"
top="250">
<f:facet name="header">
<h:outputText value="#{msg['error.application.title']}" />
</f:facet>
<a4j:outputPanel layout="block">
<p>
<h:outputText value="#{msg['error.application.message']}" />
</p>
<a4j:outputPanel styleClass="right-align" layout="block">
<!-- -->
<!-- CLOSE CMD -->
<!-- -->
<h:outputLink id="errorCloseCmd" value="#{request.contextPath}/">
<h:outputText value="#{msg['common.command.close']}" />
</h:outputLink>
</a4j:outputPanel>
</a4j:outputPanel>
</rich:popupPanel>
<!-- -->
<!-- APPLICATION CONTENT -->
<!-- -->
<ui:insert name="content" />
</div>
<!-- -->
<!-- F O O T E R -->
<!-- -->
<ui:insert name="footer" />
<p>Debug is activated...SHIFT+CTRL+d</p>
<ui:debug />
</div>
</h:body>
</f:view>
</html>
{code}
The caller is "petty standard":
{code}
<!-- -->
<!-- NEW LIST -->
<!-- -->
<a4j:commandButton id="newListCmd"
value="#{msg['common.command.new.list']}"
action="#{panelOneController.doNewList}"
render="desktopTabs,menuOpenedTabs"
status="ajaxStatus" />
{code}
Note also that the ui:debug has an issue:
ui:debug markup update causes JS infinite recursive loop
- http://java.net/jira/browse/JAVASERVERFACES-1855
- http://java.net/jira/browse/JAVASERVERFACES-2426
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (RF-12358) I have calendar component in my jsf page , when i am moving to another page and revisiting iam getting javafaces.ui.calendar is null or undefined Error
by Mahendher M (JIRA)
Mahendher M created RF-12358:
--------------------------------
Summary: I have calendar component in my jsf page , when i am moving to another page and revisiting iam getting javafaces.ui.calendar is null or undefined Error
Key: RF-12358
URL: https://issues.jboss.org/browse/RF-12358
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: component
Affects Versions: 4.2.2.Final
Reporter: Mahendher M
This is working fine at first time but if i click any button in the page and coming back to this page the calendar button is diabling and im able to see the error richfaces.ui.calender is null or undefined
<f:facet name="footer">
<rich:calendar id="activ_date" popup="#{true}" mode="ajax"
value="#{listBean.activDate}" datePattern="dd/MM/yyyy hh:mm a"
>
</rich:calendar>
</f:facet>
root cause of the problem is when the page is revisited
<script type="text/javascript" src="/myproject/javax.faces.resource/richfaces-base-component.js.jsf"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/jquery.position.js.jsf"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/richfaces-event.js.jsf"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/json-dom.js.jsf?ln=org.richfaces"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/jquery.effects.core.js.jsf?ln=org.richfaces"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/jquery.effects.highlight.js.jsf?ln=org.richfaces"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/JQuerySpinBtn.js.jsf?ln=org.richfaces"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/calendar-utils.js.jsf?ln=org.richfaces"></script>
<script type="text/javascript" src="/myproject/javax.faces.resource/calendar.js.jsf?ln=org.richfaces"></script>
<link type="text/css" rel="stylesheet" href="/myproject/rfRes/calendar.ecss.jsf?db=eAG7mShzEgAFjAIg&ln=org.richfaces" />
these javascripts are not loading
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (RF-12460) RF-11138 Tree does not invoke selectionChangeListener in popupPanel with 4.2.0 final also
by venkat kavali (JIRA)
venkat kavali created RF-12460:
----------------------------------
Summary: RF-11138 Tree does not invoke selectionChangeListener in popupPanel with 4.2.0 final also
Key: RF-12460
URL: https://issues.jboss.org/browse/RF-12460
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: examples
Affects Versions: 4.2.0.Final
Reporter: venkat kavali
Rich Tree working fine below source code. But same code applied in Popup panel, unable to get selected Item. Popup div also within same form.
Working Fine below code
<rich:tree value="#{typeList.root}" var="node" render="label2 label3"
selection="#{typeList.selectedNodes}" id="treeMul"
ajaxSubmitSelection="true" selectionType="ajax">
<rich:treeNode>
<h:outputText value="#{node}" />
</rich:treeNode>
</rich:tree>
Problem Here
<rich:popupPanel id="popup" modal="true" autosized="true"
resizeable="false" overlapEmbedObjects="true">
<f:facet name="header">
<h:outputText value="Tree View" />
</f:facet>
<f:facet name="controls">
<h:outputLink value="#"
onclick="#{rich:component('popup')}.hide(); return false;">X</h:outputLink>
</f:facet>
<rich:tree value="#{typeList.root}" var="node" render="label2 label3"
selection="#{typeList.selectedNodes}" id="treeMul"
ajaxSubmitSelection="true" selectionType="ajax">
<rich:treeNode>
<h:outputText value="#{node}" />
</rich:treeNode>
</rich:tree>
<rich:popupPanel
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (RF-12322) JQuery plugins can't be used properly with richfaces - even with resource mapping.
by Dev S (JIRA)
Dev S created RF-12322:
--------------------------
Summary: JQuery plugins can't be used properly with richfaces - even with resource mapping.
Key: RF-12322
URL: https://issues.jboss.org/browse/RF-12322
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: resource handling
Affects Versions: 4.2.2.Final
Environment: JBoss 7.1.0, Firefox
Reporter: Dev S
Attachments: rf-conflict.xhtml
I'm loading my own verison of JQuery in a template file. So it's available in all the pages of my website.
In addition, JQuery plugins are also registered in the same template file. These plugins work fine when none of richfaces components are used, but with any richfaces component, none of these loaded plugins work. Reason being, richfaces loads Jquery again and it wipes all the earlier plugins.
I tried by using resource mapping and was able to successfully load same version of Jquery from same URL. But it still overrides my plugins.
Work around does exist. See below. But this workaround depend on internal logic of richfaces which can be changed in future.
So richfaces should provide a configuration file or some other method by which resource loading can be blocked for some resources.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (RF-12589) Placeholder inside h:inputText - requires com.sun.faces.allowTextChildren=true
by Lukáš Fryč (JIRA)
Lukáš Fryč created RF-12589:
-------------------------------
Summary: Placeholder inside h:inputText - requires com.sun.faces.allowTextChildren=true
Key: RF-12589
URL: https://issues.jboss.org/browse/RF-12589
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: compatibility, component-misc
Affects Versions: 4.3.0.M3
Reporter: Lukáš Fryč
Assignee: Lukáš Fryč
Fix For: 4.3.0.M3
Following context-param is needed, otherwise Placeholder won't work inside components like {{h:inputText}}.
{code:xml}
<context-param>
<param-name>com.sun.faces.allowTextChildren</param-name>
<param-value>true</param-value>
</context-param>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (RF-12566) Calendar: Client-Error on month change because of rendering richMessages that are not in DOM
by Martin Maier (JIRA)
Martin Maier created RF-12566:
---------------------------------
Summary: Calendar: Client-Error on month change because of rendering richMessages that are not in DOM
Key: RF-12566
URL: https://issues.jboss.org/browse/RF-12566
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-input
Affects Versions: 4.2.3.Final
Environment: Java 7.0.u9, Tomcat 7.0.32, MyFaces 2.1.8, Firefox16/IE9
Reporter: Martin Maier
The Calendar component causes an client error after receiving the response of a Ajax request after changing a month or year.
The error occurs only when there are invisible (not rendered) rich:messages that exists in the view (component tree) but are not rendered to the DOM. While processing the response the RichMessage-Object can not be process because the corresponing DOM element is missing (because it was not rendered).
On other component limitRender="true" would help with this problem but this attribute is not available for rich:calendar.
In the example webapp that I attached the Ajax response looks like this:
{code}
<?xml version="1.0" encoding="utf-8"?>
<partial-response>
<changes>
<update id="form:messages1"><![CDATA[<span class="rf-msg " id="form:messages1"></span>]]></update>
<update id="form:messages2"><![CDATA[<span class="rf-msg " id="form:messages2"></span>]]></update>
<update id="javax.faces.ViewState"><![CDATA[cJRAwt92Bj7eWwztx2b2ZHGkKaccSpVwhIL9tMJ6MhLaVhQjAv7W2YDSQxvk2tqrnjKEEZbDkGQKfvdEKG8UHyQ4YDvS5+bpD7hudnPksj9CzncN83fXTZhyfIPpLQSQqk80lQ==]]></update>
<extension id="org.richfaces.extension">
<complete>
new RichFaces.ui.Message("form:messages1",{"forComponentId":"form:cal1","showSummary":false,"showDetail":true});
new RichFaces.ui.Message("form:messages2",{"forComponentId":"form:cal2","showSummary":false,"showDetail":true});</complete>
<componentData>{"form:cal1":null} </componentData>
</extension>
</changes>
</partial-response>
{code}
However, 'form:messages2' was not found in the DOM of the page and causes a
client error. This breaks the functionality of the component because it can not update its <componentData> (e.g. data of the datamodel).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (RF-12494) Resource ordering problem with the showcase
by Brian Leathem (JIRA)
Brian Leathem created RF-12494:
----------------------------------
Summary: Resource ordering problem with the showcase
Key: RF-12494
URL: https://issues.jboss.org/browse/RF-12494
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: resource handling
Reporter: Brian Leathem
Assignee: Lukáš Fryč
Priority: Blocker
Fix For: 4.3.0.Milestone2
We've picked up what looks like a bug with resource ordering in the showcase:
On building the jbas71 showcase, and deploying to a "full" JBoss AS 7.1.1.Final server I get the following error on the showcase home page:
{quote}
Uncaught ReferenceError: jQuery is not defined (packed.js:3096)
{quote}
Looking at the html page source, packed.js comes before jquery.js:
{code}
<head>
<title>RichFaces Showcase</title>
<link type="text/css" rel="stylesheet" href="/showcase/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0-SNAPSHOT/Packed/blueSky/skinning.css" />
<script type="text/javascript" src="/showcase/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0-SNAPSHOT/Packed/packed/packed.js"></script>
<script type="text/javascript" src="/showcase/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0-SNAPSHOT/Packed/jquery.js"></script>
<link type="text/css" rel="stylesheet" href="/showcase/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.3.0-SNAPSHOT/Packed/blueSky/packed/packed.css" />
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years