Custom Component Not Updating Display List

Hi all... I've created a component which is basically a meter (extends skinnable container). The skin to the component contains two rectangles (background and the actual meter).  This component receives an arraycollection with the following fields value, max and min(the arraycollection I am passing is Bindable). When I initialize and pass the data to be used to draw It works great (keep in mind - only works the first time).  I've created a button that changes the data array and shows the current meter value.  Apparently the meter's value is changing everytime I modify the ArrayCollection I've set to be used for rendering.(dont want to say "dataProvider" because it is not a Flex dataprovider, just a variable )... here is the code...
   public class meter extends SkinnableContainer {
        [SkinPart( required = "true" )]
        public var meter:spark.primitives.Rect;
        [SkinPart( required = "true" )]
        public var meterBackground:spark.primitives.Rect;
        private var _dataProvider:ArrayCollection;
        private var _renderDirty:Boolean = false;
        public function Meter() {
            super();
        public function set dataProvider( value:Object ):void {
            if ( value )
                if(value is ArrayCollection)
                       _renderDirty = true;
                    _dataProvider = value as ArrayCollection;
                if(_dataProvider)
                    _dataProvider.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, propertyChanged);//used both eventlisteners but none actually ever fire off
                    _dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,collectionChanged);
                invalidateDisplayList();//only happens the first time
        private function collectionChanged(event:CollectionEvent):void
            Alert.show("In collection Change");//this never goes off when I change the "dataProvider"
            _renderDirty = true;
            invalidateDisplayList();
        private function propertyChanged(event:PropertyChangeEvent):void
            Alert.show("In property Change");//this never goes off when I change the "dataProvider"
            _renderDirty=true;
             invalidateDisplayList();
        public function get dataProvider():Object {
            return _dataProvider;
        override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void {
            if(_dataProvider))
            var span:Number = unscaledWidth / _dataProvider[0].max;
            var meterWidth:Number = _dataProvider[0].value * span;
            meter.width = meterWidth;
            _renderDirty = false;
And this is the mxml code where I change the "value" field....
<fx:Script>
<![CDATA[
[Bindable]
            private var meterData:ArrayCollection = new ArrayCollection([               
                {value:80, max:100, min:0}
            protected function mySlider_changeHandler(event:Event):void
                meterData[0].value = Math.round(mySlider.value)*10;               
            protected function button1_clickHandler(event:MouseEvent):void
                // TODO Auto-generated method stub
                var array:ArrayCollection = testMeter.dataProvider as ArrayCollection;
                var value:Number = array[0].value as Number;
                Alert.show(value.toString());
               // testMeter.meter.width= Math.random()*100;
        ]]>//initial value in "meterData" does get drawn...but when it's changed with the slider..nothing happens..
       <custom:Meter id="testMeter" dataProvider="{meterData}" />
        <s:HSlider id="mySlider"
                   liveDragging="true"
                   dataTipPrecision="0"
                   change="mySlider_changeHandler(event)"
                   value="3"/>
        <s:Button click="button1_clickHandler(event)"/>
Can you help me figure out what's going on??Thanks guys!!!

Hi.
Now there are some serious bugs in your code:
Put a call to super.updateDisplayList(unscaledWidth, unscaledHeight) in your overriden method (or some funky things will start happening or it won't work at all).
Why don't you check your _renderDirty flag in the updateDisplayList() method? You should do that (personally I would go with commitProperties() instead but it's not much of a difference I guess)
And now the reason why your events don't fire is that because you use plain objects (just generic istances of Object). Those are not IEventDispatchers and therefore do not fire any events when you change any of the properties (which are all dynamic by the way). You have to define a custom value object class which extends the EventDispatcher (or you can implement IEventDispatcher on your own). So instead of this:[Bindable]
private var meterData:ArrayCollection = new ArrayCollection([
   {value:80, max:100, min:0}
You should do something like this:[Bindable]
private var meterData:ArrayCollection = new ArrayCollection([
   new MyValueObject(80, 100, 0)
Where MyValueObject could look like this:// this instructs MXML compiler to automaticly implement IEventDispatcher
// and make all public properties bindable
[Bindable]
public class MyValueObject
   public function MyValueObject(value:Number, max:Number, min:Number) {
      this.value = value;
      this.max = max;
      this.min = min;
   public var value:Number;
   public var max:Number;
   public var min:Number;

Similar Messages

  • 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

  • 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

  • Sharepoint Foundation Can not update External List by Work Flow

    Hi
    I try to update External List by other list Work Flow, in Sharepoint 2010 Foundation.
    Here is the manual: 
    http://msdn.microsoft.com/en-us/library/office/ff394479(v=office.14).aspx
    But it fails , and the error message is “The
    workflow could not update the item in the external data source. Make sure the user has permissions to access the external data source and update items.”
    Is there some limited in Foundation?

    http://social.technet.microsoft.com/Forums/en-US/0bb9ef28-3614-4db2-b19f-dd81e8cc2d42/the-workflow-could-not-update-the-item-in-the-external-data-source?forum=sharepointgeneralprevious
    With no Secure Store in Sharepoint what we ended up doing was creating a new external content type, adding a new connection and picking a connection type of .net type instead of sql.  This means we needed to create a .net app as the go between but within
    .net we had all the usual tools for connecting to sql without permission issues.
    Also check
    http://wyldesharepoint.blogspot.in/2010/06/setting-up-external-content-type-for.html
    If this helped you resolve your issue, please mark it Answered

  • 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.

  • 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.

  • Regarding customer account not updated properly

    Hi gurus
    My customer account is not updated plz solve my issue.
    one material is sold to customer for rs 9/- insted of rs 10/- the difference amount is posted in sd side, all  taxes are updated in background processing. How we will update in customer.
    Plz suggest
    Edited by: Ravi Kanth on Jan 6, 2009 6:02 PM

    Hi there,
    According to == the FAQ ==
    "The recurring payment is taken three days in advance of your subscription expiring, to ensure prompt delivery of your subscription."
    Hth
    On ne regarde pas l'avenir dans un rétroviseur !
    IMac Intel Core i3 3.2 GHz - RAM 12 GB - OS 10.10.3
    Skype 7.8.391
    Logitech usb headset or Jabra 250 bt

  • Customer Master not updated when creating BP- BAPIBUSISM007_CREATEFROMDATA

    Hi All
    When I creating BP with TCODE BP-with BP role ISM020 , BP is created and all the tables are updated.
    But when I create BP programmatically with the BAPI -BAPIBUSISM007_CREATEFROMDATA
    Though the BP is created ,But The customer master tables are not updated(KNVV,KNB1,KNA1)
    Only table jjtvm is updated.
    Hence when we create SALES order , the msg appers that the  'ROLE MEDIA CUSTOMER DOES NOT EXIST FOR BP(BPNO)
    Need some help.
    regards

    HI
    Thanks for the reply.
    It is indeed very  helpful .
    I created the BP with my program and then run MDS_ppo2  TCODE
    Where I saw the missing field knvv-vkgrp,  KNVV-VKGRP: Required field check failed
    I am using the BAPI  BAPIBUSISM007_CREATEFROMDATA for creating BP, in this in none of importing parameters can i send this value to the table,
    Infact I tried with the update  statement  to send this value to the database for the BP no craeted , but failed as there is no line in KNVV for the BP created ..
    Now What should I check for.? pl do tell
    Thanks & Regards

  • Do Not Update Display when running Batch Processes

    This has been the case since the beginning of time so it would be great if this could be sorted.
    I'm sure batch processes would be immeasurably faster if Audition didn't update the waveform display with every single process. When I'm batching hundreds of WAV files this makes things sllllooooowwwwww.
    An option before running the batch to 'do not update waveform display' would be a godsend.

    Bump

  • 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?

  • Dialog not on display list getting key down events

    Hi all,
    I have a listener on the stage listening for KEY_DOWN events.
    I show a dialog (MovieClip containing a TextField). Click a button
    on the dialog to close the dialog. ("close the dialog" == remove
    the MovieClip from the display list - the dialog instance is still
    around, which I think is part of the issue)
    Now, the stage's listener no longer gets KEY_DOWN events
    until I click somewhere on the stage. The dialog's text field is
    getting the key events. (I don't normally add a KEY_DOWN listener
    to this dialog, but I did as a test to see if it was indeed getting
    the events.)
    How can I get the stage to get KEY_DOWN events again without
    clicking it first? There seems to be no way to explictly set
    keyboard focus that I can find.

    Hi. What happens if you simply request focus to the
    MainTimeline? That should seem to do the trick. If focus is on a
    removed element (but it still has focus, which seems weird), the
    the stage won't get any events.
    ( 'i' before 'e', except after 'w')

  • Can't update display list

    Hallo, i need a little help. I have a list and i need to set the actual selection to null... I think the way is
    this.myList.selectedIndex = -1;
    or
    this.myList.selectedItem = null;
    Right??.. But the display doesn't update cause i still see that element selected. I tried with invalidateDisplayList but it doesn't work.
    Thx
    Max

    extension of the adobe list example
    <?xml version="1.0"?>
    <!-- Simple example to demonstrate the Spark List component -->
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
        <fx:Script>
            <![CDATA[
                import spark.events.IndexChangeEvent;
                //this function is called when the selection is going to change
                private function selectionChangingHandler(evt:IndexChangeEvent):void {
                    var item:* = list.dataProvider.getItemAt(evt.newIndex);
                    if (item.type != "employee") {
                        evt.preventDefault();
                private function resetList():void
                    list.selectedIndex = -1;
            ]]>
        </fx:Script>
        <s:Panel title="Spark List Component Example"
                 width="75%" height="75%"
                 horizontalCenter="0" verticalCenter="0">
            <s:VGroup left="20" right="20" top="20" bottom="20">
                <s:Label width="330"
                         text="Select a name to see employee's phone number. You should not be able to select the first name."/>
                <s:List id="list" changing="selectionChangingHandler(event);">
                    <!-- itemRenderer is inline in this sample -->
                    <s:itemRenderer>
                        <fx:Component>
                            <s:ItemRenderer>
                                <s:states>
                                    <s:State name="normal" />
                                    <s:State name="hovered" />
                                    <s:State name="selected" />
                                </s:states>
                                <s:Rect left="0" right="0" top="0" bottom="0">
                                    <s:fill>
                                        <s:SolidColor color="0x999999" alpha="0" alpha.hovered="0.2"
                                                      alpha.selected="0.6" />
                                    </s:fill>
                                </s:Rect>
                                <s:Label id="nameLabel" text="{data.lastName}, {data.firstName}" top="5" left="5" right="5" />
                                <s:Label y="20" id="phoneLabel" text="{data.phone}" includeIn="selected" top="25" bottom="5" left="5" right="5" />
                            </s:ItemRenderer>
                        </fx:Component>
                    </s:itemRenderer>
                    <s:dataProvider>
                        <s:ArrayList>
                            <fx:Object type="hr" firstName="Ann"  lastName="Green"  />
                            <fx:Object type="employee" firstName="Tom"  lastName="Smith" phone="415-155-1212" />
                            <fx:Object type="employee" firstName="John" lastName="Black" phone="408-344-1234" />
                            <fx:Object type="employee" firstName="Jane" lastName="White" phone="415-235-7878" />
                            <fx:Object type="employee" firstName="Bill" lastName="Jones" phone="415-875-7800" />
                        </s:ArrayList>
                    </s:dataProvider>
                </s:List>
                <s:Button label="reset" click="resetList()"/>
            </s:VGroup>
        </s:Panel>
    </s:Application>

  • Bugs with Custom Status not getting displayed on Product Backlog and Sprint Backlog

    We added a couple of new states to the Work Item Type of Bug. We want all the bugs to show up in the Sprint Backlog items.
    In order to do this we added the custom states in Common Process Configuration file using witadmin and also in the Workflow tab of "Bug" using TFS Power Tools.
    The excerpts from the Common Configuration file for this is: 
    <BugWorkItems singularName="Bug" pluralName="Bugs" category="Microsoft.BugCategory">
       <States>
          <State value="New" type="Proposed"/>
          <State value="Open" type="Proposed"/>
          <State value="Deferred" type="Proposed"/>
          <State value="Approved" type="Proposed"/>
          <State value="Committed" type="InProgress"/>
          <State value="Ready
    For QA" type="InProgress"/>
          <State value="Devlopment
    in Progress" type="InProgress"/>
          <State value="Done" type="Complete"/>
          <State value="Closed" type="Complete"/>
          <State value="Reopen" type="Complete"/>
          <State value="Fixed" type="Complete"/>
       </States>
    </BugWorkItems>
    I assumed that this should have been sufficient to display all the Bug Work Items with these custom states.
    So, I created a new bug that had the state of "New" in the system. It was visible in the Product Backlog.
    When I changed the same work item's state from New to
    Open and save, the bug is removed from the backlog with this message.
    [Title] was removed because of your recent changes.
    The following changes removed the item:
    State was set to: Open
    Even after refreshing the page, the same work item does not appear in the product backlog page or the Sprint Backlog page.
    Any idea why this could happen?
    TSF Version : TFS 2013
    The Error I am getting on the Settings Page is :
    Page -> Control Panel > CollectionName > FabrikamFiber > FabrikamFiber Team
    Overview Tab > Settings Page
    Under BUGS sections:
    TF400917: The Current Configuration is not valid for this feature. This Feature cannot be used until you correct the configuration.

    Hi Augustya,
    I'd like to know the version of TFS you're using, and how did you customize the Common Process Configuration file for display the bugs on backlog page.
    You can add bugs or other work item types to appear in either the task board or the product backlog, but not both. I have a try and it wroks for me, you can follow the links below to add bugs to the backlog pages and check if it works.
    https://msdn.microsoft.com/en-us/library/jj920163.aspx?f=255&MSPPError=-2147217396
    http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/12/add-bugs-to-the-task-board-or-backlog-pages.aspx
    Best regards,

  • Custom field not getting displayed in SUS PO item level

    HI all,
    We are using SRM 5.0, ECC6.0 and ECS scenario.
    As per SAP note 762984, we have enhanced the structures such as :
    INCL_EEW_PD_ITEM_CSF_SUSPO
    INCL_EEW_PD_ITEM_CSF
    and have added a record in the following place in SPRO:
    Supplier Relationship management-> Supplier self service->Make field control settings for tables.
                  | Item   | Display | Z.PO.ITM.VIEW
                  | Item   | Change  | Z.PO.ITM.EDIT
    But we are unable to display the field in the SUS screen.
    We had also referred to the following blog :
    /people/yeusheng.teo/blog/2008/01/05/ordering-unit-vs-order-pricing-unit-in-srm-sus
    but had no success.
    Please let us know if we did something wrong or are we missing something.
    Also please let us know if BSP changes are really necessary to do this as neither in the SAP note nor in the above mentioned blog, there is any mention about this.
    Regards
    Kishan

    Hi Bharadwaj,
    Thank you for your inputs. I executed the program but it didn't display the field.
    But I was able to rectify it by re-creating the steps mentioned in the blog (see original post). I had missed giving correct positions to the custom field.
    Regards
    Kishan

  • Custom Fields not being displayed.

    Hi Experts,
    I have recently done a EEWB enhancement and also CRMV_SSC configuration to enable display of a custom field for my support notifications.
    However these custom fields are not appearing. This looks like an issue with the configuration in CRMV_SSC, however I am not sure of how find the Screen Panel and Profile to confirm the changes in this.
    Would like to know if any of you have faced similar issue or if you have any idea about the configuration of EEWB changes in CRMV_SSC.
    Thanks,
    Aditya

    Hi Stephane,
    Thanks for the blog, however I had already gone through that.
    I figured out the problem - our configuration was a little different. Instead of using the screen profile - SRV_SLFN_1, we were using the screen profile - SRV_SLFN_2.
    I found this by checking CRMV_SSC, Scrn Profile select. option - here the associated screen profile and transaction type were given.
    Thanks for the help.
    Regards,
    Aditya

Maybe you are looking for

  • Bsx error in migo

    Hi Experts, I have created my own chart of accounts ( not copied from standard INT ). While trying to post MIGO, the following error is getting displayed. 1) Account determination for entry XXXX BSX not possible. when i try to lead through the diagno

  • Accessing ACTIVE DIRECTORY FROM JAVA CODE

    I am trying to access the Active DIrectory user through a java code. Kindly let me know the steps apart from creating the user in ADS to be followed so that the following java code may work. presently it is giving the following error. problem serchin

  • LWA guest portal ISE & 4400 7.0.x

    Has anyone managed to guest LWA working with ISE for wireless guest portal access?  Examples seem to skip bits and I can't find anyone that has managed to get it working.  I have Cisco 4400 WLCs running latest 7.0 code and ISE 1.1.2. All guest portal

  • User Exit at line item level

    Hi all.... I need a user exit which is applicable at line item level. The field 'first date' in line item, is same as first line in scehdule line.If i update 'first date in line item, the schedule line gets updated automatially. According to my requi

  • PCI 6220 digital I/O CB68LPR

    Hi, I would like to know how to connect the PCI 6220 with CB68LPR for digital input and output? appreciate your answers. regards, nazreen