Button in custom component not showing

I made a very simple custom component with a TextField and Button but when I add multiple instances of it to a Layout, only the first Button shows up while the other show only when I focus the corresponding TextField. I'm quite new to fx and I'm not sure I did everything correctly but I don't see any obvious error in my code.
The component:
public class TestComponent extends BorderPane {
    @FXML
    private Button browseButton;
    @FXML
    private TextField textField;
    public TestComponent() {
        FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("TestComponent.fxml"));
        fxmlLoader.setRoot(this);
        fxmlLoader.setController(this);
        try {
            fxmlLoader.load();
        } catch (IOException exception) {
            throw new RuntimeException(exception);
The fxml
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.HBox?>
<fx:root type="javafx.scene.layout.BorderPane" xmlns:fx="http://javafx.com/fxml/1"
    xmlns="http://javafx.com/javafx/2.2">
    <center>
        <TextField fx:id="textField" prefWidth="200.0" />
    </center>
    <right>
        <Button fx:id="browseButton" mnemonicParsing="false" maxHeight="-Infinity"
            minHeight="-Infinity" prefHeight="${textField.height}" text="Browse"
            textAlignment="CENTER"  />
    </right>
</fx:root>
and the test code
@Override
    public void start(Stage primaryStage) {
        VBox box = new VBox(5);
        box.setPadding(new Insets(5));
        TestComponent a = new TestComponent();
        TestComponent b = new TestComponent();
        TestComponent c = new TestComponent();
        box.getChildren().addAll(a, b, c);
        Scene scene = new Scene(box);
        primaryStage.setScene(scene);
        primaryStage.show();
I'm running on Ubuntu with jdk-8-ea-bin-b111-linux-i586-10_oct_2013. I tested with jdk 1.7.0_40 and the buttons don't show.
I'd include screenshots but the button to add images is disabled.
Thanks for the help

The issue is with the bind definition in the FXML, if you remove that definition, the buttons will display.
   prefHeight="${textField.height}"
I think the binding is working, but when there is some kind of error (bug) in the layout process such that the scene is not automatically laid out correctly when the binding occurs.
You can get exactly the same behaviour by removing the binding definition in FXML and placing it in code after the load.
            browseButton.prefHeightProperty().bind(textField.heightProperty());
When the scene is initially displayed, the height of all of the text fields is 0, as they have not been laid out yet, and the browser button prefHeight gets set to 0 through the binding.
That's OK and expected.
Then the scene is shown and a layout pass occurs, which sets the height of the text fields to 26 and the prefHeight of all of the browser buttons adjust correctly.
That's also OK and expected.
Next the height of one of the buttons is adjusted via a layout pass.
That's also OK and expected.
But the height of the other buttons is not adjusted to match their preferred height (probably because a layout pass is not run on them).
That is not OK and not expected (and I think a bug).
If you manually trigger a layout pass on one of the components which did not render completely, the button will be displayed - but that should not be necessary.
You can file a bug against the Runtime project at:
   https://javafx-jira.kenai.com/
You will need to sign up at the link on the login page, but anybody can sign up and log a bug.
Here is some sample code.
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class ComponentTestApp extends Application {
  @Override
  public void start(Stage primaryStage) {
    VBox box = new VBox(5);
    box.setPadding(new Insets(5));
    TestComponent a = new TestComponent();
    TestComponent b = new TestComponent();
    TestComponent c = new TestComponent();
    box.getChildren().addAll(a, b, c);
    Scene scene = new Scene(box);
    primaryStage.setScene(scene);
    primaryStage.show();
    b.requestLayout(); // I don't understand why this call is necessary -> looks like a bug to me . . .
  public static void main(String[] args) {
    launch(args);
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import java.io.IOException;
public class TestComponent extends BorderPane {
    private static int nextComponentNum = 1;
    private final int componentNum = nextComponentNum;
    @FXML
    private TextField textField;
    @FXML
    private Button browseButton;
    public TestComponent() {
      nextComponentNum++;
        FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("TestComponent.fxml"));
        fxmlLoader.setRoot(this); 
        fxmlLoader.setController(this); 
        try { 
            fxmlLoader.load();
            browseButton.prefHeightProperty().bind(textField.heightProperty());
            System.out.println(componentNum + " " + browseButton + " prefHeight " + browseButton.getPrefHeight());
            textField.heightProperty().addListener(new ChangeListener<Number>() {
              @Override
              public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
                System.out.println(componentNum + " " + textField + " height " + newValue);
            browseButton.prefHeightProperty().addListener(new ChangeListener<Number>() {
              @Override
              public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
                System.out.println(componentNum + " " + browseButton + " prefHeight " + newValue);
            browseButton.heightProperty().addListener(new ChangeListener<Number>() {
              @Override
              public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
                System.out.println(componentNum + " " + browseButton + " height " + newValue);
                new Exception("Not a real exception - just a debugging stack trace").printStackTrace();
        } catch (IOException exception) {
            throw new RuntimeException(exception); 
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.HBox?>
<fx:root type="javafx.scene.layout.BorderPane" xmlns:fx="http://javafx.com/fxml/1"
         xmlns="http://javafx.com/javafx/2.2">
    <center>
        <TextField fx:id="textField" prefWidth="200.0" />
    </center>
    <right>
        <Button fx:id="browseButton" mnemonicParsing="false" maxHeight="-Infinity"
                minHeight="-Infinity" text="Browse"
                textAlignment="CENTER"  />
        <!--<Button fx:id="browseButton" mnemonicParsing="false" maxHeight="-Infinity"-->
                <!--minHeight="-Infinity" prefHeight="${textField.height}" text="Browse"-->
                <!--textAlignment="CENTER"  />-->
    </right>
</fx:root>
Here is the output of the sample code:
1 Button[id=browseButton, styleClass=button]'Browse' prefHeight 0.0
2 Button[id=browseButton, styleClass=button]'Browse' prefHeight 0.0
3 Button[id=browseButton, styleClass=button]'Browse' prefHeight 0.0
1 Button[id=browseButton, styleClass=button]'Browse' prefHeight 26.0
1 TextField[id=textField, styleClass=text-input text-field] height 26.0
2 Button[id=browseButton, styleClass=button]'Browse' prefHeight 26.0
2 TextField[id=textField, styleClass=text-input text-field] height 26.0
3 Button[id=browseButton, styleClass=button]'Browse' prefHeight 26.0
3 TextField[id=textField, styleClass=text-input text-field] height 26.0
2 Button[id=browseButton, styleClass=button]'Browse' height 26.0
java.lang.Exception: Not a real exception - just a debugging stack trace
  at testcomponent.TestComponent$3.changed(TestComponent.java:69)
  at testcomponent.TestComponent$3.changed(TestComponent.java:65)
  at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:347)
  at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
  at javafx.beans.property.ReadOnlyDoubleWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyDoubleWrapper.java:177)
  at javafx.beans.property.ReadOnlyDoubleWrapper.fireValueChangedEvent(ReadOnlyDoubleWrapper.java:143)
  at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:113)
  at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:146)
  at javafx.scene.layout.Region.setHeight(Region.java:915)
  at javafx.scene.layout.Region.resize(Region.java:1362)
  at javafx.scene.layout.BorderPane.layoutChildren(BorderPane.java:583)
  at javafx.scene.Parent.layout(Parent.java:1063)
  at javafx.scene.Parent.layout(Parent.java:1069)
  at javafx.scene.Scene.doLayoutPass(Scene.java:564)
  at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2341)
  at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:329)
  at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:479)
  at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
  at com.sun.javafx.tk.quantum.QuantumToolkit$13.run(QuantumToolkit.java:327)
  at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
java.lang.Exception: Not a real exception - just a debugging stack trace
  at testcomponent.TestComponent$3.changed(TestComponent.java:69)
  at testcomponent.TestComponent$3.changed(TestComponent.java:65)
  at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:347)
  at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
  at javafx.beans.property.ReadOnlyDoubleWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyDoubleWrapper.java:177)
  at javafx.beans.property.ReadOnlyDoubleWrapper.fireValueChangedEvent(ReadOnlyDoubleWrapper.java:143)
  at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:113)
  at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:146)
  at javafx.scene.layout.Region.setHeight(Region.java:915)
  at javafx.scene.layout.Region.resize(Region.java:1362)
  at javafx.scene.layout.BorderPane.layoutChildren(BorderPane.java:583)
  at javafx.scene.Parent.layout(Parent.java:1063)
  at javafx.scene.Parent.layout(Parent.java:1069)
  at javafx.scene.Scene.doLayoutPass(Scene.java:564)
  at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2341)
  at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:329)
  at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:479)
  at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
  at com.sun.javafx.tk.quantum.QuantumToolkit$13.run(QuantumToolkit.java:327)
  at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
