[JBoss JIRA] (RF-12547) showcase - rich:tabPanel - when switchType=ajax switching between tabs cause JS error
by Juraj Húska (JIRA)
Juraj Húska created RF-12547:
--------------------------------
Summary: showcase - rich:tabPanel - when switchType=ajax switching between tabs cause JS error
Key: RF-12547
URL: https://issues.jboss.org/browse/RF-12547
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-panels-layout-themes, showcase
Affects Versions: 4.3.0.M2
Environment: browser: Chrome, IE
Reporter: Juraj Húska
When switching between tabs of {{rich:tabPanel}} which has {{swithType="ajax"}} (Dynamic tabs, Selected Tab Management) following JS error is thrown:
{code}
Uncaught TypeError: Cannot read property 'disabled' of undefined packed.js:1719
B.ui.TogglePanel.B.BaseComponent.extendClass.__getItemIndex packed.js:1719
B.ui.TogglePanel.B.BaseComponent.extendClass.__getItemByName packed.js:1728
B.ui.TogglePanel.B.BaseComponent.extendClass.onCompleteHandler packed.js:1690
(anonymous function)
serverEventHandler packed.js:177
(anonymous function) packed.js:168
(anonymous function) packed.js:148
sendEvent jsf.js.jsf:1
response jsf.js.jsf:1
response packed.js:367
A.ajax.response packed.js:231
onComplete jsf.js.jsf:1
AjaxEngine.req.xmlReq.onreadystatechange jsf.js.jsf:1
{code}
Tabs are not switched at all. It is occurring on Chrome and IE. On Firefox it works correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (RF-12532) Collapsible panel always collapsed when an accordion is inside
by Pavol Pitonak (JIRA)
Pavol Pitonak created RF-12532:
----------------------------------
Summary: Collapsible panel always collapsed when an accordion is inside
Key: RF-12532
URL: https://issues.jboss.org/browse/RF-12532
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-output, regression
Affects Versions: 4.3.0.M2
Environment: RichFaces 4.3.0-SNAPSHOT
Metamer 4.3.0-SNAPSHOT
Mojarra 2.1.7
JBoss AS 7.1.2.Final-redhat-1
Java(TM) SE Runtime Environment 1.6.0_32-b05 @ Linux
Chrome 22.0.1229.94 @ Linux x86_64
Reporter: Pavol Pitonak
# deploy Metamer and open http://localhost:8080/metamer/faces/components/richAccordion/simple.xhtml...
result:
* collapsible containing accordion is collapsed but should be expanded
* setting expanded=true has no effect
* worked fine in 4.3.0.M1
* can be reproduced with this code
{code:xml}
<h:form>
<rich:collapsiblePanel expanded="true">
<rich:accordion>
<rich:accordionItem id="item1" name="item1" header="Item 1">
content of item 1
</rich:accordionItem>
<rich:accordionItem id="item2" name="item2" header="Item 2">
content of item 2
</rich:accordionItem>
</rich:accordion>
</rich:collapsiblePanel>
</h:form>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (RF-11763) javascript error : item is undefined on nested tabPanel with switchType='ajax'
by Jean ANDRE (Created) (JIRA)
javascript error : item is undefined on nested tabPanel with switchType='ajax'
------------------------------------------------------------------------------
Key: RF-11763
URL: https://issues.jboss.org/browse/RF-11763
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.CR1
Environment: Websphere 8 - RAD 8 - JSF Mojorra 2.1.4 - Spring 3.0.6 Final - Use @Inject @Named @SessionScoped as annotations - Firefox 7.0.1 - Windows 7 (6.1 sp1) - AspectJ 1.6.12 / AJDT
Reporter: Jean ANDRE
Priority: Blocker
Attachments: screenshot-1.jpg
See also RF-11750 for the context.
Briefly, we have nested tabPanel - The firs tabPanel is made of static and dynamic tabPanel. One tabPanel contains the search form. When the user performs a search and for each search we open a new tab that contains the result list. When the user click on an item, we update the tab with the detailed information.
The detailed information is made of 6 tabs - There are like a subtabs from the parent tabs. When we set the switchType to 'client' the tab performs well. But as we want that the same tab serves as form to edit and view the detailed information, we want to refresh the tab to display the inputText instead of the outputText. This is the edit mode.
Then, we need to refresh the tab and we decided to pass in ajax switchType for theses subTab. Owener, switching to the 'ajax' triggers a javascript error that blocks the UI. None tab is selectable, user cannot switch from a tab to another tab. Moreover we failed to refresh the tab but the reason is still unknown.
Javascript error is :
{code}
item is undefined - [Stopper sur une erreur] if (!item.disabled && item.getName() === itemName) {
toggle...chfaces (ligne 363)
http://localhost:12000/crm/javax.faces.resource/togglePanel.js.jsf?ln=org...
{code}
The involved code is (where >>>> is):
{code}
/**
* @private
* */
__getItemIndex : function (itemName) {
var item;
for (var i = 0; i < this.items.length; i++) {
item = this.items[i];
>>>>>> if (!item.disabled && item.getName() === itemName) {
return i;
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (RF-12541) AbstractTogglePanel should throw an exception when returning an dynamic toggle panel item
by Brian Leathem (JIRA)
Brian Leathem created RF-12541:
----------------------------------
Summary: AbstractTogglePanel should throw an exception when returning an dynamic toggle panel item
Key: RF-12541
URL: https://issues.jboss.org/browse/RF-12541
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-panels-layout-themes
Affects Versions: 4.3.0.M2
Reporter: Brian Leathem
Assignee: Brian Leathem
Fix For: 4.3.0.M2
When you call some methods (like getClientId) on a dynamic toggle panel it returns the clientId of the parent repeat component unless you are in an active data visit.
To guard against this (while not breaking backwards compatibility for use of static panels) we should throw an exception when a dynamic component is returned.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (RF-11822) Load components onload (on page ready)
by Lukáš Fryč (Created) (JIRA)
Load components onload (on page ready)
--------------------------------------
Key: RF-11822
URL: https://issues.jboss.org/browse/RF-11822
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: cdk, core
Affects Versions: 4.1.0.Final
Reporter: Lukáš Fryč
According to Yahoo performance recommendations ([1], see "Post-load Components"),
visual components should be loaded on page load ({{onload}} event)
to avoid heavy JavaScript processing before page is completely visually built.
In RichFaces, it is simple task using {{JavaScriptService}}, which enables you to collect and inject JavaScript snippets which should be loaded using jQuery {{$(document).ready(...)}}.
Thanks to CDK templates, it's also simple change in renderers, just move component contructor to newly created CDK tag {{<cdk:onloadScript>}}, which would delegate to {{JavaScriptService}} (if {{JavaScriptService}} not found, processing may fall back to rendering {{<script>window.addEventHandler('load', ...)</script>}}, but this is optional part.
[1] http://developer.yahoo.com/performance/rules.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (RF-12108) components are not rerendered after ajax action if attribute ajaxRendered="true" inside <rich:message />
by Artur Mioduszewski (JIRA)
Artur Mioduszewski created RF-12108:
---------------------------------------
Summary: components are not rerendered after ajax action if attribute ajaxRendered="true" inside <rich:message />
Key: RF-12108
URL: https://issues.jboss.org/browse/RF-12108
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2.0.Final
Environment: JDK1.6,
JBoss 6.0.Final,
richfaces 4.1.0.Final/4.2.0.Final
seam 3.1
IE 9
Reporter: Artur Mioduszewski
In case getting 2 tabs (in my case it is primefaces tabs):
{code:title=RENDERING ON SECOND TAB NOT WORKS (after clicking link)}
1. tab:
<h:selectOneMenu id="nSurfacePercentageOfWholePlayback" value="#{newSurface.percentageOfWholePlayback}">
<f:selectItems value="#{staticPercentagesItems}"/>
</h:selectOneMenu>
<rich:message for="nSurfacePercentageOfWholePlayback" ajaxRendered="true"/>
2. tab (some code with ajax)
Ex.
<a4j:commandLink styleClass="no-decor" execute="@this" action="#{componentManager.deactivateVertically}">
<h:graphicImage value="/images/icons/delete.gif" alt="Deactivate Vertically"/>
<a4j:param value="#{dayIndex.index + 1}" assignTo="#{componentManager.verticalDeactivationIndex}"/>
</a4j:commandLink>
{code}
{code:title=RENDERING ON SECOND TAB NOT WORKS (after clicking link)}
1. tab:
<h:selectOneMenu id="nSurfacePercentageOfWholePlayback" value="#{newSurface.percentageOfWholePlayback}">
<f:selectItems value="#{staticPercentagesItems}"/>
</h:selectOneMenu>
<rich:message for="nSurfacePercentageOfWholePlayback" ajaxRendered="false"/>
2. tab (some code with ajax)
Ex.
<a4j:commandLink styleClass="no-decor" execute="@this" action="#{componentManager.deactivateVertically}">
<h:graphicImage value="/images/icons/delete.gif" alt="Deactivate Vertically"/>
<a4j:param value="#{dayIndex.index + 1}" assignTo="#{componentManager.verticalDeactivationIndex}"/>
</a4j:commandLink>
{code}
When I change tabs order, problem does not exist.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] Created: (RF-11288) Metamer: a4j:region: Nested region example doesn't work at all (MyFaces, IE9)
by Ján Jamrich (JIRA)
Metamer: a4j:region: Nested region example doesn't work at all (MyFaces, IE9)
-----------------------------------------------------------------------------
Key: RF-11288
URL: https://issues.jboss.org/browse/RF-11288
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: RichFaces 4.1.0.20110805-M1 r.10246d45dddd1d2aa2034317d5a832394cc919f9
Metamer 4.1.0.20110805-M1 r.22604
Apache MyFaces JSF-2.1 Core Impl 2.1.1
Apache Tomcat 7.0.19
Java(TM) SE Runtime Environment 1.6.0_26-b03 @Linux
IE9 (note that with Chrome 12.0.742.112 @ Linux i686 it works)
Reporter: Ján Jamrich
Example for nested region doesn't work at all. There is no combination of strategy to get value from form to nested region. (Note that it doesn't work only with IE9).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month