How to invoke updateDisplayList method in the custom layout?

I've a group of buttons that get placed in a SkinnableDataContainer with the help of a custom layout class as follows:
<s:SkinnableDataContainer id="buttonsContainer"
    dataProvider="{appModel.myButtons}"
    width="{DIAPLAY_WIDTH}" height="{BUTTON_HEIGHT+4}"
    skinClass="view.skins.ContainerSkin"
    itemRenderer="view.renderer.MyButtonRenderer"
    click="startPointAreaClickHandler(event)"
    mouseMove="areaMouseMoveHandler(event)"
    mouseUp="areaMouseUpHandler(event)"
    rollOut="areaMouseOutHandler(event)"
    >
    <s:layout>
        <layout:ButtonsLayout />
    </s:layout>
</s:SkinnableDataContainer>
myButtons is an ArrayCollection of VOs and VO has x and y coordinates as fields. Values of x and y determine the location of the button. When I add an object to myButtons, the application behaves as expected (adds a button in buttonsContainer at specified x and y coordinate). But when I just change values of x and y of an existing button, the buttons don't get repositioned. I have tried calling invalidateDisplayList on buttonsContainer but that doesn't trigger updateDisplayList method in the custom layout ButtonsLayout.
How do I trigger updateDisplayList method in the custom layout so that the button positions get updated whenever an event changes values of x and y of a button?

Hi Balus,
This is helpful but one problem i faced with this is, when i overided the custom message in the property file,
javax.faces.component.UIInput.REQUIRED =Value is required
but for every UIInput component the same message is coming, but if i am having more than one component on the page forexample: UserName , Email, Password etc...
i need to display messages like
Value is reuired for UserName
Value is reuired for Password
Value is reuired for Email
How this is possible , can u please help me.
Thank You,
Subrahmanyam Baratam.

