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

How to load a Custom PHP Magento Block inside a template file

I've created a Custom Block based on this tutorial http://blog.magikcommerce.com/how-to-show-most-viewed-best-selling-products-in-magento-store I would like to call the Block from my home.phtml template file. I call my static blocks…
Gilberto Albino
  • 2,572
  • 8
  • 38
  • 50
6
votes
1 answer

Slow transition of Activities: multiple "initializing inflate state" in LogCat

In order to provide a custom typeface in my ListActivity, I wrote a class CustomAdapter extending BaseAdapter according to this example here. However, as described there, I wrote the getView() method like following: public View getView(int position,…
Valentino Ru
  • 4,964
  • 12
  • 43
  • 78
6
votes
4 answers

Getting the Component Name in the Constructor?

I am creating a custom control derived from TCustomControl, for example: type TMyCustomControl = class(TCustomControl) private FText: string; procedure SetText(const Value: string); protected procedure Paint; override; public constructor…
user1175743
6
votes
1 answer

JSF 2 custom composite component with f:ajax

I'm trying to create a custom composite component colorPicker using this jQuery plugin http://www.eyecon.ro/colorpicker/. I´d like to be able to append a jsf tag f:ajax, and when a color is selected, perform an ajax call to the server. I have been…
6
votes
1 answer

JSF custom component: support for arguments of custom types, the attribute setter is never invoked

I've created my custom JSF component according to one of many tutorials (I'm using PrimeFaces), I've added an argument which was successfully passed to component. public void setCommand(String command) { …
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
6
votes
5 answers

Delphi "E2161 Error: RLINK32: Error opening file ________.drf " during Build All

I am trying to resolve a problem with a set of packages that apparently have dependency issues. Occasionally during a Build All, I get this error: Delphi "E2161 Error: RLINK32: Error opening file ________.drf " What does it mean / indicate, and…
Jamo
  • 3,238
  • 6
  • 40
  • 66
6
votes
5 answers

Applying style to views dynamically in java code

I have following custom button view. public class PrayerTimeLabel extends Button { int hours; int minutes; String dayHalf; //am or pm Context parentActivity; PrayerControl parentControl; public PrayerTimeLabel(Context context,PrayerControl…
sadaf
  • 719
  • 2
  • 8
  • 19
6
votes
3 answers

Custom View not inflating

I am trying to create my custom view through xml, but the screen does not show my view, s it is not inflating. My custom view xml is as:
NullPointerException
  • 3,978
  • 4
  • 34
  • 52
6
votes
1 answer

How can I load an updated component package without restarting the IDE?

When developing a new component in Delphi, I run into this inefficiency. Every time I make incremental changes to the source code (for example, a bug fix), I build the new component and install it on the Component Palette. This is OK. In another…
6
votes
1 answer

Custom component creation - how to add small icon representing component in Tool Palette?

Please bear in mind that I've read all the instructions I could find about adding component icon to my custom component. And I am able to do this when we talk about the icon size which is 24x24 pixels. I see the icon when a component is dropped on…
Wodzu
  • 6,932
  • 10
  • 65
  • 105
5
votes
4 answers

How to set UI for all Components of a type in java swing?

I created my own MyScrollbarUI class to have a custom scrollbar look in my application. Now I have to do scrollPane.getHorizontalScrollBar().setUI(new MyScrollbarUI()); scrollPane.getVerticalScrollBar().setUI(new MyScrollbarUI()); on any ScrollPane…
haferblues
  • 2,155
  • 4
  • 26
  • 39
5
votes
2 answers

How does one calculate an output-value which needs to be updated from various form-control elements by control-specific calculation-rules?

I need some help as I'm fairly new to JavaScript. I wish to create a function that calculates a membership fee I tried making a function in JavaScript that checks whether only one option has been selected, but I have no idea how to make it so that I…
jooookra
  • 53
  • 5
5
votes
2 answers

Delphi Package Build / Install debugging

I'm using Delphi 2007 Pro. I have a runtime package that includes a number of compound components I'm developing, which are based on TFrames. There is also a related design package which installs these components to the tool palette. These TFrame…
Jamo
  • 3,238
  • 6
  • 40
  • 66
5
votes
2 answers

Array Property, TList, TStringList, or TCollection, etc (Delphi Win32)

I am developing various components, and regularly run into the need to have a property that has a "one-to-many" relationship, component-to-property-member. The components are often visual components, but not always, and sometimes need to be…
Jamo
  • 3,238
  • 6
  • 40
  • 66
5
votes
2 answers

Vue.js custom select component with v-model

I want to create a custom select component in Vue.js. Since I need specific options styling, I need to create 'select' made of div's etc that looks and acts like a real html select. Currently I have something like this: Vue.component('child',…
ineffable
  • 169
  • 1
  • 5
  • 15