[JBoss JIRA] Created: (RF-1089) a4j:commandButton oncomplete attribute
by First Last (JIRA)
a4j:commandButton oncomplete attribute
--------------------------------------
Key: RF-1089
URL: http://jira.jboss.com/jira/browse/RF-1089
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.2
Environment: XP32, JBoss 4.2.1GA
Reporter: First Last
Using 3.1.2, the following sample does not re-enable the button upon completion of the action.
<h:form id="form">
<a4j:commandButton id="cbutton" action="director.rollCamera"
onclick="this.disabled=true"
oncomplete="this.disabled=false" />
</h:form>
Whereas the following sample is able to re-enable the button upon completion of the action. It seems the oncomplete attribute has problem obtaining a reference of the command button object when using the keyword, 'this' .
<h:form id="form">
<a4j:commandButton id="cbutton" action="director.rollCamera"
onclick="this.disabled=true"
oncomplete="document.getElementById('form:cbutton').disabled=false" />
</h:form>
--
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-1057) Scrollable Data Table styles merge
by Yurii (JIRA)
Scrollable Data Table styles merge
----------------------------------
Key: RF-1057
URL: http://jira.jboss.com/jira/browse/RF-1057
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Environment: Windows XP Professional SP2
jdk 1.5.0_09
RichFaces 3.1.0
JBoss 4.2.0.GA
MyEclipse 5.5.1 GA
Reporter: Yurii
When specifying rowClasses for rich:scrollableDataTable, without specifying selectedClass and activeClass, nothing happens when selecting a row(its color isn't changing). When no rowClasses, selectedClass , activeClass is specified, everything is set by default(when selecting a row, its color changes).
Seems logically that: if user redefines class for rowClasses, it should NOT affect default classes for selected and active rows, and vice versa. And if user redefines only font-size in rowClasses, all other parameters should be just like in default class for rows.
--
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-1048) datascroller: improvement in scroller after the table changes
by Ilya Shaikovsky (JIRA)
datascroller: improvement in scroller after the table changes
-------------------------------------------------------------
Key: RF-1048
URL: http://jira.jboss.com/jira/browse/RF-1048
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.1
Reporter: Ilya Shaikovsky
Assigned To: Maksim Kaszynski
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5" bgcolor="black" rowKeyVar="rowKey" binding="#{capitalsBean.table}" id="table">
<rich:column>
<a4j:outputPanel id="row1" layout="none">
<h:inputText value="#{cap.name}" rendered="#{cap.checked}" id="textrow1"></h:inputText>
<h:outputText value="#{cap.name}" rendered="#{not cap.checked}" id="outrow1"></h:outputText>
</a4j:outputPanel>
</rich:column>
<rich:column>
<a4j:outputPanel id="row2" layout="none">
<h:inputText value="#{cap.state}" rendered="#{cap.checked}" id="textrow2"></h:inputText>
<h:outputText value="#{cap.state}" rendered="#{not cap.checked}" id="outrow2">
<rich:toolTip>
<h:outputText value="#{cap.timeZone}"></h:outputText>
</rich:toolTip>
</h:outputText>
</a4j:outputPanel>
</rich:column>
<ui:remove>
<rich:column>
<h:selectBooleanCheckbox value="#{cap.checked}">
<a4j:support event="onclick" reRender="textrow1,outrow1,textrow2,outrow2">
<a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"></a4j:ajaxListener>
</a4j:support>
</h:selectBooleanCheckbox>
</rich:column>
</ui:remove>
<rich:column>
<h:commandButton action="#{capitalsBean.delete}" value="delete" reRender="table,scroller"/>
</rich:column>
<f:facet name="footer">
<rich:datascroller ajaxSingle="false" id="scroller"></rich:datascroller>
</f:facet>
</rich:dataTable>
On the last table page I have one row. After It deletion - table remains stays on the last page. So no elements but the only scroller is rendered. As I think scroller should automatically be switched to last-1 row and stop renders last page link at all.
--
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-932) ModalPanel: js error activating by oncomplete
by Nick Belaevski (JIRA)
ModalPanel: js error activating by oncomplete
---------------------------------------------
Key: RF-932
URL: http://jira.jboss.com/jira/browse/RF-932
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Environment: IE7
Reporter: Nick Belaevski
Assigned To: Pavel Yaschenko
Fix For: 3.2.0
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ 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/rich" prefix="rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function show() {
alert("Showing Model Dialog");
Richfaces.showModalPanel('msgPanel')
}
</script>
</head>
<body>
<f:view>
<a4j:status>
<f:facet name="start">
<f:verbatim><span class="loading">Working..</span></f:verbatim>
</f:facet>
</a4j:status>
<rich:modalPanel id="msgPanel" width="200" height="200">
<f:facet name="header">
<h:outputText value="Selected Message"/>
</f:facet>
<h:panelGroup id="msgPanel1">
<h:outputText value="#{testBean.selected}"/>
<button type="button" onclick="Richfaces.hideModalPanel('msgPanel')">Close</button>
</h:panelGroup>
</rich:modalPanel>
<h:form>
<rich:dataTable id="msgList" binding="#{testBean.table}" width="97%" value="#{testBean.messages}" var="msg">
<f:facet name="header">
<rich:columnGroup>
<h:column>
<h:outputText styleClass="headerText" value="Message"/>
</h:column>
</rich:columnGroup>
</f:facet>
<h:column>
<a4j:commandLink action="#{testBean.select}" value="#{msg}" reRender="msgPanel"
oncomplete="show();"/>
</h:column>
</rich:dataTable>
</h:form>
</f:view>
</body>
</html>
click link, JS error occurs: panel HTML element is found, but modalPanel property doesn't exist
--
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