[JBoss JIRA] Created: (RF-3932) Ajax buzz if try to reRender pickList in modalPanel.
by Alexander Dubovsky (JIRA)
Ajax buzz if try to reRender pickList in modalPanel.
----------------------------------------------------
Key: RF-3932
URL: https://jira.jboss.org/jira/browse/RF-3932
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: 3.2.2.BETA1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Source:
<rich:modalPanel id="modalPanel2ID" autosized="true" resizeable="false">
<br />
<h:inputText value="input"></h:inputText>
<br />
<h:outputLink onclick="Richfaces.hideModalPanel('modalPanel2ID');return false;" ><f:verbatim>Close</f:verbatim></h:outputLink>
<rich:pickList id="pickListID" >
<f:selectItem itemValue="selectItem 0" itemLabel="selectItem 0" />
<f:selectItem itemValue="selectItem 1" itemLabel="selectItem 1" />
<f:selectItem itemValue="selectItem 2" itemLabel="selectItem 2" />
</rich:pickList>
<br />
<a4j:commandButton reRender="pickListID" value="refresh"></a4j:commandButton>
</rich:modalPanel>
# Open modalPanel (see source code above)
# Click "refresh" button
Result: ajax buzz
--
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
17 years, 5 months
[JBoss JIRA] Created: (RF-3833) <a4j:support> does not rerender specified component for newly added rows in a datatable
by Tareq Nabeel (JIRA)
<a4j:support> does not rerender specified component for newly added rows in a datatable
---------------------------------------------------------------------------------------
Key: RF-3833
URL: http://jira.jboss.com/jira/browse/RF-3833
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JBoss 4.2.2 / Seam 2.0.2 / RichFaces 3.2.1 / Facelets 1.1.14
Reporter: Tareq Nabeel
When page is loaded initially and page size is 2, clicking on table rows causes <h:outputText id="myText"> to rerender correctly.
However, when page size is increased to 4, clicking on the added rows (3 and 4) does not rerender "myText". Clicking on rows 1 and 2 still updates "myText" correctly.
<a4j:log> output for good rows clicks:
Response content:
<body>
<span id="text">event 1</span>
<meta name="Ajax-Update-Ids" content="text" />
</body>
Message: Find <meta name='Ajax-Update-Ids' content='text'>
<a4j:log> output for bad rows clicks:
Response content:
<body> does not contain the information above but <head> section contains
<meta name="Ajax-Update-Ids" content="" />
Message: "no information in response about elements to replace"
Here's the code:
====================================================================
package com.jdsu.ntcems.webapp.event.action;
import java.util.ArrayList;
import java.util.List;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
import javax.faces.model.SelectItem;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Out;
@Name("testEventList")
public class TestEventList {
private DataModel eventsModel = new ListDataModel();
private int pageSize = 2;
private List<String> events = new ArrayList<String>();
@In(required = false)
@Out(scope = ScopeType.PAGE, required = false)
private Integer rowKeyVar;
public TestEventList() {
events.add("event 1");
events.add("event 2");
events.add("event 3");
events.add("event 4");
events.add("event 5");
events.add("event 6");
}
public List<SelectItem> getPageSizes() {
List<SelectItem> pageSizeOptions = new ArrayList<SelectItem>();
pageSizeOptions.add(new SelectItem(new Integer(2), "2"));
pageSizeOptions.add(new SelectItem(new Integer(4), "4"));
pageSizeOptions.add(new SelectItem(new Integer(6), "6"));
return pageSizeOptions;
}
public DataModel getEvents() {
eventsModel.setWrappedData(events.subList(0, pageSize));
return eventsModel;
}
public String getSelectedEvent() {
if (rowKeyVar==null) {
rowKeyVar = 0;
}
eventsModel.setRowIndex(this.rowKeyVar.intValue());
return (String) eventsModel.getRowData();
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public void noOp() {
System.out.println("********noOp() rowKeyVar="+rowKeyVar);
}
}
====================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" 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:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:s="http://jboss.com/products/seam/taglib" >
<a4j:log popup="false" level="ALL" style="width: 880px; height: 200px;"></a4j:log>
<h:form id="form">
<rich:dataTable id="table" rowKeyVar="rowKeyVar" value="#{testEventList.events}" var="event" >
<rich:column>
<f:facet name="header">
<h:outputText value="Event" />
</f:facet>
<div id="eventName">
#{event}
<a4j:support event="onclick" reRender="text" action="#{testEventList.noOp}" />
</div>
</rich:column>
</rich:dataTable>
<h:panelGrid columns="2">
<h:outputText value="Page Size:"/>
<h:selectOneMenu value="#{testEventList.pageSize}" >
<f:selectItems value="#{testEventList.pageSizes}" />
<a4j:support event="onchange" reRender="table,text" />
</h:selectOneMenu>
</h:panelGrid>
</h:form>
<h:outputText id="text" value="#{testEventList.selectedEvent}" />
</ui:composition>
--
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
17 years, 5 months
[JBoss JIRA] Created: (RF-3968) dataScroller does not work if it was defined using "for" attribute in Seam.
by Alexander Dubovsky (JIRA)
dataScroller does not work if it was defined using "for" attribute in Seam.
---------------------------------------------------------------------------
Key: RF-3968
URL: https://jira.jboss.org/jira/browse/RF-3968
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Seam 2.0.1.GA
RichFaces 3.2.2.BETA1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
DataScroller which defined using "for" attribute does not work, but DataScroller from "footer" facet works fine.
Source code:
<h:form>
<rich:panel>
<rich:dataTable id="table1" rows="1" value="#{target.children}" var="child">
<rich:column>
<rich:dataGrid id="dataGrid2" columns="5" elements="10" var="DayElement" value="#{child.elements}" title="#{child.name}">
<rich:panel>
#{DayElement.label}
</rich:panel>
<rich:panel>
<h:selectBooleanCheckbox value="#{DayElement.value}" disabled="#{!target.enableTarget.value}" />
</rich:panel>
<f:facet name="footer">
<rich:datascroller></rich:datascroller>
</f:facet>
</rich:dataGrid>
</rich:column>
</rich:dataTable>
<rich:datascroller for="table1"></rich:datascroller>
</rich:panel>
</h:form>
--
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
17 years, 5 months
[JBoss JIRA] Created: (RF-3654) tabPanel: labelWidth doesn't work in case image inside component.
by Mikhail Vitenkov (JIRA)
tabPanel: labelWidth doesn't work in case image inside component.
-----------------------------------------------------------------
Key: RF-3654
URL: http://jira.jboss.com/jira/browse/RF-3654
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.6
Environment: IE6, IE7, FF, Safari, Opera(3.1.6.CR1)
Reporter: Mikhail Vitenkov
Assigned To: Nick Belaevski
Priority: Minor
Step 1. Create tabPanel with image inside:
<rich:tabPanel...
<rich:tab id="tabTwo" label="Tab with image" disabled="#{tabPanel.disabledTab}">
<f:facet name="header">
<h:outputText value="client switchType from facet" />
</f:facet>
<h:graphicImage value="/pics/masshtaby_01.jpg" width="560" height="383"></h:graphicImage>
</rich:tab>
...
</rich:tabPanel>
Step 2. Set labelWidth="10".
Step 3. Navigate to page contained tabPanel.
Step 4. Select tab with image.
Step 5. Verify label width.
Actual behavior:
When tab isn't selected label width the same as set in labelWidth attribute.
When you select tab with image - label change it width.
--
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
17 years, 5 months
[JBoss JIRA] Created: (RF-3534) Implement resource checking functions in org.ajax4jsf.tests.AbstractAjax4JsfTestCase
by Nick Belaevski (JIRA)
Implement resource checking functions in org.ajax4jsf.tests.AbstractAjax4JsfTestCase
------------------------------------------------------------------------------------
Key: RF-3534
URL: http://jira.jboss.com/jira/browse/RF-3534
Project: RichFaces
Issue Type: Sub-task
Reporter: Nick Belaevski
1. Function to check script/style resource, returns resource context or throws IOException if error
2. Function to check image resource, returns org.ajax4jsf.resource.image.ImageInfo (invoke check() method before returning it), null if resource check is false or throws IOException if resource isn't available
3. Refactor all unit tests to use that functions
Appendix - sample resource function code:
private void checkResource(String path) throws IOException {
InternetResourceBuilder builder = ResourceBuilderImpl.getInstance();
builder.createResource(null, path);
InternetResource resource = builder.getResource(path);
assertNotNull(resource);
String uri = "http:" + resource.getUri(facesContext, null);
Page page = webClient.getPage(uri);
assertTrue(page.getWebResponse().getStatusCode() == HttpServletResponse.SC_OK);
ImageInfo info = new ImageInfo();
info.setInput(page.getWebResponse().getContentAsStream());
assertTrue(info.check());
}
--
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
17 years, 5 months