[JBoss JIRA] Created: (RF-4929) a4j commandLink not invoking action method in action class
by Durgesh Vasmatkar (JIRA)
a4j commandLink not invoking action method in action class
----------------------------------------------------------
Key: RF-4929
URL: https://jira.jboss.org/jira/browse/RF-4929
Project: RichFaces
Issue Type: Bug
Components: portal
Environment: Dev: Windows 9X
Reporter: Durgesh Vasmatkar
Hello,
I am using a4j commandLink in a rich:dataTable as below
<rich:dataTable value="#{callLogAction.callsLogged}" var="callLogBean">
<rich:column>
<a4j:commandLink id="lnkCallDetails" action="#{callLogAction.loadPreviousCallDetails}">
<h:outputText value="#{callLogBean.dateStamp}" />
</a4j:commandLink>
</rich:column>
</rich:dataTable>
Somehow, loadPreviousCallDetails method in action class callLogAction is not invoked.
But if i write just like below (outside rich:dataTable)
<a4j:commandLink id="lnkCallDetails" action="#{callLogAction.loadPreviousCallDetails}">
<h:outputText value="#{callLogBean.dateStamp}" />
</a4j:commandLink>
action method is invoked.
Please help !!!
Durgesh
--
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, 11 months
[JBoss JIRA] Created: (RF-3670) Modal Panel preventFocus JS function slow
by Tom Tamulewicz (JIRA)
Modal Panel preventFocus JS function slow
-----------------------------------------
Key: RF-3670
URL: http://jira.jboss.com/jira/browse/RF-3670
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5
Environment: Windows XP, Sun RI 1.2
Reporter: Tom Tamulewicz
I have a page with a 500 row table. Each row has a "delete" link that brings up a modal panel. The modal panel takes 4-5 seconds (with CPU spiked) to appear under MSIE 6 or 7. The time it takes to show up is proportional to how many rows in the table. If I have a small number, the modal panel shows quickly. The problem appears to be due to slowness in the modalPanel.js preventFocus() function, which is called from the show() function.
My test page wasn't very complicated, with a bean providing a list of 500 objects.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
<body>
<!-- The text above will not be rendered. -->
<ui:composition>
<h:form id="testForm">
<rich:modalPanel id="confirmModal" height="200" width="425" zindex="2000" resizeable="false">
<table width="100%">
<tr>
<td align="center" colspan="3">
<h:commandButton id="yes" value="yes"/>
</td>
<td align="center" colspan="3">
<h:commandButton id="no" value="no"/>
</td>
</tr>
</table>
</rich:modalPanel>
<rich:dataTable id="testTable" value="#{testList.dataList}" var="element">
<rich:column>
<h:outputText value='#{element.index}' />
</rich:column>
<rich:column>
<h:outputText value='#{element.name}' />
</rich:column>
<rich:column id="deleteObjectColumn" width="10%" sortable="false">
<a4j:commandLink value="delete" id="commandDialogLink"
onclick="Richfaces.showModalPanel('confirmModal',{width:425, top:200});"/>
</rich:column>
</rich:dataTable>
</h:form>
</ui:composition>
<!-- The text below will not be rendered. -->
</body>
</html>
--
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, 11 months
[JBoss JIRA] Created: (RF-4573) Hide of information when we use modal panel resizing
by Slava Davidovich (JIRA)
Hide of information when we use modal panel resizing
----------------------------------------------------
Key: RF-4573
URL: https://jira.jboss.org/jira/browse/RF-4573
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JBOSS AS 4.2.2 RF3.2.1 SE1.5
Reporter: Slava Davidovich
Priority: Critical
When we open resizeable modal panel using script "Richfaces.showModalPanel('testMPanel');" and resize it we expect that modal panel content scrolling appears, but it just hide data.
for example:
<rich:modalPanel id="testMPanel" width="260" height="100" resizeable="true">
<f:facet name="header">
<h:outputText value="testTitle"/>
</f:facet>
<a4j:form>
<h:panelGrid columns="1"></h:panelGrid>
<h:outputText value="test"/>
<h:outputText value="test"/>
<h:outputText value="test"/>
<h:outputText value="test"/>
<h:outputText value="test"/>
<h:outputText value="test"/>
<h:outputText value="test"/>
<h:outputText value="test"/>
</table>
<a4j:commandButton value="#{messages['No']}" styleClass="button" onclick="Richfaces.hideModalPanel('testDlg');"/>
</h:panelGrid>
</a4j:form>
</rich:modalPanel>
--
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, 11 months
[JBoss JIRA] Created: (RF-2648) Wrong place of context menu in datatable with scrollbar
by Marcin Bednarek (JIRA)
Wrong place of context menu in datatable with scrollbar
-------------------------------------------------------
Key: RF-2648
URL: http://jira.jboss.com/jira/browse/RF-2648
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: Windows Vista, Firefox 2.0.0.12
Reporter: Marcin Bednarek
I have a datatable with css scrollbar.
<rich:panel id="dirView" style="margin-left: 310px;width:830px;height:420px;position:absolute;top:65px;overflow:auto;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;">
<rich:dataTable id="lineItemTable" cellpadding="0" cellspacing="0" border="0" var="element" value="#{treeBean.folderData}">
.......
In one column I have context menu :
<rich:column style="width:580px;">
<s:div id="fileName" rendered="#{element.nodeType=='F'}">
<rich:contextMenu id="fileNameContextMenu" event="oncontextmenu" attached="true"
submitMode="ajax" hideDelay="60000">
<rich:menuItem value="History"
action="#{treeBean.setSelectedDocument(element)}"
oncomplete="Richfaces.showModalPanel('versionModalPanel');"
id="showVersion" status="statusDirView"
reRender="fileVersionModalHeader">
</rich:menuItem>
</rich:contextMenu>
<h:graphicImage value="/images/iconFile.gif">
</h:graphicImage>
<h:outputLabel value="#{element.name}">
</h:outputLabel>
</s:div>
</rich:column>
</rich:dataTable>
</rich:panel>
There are a lot of rows in the table. When I scroll down and click on column to show context menu it is shown in wrong place (near
top of the table). It looks like the scrollbar position isn't taken into consideration when calculating the position of context menu.
--
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, 11 months
[JBoss JIRA] Created: (RF-2977) Caption not rendered immediately after table element in rich:dataTable
by Peter Haldbæk (JIRA)
Caption not rendered immediately after table element in rich:dataTable
----------------------------------------------------------------------
Key: RF-2977
URL: http://jira.jboss.com/jira/browse/RF-2977
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: OS: Windows XP
Platform: JBoss AS 4.2.1.GA, Sun JDK 1.6.0_02
Reporter: Peter Haldbæk
According to the HTML 4.01 specification the CAPTION element is only permitted immediately after the TABLE start tag. When using the rich:dataTable component together with the facet:caption component a COLGROUP tag is inserted before the CAPTION tag making the html invalid.
Consider the following snippet:
<rich:dataTable id="list" var="region" value="#{regions.regions}">
<f:facet name="caption">Regions</f:facet>
<rich:column>
<f:facet name="header">Value</f:facet>
<h:outputText value="#{region.value}" />
</rich:column>
<rich:column>
<f:facet name="header">Label</f:facet>
<h:outputText value="#{region.label}" />
</rich:column>
</rich:dataTable>
Where the parameter 'regions' is a seam component containing a method getRegions returning a List of SelectItem (containing the methods getValue and getLabel).
This will result in HTML like this:
<table id="list" class="dr-table rich-table" cellspacing="0" cellpadding="0" border="0">
<colgroup span="2"/>
<caption class="dr-table-caption rich-table-caption">Regions</caption>
...
</table>
which is invalid HTML. I have seen this in earlier versions (pre 3.2.0) of RichFaces as well.
--
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, 11 months
[JBoss JIRA] Created: (RF-4473) a4j:commandButton doesn´t show messages in <h:messages> when it's an exception in the actionListener.
by Aimar Tellitu (JIRA)
a4j:commandButton doesn´t show messages in <h:messages> when it's an exception in the actionListener.
-----------------------------------------------------------------------------------------------------
Key: RF-4473
URL: https://jira.jboss.org/jira/browse/RF-4473
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 and 3.2.1
Reporter: Aimar Tellitu
a4j:commandButton doesn´t show messages in <h:messages> when it's an exception in the actionListener. But with <h:commandButton> the messages are shown.
Here is a simple example:
<h:form>
<h:commandButton value="Test with h" actionListener="#{test.throwAbortProcessingException}" />
<a4j:commandButton value="Test with a4j" actionListener="#{test.throwAbortProcessingException}" />
<a4j:outputPanel ajaxRendered="true">
<h:messages/>
</a4j:outputPanel>
</h:form>
And the code of the Managed Bean:
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.ActionEvent;
public class Test {
public void throwAbortProcessingException( ActionEvent event ) {
addMessage( event, "Message before AbortProcessingException");
throw new AbortProcessingException();
}
public void addMessage( ActionEvent event, String message ) {
FacesContext context = FacesContext.getCurrentInstance();
String clientId = event.getComponent().getClientId(context);
context.addMessage( clientId, new FacesMessage("message") );
}
}
--
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, 11 months