[JBoss JIRA] Created: (RF-10940) Client side validation refers to non existing javascript function
by Niels Soeffers (JIRA)
Client side validation refers to non existing javascript function
-----------------------------------------------------------------
Key: RF-10940
URL: https://issues.jboss.org/browse/RF-10940
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-validators
Affects Versions: 4.0.0.Final
Reporter: Niels Soeffers
Client Side Javascript functions are called on the component tags (for example onChange attribute) and defined at the bottom of the rendered page. We encountered a case where the function called in the onchange attribute is not defined at the bottom of the page.
Our domain layer contains two different classes RG and SRG (they do not inherit from each other). However they both embed an embeddable class E with a field "name"
In the GUI we have a page with a single form and two regions. One for adding a RG object and one for adding a SRG object. Both regions contain a h:inputText for the "name" field. So the first inputText is bound to {{RG.embedded.name}} and the second on {{SRG.embedded.name}}. Both inputTexts have a rich:validator tag as a child component.
When the page is initially rendered both h:inputText have the same javascript function referred to in their onchange attribute (RGName_3Av).
Which is not wrong because the validation (@NotNull on the "name" field in the Embedded class) is the same for both value bindings. It is a little bit confusing to see a method with a name of RGName_3Av on a component that is actually bound to SRG and so we would expect the method to call SRGName_3Av, but it's certainly not wrong and I even find it a very nice optimization.
However when we click on an a:commandButton in the second region and rerender this second region, then suddenly the javascript function in the onchange attribute of the second inputText is changed and the name refers to the SRG component (SRGName_3Av), but this javascript method is never defined, because it was optimized when we initially rendered the complete page.
Hope you can reproduce the problem with the above description and fix the problem or provide a workaround?
Kind Regards,
Niels
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (RF-11149) rich:editor - updating editor in IE9
by Lukáš Fryč (JIRA)
rich:editor - updating editor in IE9
------------------------------------
Key: RF-11149
URL: https://issues.jboss.org/browse/RF-11149
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-input
Affects Versions: 4.1.0.Milestone1
Environment: Internet Explorer 9
Reporter: Lukáš Fryč
Assignee: Lukáš Fryč
Priority: Critical
Fix For: 4.1.0.Milestone1
Symptoms: receiving in a4j:log:
error[16:09:30.567]: Received 'error@malformedXML' event from <input id=form2b:j_idt7 ...>
error[16:09:30.568]: [200] undefined: undefined
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (RF-11346) Editor: reimplement to do not cache editor instance
by Lukáš Fryč (JIRA)
Editor: reimplement to do not cache editor instance
---------------------------------------------------
Key: RF-11346
URL: https://issues.jboss.org/browse/RF-11346
Project: RichFaces
Issue Type: Task
Security Level: Public (Everyone can see)
Components: component-input
Affects Versions: 4.1.0.Milestone1
Reporter: Lukáš Fryč
Assignee: Lukáš Fryč
Fix For: 4.1.0.Milestone2
Caching editor instance has been identified as premature optimization which leaded to several problems: RF-11230, RF-11149
Initially, the editor content was flashing during complete update, but the same happens when using CKEditor.editor.setValue(value) method in caching version.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months