Questions tagged [custom-component]

"custom component" is a generic term for a manually developed UI component for a component based UI framework. When using JSF, please don't confuse this with "composite component", where the component is definied by XHTML using cc:xxx tags instead of by a Java class extending UIComponent.

1083 questions
6
votes
2 answers

AS3 disable editable/selectable for textInput inside of a Datagrid

I am currently trying to disable the selectable / editable / or change the textInput to dynamic to get my desired result. I've got a custom datagrid with dropdowns and text input areas. However, if there is no data in my Model # column, I do not…
jc.021286
  • 220
  • 1
  • 4
  • 15
6
votes
3 answers

Creating a component with named sub-components?

I need to know the basics behind making a component produce and manage sub-components. I originally tried this by creating a TCollection, and tried to put a name on each TCollectionItem. But I learned it's not that easy as I had hoped. So now I am…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
6
votes
1 answer

JSF custom component losing input focus on ajax update

I'm writing an autocomplete custom component as a learning exercise with JSF 2.1.3. The idea (which is probably pretty familiar) is to enter some text into and input component and present a list box with matching values. The idea is to have a keyup…
Oversteer
  • 1,778
  • 1
  • 22
  • 38
6
votes
1 answer

Component Initialization - Runtime vs. Designtime

I have a series of visual compound components that I'm building, which use similar / common "connect" methods, which fire up there internal tables, etc. I am automating some of the connection stuff to connect automatically at runtime. How do I…
Jamo
  • 3,238
  • 6
  • 40
  • 66
6
votes
1 answer

Cannot find annotated custom JSF2 component in jar

We are migrating JSF1.2 to JSF2 application and I have bumped into a problem with custom components. We have a seperate jar with components, and in that jar I have this: @FacesComponent(value = "Panel2") public class Panel2 extends UIOutput { ...…
Steven De Groote
  • 2,187
  • 5
  • 32
  • 52
6
votes
3 answers

React-leaflet custom component - context not being passed?

I'm writing a custom component for react-leaflet. It is an editable popup, with a few other features. Here is a codesandbox for an example.. The source code for the component is here. This example just does an import EditablePopup from…
Seth Lutske
  • 9,154
  • 5
  • 29
  • 78
6
votes
1 answer

TextView resized to fit text

I'm working on a custom view to resize the text inside a textview so it'll fit (i don't want to ellipsize). The trouble i'm having is that when changing the text size, the textview itself is not remeasured. I've been looking at the source and saw…
Nick
  • 1,733
  • 1
  • 14
  • 24
6
votes
1 answer

Angular custom component required

is there a way that I can use the required attribute on my custom component? My component looks like this: import { Component, Input, forwardRef } from '@angular/core'; import { Platform } from 'ionic-angular'; import { NG_VALUE_ACCESSOR,…
Jeremy
  • 157
  • 1
  • 10
6
votes
1 answer

Component Design - "File not found: 'DockForm.dcu"?

I am writing a component that requires the use of both the units DesignIntf, DesignEditors When i build my package, i get the error File not found: 'DockForm.dcu' When I add "designide.dcp" to the "requires" section of the package, it builds and…
IElite
  • 1,818
  • 9
  • 39
  • 64
6
votes
2 answers

Custom JSF component renderer: how to render HTML around another element

I have 2 elements, banana and an outputText, where banana is a custom JSF component and in banana renderer, I would like to generate HTML enclosing the specified element. xhtml:
Jacobski
  • 741
  • 6
  • 10
6
votes
3 answers

How do I create a custom control with a sub-panel that accepts other controls at designtime?

I have written a custom control, that has several sub panels. I want these sub panels to accept any additional controls dropped on them at design time. Unfortunately any control that gets dropped at design time ends up on my custom control, not on…
Thomas Mueller
  • 282
  • 5
  • 8
6
votes
2 answers

How to embed a UITableView in a custom view

Goal I want to create a custom view that has a UITableView as a subview. The custom view creates the table view programmatically. To the outside world (i.e., the ViewController), though, the custom view itself would appear to be a table view. What…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
6
votes
2 answers

Extending Swing's ToolTipManager to change behaviour on hover?

I'd like to implement a ToolTip in Swing that has customised behaviour: the longer the user hovers over the component, the more detail should be shown in the tooltip (i.e., a few new lines are added after a few seconds of the user hovering over the…
false_azure
  • 1,333
  • 4
  • 25
  • 46
6
votes
2 answers

How can I define custom 'contentGroups' in a custom Flex 4 component?

The spark panel component for example can be written like this And its skin file will handle layout of the…
swidnikk
  • 546
  • 1
  • 3
  • 16
6
votes
1 answer

How to pass data from JavaScript code to Polymer custom element?

I want to pass data that I have on a variable to a Polymer component via attribute. This is the code: The…
jordiburgos
  • 5,964
  • 4
  • 46
  • 80