Similar Messages

  • How to call standard SAP method in the Custom Program ?

    Hi,
    i need to call sap standard method 'OpenItemRollinout' in my custom program. For the SAP Standard method 'OpenItemRollinoun' the BOR(Business Object) is 'PAYSCHEME'. So how to call the SAP standard method in the custom program ???

    Hi,
    In the method that you have provided only one function module is being used so better use the FM and copy the remaining code based on ur requirement.
    FM is ISU_S_PAYSCHEME_ROLLIN_ROLLOUT.
    Regards,
    Vijay.

  • Question on "How-to invoke a method once upon application start"

    Hello everyone.
    I'm trying to implement what the article "How-to invoke a method once upon application start" by Frank suggests.
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_invoke_a_method
    Suppose that I'm having a single point of entry, so in my login.jpsx I have the below:
    <f:view beforePhase="#{login.onBeforePhase}">In the method "onBeforePhase" I have to pass the phaseEvent, since the signature is the following:
    public void onBeforePhase(PhaseEvent phaseEvent)but how do I know the phaseEvent when calling the login.onBeforePhase? How the call should be?
    Thanks a lot!
    ps. I'm using jDev 11.1.2.1.0

    You need not pass anything to this method , this method will get called before every Phase except ReStore View
    Just write the logic as Frank suggested for the phase in which you want the code to execute. You can get the PhaseId's like
    PhaseId.RENDER_RESPONSE
    public void onBeforePhase(PhaseEvent phaseEvent) {// from Frank's doc
    //render response is called on an initial page request
      if(phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE){
    ... etc

  • In Third Party sales order processing how we come to know that the customer

    Hi SAP SD Gurus,
    In Third Party sales order processing how we come to know that the customer is recived the Goods from the vendor?
    Thanks & Regards,
    Sreenivas.P

    From a high level view, the behavior should work like this:
    -  Sales order placed from customer PO via Tcode VA01. Purchase Requisition created upon saving the order
    -  Purchase order created with reference to Purchase Requisition via Tcode ME21N
    -  Receive confirmation from vendor that goods have shipped via EDI
    -  Create invoice receipt to vendor via Tcode MIRO
    -  Create billing document to bill customer via VF01

  • How to add F4 help for the custom field of a custom table

    Hi All,
    How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
    PROCESS ON VALUE-REQUEST.
      FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
    But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
    Thanks&Regards
    mahesh

    Hi,
    Create a subroutine under the event and call the following FM
    1. Select all the related data into an itab, for ex i_kunnr
    2.    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
        DDIC_STRUCTURE         = ' '
           retfield               = 'KUNNR'
        PVALKEY                = ' '
           dynpprog               = sy-repid
           dynpnr                 = '1000'
           dynprofield            = <selection screen field>
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
           value_org              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
          TABLES
           value_tab              = <b>i_kunnr</b>
        FIELD_TAB              =
           return_tab             = < return table >
        DYNPFLD_MAPPING        =
         EXCEPTIONS
           parameter_error        = 1
           no_values_found        = 2
           OTHERS                 = 3

  • How to view code of all the custom and complex folder  folder

    How to view code of all the custom and complex folder folder in EUL?

    You do not need to run all the reports.
    Also i am not sure about why do you need to see the code of every thing, i assume you will not get much from it.
    If there is a certain folder you are interested in then this is the way.
    Any way there is no way to get the code of the complex folders since they are logical join of other folders.
    to get the code of the custom folder s you can use:
    select * from eul_us.eul5_objs t
    WHERE t.obj_type='CUO'
    AND t.obj_object_sql1 IS NOT NULL;
    you should look (and concatenate) at the obj_object_sql1,obj_object_sql2.....
    Tamir

  • How long does it take for the custom field created in SFDC to show up in the field mapping list?

    How long does it take for the custom field created in SFDC to show up in the field mapping list? I hit the refresh field button, but it is not showing up after 5 min. Do I just need to have patience? 

    Hi,
    What do you have to do to the field in SFDC to make it accessible so that it shows up in the Eloqua field mapping area as a field to be mapped?   

  • Hi How do we create Methods inside the Business objects of Z

    Hi Abapers,
                        How do we create Methods inside the Business objects (z objects) and how *** an import parameter or export parameter  to be defined for the new Methods.
    Regards
    Bhaskar Rao.M

    Hi Bhaskar,
    that ´s not difficult.
    Open your Bus.Obj. in SWO1 with CHANGE/EDIT
    Click on the "Methods" header line and then use the button for "Create".
    If you want to add the method on basis of a function module, choose next in the next pop up. Then the system will offer you the ex/import parameter from the function module. So this is a really simple way.
    If you don´t have a FM, it is a little bit more difficult.
    Choose No on the quetion about a FM, fill in the next pop up  methode name (no blanks allowed).
    Dialogue is for user related method (call screen...) synchronous for methods which have to give back a result directly in to the workflow.
    After completing the screen the method will be displayed as new method at the end of method list. Now add parameters (first click on the method name, then choose parameter button, same functionality to add program to the method).
    Programm:
    Code snip:
    BEGIN_METHOD ZWFCHECKMIRO CHANGING CONTAINER.
    DATA:
          ZBELNR TYPE RBKP-BELNR,
          ZGJAHR TYPE RBKP-GJAHR,
          RESULT TYPE HRP1001-ISTAT,
          BELNR TYPE BKPF-BELNR,
          GJAHR TYPE BKPF-GJAHR,
          BUKRS TYPE BKPF-BUKRS.
    to import parameter
      SWC_GET_ELEMENT CONTAINER 'Zbelnr' ZBELNR.
      SWC_GET_ELEMENT CONTAINER 'Zgjahr' ZGJAHR.
    *(or SWC_GET_TABLE)
    here add the functionality of your method!
    to export parameter
    SWC_SET_ELEMENT CONTAINER 'Result' RESULT.
      SWC_SET_ELEMENT CONTAINER 'Belnr' BELNR.
    *(or SWC_SET_TABLE)
    !!! Important: naming convention!!! Use same writing of parameter names in
    PARAM area (button PARAMETER) and here in code.
    To use your method, change it to implemented after adding your code.
    -> Edit -> Change release status -> object type component -> into implemented
    (Sorry , have a german screen here, possibly terms are a little bit different.
    Hope this helps a little bit.!
    regards
    Dirk

  • How to migrate Stellent 7.5.1 custom layout component to OCS 10gR3

    Hi,
    I am in the process of upgrading stellent 7.5.1 to OCS 10gR3. There is a custom layout component in 7.5.1 wanted to find out how can I migrate the layout component. As probably there are changes in 10gR3 so want to find out how to migrate the custom layout component and any changes required before migrating to 10gR3.
    Thanks.

    Hi
    am putting out the steps needed for upgrading an existing CS instance from version 7.5.1 to 10gR3. Its basically a 2 step process where we use Configuration Migration Utility to migrate the CS structure and Archiver to migrate the existing contents. The steps are as follows :
    1. Install a new CS 10gR3 instance on the server and configure it as per the install guide.
    2. Verify that the basic functionalities for the newly installed instance is working fine by doing some simple tests like checkin ,checkout , update etc. Then upgrade the CS to the latest patchset level which can be downloaded from http://updates.oracle.com/download/6907073.html.
    3. Install the latest version of Configuration Migration Utility component (which is found in the same uprgade patch set ) on both the 10gR3 CS (target) instance and the 7.5.1 CS (source).Enable them on both the CS instances and restart the same.
    4. Run the Configuration Migration Utility on the source CS and download the CMU Bundle created on it.
    5. Upload the CMU Bundle created in previous step to the Target CS and import the configurations from that.Verify that the CMU process is completed successfully on the Target CS instance.
    6. Create a new archiver instance on the Source CS and export all the contents in that.
    7. Open the Archiver Applet for the target CS instance and then Point the collections to the collections.hda of the source CS instance so that we can import the contents. Start the Import process on target server.
    8. Once the CMU and Archiver Process are completed then your 10gR3 CS would be an exact replica of the Source 7.5.1 Instance.
    You may also go through System Migration Guide to get more understanding on the Migration / Upgrade processes.
    Hope this helps
    Thanks
    Srinath

  • Have lost the canvas and the custom layout option is greyed out (no longer possible to click on).

    how can we re-trieve?
    have tried to re-open and customise but keep getting the above.
    using FCP 7.0.3

    iditinjersualem wrote:
    how can we re-trieve?
    Have you closed the Canvas? Have you gone to  the menu Window > Canvas to toggle it on?
    If so and it has not appeared, have you moved the Canvas so that it is hidden, or mostly off screen?  Type Control - U  to reposition all windows in their standard position.
    Is the timeline missing as well? If so go to the menu File > New > Sequence and create a new sequence. Does it reappear then?
    If all this does not help, then your preferences may have become corrupt and you many need to trash them. Go to:
    http://www.digitalrebellion.com/prefman/
    and download Prefernce Manager (free) to reset your preferences.
    iditinjersualem wrote:
    have tried to re-open and customise but keep getting the above.
    The Custom layouts will appear greyed out until you create one first. From the FCP manual:
    More info at:
    http://documentation.apple.com/en/finalcutpro/usermanual/index.html#chapter=10%2 6section=3%26tasks=true
    Again, if you are following this procedure and it is not working, try trashing your preferences.
    MtD

  • How to add 2 rows in the form layout?

    In the detail page,form layout only one row pick up from database and it displays please anyone have idea about how to display 2 rows or 3 rows in a page?
    how to add 2 rows in the form layout?
    It's very urgent
    Thanks in advance

    No. You can only achieve this with smart custom templates. Here is sample code which will display multiple employees in form layout:
    <af:forEach items="#{bindings.EmployeesTable.rangeSet}" var="row">
    <af:panelForm rows="1" maxColumns="2" width="10%" id="RegionsFormItems">
    <af:inputText id="EmployeesEmployeeId" value="#{row.LastName}" label="EmployeeId" .... />
    <af:selectInputDate id="EmployeesHireDate" value="#{row.HireDate}" label="HireDate" ...... >
    <af:convertDateTime pattern="#{nls.datepattern}"/>
    </af:selectInputDate>
    </af:panelForm>
    </af:forEach>
    Steven Davelaar,
    JHeadstart Team.

  • Problem to set the custom layout as the default layout in std. transaction

    Hi all,
    I want to change the standard layout that is displayed in a standard transaction (EL31) as default. I want few more fields of the structure also to be displayed in the default layout of the standard transaction. I have made a custom layout that i want to be displayed but cant make that layout as the default layout for all users. Please suggest me some way to make the custom layout as the default layout for a standard transaction.

  • How to reuse some components of the scripts layout to other programes

    how to reuse some components of the scripts layout to other programes

    You can't reuse components; the only solution would be to copy a script and to remove all components not needed.
    Regards,
    John.

  • How to invoke a funtion on a custom tag value?

    Hello,
    I have a custom tag used in my code.
    It is used as follows:
    <b:testtag name="Title"/>
    This outputs a String value.
    This is used in my HTML as follows:
    <b:testtag name="Title"/>
    This part of the code works fine. However i now want to invoke some funtion on the String outputted before actually outputing it. To be more specific, i need to convert the string to uppercase before outputting it.
    So my question is, Is there anyway to directly invoke the String.toUpperCase method on the tag output?
    If not, another way of achieving this is to store the value returned by the custom tag into a java String variable in a scriplet code, and invoke the String.toUpperCase method.
    Any idea how to go about with this? Particularly, i would like to know if it is possible to store the value outputted by the tag into a java variable in a scriplet code?
    If not is there any other way of converting the tag output value to uppercase?
    Please help!
    Thanks in advance

    Solution one: Change your tag so it outputs in uppercase
    Solution two: use a tag from a String taglib and put that tag around your tag
    example taglib:
    http://jakarta.apache.org/taglibs/doc/string-doc/intro.html
    example bit of code
    <a href='some test url here'><str:upperCase><b:testtag name="Title"/></str:upperCase></a>

  • How to invoke a method in application module or view objects interface?

    Hi,
    perhaps a stupid RTFM question, but
    How can i invoke a method that i have published in the application modules or view objects interfaces using uiXml with BC4J?
    Only found something how to invoke a static method (<ctrl:method class="..." method="..." />) but not how to call a method with or without parameters in AM or VO directly with a uix-element.
    Thanks in advance, Markus

    Thanks for your help Andy, but i do not understand why this has to be that complicated.
    Why shall i write a eventhandler for a simple call of a AM or VO method? That splatters the functionality over 3 files (BC4J, UIX, handler). Feature Request ;-)?
    I found a simple solution using reflection that can be used at least for parameterless methods:
    <event name="anEvent">
      <bc4j:findRootAppModule name="MyAppModule">
         <!-- Call MyAppModule.myMethod() procedure. -->
          <bc4j:setPageProperty name="MethodName" value="myMethod"/>
          <ctrl:method class="UixHelper"
                  method="invokeApplicationModuleMethod"/>
       </bc4j:findRootAppModule>
    </event>The UixHelper method:
      public static EventResult invokeApplicationModuleMethod( BajaContext context,
                                                               Page page,
                                                               PageEvent event ) {
        String methodName = page.getProperty( "MethodName" );
        ApplicationModule am = ServletBindingUtils.getApplicationModule( context );
        Method method = null;
        try {
          method = am.getClass(  ).getDeclaredMethod( methodName, null );
        } catch( NoSuchMethodException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        try {
          method.invoke( am, null );
        } catch( InvocationTargetException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        } catch( IllegalAccessException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        return null;
      }Need to think about how to handle parameters and return values.
    Btw. Do i need to implement the EventHandler methods synchronized?
    Regards, Markus

Maybe you are looking for

  • Error message when opening pdf attachment in Outlook 2003

    I have several computers in my network running different version of Adobe Acrobat...Adobe 6.0 standard, Adobe 7.0 standard, Adobe 8.0 standard and pro, and Adobe 9.0 standard and pro. The problem I am having with a few of my end users is that when th

  • Transaction code for product master - SNP

    What is the significance of CFM2 transaction and EXIT_SAPLCMAT_001 user exit.

  • Hi BAPI & MM experts

    hi when i m creating po using bapi_po_create1 ,i am giving item category as 'B' in input, but when the BAPI is saved  it is getting saved as 'D' in ekpo table. i am facing this problem in  version 5.0, but when i am doing the same in ecc 6.0, i am ge

  • Can we set address book to always show groups?

    May seem trivial to some, but the new Address Book drives me crazy.  I do not want to only see one page at a time and loved being able to see one column on the left side with all the groups, the next with all the contacts, the next on the right with

  • When starting WCS I get a Java error

         could not find the main class. Program will exit