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
5
votes
3 answers

Importing PHP code in Joomla Component development

Can't figure out how to import php files into my joomla component- all of these fail: require_once('code.php'); require_once(dirname(FILE).DS.'code.php'); require_once(JPATH_COMPONENT.DS.'code.php' ); Any ideas? thanks
Yarin
  • 173,523
  • 149
  • 402
  • 512
5
votes
2 answers

How to put MXML child nodes within a custom Flex 4 component?

Here is an example of a custom component. It is just a box with a title label and a close image (X): (INSTANCE MXML)
W3Coder
  • 620
  • 8
  • 20
5
votes
1 answer

Component communication in angular 1.5

Angular 1.5 component communication suggestions usually have output bindings to invoke methods on root controllers. Let's say I have a root component, and two child components. It'd…
ipavlic
  • 4,906
  • 10
  • 40
  • 77
5
votes
2 answers

How can one resize the scrollelements of a JComboBox?

I have a few JComboBoxes in my programm. I want to change the size of the scrollbar and the arrow button in the way that they are much wider. I need that because I want to use the programm on a Windows tablet and it is too small for a finger to work…
Nikita.M
  • 77
  • 1
  • 5
5
votes
2 answers

JSF Best Practice: Custom Components and JavaScript

I am developing a JSF Custom Component, using the information I found on the following book Pro JSF and HTML5 by Apress. So far, I successfully developed: the java class to obtain the data to be rendered in the component the java component…
INElutTabile
  • 866
  • 2
  • 20
  • 38
5
votes
1 answer

Custom component won't display nested components

I'm having problems with a custom component I'm writing in that it won't render any nested controls. The component is a simple layout control, very loosely adapted from the ApplicationLayout control in the Extension Library. The XPage code looks…
TrailDragon
  • 456
  • 2
  • 14
5
votes
3 answers

How do I implement a NamingContainer? All children get the same client ID

I try to write my own tree component. A tree node renders as a div containing child components of the tree component, for example:
Zeemee
  • 10,486
  • 14
  • 51
  • 81
5
votes
2 answers

joomla-extracting a component as installable?

I am writing a joomla componenet but it has many folders and sql tables. I don't prefere to make the package manually. Is there any know extension to make me able to extract my component as a zip file to make it installable.
freezer
  • 531
  • 1
  • 11
  • 28
5
votes
1 answer

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

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…
Eugene
  • 1,037
  • 4
  • 20
  • 34
5
votes
1 answer

Load FXML files with custom components in JavaFX Scene Builder: Attributes are reset and children removed

I wrote an FXML-File where I use a custom component, extending Group. When loading this custom component, it should be adding some childs (here: MyOverlayIcon) to its children-list and set some attributes by code (here: layoutX and…
Daniel
  • 190
  • 3
  • 12
5
votes
1 answer

Layout not being inflated in android custom component

I'm getting a null pointer exception in my custom view (which is derived from a LinearLayout) because it can't find its child views. Here is the code: public class MyView extends LinearLayout { public MyView(Context context, AttributeSet attrs) …
Timmmm
  • 88,195
  • 71
  • 364
  • 509
5
votes
1 answer

Whats the difference between JSF Custom Composite Components vs Custom Classic Components

i want to build a custom JSF Component. Now i read some docs from oracle and saw a few code Examples. The problem is i am a bit confused: It seems there are two ways to build a custom component with JSF 2.0+. As far as i understood since JSF 2.0 i…
Nick Russler
  • 4,608
  • 6
  • 51
  • 88
5
votes
0 answers

How to set/clear multichoice items in alert dialog with custom buttons?

I make a little android app. In it I need an AlertDialog with multichoice. But I need custom buttons(when button is clicked, it hides, and we can see another button at this place). I got it. But when I'm trying to set all multichoice items true by…
5
votes
1 answer

Using TOwnedCollection descendant in Delphi

I'm trying to create a custom component with a collection property. However if I try to open the collection editor during design time by clicking "..." button in object inspector, nothing happens. What I am missing? Here's my TCollection…
Harriv
  • 6,029
  • 6
  • 44
  • 76
4
votes
1 answer

What is the best way to add long press event to button class?

By Long Press, I mean pressing a button / panel and hold for a period (say 2 seconds) without releasing or dragging around. It is common in mobile phone and touch device. I had tried using Gesture, checked toPressAndHold in TabletOptions and…
Justmade
  • 1,496
  • 11
  • 16