[JBoss JIRA] Created: (RF-5617) a4j:jsFunction in IE6/7 breaks when html:form's prependId="false"
by yagish sharma (JIRA)
a4j:jsFunction in IE6/7 breaks when html:form's prependId="false"
-----------------------------------------------------------------
Key: RF-5617
URL: https://jira.jboss.org/jira/browse/RF-5617
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Windows XP, IE6/7
Reporter: yagish sharma
a4j:jsFunction in IE6/7 breaks when html:form's prependId="false".
In RichFaces3.2.2SR1, a4j:jsFunction generates an HTML script, which breaks in IE6/7, but works in FireFox. The issue is the way the jsFunction is rendered.
Here is a sample of how the script is rendered in Ajax4JSF and in RichFaces when html:form's prependId attribute is false.
<a4j:jsFunction name="func1" and id="func1" action="doSomething()"/>
Notice that the name and id fields are kept same.
In Ajax4JSF, this will render as -
script id="func1" type="text/javascript"
function func1(){.........};
/script
In RichFaces, this renders as -
script id="func1" type="text/javascript">
func1 = function(){.........};
/script
Having the id of script tag and the func1 prototype name as same creates the problem. IE6/7 while parsing the script tag gives an error - "Object does not supports this property".
In RichFaces the renderer for jsFunction is AjaxFunctionRendererBase. This renderer's getFunction() method has changed from Ajax4JSF and generates this inappropriate javascript code.
--
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, 9 months
[JBoss JIRA] Created: (RF-5524) ComboBox: onchange event is not fired if select value from pop up using mouse.
by Alexander Dubovsky (JIRA)
ComboBox: onchange event is not fired if select value from pop up using mouse.
------------------------------------------------------------------------------
Key: RF-5524
URL: https://jira.jboss.org/jira/browse/RF-5524
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: 3.3.0.CR1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Priority: Optional
Source:
<rich:comboBox value="#{custom.guestId}" defaultLabel="hello" onchange="alert('OK')">
<f:selectItem itemValue="val 1"/>
<f:selectItem itemValue="val 2"/>
<f:selectItem itemValue="val 3"/>
<f:selectItem itemValue="val 4"/>
<f:selectItem itemValue="val 5"/>
</rich:comboBox>
# Select item from pop up using mouse
# Move focus from comboBox
Result: onchange is not triggered - FAILURE
# Select item from pop up using keyboard
# Move focus from comboBox
Result: alert is shown - OK
--
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, 9 months
[JBoss JIRA] Created: (RF-2772) Make panelBarItem accordion functionality work with a4j:repeat
by Adam Jenkins (JIRA)
Make panelBarItem accordion functionality work with a4j:repeat
--------------------------------------------------------------
Key: RF-2772
URL: http://jira.jboss.com/jira/browse/RF-2772
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.1.4
Environment: Tomcat 5.5, Java 5, Exadel Studio 4.0.4a
Reporter: Adam Jenkins
Hi All,
I'm trying to build a dynamic accordion (rich:panelBar) by enclosing the panelBarItems in an a4j:repeat tag....it renders the panelBarItems, however the accordion functionality doesn't work (IE 6). If I do a standard (static) accordion it works fine, and, if I have a panelBar with static panelBarItems, followed by dynamic panelBarItems (inside an a4j:repeat) the static panelBarItems work fine, but the others don't (snippet below). Is this a limitation of this component or a bug?
In the below code, the panelBarItems labelled 'test' work perfectly, however the ones labelled 'some div' don't work at all.
<t:panelGroup colspan="2">
<rich:panelBar id="claim-panel-bar">
<rich:panelBarItem id="bar1" label="test"></rich:panelBarItem>
<rich:panelBarItem id="bar2" label="test"></rich:panelBarItem>
<rich:panelBarItem id="bar3" label="test"></rich:panelBarItem>
<rich:panelBarItem id="bar4" label="test"></rich:panelBarItem>
<a4j:repeat id="claim-history-repeat" value="#{generalInformation.myItems}" var="item" binding="#{generalInformation.myItemsRepeat}">
<rich:panelBarItem id="claim-panel" label="some div">
some stuff
</rich:panelBarItem>
</a4j:repeat>
</rich:panelBar>
</t:panelGroup>
Is this a limitation of the component, a bug, or am I doing something wrong here?
Cheers
Adam
--
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, 9 months