components

JSF ui:fragment rendered performance

谁说胖子不能爱 提交于 2019-12-03 21:06:38
I have a set of jsf components that are statically generated from a set of excel files (they are updated by business people). Each generated file represents a business object that has slightly different data, and all of them belong to a same class. In order to render this dynamically, the only solution I found was to set up a bunch of ui:fragment and dispatch to the right component at runtime: <!-- IMPLEMENTATION --> <composite:implementation> <ui:fragment rendered="#{cc.attrs.type eq 'cartcred'}"> <limites:limites-cartcred limite="#{cc.attrs.limite}"/> </ui:fragment> <ui:fragment rendered="#

Inno Setup - Create a dynamic list of components/types from external source (file or folder contents)

♀尐吖头ヾ 提交于 2019-12-03 20:31:59
I have a batch file (setting changer) that uses xcopy to list specific files formats in a specific folder, then allows me to type in one of the names and the script uses that name to copy that file to another location. First xcopy creates a copy of the original as a backup ( rolling backup only 1 copy ) then does the file copy (extension is fixed in batch only body of filename needed This works great BUT I would love to try and do this in Inno Setup for a nice clean GUI. I would like to populate the list of components/types from this list of files found in a specific fixed folder. Or even

How to get data from a component in VueJS

蓝咒 提交于 2019-12-03 20:21:27
问题 I have the following component: Component <template> <div> <label class="typo__label">Single selecter</label> <multiselect v-model="value" :options="options" :searchable="false" :close-on-select="false" :show-labels="false" placeholder="Pick a value"></multiselect> </div> </template> <script> import Multiselect from 'vue-multiselect' export default { components: { Multiselect }, data () { return { value: '', options: ['Select option', 'options', 'selected', 'mulitple', 'label', 'searchable',

Stretch items to fill canvas

£可爱£侵袭症+ 提交于 2019-12-03 19:50:59
问题 I have a Dockpanel with items inside a Canvas. The Dockpanel and any other items (Grid etc) that I place inside the Canvas, only take up their minimum required space. How do I stretch these items to fill the entire Canvas? <Canvas x:Name="InfoCanvas" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="72,53,0,0"> <DockPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="ReferenceInfo" Canvas.Left="0" Canvas.Top="0"> <TextBox x:Name=

Is there a Swing component for Google Maps?

荒凉一梦 提交于 2019-12-03 18:03:42
问题 I would like to have support for Google Maps in my Java Swing desktop application. Is there an Google Maps component for Swing that is freely available? It would be good if it was extendable and maybe had support for other maps i.e. like OpenStreetMaps. 回答1: You can use JXMapViewer look here http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html 回答2: How about JXMapViewer? Looks like it gets NASA's Blue Marble tile set by default (if you want 3D maps

JSF 2 — Save All Valid Component Values

允我心安 提交于 2019-12-03 17:17:34
I have a requirement to create a javascript function that when invoked will save all of the valid components on a JSF 2.0 form. Since the complete form will never be valid as a whole I need to figure out a way to run the lifecycle per component so that if the validation phase is successful the model will be updated and eventually saved. Ideally, this needs to be a single ajax request as iterating over each component with a separate ajax request would be painfully inefficient. Has anyone solved the problem before? If not could you give me some pointers on possible implementations? Edit: Here's

React.js: Composing components to create tabs

故事扮演 提交于 2019-12-03 16:48:03
问题 I’m trying to make a tabs component. TabsSwitcher and TabsPanel must be separate components so they could be used anywhere in DOM, e.g. TabsSwitcher doesn’t have to be followed by TabsPanel. To make it work, I need to somehow connect these components. Furthermore, TabsSwitcher must be able to tell TabsPanel when a tab was clicked. /** @jsx React.DOM */ var TabsExample = React.createClass({ render: function() { var tabs = [ {title: 'first', content: 'Content 1'}, {title: 'second', content:

Portable C++ Component Design

泪湿孤枕 提交于 2019-12-03 16:47:39
I've been using COM and .NET assemblies in the past to develop component-based-systems. Now I'm going to work on a cross-plattform-C++-project and want to structure the code in components aswell… Obviously COM and .NET are not an option, as COM is not available anywhere but Windows and Assemblies would add dependencies to the .NET framwork which may be not available at the target system. I'm aware that due to ABI-differences I won't be able to move components between different operating systems without recompilation, but I would like to write the code in a manner, that it's compatible at

Best approach to creating a custom ExtJS of pure HTML

本秂侑毒 提交于 2019-12-03 16:30:55
So I have a need to create an ExtJS component (version 2.3.0). The component is simply plain HTML (styled) - it is a heading. My current approach is to create a custom component as follows: /** * A ExtJS component for a header for the application */ Ext.ux.AppHeader = Ext.extend(Ext.Component, { height: 32, tpl: new Ext.Template ('<div class="title-bar"><h1>My App</h1></div>'), onRender: function(ct) { this.el = this.tpl.append (ct); Ext.ux.AppHeader.superclass.onRender.apply(this, arguments); } }); Ext.reg('AppHeader', Ext.ux.AppHeader); This works fine, but I'm not convinced it is the "right

Open source component or unit for exporting Delphi TDataSet to native XLS without Excel installed [closed]

时光怂恿深爱的人放手 提交于 2019-12-03 16:27:31
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Do you possibly know about the existence of a free and open sourced Delphi code to export TDataSet to native XLS format? The question