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
10
votes
1 answer

Creating two custom buttons

Can some one please help me on creating custom buttons like below? Is it possible? Have searched a lot and was able to find only some things which again turn out to be rectangular/square shapes. But I want two buttons to be triangular and to be…
Apparatus
  • 411
  • 1
  • 5
  • 19
10
votes
1 answer

How can I implement my own custom property editor for all instances of a certain type?

I have followed a few tutorials on creating a custom property editor dialog, but there are so many things involved that I could not get it to work right. What I am trying to accomplish is a custom form with a date picker (calendar), a time picker,…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
9
votes
2 answers

How do I select all slotted by name?

I am dealing with this situation... and an implementation like
Thing 1
Thing 2
Jackie
  • 21,969
  • 32
  • 147
  • 289
9
votes
2 answers

getDrawable() in TypedArray returning null?

I'm having a weird problem with TypedArray.getDrawable() in one of my custom Views. For simplicity's sake, here's a trivial test project that displays the same problem: TestView.java package com.example.testing; import…
Karakuri
  • 38,365
  • 12
  • 84
  • 104
8
votes
8 answers

Delphi compiler warnings pointing to Delphi's own units

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…
Jamo
  • 3,238
  • 6
  • 40
  • 66
8
votes
2 answers

How to fix scrolling to a visible cell in UICollectionView with custom layout?

I'm working on custom value picker inspired by UIPickerView. It looks like that: As you can see, one of the main features of this picker is the central cell the should be wider than others to make it's neighbours visible beside of the central…
8
votes
2 answers

Android parsing styles for custom widget not working

I have created custom widget for my android application and i want to create custom styles for it. But while parsing it in the class returns always null. Gone through several links and couldn't figure out what the problem is ? Can anyone help ? My…
Nikhil
  • 2,857
  • 9
  • 34
  • 58
8
votes
1 answer

JSF 2 Custom components having Expression Language for attribute value don't trigger the attribute setter

I have build a custom component in JSF 2.0 The tag looks like this: The corresponding java class: @FacesComponent("a.b.c.MyTag") public class UIMyTag extends UIInput { private String name; private String id; …
RaresI
  • 461
  • 1
  • 6
  • 19
7
votes
1 answer

How do I group my component's properties in the Object Inspector?

I want my component which will be non-visual to have its published properties under a category not on the top level of the Object Inspector. Take the below example: type TMyComponent = class(TComponent) protected function GetSomeValue:…
user1175743
7
votes
1 answer

Ref not working on custom component in Vue3

I'm using Vue3 with the composition API. In a form-component I put ref's on each field (child-component). For some reason the ref's of the custom components are different from ref's for Quasar components. When I console.log a ref to a custom…
Dylan
  • 9,129
  • 20
  • 96
  • 153
7
votes
2 answers

Custom Attribute Error - Android Studio 1.2

In my Android project I have a couple of custom components that use custom attributes. The attrs.xml file looks like this:
MikaylaRay44
  • 83
  • 1
  • 7
7
votes
3 answers

Passing constructor parameters for MXML-based custom Flex components

I've implemented a MXML custom components and I would like to pass parameters to the constructor: newUser = new userComp("name"); instead of using set methods. Is this possible if the custom components has been built in MXML (with…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
7
votes
2 answers

How to implement find as you type on a TComboBox descendant

What is the correct way to implement the "find as you type" behavior on a TComboBox descendant component whose style is csOwnerDrawFixed?
user16120
  • 952
  • 1
  • 10
  • 16
7
votes
1 answer

Adding Custom Attributes to Primefaces Autocomplete Component in JSF

I asked about pass through attributes in a different question and found I could create a custom renderer for the component but the problem is my custom renderer would be used for every p:autocomplete in my project (site-wide).…
Adam
  • 4,590
  • 10
  • 51
  • 84
7
votes
1 answer

Proper using of Facelet templates & Composite Components

I'm still not sure about proper using of JSF Templates & Composite Components. I need create an enterprise web applications, which will have a lot of pages. Every page will have the same header, menu, footer and of course different content (= JSF…
sasynkamil
  • 859
  • 2
  • 12
  • 23
1 2
3
72 73