How to use Messeges component from a button Action ? (add item to Messages)

Hi
Thank you for reading my post
I have a Messages component on one of my ADF JSF pages.
i create an Action method for one of my buttons that are on the page and now i need to
add some items to Messages component , for example to alert the manager that the user name he/she want to add to system is already exists.
can some one give me some help about this ?
my problem is that from an Action method how i can access that Messages on the page that called the action.

Hi,
this is from the ADF Developers guide which is available on OTN:
if (!password.equals(confirmPassword))
FacesMessage fm = new FacesMessage();
fm.setSummary("Confirm Password");
fm.setDetail("You've entered an incorrect password. Please verify that you've
entered a correct password!");
FacesContext.getCurrentInstance().addMessage(null, fm);
}Brenden

Similar Messages

  • How to use Calander Component in JSF JSCreater

    i am using the calander component in JSCreter .
    i have one jsp page with a button and a calander component . If i let the calander field blank then the action event of button is fired but if i select some value in calandar field then then click the button then on action is fired
    what can be the reasion .

    I saw the documentation. But it uses com component which has ClassID / GUID. but how to use .net component and I think .net component doesn't maintain any registry information like classid / guid.

  • How to delete Software Component from IR.

    Hi Experts,
       I have imported Software component from SLD in Integration Repository. How to delete Software Component from Intetegration Repository. Does it possible?
    Thanks
    siva

    1. Design:Integration Builder
    Double click on the Software Component Version
    In the display window, navigate the menu to Software Component Version and select Delete
    This removes both the Software Component and the Software Component Version
    Ensure that the Change List is empty
    2. SLD
    Double click on the Software Component and select the Remove button
    3. Clear SLD Cache
    You may want to go back into the Design:Integration Builder, navigate the menu to Environment and select Clear SLD Data Cache
    cheers,
    Naveen

  • How to Use Spry to Validate Radio button

    How to use Spry Validation for radio button?
    The samples only have checkbox, text, select and textarea.
    Thanks

    I needed to add radio buttons to the live (non-destructive)
    filter so users could choose which column they wanted to search
    data from. Its been modified from the "contains CB" but works
    nicely. It also had to rebuild table when another button was
    selected. I'll post some code if anyone would like to use it....
    The Form area -
    <form name="filterform">
    Data Filter: <input type="text" id="filterTF"
    onkeyup="StartFilterTimer();" />
    <input type="radio" id="containsCB" name="radio"
    value="module" onclick="resetfilter();" checked /> by Module
    <input type="radio" id="containsCB" name="radio"
    value="oper" onclick="resetfilter();" /> by Oper
    <input type="radio" id="containsCB" name="radio"
    value="phone" onclick="resetfilter();" /> by Phone
    <div id="radiovalue"></div>
    </form>
    The JS area -
    function FilterData()
    var tf = document.getElementById("filterTF");
    for (var c=0; c < document.filterform.length; c++)
    if (document.filterform[c].checked)
    var choice = document.filterform[c].value;
    if (!tf.value)
    // If the text field is empty, remove any filter
    // that is set on the data set.
    dsRows.filter(null);
    return;
    // Set a filter on the data set that matches any row
    // that begins with the string in the text field.
    var regExpStr = tf.value;
    regExpStr = "^" + regExpStr;
    var regExp = new RegExp(regExpStr, "i");
    var filterFunc = function(ds, row, rowNumber)
    var str = row[choice];
    if (str && str.search(regExp) != -1)
    return row;
    return null;
    dsRows.filter(filterFunc);
    function StartFilterTimer()
    if (StartFilterTimer.timerID)
    clearTimeout(StartFilterTimer.timerID);
    StartFilterTimer.timerID = setTimeout(function() {
    StartFilterTimer.timerID = null; FilterData(); }, 400);
    function resetfilter() {
    // var tf = document.getElementById("filterTF");
    // var tfval = tf.value;
    document.getElementById("filterTF").value = "";
    StartFilterTimer();

  • How to use ObjectDataProvider component in WDA

    Hello all,
    I hv an urgent requirement to develop an OADP based application in SAP webdynpro Abap (to fetch tree like structure). i don't know how its possible, but i heard we can use ObjectDataprovider component to do the same.
    Does anybody know how to use "ObjectDataProvider" component in web dynpro abap to develop OADP based Webdynpro abap application, a step by step guide would be very nice. or do i need to fetch data myself using methods in webdynpro.
    any reply will be highly appreciated.
    thanks
    Mani

    Hi,
    Know this is an old post, but for future people:
    In se80, see example Web Dynpro components:
    OADP_EXAMPLE
    OADP_TEST
    Good luck,
    Garth

  • HT1491 how to use a ringtone from a downloaded app in iphone5

    how to use a ringtone from a downloaded app in iphone 5

    RINGTONE
    This how to make ring tones for your iPhone:
    Choose the desired song from you library
    Do a secondary click on your song if you are using a MAC (right click for PC)
    Click "Get Info"
    Go to Options tab
    Set Start Time and Stop Time, some iOS only allow for a 30 sec duration for ringtones, then click OK
    Do secondary click (right click for PC) to your selected song
    Click "Create AAC Version", new song from your selected will added to your library (short one)
    Do secondary click (right click for PC) to your short one (new song)
    Click "Show in Finder"
    Rename file *.m4a to *.m4r, click "use *.m4r"
    Drag the file to library, for the first time it would automatically add your library with new folder "Tones" under Apps folder
    Open the ring tones in the Tones folder of your library than drag it to your iPhone and your ringtone also would be automatically added "Tones" folder.
    Last but not least, set the ring tone in your iPhone under the "Setting-Sound"
    For information on how to make ringtones read http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html
    Or
    http://www.demogeek.com/2009/07/31/how-to-add-custom-ringtones-to-your-iphone/

  • How to use budget amount from previous years

    Dear Values Consultant
    How to use budget amount from previous years
    I create budget for 2007 and I use it .in 2008 I create new budget with new amount for account, but still there are amount from 2007-I want to use or transfer it to 2008,
    How to do this? Please give me details step to implement to this feature
    Thanks for caring

    Hi,
    There are two ways to do it:
    1. Define the account range in your Budget Organization and in the Budgetary Control region, out the Amount Type as "PJTD" and Boundary as "Project". This method is useful when you have project as a segment in your chart of accounts and the Budgets are defined for the full project.
    2. The Other way is to carry forward your funds available from last year. Go to Journals -> Generate -> Carry Forward and carry forward the balance for a certain range of account from one financial year to the next one.
    Gajendra

  • How to use iphone 4s from japan locked by softbank ?

    how to use iphone 4s from japan locked by softbank?

    Ocean20 answered your question, don't waste your time contacting Softbank as Chris CA suggested. There are no officially unlocked iPhones sold in Japan & none of the Japanese carriers...which include Softbank...offer official unlocking for the iPhone. There is no way to get any Japanese iPhone officially unlocked.

  • I have an extensive aperture library on my computer's hard drive and I want to break it up into separate smaller libraries on external hard drives.  How do I take projects from one library and add them to another one?

    I have an extensive aperture library on my computer's hard drive and I want to break it up into separate smaller libraries on external hard drives.  How do I take projects from one library and add them to another one?

    Coastal,
    Frank gave you the exact answer to your question. 
    However, I would like to ask if you are indeed asking the right question.  Do you really want different libraries?  The implications are that you have to "switch" libraries to see what's in the others, and so that your searches don't work across all of your pictures?  If so, then you asked the right question.  If not, you may be more interested in relocating your masters to multiple hard drives so your library gets smaller, instead of breaking up the library.
    nathan

  • HT1597 How can I STOP iTunes from automatically trying to add podcasts to my iPod when I plug it in and sync it, so I can manage the files? I have already unchecked "Sync Podcasts" and "Automatically include,"yet EVERY time I sync it,it still transfers po

    How can I STOP iTunes from automatically trying to add podcasts to my iPod when I plug it in and sync it, so I can manage the files? I have already unchecked "Sync Podcasts" and "Automatically include,"yet EVERY time I sync it,it still transfers podcasts as the last step, and at other times randomly, when trying to just add some MP3's to a playlist, for example.  I can't seem to find any other option to uncheck, and can't find an answer from my so-far internet searching.

    erict, you blew me away with that suggestion! It was something so simple I couldnt believe I hadnt thought of it! But in the end it didn't work, which I was really surprised about. On Windows anytime anything was moved itunes was hoplessly lost, but on this mac it still kept up with everything. I tried renaming folders, moving folders, and even renaming moved folders but it still kept trying to import.
    I even went as far as deleting EVERYTHING i had moved to the Mac, which didnt really work. It still kept trying to import what wasnt there which made it continue to freeze up. However, after doing this it, the freezing was not nearly as bad. It gave me enough of a break to cancel it through the itunes dialog box at the top of the app. So in the end, thats all I really needed to do, only before I had deleted everything the freezing would not allow me to do it.
    So now Im reimporting everything again, only slowly, and only a few Artists at a time.

  • How to use flex Component Kit to make a button

    Hi all.
    i have a little confuse about use Flex Component Kit to make a simple button.
    i try to use Flex button templte in FlashCs3 to make a button.
    the three frame i draw like this way:
    on:
    [url=http://xs.to][img]http://xs142.xs.to/xs142/09332/snap1958.jpg[/img][/url]
    over:
    [url=http://xs.to][img]http://xs142.xs.to/xs142/09332/snap3362.jpg[/img][/url]
    down:
    [url=http://xs.to][img]http://xs142.xs.to/xs142/09332/snap4122.jpg[/img][/url]
    but , when i mouse over the button , it seem turn to over frame one second.
    and then the colour turn to overFrame colour but the size is onFrame size.
    same happen when i click the button .
    somehow ,the colour turn to what i want, but the size still the same as onFrame , no matter over the button or click the button.
    can i make the button size different with normal button size?
    thankes.
    link:[url]http://up.izy8.cn//up1/1250033814.swf[/url]

    Hi,
    this is from the ADF Developers guide which is available on OTN:
    if (!password.equals(confirmPassword))
    FacesMessage fm = new FacesMessage();
    fm.setSummary("Confirm Password");
    fm.setDetail("You've entered an incorrect password. Please verify that you've
    entered a correct password!");
    FacesContext.getCurrentInstance().addMessage(null, fm);
    }Brenden

  • How to popup a page from a button not in a region position

    Hello.
    I am using Apex 2.2.1. I have a form (not a report) on which I've placed a button that is positioned "among the items" as opposed to being placed in a specific region position.
    When the button is clicked I would like to have another page popup. The problem is that I can get this to work only if the button is placed in a region position. With the button in a region position, I define the target to be a URL and then place a call to the popUp2 function, as in:
    javascript:popUp2('f?p=&APP_ID.:32:&SESSION.::NO:::', 900, 700);
    This works fine.
    However, I need to position my button on the immediate right hand side of a form item. But when I create a button in such a position, I have no field in which to place the call to the popUp2() function. Instead, I have to create a "Branch to Page or URL" and then place my javascript call in the Branch field. Unfortunately, when I click the button, Apex wants to branch to page zero instead of the desired page. I saw that when I move the mouse over the button, Apex shows:
    javascript: doSubmit('MY_BUTTON_REQUEST');
    And, as mentioned, Apex tries to branch to page zero.
    How does one call the popUp2() function from a button that is not placed in a region position?
    Thank you for your help.
    Elie

    Hi Elie,
    I had the same problem ... I only got it solved with creating a hidden item and adding the input-tag into the "Post Element Text" field.
    Just have a look in the source code of your page, how a button is build and copy the necesaary code to the mentioned field. So you get a button with ApEx layout and can add your javascript call.
    chrissy

  • How to use custom component configuration

    Hi Experts,
    For a standard webdynpro object I have created a new z component configuration by copying from existing one. In the standard there are already 2 existing component configuration.
    This webdynpro does not have any application created so I am not able to directly assign this component configuration.
    During run time in portal when I view the properties I can see a application for this webdynpro component and the standard component configuration being used.
    My question is how to use the z component configuration I have created in the webdynpro?

    Hi Srinivas
    I researched your problem. I hope the below code helps you. You could add the below code to wddoinit.
    DATA:  lo_api_controller       TYPE REF TO if_wd_component,
              lo_pers_manager      TYPE REF TO if_wd_personalization,
              ls_config_key           TYPE wdy_config_key.
               lo_api_controller = wd_comp_controller->wd_get_api( ).
               lo_pers_manager = lo_api_controller->get_personalization_manager( ).
                     ls_config_key-config_id = 'ZTEST' .
                     lo_pers_manager->load_config_by_key( ls_config_key ).
    Regards
    Lorraine

  • How to use parameter passed from standard page in VO query of custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .
    And how to use those parameters in the VO query of my custom page.
    Edited by: Bunny on Nov 11, 2010 9:16 AM

    Hi,
    Bunny wrote:
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
    Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value  ---Like u can pass params
    ---IF the button style is :Submitbutton ,Then u need to customization of the co.
    ---In co processFormReq call a cutom page like below.
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
    ---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
    And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
    String where="valueAttr="+value;
    vo.setWhereClauseParams(null);
    vo.setWhereClause(where);
    vo.executeQuery();
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 11, 2010 11:53 PM

  • How to use WD component DPR_SINGLE_SERVICES

    Hello cProjects experts!
    Does anyone know how to use the webdynpro component DPR_SINGLE_SERVICES ? I think it could be used for accessing single cprojects elements from my custom WD application. But I am lacking an example.
    Thank you !
    Johannes

    Hi
    I was successfully able to create a DC that uses the components of other DCs by following the steps given in the link :
    http://help.sap.com/saphelp_nw04/helpdata/en/ae/1ae58540ea454db1aa14fd635bc10d/frameset.htm
    Now the problem is that the used DCs should already be deployed before we can deploy the DC that is using these DCs.
    Is there any way by which all the used DCs get deployed automatically when we deploy the DC that uses these DCs?
    Thanks and Regards,
    Sangeeta Bhandari
    Message was edited by: Bertram Ganz
    corrected help link

Maybe you are looking for