Javascript and intl:message tag value rendering

Hi,
I would like to know whether is it possible to render key value of <intl:message> tag into javascript alert function. If yes, please provide me the solution.
Ex: alert("<intl:message key=\"raisemsg\" />");
Thanks in advance.
Regards,
Sudheer

If that is the case then try using
<?format-number:( substring-before(WEIGHT,'kg')*0.8);'9G990D00'?>

Similar Messages

  • h:messages tag not rendering right

    Hi All,
    I have an <h:messages /> tag in my jsf page and it's not rendering correctly.
    This is the tag in my page, verbatim:
    <h:messages />
    And this is the output when validation errors are created:
    Validation Error: "lastName": Value is required.      Validation Error: "firstName": Value is required.
    That's it. No List, no nothing, just space-delimited validation errors!
    When I specifiy layout="table", things are fine, but specifying layout="list" doesn't solve the problem.
    I'm using v1.1 of the jsf implementation.
    What gives?
    Thanks,
    John

    I got the exact same problem.. Is this already logged as a bug in JSF?

  • Formating and calculating xml tag value

    I have an xml file that holds xml tag such as <weight>.55 kg</weight>
    I want to have two outputs:
    Output 1) Output to print: 0.55
    Output 2) Output to print 0.8 of the xml tag value (0.55 * 0.8) : 0.44
    I was able to get the Output 1) by using <?format-number:weight;'9G990D00'?>
    However, I can not get the Output2) as expected.
    If I put <?format-number:(weight)*0.8;'9G990D00'?>,
    I get the error message "Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert .55 kg to number."
    Appreciate any help on how to solution for Output2)
    Edited by: user4697912 on Jun 22, 2010 1:23 AM
    Edited by: user4697912 on Jun 22, 2010 1:23 AM

    If that is the case then try using
    <?format-number:( substring-before(WEIGHT,'kg')*0.8);'9G990D00'?>

  • Monitoring and controlling the Tag values of Logix 5000 using Labview while using RSLogix 5000 to program the PLC

    Hi
      I want to know how to change the input bits or tags of a PLC which is programmed using RSlogix 5000. But I need to use Labview to monitor the input bits ( like in Digitial Input bits) and then be able to change the BITS while the PLC runs and the PLC should be able to detect the change in input bits and act accordingly. The programming is done using ladder logic and its done in RSLogix 5000 and dumped into PLC using RSLogix.
    Thanks in advance

    msu,
    Once you have the OPC server up and running the best way to communicate with is is through the Datalogging and Supervisory Control module for LabVIEW.  The DSC module allows you to bind shared variables to items on your OPC server.  Then you could just read from or write to these shared variables to access the data on this OPC server.  If you don't want to get this module you could also just use datasocket to read/write from an OPC server.  The URL you would use in data socket would look something like "opc://localhost/{your opc item's address}".
    -Justin D

  • XML access to atributes and tag values at the same time

    Hi to everyone,
    I'm making some experiences with Flex, but I already have some experience with Flash and AS3.
    What I'm trying to accomplish, is to make a small application that uses webservices from the Weather Channel. The first part of the application is to ask the user his location. Then the location is sent to the webservice and the system return an XML with the possible matches. The user chooses one, and the weather information is shown.
    I have no problem with the navigation, or passing the results from one stage to another, but I'm having a problem, that I think it has an easy fix, but I can't get a light or answer from what I've seen from these forums or webasites... I suspect it's because the format of the XML that is return.
    For example, my request is this one: http://xoap.weather.com/search/search?where=aveiro
    wich return two possible locations, in this way:
    <search ver="3.0">
         <loc id="BRXX1094" type="1">Aveiro, Brazil</loc>
         <loc id="POXX0006" type="1">Aveiro, Portugal</loc>
    </search>
    Well, I want to display in a Datagrid the "id" attribute, and the "loc" tag value, i.e, "Aveiro, Brazil" and "Aveiro, Portugal".
    I defined the DataGrid like this:
    <mx:DataGrid x="10" y="53" width="365" id="dgLocation" dataProvider="{wSearch.lastResult.loc}" itemClick="callService(event);">
          <mx:columns>
                 <mx:DataGridColumn headerText="Localidade" dataField="loc"/>
                 <mx:DataGridColumn headerText="Referência" dataField="@id"/>
          </mx:columns>
    </mx:DataGrid>
    In the "loc" dataField, doesn't show anything, and the "@id" does display the correct information. Since I only have "loc" tag inside the main root tag, how can I get teir values? With labelFunction? How would you write it to get the information?
    This is my last try:
    private function getLocationName(item:Object, column:DataGridColumn):String{
           var xmlitem:XML=XML(item);
           trace(xmlitem.loc.toXMLString());
           return item.loc;
    Any ideias are welcome. Thanks.

    This seems to work:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="wSearch.send();">
      <mx:Script>
        <![CDATA[
          import mx.controls.dataGridClasses.DataGridColumn;
          private function getData(item:Object, column:DataGridColumn):String{
            return XML(item).valueOf();
        ]]>
      </mx:Script>
      <mx:HTTPService id="wSearch" url="http://xoap.weather.com/search/search?where=aveiro"
        resultFormat="e4x"/>
      <mx:DataGrid x="10" y="53" width="365" id="dgLocation"
        dataProvider="{wSearch.lastResult.loc}">
        <mx:columns>
          <mx:DataGridColumn headerText="Localidade" labelFunction="getData"/>
          <mx:DataGridColumn headerText="Referência" dataField="@id"/>
        </mx:columns>
      </mx:DataGrid>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to filter particular xml tag value using -DBMS_XMLGEN / DBMS_XMLSTORE

    Hi,
    I am using dbms_xmlgen and dbms_xmlstore package to extract xml datafile tag value from file server to oracle database table.
    I have used the below pl/sql program to extract the xml tag values to oracle relational table.Its working fine for me.
    But I would like to extract the values based on particular filter condition.
    The following xml program I have 3 rows I would like extract the xml data based on the following condition .
    Filter condition
    ==============
    the tag <STATE_ABBREVIATION> value shuold be 'CA' and the <CITY> tag value should be Palo_Alto then I will store the ZIPCODE
    ZIP_CODE_EXTN,STATE_ABBREVIATION tag values in the Oracle Relational table.
    The below pl/sql program storing all the three rows but I required the values based on the filter condition that I mentioned earlier.
    Kindly assist me what are the steps that I need to change in this program.?
    XML Program file content.
    ======================
    <ZIPCODES>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>94301</ZIPCODE>
    <ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
    <CITY>Palo_Alto</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>95302</ZIPCODE>
    <ZIP_CODE_EXTN>9279</ZIP_CODE_EXTN>
    <CITY>LA</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>TX</STATE_ABBREVIATION>
    <ZIPCODE>75038</ZIPCODE>
    <ZIP_CODE_EXTN>7837</ZIP_CODE_EXTN>
    <CITY>DALLAS</CITY>
    </mappings>
    </ZIPCODES>
    PL/SQL Program for XML extract.
    ==========
    declare
    charString varchar2(80);
    finalStr varchar2(4000) := null;
    rowsp number;
    insCtx DBMS_XMLStore.ctxType;
    ctx dbms_xmlgen.ctxHandle;
    v_FileHandle UTL_FILE.FILE_TYPE;
    begin
    v_FileHandle := utl_file.fopen('XMLTEST','XML_NEW_CITIES.XML','r') ;
    loop
    BEGIN
    utl_file.get_line(v_FileHandle, charString);
    exception
    when no_data_found then
    utl_file.fclose(v_FileHandle);
    exit;
    END;
    dbms_output.put_line(charString);
    if finalStr is not null then
    finalStr := finalStr || charString;
    else
    finalStr := charString;
    end if;
    end loop;
    insCtx := DBMS_XMLStore.newContext('SYS.ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'mappings');
    DBMS_XMLStore.clearUpdateColumnList(insCtx);
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIPCODE');
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIP_CODE_EXT N');
    DBMS_XMLStore.setUpdateColumn(insCtx,'STATE_ABBREV IATION');
    rowsp := dbms_xmlstore.insertXML(insCtx,finalstr);
    end;
    Thanks,
    nat

    Thanks for your reply. :)
    Its working fine in the DBMS_XMLSTORE package. Here I have given the code
    CREATE OR REPLACE TYPE typ_dummy AS  OBJECT
    ( "@ENO"   NUMBER,
      "@ENAME" VARCHAR2(100),
      eno      NUMBER,
      ename    VARCHAR2(100));
    CREATE TABLE EMP
      empno    VARCHAR2(25),
      sal      NUMBER,
      hiredate DATE,
      typ      TYP_DUMMY
    DECLARE
      insCtx DBMS_XMLStore.ctxType;
      rows NUMBER;
      xmldoc CLOB :=
        '<ROWSET>
           <ROW num="1">
             <SAL>1800</SAL>
             <EMPNO>739</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
               <TYP ENO="739" ENAME="Nazurullah">
               <ENO> 1 </ENO>
               <ENAME> ALDRIN </ENAME>
               </TYP>
           </ROW>
           <ROW>
             <SAL>18000</SAL>
             <EMPNO>7369</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP ENO="7369" ENAME="PEPPIN" />
           </ROW>
           <ROW>
             <SAL>37000</SAL>
             <EMPNO>20701</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP>
               <ENO> 20701 </ENO>
               <ENAME> VENKATACHALAM </ENAME>
             </TYP>
           </ROW>
         </ROWSET>';
    BEGIN
      insCtx := DBMS_XMLStore.newContext('emp'); -- get saved context
      -- Now insert the doc.
      -- This will only insert into EMPNO, SAL and HIREDATE columns
      rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
      -- Close the context
      DBMS_XMLStore.closeContext(insCtx);
    END;
    SELECT * FROM emp;
    EMPNO        SAL HIREDATE          TYP(@ENO, @ENAME, ENO, ENAME)
    739         1800 27-AUG-96     TYP_DUMMY(739, 'Nazurullah', 1, ' ALDRIN ')
    7369       18000 27-AUG-96     TYP_DUMMY(7369, 'PEPPIN', NULL, NULL)
    20701      37000 27-AUG-96     TYP_DUMMY(NULL, NULL, 20701, ' VENKATACHALAM ')

  • Since I downloaded version 4. my system runs slow and I get a JavaScript Application error message everytime a change is made on webpage which is most frustrating. Any suggestion to a non software person on a solution?

    This is the message that I receive
    Warning: Error in parsing value for 'background-image'. Declaration dropped.
    Source File: http://support.mozilla.com/en-US/home?as=u
    Line: 0

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • Combo box in JavaScript and store the combo box values into database

    i am a developer, i have a task ie.. i have combo box in JavaScript and i have to store the combo box values into database through JavaServerPage..
    i please every one to have a look on this and please reply soon....

    dear sir,
    your suggestions are really greater the god.............
    i have applied as you said , now i am the page as updated and also i nform you that its multi select ....
    i will show the codings , then u will get a clear identification
    <script language= "JavaScript">
    <!--
    function one2two() {
        m1len = m1.length ;
        for ( i=0; i<m1len ; i++){
            if (m1.options.selected == true ) {
    m2len = m2.length;
    m2.options[m2len]= new Option(m1.options[i].text);
    for ( i = (m1len -1); i>=0; i--){
    if (m1.options[i].selected == true ) {
    m1.options[i] = null;
    function two2one() {
    m2len = m2.length ;
    for ( i=0; i<m2len ; i++){
    if (m2.options[i].selected == true ) {
    m1len = m1.length;
    m1.options[m1len]= new Option(m2.options[i].text);
    for ( i=(m2len-1); i>=0; i--) {
    if (m2.options[i].selected == true ) {
    m2.options[i] = null;
    //-->
    </script>
    <form method="POST" name="theForm" action="update.jsp">
    <table bgcolor="white" border="1" cellpadding="5" cellspacing="2" align="center">
    <tr><td align="center">
    <select id=menu1 size=10 multiple>
    <option>javascript</option>
    <option>php</option>
    <option>Zeo</option>
    <option>asp</option>
    <option>jsp</option>
    <option>ajax</option>
    <option>struts</option>
    </select>
    <p align="center"><input type="button" onClick="one2two()" value=" >> "></p>
    </td><td align="center">
    Languages you know:<BR>
    <SELECT NAME="language" multiple>
    <OPTION VALUE="c">C
    <OPTION VALUE="c++">C++
    </SELECT>
    <p align="center"><input type="button" onClick="two2one()" value=" << " ></p>
    </td></tr></table>
    <center><input type="submit" value="update"></center>
    </form>
    <h4><u>Back<h4>
    <script language= "JavaScript">
    var m1 = document.theForm.menu1;
    var m2 = document.theForm.language;
    </script>
    </body>
    </html>

  • Call C# method from javascript in WebView and retrieve the return value

    The issue I am facing is the following :
    I want to call a C# method from the javascript in my WebView and get the result of this call in my javascript.
    In an WPF Desktop application, it would not be an issue because a WebBrowser
    (the equivalent of a webView) has a property ObjectForScripting to which we can assign a C# object containg the methods we want to call from the javascript.
    In an Windows Store Application, it is slightly different because the WebView
    only contains an event ScriptNotify to which we can subscribe like in the example below :
    void MainPage_Loaded(object sender, RoutedEventArgs e)
    this.webView.ScriptNotify += webView_ScriptNotify;
    When the event ScriptNotify is raised by calling window.external.notify(parameter), the method webView_ScriptNotify is called with the parameter sent by the javascript :
    function CallCSharp() {
    var returnValue;
    window.external.notify(parameter);
    return returnValue;
    private async void webView_ScriptNotify(object sender, NotifyEventArgs e)
    var parameter = e.Value;
    var result = DoSomerthing(parameter);
    The issue is that the javascript only raise the event and doesn't wait for a return value or even for the end of the execution of webView_ScriptNotify().
    A solution to this issue would be call a javascript function from the webView_ScriptNotify() to store the return value in a variable in the javascript and retrieve it after.
    private async void webView_ScriptNotify(object sender, NotifyEventArgs e)
    var parameter = e.Value;
    var result = ReturnResult();
    await this.webView.InvokeScriptAsync("CSharpCallResult", new string[] { result });
    var result;
    function CallCSharp() {
    window.external.notify(parameter);
    return result;
    function CSharpCallResult(parameter){
    result = parameter;
    However this does not work correctly because the call to the CSharpResult function from the C# happens after the javascript has finished to execute the CallCSharp function. Indeed the
    window.external.notify does not wait for the C# to finish to execute.
    Do you have any solution to solve this issue ? It is quite strange that in a Window Store App it is not possible to get the return value of a call to a C# method from the javascript whereas it is not an issue in a WPF application.

    I am not very familiar with the completion pattern and I could not find many things about it on Google, what is the principle? Unfortunately your solution of splitting my JS function does not work in my case. In my example my  CallCSharp
    function is called by another function which provides the parameter and needs the return value to directly use it. This function which called
    CallCSharp will always execute before an InvokeScriptAsync call a second function. Furthermore, the content of my WebView is used in a cross platforms context so actually my
    CallCSharp function more look like the code below.
    function CallCSharp() {
    if (isAndroid()) {
    //mechanism to call C# method from js in Android
    //return the result of call to C# method
    } else if (isWindowsStoreApp()) {
    window.external.notify(parameter);
    // should return the result of call to C# method
    } else {
    In android, the mechanism in the webView allows to return the value of the call to a C# method, in a WPF application also. But I can't figure why for a Windows Store App we don't have this possibility.

  • I get this message everytime I open Firefox: "[JavaScript Application]" and the message is: "TypeError: test is undefined."

    I get this message everytime I open Firefox: "[JavaScript Application]" and the message is: "TypeError: test is undefined."

    This issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • I used firefox 3.6.14 on windows 7 x64 (firxfox x32). I found a problem when I develop my website and alert data or value via javascript , firefox hang (not response) every time. What's happend? How to solve is problem?

    I used firefox 3.6.14 on windows 7 x64 (firxfox x32). I found a problem when I develop my website and alert data or value via javascript , firefox hang (not response) every time. What's happend? How to solve is problem?
    Thank you for help
    Lohkaeo

    Oops - for some reason, this problem now seems to have gone away. May have had something to do with Flash. I'll keep my fingers crossed.

  • Creating and connecting images to indicate tag values

    I am trying to create a simplified version of our plant layout on my front panel using images from the image navigator. I would like to create, for example, a rectangle and have it shown green when my discrete tag value is 1 and red when my tag value is 0. I know how to code this for LEDs, however the images I lay down on the front panel do not give me the same options. (and I can’t find a simple rectangle on the image navigator??)
    If anyone has any experience using this tool, I would like to know the steps involved from dragging an image on to the front panel to coding an image in the way described above.
    Thanks for the help,
    Stuart

    As the previous post mentions, search for threads on "customizing controls", there have been a number of those. Unfortunately, what you are describing, available in most of the SCADA packages (Intellution, Wonderware, etc.) isn't available in LabVIEW. To do it requires opening a boolean indicator (LED, etc.) in the control editor and then pasting in the appropriate images, doable, but a lot of work to get good looking, controllable images.
    Good Luck,
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Help writing javascript with c:out tag

    Hi
    I'm having trouble mixing javascript and jstl and could use some pointers!
    I need to write a flash object tag on the fly using javascript, and to also use <c:out> to define the flashvars parameter.
    So for example, at the top of my page I do something like this:
    <c:set var="thispage" value="home" scope="request"/>
    and then later, in javascript I have something like this:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','1017','height','712','id','index','align','middle','src','index', 'quality','high','bgcolor','#E9E8EB','name','index','allowscriptaccess','sameDomain', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'movie','index','flashVars','page=<c:out value=${\22thispage\22}/>' ); //end AC code
    </script>
    NOTE: the relevant part of this script is this area:
    'flashVars','page=<c:out value=${\22thispage\22}/>'
    The issue isn't the javascript; this all works fine and content is getting pulled into flash. The problem is that the content getting pulled in is literally "<c:out value..." blah blah..., not the variable that I had earlier assigned to it.
    In another thread I read that I need to request the variable from the app/session scope, but I'm not 100% sure of how this all works out. I have tried several things and it's either my jstl or encoding issues that keep causing failures. Assistance for a noob is appreciated!

    Certainly it is possible to do I18n with both struts and JSTL.
    With struts bean:message tag, you need to declare the application properties file in your struts-config.xml
    <message-resources null="false" parameter="com.locale.equipment"/>
    What is your properties file called?
    Where have you put it?

  • Javascript and Struts HTML problem

    Hi all,
    I write the following script in my jsp page, but this one does not produce the output at all :
    <script type="text/javascript">
         document.write("<input type="button" value='<bean:message key="btn.show"/>' onclick='onShowClick(this.form,"<bean:write name="vo" property="id"/>",true)'/>")
    </script>While the following script without Javascript works as expected :
    <input type="button" value='<bean:message key="btn.show"/>' onclick='onShowClick(this.form,"<bean:write name="vo" property="id"/>",true)'/>What is wrong ?
    Thanks in advance,
    Setya

    Sure theres an easier way - don't use javascript?
    Why do you want to do this javascript and document.write?
    Can't you do it using JSP?
    About the quotes:
    The same quote that starts a string, ends it.
    You are writing a javascript string, so the first unescaped single quote it comes across will end it.
    Unfortunately in the middle of this string, you are writing HTML onclick event, with some javascript which ALSO needs quotes escaped(sigh)
    So you have a javascript string producing some HTML, which also embeds a javascript string (now thats complicated quoting). Mixing the quotes with the struts tags just makes this a nightmare.
    If you want to use quotes in the middle of a string you have to escape them.
    Simple examples:
    document.write("hello world");  // no quotes
    document.write("hello \"Java\" ");  // escaping the quotes
    document.write('hello "Java" ') // because we used a different quote, we don't have to escape it
    And mixing the two:
    document.write(' hello "Java\'s buddy" ');  // double quotes don't need to be escaped but the single quote does.Your line of code should be
    document.write('<input type="button" value="<bean:message key="btn.show"/>" onclick="onShowClick(this.form,\'<bean.write name="vo" property="id"/>\',true)"')Note that I escaped the single quotes around the string attribute to the javascript method. Needed to do this, so as not to disturb the double quotes encapsulating the onclick="..." method.
    Good luck,
    evnafets

  • h:messages tag display order

    From my observations, it seems that messages displayed by the messages tag show up with the messages created first at the end of the list (or table). On the surface, this makes sense --new messages are thrown on the pile, so to speak.  But this is the complete reverse order from how the fields show up on the form. Fields at the top of the form, which are validated first, show up on the bottom of the list. Fields at the bottom of the form, show up first. Not very intuitive for the user.
    Here are the options as I see them:
    1) write a custom component extending the messages component with the desired sorting behavior
    2) abandon the messages component, and code a panelGrid of message components for every field on the form (in the desired order).
    3) find a third party component... this seems basic enough so maybe this is already part of myFaces or ADF. So far, I've been getting by with the components included in the RI. Will something this trivial force me to switch?
    What are the approaches that I've missed?

    Here is an easy solution without having to create a custom component. I have a superclass bean for all of my backing beans with common functionality. In the validate() of my superclass bean I check for any messages to determine navigation and also capture all messages into a list if there are any.
         protected String validate() {
             String result = "success";
             FacesContext context = FacesContext.getCurrentInstance();
                        if(context.getMessages().hasNext()){
                 Iterator i = context.getMessages();
                 while(i.hasNext()){
              FacesMessage message = (FacesMessage)i.next();
              errorMessages.add(message.getDetail());
                 result = null;
             return result;
         }On the jsp I use JSTL to list the messages.
    <span style="width:100%">
         <h:outputText value="#{appBundle.ERR_HEADER}<br/>" escape="false" rendered="#{SelectAccountBean.messages == true}" styleClass="title"/>     
         <c:forEach items="${SelectAccountBean.errorMessages}" var="msg">
              <c:out value="<span class='message'>${msg}</span>" escapeXml="false"/>
         </c:forEach>
         <h:outputText value="<br/>" escape="false" rendered="#{SelectAccountBean.messages == true}"/>          
            </span>Edited by: minicpt on Jul 31, 2008 2:05 PM

Maybe you are looking for

  • How to obtain the file name of the cached file

    Hi All, I am using JMF to play a MP3 file from an HTTP link and I need to know the file name of the locally cached file. I found that I can obtain the cache directory using Manager.getCacheDirectory() and I can see the cached file there but its file

  • How to change icons??

    Ok, I have changed all the icons except the System Preferences one. Is there a way to do it. it will not let me. has somebody changed theirs or can somebody do it and see if can be done. Thanks

  • Error when gathering a distribution

    We are currently running ZFS 3.0.2 and are having an error when trying to distribute a large package with many (over 3000) files. The error is: Gather (name and path of application) stopped with an unknown error. The TED.log file has the same informa

  • SAP Ldap - AD application mode

    Hello List I have setup SAP LDAP sync with AD in domain mode and works pretty well but the AD team is a little reluctant to extend the schema of the User objects and worried about the traffic in network sync. So we have setup an Active Directory serv

  • I gave my mom a macbook pro but she doesnt want it. How do I complete transfer of computer to me?

    it was too much for her. Now it's mine. I reset the ID but sometimes her email address still crops up on outgoing emails.