]
Alexander Dubovsky closed RF-5599.
----------------------------------
Assignee: Nick Belaevski (was: Alexander Dubovsky)
Verifeid
Content between angle brackets is being stripped out from selected
item of a suggestion box
-------------------------------------------------------------------------------------------
Key: RF-5599
URL:
https://jira.jboss.org/jira/browse/RF-5599
Project: RichFaces
Issue Type: Bug
Components: component-input
Affects Versions: 3.3.1
Reporter: Alessandro Behling
Assignee: Nick Belaevski
Priority: Minor
Fix For: 3.3.2.CR1
Attachments: CustomComponent.java, customComponent.jsp
The problem presented itself when we migrated data from a legacy database. The migrated
data is full of bits of descriptions that might include angle brackets. ie.
'XXXX - US.1 <ORIG 5 MINS> - YYYYY 1'
On my list of results being displayed inside the the suggestion box, this gets listed as
expected, but once I select this item and set it back to the input field the suggestion
box is attached, it gets retrieved as
'XXXX - US.1 - YYYYY 1'
After spending the day debuging the code, I managed to find out that the snipet of html
that is sent back to the client has a few TDs
will try to rougly write it how it looked
<TD display:"NONE">XXXX - US.1 - YYYYY 1<TD>
<TD>XXXX - US.1 <ORIG 5 MINS> - YYYYY 1<TD>
and the bit that gets used is the first TD which doesn't get displayed and is picked
as the value of the item inside my list
The behaviour I would expect is that the value is honored as it is, since we cannot
change the data which has been migrated from an old application and this is a major impact
on the way the application will work. What seems to be happening is that RichFaces thinks
the tags are dirty and wrong HTML bits and tries to be clever and cleans it up for you,
but in this case what it actually does is screw the whole point of using the interface
component
Could it have an option of honoring such characters? so that it could fit to the purpose
it already has, and also, suit cases like the one described
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: