[JBoss JIRA] (RF-12270) Restore adding resources in AJAX requests
by Tomasz Kurpios (JIRA)
Tomasz Kurpios created RF-12270:
-----------------------------------
Summary: Restore adding resources in AJAX requests
Key: RF-12270
URL: https://issues.jboss.org/browse/RF-12270
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 4.2.2.Final
Reporter: Tomasz Kurpios
Quoting the extract from official documentation (3.5 Restrictions):
??JSF 2 does not allow resources such as JavaScript or Cascading Style Sheets (CSS) to be added if the element requiring the resource is not initially present in the JSF tree. As such, components added to the tree via Ajax must have any required resources already loaded. In RichFaces, any components added to the JSF tree should have components with corresponding resources included on the main page initially. To facilitate this, components can use the rendered="false" setting to not be rendered on the page.??
Setting rendered="false" is OK when components are in the tree. However, if there are lots of components on a single view, for performance reasons some parts might be excluded by means of <c:if> or <c:choose> tags.
That's at least what we did in 3.3.3. It worked fine back then. However, it won't work in RichFaces 4.*. We're in the middle of migration to RichFaces 4.* and it would be great to know if there are any plans to restore this functionality.
--
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] Created: (RF-11004) Slider: JavaScript error with f:ajax
by Pavol Pitonak (JIRA)
Slider: JavaScript error with f:ajax
------------------------------------
Key: RF-11004
URL: https://issues.jboss.org/browse/RF-11004
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-input
Affects Versions: 4.0.0.Final
Environment: RichFaces 4.1.0-SNAPSHOT
Metamer 4.1.0-SNAPSHOT r.22511
Mojarra 2.0.3-b05
JBoss AS 6.0.0.Final
OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
Chrome 11.0.696.71 @ Linux i686
Reporter: Pavol Pitonak
# deploy Metamer and open http://localhost:8080/metamer/faces/components/richInputNumberSlider/fAja...
# slide on slider
result:
*Uncaught ReferenceError: mojarra is not defined* fAjax.xhtml:668
*RichFaces.ui.InputNumberSlider.onchange* fAjax.xhtml:668
*richfaces.ui.InputNumberSlider.richfaces.BaseComponent.extendClass.__setValue* inputNumberSlider.js:112
*richfaces.ui.InputNumberSlider.richfaces.BaseComponent.extendClass.__mousemoveHandler* inputNumberSlider.js:192
*richfaces.ui.InputNumberSlider.richfaces.BaseComponent.extendClass.__mousedownHandler* inputNumberSlider.js:179
*jQuery.jQuery.extend.proxy.proxy* jquery.js:768
*jQuery.event.handle* jquery.js:2562
*jQuery.event.add.elemData.handle.eventHandle* jquery.js:2201
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years
[JBoss JIRA] (RF-11568) Collapsible panel: toggleListener doesn't work inside iteration components
by Pavol Pitonak (Created) (JIRA)
Collapsible panel: toggleListener doesn't work inside iteration components
--------------------------------------------------------------------------
Key: RF-11568
URL: https://issues.jboss.org/browse/RF-11568
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-panels-layout-themes
Affects Versions: 4.1.0.Milestone3
Environment: RichFaces 4.1.0-SNAPSHOT
Metamer 4.1.0-SNAPSHOT r.22819
JBoss Web 7.0.2.Final (Mojarra 2.1.3)
OpenJDK Runtime Environment 1.6.0_22-b22 @ Linux
Chrome 14.0.835.202 @ Linux i686, Firefox 7.0.1
Reporter: Pavol Pitonak
# deploy Metamer and open http://localhost:8080/metamer/faces/components/richCollapsiblePanel/simpl...
# collapse the panel and verify that string "* panel collapsed" appeared in the page header
# expand the panel and verify that string "* panel expanded" appeared in the page header
# open the same page in iteration component (e.g. richList)
# collapse the panel and verify that string "* panel collapsed" appeared in the page header
# expand the panel and verify that string "* panel expanded" appeared in the page header
result:
listener is called only for collapsed panel, not for expanded panel
the component behaves wrong only in following templates:
* a4jRepeat
* richCollapsibleSubTable
* richDataGrid
* richDataTable
* richExtendedDataTable
* richList
--
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-12274) Datatable (rich:dataTable) is not populated with data
by Sagi Kovaliov (JIRA)
Sagi Kovaliov created RF-12274:
----------------------------------
Summary: Datatable (rich:dataTable) is not populated with data
Key: RF-12274
URL: https://issues.jboss.org/browse/RF-12274
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-tables
Affects Versions: 4.2.1.Final
Environment: Windows 7 64bit
Tomcat 7.0.26
myfaces-core-2.0.13
richfaces 4.2.1
JRE 6
MySQL Server 5.5
mysql-connector-java-5.1.18
Reporter: Sagi Kovaliov
Hello,
When I use the following BeanClass and XHTML page, Datatable is not populated with data, despite the method getAll() returns ResultSet that contains customer names.
To demonstrate this, I've added a line System.out.println(crs.getString("Name")) that iterates through the ResultSet and prints customer names from customer table before the ResultSet is being returned to t:dataTable component.
It's important to mention, that once I change <rich:datatable> to <h:datatable>, I do get the populated rows in the table.
This is Tomcat log that ilustrates that the resultset contains data:
..........
*******************************************************************
*** WARNING: Apache MyFaces-2 is running in DEVELOPMENT mode. ***
*** ^^^^^^^^^^^ ***
*** Do NOT deploy to your live server(s) without changing this. ***
*** See Application#getProjectStage() for more information. ***
*******************************************************************
29/03/2012 22:19:57 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
29/03/2012 22:19:57 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
29/03/2012 22:19:57 org.apache.catalina.startup.Catalina start
INFO: Server startup in 4706 ms
29/03/2012 22:19:58 org.apache.myfaces.util.ExternalSpecifications isUnifiedELAvailable
INFO: MyFaces Unified EL support enabled
Start of Debug
William Dupont
William Dupont
End of Debug
This is the ManagedBean:
package com.corejsf;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.annotation.Resource;
import javax.faces.bean.*;
import javax.sql.DataSource;
import javax.sql.rowset.CachedRowSet;
@ManagedBean
@RequestScoped
public class CustomerBean {
@Resource(name="jdbc/Sufa") private DataSource ds;
public ResultSet getAll() throws SQLException {
Connection conn = ds.getConnection();
try {
Statement stmt = conn.createStatement();
ResultSet result = stmt.executeQuery("SELECT * FROM customers");
CachedRowSet crs = new com.sun.rowset.CachedRowSetImpl();
crs.populate(result);
System.out.println("Start of Debug");
while(crs.next()) {
System.out.println(crs.getString("Name"));
}
System.out.println("End of Debug");
return crs;
} finally {
conn.close();
}
}
}
This is xhtml page:
<?xml version="1.0" encoding="UTF-8"?>
<!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:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>
<h:form>
<rich:dataTable value="#{customerBean.all}" var="customer">
<rich:column>
<f:facet name="header">#{msgs.nameHeader}</f:facet>
#{customer.Name}
</rich:column>
</rich:dataTable>
</h:form>
</h:body>
</html>
Thanks a lot
Sagi
--
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