custom-component

React-leaflet custom component - context not being passed?

隐身守侯 提交于 2020-01-23 17:47:09
问题 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 'my-react-leaflet-popup-plugin' , which is a .js file in my project. Works well. I am trying to bundle this using webpack to package it as a node module so that others can use it. It compiles without issue. You can see my webpack.config.js here. I am then using

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

大憨熊 提交于 2020-01-11 09:08:24
问题 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 registered with the IDE (i.e. use the Property Inspector), but not always. I find myself unsure of which route to take when setting up these properties -- using an array property, a TList, a TStringList, a TCollection, or something else altogether (perhaps

Passing EL expression to composite component

血红的双手。 提交于 2020-01-11 04:16:12
问题 we are still in a JSF 1.2 to 2.0 migration scenario and we are now facing a problem related to c:set or ui:param variables used inside an EL expression. Here are the facts. There is a button as composite component: <cc:interface name="button" shortDescription="A button."> ... <cc:attribute name="disabled" required="false" default="false" shortDescription="The disabled flag." /> ... </cc:interface> <cc:implementation> <ice:commandButton ... disabled="#{cc.attrs.disabled}" ... /> </cc

Why are classLoader magic values in defineClass() throwing an exception?

梦想的初衷 提交于 2020-01-07 09:28:05
问题 I want to write a classLoader that can help me implement customized classes and ultimately a whole component at run time. Right now I'm in process of loading the class. I'm trying to load this role.java file. However when I get to this part of the code: myClass = super.defineClass(className, classData, 0, classData.length); I get this exception: Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value 1885430635 in class file C:\Users\ARIFAH\Downloads\Compressed\eUML2

GWT: retrieve Components from FormPanel/VerticalPanel which are added dynamically

江枫思渺然 提交于 2020-01-06 07:52:27
问题 I am creating a web page using GWT 2.5.0, in this I used lots of composite component. And the web page is developed based on XML . So here we parse the XML and according to each element add componnet to a VerticalPanel and finally add it to a FormPanel and then return it to add to RootPanel. Beside the Component corresponds to XML I add a Button, call it submit button, on its click event I want to get the values of every component in that form . To clear what my idea is , below is the pseudo

Check for either ADO.NET / OLEDB Connection presence and then insert to DB

Deadly 提交于 2020-01-06 07:46:22
问题 I originally posted the question to check for presence of either ADO.NET/OLEDB connection types. That being resolved, I'd like to know, how to change the code when it comes to inserting to the DB. For example, when the connection type is ADO.NET we use the "Transaction" in the connection type. SqlConnection connection = (SqlConnection)connections[_connectionName].AcquireConnection(transaction); Now if I have the OLEDB connection (instead of ADO.NET), I'd like to handle that situation in this

How to change the Thumb of the JScrollbar to a custom image

浪尽此生 提交于 2020-01-04 13:25:32
问题 Say I have an appropriately sized image inside an Image() I want to change the Thumb or Knob of the JScrollBar component to be this image. I know I need to subclass the ScrollBarUI Here is where I am at right now. public class aScrollBar extends JScrollBar { public aScrollBar(Image img) { super(); this.setUI(new ScrollBarCustomUI(img)); } public class ScrollBarCustomUI extends BasicScrollBarUI { private final Image image; public ScrollBarCustomUI(Image img) { this.image = img; } @Override

Allow users to select user group from custom Joomla login form

 ̄綄美尐妖づ 提交于 2020-01-04 13:05:40
问题 I am developing a website in Joomla 3.0. What I am trying to do is to create a custom login form. The reason I want to do that is to enable users to select the user group they want to be put in while they are registering. So I need to create a dropdown box in the login form. From this dropdown box users would be able to pick up the desired user group. So far I've tried using various plugins and extentions but the problem is that they can't be customized the way I want. So please, if you have

Small Style Custom rating bar (readonly custom rating bar)

时间秒杀一切 提交于 2020-01-04 12:43:24
问题 I tried to create a custom rating bar. I don't use style because I only use this once. So, I created a layer-list in the drawable folder (its name is custom_rating_bar.xml ): <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background" android:drawable="@drawable/custom_icon_empty"/> <item android:id="@android:id/secondaryProgress" android:drawable="@drawable/custom_icon_empty"/> <item android:id="@android:id/progress" android:drawable="

Small Style Custom rating bar (readonly custom rating bar)

倾然丶 夕夏残阳落幕 提交于 2020-01-04 12:43:12
问题 I tried to create a custom rating bar. I don't use style because I only use this once. So, I created a layer-list in the drawable folder (its name is custom_rating_bar.xml ): <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background" android:drawable="@drawable/custom_icon_empty"/> <item android:id="@android:id/secondaryProgress" android:drawable="@drawable/custom_icon_empty"/> <item android:id="@android:id/progress" android:drawable="