Missing prpoerty in new custom component

Hi ,
I try a custom label component. When I add it into the form, some default properties are missing e.g. text.
Any idea ?
Do I missing something in the taglib ?
Thanks
Wilson

Hi Wilson,
Please take a look at the thread below:
http://swforum.sun.com/jive/thread.jspa?threadID=48814
This might be of help to you
Thanks
RK.

Similar Messages

  • Opinion: new Package for every new custom Component?

    Hi there,
    I am just thinking of some possibilities to structurize my Components I made.
    I wonder if it is useful/good programming to define a new package for each new custom Component?
    So if I define a new MyComponent class extending JFrame should I make a new package:
    "mycomponent"
    containing these subfolders:
    "view"
    "model"
    "controler"
    subfolging "controler" in:
    "listeners"
    "adapters"
    "events"
    Is there any sense to do so? I think this would be the best way to structurize one's components.
    But if you do, you have to include millions of packages if you want to use one of these components :(.
    Please post, what you think.
    Thank you
    Sincerely
    Karlheinz Toni

    nope ;). I would most certainly not want to put every file in a single directory.
    But I like sturctured things. If things belong to each other, it should be visible at once, that they have something to to with each other. And the best method I can figure you is putting them in one package.
    The subpackages should be created, because of the model, that is used for all swing componentd (UI-delegete, MVC...) so that each structural component is where it belongs to.
    I don't like it if tere are 100 events one object could possibly create and you don't know the events from the component (of course you can guess by the name Event :)), but if they are in the same package, you would have to scroll a long way to get the thing you want (either m, v or c).
    So this is why I would do it ;).
    Anyway: do includes make the program run slower (I have read many threads about it, but there are way to many opinions, so I would be grateful if you post your opinions here, thx ;).
    Thanks for your answer,
    Sincerely
    Karlheinz Toni
    p.s.: why wouldn't you put them in a seperate directory (just overkill?), would you use classes that are structured like this if you are looking for a implementation of something and find it in this structure?

  • Error when start a new Custom Component

    Hi,
    I've created and installed a new basic Custom Component, but when I try to run it I get a error.
    Here the Eclipse error log:
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
    at com.adobe.idp.dsc.registry.component.client.ComponentRegistryClient.start(ComponentRegist ryClient.java:226)
    at com.adobe.common.utils.ServiceRegistryUtils.startComponent(ServiceRegistryUtils.java:624)
    Caused by: ALC-DSC-005-000: com.adobe.idp.dsc.DSCNotSerializableException: Not Serializable
    Caused by: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
    at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.createAndDeploy(ServiceRegist ryImpl.java:1398)
    at com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl.start(ComponentRegistryIm pl.java:781)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    My component is very simple, and is based on article writen by Michael Hodgson.
    kind regards
    Valerio

    (...) What am i missing here? (...) - Sharepoint 2013 and probable bug in FIM related to it. Check this thread for workaround
    and resolution:
    http://social.technet.microsoft.com/Forums/en-US/1b76672d-1276-4c71-b9fc-5bb1fcb36877/event-id-3-with-approval-activity?forum=ilm2
    Tomek Onyszko, memberOf Predica FIM Team (http://www.predica.pl), IdAM knowledge provider @ http://blog.predica.pl

  • Missing Action Event from Custom Component

    Hi JSF Gurus,
    I have two custom components, both extends UICommand and have their
    own renderers. I use them on two seperate pages, say component1 on
    page1 and component2 on page2. And page2 is include inside page2.
    I registered an action listener on component2. When the composite page
    is rendered, I clicked on component2. However, the registered action
    listener was not invoked. Inside the debugging (I'm using IntelliJ
    IDEA 5.0) I set a breakpoint inside the decode method of Renderer2
    (renderer for component2). I do see the componen2 actually as an
    actionLister method binding being set to correct value. I do queue the
    new action event to component2 at the end of the decode method. But
    the action listerner never invoke.
    Any idea what did I miss?
    Thanks,
    Edmond

    Hi Yuki,
    Yeah, after I turn on detail JSF debugging as instructed by the book Core JavaServer Faces, I figured out I had a validation error. That solves the mystery.
    Thanks,
    Edmond

  • Modular or New Custom Component Approach : Please suggest

    Hi ,
    I am developing a Flex Application which will used within the organization of Employees
    Please suggest me , as what to approach to follow to develop this :
    After an user (Employee) of an Organization logins , he can be allowed to do various operations
    depending upon various modules .
    Should i develop each of these things using Flex Modules  approach or normal New Component ??
    please suggest an approach

    @kiran7881,
    If your each module is individually large in size and involves lot of code and stuff and if number of such modules are more then you can go with modules concept.
    Otherwise if your stuff involves simple and small operations to perform then you can go with creating normal Components approach.
    Thanks,
    Bhasker

  • How Do I Link to Custom Component States From Scrolling Content Buttons?

    Hi there, I'm in need of some help as i've got a deadline to meet within the next few weeks and im stuck!
    Basically what I've done is i've made a scrolling content lists, containing about 10 products in each one, my plan was to turn each product into a button so that users could click on that product, and take them to a new page containing more detailed information on that product; when they've finished looking at that product they can click a button to return them to the list they were on previously. However I can't just make a brand new state for each product as there is a limit to 20 states, and I will need around 50 of them.
    So, from what i've read I will need to create custom components. the only trouble with doing this is that I can't link to the custom component on a different main timeline state (I dont get the option to link to the states of the custom component).
    If i put the image of the detailed product into the scroll panel I am able to link to it, however, it's inside the scrolling content and it just scrolls around and stuff which isn't what I want; as it makes it look messy.
    - Basically I just need to link from the buttons in the scrolling list, to a more detailed page for that product. Then be able to return to the list using a button.
    If anybody has any input on how to achieve this, please help me out. Starting to panic now as this needs to be finished before september :s
    Btw i'm happy to share my .fxp file it that helps.
    Thanks alot, Hoping for some helpful replies on this topic
    - Tom

    Hi Tom,
    Adding this back here to share my wireframe with the community.
    Have put a quick .fxp together based on the 'product' section of your project.
    Take a look at how the product lists are linking into the product detail pages within their custom components. 
    Using this model you should be able to expand out to infinite product detail states.  If a particular product area has more than the maximum allowed states, just start a new custom component (part 2 for that product section).
    Let me know if you have any questions. Hope this sets you on a path to getting your project complete.  It's looking nice.
    Tanya

  • Issue in custom component in custom timecard layout-OTL

    Hi,
    I have created a custom layout based on seeded layout.Added new custom component Dept reference field to the sedded layout.
    When trying to save the timecard template including dept reference field completed.The saved timecard template is dropping Dept reference filed.therefore,it is also dropped from the exported/downloaded .csv file.
    code details:
    BEGIN HXC_LAYOUT_COMPONENTS
    "US Projects Alternate Timecard Layout-Dep field"
    OWNER = "CUSTOM"
    SEQUENCE = "226"
    COMPONENT_DEFINITION = "TEXT_FIELD"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT="US Projects Alternate Timecard Layout-Day Scope Building blocks for worker timecard matrix"
    REGION_CODE="HXC_CUI_TIMECARD"
    REGION_CODE_APP_SHORT_NAME="HXC"
    ATTRIBUTE_CODE="DEPT_REF"
    ATTRIBUTE_CODE_APP_SHORT_NAME="HXC"
    LAST_UPDATE_DATE = "2004/05/23"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS
    "US Projects Alternate Timecard Layout-Dep field"
    OWNER = "CUSTOM"
    QUALIFIER_ATTRIBUTE_CATEGORY = "TEXT_FIELD"
    QUALIFIER_ATTRIBUTE1 = "N"
    QUALIFIER_ATTRIBUTE2 = "N"
    QUALIFIER_ATTRIBUTE3 = "5"
    QUALIFIER_ATTRIBUTE4 = "1"
    QUALIFIER_ATTRIBUTE5 = "30"
    QUALIFIER_ATTRIBUTE18 = "EXCLUDE"
    QUALIFIER_ATTRIBUTE19 = "|TEMPLATE|CSV|"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "HRP"
    QUALIFIER_ATTRIBUTE27 = "Attribute3"
    LAST_UPDATE_DATE = "2004/05/23"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    Please help me in this regard....
    Thanks
    Sri...

    Did you update the export layout too and added that to preferences?
    --Shiv                                                                                                                                                                                   

  • UI delegate for a custom component

    Hello folks,
    I am trying to write (as said in the subject) a UI delegate for a custom component. I found the following in a Java FAQ (http://www.mindspring.com/~scdrye/java/faq.html#plaf_delegate):
    8.3. How do I create a UI delegate for my custom component?
    Have your component extend from JComponent (or a descendant of JComponent). Create a subclass of ComponentUI for your custom component, overriding at least the createUI() and paint() methods. To enable the new UI, override four methods of your JComponent subclass:
    public class MyComponent extends JComponent {
    public void updateUI() {
    setUI((MyComponentUI)UIManager.getUI(this));
    public void setUI(MyComponent newUI) {
    super.setUI(newUI);
    public MyComponentUI getUI() {
    return (MyComponentUI)ui;
    public String getUIClassID() {
    return "MyComponentUI";
    Well, it turns out that this is not enough. I also had to add during application start (just before initComponents()) the following:
    UIManager.put(uiClassID, uiClassName);
    to avoid exceptions during start of the program.
    Well, now my component is painted (paintComponent()) is called, but the paint() method in my new UI delegate class is not called when the application starts.
    It just gets called when I explicitily (in this case, using a menu item) change the L&F of the application.
    If this informatio is not enough, I can add some excerpts of my code for the ease of understanding!!
    Thanks a lot!

    If I code a new custom component (extending JComponent, or extending the UI delegate of a standard component) and pretend it to be laf aware then I must create the corresponding UI delegate for each laf, like it happens to be with standard swing components. But I'm not sure it is feasible to create the UI delegates for all unknown existing custom lafs.You are right, this is never going to work. I suggest if you want to make your custom component look & feel aware, you design the way it displays around the l & f of other components that are part of j2se and have l&f implementations.
    http://download.oracle.com/javase/7/docs/api/javax/swing/plaf/ComponentUI.html
    There are instructions here:
    http://download.oracle.com/javase/7/docs/api/javax/swing/LookAndFeel.html
    >
    On the other side, if I create a custom laf then I will also create a custom UI delegate for each standard component, but I can not create UI delegate for all unknown existing custom components.
    The point here is that standard components and standard lafs are universally known, while custom components (or custom ui delegates) and custom lafs are not.
    So the question is: How does a swing developer deal with the case of a new custom component that will be used in an unknown custom laf?
    For instance:
    1. Custom text UI delegate for dealing with styled documents in JTextField. See {thread:id=2284487}.
    2. JTabbedPane with custom UI delegate that paints no tab if the component only contains one tab.
    In both cases I need a UI delegate for each known laf, but what happens if the application is using a laf that certainly will not be aware of this custom functionally?
    Thank you!

  • Steps to custom component

    dears,
    i want to create new custom component , and want to use the saveState and restoreState, can any one help me ??

    You lazy kid.
    Here is an extract of HtmlInputText:
        public Object saveState(FacesContext _context) {
            if (_values == null) {
                _values = new Object[29];
            _values[0] = super.saveState(_context);
            _values[1] = accesskey;
            _values[2] = alt;
            _values[3] = autocomplete;
            _values[4] = dir;
            _values[5] = disabled;
            _values[6] = label;
            _values[7] = lang;
            _values[8] = maxlength;
            _values[9] = onblur;
            _values[10] = onchange;
            _values[11] = onclick;
            _values[12] = ondblclick;
            _values[13] = onfocus;
            _values[14] = onkeydown;
            _values[15] = onkeypress;
            _values[16] = onkeyup;
            _values[17] = onmousedown;
            _values[18] = onmousemove;
            _values[19] = onmouseout;
            _values[20] = onmouseover;
            _values[21] = onmouseup;
            _values[22] = onselect;
            _values[23] = readonly;
            _values[24] = size;
            _values[25] = style;
            _values[26] = styleClass;
            _values[27] = tabindex;
            _values[28] = title;
            return _values;
        public void restoreState(FacesContext _context, Object _state) {
            _values = (Object[]) _state;
            super.restoreState(_context, _values[0]);
            this.accesskey = (java.lang.String) _values[1];
            this.alt = (java.lang.String) _values[2];
            this.autocomplete = (java.lang.String) _values[3];
            this.dir = (java.lang.String) _values[4];
            this.disabled = (java.lang.Boolean) _values[5];
            this.label = (java.lang.String) _values[6];
            this.lang = (java.lang.String) _values[7];
            this.maxlength = (java.lang.Integer) _values[8];
            this.onblur = (java.lang.String) _values[9];
            this.onchange = (java.lang.String) _values[10];
            this.onclick = (java.lang.String) _values[11];
            this.ondblclick = (java.lang.String) _values[12];
            this.onfocus = (java.lang.String) _values[13];
            this.onkeydown = (java.lang.String) _values[14];
            this.onkeypress = (java.lang.String) _values[15];
            this.onkeyup = (java.lang.String) _values[16];
            this.onmousedown = (java.lang.String) _values[17];
            this.onmousemove = (java.lang.String) _values[18];
            this.onmouseout = (java.lang.String) _values[19];
            this.onmouseover = (java.lang.String) _values[20];
            this.onmouseup = (java.lang.String) _values[21];
            this.onselect = (java.lang.String) _values[22];
            this.readonly = (java.lang.Boolean) _values[23];
            this.size = (java.lang.Integer) _values[24];
            this.style = (java.lang.String) _values[25];
            this.styleClass = (java.lang.String) _values[26];
            this.tabindex = (java.lang.String) _values[27];
            this.title = (java.lang.String) _values[28];
        }Good luck further in your career.

  • New to custom component

    Hi,
    I would like to have a few answer for those questions:
    1. What is the main purpose of creating custom component (ie.
    imagine I want to create a custom button component)?
    2. Why do we need to extend our custom component? Also, is
    this make our component bigger in size?
    Thank alot for helping me!

    You create custom components when one of the standard Flex
    components lacks something you need.
    You don't need to extend your custom component, but when you
    create custom components you often will extend an existing Flex
    component so you can take advantage of the functionality common to
    Flex components.
    Your file size may increase depending on what you do.

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

  • Best strategy for variable aggregate custom component in dataTable

    Hey group, I've got a question.
    I'd like to write a custom component to display a series of editable Things in a datatable, but the structure of each Thing will vary depending on what type of Thing it is. So, some Things will display radio button groups (with each radio button selecting a small set of additional input elements, so we have a vertical array radio buttons and beside each radio button, a small number of additional input elements), some will display text-entry fields, and so on.
    I'm wondering what the best strategy for tackling this sort of thing is. I'm sort of thinking I'll need to do something like dynamically add to the component tree in my custom component's encodeBegin(), and purge the extra (sub-) components in encodeEnd().
    Decoding will be a bit of a challenge, maybe.
    Or do I simply instantiate (via constructor calls, not createComponent()) the components I want and explicitly call their encode*() and decode() methods, without adding them to the view tree?
    To add to the fun of all this, I'm only just learning Faces (having gone through the Dudney book, Mastering JSF, and writing some simpler custom components) and I don't have experience with anything other than plain vanilla JSP. (No EJB, no Struts, no Tapestry, no spiffy VisualDevStudioWysiwyg++ [bah humbug, I'm an emacs user]). I'm using JSP 2.0, JSF 1.1_01, JBoss 4.0.1 and JDK 1.4.2. No, I won't upgrade to 1.5 (yet).
    Any hints, pointers to good sample code? I've looked at some of the sample code that came with the RI and I've tried to navigate the JSF Blueprints stuff, but I haven't really found anything on aggregating components into a custom component. Did I miss something obvious?
    If this isn't a good question, please let me know how I can sharpen it up a bit.
    Thanks.
    John.

    Hi,
    We're doing something very similar. I had a look at the Tomahawk Date component, and it seems to dynamically created InputText components in the encodeEnd(). However, it doesn't decode this directly (it only expects a single textual value). I expect you may have to check the request yourself in decode().
    Other ideas would be appreciated, though - I'm still new to JSF.

  • Creating an HtmlCommandLink in a Custom Component

    Hi,
    A simplified version of my problem is as follows: I have created a custom component that delegates to a renderer. Within the renderer I create an instance of the HtmlCommandLink class to which I want to assign an action with the setAction method. However, when I try doing this with the line:
    link.setAction(Util.createConstantMethodBinding("success"));
    The page renders but the link does not work.
    or:
    MethodBinding vb = context.getApplication().createMethodBinding("success", null);
    link.setAction(vb);
    I get an exception.
    I have set the navigation rule in my faces-config file for "success".
    I am new to JSF and so I might be doing something stupid or missing the point somehow but I want to be able to create HtmlCommandLinks within a custom class rather than from a tag on the page.
    Any help appreciated,
    Barney

    can you please post your exception as well as your JSP page.
    Thanks
    -Jayashri

  • HtmlCommandLink in a custom component

    Hi everybody,
    seems like I got stuck with this Problem here: I am trying to create HtmlCommandLink within my custom component that points to a method via method binding. My code looks as follows:
    ResponseWriter writer = context.getResponseWriter();
    HtmlForm htmlForm = new HtmlForm();
    htmlForm.encodeBegin(getFacesContext());
    HtmlCommandLink htmlCommandLink = new HtmlCommandLink();
    htmlCommandLink.setParent(htmlForm);
    MethodBinding methodBinding = getFacesContext().getApplication().createMethodBinding("#{TestAction.defaultAction}", null);
    htmlCommandLink.setAction(methodBinding);
    htmlCommandLink.encodeBegin(getFacesContext());
    writer.write("Link");
    htmlCommandLink.encodeEnd(getFacesContext());
    htmlForm.encodeEnd(getFacesContext());
    The Link is created in the page and I can click on it but the method is not invoked. I can invoke it in the code manually which means the reference to the method is working. Am I missing something here?
    Any help appreciated
    Florian

    thanks for your help, and i change the code as :
    @Override
         public void encodeBegin(FacesContext context) throws IOException {
              if (context == null) {
                   throw new NullPointerException();
              ResponseWriter writer = context.getResponseWriter();
              ExpressionFactory expressionFactory = context.getCurrentInstance().getApplication().getExpressionFactory();
              ELContext elContext = context.getCurrentInstance().getELContext();
              MethodExpression actionExpression = expressionFactory.createMethodExpression(elContext,
                        "#{UserManager.actionLoad}",null, new Class[] {ActionEvent.class});
              UIParameter parameter = (UIParameter)context.getCurrentInstance().getApplication().createComponent(UIParameter.COMPONENT_TYPE);
              parameter.setId("addId");
              parameter.setTransient(false);
              parameter.setName("id2");
              parameter.setValue(34);
              HtmlCommandLink link = (HtmlCommandLink) context.getApplication().createComponent(HtmlCommandLink.COMPONENT_TYPE);
              HtmlForm form = new HtmlForm();
              form.setId("pageForm");
              link.setTransient(true);
              link.setValue("Create");
              link.setActionExpression(actionExpression);
              link.getChildren().add(parameter);
              this.getParent().getChildren().add(link);
              form.encodeBegin(context);
              link.encodeBegin(context);
              link.encodeEnd(context);
              form.encodeEnd(context);
    I can click on it but the method is not invoked.
    Any help appreciated.

  • AET custom field in custom component

    Hello,
    The button Create New Field is disabled in AET in my custom component/view, how could i create a new field in my custom component. Do i need to assign my custom component or custom BOL anywhere ?
    Thanks,
    L.Will

    Hi Lisha,
    You are right. It is maintained by SAP.
    The reason that AET does not work is because there is/are missing entries in one of DB table.
    Namely the enhance BO assignment to the UI Object Type.
    Could you please tell me, what is the UI Object Type in your current application.
    In order to figure this out, you can put mouse cursor in one of the field in the UI and then press F2.
    Then you can go to SM30 in SAP GUI open the View BSPDLCV_OBJ_TYPE and search for the UI object type.
    Select the UI object type and see whether any enhanced BO is defined.
    In your case it should be empty, otherwise you can use AET.
    And if it is empty we need to figure out which enhanced BO is relevant for the given UI Object Type.
    If the buttons are disabled, it can have two meaning.
    1. AXTREG is not completely maintained
    2. The Object you want to enhance is not supported by AET
    Regards
    Leon
    [SAP Community Network Forums on mobile|https://cw.sdn.sap.com/cw/ideas/7910]

Maybe you are looking for

  • Itunes 4.9 wont open

    I recently downloaded itunes 4.9 and now it wont open. There are no error messages popping up at all when i am trying to open it. My computer is also having trouble shutting down now, weird "end program" messages keep popping up. I have been reading

  • Adobe 9 Pro: Comparing Scanned PDFs - either no changes found or many many (incorrect) changes found

    Hello - using Adobe Acrobat 9 Professional. I have two Word documents that were scanned into a Xerox copy machine, which converts said documents into PDF format and emails them.   I open both these PDF documents, save them to disk. I open Adobe Pro 9

  • WPA2 PSK Help

    Hi, i just got verizon Fios and I changed it to WPA2 PSk AES using ASCII. It aways generates the same 26 digit/letter passphrase. Is it safe to use this key? Will other Verizon Fios customers in mny area have the same generarated phrase or is it rand

  • Remittance advice through email and printing

    Hi Experts, Our requirement is that email needs to be triggered for all remittance advices and simultaneously printing needs to carried out for those vendors with no email address or invalid email address. We have activated BTE 2040 to trigger the em

  • Error in installing workflow

    i installed complete 9ias, and then trying to install workflow, by specifing infrastructure_home(as oracle home), while installing workflow, i am getting the following exception, "unable to find product oracle.swd.jre(1.1.6, 1.1.7.27) in oracle inven