custom-component

Facelet Custom Component - prevent rendering ui:insert content in custom component

五迷三道 提交于 2019-12-11 04:18:22
问题 this is my custom component definition: <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions"> <c:if test="${empty required}"> <c:set var="required" value="false" /> </c:if> <c:if test="${empty disabled}"> <c:set var="disabled" value="false" /> </c:if> <c:if test="${not disabled}">

custom component reuse with extjs4

梦想与她 提交于 2019-12-11 03:30:13
问题 I have created a custom grid in a javascript file. I want to use it as a xtype on to different panels in seperate js files. If I use it on a single panel, it works fine; but when I use try it use it on different panels at the same time, I get a error in the chrome developer tool console saying: Uncaught TypeError: Cannot read property 'isComponent' of undefined My grid definition is as follows: Ext.define('DataBox.view.FootNotes', { extend : 'Ext.grid.Panel', alias : 'widget.footNotes',

Delphi TCollection - Possible to prevent changing items in run-time?

橙三吉。 提交于 2019-12-11 02:47:08
问题 Using delphi 7, I have a TCollection/TCollectionItem set of descendents. They are intended to be set up in Design-time only, and should never be modified in Run-time. How can I do this? Design-time should always allow whatever edits are needed, but in Run-time, I don't want to be able to Add, Remove, or Re-index any of the items in the collection. The properties of each of those items, yes, I do want them to be enabled. But changing the actual items around shall only be in design-time. 回答1:

Flex mxml custom component - how to add uicomponents?

青春壹個敷衍的年華 提交于 2019-12-11 02:13:14
问题 how to I pass in a uicomponent to a mxml custom component? ex: I want to pass in any number of buttons, and I want my custom component to lay them out in a certain order. MainApp.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:local="*" > <local:myComp > <s:Button label='Button1' /> <s:Button label='Button2' /> <!--I

How to add children component and new attribute to custom JavaFX control?

百般思念 提交于 2019-12-10 17:12:47
问题 I want to create a new JavaFX component and use it in FXML. How can I define the possibility of usage and types of children for this component? And is there a way to create my own atrributes for this component? As example, this is what I want to get: <MyNewComponent specificAttribute="..."> <children> <SpecificChildren></SpecificChildren> </children> </MyNewComponent> 回答1: When you set the value of an attribute or specify a child value in FXML you are basically just setting properties on the

How to add to the layout compound component programmatically Android?

痴心易碎 提交于 2019-12-10 10:36:58
问题 I created a compound component Box which I want to add to the layout. Box xml: <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayoutForBlock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout android:id="@+id/linearLayout1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:background=

Delphi compiler warnings pointing to Delphi's own units

*爱你&永不变心* 提交于 2019-12-10 03:49:02
问题 In Delphi 2007, working on a project which includes a custom component, I'm getting this set of warnings as the first four in Messages when I do a full build (but not when I do a straight compile): [DCC Warning] Dialogs.pas(1426): W1002 Symbol 'TFileOpenDialog' is specific to a platform [DCC Warning] Dialogs.pas(1446): W1002 Symbol 'TFileSaveDialog' is specific to a platform [DCC Warning] ComCtrls.pas(6757): W1036 Variable 'Section' might not have been initialized [DCC Warning] ComCtrls.pas

how can I get selected value in spinner such as C# ComboBox?

点点圈 提交于 2019-12-08 14:32:20
I trying to make a custom Spinner containing Id and Title. This Spinner displays Title but everywhere in my code I can access to selected Id. how can I do it. it's like ComboBox in C#. thanks. if you have id's and names in the separate arrays then based on the spinner selected item position you can get selected item id. spinner.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { System.out.println(Id_arr[spinner.getSelectedItemPosition()]);// for spinner id System.out.println(spinner.getSelectedItem()

AS3 create component using Flash CS4

最后都变了- 提交于 2019-12-08 12:45:54
问题 I would like to create a basic component consisting of a textbox and a label next to it (in other words an InputText and a StaticText). I only need to set and get the text in the Input textbox, the static text will stay as is. Any help would be highly appreciated! Jasco 回答1: This sounds a bit vague. You could have two TextFields inside a Sprite, something like: package { import flash.display.*; import flash.text.*; /** * @author georgeprofenza */ public class FormItem extends Sprite { private

AEM 6.1 - Configure Rich Text Editor Plugins on an RTE field inside a Touch UI Dialog

喜欢而已 提交于 2019-12-08 11:15:14
问题 I have a Touch UI dialog containing multiple Rich Text fields. Some are spread out over several tabs. I would like to add several plugins, such as the misctools plugin, to the RTE toolbar. How is this accomplished? I have tried configuring them using the an rtePlugins node as a child of the field node in the dialog, as well as adding an rtePlugins node under the cq:editConfig->cq:inplaceEditing node, but none of these approaches change the RTE toolbar inside the dialog itself (I don't want in