Find component based on ID (not ClientID)

Hello,
I need to be able to find a component based on its ID, and not its ClientID.
If I have a component in my JSF page like so:
<h:form id="myForm">
<mycomponent id="myID"/>
</h:form>I need to be able to find this component using the String "myID", and not the clientID which is "myForm:myID".
Do anyone have any tips on how to archeive this without traversing the whole tag-tree manually ?

Use UIComponent#findComponent() on FacesContext#getViewRoot().
That said, have you considered component binding? It is faster. You just have the component to your hands in the managed bean.

Similar Messages

  • Component-based branding in PeopleTools 8.54 not functioning

    Has anyone been able to get component-based branding to work in PeopleTools 8.54? I've tried attaching custom stylesheets and Javascripts (via App Designer and PeopleTools > Portal > Branding > Component Branding) to a classic component with no luck. From what I understand, the custom objects should be included in the generated page markup, but are missing when I inspect the page with Chrome Developer Tools.

    I have been experimenting with Branding in PeopleTools 8.54 recently. I wrote some posts based on my testing (see... Part 1, Part 2, Part 3).
    I just tried applying component branding to a test component and I do see my stylesheet being included when I access the component.
    What are you trying to do? Are you trying to override an existing style sheet on the component/page? Are you trying to inject component/page specific js?
    Here is my example where I am overriding the style class PSEDITBOXLABEL specific to my component (this style is applied only to my component and the rest of the components are not affected):
    Custom Style Sheet:
    Component Branding:
    Component:
    Notice: The Edit Box Label color is now red.

  • How  to   find  article based  support  for  ipad  or  technical notes

    how  to   find  article based  support  for  ipad  or  technical notes

    The problem comes from VBUK/VBUP which are the control tables for most of SD tables (from VBAK/P to LIKP/PS and VBRK/P) and manage uniqueness of id in the module (and stores statuses). Even item tables don't refer to their header but both refer to the same VBUK record.
    e.g.
    LIPS : VBELN/POSNR -> VBUK/VBUP -> but you will only find LIKP/PS itself and no record in VBAK/VBAP
    LIPS : VBELV/POSNV -> VBUK/VBUP -> you should find VBAK/VBAP
    The table VBFA "Sales Document Flow" manages the relations from/to between two different SD documents which exist in VBUL/P and in only one other table depending on type of document. (Also note that the exact relationship may sometimes be modified to some extent by Customizing SD.)
    As Katan wrote, look for views defined in ddic, look also at logical databases (SE36) like VLV.
    You can also find valuable information in OSS notes/documents like 185530 - Performance: Customer developments in SD.
    Regards,
    Raymond

  • Component based message alerting

    Hi,
    I am working on component bvased message alertig in SAP PI 7.4 (dual stack). As per the Michal's blog i have define everything in PI.-
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting
    Also i have configured Configuration -> Infrastructure -> JAVA System Properties -> XPI Services: AF Core  -> and choose tab Services .
    Set the value of the alerting.target service property to 1.
    and alerting.isActive (value true).
    But still i am not getting mail in mail box.
    When i check the log viwer i found two logs saying:
    Job AlertConsumerJob (ID: 5fe771e0ec86100082e50000002ab43a, JMS ID: ID:1344010011108-000000008399) started on Thu, 5 Jun 2014 03:52:43:011 EDT by scheduler: c0000173a37f11e2b6ab00237d240438
    Job AlertConsumerJob (ID: 5fe771e0ec86100082e50000002ab43a, JMS ID: ID:11344010011108-000000008399) ended on Thu, 5 Jun 2014 03:52:43:044 EDT
    Could some body help me in this .
    Thanks,
    Anurag

    Hi Anarug,
    I am not sure whether it is solved.
    From the log entry from the AlertConsumerJob, it seems that this job is running fine,
    but it is not finding any alerts.
    That means probably, no alert events are thrown by any rule.
    So you should focus on that part first and see if you have any aggregated alerts in a job run.
    I had some strange experience with Alert Rules that did not have all Message Statuses checked.
    As soon as you uncheck any of the Message Statuses in the rule (for example any unusual adapter technology), the rule will not work.
    This is a bug in my 7.31 system and I am just trying to fix it using SAP Note 1968989.
    Please check if this Note might fit your situation.
    Anyway, try to use a DEFAULT-RULE, which you can create in the ID by checking the box "create default rule" when defining a new alert rule.
    Other things to check:
    - are you using Integrated Configuration or generate at least errors in the Adapter Engine?
    For errors in the (ABAP) Integration Engine, the whole story is similar but completely different.
    Cheers, Jochen

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages CurrentState

    Can anyone tell me what the possible values are for the CurrentState value of a package under
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages
    For Example:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Package_1_for_KB2900986~31bf3856ad364e35~amd64~~6.1.1.1
    "CurrentState"=dword:00000070
    I believe that this equates to "Installed", but I am looking for somewhere that documents this.
    I located http://technet.microsoft.com/en-us/library/cc756248%28v=ws.10%29.aspx and the related events pages show values like 0, 4, 5, 6, 7.  Not x00000070 (112) etc
    Thanks In Advance
    Jim

    Hi Jim,
    Thank you for your post.
    From your description, I see that you want to know if there is a related official article which introduces the value of CurrentState (dword:00000070) under
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages.
    Please let me know if I have misunderstood anything.
    Based on my research, I'm sorry that it appears that there is not a corresponding official document which can meet your requirement. However, according to my knowledge, 99% of the time the value will be 00000070 for CurrentState.
    Currently, I'd like to confirm that if there is any real problem occurs due to the registry value? If so, then we may find another way to help with you.
    Please feel free to let me know if you have any questions. Thank you for your time and understanding.
    Best Regards,
    Sophis Sun
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Component Based Servicing patches

    It is well documented that offline servicing/patching of the operating system can only be performed with CBS (Component Based Servicing) updates.  What does not seem to be well documented is what updates are CBS compliant.  Does anyone have guidance
    on obtaining a list of CBS or non-CBS updates?  It would be preferable that this not require downloading the update to make the distinction.
    Thanks!

    Hi,
    To use this feature, navigate to Software Library ->
    Overview -> Operating Systems – Operating System Images, select the Image that you wish to update, and click
    Schedule Updates from the ribbon.
    On the choose Updates page, you can select the updates that you wish to add to your image. The list only contains updates that meets the following criteria:
    CBS Updates
    The updates must be deployed in the ConfigMgr 2012 environment.
    The updates have not been applied to the image file.
    For a complete description of the settings mentioned above, check out this article:
    SCCM 2012 – Offline Service for OS Images
    http://www.ronnipedersen.com/2012/03/configmgr-2012-offline-service-for-os-images/
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Rule based ATP is not working for Components

    Hi All,
    Our requirement is to do availability check through APO for Sales order created in ECC,so we are using gATP.
    Requirement: We are creating salesorder for BOM header (Sales BOM) and avaialbility check should happen for components i.e. Product avalaibility & Rule based substitution.
    Issue: Product availiabilty is working for components but rules based substituion is working,  mean Rules are not getting determind for components.
    Settings:
    - Header doesnot exist in APO and compnents do exist in APO
    - Availability check is not enabled for header item category and enabled for Item category for components
    - Rules have been created for Components in APO
    - Rule base ATP is activated in Check instructions
    We have also tried MATP for this i.e. PPM created in APO but still didn't get the desired result.
    If we create salesorder for the component material directly then Rule based ATP is happening, so for components Rule based ATP is not working.
    How do we enable enable Rulesbased ATP for components, i mean is there any different way to do the same.
    Thanks for help.
    Regards,
    Jagadeesh

    Hi Jagdeesh,
    If you are creating BOM in ECC and CIFing PPM of FG/Header material to APO, I think you need to CIF Header material, too, with material integration model.
    Please include header material in you integration models for material, SO and ATP check as well.
    For component availability check, you can use MATP; but for MATP, FG should be in APO. You need not to CIF any receipts of FG (stock, planned orders, POs etc), so that MATP will be triggered directly. Then maintaining Rules for RMs will enable to select available RMs according to the rule created.
    Regards,
    Bipin

  • Reference of 103 mat.doc. in  105 doc. , when GR based IV is not selected

    Hi,
    I required logic, to list out 103 material documents for which movt. 105 is not made , If GR based IV is not selected in PO.
    We know, each MIGO document has a reference document number. In case of 103 document, the reference document number is the same number In case of 105 document, the reference docu number is the document number of 103.
    But, the reference document number is blank, when GR based IV is not ticked in the Purchase order.
    I need some logic to find the reference of 103 document in 105 document for items without GR based IV.
    Best Regards
    Saravanan

    Hi,
    Does your PO history had been updated bu the 103 and 105 ? Please check , or the table EKBE,.
    Please check table mseg.
    Regards,

  • Issue while creating Component Based Message Alerting in PI 7.31 Dual Stack

    Hi,
    We tried to implement Component Based Message Alerting following the steps mentioned in the below blog.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting
    Ours is PI 7.31 dual stack. However, after setting up the job with my own user id, I am getting the below error inside the log of Jobs tab:
    javax.jms.JMSSecurityException: You do not have permissions: action alertingVP.queue and instance:name alertingVP.queue
    action consumer
    instance jms/queue/xi/monitoring/alert/ALERT-TO-MAIL
    Please let us know what permission is required to set up the job.
    Thanks,
    Rahul

    Hi, 
    Now I am able to receive alert in my mailbox. But it's coming with improper content.
    I have set up the job at an interval of every 2 minutes in NWA, and in case if only 1 message fails in IE, in ideal case, I should receive only 1 message details in alert.
    However, in every 2 minutes, I am receiving junk data and the number is increasing for the particular scenario for which the alert has been created. Also the Error Category mentioned is showing improper.
    But in table SXMSALERTCONTENT I am able to view only the newly added failed entry.
    An erroneous alert email content is pasted below:
    63 messages failed for "Test_XXX" on "af.s0i.saps0i"
    Root cause: -1
    To navigate to the failed messages in the local message monitor use this link
    The first 1 messages of that data collection:
    "AdapterNamespace": "http://sap.com/xi/XI/System",
    "AdapterType": "File",
    "Channel": "FileSender_XXX",
    "ChannelParty": "",
    "ChannelService": "XXXXX",
    "Component": "af.s0i.saps0i",
    "ErrCat": "",
    "ErrCode": "",
    "ErrLabel": "-1",
    "ErrText": "Configured source directory '\\Outbound\\XXX\\CREMAS' does not exist",
    "FromParty": "",
    "FromService": "XXX",
    "Interface": "Z_CREMAS_SUSMM.CREMAS03",
    "Namespace": "urn:sap-com:document:sap:idoc:messages",
    "RuleId": "3a64dd6e1b1d3e58aff62ea70c97cb80",
    "Timestamp": "2013-02-01T09:43:23Z",
    "ToParty": "",
    "ToService": ""
    The failed message however do not relate to the 'source directory does not exist' issue. Please help.
    Thanks,
    Rahul

  • How do I find out what features are not useful in my Classifier?

    How do I find out what features are not useful in my Classifier? I am trying to trim down the number of features to speed up the training of my data, I have about 3700 features. I have found the Filter Based Feature Selection Module and have not been successful
    in using it. I have looked through all the examples and have not been able to find any examples using the module. Will the Filter Based Feature Selection Module help me to trim features. If so how do I use it?

    One way to do this would be is to use a random forest classifier. Feature/variable importance can be obtained relatively easily with random forests. 
    Here is how you may do it in R.
    > install.packages('randomForest') #install randomForest package in R if it is not already there
    > library(randomForest) # reference the library
    > data(mtcars) # load motor cars data that ships with 
    #train a random forest 
    > mtcars.rf <- randomForest(mpg ~ ., data=mtcars, ntree=1000,keep.forest=FALSE, importance=TRUE)
    > importance(mtcars.rf)
    > importance(mtcars.rf)
    #You will see an output like below
           %IncMSE IncNodePurity
    cyl  16.168645     169.96741
    disp 18.672188     260.08722
    hp   17.584375     184.95007
    drat  6.948743      63.54528
    wt   17.818509     254.30347
    qsec  4.772889      33.25546
    vs    5.303058      24.39064
    am    5.210181      17.36626
    gear  4.619161      21.55450
    carb  8.577037      28.46715
    # or plot the importance as follows
    > varImpPlot(mtcars.rf)
    What this tells you is how important predictors/features/variables like horsepower(hp), weight(wt), no. of cylinders (cyl) is in predicting miles per gallon (mpg).
    If you are wondering how the data looks like. Try this
    head(mtcars) # gives first few lines of the data set.
     mpg cyl disp  hp drat   wt ... 
    Mazda RX4     21.0   6  160 110 3.90 2.62 ... 
    Mazda RX4 Wag 21.0   6  160 110 3.90 2.88 ... 
    Datsun 710    22.8   4  108  93 3.85 2.32 ... 
    . Try this
    Here is a few useful resources:
    Random Forest documentation (Check out the pages on variable importance and variable importance plot)
    http://cran.r-project.org/web/packages/randomForest/randomForest.pdf 
    Motor cars data: http://stat.ethz.ch/R-manual/R-devel/library/datasets/html/mtcars.html

  • How to exclude synchronous interfaces from component based message alerting

    Hi Pi experts,
    We are configuiring Alerts in PI 7.3 single stack.If we have 'n'number of interfaces, and if we configured general alerts for all.How to exclude synchronous interfaces in that.Alerting is for asynchronous interfaces only.How to do that.
    Please advice on this.
    Regards
    Suneel

    Hello,
    >>What are your approaches regarding this requirement in the context of java-only?
    I would suggest you to schedule jobs like this:
    Customize Alerts Using Job in PI 7.31/PO
    >> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
    Check this:
    Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
    >>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
    I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
    >>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
    If ur max alert parameter is greater than 1 then u should see multiple alert text  (along with message id and other details) in ur email message.
    Thanks
    Amit Srivastava

  • Java-only, Component based message alerting - loopback to sender system

    Dear guys,
    we are using the alert framework availbale on PI 7.11 to notify the sender system if there is an alert for specific interfaces. In that case a customer function module is called giving the message id of the request message (message is sent via ABAP proxy). As a result the according entry in customer table is updated.
    The implemntation is based on the BADI ALERT_MODIFY_TEXT and uses the standard function module ALE_BAPI_GET_UNIQUE_RECEIVER to determine the system /rfc destination to send the alert notification.
    This solution works fine so far.
    As PI 7.11 dual stack is not the latest release, we are thinking of upgrading to current PI/PO release. In this context also shift to java-only installation is contemplated which will need an alternative solution for the described alert/error notification loopback.
    Are there any possibilities analog to BADI to implement such a solution?
    What are your approaches regarding this requirement in the context of java-only?
    Any help/thoughts appreciated.
    Best regards,
    Jochen

    Hello,
    >>What are your approaches regarding this requirement in the context of java-only?
    I would suggest you to schedule jobs like this:
    Customize Alerts Using Job in PI 7.31/PO
    >> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
    Check this:
    Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
    >>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
    I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
    >>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
    If ur max alert parameter is greater than 1 then u should see multiple alert text  (along with message id and other details) in ur email message.
    Thanks
    Amit Srivastava

  • PI 7.31 - Component based alerting v/s Alert framework like 7.0

    PI Experts,
    We are in the process of upgrading PI from 7.0 to 7.31. In current PI-7.0, We are using Alert framework for notifying us for the failed messages in PI.
    PI-7.3 has the the new feature of Component based alerting, while implementation, we have a choice between "Component Based Alerting" and "Alert FrameWork".
    1.     Can someone guiide me on what are the advantages of using  "Component Based Alerting" v/s "Alert Framework" in PI-7.3?
    2.     If we choose "Component Based Alerting" now, then can we switch it back to "Alert Framework"? If yes, how difficult it is? What are the configuration steps for the "Component Based Alerting"?
    3.     If we choose "Alert Framework" now, then can we switch it back to  "Component Based Alerting"? If yes, how difficult it is? We would be able to use our current alert configuration and alert rules?
    Thanks.
    MP

    Hi,
    >>>>1.     In current AF, we get the alert for the new error if we have confirmed the alert for the same rule in the system otherwise we do not get a alert for the new error.How the alert confirmation works in CBA
    depends how you consume alerts - if you do it with SOLMAN for example it's there (for "number of hours" and/or "until" AFAIK)
    >>>>2.     Is there any way we can move the current alert rules of AF to CBA in 7.3?
    not sure if with 7.3 but there is some upgrade function in 7.31 as per:
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/b2/58b14b70744d0db55599230d2c5bce/frameset.htm
    quote:
    "In case you upgrade your system to enhancement package 1 for SAP NetWeaver 7.3, and in case the “classical”alerting function (already available prior to enhancement package 1 for SAP NetWeaver 7.3) is switched on, the CTC wizard asks you if you like to switch on the new component-based message alerting."
    but I've never tried it so don't know if/how it works,
    Regards,
    Michal Krawczyk

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • HTML viewer component based on Java AWT ?

    Who knows about projects/sourcecode/etc. for a browser component based on only AWT and NO SWING ? I only need a simple HTMLViewer which does not use Swing (restriction because I want to run it on PDA with PersonalJava). I do not necessarily need a full blown browser, but just the most common and basic HTML tags.
    Any help would be highly appreciated.
    Kar;

    no - I searched some time ago but theres nothing useful for free.
    for money you get all you want!

Maybe you are looking for

  • Print to pdf no longer works. Ver8, vista

    been running ver8 on laptop vista for 3 years w/o any issues, printing to pdf from web, from word, from everything. suddenly lost that capability. file/print/pdf - then nothing.... no dialogue box - just goes back to where I was. 'repaired' Acrobat f

  • Is it possible to limit a group of customers to create a kind of order

    Hi,   I went to divide our customer into tow groups, one group can create sales order with a kind of order type,and another group can create sales order with other type? in other words,I don't want a group of customers create a special type of sales

  • [OSB] - Oracle Service Bus 11gR1 ?

    Hi everyone! I'm evaluating Oracle Service Bus 10gR3 (10.3.1.0) which I downloaded from http://www.oracle.com/technology/products/integration/service-bus/index.html . Since I've seen that lots Oracle Products are alreadly released as of the platform

  • Automatic postings

    If you make a field status required for your invoice receipt or payment like profit center, could you still run an automatic payment run?

  • I-Doc configuration in receiving system

    Hi All, Can anyone tell me, i am sending cost centers throuhg I-Doc's. can you tell me what configuration i need to do in receiving system. Regards, Suresh Patipati.