[JBoss JIRA] Created: (RF-996) aj4:support cannot be used to validate rich:calander.
by Chris Rudd (JIRA)
aj4:support cannot be used to validate rich:calander.
-----------------------------------------------------
Key: RF-996
URL: http://jira.jboss.com/jira/browse/RF-996
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Chris Rudd
The following can be used to valdiate the date entered manually, but there is not a way to validate when the date is "picked"
<rich:calendar value="#{bean.date}" enableManualInput="true">
<a4j:support event="oninputchange" reRender="..."/>
</rich:calendar>
There should be an event that is fired any time the date is changed, reguarless of the input method.
NOTE : ondateselect is not applicable as its not notification that the date was changed, it is allowing a hook to see if the date selection should occur.
--
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, 4 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, 10 months
[JBoss JIRA] Created: (RF-949) can't use parameters using menu server mode
by Ilya Shaikovsky (JIRA)
can't use parameters using menu server mode
-------------------------------------------
Key: RF-949
URL: http://jira.jboss.com/jira/browse/RF-949
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Reporter: Ilya Shaikovsky
Assigned To: Maksim Kaszynski
<rich:menuItem value="item" action="#{capitalsBean.action}" submitMode="server" reRender="test">
<f:param name="test" value="test" />
</rich:menuItem>
public String action() {
System.out.println("Action fired");
String sid=FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("test");
System.out.println(sid);
return null;
}
In ajax mode I can see in console:
Action fired
test
In server mode -
Action fired
null
--
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, 5 months