FAQ Database Discussion Community


TextView and EditText android

android,android-layout,components
I want to set a text view and edit text on same line in android. As I've wrote here I should do it with linear layout like this: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="200px" android:orientation="horizontal" android:layout_alignParentLeft="true" android:background="@android:color/background_light" android:layout_alignParentStart="true" android:layout_below="@+id/loginTitle" android:layout_marginTop="5dp"> <TextView...

Emberjs components actions

javascript,ember.js,components
I am trying to use Emberjs components. And I stumbled into trouble with actions. Here my component: export default Ember.Component.extend({ actions: { openObject: function (id) { this.sendAction('openObject', id); } }, ... And here my controller, also I have created the same action in the route. export default Ember.Controller.extend( { actions:...

How to get checkbox state in Ember.js?

templates,ember.js,checkbox,components
I have created a component which renders checkboxes with values correctly set. They can also respond to click events, so in the hbs template there's a loop which renders the checkboxes like that: <input class="conditions" type="checkbox" value="{{c.id}}" {{action "conditionChecked" r preventDefault=false}} checked={{c.checked}} />{{c.name}} In the component I have the actions:...

How cand I include a bitmap in my custom component (if is possible)?

delphi,components,delphi-2009
I am writing a component (a button) which needs a bitmap to be displayed on it. I don't want to make an ImageList property and the user assigns an image. I want that button to have only the image chosen by me. I tried to include the bitmap in a...

Delphi - scroll group of components on block overflow

delphi,overflow,components,delphi-7
I looked through such components like GroupBox, Panel, ScrollBox, ListBox, but nothing of them is what i am looking for. What i want is a component that will have a fixed size, no visible borders, preferaly non-color background and will allow to hide contained components if they overflow this component....

SSIS Lookup multiple identical databases

ssis,components,integration,lookup,multiple-databases
I'm working on a project where i need to do lookups on a data warehouse server in Integration Services. My problem is that I need to be able to change what database it i performs the lookup to. The databases are design wise identical. I have solved this problem with...

I cannot get component from controller in ExtJS

extjs,components
I have defined a window like this: Ext.define(), { 'MyApp.view.MyCustomWindow' extends: 'Ext.window.Window', alias: 'widget.mywindow', ... items: [{ xtype: 'form', items: [{ xtype: 'fieldset', ... items: [{ xtype: 'combobox', ... itemId: 'comboFilter' }] }] }], dockedItems: [{ xtype: 'toolbar', items:[{ xtype: 'button', itemId: 'okBtn' }] }] } Then I would like...

Output information about currently focused component

java,swing,focus,components
I have lots of JFrames with several components. They're generally built dynamically with all components added dynamically as well, but some are built manually. Want I want: I want to add a new component, say a read-only JTextField, which prints information about the currently focused component in the JFrame. The...

Stuck thread at UIComponent.popComponentFromEL

multithreading,jsf,jsf-2,primefaces,components
My application uses JSF 2.1 with PrimeFaces. Recently, very high CPU Utilization was observed because of some stuck threads. The stuck thread dump for all stuck threads pointed to javax.faces.component.UIComponent.popComponentFromEL like below: javax.faces.component.UIComponent.popComponentFromEL(UIComponent.java:1934) javax.faces.component.UIComponent.visitTree(UIComponent.java:1633) javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) org.primefaces.component.api.UIData.visitRows(UIData.java:741)...

How can I change the component of a registry key in Installshield?

windows-installer,install,components,installshield
I have to put a registry key in another component from it's original. How can I make this step without exporting it an importing back in the other component? ...

Component constructor arguments fxml javafx

java,javafx,components
First, I give you the code I have. COMPONENT public class Schuiver extends VBox{ private final SchuiverCompanion companion; public Schuiver(String text) { try { FXMLLoader loader = new FXMLLoader( Schuiver.class.getResource("nuleenschuiver.fxml")); loader.setRoot(this); this.companion = new SchuiverCompanion(); loader.setController(companion); companion.setText(text); loader.load(); } catch (IOException exception) { throw new RuntimeException(exception); } } } COMPONENTCONTROLLER...

How to load a xml file in plugins webroot

cakephp,plugins,components,cakephp-3.0
I am using cakephp-3.0 In a Component of a plugin, I want to load a XML file in the plugins webroot. simplexml_load_file('RangeMessage.xml') The file can't be found. Debugging the path with debug(realpath('')); Says, that the actual directory is /path/to/app/webroot. My xml-file however is in /path/to/app/plugins/myPlugin/webroot So how can I find...

Yii: parametrized call of javascript - problems with quotes

javascript,php,yii,components,quote
I am using Yii Version 1.1.15. In a View I use ajaxlink and it works like a charme: <?= CHtml::ajaxLink( '[Help]', $this->createUrl('genearal/help'), array( 'onclick' => '$("#help").dialog("open"); return false;', 'update' => '#help'), array('id' => 'showHelp') ); ?> <div id="help"></div> Since I have a lot of ajaxlink-calls, I want to write a...

How can you test if one class implements all the interfaces of another?

c#,interface,components
I'm using C# and Unity. I have classes that I add as components to other classes, and some of these components depend on each other. I was hoping to find a way to iterate through all of the interfaces of the component, and test the class to which it's being...

Draw in another component

java,swing,jpanel,components
I have a homework to do but there is not enough information and I'm stuck right now... Here is the issue, I have three classes : "ChoicePanel" extends JPanel and add buttons to select a color with a JComboBox public class ChoicePanel extends JPanel{ Draw dessin; public ChoicePanel(Draw df) {...

How to load resources in a FMX-component

delphi,resources,components,firemonkey
I try to use resources in a FMX-Component and get the EResNotFound-Error when I try to read the resource. following scenario: a FMX-bpl (FmxComponents.bpl) where i added some png-files in my IDE (XE7) over 'resources and images'. the resources are into the 'FmxComponents.dres' but not in 'FmxComponents.res'. when I try...

Where to create common functionalities with view in cakephp?

cakephp,cakephp-2.0,components
I am new in cakephp. I have a module with name contact us in 1 of my project. This module need to show on almost all pages of the website. So my question is, for this common module can we create component or there is some other way to complete...

Is the Microservices architectural Pattern similar to EJB 1.0?

ejb,components,microservices
What we see with microservices is an isolated component, communicating over a protocol over the wire to a parent consumer of that component. We see a very similar pattern with EJB 1.0. My question is: Is the Microservices architectural Pattern similar to EJB 1.0?...

Forget to reset parameter for production version

delphi,components,delphi-2009
I use TAdoconnection to access the database. During development i set the connectionstring to my local database and set connected to true in order to get the information for the other dbcomponents. When I finalize the program for a customer I forget sometimes to reset the parameter, which leads to...

React - Updating state for each child component

javascript,events,components,state,reactjs
Not sure if i'm understanding this correctly. If i'm making a child component, type button, that increments its own counter, is it possible to do so without having 2 separate functions? the following i've done seems like a hack? what if theres X amount of buttons, how would i refactor...

Controlling component from backing bean

jsf,richfaces,components,javabeans
I want to 'update' a component with a new component in the bean. XHTML <composite:interface> <composite:attribute name="rootKey" required="true" /> <composite:attribute name="id" required="true" /> </composite:interface> <composite:implementation> <rich:panel id="#{cc.attrs.id}" binding="#{myBean.customPanel}"/> <a4j:jsFunction name="createPanels" action="#{myBean.createPanels}" render="#{cc.attrs.id}"> <a4j:param name="rootId" assignTo="#{myBean.rootId}"/> <a4j:param...

Cannot read property 'split' of undefined

angularjs,annotations,typescript,components,angular2
I have the following code running on my local server. <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <script src="https://jspm.io/[email protected]"></script> <script src="https://code.angularjs.org/2.0.0-alpha.19/angular2.dev.js"></script> </head> <body> <my-app></my-app> <script> System.config({ paths: { '*': '*.js', 'angular2/*': 'angular2/*' } }); System.import('main'); </script> </body> </html> The above is the...

Preventing component creation - Delphi

delphi,components
I am creating an application which makes use of several TTabsheets (from the TPageControl component). Is it possible to prevent a component (in this case a tab) from being created during the program startup? I want to manually create the tabs at a later stage. This is not a dynamic...

Vue JS 0.12 Dynamic Components

javascript,components,browserify,vue.js
I upgraded to Vue 0.12 but it's left me with a tricky problem. I'm using Browserify/Vueify to transpile and concatenate single file component definitions. In my app component I "require" the needed components and assign to keys in the components object then use v-component="x" in the template to mount them....

Joomla, Falang integrate component… Fatal error: Call to a member function getTable() on null

php,xml,joomla,components,multilanguage
Hello I am having some issues for integrate a custom component of joomla in Falang for multilanguage website Debugging I got null: Fatal error: Call to a member function getTable() on null object(ContentObject)[183] public '_contentElement' => null My XML for integrate my component looks as: <?xml version="1.0"?> <falang type="contentelement"> <name>Members</name>...

Show each L,a,b component of L*a*b color space individually in Matlab

matlab,colors,components,space
I want to segment Left ventricle from CT scan RGB Image by fuzzy c means after converting my RGB image in Lab Color Space but not getting required Results. i want to saw L, a and b component of this color space individually in Matlab. Can anybody help me in...

delphi get actual full height/Width off a component that has scrollbar

delphi,scrollbar,components
this Question is similar to how-to-find-the-actual-width-of-grid-component-with-scrollbar-in-delphi but i couldn't get the CalcDrawInfo(DrawInfo); to work with a StringGrid For example if you add a StringGrid and randomly set the RowCount and ColCount values at FormCreate Can you get the actual size of this component so that if you set the Width...

Impose component restriction to a series of parsys-CQ

xml,components,cq5,aem
I have a series of parsys present in my page's footer. At the same time, I want to impose component restriction to all these via etc/designs/projectname/content.xml. This goes like this: JSP: <c:forEach var="i" begin="0" end="${properties.numberOfFooterLinks-1}"> <div class="small-6 medium-4 large-2 columns"> <cq:include path="./footerPar${i}" resourceType="foundation/components/parsys" /> </div> </c:forEach> XML: <footer jcr:primaryType="nt:unstructured"> <footerPar0...

Sitecore Auto-Save If Sublayout Added on the Page

save,sitecore,components,sublayout
Is there anyway to make auto-save once I added a sublayout component? I created one sublayout and if I add it on the page in page editor, it doesn't appear on that time. By saving the item, it appears on the page editor. So, I'd like to make if sublayouts...

how to check null from JCR value in Adobe CQ5..?

jsp,adobe,components,cq5,jcr
Hi all i'm new Adobe CQ5, i'm getting values from JCR in Adobe CQ5 component, value is rendering fine but now want to check null, i'm doing like this: <% if(<%= properties.get("videoImage") %> != null) { <img src=<%= properties.get("videoImage") %> /> } %> but it generate an error, can any...

How to set the default selected component

java,select,jframe,components
I am creating a Java Text Editor, and I don't want people to have to click on the text area to type. I have multiple buttons at the top of the screen, the top left most one is automatically selected. Is there any way to automatically select the text area...

Export PCA components in r

r,components,pca
I did pca on my data using r and I am trying to save the components with an eigenvalue larger than 1. > summary(pca1) Importance of components: Comp.1 Comp.2 Comp.3 Comp.4 Comp.5 Comp.6 Comp.7 Comp.8 Standard deviation 1.2851803 1.1245020 1.0737268 1.0011978 0.9841687 0.88758402 0.84798807 0.67308490 Proportion of Variance 0.2064611 0.1580631...

How to make components in a JPanel strectch as far as possible?

java,swing,jpanel,components,layout-manager
I'm trying to create a simple swing program that lets the user play with a circle. Here is my code: import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.border.Border; import javax.swing.BorderFactory; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.Color; import java.awt.Graphics; import java.awt.FlowLayout; import java.awt.BorderLayout; public class SixthProgram { public static...

repeating child with this.props of parent react element

javascript,components,reactjs,parent-child,repeat
Currently i m working on creating react components, and i need to repeat the child components, based on this.props.value of parent component. I am struggling to find any good examples. here is my code var LiComponent = React.createClass({ render:function(){ return( <div> <span>{this.props.label}</span> <span>{this.props.value}</span> </div> ); } }); var StatsComponent =...

How can I put Component into Module in Joomla! site?

joomla,module,components,joomla-extensions
I wonder if exists a way to put component into module without install plugin, neither component nor module. Thanks and my apologize for my bad English....

IWICBitmapScaler doesn't work for 96bppRGBFloat format?

windows,components,imaging,wic
I encountered a probem when I was using the WIC lib. And I found that I can't scale R32G32B32 images using IWICBitmapScaler... The code example shows below: { IWICImagingFactory* m_pWICFactory; HRESULT hr = S_OK; // Initialize COM hr = CoInitialize(nullptr); assert(SUCCEEDED(hr)); // Initialize Factory hr = CoCreateInstance(CLSID_WICImagingFactory, nullptr, CLSCTX_INPROC_SERVER, __uuidof(IWICImagingFactory),...

Access an instance of a component created by Ractive Load

components,instance,ractivejs,ractive-load
Inside a component, I am happily using the syntax below to load additional components, if and when needed: <!-- Import example component --> <link rel='ractive' href='internal-example.html' name='InternalExample'> My question is, how can I access this example component instance created by Ractive Load inside another component? Important: I can define where...

Ember - How to send data down to a component?

ember.js,components,ember-router
I'm building an Ember app that needs to fade out a background DIV when a form input becomes focused. I have defined actions on my Application route, and set a property in my model (because I'm trying to do this without a controller, like the Ember 2.0 way). I'm trying...

SAPUI5 Component Metadata rootView Parameter for JSONView

json,components,sapui5,rootview,openui5
Has anyone been able to specify a JSON view in the rootView parameter in the metadata of SAPUI5(or OPENUI5) component. My ultimate goal is to implement something similiar to this "Best Practices" demo app using JSON views. In the "Application Best Practices" UI5 demo app, the component.js file contains a...

How to Put Icones in RadStudio XE8 IDE palette for new component?

delphi,components,palette,delphi-xe8
I wrote a set of few components named : - TUser - TRESTAccess - TServerAccess Then i create 3 PNG image 100x100 with same name than component (in the same directory than the BPL and the .PAS files) I wrote a .RC file include in my package. But can't compile...

Unable to select the components on a page

components,cq5,rollout
I want to perform a rollout only for the selected components in the page. I noticed that I am not able to select any of the components presented in the pages using the small checkbox in the component's edit bar. I am not sure why this is happening. All of...

What a Table Class realy does in Joomla! MVC structure?

class,table,components,joomla2.5
I'm newb in programming Joomla components so will be very glad if someone describe (if possible with an example) the functionality of a table class.

How to link angularjs component per file

asp.net-mvc,angularjs,file,components
I am new to angularjs and I have read in multiple places that we should aim to define one component per file. This works fine when you have few components but as soon as you start to have more than few lets say more than 5 then linking them would...

Make same components in for statement in Delphi

delphi,components
I want to make same components in for statement in delphi dynamically, but it only make one component. Why? How can I fix the following my code? for i := 0 to numberDot do begin button := TImage.Create(Self); try button.Parent := pnScroll; button.Height := 24; button.Width := 24; button.Name :=...

Component event detection in Delphi

delphi,events,components
I am developing a DataAware component and executing some code after the database is open. This is the code I have at the moment: TMyDataAwareComponent = class(TDataAwareComponent) private { Private declarations } procedure ToBeExecutedOnAfterOpen(DataSet: TDataSet); protected { Protected declarations } public { Public declarations } constructor Create(AOwner: TComponent); override; end;...

OSGi: service binding without lifecycle management

service,osgi,components,declarative-services
I am building a Java application on the Equinox OSGi framework and I have been using DS (declarative services) to declare referenced and provided services. So far all the service consumers I have implemented happened to be service providers as well, so it was natural for me to make them...

How to get a list of all components on the Form at Design-Time?

delphi,ide,components,design-time
I need to get a list of all components on the Form at Design-Time (not controls, just components). The components must also be visible on the Form as a 24x24 image at Design-Time. I could use code like this procedure TForm2.GetComponentList(Memo1: TMemo) var i: Integer; begin for i := 0...

setStatus of another Component in react

javascript,components,reactjs
I've looked through the active questions that are slightly related to my question but I didn't come to a successful solution. I hope someone can help me. I have a simple react baby code on js fiddle: http://jsfiddle.net/kb3gN/10313/ Explanation of my code can be found below the code here: var...

Setting controller property from inside a component

javascript,ember.js,properties,components
I'm having some trouble getting this to work. I have an image upload component that I want to set a controller property with so that I can later use it in a cropping component that finally will set a property that gets saved to my backend. In index.hbs I render...

Refresh custom container through a button inside it in Java

java,awt,refresh,components,containers
Good morning, I have a class that inherit from java.awt.Container. His scope is to wrap a list of Files showing them vertically as a "file name Labels + delete Buttons" list. files are shown properly and every time a new one is added, it refresh correctly. The component class's code:...