[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-3427) component control not working on oncomplete event
by Ilya Shaikovsky (JIRA)
component control not working on oncomplete event
-------------------------------------------------
Key: RF-3427
URL: http://jira.jboss.com/jira/browse/RF-3427
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
<a4j:commandButton value="Show Current Selection" reRender="table"
action="#{dataTableScrollerBean.takeSelection}" id="button">
<rich:componentControl attachTo="button" for="panel" event="oncomplete" operation="show" />
</a4j:commandButton>
doesn't works but
<a4j:commandButton value="Show Current Selection" reRender="table"
action="#{dataTableScrollerBean.takeSelection}"
oncomplete="javascript:Richfaces.showModalPanel('panel');"/>
works fine.
--
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, 8 months
[JBoss JIRA] Created: (RF-7456) rich:pickList crashing when associated with a variable for selected items
by Ruben Jorge (JIRA)
rich:pickList crashing when associated with a variable for selected items
-------------------------------------------------------------------------
Key: RF-7456
URL: https://jira.jboss.org/jira/browse/RF-7456
Project: RichFaces
Issue Type: Bug
Components: component
Affects Versions: 3.3.1
Environment: Windows Vista x64, WebLogic application server
Reporter: Ruben Jorge
rich:pickList works fine getting the option values from a variable, but if I associate it with a value (so that I can access the selected values), it crashes.
The XML code I've tried is the following:
[code]
<rich:pickList value="#{SessionBean.tempSelectedValues}" copyAllControlLabel="Add all" copyControlLabel="Add">
<f:selectItems value="#{SessionBean.tempDistincts}"/>
</rich:pickList>
[/code]
tempDistincts and tempSelectedValues are defined as:
[code]
private List<SelectItem> tempDistincts = new ArrayList<SelectItem>();
private List<String> tempSelectedValues = new ArrayList<String>();
[/code]
If I remove the "value" attribute from the pickList, the option values are presented correctly, otherwise, the following error is generated:
[code]
java.lang.NullPointerException
at org.ajax4jsf.util.ELUtils.getGenericCollectionType(ELUtils.java:144)
at org.ajax4jsf.util.ELUtils.getContainerClass(ELUtils.java:174)
at org.richfaces.component.UIPickList.getConverterForValue(UIPickList.java:93)
at org.richfaces.component.UIPickList.getConverter(UIPickList.java:72)
at org.richfaces.renderkit.PickListRenderer.encodeRows(PickListRenderer.java:245)
at org.richfaces.renderkit.PickListRenderer.encodeSourceRows(PickListRenderer.java:359)
at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:371)
at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:279)
at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:387)
at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:382)
at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:273)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:204)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:22
7)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.
java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[/code]
Also tried using 3.3.2-snapshot.
--
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