[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
16 years, 3 months
[JBoss JIRA] Created: (RF-4059) ScrollableDataTable: scrolling mixes rows
by Michal Durdina (JIRA)
ScrollableDataTable: scrolling mixes rows
-----------------------------------------
Key: RF-4059
URL: https://jira.jboss.org/jira/browse/RF-4059
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: 1.) SpringWebFlow 2.0.2, Myfaces 1.2.3, Tomcat 5.5
2.) http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.jsf (v.3.2.1.GA SVN $Revision: 7513 $)
Reporter: Michal Durdina
When using scroller either dragging the "scoller bar" or clicking "arrow down" in rich:scrollableDataTable then after fetching some pages corectly the table starts rendering rows mixing some rows from expected range and 2-5 rows from some previously loaded page. It happens in my project as well as in richfaces demopage. However, it is harder to simulate it on richfaces demo page than in my project.
See attached screenshots from richfaces demopage and from my test page - where the list was pergenerated as continuous sequence of numbers from 0-499.
Note: simulating on demopage was little bit tricky - it helps to click on "Scrollable Data Table" menu item - then different menu item i.e. "Ajax Support/Action param" menuitem and then back on "Scrollable Data Table" menu item.
Note2: I can provide a single war with my test page to simulate the bug easily if this would help.
Thank you.
Michal
--
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
16 years, 3 months