[JBoss JIRA] Created: (RF-1250) scrollableDataTable onchangeselection event never called
by David Steinkopff (JIRA)
scrollableDataTable onchangeselection event never called
--------------------------------------------------------
Key: RF-1250
URL: http://jira.jboss.com/jira/browse/RF-1250
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.2
Reporter: David Steinkopff
<rich:scrollableDataTable
width="100%" height="240px"
value="#{controller.list}" var="element"
selection="#{controller.selection}"
rendered="#{not empty controller.list}">
<a4j:support event="onchangeselection" action="#{controller.action}" />
...
</rich:scrollableDataTable>
In this example my controller.action method will be never called.
<rich:scrollableDataTable
width="100%" height="240px"
value="#{controller.list}" var="element"
selection="#{controller.selection}"
rendered="#{not empty controller.list}">
<a4j:support event="onRowClick" action="#{controller.action}"/>
...
</rich:scrollableDataTable>
By this example all will work fine, but with the limitation that keyboard only change events haven´t a effect in my application.
--
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
18 years, 3 months
[JBoss JIRA] Created: (RF-1441) a4j:push: JS error.
by Ilya Shaikovsky (JIRA)
a4j:push: JS error.
-------------------
Key: RF-1441
URL: http://jira.jboss.com/jira/browse/RF-1441
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
Fix For: 3.2.0
<a4j:form>
<a4j:region>
<a4j:push reRender="msg" eventProducer="#{pushBean.addListener}" interval="2000"/>
</a4j:region>
<a4j:outputPanel id="msg" >
<h:outputText value="#{pushBean.date}">
<f:convertDateTime type="time"/>
</h:outputText>
</a4j:outputPanel>
<a4j:commandButton value="Push!!" action="#{pushBean.push}" ajaxSingle="true"/>
</a4j:form>
package demo;
import java.util.Date;
import java.util.EventListener;
import java.util.EventObject;
import org.ajax4jsf.event.PushEventListener;
/**
*
* @author Administrator
*/
public class PushBean {
/** Creates a new instance of TheBean */
public PushBean() {
}
private Date date;
private PushEventListener listener = new MyPushEventListener();
public void addListener(EventListener listener) {
synchronized (listener) {
if (this.listener != listener) {
this.listener = (PushEventListener) listener;
}
}
}
public Date getDate() {
return new Date();
}
public void push() {
synchronized (this.listener) {
this.listener.onEvent(new EventObject(this));
}
}
}
class MyPushEventListener implements PushEventListener {
public void onEvent(EventObject evt) {
System.out.println(evt.getSource());
//DO SOME ACTION IN HERE
}
}
check that FireBug is disabled. click on the push button. JS error appears.
--
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
18 years, 3 months
[JBoss JIRA] Created: (RF-1372) Add checkbox tree example
by nayan j (JIRA)
Add checkbox tree example
--------------------------
Key: RF-1372
URL: http://jira.jboss.com/jira/browse/RF-1372
Project: RichFaces
Issue Type: Task
Reporter: nayan j
Fix For: Future Versions
Creating a rich:tree with checkbox at each node is bit difference from creating a regular tree and poses new challenges. I request you to add an example for it.
Here is a list of challenges that make this use-case different:
1. Requirements to use a:support inside treeNode to handle click events (e.g. selecting nodes in subtree of selected checkbox or unselecting parents of a node when checkbox is unchecked).
2. Alignment issues that originate from usage of checkbox and text in different font-sizes when used together in treeNode.
3. Default mouse-over effects of rich:tree components makes the tree look ugly as treeNode now comprises of two parts. It is not clear which css style needs to be overridden to change these effects.
4. It is not clear when events get fired due to clicks at different locations in the tree. It will be nice if the example could show how to turn off these events if desired by the developer.
There are several posts in richfaces forum discussing issues with using checkbox tree.
--
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
18 years, 3 months