viewroot

JSF2 + IceFaces 2 - Retrieve UIComponent from ViewRoot

爷,独闯天下 提交于 2019-12-13 06:22:35
问题 I've got hard time resolving the following. My problem is quite simple : I would like to highlight in red the forms fields that triggered validation errors. The error messages are placed correctly in the FacesContext using a context.addMessage(...) line. I'd like my system to be generic. All form fields having a message attached are automatically highlighted. I've found on this site a link to this excellent article : http://www.jroller.com/mert/entry/how_to_find_a_uicomponent With it, I did

Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error

丶灬走出姿态 提交于 2019-11-26 18:38:49
I have a ListView with some focusable components inside (mostly EditText s). Yeah, I know this isn't exactly recommended, but in general, almost everything is working fine and the focus goes where it has to go (with a few tweaks I had to code). Anyway, my problem is that there's a weird race condition when scrolling the list with your finger and then suddenly using the trackball when the IME keyboard is being displayed . Something must go out of bounds and get recycled at which point the offsetRectBetweenParentAndChild() method must kick in and throw the IllegalArgumentException . The problem

Preventing/catching “IllegalArgumentException: parameter must be a descendant of this view” error

落花浮王杯 提交于 2019-11-26 06:29:13
问题 I have a ListView with some focusable components inside (mostly EditText s). Yeah, I know this isn\'t exactly recommended, but in general, almost everything is working fine and the focus goes where it has to go (with a few tweaks I had to code). Anyway, my problem is that there\'s a weird race condition when scrolling the list with your finger and then suddenly using the trackball when the IME keyboard is being displayed . Something must go out of bounds and get recycled at which point the