[JBoss JIRA] Created: (RF-2393) Tree nested inside node of an outer tree has strange behaviour on ajax submit when there are validation errors
by Mike Hanafey (JIRA)
Tree nested inside node of an outer tree has strange behaviour on ajax submit when there are validation errors
--------------------------------------------------------------------------------------------------------------
Key: RF-2393
URL: http://jira.jboss.com/jira/browse/RF-2393
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: Glassfish v2, JSF RI 1.2
Reporter: Mike Hanafey
Attachments: NestedTree.war
I have situation where there is an outer tree whose nodes have an inner tree. Specifically, the outer tree is over DNA sequences, and each DNA sequence may have a tree of comments attached to it.
Both the inner and outer trees have a couple of faces, one is used when a node is in display mode, and the other when it is in edit mode.
If the inner tree is put into edit mode at a node (via an ajax request) and a validation error occurs on a second ajax request to submit the edits, the whole inner tree for that node disappears. It can be recovered by doing a browser redisplay. If there is no validation error, the edit works as expected
Looking at the XmlHttpRequest response when there is a validation error shows that the response does not contain the expected tree nodes.
When this same comment tree code (both the backing beans and the facelets views) is applied on an unnested tree this problem does not occur.
A test war is attached (the war is big only because it includes the library dependencies -- the test code itself is small).
To demonstrate, deploy the war and look at the top page.
Click on the + next to "Comments" (this is the un-nested tree). Click "Ajax Save". Observe the "Value is required" messages.
Enter something into the first textfield, and do the "Ajax Save". Now a custom validation message appears.
Now for the first strangeness. Enter something in both the textfield and the textarea. The custom validation message appears on both inputs, but now the inputs just made are erased. When only one of these fields have data, the data entered in the other field is preserved, and I believe the clearing of input data is another error, but not the one in the title of this this issue.
To see the main issue, open the tree labeled "Sequences". This has a comments tree just like the one above nested inside the sequence node.
Click on the + next the "Comments" under "Sequences".
Click on "Ajax Save". Now instead of seeing the "Value is required" error, the inner tree node collapses. Click on the "Submit" button, an reopen the "Sequences" tree to see that the inner tree is in fact still intact.
Click on "Ajax Immediate". Now the tree does not collapse. The only difference is this button is immediate, so the validation steps are not done.
Finally, clicking on "Plain Save" shows the expected validation errors (now the Sequence tree collapses after the submit so it must be manually opened, but I guess this is expected behavior because the open / close state is not maintained across the request). The problem where the inputs that fail validation are erased remains even with this non-ajax update mode).
--
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
15 years, 5 months
[JBoss JIRA] Created: (RF-1710) ajax4jsf version of tidy parser removes "redunant" whitespace in selection option id's and values
by Rajeev Chandrasekaran (JIRA)
ajax4jsf version of tidy parser removes "redunant" whitespace in selection option id's and values
-------------------------------------------------------------------------------------------------
Key: RF-1710
URL: http://jira.jboss.com/jira/browse/RF-1710
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Reporter: Rajeev Chandrasekaran
The tidy parser seems to remove whitespace characters in select option id's and values. In my case, I had a value like "my company" where there are 2 spaces between "my" and "company". Although the 2 spaces were properly rendered when the page was first rendered, after submitting the page (which had other validation errors), the same page rendered again (because of the validation errors) but with 2 spaces between "my" and "company" consolidated down to just a single space.
If I set the following property (literal-attributes=true) in a user-specific tidy.properties in the classpath, the problem goes away. I noticed that this property is commented out in the tidy.properties that ships with richfaces.
--
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
15 years, 5 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
15 years, 6 months
[JBoss JIRA] Created: (RF-2865) Tree: JS error when using keyboard navigation
by Tsikhon Kuprevich (JIRA)
Tree: JS error when using keyboard navigation
---------------------------------------------
Key: RF-2865
URL: http://jira.jboss.com/jira/browse/RF-2865
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: 3.2.0.CR7
FF
Reporter: Tsikhon Kuprevich
Assigned To: Nick Belaevski
1. Click a collapsed node.
2. Click right or down keyboard arrow
=>
handleElt.onclick is not a function
expand()tree-item.js.jsf (line 274)
processKeyDown(keydown charCode=0, keyCode=39)tree-selection.js... (line 130)
bindAsEventListener(keydown charCode=0, keyCode=39)a4j_3_2_0.CR7org.... (line 217)
wrapper(keydown charCode=0, keyCode=39)a4j_3_2_0.CR7org.... (line 3850)
[Break on this error] handleElt.onclick();
--
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
15 years, 6 months
[JBoss JIRA] Created: (RF-1542) context menu doesn't collapsed while come submenu item overed and further mouseout
by Ilya Shaikovsky (JIRA)
context menu doesn't collapsed while come submenu item overed and further mouseout
----------------------------------------------------------------------------------
Key: RF-1542
URL: http://jira.jboss.com/jira/browse/RF-1542
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Reporter: Ilya Shaikovsky
Assigned To: Maksim Kaszynski
Fix For: 3.1.3, 3.2.0
<h:panelGroup id="test" layout="block" style="width:1px;">
<h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic">
</h:graphicImage>
<rich:contextMenu event="onmouseover" attached="true">
<rich:menuItem value="Enlarge"></rich:menuItem>
<rich:menuItem value="Open in new window"></rich:menuItem>
<rich:menuGroup value="Save">
<rich:menuItem value="Download image"></rich:menuItem>
<rich:menuItem value="Copy to clipboard"></rich:menuItem>
<rich:menuItem value="Copy image adress"></rich:menuItem>
</rich:menuGroup>
</rich:contextMenu>
</h:panelGroup>
Call the menu through mouseover. Then just leave the menu without overing any items. It will not collapse.
--
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
15 years, 6 months