Hiding global messages

Hi,
Do you know where the global messages are stored? warning, information and error messages. I would like to hide the one of the warning messages on TPMOE->TradepromotionOP. I found one generic class for messages where I could remove one message, but did not work.
ZL_MKTPRJ_P_BSPWDCOMPONE0_IMPL->AUTOPROCESS_MESSAGES
Yes, I could use cl_crm_bol_core and access the message service and delete the required message. But I would like to use some common class for message where I can manipulate with messages.
Thanks,
Praveen

There is a hack that might work for you. Wrap the af:messages in a div with its style set to display:none. So
<div id="sdsd" style="display:none">
    <af:messages id="m1" globalOnly="false" inline="true"/>
</div>

Similar Messages

  • Global Messages are not being shown ??

    After an action, I am adding a global message to inform the user it was successful as such:
            String message = "Successfully created ticket.  ID# " + id;
            FacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO, message,""));
            return "success";However, after being redirected, the messages box never gets the message, although, the message is added correctly, as shown in the log:
    2006-04-19 14:50:57,086 DEBUG [com.sun.faces.context.FacesContextImpl] Adding Message[sourceId=<<NONE>>,summary=Successfully created ticket.  ID# 1)
    2006-04-19 14:50:57,086 DEBUG [com.sun.faces.application.ViewHandlerImpl] URL pattern of the FacesServlet executing the current request .jsf
    2006-04-19 14:50:57,086 DEBUG [com.sun.faces.application.NavigationHandlerImpl] Redirecting to path /TechDesk/main/requests/requestListing.jsf for outcome success and viewId /main/requests/requestListing.jspHere is my messages declaration in the redirected /main/requests/requestListing.jsp
    <h:messages showDetail="true" showSummary="true" globalOnly="true"/>Can anyone tell me what I'm doing wrong?? The messages gets populated, as shown in the logs, but it never gets displayed in the messages box.
    Thanks so much!

    Okay, it seems to get lost in the redirection. If I add the messages box directly on the same page with a return value of "null" (return to the same page), the messages box gets populated.
    However, after getting redirected, I seem to be losing the FacesContext. I thought the FacesContext is created per request, so shouldn't it be available after a redirect?

  • Global Messages with h:messages tag.

    hi,according to the documentation of jsf1.1, global messages are those messages that are not associated with any client identifier, which means, messages that are not associated with any UIComponent. At the mean while, the [b]for attribute is mandatory for the h:message tag. so it means that global messages are not specified by the JSF page programmers. so how are these message produced? and what are they used for?
    Best Regards

    For example if you are using backing bean and there is error you want to show globally, without showing for any particular field then you can have something like this in backing bean
    catch (Exception e1) {
                        facesContext.addMessage(
                             null,
                             new FacesMessage(
                                  FacesMessage.SEVERITY_INFO,
                                  "Unable to Add User." + e1,
                        return "AddUser";
    And to show this message, you have have something like this in your page.
    <h:panelGrid width="100%" columns="1" border="0">
                        <h:messages layout="table" styleClass="errorMsg" id="allMsg"
                             showDetail="false"></h:messages>
                   </h:panelGrid>

  • Error Handler API: No proper Initialization of the global message list

    Hi All,
    I'm trying the following:
    1. Call of Web Service EGO_ITEM_PUB.PROCESS_ITEM for an already existing item 'CS_Test_Item_01' with parameters:
    +<soapenv:Body>+
    +<proc:InputParameters>+
    +<proc:P_API_VERSION>1.0</proc:P_API_VERSION>+
    +<proc:P_INIT_MSG_LIST>T</proc:P_INIT_MSG_LIST>+
    +<proc:P_COMMIT>T</proc:P_COMMIT>+
    +<proc:P_TRANSACTION_TYPE>CREATE</proc:P_TRANSACTION_TYPE>+
    +<proc:P_ITEM_NUMBER>CS_Test_Item_01</proc:P_ITEM_NUMBER>+
    +<proc:P_DESCRIPTION>Test</proc:P_DESCRIPTION>+
    +<proc:P_ORGANIZATION_ID>204</proc:P_ORGANIZATION_ID>+
    +</proc:InputParameters>+
    +</soapenv:Body>+
    Getting Response:
    +<OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/apps/ego/soaprovider/plsql/ego_item_pub/process_item__1/">+
    +<X_INVENTORY_ITEM_ID xsi:nil="true"/>+
    +<X_ORGANIZATION_ID xsi:nil="true"/>+
    +<X_RETURN_STATUS>E</X_RETURN_STATUS>+
    +<X_MSG_COUNT>1</X_MSG_COUNT>+
    +<X_MSG_DATA xsi:nil="true"/>+
    +</OutputParameters>+
    2. Repeat Web Service Call EGO_ITEM_PUB.PROCESS_ITEM for already existing items 'CS_Test_Item_02', 'CS_Test_Item_03' and 'CS_Test_Item_04'.
    3. Call of ERROR_HANDLER.GET_MESSAGE_LIST several times.
    Getting following sequence of responses:
    env:Body>
    <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/apps/bom/soaprovider/plsql/error_handler/get_message_list/">
    <X_MESSAGE_LIST>
    <X_MESSAGE_LIST_ITEM>
    <ORGANIZATION_ID xsi:nil="true"/>
    <ENTITY_ID>ITEM</ENTITY_ID>
    <TABLE_NAME>MTL_SYSTEM_ITEMS_B</TABLE_NAME>
    <MESSAGE_NAME xsi:nil="true"/>
    <MESSAGE_TEXT>Item CS_Test_Item_02 already exists in the organization Vision Operations. Please use a different item name/number.</MESSAGE_TEXT>
    <ENTITY_INDEX>1</ENTITY_INDEX>
    <MESSAGE_TYPE>E</MESSAGE_TYPE>
    <ROW_IDENTIFIER xsi:nil="true"/>
    <BO_IDENTIFIER>ITM</BO_IDENTIFIER>
    </X_MESSAGE_LIST_ITEM>
    </X_MESSAGE_LIST>
    </OutputParameters>
    </env:Body>
    env:Body>
    <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/apps/bom/soaprovider/plsql/error_handler/get_message_list/">
    <X_MESSAGE_LIST>
    <X_MESSAGE_LIST_ITEM>
    <ORGANIZATION_ID xsi:nil="true"/>
    <ENTITY_ID>ITEM</ENTITY_ID>
    <TABLE_NAME>MTL_SYSTEM_ITEMS_B</TABLE_NAME>
    <MESSAGE_NAME xsi:nil="true"/>
    <MESSAGE_TEXT>Item CS_Test_Item_03 already exists in the organization Vision Operations. Please use a different item name/number.</MESSAGE_TEXT>
    <ENTITY_INDEX>1</ENTITY_INDEX>
    <MESSAGE_TYPE>E</MESSAGE_TYPE>
    <ROW_IDENTIFIER xsi:nil="true"/>
    <BO_IDENTIFIER>ITM</BO_IDENTIFIER>
    </X_MESSAGE_LIST_ITEM>
    </X_MESSAGE_LIST>
    </OutputParameters>
    </env:Body>
    env:Body>
    <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/apps/bom/soaprovider/plsql/error_handler/get_message_list/">
    <X_MESSAGE_LIST>
    <X_MESSAGE_LIST_ITEM>
    <ORGANIZATION_ID xsi:nil="true"/>
    <ENTITY_ID>ITEM</ENTITY_ID>
    <TABLE_NAME>MTL_SYSTEM_ITEMS_B</TABLE_NAME>
    <MESSAGE_NAME xsi:nil="true"/>
    <MESSAGE_TEXT>Item CS_Test_Item_04 already exists in the organization Vision Operations. Please use a different item name/number.</MESSAGE_TEXT>
    <ENTITY_INDEX>1</ENTITY_INDEX>
    <MESSAGE_TYPE>E</MESSAGE_TYPE>
    <ROW_IDENTIFIER xsi:nil="true"/>
    <BO_IDENTIFIER>ITM</BO_IDENTIFIER>
    </X_MESSAGE_LIST_ITEM>
    </X_MESSAGE_LIST>
    </OutputParameters>
    </env:Body>
    env:Body>
    <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/apps/bom/soaprovider/plsql/error_handler/get_message_list/">
    <X_MESSAGE_LIST>
    <X_MESSAGE_LIST_ITEM>
    <ORGANIZATION_ID xsi:nil="true"/>
    <ENTITY_ID>ITEM</ENTITY_ID>
    <TABLE_NAME>MTL_SYSTEM_ITEMS_B</TABLE_NAME>
    <MESSAGE_NAME xsi:nil="true"/>
    <MESSAGE_TEXT>Item CS_Test_Item_02 already exists in the organization Vision Operations. Please use a different item name/number.</MESSAGE_TEXT>
    <ENTITY_INDEX>1</ENTITY_INDEX>
    <MESSAGE_TYPE>E</MESSAGE_TYPE>
    <ROW_IDENTIFIER xsi:nil="true"/>
    <BO_IDENTIFIER>ITM</BO_IDENTIFIER>
    </X_MESSAGE_LIST_ITEM>
    </X_MESSAGE_LIST>
    </OutputParameters>
    </env:Body>
    Conclusion:
    * The global message list isn't deleted at the beginning of a 'Process Item' transaction (although P_INIT_MSG_LIST is set to 'T')
    * The global message list always contains the error messages of last three transactions.
    * When trying to get the corresponding error message(s) for a 'Process Item' transaction by calling GET_MESSAGE_LIST, I always get an older message of one of the previous transactions (always the third oldest). Only on the third call of GET_MESSAGE_LIST I get the correct error message(s).
    Does anybody know this behaviour and can help me with this?
    Thanks,
    Carolin
    Edited by: 788963 on 06.10.2010 01:47

    Annotation:
    This behavior is only observed when calling ERROR_HANDLER web services.
    I just tried the same in the PL/SQL context -> this time everything works OK.
    Any ideas?
    Carolin

  • JSF global messages - generic render

    Hi, in JSF when have global messages displayed inline.
    I would like to go for each message in messages and check its type.
    From its message type, if its info, display a blue background. If error type message, display the message background to say pink red (i.e another color)
    Thinking it can be done generically in a render phase. Some code sample on how to do this by overwriting and providing the message render enchancements
    Thanks
    Abraham

    use errorStyle/errorClass or fatalStyle/fatalClass and so on ...

  • ADF RC  - how to implement global messages

    Hi,
    I'd like to write global messages class shared by all application. It should be fired for all COMMIT (obviously without exceptions) operation and display following message:
    If user made any changes - <strong>"Changes have been commited"</strong>
    If user press commit without any changes - <strong>"There are no changes to save"</strong>
    It also would be nice to get a message when user insert or change in form and wants to leave page without commiting. He should get confirmation window with info:
    <strong>"You have uncommited changes. What dou you want to do:"</strong> and buttons:
    - <strong>Continue</strong> (Changes will be lost)
    - <strong>Don't leave a page</strong>
    I've seen similar solution in applications created in Jheadstart. Has anyone implemented this ?
    Kuba
    Edited by: KUBA on Nov 7, 2008 11:25 AM
    Edited by: KUBA on Nov 7, 2008 2:27 PM

    I think the simplest approach would be to create a custom subclass of DCJboDataControl (which also requires defining a custom data control factory subclass) and overriding the commitTransaction() method.
    For example:
    package test.view.binding;
    import oracle.adf.model.bc4j.DataControlFactoryImpl;
    public class CustomDCJboDataControlFactory extends DataControlFactoryImpl {
        protected String getDataControlClassName() {
          return CustomDCJboDataControl.class.getName();
    }and
    package test.view.binding;
    import java.util.HashMap;
    import oracle.jbo.common.ampool.SessionCookie;
    import oracle.jbo.uicli.binding.JUApplication;
    public class CustomDCJboDataControl extends JUApplication {
        public CustomDCJboDataControl() {
           super();
        public CustomDCJboDataControl(SessionCookie sessionCookie)
           super(sessionCookie);
    }Then you use the custom data control by configuring your factory in the dataControlUsage element in the DataBindings.cpx file like:
      <!-- etc. -->
      <dataControlUsages>
        <BC4JDataControl id="DepartmentsModuleDataControl" Package="test.model"
                         FactoryClass="test.view.binding.CustomDCJboDataControlFactory"
                         SupportsTransactions="true" SupportsFindMode="true"
                         SupportsRangesize="true" SupportsResetState="true"
                         SupportsSortCollection="true"
                         Configuration="DepartmentsModuleLocal" syncMode="Immediate"
                         xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
      </dataControlUsages>
      <!-- etc. -->

  • Web.de lost all my emails can I merge an old global-messages-db.sqlite with my current one?

    When I check my old global-messages-db.sqlite file from my windows backup the emails still semm to be in there, can I somehow merger/ extract these mails into my current account?
    Best regards,
    temps

    global-messages-db.sqlite is a search index. It doesn't contain entire messages.
    Restore a recent backup of your profile folder instead.

  • Thunderbird is indexing every time I click on a message (slow). I've deleted global-messages-db.sqlite. compacted. let it rebuild the db. Version 24.4

    thunderbird is indexing every time I click on a message (slow). I've deleted global-messages-db.sqlite. compacted. let it rebuild the db. Version 24.4
    McAfee shield stays busy the entire time it's indexing. I also deleted about 80% of the messages it was trying to reindex. No joy.
    Thanks

    I have been having this same problem: but it does not appear to have been due to my antivirus (Comodo). In my case the system is not just slow: the indexer seems to hang permanently. I suspected file corruption in one of my inboxes. But, whereas the Activity Manager gives the name of the sub-folder it is currently working on, it does not appear to report the name of the inbox.
    So to trace the corrupt file I had to keep moving emails from my inboxes to sub-folders until the system was able to give me the name of the sub-folder it was working on. Then, by shuffling emails between folders, I was finally able to identify the offending message. This was extremely tedious and time-consuming, as I had to restart Thunderbird every time I did a reshuffle in order to re-initialise the indexing process. The culprit turned out to be a copy of a phishing email I had previously reported. I'm guessing it contained intentionally bad data that confused the indexing system.
    However, it seems that this wasn't the only corrupt file: so I've yet to test all my other inboxes when I've got several more hours available,
    A problem like this would be much easier to trace if the indexer always clearly identified which folder it was examining or attempting to index, e.g. by prefixing the inbox with the mailbox folder name. That way one could tell immediately which inbox or sub-folder was the source of the problem.

  • Hiding Sent Messages - BB Q10

    Hello,
    I am running the latest software, version 10.2.1.537 and am updating regularly seeing if this one annoying hiccup gets fixed.
    Does anyone else have issues with hiding sent messages in the Hub; specifically email?  The feature to show them is shut off however they continue to display.  If I turn the setting on and then off again it will sometimes 'reset' it but sometimes within an hour or two the sent email messages still display.  Seems like such a simple thing to do but it just won't work on my phone.
    It's really frustrating as it is completely random when it starts happening despite having it turned off.  It can sometime goes for a day, sometimes it's a few hours??
    I really don't want to do a full clean/restore of my device if I don't have to.
    Thanks in advance for any insight.

    I am a US Verizon customer so I am still on 10.1.0.4189 but now have the same issue.  Last week I lost all ability to my Exchange email account on my Q10 (PC and other devices were still 100% functioning) so I had to delete and re-enable the Exchange account on my Q10.  Since then I am now stuck with seeing Sent Messages even though that option is de-selected.
    There are several areas that show the status of Sent Messages; in the Blackberry Hub Settings this selection is set to OFF, in System Settings - Accounts - Email Account, this is a grayed-out (checked) option.  Nothing I do can get this box un-grayed...
    Until the Exchange account got toasted last week I had 'control' over Sent Messages.

  • OSX Yosemite: cmd-M no longer showing/hiding the messages app

    OSX Yosemite: cmd-M no longer showing/hiding the messages app. Is there a new shortcut to get this to work?

    Remove Office 2008 for Mac using Microsoft deinstall procedure. Reinstall Office 2008 for Mac.  If there are updates, apply them. Using Disk Utility, verify/repair permissions on your boot drive.
    Does Office for Mac 2008 now work correctly? If not, you may want to repeat the above first sentence, and then update to Office for Mac 2011, and apply the latest (14.4.8) update which has Yosemite fixes.

  • Hiding system messages in WLST

    Hi,
    Is there any way to hide messages like below , but not hiding the messages which I output via the print command?
    'Disconnected from weblogic server: XXX
    Connecting to weblogic server instance running at t3://xxx as username weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'xxx'.
    Warning: An insecure protocol was used to connect to the server.
    To ensure on-the-wire security, the SSL port or Admin port
    should be used instead.
    ---------------------

    found it :p
    'false' needs to be added to the redirect rule.

  • Hiding wireless messages on boot [Solved]

    After clearing the systemd startup sequence on my laptop, the system displays several messages regarding what I can only assume to be the kernel's wireless drivers, such as
    [ <some value, perhaps a timestamp?>] ieee80211 phy0: brcmsmac: brcms_ops_bss_info_changed: associated
    [ <some value, perhaps a timestamp?>] ieee80211 phy0: brcms_ops_bss_info_changed: arp filtering: enable true, count 0 (implment)
    They also show up as I go in and out of hibernate and sleep. These would be fine, except they often get printed in the middle of my login prompt. Is there any way to disable these messages or route them elsewhere, such as to a log?
    I'm using NetworkManager, for what it's worth.
    Last edited by slavik262 (2013-03-05 17:05:33)

    I edited multiple options in /etc/systed/journald.conf, including uncommenting ForwardToConsole=no and uninstalled syslog-ng (since the wiki advised that it is no longer necessary given systemd's journald service), but these messages still persist. I could globally set the log level of the kernel as illusionist suggested (and as is noted in this thread), but it seems like quite the brute force solution.
    Is there nothing else I can do to suppress these messages?
    Last edited by slavik262 (2013-03-05 16:00:19)

  • Global messages and inilne messages both are being displayed

    Hi,
    I have a page index.xhtml in which i am including another page header.xhtml like this
    <ui:insert name="header">
                   <ui:include src="header.xhtml" />
              </ui:insert>
    my header.xhtml is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:h="http://java.sun.com/jsf/html">
    <body>
         <div id="header-container">
              <div id="header">
                   <div class="left_logo">
                        <h:graphicImage library="images" name="trainings.jpg" width="339"
                             height="120" />
                   </div>
                   <div id="navigation">
                        <ul>
                             <li id="home-nav">JSF Training</li>
                             <li id="about-nav">About</li>
                        </ul>
                   </div>
                   <div class="clear"></div>
              </div>
         </div>
    </body>
    </html>
    and index.xhtml is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:lang="en">
    <body>
    <f:view xmlns:c="http://java.sun.com/jstl/core"
         xmlns:s="http://www.springframework.org/tags"
         xmlns:form="http://www.springframework.org/tags/form">
         <h:head>
              <h:outputStylesheet library="css" name="style.css" target="head" />
              <meta http-equiv="content-type" content="text/html; charset=utf-8" />
              <title>#{msgs.welcome}</title>
              <link rel="shortcut icon" href="../resources/images/favicon.ico" />
              <link rel="stylesheet" href="../resources/css/style.css"
                   type="text/css" media="all" />
         </h:head>
         <h:body class="home blog">
              <!-- <ui:composition template="baseTemplate.xhtml">
                   <ui:define name="content"> -->
              <ui:insert name="header">
                   <ui:include src="header.xhtml" />
              </ui:insert>
              <div id="home-training-container">
                             <h:form>
                                  <table align="center">
                                       <tr>
                                            <td colspan="2" align="center"><font size="4"><b><h:outputLabel
                                                                value="#{msgs.welcomeTitle}" /></b></font></td>
                                       </tr>
                                       <tr>
                                            <td colspan="2"><font size="4"><b><h:outputLabel
                                                                value="#{msgs.homepageTitle}"></h:outputLabel></b></font></td>
                                       </tr>
                                       <tr>
                                            <td><h:outputLabel value="#{msgs.nameLabel}" /></td>
                                            <td><h:inputText binding="#{loginName}"
                                                      value="#{user.loginName}" id="loginName" label="Name"
                                                      required="true" requiredMessage="#{msgs.nameRequired}">
                                                      <f:validateLength minimum="5" maximum="20" />
                                                      <f:validateRegex pattern="#{msgs.regexPattern}"></f:validateRegex>
                                                 </h:inputText>
    <h:message showSummary="true" showDetail="false"
                                                      for="loginName" errorClass="errors" globalOnly="true"></h:message>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td><h:outputLabel value="#{msgs.passwordLabel}" /></td>
                                            <td><h:inputSecret binding="#{password}"
                                                      value="#{user.password}" id="password" required="true"
                                                      requiredMessage="#{msgs.passwordRequired}">
                                                      <f:validateLength minimum="3" maximum="20" />
                                                 </h:inputSecret>
    <h:message showSummary="true" showDetail="false"
                                                      for="password" errorClass="errors"></h:message>
                                                 <!-- <h:message for="loginValid" errorClass="errors" globalOnly="true"></h:message> -->
                                            </td>
                                       </tr>
                                       <tr>
                                            <td><h:outputLabel value="#{msgs.roleLabel}" /></td>
                                            <td><h:selectOneMenu value="#{user.role}">
                                                      <f:selectItem itemValue="#{msgs.admin}"
                                                           itemLabel="#{msgs.admin}" />
                                                      <f:selectItem itemValue="#{msgs.guest}"
                                                           itemLabel="#{msgs.guest}" />
                                                 </h:selectOneMenu></td>
                                       </tr>
                                       <tr>
                                            <td colspan="2" align="left"><h:commandButton
                                                      value="#{msgs.login}" action="#{user.login}"></h:commandButton>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td colspan="2" align="right"><h:commandButton
                                                      value="#{msgs.registerNewUser}" action="#{user.addNewUser}"
                                                      immediate="true">
                                                 </h:commandButton></td>
                                       </tr>
                                  </table>
                             </h:form>
                        </div>
                        <ui:insert name="footer">
              <ui:include src="footer.xhtml"/>
         </ui:insert>          
         </h:body>
    </f:view>
    </body>
    </html>
    if an error occur then currently it is displaying below the text box and also at the top which should not happen. I want to show messages only below the corresponding text boxes.
    how can i do it?
    if i remove namespace declaration in header.xhtml like this
    <div id="header-container">
              <div id="header">
                   <div class="left_logo">
                        <h:graphicImage library="images" name="trainings.jpg" width="339"
                             height="120" />
                             <h:messages rendered="false" globalOnly="true" layout="table"/>
                   </div>
                   <div id="navigation">
                        <ul>
                             <li id="home-nav">JSF Training</li>
                             <li id="about-nav">About</li>
                        </ul>
                   </div>
                   <div class="clear"></div>
              </div>
         </div>
    then top messages are not displayed but a warning message displayed
    "Warning: This page calls for XML namespace declared with prefix div but no taglibrary exists for that namespace"
    Please help me...
    Edited by: 931725 on May 31, 2012 1:46 AM

    i have made lot effort over this, but could not find the solution.. :|
    index.html is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:lang="en">
    <body>
    <f:view xmlns:c="http://java.sun.com/jstl/core"
         xmlns:s="http://www.springframework.org/tags"
         xmlns:form="http://www.springframework.org/tags/form">     
         <h:head>
              <h:outputStylesheet library="css" name="style.css" target="head" />
              <meta http-equiv="content-type" content="text/html; charset=utf-8" />
              <title>#{msgs.welcome}</title>
              <link rel="shortcut icon" href="../resources/images/favicon.ico" />
              <link rel="stylesheet" href="../resources/css/style.css"
                   type="text/css" media="all" />
         </h:head>
         <h:body class="home blog">
                 <ui:insert name="header">
                   <ui:include src="header.xhtml" />
              </ui:insert>
              <div id="home-training-container">
                             <h:form>
                                  <table align="center">
                                       <tr>
                                            <td colspan="2" align="center"><font size="4"><b><h:outputLabel
                                                                value="#{msgs.welcomeTitle}" /></b></font></td>
                                       </tr>
                                       <tr>
                                            <td colspan="2"><font size="4"><b><h:outputLabel
                                                                value="#{msgs.homepageTitle}"></h:outputLabel></b></font></td>
                                       </tr>
                                       <tr>
                                            <td><h:outputLabel value="#{msgs.nameLabel}" /></td>
                                            <td><h:inputText binding="#{loginName}"
                                                      value="#{user.loginName}" id="loginName" label="Name"
                                                      required="true" requiredMessage="#{msgs.nameRequired}">
                                                      <f:validateLength minimum="5" maximum="20" />
                                                      <f:validateRegex pattern="#{msgs.regexPattern}"></f:validateRegex>
                                                      <br />
                                                 </h:inputText><br /> <h:message showSummary="true" showDetail="false"
                                                      for="loginName" errorClass="errors" globalOnly="true"></h:message>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td><h:outputLabel value="#{msgs.passwordLabel}" /></td>
                                            <td><h:inputSecret binding="#{password}"
                                                      value="#{user.password}" id="password" required="true"
                                                      requiredMessage="#{msgs.passwordRequired}">
                                                      <f:validateLength minimum="3" maximum="20" />
                                                 </h:inputSecret><br /><h:message showSummary="true" showDetail="false"
                                                      for="password" errorClass="errors"></h:message>
                                                 <!-- <h:message for="loginValid" errorClass="errors" globalOnly="true"></h:message> -->
                                            </td>
                                       </tr>
                                       <tr>
                                            <td><h:outputLabel value="#{msgs.roleLabel}" /></td>
                                            <td><h:selectOneMenu value="#{user.role}">
                                                      <f:selectItem itemValue="#{msgs.admin}"
                                                           itemLabel="#{msgs.admin}" />
                                                      <f:selectItem itemValue="#{msgs.guest}"
                                                           itemLabel="#{msgs.guest}" />
                                                 </h:selectOneMenu></td>
                                       </tr>
                                       <tr>
                                            <td colspan="2" align="left"><h:commandButton
                                                      value="#{msgs.login}" action="#{user.login}"></h:commandButton>
                                            </td>
                                       </tr>
                                       <tr>
                                            <td colspan="2" align="right"><h:commandButton
                                                      value="#{msgs.registerNewUser}" action="#{user.addNewUser}"
                                                      immediate="true">
                                                 </h:commandButton></td>
                                       </tr>
                                  </table>
                             </h:form>
                        </div>
                         <ui:insert name="footer">
                                    <ui:include src="footer.xhtml"/>
                                 </ui:insert>          
         </h:body>
    </f:view>
    </body>
    </html>header.xhtml is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:h="http://java.sun.com/jsf/html">
    <body>
         <div id="header-container">
              <div id="header">
                   <div class="left_logo">
                        <h:graphicImage library="images" name="trainings.jpg" width="339"
                             height="120" />
                   </div>
                   <div id="navigation">
                        <ul>
                             <li id="home-nav"><a href="#">JSF Training</a></li>
                             <li id="about-nav"><a href="#">About</a></li>
                        </ul>
                   </div>
                   <div class="clear"></div>
              </div>
         </div>
    </body>
    </html>

  • Hiding information message without modification

    Hi,
    Is there any way from which i can hide an information message in trasaction without modifying the program.
    Thanks,

    MODULE m_pai INPUT.
    CASE fcode.
        WHEN 'ENT'.
            PERFORM f_force_enter.
            LOOP AT git_tab INTO gwa_tab.
                  PERFORM f_update_it9090 USING l_tabix.
            ENDLOOP.
      ENDCASE.
      CLEAR fcode.
    ENDMODULE.      
    FORM f_update_it9090 USING fu_tabix.
    PERFORM f_read_9090 TABLES lit_p9090 USING fu_tab CHANGING lwa_p9090.
        IF lwa_p9090-pernr IS NOT INITIAL.
      ELSE.
          CONCATENATE fu_tab-pernr text-014 '.' INTO l_text SEPARATED BY space.
          <b>MESSAGE i004 WITH l_text.</b>
          g_final_flag = 'X'.
        ENDIF.
    ENDFORM.          
    FORM f_force_enter.
      CALL METHOD g_alv->check_changed_data
        IMPORTING
          e_valid = g_valid.
    ENDFORM.
    Therefore, when this code is run the statement highlighted in BOLD behaves differently when 'Enter' is strike before save and when 'Enter' is not strike before save.  The f_force_enter subroutine is invoke to cause data_changed method to be invoke to capture relevant data before proceeding to other processing.

  • HIding "Display message log" link in the message area

    Hi Gurus,
                  I've a requirement where i need to hide the default " Display Message Log" Link in the message area.
    Pls give me some idea on this.
    Regards,
    Shravan.

    Hi Shravan,
    You can delete message log using method RESET_MESSAGES
    Please check this..
    http://help.sap.com/saphelp_nw70/helpdata/en/45/5996d07d2b09cce10000000a114a6b/content.htm
    use reset mesages method in the example code.
    data: l_wd_view_controller         type ref to if_wd_view_controller,
            l_api_wdr_msg_area           type ref to if_wd_window_controller,
            l_wd_message_area            type ref to if_wd_message_area.
      l_wd_view_controller ?= wd_this->wd_get_api( ).
      l_api_wdr_msg_area ?= l_wd_view_controller->get_embedding_window_ctlr( ).
      l_wd_message_area = l_api_wdr_msg_area->get_message_area( ).
      l_wd_message_area->reset_messages( i_keep_current = 'X ' ).  // try with 'X'. and ' ' .
    Cheers,
    Kris.

Maybe you are looking for

  • Personal hotspot issue in iPhone 5 with iOS 6.1.4

    My phone runs ios 6.1.4 And personal hotspot got disappeared... I dont have itunes installed in my computer and i have not backed up my data to erase my phone and start from scratch... What Should i do now...? From india using aircel network.. I need

  • No Audio for Windows 7 bootcamp, Tried to fix multiple times, STILL FAULTY!

    I have a macbook pro 17" OS X 10.6.4, I'm running windows 7 on bootcamp, and everything is up to date except my bootcamp which is at version 3.0.2. I have no audio and there is that red light inside my headphone jack, I can hear sounds when my headph

  • MBP FireWire 800 bus has corrupted 3 drives

    Hello, I have been working with a friend on a recording of their band. We recorded a 24 track Pro Tools 9 session of their latest show. Everything has been working flawlessly until last night. I received a frantic call from my buddy yesterday telling

  • How do I remove 'no sender' messages from my iphone 4?

    Hi, This is my second iPhone and am having the same issue with the 4 as I had with the 3.  E-mails sometimes appear as 'no sender' and 'this message has no content'.  I would like to know how to get them off of the phone since the delete option is no

  • How to add new sap system to widget in ecclipse.

    Hi all i tried to add my sap server. but while testing the connection it is giving an error " SAP Widget Foundation isn't running. " i dont know how to configure that. plz help jay