components

When are setValue and setSubmittedValue called on UIComponent?

被刻印的时光 ゝ 提交于 2020-01-11 06:11:31
问题 If I correctly combined the information contained in BalusC's great 2006 post http://balusc.blogspot.ch/2006/09/debug-jsf-lifecycle.html with Optimus Prime's even earlier post http://cagataycivici.wordpress.com/2005/12/28/jsf_component_s_value_local/ I get the following: My understanding: During the APPLY_REQUEST_VALUES phase, the input value is set to a submittedValue property of the UI component (e.g. inputComponent. setSubmittedValue ("test")). During the PROCESS_VALIDATIONS phase, the

When are setValue and setSubmittedValue called on UIComponent?

与世无争的帅哥 提交于 2020-01-11 06:11:05
问题 If I correctly combined the information contained in BalusC's great 2006 post http://balusc.blogspot.ch/2006/09/debug-jsf-lifecycle.html with Optimus Prime's even earlier post http://cagataycivici.wordpress.com/2005/12/28/jsf_component_s_value_local/ I get the following: My understanding: During the APPLY_REQUEST_VALUES phase, the input value is set to a submittedValue property of the UI component (e.g. inputComponent. setSubmittedValue ("test")). During the PROCESS_VALIDATIONS phase, the

Using arbitrary QML items as cached image source

谁说我不能喝 提交于 2020-01-11 03:33:33
问题 EDIT: The original question is still contained below, but I decided to re-title to a form that will be more useful to developers in a variety of cases, some of which described in my answer below, as the solution to the original problem turned out to provide a much wider area of application. I have a set of greyscale icons for an application, and a requirement that the icon color can be changed by the user. So, the obvious solution is to use the stock Colorize element from QtGraphicalEffects .

Is it wise to create composite controls?

你说的曾经没有我的故事 提交于 2020-01-11 03:28:49
问题 I have this application that reuses a sort of idiom in a number of places. There's a TPanel, and on it are some labels and buttons. The purpose is to allow the user to select a date range. The "&Dates" caption is one label, and the "All Dates" part is a second one. When the user clicks the "Choose" button a form pops up presenting the user with a pair of Date/Time controls and OK/Cancel buttons. If the user hits OK after selecting some dates, the 2nd label changes to "From mm/dd/yyyy To mm/dd

Using Flash Component SWC file in Flex

落爺英雄遲暮 提交于 2020-01-07 16:05:23
问题 I am accessing custom UIComponent via SWC file from Flex 3. This component works OK in Flash CS3, but using it from Flex gives A weird error in draw(). I have added swc component inside Sprite (with addchild) and its in LIB path. TypeError: Error #1010: A term is undefined and has no properties. at com.xxxx.highscores::HighScores/draw() at fl.core::UIComponent/callLaterDispatcher() Here is the draw() function of this UI Component: override protected function draw():void { isInitializing =

Javascript component does not work in IE9

 ̄綄美尐妖づ 提交于 2020-01-07 02:12:28
问题 There is a component that I have been using since IE7 and had never had problems with it. Now that IE9 came out, there is a specific issue that users are struggling with. It's a combobox, and the problem is that when I select the item, IE9 does not recognize that an item has been selected. The problem will only go away if the user turns compability mode on. So.. question... Is there a code parser, or code checker, or something... so that I can identify which js functions, in the component

Move from manual component creation to harvesting with the HeatDirectory task

痞子三分冷 提交于 2020-01-06 13:13:40
问题 I am using WiX 3.8 to build a project which installs a product. The installer is basically done. One of the programmes which gets installed by the package is relying on dlls by a third party which get updated frequently. Idiotically the version number of the dlls change on a regular basis. When first writing the installer project I did not consider inculding support for changing file names and wrote every component manually. This behaviour should be changed in the future. If I understand

React Native ScrollView - How to scroll to a child component from another child component button?

你离开我真会死。 提交于 2020-01-06 08:43:18
问题 I have this structure with a ScrollView, which is a parent with 5 childs Parent Component with ScrollView Component1 Component2 Component3 Component4 Component5 Inside Component3 I have a button that when pressed should scroll parent component ScrollView to Component5 Something like this Home (Parent) export default class Home extends React.Component { renderComments() { return this.state.dataSource.map(item => <CommentDetail key={item.id} comment={item} /> ); } render() { return (

GWT: retrieve Components from FormPanel/VerticalPanel which are added dynamically

江枫思渺然 提交于 2020-01-06 07:52:27
问题 I am creating a web page using GWT 2.5.0, in this I used lots of composite component. And the web page is developed based on XML . So here we parse the XML and according to each element add componnet to a VerticalPanel and finally add it to a FormPanel and then return it to add to RootPanel. Beside the Component corresponds to XML I add a Button, call it submit button, on its click event I want to get the values of every component in that form . To clear what my idea is , below is the pseudo

Set focus on a input control contained in a second level bootstrap modal

こ雲淡風輕ζ 提交于 2020-01-06 05:52:07
问题 I'm using Vue.js 2.1.10 and Bootstrap 3.3.7 to show a modal that opens another modal dialog. Each modal dialog is contained in a distinct component. Inside the 1st component, there is a reference to the 2nd component ( select-travler ). According to the Bootsrap documentation, I have to set the focus by listening to the event shown.bs.modal . This works great to set the focus on an input control contained in the 1st modal. Problem: this way doesn't work when the modal is above another modal.