1 Button[id=browseButton, styleClass=button]'Browse' height 26.0

Similar Messages

  • DataGrid with Custom Component not showing sub-components

    I'm hoping someone can enlighten me on this issue.
    I have a datagrid with one column which has an item renderer. It doesn't matter if the "text" data comes from a dataProvider or is static.
    If I do the following, only the first label will show up.
    <mx:DataGridColumn headerText="Column Title">
         <mx:itemRenderer>
               <mx:Component>
                   <mx:VBox>
                        <mx:Label text="{data.data1}" />
                        <mx:Label text="{data.data2}" />
                   </mx:VBox>
              </mx:Component>
         </mx:itemRenderer>
    </mx:DataGridColumn>
    However, if I change the VBox to a HBox both labels will show up.
    <mx:DataGridColumn headerText="Column Title">
          <mx:itemRenderer>
                <mx:Component>
                    <mx:HBox>
                        <mx:Label text="{data.data1}" />
                         <mx:Label text="{data.data2}" />
                    </mx:HBox>
               </mx:Component>
          </mx:itemRenderer>
    </mx:DataGridColumn>
    I'm using:
    Flex Builder 3 Standalone
    Version: 3.0.214193
    OS: Vista
    Any ideas or comments would be appreciated.

    Thanks for the reply KomputerMan.com. I've tried changing the dimensions of the VBox and no other labels appeared. Usually, when there is not enough room within the datagrid cell scrollbars will appear - you can experiment with the example below to see what I mean.
    As for radiobuttons in a datagrid, here you go. The DataGrid and its dataProvider are constructed in the same way you normally would.
    <mx:DataGridColumn headerText="Approve/Deny/Pending" width="170">
        <mx:itemRenderer>
            <mx:Component>
                <mx:HBox height="27" paddingLeft="10">
                    <mx:Script>
                        <![CDATA[
                            private function isSelected(s:Object, val:String):Boolean {
                                if ( s.toString() == val) {
                                    return true;
                                } else {
                                    return false;
                        ]]>
                    </mx:Script>
                    <mx:RadioButton groupName="approveType"
                        id="approved"
                        label="A"
                        width="33"
                        click="data.status='1'"
                        selected="{isSelected(data.status, '1')}"/>
                    <mx:RadioButton groupName="approveType"
                        id="denied"
                        label="D"
                        width="33"
                        click="data.status='2'"
                        selected="{isSelected(data.status, '2')}/>
                    <mx:RadioButton groupName="approveType"
                        id="Pending"
                        label="P"
                        width="33"
                        click="data.status='3'"
                        selected="{isSelected(data.status, '3')}/>
                </mx:HBox>
            </mx:Component>
        </mx:itemRenderer>
    </mx:DataGridColumn>

  • Buttons w custom image not showing up after export

    Hi,
    I have alot of buttons created with a custom image and all function fine within CP6, but after export to .exe module the buttons loose the image and appear as white squares. They still function correctly just have lost the image. Any ideas as to why?
    Thanks!

    Hello,
    Welcome to Adobe Forums.
    I tested this same workflow at my end and it worked for me, I used "Image button" instead of "Transparent button" and imported the image, screenshots :
    Hope it helps !!
    Thanks,
    Vikram

  • How do I automate a custom component not implementing UIComponent?

    I have tried using Adobe's instructions for automating custom components by creating a delegate class to use as a mixin, but
    1)  the super() statement in the delegate of the constructor is not recognized by the compiler,
    2) I am not able to use a DisplayObject as an argument to init(),
    3) I am not able to return the custom component as a IAutomationObject from the parent component's getAutomationChildAt method.
    Is it simply not possible to automate a custom component not implementing UIComponent?

    If you look in the library panel, there should be an entry for your custom component - probably something like CustomComponent1.mxml. Drag this out onto the artboard to create a new instance of the component.
    In the case of a custom component, you can't change much on the second instance. If you have something like a text input skin though, you can change the text it is displaying for each instance.
    We are working on making this sort of thing easier in the future, so stay tuned

  • Payment from the customer is not showing in the lockbox transaction.

    Hi all,
    When i execute transaction code FLB1, I could not able to find lockbox and  customer did the payment  but it was not reflected in sap.
    Payment from the customer is not showing in the lockbox transaction.
    Please suggest and gide me with solution what could be the reason  i am not awear of lockbox process.
    Regards,
    JC
    Edited by: jcnaidu on Sep 17, 2010 6:41 AM

    The messages are getting to the recipient...
    I am on a Comcast IMAP server if this has anything to do with it and the server settings are following the correct server port numbers, SSL settings, etc... I save Sent messages on the IMAP server for 90 days.... None of these "disappearing" messages were on the server for more than a couple of days.. Typically, these messages will get 'hung' in the Outgoing Mailbox for @30 seconds before sending... like they are being scanned for viruses or Mail can't connect to the server all of a sudden...
    I anybody else here is on a Comcast IMAP server, and having this problem of disappearing Sent messages... This would tell us that it might be a Mail Provider issue with their outgoing server...
    --prd54usa

  • Custom SSIS Data Flow Component Not Showing in Toolbox or GAC

    Hello - I have created a very simple data flow component for SSIS (Actually, I am following this example:  http://www.microsoft.com/downloads/details.aspx?familyid=1C2A7DD2-3EC3-4641-9407-A5A337BEA7D3&displaylang=en).
     However, when I register the DLL to the GAC, I am unable to find the assembly in C:\Windows\Assembly - even though the GACUTIL says "Assembly Registered Successfully".  Furthermore, after copying the DLL to the PipelineComponents folder for SSIS
    (C:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents), it does not show in the "Choose Items . . ." dialog box of SSIS.  
    I am running SQL Server 2008 Dev edition, Visual Studio 2010 with .NET 4.0, and Windows 7 Enterprise 64-bit edition.  Any assistance/thoughts would be appreciated.
    Thanks!

    Hi,
    I was struggling with exactly the same problem yesterday.. created a component in VS 2010 (.NET 4.0), registered the component using GACUtil with no error, but not being able to find the component in the cache directory nor in the SSIS toolbox...
    I spend several hour trying to find out whats going on. Then I tried to run the GACUtil from a dos batch file - and an error appeared saying that I am trying to register assebly .NET 4.0 on a computer that runs 3.5.. Then changed the target framework
    in VS 2010 to 3.5, rebuild the project and voila- the component finally appeared in the toolbox list...
    this is the batch i used to register assembly:
    REM Unregister and re-register the assembly on the GAC
    "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\gacutil" /u ChangeCase
    "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\gacutil" /i "C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents\ChangeCase.dll"
    pause
    this batch will show the list of assemblies in the GAC:
    "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\gacutil" /l > gacListing.txt
    hope this helps...
    Frank

  • Custom Genre Not Showing Up In Apple's Music App [02/20/2015]

    Hello, I have the iPad mini 2 Model: A1489 16GB @ iOS 8.1.3
    I have made 2 custom genres that show up just fine in the Genres tab with every song belonging to these respectable genres. I also have 'Instrumental' and 'Piano' genres that I'm not sure if qualifies as custom genres, but they work well too.
    However, my latest custom genre 'A Cappella' is not showing up with the rest of the genres. The 1 album that I have for this genre shows up in the Albums tab and the songs show up in the Songs tab. The album also shows up after selecting the artist in the Artists tab, but does not show up in Genres.
    There are 2 songs in this genre, but they are my favorite and I want to be able to get to them quickly. ^.^
    The genre does show up in iTunes, Windows Media Player, and the Meta Data is all there when I look at the properties of the files. I can't seem to find out what other differences the working genres' and the non-working genre's songs have except that they have different genres.
    Every song on my Ipad has the same Artist. <<<<(If that helps....)
    Thank you for your help, whoever helps.

    This may be an issue with the ID3 tag format standards and Apple can't change those. But you can ask:
    https://www.apple.com/feedback/ipad.html

  • F-26  Customer code not showing on clearing document

    Hello,
    I usually run transaction F-26 to do customer clearings.
    I dont know what happened for this customer that when I simulate the clearing document the customer line disappear.
    The document is cleared normally but the customer code line item does not show on the clearing document (type "CM"-cheque)
    PS: When I run F-26 I insert any bank account and amount 0.00 just to specify  the document numbers on "additional selections"
    I dont know why this happened just this time. I´ve analyzed customer master data on XD03 but I dont know if its something related to this.
    What else could I check ?
    Thanks,
    Alex

    Hi Kyoko,
    I agree with you that system probably is working as intended, and also I don't think F-26 is the ideal transaction for this.  Probably F-13 is more appropriated.
    Anyway, the 2 documents for customer "Y" are with zero balance clearing too (the same as customer "X") but the customer line item appears on the clearing document.
    We usually run F-26 to clear more than 2 customers also. We inform the document numbers on additional selection.
    So I still need to know why the item line for customer "X" did not appear on clearing document
    Regards,
    Alex

  • Uploaded custom, theme not showing in repository

    I have copied a existed theme_4 from images/themes/theme_4 to them_200.
    when i am trying to export the same from repository, that is not showing in the list..
    I have followed the below steps to create new custom theme
    1) in images/themes/theme_4 copied the theme_4 directory to theme_200 direcotory
    2) changed the CSS files, as per our requirements.
    3) should export the them_200, changed one (not showing in repository list) currently stuck
    4) after exporting the theme_200.sql , need to replace t4 and etc.... with t200 etc
    5) importing the changed one into repository.
    currently i am stuck with step 3, can you please help me on this...

    1) I copied from theme_4 to Theme_200.
    2) I have followed the steps from the below link.
    http://rianne.andama.nl/blog/index.php?option=com_content&view=article&id=101:custom-themes-oracle-apex&catid=20:oracle&Item
    Now I am trying to export the theme_200, but theme_200 is not visible in the list of themes to export.

  • Custom icons not showing up in installer dialogs

    What are the steps that are required to get a custom icon to show up in the installation dialogs?
    I have custom icons setup in the application descriptor xml file for my app... and they do show up in the OS after I install the application but I don't see the icon showing up in the install dialogs.
    Any ideas why the custom icons are not showing up in the installation dialogs?
    Here is what TweetDecks installation dialog looks like... (this is what I want)
    Here is screenshot of what my installation dialog looks like...

    You need to sign your app with a certificate that chains up to a trusted root certificate. In general that means you need to get a cert from verisign or someone like that. If you get the friendly warning dialog on the first installer screen rather than the scary one with lots of red x's, you should then see your image

  • Share buttons on Blogspot are not showing up.

    This is my blog address: http://realityhideseek.blogspot.com/
    I have www.addtoany.com share buttons under each post that show up in Chrome, but not in Firefox. I've read several help articles, but none seem to do any good. This is only since the upgrade to FF 25. Some other problems also happened to my blog, which I have since fixed. This is the only one I can't figure out.

    If you use extensions (Firefox/Tools > Add-ons > Extensions) that can block content (e.g. Adblock Plus, NoScript, Flash Block, Ghostery) then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Custom component not found by jsf (mojarra)

    Coming from this link http://forums.sun.com/thread.jspa?threadID=5446475&tstart=0
    I have managed to get things together but for some reason, my app is not able to find the custom component at runtime. I have the component configured in my web.xml so that is not it. I am not sure if this has something to do with the fact that I am not able to see any JSF 2.0 annotations during runtime. I actually using spring for my component scan due some issues I had earlier on with JSF. At that time I was told that because I am using maven tomcat plugin for development, I might not be able to get that working. The explanation was that maven tomcat plugin uses tomcat 6.012 that does not support something, I cannot remember that makes JSF behave properly. Some advised me to use jetty but I have had a chance to try that. Has someone faced this kind of issues before? If so please let me know I am running out of time for this project. Thanks a million in advance.
    Edited by: mota_nginya on Aug 9, 2010 6:31 AM

    mota_nginya wrote:
    Coming from this link http://forums.sun.com/thread.jspa?threadID=5446475&tstart=0
    I have managed to get things together but for some reason, my app is not able to find the custom component at runtime. I have the component configured in my web.xml so that is not it. I am not sure if this has something to do with the fact that I am not able to see any JSF 2.0 annotations during runtime. I actually using spring for my component scan due some issues I had earlier on with JSF. At that time I was told that because I am using maven tomcat plugin for development, I might not be able to get that working. The explanation was that maven tomcat plugin uses tomcat 6.012 that does not support something, I cannot remember that makes JSF behave properly. Some advised me to use jetty but I have had a chance to try that. Has someone faced this kind of issues before? If so please let me know I am running out of time for this project. Thanks a million in advance.What do you mean you have the component configured in web.xml? While I can't say what effect Spring has on things as I don't use Spring, all you need are the annotations on the component, the entries in the -taglib.xml if you're using facelets, and an "empty" (root-element only) faces-config.xml set to version 2.0 in the jar if the component is jarred (as opposed to being part of the .war).
    When you say JSF can't find your component, are you getting an error message? Does the tag just appear in the browser unprocessed?
    Testing on GlassFish would be helpful (for me) as there are no known issues there in this area.

  • ProRes Setups in Custom Settings not showing up as Easy Setups 7.0.3

    Having trouble on a client's workstation:
    We have all of the "Additional Setups" copied into both the
    "HD>Library>Application Support>Final Cut Pro System Support>Custom Settings"
    as well as the
    "USER>Library>Preferences>Final Cut Pro User Data>Custom Settings"
    folders, but several of them do not show up at all in the Easy Setups dropdowns.
    Why is this, and how do I fix it for them?

    Best support for FCP I've found are here...
    http://discussions.apple.com/forum.jspa?forumID=939&start=0
    http://forums.creativecow.net/applefinalcutpro
    Have you tried trashing prefs? (thanks to Jon Chappell and the folks at Digital Rebellion)
    http://www.digitalrebellion.com/prefman/
    On last upgrade/update of FCP, did you do a full Archive/Install, or did you use Migration Assistant or upgrade/update directly over an existing installation?
    You might click on 'My Public Profile' at top right of this page and fill in some system specs...helps us help you.
    K

  • Custom component not working properly

    Hi all - I am trying to create a custom component. I have followed the suggested MVC architecture, and created the following classes:
    1. SuperLineModel (the MODEL)
    2. SuperLine (the actual component,e.g. the CONTROLLER)
    3. BasicSuperLineUI (the UI Delegate class, e.g. the VIEW)
    4. SuperLineUI (an abstract type class for my UI Delegate)
    I also have a fifth class that draws a frame and panel, and then adds the custom component to the panel. In the main method of this class, I
    register the UI delegate like this:
    UIManager.put(BasicSuperLineUI.UI_CLASS_ID, "com.volant.mapit.view.BasicSuperLineUI");Everything compiles without any problems, but the custom component is never painted for some reason. In fact, I added a print line to the UI delegates paint method just to see if it was ever called, and it wasn't. I know I'm missing something here, and it's probably something small. I'm hoping some of you Swing gurus can take a look at my code below and point out the problem for me.
    I really appreciate any help you can give me. Thanks.
    The classes are listed below:
    // SuperLineModel
    import javax.swing.*;
    import javax.swing.event.*;
    public class SuperLineModel
      private double sourceXCoord = 0;
      private double sourceYCoord = 0;
      private double targetXCoord = 0;
      private double targetYCoord = 0;
      private EventListenerList listenerList = new EventListenerList();
      public SuperLineModel()
      public SuperLineModel(double sourceXCoord, double sourceYCoord,
                           double targetXCoord, double targetYCoord)
        this.sourceXCoord = sourceXCoord;
        this.sourceYCoord = sourceYCoord;
        this.targetXCoord = targetXCoord;
        this.targetYCoord = targetYCoord;
      public void setSourceXCoord(double x)
        this.sourceXCoord = x;
        return;
      public void setSourceYCoord(double y)
        this.sourceYCoord = y;
        return;
      public void setTargetXCoord(double x)
        this.targetXCoord = x;
        return;
      public void setTargetYCoord(double y)
        this.targetYCoord = y;
        return;
      public double getSourceXCoord()
        return this.sourceXCoord;
      public double getSourceYCoord()
        return this.sourceYCoord;
      public double getTargetXCoord()
        return this.targetXCoord;
      public double getTargetYCoord()
        return this.targetYCoord;
      public void addChangeListener(ChangeListener cl)
        listenerList.add(ChangeListener.class, cl);
      public void removeChangeListener(ChangeListener cl)
        listenerList.remove(ChangeListener.class, cl);
    // SuperLine
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import com.volant.mapit.view.*;
    import com.volant.mapit.model.*;
    public class SuperLine extends JComponent implements ChangeListener
      private SuperLineModel model;
      public SuperLine()
        init(new SuperLineModel());
      public SuperLine(SuperLineModel model)
        init(model);
      public void init(SuperLineModel model)
        setModel(model);
        setMinimumSize(new Dimension(50, 50));
        setPreferredSize(new Dimension(50,50));
        updateUI();
      public void setUI(BasicSuperLineUI ui)
        super.setUI(ui);
      public BasicSuperLineUI getUI()
        return (BasicSuperLineUI)ui;
      public void updateUI()
        setUI((BasicSuperLineUI)UIManager.getUI(this));
        invalidate();
      public String getUIClassID()
        return SuperLineUI.UI_CLASS_ID;
      public SuperLineModel getModel()
        return model;
      public void setModel(SuperLineModel model)
        SuperLineModel oldModel = model;
        if(oldModel != null)
          oldModel.removeChangeListener(this);
        if(model == null)
          model = new SuperLineModel();
        else
          model.addChangeListener(this);
        firePropertyChange("model", oldModel, model);
      public void stateChanged(ChangeEvent evt)
        repaint();
    // BasicSuperLineUI
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    import com.volant.mapit.control.*;
    public class BasicSuperLineUI extends SuperLineUI
      public static ComponentUI createUI(JComponent c)
        return new BasicSuperLineUI();
      public void installUI(JComponent c)
        SuperLine sl = (SuperLine)c;
      public void uninstallUI(JComponent c)
        SuperLine sl = (SuperLine)c;
      // This method is never called and I don't know why!!!
      public void paint(Graphics g, JComponent c)
        super.paint(g, c);
        System.out.println("test2");
        g.fillRect(0, 0, 200, 400);
    // SuperLineUI
    import javax.swing.plaf.*;
    import com.volant.mapit.control.*;
    public abstract class SuperLineUI extends ComponentUI
      public static final String UI_CLASS_ID = "SuperLineUI";

    A quick glance at the code and it looks ok with the exception of the following which I don't understand what you're trying to do:
      public void installUI(JComponent c)  {
        SuperLine sl = (SuperLine)c;
      public void uninstallUI(JComponent c)  {
        SuperLine sl = (SuperLine)c;
      }Here are my comments:
    1) I expect Superline sl to be a global variable for use elsewhere in your program.
    2) I have no idea what your uninstallUI does.
    This is what I would do:
      SuperLine sl;
      public void installUI(JComponent c)  {
        sl = (SuperLine)c;
      public void uninstallUI(JComponent c)  {
      }Finally, I am assuming that the changelistener will trigger a repaint which in turn will call your paint method, right?
    ;o)
    V.V.

  • My custom component not clickable

    Hi,
    I'm creating custom component and when I add it to page I can't click it. When I add it to the bottom of page, the parsys overlaps this component and when I add component behind my custom component, it overlaps it too which means I can't edit/delete my cust. component. What am I doing wrong? Here is the code
    <%@include file="/libs/foundation/global.jsp"%>
    <%@page import="com.day.text.Text" %>
    <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %><%
    String home = Text.getAbsoluteParent(currentPage.getPath(), 2);
    %>
    <p>
    <div class="download">
    <div class="fl mr30">
      <cq:include path="download-file" resourceType="project20130820v01/components/component_008_vybrat-soubor" />
    </div>
    <div class="fl">
      <cq:include path="download-file2" resourceType="project20130820v01/components/component_008_vybrat-soubor" />
    </div>
    </div>
    </p>
    and properties are set to this
    I'm thankfull for any help.

    After some test, I found that overriding value property in my custom component cause this proplem.Why overriding value property cause this problem?

Maybe you are looking for

  • Run Time Stats

    Hi All, If i execute a sql statement in editor i get the execution details .. Is there a way to capture those  results i mean the time to execute the SQL Statement Thanks

  • How to delete photos in extra albums on iphone 5?

    How to delete extra photo albums?

  • S.M.A.R.T -- a little guidance perhaps?

    Well just suddenly my computer started to lock up, then it wouldn't restart, finally after single user log in I got back on only to find Disk Utility telling me that my HD is no longer S.M.A.R.T verified - it was failing... Now according to the help

  • Query rgdng hiding reports in obiee

    Hi, I have a section having 5 reports.I want to show only those reports which returns data.I want to hide altogether the reports which don not return any data.I don't even want to display any no result message.Also I want all these reports in one sin

  • Error in financial document

    When trying to change an Sales standard order for a material, system is showing a message that "Financial documents : No financial document assigned" .  What is this message means ? Moderator: Please, avoid asking basic questions