Customise Tool Tip Message

Hi All,
I have a Date Component on my page and basically I am trying to Disable the Saturadays and Sundays from the Calender which I did using the disabledDaysOfWeek attribute. By doing so, I am getting a default tool tip message (in Bold) that says
Example: 11/29/1998
Enter a date that falls on one of the following days: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
So, I want to customize it by removing Saturday and Sunday from the above message. I tried shortDesc which did not work, instead displays the typed message (un-bolded) along with the above bold message.
So, can I do achieve it? If not, I would like to disable this tool tip message.
<af:inputDate value="#{bindings.SelectDate.inputValue}"
label="Preferred Date :"
required="true"
shortDesc="#{bindings.SelectDate.hints.tooltip}"
binding="#{backingBeanScope.beanName.id1}"
id="id1"
disabledDaysOfWeek="sat sun">
<f:validator binding="#{bindings.SelectDate.validator}"/>
<af:convertDateTime pattern="#{bindings.SelectDate.format}"/>
</af:inputDate>
Edited by: Saif Khan on May 14, 2012 4:23 PM

Umesh,
Thank you very much. I have just put the InputDate component onto the page and this code seems to be working in my Laptop with ver 11.1.2.1.0 and win XP. For some reason its not working in my work computer with win7 enterprise and ver 11.1.1.5.0. I will try to use the same code in work computer tomorrow and check.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="untitled2.jspx" id="d1">
<af:form id="f1">
<af:inputDate label="Label 1" id="id1" disabledDaysOfWeek="sat sun"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
I will surely post you if its working in the work computer as well. And i am sorry to trouble you which I didnt mean to. :)

