[JBoss JIRA] Created: (RF-4560) numeric character reference being unescaped (Maybe in TidyParser?)
by David Waters (JIRA)
numeric character reference being unescaped (Maybe in TidyParser?)
------------------------------------------------------------------
Key: RF-4560
URL: https://jira.jboss.org/jira/browse/RF-4560
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Windows XP, Sun Java 1.6, Tomcat 6, MyFaces 1.2.3, Tomahawk 1.1.6
Reporter: David Waters
Numeric character reference are being resolved and the character they represent is being sent to the client instead of Numeric Character reference.
With the parser turned off for regular requests, the following code works correctly on the first render but fails on the ajax update
[web.xml]
...
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<!-- Only filter on ajax request not every request http://javablog.be/java/fix-your-richfaces-ajax-performance-problems/-->
<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>
</filter>
...
[END]
[TEST PAGE]
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:view>
<?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" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<head>
</head>
<body>
<h:form id="Frm1">
<a4j:outputPanel id="panel">
<t:outputText id="textOut" value="•" escape="false"/>
<a4j:commandButton reRender="panel"/>
</a4j:outputPanel>
</h:form>
</body>
</html>
</f:view>
[END]
[Network Trace for full request, response]
...
<span id="Frm1:panel">
<span id="Frm1:textOut">
•
</span>
<input id="Frm1:j_id_jsp_388183768_4" name="Frm1:j_id_jsp_388183768_4" onclick="A4J.AJAX.Submit('j_id_jsp_388183768_0','Frm1',event,{'parameters':{'Frm1:j_id_jsp_388183768_4':'Frm1:j_id_jsp_388183768_4'} ,'actionUrl':'/Coverzone/test/testAjax.jsf'} );return false;" type="button" />
</span>
...
[END]
[Network Trace for Ajax response]
...
<span id="Frm1:panel">
<span id="Frm1:textOut">
</span>
<input id="Frm1:j_id_jsp_388183768_4" name="Frm1:j_id_jsp_388183768_4" onclick="A4J.AJAX.Submit('j_id_jsp_388183768_0','Frm1',event,{'parameters':{'Frm1:j_id_jsp_388183768_4':'Frm1:j_id_jsp_388183768_4'} ,'actionUrl':'/Coverzone/test/testAjax.jsf'} );return false;" type="button" />
</span>
...
[END]
NOTE: the output of Frm1:textOut in first response is • in the ajax response this is the char(149).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[JBoss JIRA] Created: (RF-5186) In the ExtendedDataTable, when you order by a column, modifing the original order, the selection doesn´t work correctly
by Laura Romero Brox (JIRA)
In the ExtendedDataTable, when you order by a column, modifing the original order, the selection doesn´t work correctly
-----------------------------------------------------------------------------------------------------------------------
Key: RF-5186
URL: https://jira.jboss.org/jira/browse/RF-5186
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Eclipse 3.4.0, jboss-4.2.2.GA, jboss-seam-2.0.2.SP1, IE7
Reporter: Laura Romero Brox
Fix For: 3.2.2
In the ExtendedDataTable, when you order by a column, modifing the original order, the selection doesn´t work correctly. The list in the page is different than in server. The component returns an index that isn´t good in server list.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[JBoss JIRA] Created: (RF-5501) ContextMenu: ajax buzzes in case limitToList="true" and reRender is not defined.
by Alexander Dubovsky (JIRA)
ContextMenu: ajax buzzes in case limitToList="true" and reRender is not defined.
--------------------------------------------------------------------------------
Key: RF-5501
URL: https://jira.jboss.org/jira/browse/RF-5501
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: 3.3.0.CR1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Source:
<a4j:status id="a4jStatusID" startText="WORK!" startStyle="color: red;"
stopText="a4j:status"></a4j:status>
<h:commandButton id="button" onclick="return false;" value="menu">
<rich:contextMenu event="oncontextmenu" attached="true"
submitMode="ajax">
<rich:menuItem value="cut" limitToList="true"
actionListener="#{custom.processCutElement}">
</rich:menuItem>
</rich:contextMenu>
</h:commandButton>
# Open page
# Call context menu and click menu item
Result: status buzzes
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[JBoss JIRA] Created: (RF-6338) PanelMenu does not work in 3.3.1.SNAPSHOT
by Alexander Dubovsky (JIRA)
PanelMenu does not work in 3.3.1.SNAPSHOT
-----------------------------------------
Key: RF-6338
URL: https://jira.jboss.org/jira/browse/RF-6338
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: 3.3.1.SNAPSHOT
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Priority: Critical
Source:
<h:form>
<rich:panelMenu>
<rich:panelMenuGroup label="group 1">
<rich:panelMenuItem label="it 1.1" action="#{cComp.test}" />
<rich:panelMenuItem label="it 1.2" action="#{cComp.test}" />
<rich:panelMenuItem label="it 1.3" action="#{cComp.test}" />
</rich:panelMenuGroup>
<rich:panelMenuGroup label="group 2">
<rich:panelMenuItem label="it 2.1" action="#{cComp.test}" />
<rich:panelMenuItem label="it 2.2" action="#{cComp.test}" />
<rich:panelMenuItem label="it 2.3" action="#{cComp.test}" />
</rich:panelMenuGroup>
</rich:panelMenu>
</h:form>
Menu is not expanded/collapsed.
The same code was working well in 3.3.0.GA
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[JBoss JIRA] Created: (RF-3702) rich:orderingList doesn't update the correct instance when
by Zied Hamdi (JIRA)
rich:orderingList doesn't update the correct instance when
-----------------------------------------------------------
Key: RF-3702
URL: http://jira.jboss.com/jira/browse/RF-3702
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: facelets 1.1.14
Reporter: Zied Hamdi
The 'selection' attribute of 'rich:orederingList' doesn't update the binded object when in a loop (ui:repeat, a4j:repeat, h:dataTable), but the first element instead.
See the log output that demonstrates the problem:
Initialized ListHolder with : [my, first]
Initialized ListHolder with : [my, last]
Initialized ListHolder with : [my, everything]
selected set on '[my, first]'
Button clicked on '[my, last]'
<?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: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"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jstl/core">
<f:view>
<body style="margin: 0; padding: 0;">
<h:form id="mainForm">
<h:messages title="errors"/>
<ui:repeat value="#{testController.listHolders}" var="listHolder">
<rich:panel id="panel" header="#{listHolder.entries}">
<rich:orderingList id="orderingList" value="#{listHolder.entries}" var="entry"
selection="#{listHolder.selected}">
<rich:column>
<h:outputText id="outputText" value="#{entry}" />
</rich:column>
</rich:orderingList>
<h:commandButton id="button" actionListener="#{listHolder.doItLstr}"
value="do it" />
</rich:panel>
</ui:repeat>
</h:form>
</body>
</f:view>
</html>
public class TestController {
protected List<ListHolder> listHolders = new ArrayList<ListHolder>();
{
listHolders.add(new ListHolder("my first"));
listHolders.add(new ListHolder("my last"));
listHolders.add(new ListHolder("my everything"));
}
public class ListHolder {
List<String> entries = new ArrayList<String>();
Set<String> selected;
public ListHolder(String value) {
entries = Arrays.asList(value.split(" "));
System.out.println("Initialized ListHolder with : " + entries);
}
public void doItLstr(ActionEvent actionEvent) {
System.out.println("Button clicked on '" + entries + "'");
}
public List<String> getEntries() {
return entries;
}
public void setEntries(List<String> entries) {
this.entries = entries;
}
public Set<String> getSelected() {
return selected;
}
public void setSelected(Set<String> selected) {
System.out.println("selected set on '" + entries + "'");
this.selected = selected;
}
}
public List<ListHolder> getListHolders() {
return listHolders;
}
public void setListHolders(List<ListHolder> listHolders) {
this.listHolders = listHolders;
}
}
----------------------------------------- workaround attempt -----------------------------
I've tried to do a binding on each row but it doesn't work too: I have an error as if ui:repeat was performed at compile time, but I'm almost sure it is a render-time tag (it doesn't work with a h:dataTable too)
Caused by: javax.el.PropertyNotFoundException: /test/orderingList.xhtml @21,78 binding="#{listHolder.orderingList}": Target Unreachable, identifier 'listHolder' resolved to null
at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:248)
at com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:224)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:139)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months