[JBoss JIRA] Created: (RF-7470) XHTML elements loaded by AJAX-request become "x:" namespace prefix
by Vlad Kravchenko (JIRA)
XHTML elements loaded by AJAX-request become "x:" namespace prefix
------------------------------------------------------------------
Key: RF-7470
URL: https://jira.jboss.org/jira/browse/RF-7470
Project: RichFaces
Issue Type: Feature Request
Components: core
Affects Versions: 3.3.0
Environment: Windows XP, Firefox 3.0.11, XPath Checker 0.4.1, Tomcat 6.0.18, JDK 1.6.14, Mojarra JSF Implementation 1.2_12-b01-FCS
Reporter: Vlad Kravchenko
We are using Richfaces in our application and test its UI with Selenium. Many test assertions are performed with XPath.
The problem is that we have to use different XPath expressions for the "same" elements before and after the Ajax-request, because the elements reloaded by the Ajax-request apper in an "x" namespace. Before the request they could be only found without specifiing any namespace.
The issue can be observed on the Richfaces Live Demo. Go to the Data Iteration / Data Grid Demo.
I am using XPath Checker Firefox plugin to get the XPath of an element.
The XPath to the price value of the first car on the first page: id('j_id355:j_id356:0:j_id357_body')/table/tbody/tr[1]/td[2]
Then I go to the next page and gets the XPath to the price value of the first car on that page: id('j_id355:j_id356:9:j_id357_body')/x:table/x:tbody/x:tr[1]/x:td[2]
You can see that table and its child elements are now in the "x" namespace.
Could you explain that behavior? Can it be altered in some way?
It would make tests using XPath more robust if the elements created by AJAX-request could be found without x: prefix.
--
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, 8 months
[JBoss JIRA] Created: (RF-7578) iframe not working in rich:tabpanel
by Ernesto Esteban (JIRA)
iframe not working in rich:tabpanel
-----------------------------------
Key: RF-7578
URL: https://jira.jboss.org/jira/browse/RF-7578
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5
Environment: Weblogic 9.2 SP3, jRockit jrrt-3.1.0-1.5.0, windows XP, Richfaces 3.1.5, JSF 1.1, IE 6.0
Reporter: Ernesto Esteban
Priority: Critical
Dear all,
I'm currently stuck with a problem concerning rich:tabpanel that holds an iframe. I have a rich:tabpanel with a tab containing an iframe. The src of the iframe is an other jsf page containing rich elements (a rich:tree or a rich:modal for example) that contain richfaces ajax elements.
When I open the tab the iframe load the content (my tree is loaded). I can browse the tree and the ajax method work fine. But if I go back to the page containing the tab then I cannot perform actions anymore. None of the ajax elements are triggered anymore... All my links are broken, nothing happens.
I did several tests and the problem occurs each time the iframe calls a page containing high level Richfaces components such as Tree or modal. If the page only contains a rich:panel for example, it works fine. It seems that as soon as the iframe contains a jsf page with ajax elements there is a conflict betwwen the pages. Do I have to surround my elements with a4j:region elements?
It looks like the request send by my first action (when I use the tree in the iframe) is conflicting with other requests...
Currently I cannot switch to an higher version of the RichFaces libraries as I have to use weblogic 9.2SP3 which is not JEE 5 compliant. I have to deal with Richfaces 3.1.5 and JSF 1.1.
Hope you can help me, thanks in advance.
Best regards,
kins.
--
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, 8 months