Similar Messages

  • Updating Tool tip message of Query panel Operators

    I have a requirement to modify the tool tip message of Query panel operators. Currently the following messages are displayed when I hover over the 'CONTAINS' operators for the 'name' field in the query panel - "Operators for Name" & "Contains". I want to replace these messages with custom message. Please let me know if this possible. I understand that I can provide custom message for a 'Custom Operator' . But checking if there is a easier way of doing this.
    Any pointers will be appreciated.

    Hi,
    use the Resource Strings mentioned here http://docs.oracle.com/cd/E28280_01/apirefs.1111/e15862/toc.htm#query and look for how to skin these labels: http://docs.oracle.com/cd/E28280_01/web.1111/b31973/af_skin.htm#autoId10
    Frank

  • Strange "tool tip:" message when reading blogs in Safari

    Today, I was reading a blog in Safari (latest version) in SnoLo (latest version). Something caught my eye. I looked at the lower part of the screen and noticed that the idle cursor that was positioned over a word in the blog had turned into a pointer hand, but there wasn't a hyperlink in the word. I just shrugged it off until I noticed it flick again and the hand had turned into a message, like a tool tio in most applications. The tip said "Discover what top martial artists & the Army don't want you to know"! Whaaaaa?
    I scrolled down the blog and waited. After a minute or so, the pointer changed to a hand and 30+ seconds later, displayed the same message. I took a screen snap, and was able to get it before the tool tip faded.
    http://www.michaelbradydesign.com/Transfer/AppleForum/Strange_tooltip.png
    I switched to another blog and was able to replicate it. This time the message said "Sign up for the #1 voted stock newsletter for free today."
    There was no such commercial message on either blog page, nor was the window sitting on top of another window with a web page with such an advertiser.
    What in the world is going on? Has anyone seen a similar thing?
    For the record, yesterday, I updated iTunes and a Java update.
    TIA and all that.

    Hi MIchael,
    You can disable tooltips using the Terminal app /Applications/Utilities.
    Instructions here.
    http://www.macosxtips.co.uk/index_files/disable-tooltips-safari-firefox.html
    Carolyn

  • Displaying TOOL TIP message over an applet

    Hi,
    How to display a tooltip(hint) like message when the mouse moves over an applet. Here is the rough source code, Please do the needful.
    import java.applet.*;
    import java.awt.*;
    public class Dis extends Applet implements MouseListner
         public void init()
              setLayout(null);
              ButtonAb b = new ButtonAb("click me"); //this is another class that is being called here, this class extends Component, I have written all ActionListeners and MouseListeners in this class only
              b.add();
         //public void addMouseListener(MouseEvent me)
    When the mouse moves over the Button("click me"), a hint box or tooltip like message should be displayed. It is easy doing with VB or Swing, but I wanted to it with AWT. Please give me some source code also.
    Thanks in advance
    Uma

    There are several ways to implement tooltip in awt. I prefere a general ToolTip class that can be added to any Component, and that is easy to use:
    something like this:Button but;
    but = new Button("Push");
    add(but);
    new ToolTip(but, "Push this button if you want to push this button");The code above should add a ToolTip to the java.awt.Button, so that everytime the mouse hoovers over the button, the message gets displayed.
    The idea is to make a ToolTip that can be added to any java.awt.Component using one line of code only. How do one achive that? Ok, here is a pseudo implementation of the ToolTip class:class ToolTip extends java.awt.Canvas implements Runnable, MouseListener, MouseMotionListener
       private String m_strText;
       private Component m_Component;
       private Thread m_Thread;
       private int m_iX;
       private int m_iY;
       public ToolTip(Component comp, String strText);
          m_strText = strText;
          m_Component = comp;
          comp.addMouseMotionListener(this);
          comp.addMouseListener(this);
       public void run()
          try{
             Thread.sleep(500);
             // Here its time to display the tooltip:
             // We need to add it.
             Component comp = this;
             while((!comp instanceof Applet) &&
                     (!comp instanceof Frame))
                comp = comp.getParent();
             ((Container)comp).add(this);
             int x,y,w,h;
             x = m_iX+m_Component.getLocationOnScreen().x-comp.getLocationOnScreen.x;
             y = m_iY+m_Component.getLocationOnScreen().y - comp.getLocationOnScreen.y;
             h=30;
             w=getFontMetrics().stringWidth(m_strText);
             setBounds(x,y,w,h);
          cathc(InterruptedException e)
       public void mouseEntered(MouseEvent e)
          start(e.getX(), e.getY());
       private void start(int iX, int iY);
          m_iX = iX;
          m_iY = iY;
          m_Thread = new Thread(this);
          m_Thread.start();
       public void mouseExited(MouseEvent e)
          stop();
       public void mouseMoved(MouseEvent e)
          stop();
          start(e.getX(), e.getY());
       private void stop()
          if(m_Thread != null)
             m_Thread.interrupt();
          Container parent = getParent();
          if(parent != null)
             parent.remove(this);
       public void paint(Graphics g)
          g.drawString(m_strText, 0, 20);
          g.drawRect(0,0,getSize().width, getSize().height);
    }The baseclass could be changed to java.awt.Window.
    using Window gives the ToolTip the posibillity to extend beyond the borders of the Applet (or the Frame), but in IE it gives you the "warning applet window" displayed on the botton of every ToolTip.
    Ragnvald Barth
    Software engineer

  • Af:statusIndicator tool tip message .

    Hi All,
    I am using Jdev 11.1.2.0.0.
    How can i change the af:statusindicator tooptip message?.Suppose in idle stage its showing 'idle' but i want customize that messge.Is possible ?.
    Thanks,
    Vass Lee

    Hi,
    Thanks for yours response. i given my code for yours code.
    <af:panelGroupLayout
                                 inlineStyle="background-color:white; height:70px;" id="ptpgl2">
              <af:commandLink disabled="true" id="logoLink" action="index">
                <af:statusIndicator id="ptsi1" shortDesc="Calwin"/>
              </af:commandLink>
            </af:panelGroupLayout>
    af|statusIndicator::idle-icon
        content: url("/org/calwin/uimanager/images/CalWINLogoSmall.png");
       content: "Calwin";
        width: 60px;
        height: 5.7em;
    }Here what i have done in wrong thing ?please tell me?
    Thanks,
    Vass Lee

  • J Tool Tips - Strange and Awkward Bug

    Hello Everyone,
    I am having a very strange J Tool Tip bug. Okay first of all, the tool tip that I have created works when it is inside of a single panel for a single label. Basically, what I have is a number of J Labels - each having a unique tool tip. Here is the most basic of my code (notice that I have customized my own Tool Tip to have a yellow background and black foreground):
    currentLabel = new JLabel("LABEL TEST")
                // Extends the JLabel and overrides createToolTip() to return a custom tool tip:
                @Override
                public JToolTip createToolTip()
                    JToolTip toolTip = super.createToolTip();
                    toolTip.setComponent(this);
                    toolTip.setBackground(Color.YELLOW);
                    toolTip.setForeground(Color.BLACK);
                    return toolTip;
            currentLabel.setToolTipText("Testing Tool Tip Message");Okay, so here's the deal. Here's the tricky part. When I have this label nested inside of a Grid Bag Layout Panel, it works perfectly fine. It shows up when the user's mouse hovers over the label.
    Here's my problem. The project that I am working on is actually nested in many complicated panels. This project has about 100 java files, so I am just going to cut it short and let you know which kind of panels it is nested in.
    Starting from the lowest panel:
    1. J Panel (Grid Bag Layout)
    2. J Panel (Box Layout)
    3. J Panel (Border Layout)
    4. J Split Pane (Right Side)
    5. J Panel (Border Layout) (Largest Panel)
    One of the things I noticed is that now when I hover over the labels, a very small microscopic blue dot appears right to the left of the mouse cursor. I seriously think this is the Tool Tip, but for some reason it isn't showing any text. The strange thing is that the tool tip works when panels 2, 3, 4, and 5 are non-existent. If you guys have any ideas or suggestions, please let me know! I'd really appreciate it!
    Thanks,
    Brian

    What I might do is : see if listening for mouseEntered and mouseExited events work on the labels when in their complex arrangement. And make a little tooltip class based on JWindow (perhaps with a JLabel on its contentpane so you can display HTML). I found this approach more reliable. Though one would expect this is what is already implemented, the inbilt behaviour may overcomplicate things resulting in some no-shows. I seem to remember having this problem with tootips on table cell renderers.
    Edited by: kina_tji on Jul 23, 2008 6:33 PM

  • Tool Tip Text and JcomboBox/JList

    Is it possible to attach and display a different Tool Tip message for each item in a combobox or jlist.

    Hi try this code it will work
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.basic.*;
    public class ToolTipComboBoxExample extends JFrame {
    String[] items = {"Swing", "Applet", "RMI", "JDBC"};
    String[] tooltips = {"Swing ", "Applet", "RMI", "JDBC"};
    public ToolTipComboBoxExample() {
    super("ToolTip ComboBox Example");
    JComboBox combo = new JComboBox(items);
    combo.setRenderer(new MyComboBoxRenderer());
    getContentPane().setLayout(new FlowLayout());
    getContentPane().add(combo);
    class MyComboBoxRenderer extends BasicComboBoxRenderer {
    public Component getListCellRendererComponent( JList list,
    Object value, int index, boolean isSelected, boolean cellHasFocus) {
    if (isSelected) {
    setBackground(list.getSelectionBackground());
    setForeground(list.getSelectionForeground());
    if (-1 < index) {
    list.setToolTipText(tooltips[index]);
    } else {
    setBackground(list.getBackground());
    setForeground(list.getForeground());
    setFont(list.getFont());
    setText((value == null) ? "" : value.toString());
    return this;
    public static void main (String args[]) {
    ToolTipComboBoxExample frame = new ToolTipComboBoxExample();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
         System.exit(0);
    frame.setSize(300, 200);
    frame.setVisible(true);
    Thanks
    Paddy

  • How to get rid of annoying tool tips while editing SQL files

    I'm using Visual Studio 2013 to edit an .SQL file and I have attached the editor to a local SQL Server 2008 R2 database.
    While editing the string that is passed to a sp_executesql procedure it keeps popping up a tool tip saying:
    "Parameter help is not supported for extended stored procedures"
    Generally I don't care about that and it is annoying because it keeps appearing over the top of the text I want to read. Is there any way to stop Visual Studio doing this?
    a

    Hi aptitude,
    Thank you for posting in the MSDN forum.
    >>I'm using Visual Studio 2013 to edit an .SQL file and I have attached the editor to a local SQL Server 2008 R2 database.
    Could you share us more information about this issue? You said that you edit the .sql file, which kind of app did you create which would use the .SQL file? Whether it is related to the SQL Server database project or others?
    If it is related to the SQL Server Database project, please post this issue to the SSDT forum:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=ssdt
    >>While editing the string that is passed to a sp_executesql procedure it keeps popping up a tool tip saying:"Parameter help is not supported for extended stored procedures".
    Reference:
    https://technet.microsoft.com/en-us/library/ms175170%28v=sql.105%29.aspx
    https://msdn.microsoft.com/en-us/library/ms188001(v=sql.105).aspx
    But if it is related to the SQL Server, to really repro this issue, and make sure that whether this warning is related to the SQL scrip or others, maybe you could select a better forum here:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    If I have misunderstood this issue, maybe you could share us a simple sample and the detailed steps in your new reply, so we could really repro this issue in our side.
    In addition, I did some research about the warning message:
    https://msdn.microsoft.com/en-us/library/ms173434.aspx?f=255&MSPPError=-2147217396
    The IntelliSense functionality of the Database Engine Query Editor does not support all Transact-SQL syntax elements. Parameter help does not support the parameters in some objects, such as extended stored procedures. For more information, see
    Transact-SQL Syntax Supported by IntelliSense.
    In SQL Server, it seems that it is related to the IntelliSense, I'm not very sure that whether it is related to the IntelliSense of VS IDE, but generally we could enable or disable IntelliSense under TOOLS->Option->Text Editor in VS
    IDE.
    Maybe you could disable IntelliSense in VS IDE, and then check it again.
    If I misunderstood this issue, please feel free to let me know.
    Best Regards,
    Jack
    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.
    Click
    HERE to participate the survey.

  • Spry tool tip does not work in template or child pages within an editable region. Why not?

    Ok. so I am getting pretty frustrated. I take the time to learn how to use CSS and to create a template page for a Contractor Site (www.ContractorInsurance.net). The idea is to create a page that I can use for different classes of Contractors...right?
    Then I get all happy about being able to insert ToolTip onto pages to help the user. Great!
    LIfe to turn to Sorrow after nearly five hours of searching for a "eeking" answer.
    So what good does it do to have an Editable region to update if we cannot have the flexibility to insert a tool tip on child pages?  Ok so the fast solution is to what... Have a question mark image, insert another apDiv, name it toolTip_Not and provide it with a show=hide behavior?
    RRRRRrrr...
    This really sucks not being able to find a solution within a reasonable amount of time.

    I have tried thank you. However...it is still not working.
    www.ContractorInsurance.net/course_of_construction.php
    The error message is "Making this change would require code that is locked by a template translator"
        Re: Spry tool tip does not work in template or child pages within an editable region. Why not?
        created by altruistic gramps in Spry Framework for Ajax - View the full discussion
    If you have a look at the following simple document with a tooltipTooltip trigger goes here.
    Tooltip content goes here.
    you will notice that a couple of lines have been placed in the HEAD section of the document. When using DW templates, the HEAD section is usually not editable, hence the error mesaage. By default, your template should have an editable region in it just before the closing tag. It looks like this: <!-- TemplateBeginEditable name="head" > <! TemplateEndEditable --> Dreamweaver should be able to find that editable region and insert the
    <script> tag there automatically. Because you don't have an editable region like that in the <head>, open the master template, and paste the code above just before the closing </head>
    tag. Gramps
    Edited to remove personal data

  • Is spry tool tips supposed to work after inserting it in DW Cs6 ?

    Is spry tool tips supposed to work after inserting it in DW Cs6 or am I supposed to get it from Adobe Labs somwhere. I get a message to GET but clicking does nothing.

    Hi,
    if you resist using DW tooltips you have to use one of the elder DW versions. So you can (from my German DW) > insert  > Spry > Spry-QuickInfo.
    From one of my elder websites I can give you the code (you have to adapt it). It will work, provided that you have hold your "SpryAssets" files/directory.:
    <head>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    and
    <script type="text/javascript">
    var sprytooltip2 = new Spry.Widget.Tooltip("sprytooltip", "#sprytrigger2", {followMouse:true});
    </script>
    </body>
    Hans-Günter

  • Dynamic Tool Tip Options

    Hi All,
    Could any body tell , different types of dynamic tool tips are possible in OAF.
    Regards,
    Raghava

    Hi Raghava,
    You can use this code :
    vorow.setAttribute("ToolTip","Your Message");
    OATableBean tableBean=(OATableBean)webBean.findChildRecursive("VO Name");
    OAImageBean c1 = (OAImageBean)tableBean.findChildRecursive("Value for which this tooltip should display");
    OADataBoundValueViewObject tip = new OADataBoundValueViewObject(c1,"ToolTip");
    c1.setAttributeValue(oracle.cabo.ui.UIConstants.SHORT_DESC_ATTR, tip);
    Hope this may help.
    Edited by: 869351 on Jan 18, 2012 1:50 AM

  • [svn:fx-4.x] 14985: Add support for mirroring for both error tips and tool tips in positionTip ().

    Revision: 14985
    Revision: 14985
    Author:   [email protected]
    Date:     2010-03-24 09:40:24 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Add support for mirroring for both error tips and tool tips in positionTip().  The layoutDirection of the toolTip will be the same as the component it goes with, or LTR, if the component is not ILayoutDirectionElement.
    QE notes:
    Doc notes: None
    Bugs: SDK-25821
    Reviewed By: Jason
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25821
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl.as
        flex/sdk/branches/4.x/tools/dependencychecker/frameworkSwcExceptionsList.txt

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Tool Tip for VO attribute using Groovy

    Hi All,
    I was wondering how to use groovy for Tool Tip of a view object attribute.
    What I am basically looking for is return the String from a RowImpl class method and set it as a Tool Tip text.
    my method:
    public String applyToolTip(){
    return "This is my Tool Tip";
    Groovy used for Tool Tip Attribute
    adf.object.applyToolTip()
    also tried with,
    adf.object.viewObject.applyToolTip()
    None of them work. Also I tried writing the same method in VOImpl class. No luck.. Please help with explanation.
    Thanks.

    Hi,
    Groovy is not used throughout ADF BC. It can be used in validation and to define default values to an attribute but not for UI hints. For tool tips you would use message bundles (assuming your question is towards internationalization). Tool tips are defined on the AttributeDef of a View Object attribute and thus not defined per VO instance.
    Frank

  • Label Text & Tool Tip Text within 9.0.5 dose not work.

    When I set the label or tool tip text within the view objects attribute panel, I do not see those values or tips when my views are displayed. I'm using JDeveloper 9.0.5.
    Thanks

    This is a known issue with the preview release. In the production release, the column headers, message prompts and tips, etc will be EL bound to the values from the model (in the case of BC4J those are the UI Hints).
    In the preview release, you can use the visual editor to change the hardcoded column headers, prompts and tips to the text you desire.

  • Corrupt tool tips

    There's something wrong with my tool tips - those little tips or labels that appear next to the mouse pointer when it pauses over a tool / icon.
    Here's an example, from hovering the mouse over the icon to insert in the editor for editing a message here.
    Sometimes it's mangled with the correct tool tip (like in the first example above), and sometimes the tool tip appears by itself (because there is no correct tool tip, like in the second example above - hovering over text shouldn't generate a tool tip). It's the same few out-of-place tool tips that appear and they all seem finance or stock quote related. Here's more:
    Note: the mouse pointer doesn't get capturesd by screenshots but know that it's there right above the tool tip.
    The other strange thing is that this only happens in part of the screen area - baseically center, top.
    Any ideas? I've rebooted, but that's all I've tried so far.

    This always happens! Right after I post, I figure it out: the list from Dashboard is bleeding through somehow:
    So, having my mouse pointer in the same area of the screen where the widget would appear if I activated Dashboard causes the tool tips to appear as if actually was hovering over the widget! How strange. So, I deleted the widget and then put it back in the same spot. Seems OK now.

Maybe you are looking for

  • Force Outlook 2011 to use iCal default calendar to synchronize with google

    Here is a problem. My default calendar program is Outlook 2011. I have an iCal synchronizing with my google calendar and outlook to sync with iCal via Sync Services - so in theory my outlook calendar should be synchronized with Google. I setup in iCa

  • Time Machine Black Screen Dual Monitors

    I have an iMac 27 Retina with a 23 inch Cinema Display attached as an extended monitor (via thunderbolt)r,  I have an external backup drive attached via USB.  If I try to go into Time Machine to restore a file, Time Machine launches but gives me a bl

  • Deployment Descriptor in Oracle 11g

    Hi all, in oracle 10g i used to create deployment descriptor property in jedeveloper and set value for it,so that i can change the value in the console at run time. Like wise i am not aware how to do the same in the oracle 11g. pls help me to sort th

  • Slow performance of report with Cal year

    Experts,   Hope all is OK . We have  BW appraisal reports, one of which is Appraisal markings by grade report having Calendar year as selection variable. If I run this report with calendar year as selection parameter , this reports is taking very ver

  • Logging into websites makes Safari refresh?

    When I first received my iPhone I was excited to be able to use the real web browsing to login to pages for my bank statements, bills, etc... It was working great being able to do that coming from using a BlackBerry where that wasn't an option. The o