How Mask my datefield to __/__/____ on onfocus

Hi Team,
My Jdev - 11.1.1.6.0
I have af:inputDate field on my jsff page. I have applied clientLisetner on inputDate field.
From client listener i am calling one javascript method which is resposilbe for giving me pattern of inputDate in this formate :-  _ _/_ _/_ _ _ _
And client-listener type = focus.
I am facing problem that when i clicking on inputDate field and if i dont want to enter any date then its forcing me to enter date otherwise its not allow me to navigate to different page.
Can you please help me how i can restrict inputDate field to make it nullable even also if i try to focus on it.
code -
<af:inputDate id="endDateDt"
                             binding="#{pageFlowScope.GroupDivisionBean.endDateDt}"
                             shortDesc="#{commonResourceBundle['LABEL.HINTS.DATE_FORMAT']}"
                             styleClass="contentDate" autoSubmit="true"
                             disabled="#{pageFlowScope.isContractCreated}"
                             label="#{commonResourceBundle['LABEL.END_DATE']}"
                             validator="#{pageFlowScope.GroupDivisionBean.neEndDateValidator}"
                             clientComponent="true">
                  <af:clientListener method="onEndDateFocus" type="focus" />
                  <f:validator validatorId="ema.EligibilityDateValidator"/>
                  <f:attribute name="effectiveDateDt" value="effectiveDateDt"/>
                  <af:convertDateTime type="date"
                                      locale="#{facesContext.externalContext.requestLocale}"
                                      pattern="#{sessionScope.isFromMexicoApp eq 'MX' ? 'dd/MM/yyyy':'MM/dd/yyyy'}"/>
               </af:inputDate>
