custom-component

How to use the IncludeHandler inside my custom component?

别来无恙 提交于 2019-12-06 10:50:44
问题 In question: The class behind ui:include JSF tag I found out that I need to use the IncludeHandler to use <ui:include> programmatically. However, the constructor needs a "config"-parameter and I don't know how to set this up. Please give an example that shows how to use the IncludeHandler for a simple include like <ui:include src="include.xhtml" /> My jsf-component currently is built programmaticly but I want to include some parts written as ".xhtml". So at the end a web-designer simply has a

TFrame inheritance refactoring

淺唱寂寞╮ 提交于 2019-12-06 08:59:51
问题 Yet another TFrame IDE-registered-component question from me. Thanks for all the help, fellow programmers. : ) Playing around with Darrian's TFrame inheritance suggestion here: Specifics: Basically, I have a TFrame-based component that I've registered to the IDE, and it has worked wonderfully. I'm now developing a few "sister" components which will share a great deal of the existing component's non-visual functionality and properties. It makes sense, then, to move a lot of that to a parent

how to access super component class variable into sub component Class?

岁酱吖の 提交于 2019-12-06 08:57:18
How i access super component class variable into sub component in Angular2? super Component Article.ts @Component({ selector: 'article' }) @View({ templateUrl: './components/article/article.html?v=<%= VERSION %>', styleUrls : ['./components/article/article.css'], directives: [CORE_DIRECTIVES, AmCard, NgFor] }) export class Article{ articleArr : Array; constructor() { this.articleArr = new Array(); } articleSubmit(articleSubject, articleName, articleUrl) { this.articleArr.push({title: articleSubject.value, user : articleName.value, url : articleUrl.value}); } } super Component article.html <div

My Custom CursorAdapter doesn't update my ListView

做~自己de王妃 提交于 2019-12-06 04:12:28
I'm having troubles with my Custom CursorAdapter and my ListView , the fact is, I can save data in my sqlite Database in my custom ContentProvider but my ListView is not populated. I know DB Operations are heavy long operations, therefore I do it in another thread and furthermore CursorLoader is a subclass of AsyncTaskLoader , so it should be prepared for that. With SimpleCursorAdapter works fine but with this Custom CursorAdapter not. Can anyone tell me what is wrong and how could I solve it? Thanks in advance. My code is the following public class TextNoteAdapter extends CursorAdapter { /***

Layout not being inflated in android custom component

偶尔善良 提交于 2019-12-06 03:44:20
问题 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) { this(context, attrs, 0); } public MyView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } private TextView mText; @Override protected void onFinishInflate() { super.onFinishInflate(); mText = (TextView)

Extend Richfaces components - for example customize Datatable component for specific implementation

我与影子孤独终老i 提交于 2019-12-06 02:09:48
How to extend the functionality of Richfaces components for example Data table with custom header and sorting techniques. i have seen extended data table but did not get much information from it. Please point me to an example if at it is available. Thanks Soma Well, you can extend a JSF component with the regular java extension ( extends ). You will have to extend a number of classes, depending on the exact component: UIComponentName / HtmlComponentName HtmlComponentNameRenderer ComponentNameTag and you might need to register the renderer in faces-config.xml . You can take a look at this

Delphi visual component - moving away from TFrame base? [closed]

偶尔善良 提交于 2019-12-06 00:04:20
I have a visual component that I built from a TFrame (but then registered to the palette, etc); it works great and I loved being able to build it VISUALLY using the IDE. I would now like to create a "family" of related components, and to do so, would like to create a superclass of this component, and then inherit this component and others from there. There are a lot of ways to do this, I'm sure, but I'm finding myself wondering: Is there a tool that will convert *.DFM files (i.e. Forms or TFrames) to raw Object Pascal constructor code? Thinking of where it w/b nice to begin w/a visual form or

Accessing attributes passed to extended PrimeFaces component

筅森魡賤 提交于 2019-12-05 22:00:04
I'm trying to create a custom component to extend PrimeFaces. I have a simple component called textInput under the test namespace that simply calls the PrimeFaces textInput component and prints out the value passed to an attribute named fieldClass and the names of any attributes passed if I pass fieldClass as a string: <test:textInput id="foo" fieldClass="field-foo" /> this is the result fieldClass = field-foo [com.sun.faces.facelets.MARK_ID, fieldClass] If I pass fieldClass as an expression <ui:param name="bar" value="field-foo"/> <test:textInput id="foo" fieldClass="#{bar}" /> fieldClass

Converting Delphi 7 property editor to Delphi XE2

别等时光非礼了梦想. 提交于 2019-12-05 19:55:17
First of all, I have never written a property editor from scratch, but had some help with one in another question . Refer to the accepted answer there. This was in Delphi 7, and now I have started using XE2 and I have to make sure my property editor is compatible with both 7 and XE2. It's essentially a collection editor, with the difference that each collection item has its own named component in the parent form. Is there anything new about the property editors in XE2 since 7, since it is a huge version jump? I do NOT want to make a complete copy of my unit for different versions. I want to

JSF custom component with @FacesComponent is not found in Spring Boot

跟風遠走 提交于 2019-12-05 15:26:22
问题 I want to create a custom JSF 2.0 component but can't get it to work. My component is defined like this: @FacesComponent(value = "myCustomComponent") public class CommaSeperatedOutput extends UIComponentBase { ... } The taglib looks like this: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns