[JBoss JIRA] Created: (RF-3619) org.ajax4jsf.webapp.WebXml doesn't respect namespaces within the web.xml
by Gena Batalski (JIRA)
org.ajax4jsf.webapp.WebXml doesn't respect namespaces within the web.xml
------------------------------------------------------------------------
Key: RF-3619
URL: http://jira.jboss.com/jira/browse/RF-3619
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0, 3.2.0.SR1, 3.2.1, 3.2.2
Environment: richfaces from SVN, SAP Netweaver CE 7.1 JEE
Reporter: Gena Batalski
Hello,
the SAP deployer checks the web.xml for errors and enriches the file with xml namespaces. The deployed file is also correct, but it can not be correctly recognised by org.ajax4jsf.webapp.WebXml. The line
dig.setNamespaceAware(false)
in init(..) method of WebXml prevents richfaces from correct parsing of web.xml in this case. I think, it could be possible to parse both flavour of web.xml, with and without namespaces, also if the usage of namespaced version is unusual.
Setting dig.setNamespaceAware(true) resolved the problem but i didn't test it on a web.xml without namespaces.
Gena
--
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
15 years, 8 months
[JBoss JIRA] Created: (RF-961) Drag'n Drop: dragValue is null, when dragging across different regions
by Maksim Kaszynski (JIRA)
Drag'n Drop: dragValue is null, when dragging across different regions
----------------------------------------------------------------------
Key: RF-961
URL: http://jira.jboss.com/jira/browse/RF-961
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Maksim Kaszynski
Assigned To: Maksim Kaszynski
Fix For: 3.2.0
On the following page, dragValue is null.
In terms of JSF concepts, everything is correct - other regions just don't get processed.
maybe, we should hack it in some way.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/drag-drop" prefix="rich"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/panel" prefix="p"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/dataTable" prefix="t"%>
<html>
<head>
</head>
<body>
<f:view>
<center><rich:dragIndicator id="indicator"></rich:dragIndicator>
<h:form>
<h:panelGrid styleClass="generalTable">
<a4j:region>
<p:panel>
<t:dataTable id="iItems" value="#{PjCreationDataBean.initItems}" var="item">
<t:column>
<a4j:outputPanel style="border:1px;">
<rich:dragSupport dragType="item" dragIndicator=":indicator"
dragValue="#{item}">
<rich:dndParam name="label" value="#{item.item}" />
</rich:dragSupport>
<h:outputText value="#{item.item}" />
</a4j:outputPanel>
</t:column>
</t:dataTable>
</p:panel>
</a4j:region>
<a4j:region>
<p:panel>
<rich:dropSupport acceptedTypes="item"
dropListener="#{WeaponDropListener.processDrop}"
dropValue="#{PjCreationDataBean.selectedItems}" reRender="sItems">
</rich:dropSupport>
<t:dataTable id="sItems"
value="#{PjCreationDataBean.selectedItems}" var="item">
<t:column>
<a4j:outputPanel style="border:1px;">
<h:outputText value="#{item.item}" />
</a4j:outputPanel>
</t:column>
</t:dataTable>
</p:panel>
</a4j:region>
</h:panelGrid>
<center>
</h:form>
</f:view>
</body>
</html>
public class WeaponDropListener implements DropListener{
public void processDrop(DropEvent event) {
Dropzone dropZone = (Dropzone) event.getComponent();
ArrayList<InitItem> selected = (ArrayList) dropZone.getDropValue();
System.err.print(selected.size());
Object ob = event.getDragValue();
System.out.println("DragValue " + event.getDragValue());
System.out.println("DropValue " + event.getDropValue());
if(ob == null)
System.err.print("objeto nulo");
selected.add((InitItem) event.getDragValue());
}
}
--
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
15 years, 8 months
[JBoss JIRA] Created: (RF-4520) OrderingList causes a "invalid value expression"
by wert wert (JIRA)
OrderingList causes a "invalid value expression"
------------------------------------------------
Key: RF-4520
URL: https://jira.jboss.org/jira/browse/RF-4520
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Windows XP SP2, Vista SP1, Eclipse 3.3 (Europe), Sun JDK 1.5.015, IBM JVM (WebSphere 6.1)
Reporter: wert wert
ManagedBean contains List of Objects
- Rendering: IO
- Extend with a4j:support works on client side
- server side a "invalid value expression" is produced
Affected class: UIOrderingBaseComponent
Affected method: isSuitableValue(Object value, Object restoredObject) (Line: 76)
return ((Collection) value).contains(restoredObject);
value contains specified Objects whearas restoredObject is a java.lang.String. So the string is compared against the object instead of the opposite!
Internally the following code is proceeded: restoredObject.equals(object)
Solutions:
- convert the Collection to a Array
- work with HashMaps whereas the key is represented by the string of the object (myObject.toString)
--
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
15 years, 8 months
[JBoss JIRA] Created: (RF-4543) calendar loses its value in an Ajax request inside an ajax:include but outside the updated region
by Aimar Tellitu (JIRA)
calendar loses its value in an Ajax request inside an ajax:include but outside the updated region
-------------------------------------------------------------------------------------------------
Key: RF-4543
URL: https://jira.jboss.org/jira/browse/RF-4543
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: JDK 1.6.0_05, JBoss AS 4.2.1, Mojarra 1.2_09-b02-FCS, RichFaces 3.2.2
Reporter: Aimar Tellitu
rich:calendar loses its value in an Ajax request if it is inside an ajax:include, but outside the updated region. This problem is not present in previous versions of RichFaces like the 3.2.1, 3.2.0, ...
Here is a very simple example. First, you choose any date in the rich:calendar, and then you click the selectBooleanCheckbox.
The main page, home.xhtml:
<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:a4j="http://richfaces.org/a4j">
<f:view>
<head></head>
<body>
<h:outputText value="with a4j:include"/>
<a4j:include id="homepage" viewId="/homepage.xhtml" />
</body>
</f:view>
</html>
And the included template, homepage.xhtml:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
<body>
<ui:composition>
<h:form>
<rich:calendar value="#{test.date}" popup="true" />
<a4j:region>
<h:selectBooleanCheckbox value="#{test.check}">
<a4j:support event="onclick"/>
</h:selectBooleanCheckbox>
</a4j:region>
</h:form>
</ui:composition>
</body></html>
This problem is only happening if the rich:calendar is inside an <a4j:include> and outside the region that is updated.
--
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
15 years, 8 months