javascript function:-
function onEndDateFocus() {
        $("input[type=*][id*=endDateDt]").mask("99/99/9999");
Thanks in advance.
Thanks
Ramit Mathur

Its not working
I have tried all but not getting value.
Do you have anything to masking dateformate on onfocus like this link:-
https://community.oracle.com/message/4098045#4098045

Similar Messages

  • How to specify dateField in DataGridColumn by use it's attribute

    How to specify dateField in DataGridColumn by use it's
    attribute ( For example use attribute "name" and "table" to specity
    each dataField)
    Thanks any idea.
    <mx:HTTPService id="myEmployee" url="
    http://localhost/test/myEmployee.xml"
    useProxy="false" method="POST"/>
    myEmployee.xml :
    <?xml version="1.0" encoding="utf-8"?>
    <database>
    <table>
    <record>
    <field name="auto_id" table="employee">2</field>
    <field name="id" table="employee">2</field>
    <field name="name" table="employee"></field>
    <field name="first_name"
    table="employee">James</field>
    <field name="middle_name"
    table="employee">Francis</field>
    <field name="last_name"
    table="employee">Ryan</field>
    <field name="id" table="department">1</field>
    <field name="name"
    table="department">Marketing</field>
    </record>
    </table>
    </database>
    <mx:DataGrid
    dataProvider="{myEmployee.lastResult.database.table.record}"
    width="100%">
    <!--////////////////////////////////////////////////////////////////////////////////
    <mx:columns>
    <mx:DataGridColumn dataField="field"/>
    <mx:DataGridColumn dataField="field"/>
    <mx:DataGridColumn dataField="field"/>
    <mx:DataGridColumn dataField="field"/>
    <mx:DataGridColumn dataField="field"/>
    <mx:DataGridColumn dataField="field"/>
    </mx:columns>
    ////////////////////////////////////////////////////////////////////////////////-->
    </mx:DataGrid>

    Hi,
    i have creted java class. In this i have getting data from database.these data am putting into array objects, these array objects inturn putting into vector as shown below. But am not getting how to get these objects from vector and display one by one value. please help me how to get array object from vector and display.
    String[] PONum;
    String[] POVersion;
    public Vector ExceData;
    int totalRecords = 20;
    PONum = new String[totalRecords];
    POVersion = new String[totalRecords];
    while (rs.next())
    PONum[i] = rs.getString(1);               
    POVersion[i] = rs.getString(2);
    ExceData = new Vector();
    ExceData.add(0,PONum);
    ExceData.add(1, POVersion);
    Object[] obj = new Object[2];
    obj = ExceData.elementAt(0);
    System.out.println(obj[0]);
    I am waiting for your reply.
    Thanks & Regards,
    -Vishwanath

  • How to convert DateField date to String ?

    Hi,
    I'm trying to convert DateField date to String.
    How can I do it because Data class does not have String converting
    methods...
    Thanks
    Krzysztof

    Hello,
    you can get an instance of Calendar and use it with the date as a long integer.
    public Calendar cal=Calendar.getInstance();
    myDate=dateField.getDate();
    cal.setTime(myDate);
    myDateString=cal.get(Calendar.DATE)+"."+cal.get(Calendar.MONTH)+"."+cal.get(Calendar.YEAR));
    Try it.
    Unfortunately I have found that the MIDlet get a day less when I use the same long integer that I got from an application on PC. I don't realy understand why but I' still searching.
    I hope it is usefull for you.
    ValeriuS

  • How to default Datefield to current date?

    in a DateField, how do I set the selectedDate to 'today' by default?
    I imagine I have to put something in the selectedDate="" in the mxml, but I can't find how to do this, or do I need to do it through a bindable variable?

    selectedDate="{new Date()}"/>

  • How to mask a Symbol

    Hi,
    Can anyone help me on this…
    I have a symbol in my stage. He is masked by a circle.
    I want that when I click on the Symbols, the mask expands  and reveals what is behind it. Like this :
    I followed the threat “I want to know how masking objects or image.“ where redesign gave a sample with a mask.
    When I try to do the same thing,  is like the mask is always at position 0 0 and not over my symbol that is placed in the stage at position 795 570. Giving a mask-position doesn’t change anything. My symbol is invisible.
    Hope I make myself clear ...
    Thanks a lot for any hints.
    s.

    Unfortunately I do not recommend using masking as in the file sample you mention as FF still does not support it!
    Hoeever you could use an image with a transparent circle and then expand that image. I will post a sample in a few.

  • How to swap 2 layers in a photomerge

    I have done a photomerge in PS CS6 of two birds in flight as the wings are clipped. The images merge nicely but the problem is that the blurred bird has been placed on top of the sharp bird, i.e. the top layer (bird with blurred eye) is blocking the bottom sharp bird. I have clicked and dragged the bottom layer to the higher position on the layers panel but the images do not swap positions. Please can you help with this?

    fazekma wrote:
    The strange thing is that I have merged the 2 images a few times (auto merge) and sometimes the sharp image is on top and sometimes the blurred image is on top and each time I do nothing different!
    If I use 'Reposition' instead of auto then when I move the one layer above the other the main image does change but then I'm not able to select Edit > Auto Align layers, followed by Edit > Auto Blend layers! 
    Its not strange at all. When you reposition and change the stacking order  the top layer area that overlaps an area of the lower layer will cover and hide the pixel on the lower layer.  When you use Photomerge  layer masks are added to the layers to hide pixels on that layer. Changing the stacking order of the layer with the layer mask Photomerge add may not change the composite image at all..  If you disable the two layer masks by shift clicking on the two layer mask icons in the layers palette.  When you then change the stacking order you will see the same results you saw when you repositioned the layers and change the stacking order.  If you want to improve the stitching done by Photomerge you need to learn how masking works and work on the layer mask that were added by Photomerge.
    There are also better stitching programs then Photoshop. If you plan on doing a lot of stitching that involve many images stitch together you may want to look into these.  If you ever want to do 360 spherical panoramas the logical choice of lens would be a fisheye lens. Photomerge and programs like Microsoft ICE do not even support fish eye lenses. You would need a program like AutoPano Pro or PTgui or PTAssembler, etc...
    Message was edited by: JJMack

  • Domain masking

    Hi all,
    I have an iWeb site hosted by .mac, and I understand that if I buy my own domain and use domain masking, people can visit the site by going to mynewdomain.com or wherever.
    I'd like to know what appears in the address bar for each page of my iWeb site. If someone clicked on, say, a Photos link, can I make the address bar show mynewdomain.com/photos.html or does it remain static at mynewdomain.com?
    Thanks for your help,
    Ryan
    iMac G5 2.1 GHz, 1.5 GB RAM   Mac OS X (10.4.9)  

    Hopefully the coming update of iWeb will allow for
    more flexibility.
    The iWeb app doesn't have anything to do with how masking or forwarding works.
    Without masking, a forwarded site will normally show both the site name and the page name in the browser address bar, e.g.
    http://www.mydomain.com/sitename/pagename.html

  • Is there a way to control brush parameters by special layer mask or channel?

    Is there a way to control brush parameters by special layer mask or channel? Maybe there is some plug-in for mask controlled brushes? Or channel controlled brushes?

    You are not understanding how masks work.  If you look closely at the first six brush tip options in the brush panel, either of the first two will give you a fixed size stroke regardless of pen pressure
    To control the appearance, or masking of specific colours, you would use a Hue/Saturation adjustment layer, and use the RGB drop down to select the colour you want to affect.  Without know _exactly_ what you are trying to achieve, no one can do more than guess, but from what you have written so far, I suspect you are going to be out of luck.
    What tablet are you using?  And you did not answer my question about what version of Photoshop?   You need to be a _lot_ more specific about what you want to do if you want keep my fast failing interest in this thread.

  • Unable to create a mask on Adjustment layer

    hi.
    I want to apply motion tracking data to a mask, therefore i'm trying to utilize an adjustment layer to control the mask position. So i tracked motion on a video footage, applied tracking data to Adjustment layer, then marked the Adjustment layer and drew a closed mask on it. However, when i finish the mask, it does not "cut the hole" on the video footage (which is right below the Adjustment layer). Tried all the available modes (Add, Subtract, Intersect, etc.) but only the outlines of the mask's shape are visible on the video footage.
    How can i apply a mask to an adjustment layer? Or maybe there are other methods to apply motion tracking data to a mask?
    thank you

    I think that you're misunderstanding how masks on adjustment layers are supposed to work. If you draw a mask on an adjustment layer, you are restricting the area within which the effects on the adjustment layer apply; it does not, as you say "cut a hole in the video footage". If you want to "cut a hole in the video footage", then you make the mask on the footage layer, not the adjustment layer.

  • Masking multiple layers to achieve some effects

    Hi,
    I understand (at least a little) about how masking works. As far as I see it reveals layer underneath it.
    What I am wondering if there is some ways to reveals different(multiple layers) layers or masking is done only on one layer.
    I have searched and some pages suggest it is possible to mask multiple layers but it doesnt actually show any examples or step by step tutorials.
    Any help would be appreciated,

    http://lmgtfy.com/?q=flash+masking+multiple+layers
    The Help on masking has a heading "Mask additional layers after creating a mask layer" that might point you in the right direction.

  • Glorious masks upon masks

    Hello all,
    I'm currently putting a little promo clip together and had an idea for the format. I know how I could accomplish this utilizing repetition and manual tweaking, but I'm sure there must be a nice elegant way of accomplishing this.
    The overall video runs in a 4:3 window. I would like most of the content inside to be letterboxed. I could just do this using a mask. However, the top and bottom black bars are essentially a video layer underneath. So, for example, while a video is playing in the middle, alternate angles, crops, or zooms of the same content might be playing underneath and visible in the black bar area. Does this make any sense at all?
    Essentially, I would like my primary video track to have a letterbox mask, and the black bars formed by the letterboxing are peekaboos into the tracks below. Is there some way to apply a crop, perhaps, to an entire track?
    Additionally, if I want to apply a letterbox mask to an image that I move across the screen, how do I make the mask stay put and just act as a window on the moving image? Right now the mask moves with the layer.
    So many questions!
    Ben

    content might be playing underneath and visible in the black bar area. Does this make any sense at all?< </div>
    Believe it or not, it's been done.
    peekaboos into the tracks below. Is there some way to apply a crop, perhaps, to an entire track? < </div>
    Nesting. See the manual for Nest. You will nest the main sequence, bring it back into your new letterbox sequence and crop the nest so you reveal the underlying track.
    Additionally, letterbox mask an image move screen, how mask stay put on image? < </div>
    That would be a nest, too.
    It's a bit confusing the first few times through the nest grist mill. Practice with short clips.
    bogiesan

  • Masking Folders/Layers

    I am designing a story in Flash that is composed of multiple
    storylines that run parallel to the main story. In other words,
    simultaneously there will be four stories being animated at the
    same time. Each of these stories will be placed in their own folder
    which will contain various layers. At any point, the user will be
    able to select only one of these four stories they would like to
    watch. All four of these stories will share a timeline, meaning
    that the timeline on each of these four stories will progress
    forward at the same time.
    I am wondering how I could achieve this in Flash, and if it
    would be complicated? I was thinking of using a series of Masks
    (one that would cover up the folders in which each story is
    contained). Would this work, and how would I go about to accomplish
    this?

    You would use a button I imagine (or whatever you have
    planned for opening a story to view) and tell a mask that
    encompasses the movieclip to move from an empty frame (no mask,
    nothing is seen) to a second frame (full mask, everything under it
    is seen).
    If you don't know how masks work, then spend a little while
    in the help files. There's bound to be some kind of demonstration
    of using one there.

  • How can get this variable ??????

    package murat;
    import javax.microedition.lcdui.*;
    public class TarihAyarla extends anaform{
    public static DateField tarih;
    public TarihAyarla() {
    super("Sms gonderilecek tarihi girin");
    tarih = new DateField("tarihi girin",DateField.DATE_TIME);
    append(tarih);
    a=tarih;
    public class main extends midlet{
    private DateField var(){
    //how can get the tarih object in here
    }

    First, buy a book on Java!
    Second, when posting code, please use the [ code ] tags, it makes it a
    lot easier to read code.
    Finnaly, how about:
    private DateField var(){
        //how can get the tarih object in here
        return TarihAyarla.tarih;
    jc

  • Newbie Using Masks

    Read thru all the topics under "mask" search, and could not
    find one that matched mine, so......
    I have a page banner which features the company logo in an
    oval.
    I want to place a layer below the banner, with relevant
    photos, and provide a view into the photos, using a mask in the
    same shape as the logo.
    I've built the mask, and it works just fine, but I can't
    figure out how to have the mask work thru the banner graphic.
    The result I get is a white work space and the transparent
    mask.
    Appreciate any help.
    Thanks,
    vince_g

    That is exactly what I was looking for!!!
    I've looked at the .fla file, but I don't think I understand
    what's happening.
    I see 2 mask layers, and 2 layers that contain the banner
    graphic (Layers 6 & 8). Layer 7 contains the tween with the
    oval window, but I don't understand how Layers 9 & 8 make it
    work.
    I'm not grasping the notion of the 2nd graphic layer and
    mask.
    If you could hang in there with me just a bit longer, I
    usually do get it.
    Could you also steer me to a book or other doc on how masks
    work? The online Help, to me, is too cryptic. I went thru it for a
    few hours before writing the first post.
    Thanks a lot for this help.
    vince_g

  • I'm trying to remove the background from pictures and PDFs.

    Hello All, this is the 3rd or 20th time I've tried removing backgrounds. I install water equipment for a living and try to manage my website on my own. Each time my products change, my suppliers send me literature in PDF format. Sometimes I'm installing the equipment before I have the literature. I take pictures of every install I perform and would love to use my pictures without the dirty basement in the background.
    I've spent hours trying to work with just one picture. All that fine detail, erasing, and zooming in and out, then click! I lose it, or can't save it, or it just doesn't work. I've watched tutorials, and watched it done right in front of me (on a PC) at my print shop. I thought I'd ask this community, because I've had 100% luck on here everytime.
    So, can I use the same software to remove images from PDFs and backgrounds from pictures? Which do you recommend? I have Adobe Photoshop CS2 and Adobe ImageReady CS2. I also have Gimp that I downloaded for Mac. Since I've never been successful with any of them, I'm not sure which one is wasting my time.
    Thank You,
    Steve

    Extracting images and removing backgrounds can be very complicated. There are many different techniques and methods for doing it: the trick is finding the right one for the image you're working on. Every image is different and what may work for one may not work for another. You can do all of the basic techniques in Photoshop CS2, though it's a little easier in newer versions. I'd recommend going through as many online tutorials on image extraction as you can tolerate. There are hundreds of them. (While I find him annoying to listen to, Russell Brown has made some excellent tutorials on the subject. Try this one to start.
    While it is possible to edit an image embedded in a PDF, you really need Acrobat Pro  to do it. Acrobat sends the image to Photoshop, where it can be edited, and then Photoshop sends it back to Acrobat after you're done. Or you can save it as a separate file. In the 20+ years I've used Adobe's stuff, I've never done that. It's usually much easier to do a screen capture of the image and then work on that copy. (There are some sizing and magnification issues involved with this, however.)
    In Photoshop, pay particular attention to Quick Mask mode, learn how masking works, how to make a selection based on a color range, how to use the Pen Tool to make a path that can be used as a selection, and how to save and load selections. Getting a clean extraction takes a lot of practice and it's almost never quick or easy, but it's worth the effort to learn how to do it well.

Maybe you are looking for