[
https://jira.jboss.org/jira/browse/RF-7527?page=com.atlassian.jira.plugin...
]
Konstantin Spirov reopened RF-7527:
-----------------------------------
Dear Mr. Shaikovsky ,
Sorry I need to reopen again the issue, but at least this time I am reopening only the
RF-7527 - the two reports are connected. Before continuing, please see first the small
video I have prepared especially for you:
http://www.youtube.com/watch?v=3lQR5iAv_8k
I believe this will convince you there is actually a bug (even two bugs - the first with
the position, the second - with the mouse)
I am actually runnung test.xhtml from the attachment and I don't deal with video
montage :-)
If the blur happens before the selection ("input blured - blur fired - selection
applied - select fired"), why the result is damaged and after selection I have empty
field? If the model is as you are explaining, nobody can damage my content. The
"blinking" is visible very well on the video - correct content, then again the
old content. And why this happens only from mouse click, why keyboard is OK?
Read the rest of my rely only if this again didn't convince you there is a
bug/problem/issue (I strongly hope now I convinced you).
...
If you really think what you saw on the video is normal and you are able to explain it,
there is at least *a big documentation issue*,
because we still don't have obvoious solution for some need, that is very classical:
We need just to have your "combobox via suggestion component" working with ajax
(because your demo is not ajax based, the validation
is made on the submit button):
Let's be more concrete. We need to be able:
1) To validate the field from the server each time the focus is lost
2) To correct(change) the field from the server (and to make user able to see the
changes)
3) This (1 and 2) should work
A) for fields manually entered (without using suggestionbox)
B) For fields entered from suggestion box (permited navigation: with keyboard or with
mouse).
I hope you will agree this is a 100% classical need, nothing exotic, many people try to do
this, at least 50% of the RichFaces applications do this! An there is still no working
solution for suggestionbox (what you saw on the video cannot be called working
solution!).
If the solution is somewhere in your 3 words "use just oncomplete" (RF-7523
discussion), this should be explained in more detail & documented.
Kind regards,
Konstantin
h:inputText that has rich:suggestionBox practically cannot be
combined with a4j:support event="onBlur" because of 2 annoying problems
-------------------------------------------------------------------------------------------------------------------------------------
Key: RF-7527
URL:
https://jira.jboss.org/jira/browse/RF-7527
Project: RichFaces
Issue Type: Bug
Components: component-input
Affects Versions: 3.3.1
Environment: The scenario is for Firefox 3.5 and Opera 9.1, RichFaces >= 3.1
Reporter: Konstantin Spirov
Assignee: Tsikhon Kuprevich
Attachments: test.xhtml
There are 2 problems mentioned here, but I am combining them in one report, because the
test scenario I will provide is the same. The workarounds I am providing are not
satisfying.
The two these problems are in construction like:
<h:inputText style="margin:0px;" id="xxx"
value="xxx">
<a4j:support event="onblur" reRender="xxx"
bypassUpdates="true" ajaxSingle="true"/>
</h:inputText>
<rich:suggestionbox for="xxx">
The approach is a4j:support rerender=xxx is *very standard* (see seam-gen for examples),
and it is practically necessary if we want to modify automatically from the server the
field after it is changed.
Problem 1: Display suggestion list and click on some suggestion (with the mouse). The
value will be updated for a while, then *the old content* is recovered (incorrectly ). We
have again empty field, which is very annoying. PLEASE notice that if you had used arrows
and tab from the keyboard, everything would work correctly - so there is a solution, but
it doesn't work when the user clicks with the mouse (our users usually click with the
mouse, don't use keyboard :-)
Problem 2: JavaScript error if you try to display the suggestion again (see your browser
console). The suggestionbox stops working until you reload the page.
Exact steps to reproduce quickly test platform (I am sending an attachment just for
refference - it is similar)
1) Take from Richfaces showcase RichInput:SuggestionBox:ObjectsUsageExample
2) Add value="#{bean.attribute} to <h:inputText (create the "bean" in
the most quick and easy for you way, in my platform it is seam component in conversation
scope)
3) Inside <h:form> wrap with <a4j:queue> (probably not necessary, but
let's not risk the repeatability of the scenario)
4) From rich:suggestionBox remove:
usingSuggestObjects=...
onobjectchange=...
5) Add in h:inputText <a4j:support event="onblur"
reRender="statesinput" bypassUpdates="true"
ajaxSingle="true"/>
You will see that the last step line makes everything unusable :-(
--
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