Re: how to limit these past years

Hello

I use jdev11.1.2.3.0

I have only one requirement, I have a tag on my page jsff is ramadan year.

< af:inputText value = "#{bindings." RamadanYear.inputValue}.

label = "#{viewcontrollerBundle.RAMDAN_Year} '"

required = "#{bindings." RamadanYear.hints.mandatory}.

Columns = "#{PMB ['pof.inputSize']}" "

maximumLength = "#{bindings." RamadanYear.hints.precision}.

shortDesc = "#{bindings." RamadanYear.hints.tooltip}.

ID = "it1" >

My requirement is I want to limit the average in recent years do not allow the last years it will show the error message.so how can I reach this.can someone help me.

Thank you

G.Shilpa

We must compare the entered value (available in the variable 'object') with the current year, something like:

If (item! = null) {}

int enteredYear = Integer.parseInt (object.toString ());

If (enteredYear<>

throw new ValidatorException (new FacesMessage (FacesMessage.SEVERITY_ERROR, "You can not enter the previous years!", null));

}

}

(I wrote this code directly here, so it may contain a few coding errors)

Dario

Tags: Java

Similar Questions

  • Lenovo Ideaphone P770 - how to open these past apps?

    Hello

    I recently bought a Lenovo mobile P770 and I noticed that there is no "recent apps" button at the bottom right as the Lenovo P700i or Samsung android mobile. This button looks like two rectangles that overlap. I don't see this on P770 and I don't know how to view the latest applications. Any suggestions please?
    Thank you

    Kert

    It's pretty simple. Press the central key until recent applications is displayed.

  • How to limit the display of messages (Gmail iPhone 6s)

    Hello

    I want to limit the number of messages displayed in the 6s now, iPhone Mail application that all my messages are displayed.

    I synced a Gmail account, but in preferences, there is no "mail days to sync". This option is available on the iphone from a friend with an outlook account set up 5.

    Does anyone know how to limit these messages to a Gmail account in a 6 s iphone?

    Thank you

    B.

    The ability to determine how many days to synchronize e-mail is available for Exchange accounts. There are no settings like this for POP or IMAP accounts.

  • I can't find the serial numbers for my CS3 and Photoshop CS5 on the page my Adobe products. I registered these past two years

    I can't find the serial numbers for my CS3 and Photoshop CS5 on the page my Adobe products. I registered these past two years. Kenneth Robison

    Contact adobe support by clicking on this link then "still need help" as soon as it appears, https://helpx.adobe.com/contact.html

  • I have windows 7 on a HP laptop. I would like to know how to copy and paste on an e-mail. Thank you.

    I have windows 7 on a HP laptop. I would like to know how to copy and paste on an incoming e-mail and send back with some documents that are in my files. I need to send these documents, which are in my files, where the email came. I need to put these documents in this e-mail entering and then returning it to them. The documents folder is PDF, whatever that means. Thank you

    Hi josephbronsard,

    Thanks for posting in the Microsoft community! I'll do my best to help you with the question that you have.

    Windows operating system you are using?

    Who is the provider of mail service?

    You can click on the button answer on the email address and then attach the file you want to send and click Send.

    Please answer us with more information to help you. Please answer questions from Ken:

     

    We can't wait to hear back on your part.

  • Compacted Outlook Express and save some of my emails. Now, I need access to the following, but can not open them. How to reopen these emails? __

    Compacted Outlook Express and save some of my emails.  Now, I need access to the following, but can not open them.  How to reopen these emails?

    Hi Redtiger1705,

    Lost emails immediately after compact preforming?
    If so, Outlook Express creates BAK files before compaction. They are copied there as a precaution, in case something goes wrong with the compaction. The following steps should help those rear:

    1) open Outlook Express and go to tools, Options, maintenance, store folder. Copy the entire path to the storage folder, and then click OK.  Close Outlook Express.

    (2) go to the basket and search for all files with the .bak extension.  Restore the most recent .bak files. That he will put in the OE store folder, but still like a BAK file.

    (3) click on start, run and paste the path that you copied in step 1 in the run box, and then press ENTER.

    4) click Tools, Folder Options. In the Folder Options window, click the view tab.
    (5) less advanced, uncheck the "Hide extensions for known file types".
    (6) you should see the two sent a Sent Items.dbx from the file as well as the Items.bak. Rename the Sent Items.DBX to Sentold.dbx and Rename Items.Bak sent to Sent Items.DBX. When you open OE, your messages sent items must be restored.
    Please let me know if I can be of further assistance!

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I cut & paste in the address bar?

    How to cut & paste?  It's been too long, can not think!  Help!

    Hello

    Select what you want to copy or cut with the cursor of the mouse - and then Ctrl + C to copy or Ctrl + X to cut - move the cursor of mouse where you want - then Ctrl + V to paste

    Here's a good tutorial on cut, copy, and paste

    http://www.bleepingcomputer.com/tutorials/tutorial95.html

    Copy text

    What happens if you work on a word processing document and you must take the text that is in another document and add it to the current document. You can manually type the information found in the original document in the new document, but which could take quite a long time. Fortunately for us, the operating systems give us the ability to copy text from one document to another document called copy. When you copy data highlighted, this data is stored on the Clipboard until you are ready to paste this data into another program

    To copy something, you first highlight the text you want to copy using one of the methods described above. Then when you highlight text you want to copy, you can copy it to the Clipboard in one of three ways:

    • When the text is highlighted you can press the Control key and the C button the same to copy the data.
    • Right-click on the files or highlight text and clicking on copy.
    • If there is an edition menu you can click Edit and then click copy.

    Once you use one of these methods a duplicate of the highlighted text will be placed in the Clipboard, allowing you to paste it into another document or application.

    Cutting text

    Cup is very similar to copy they have both put the item highlighted in the Clipboard to paste future. The difference is that you have when you cut the text selected, it will remove, or cut, the text of the original location and place it in the Clipboard. So it is important to be careful when you use this command, because it is possible to lose data if you mistakenly cut the data in the document and then save the file.

    To cut text you must first highlight the text or data you want to cut by using one of the methods described above. Then when you highlight text you want to cut, you can cut it to the Clipboard in one of three ways:

    • When the text is highlighted you press the Control key and the X button in the same cut data.
    • Right click on the highlighted text and clicking on cut.
    • If there is an Edit menu, you can click change , and then click cut.

    Once you use one of the following methods, a copy of the highlighted text will be placed in the Clipboard and highlighted data will be deleted from the document. It is important to note that the text just disappears a document if the document is editable. For example, you can not cut text from a web page or a set of documents read-only because it is not editable.

    Paste text

    Now that you know how to copy and cut data of a document and put it on the Clipboard, you must learn how to retrieve these data and place them in your document. Once the data has been copied or cut from a document, you can then paste it into another document, or the same document by retrieving this information to the Clipboard using the Paste command.

    Simply move your cursor to the location where you want the data to be pasted into your document and then choose one of the methods to paste the data.

    • With the cursor at the location where you want the data to be pasted press on the button control and the V key in even to paste the data.
    • Right-click on the document and clicking on dough.
    • If there is an edition menu you can click Edit and then click Paste.

    After you use one of the commands above the data contained in the clip Panel will now pasted into the document.

  • a laptop computer has crashed. How to remove these downloads so I can download so I can upload them again on a new computer?

    a laptop computer has crashed. How to remove these downloads so I can therefore download them once again on a new computer?

    Hi Amy,

    Please see the below help document to fix the error:

    Error: "activation limit reached" or "cannot connect". Adobe products

    Kind regards

    Sheena

  • How to copy and paste into the search engine does not work?

    How to copy and paste into the search engine does not work?

    It should be.

    Restart your Mac and try again.

    Other than that, make sure that OS X is updated.

    Open the App Store, and then select the updates menu.

  • How to cut and paste ppt slides in presentations?

    How to cut and paste ppt slides in presentations?

    File > open

    and it should do the conversion for you.

  • How can I copy paste JUST the file name in apple mail?

    Hi all

    Sounds like a simple question - but when I want to copy a file name of some media on my desk - I cmd - C then when I paste in new apple mail - it sticks the actual file - not what I want...

    Q: How can I copy paste a file JUST * name * (text) in apple mail?

    Select the file, and then click the name. It will be obvious, then command + C.

  • From time to time my roommate ends up getting new toolbars with buttons or apps that I don't want. How I eat these?

    From time to time my roommate ends up getting new toolbars with buttons or apps that I don't want. How I eat these? Thank you!

    Great idea! Thank you!

  • How to limit the length of the texts on iOS9?

    Hello

    I just worked on why I am required by my mobile / cell phone provider EA.  They charge any text as a picture message / SMS, it is longer than 120 characters?  Does anyone know how to limit the length of the texts / SMS so that it is impossible to send a more 120 characters or create an alert so that you are aware of the number of characters in the text / sms?

    Thank you very much

    Hello Turnus123,

    Thank you for using communities of Apple Support.

    I see that you will have to pay for SMS more than 120 characters.  To help identify messages exceeds this amount, you can activate a number of characters in the message settings.  Simply go to settings > Messages and activate "number of characters".

    Message settings

    Take care.

  • How to limit purchases of other adults?

    How to limit purchases of other adults?

    With sharing family that you can not, while they remain in your family group of purchases that they will spend the balance of their account (if they have a), otherwise map to the Organizer will be charged - over 18 is not 'request to buy' enabled for them

  • I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...

Maybe you are looking for