Threadinar13 - Double Range, Length & Long Range Validator Components

Hi All,
This is the thirteenth in the Threadinar series. See the Components Threadinar Index at http://forum.sun.com/jive/thread.jspa?threadID=103424 for the complete list to date.
This Threadinar will discuss the 3 components in the "Components Palette: Validator Section" of the Creator Component Catalog.
The components we will focus on today are
"Double Range Validator", "Length Validator" & "Long Range Validator" Components.
Let us begin our discussion with the "Double Range Validator" Component.
[b]What Is a Validator?
If your application collects information from users, for example a login and a password, then it is important that you verify the user data. The IDE provides a set of components for validating user input. These validators, which you access from the Validators section of the Components Palette, are as follows:
[b]Double Range Validator Component
A Double Range validator is typically used to validate that the value of a component does not exceed the standard range of the Java double data type. This data type represents a double floating-point number that ranges from �439E-324 to �1.7976931348623157E+308. Typically, the way you add a validator to a JavaServer Faces component is to edit the component's validator property, which provides a drop-down list from which you can select a validator.
Use a Double Range validator to test whether the user has entered a double data type value within the range defined by the specified minimum and maximum values. The value must be floating-point or convertible to floating-point.
[b]Length Validator Component
A Length validator is used to validate that the length of text entered for a component is no shorter or longer than the values you specify for the validator's min and max properties. The validation occurs after the page is submitted. Typically, the way you add a validator to a JavaServer Faces component is to edit the component's validator property, which provides a drop-down list from which you can select a validator.
Use a Length validator to test whether user has entered a string of a length defined by the specified minimum and maximum values. The value must be a java.lang.String.
[b]Long Range Validator Component
A Long Range validator is used to validate that the value of a component does not exceed the standard range of the Java long data type. This data type is a signed integer that ranges from -263 to 263-1, or
-9223372036854775808 to 9223372036854775807. Typically, the way you add a validator to a JavaServer Faces component is to edit the component's validator property, which provides a drop-down list from which you can select a validator.
Use a Long Range validator to test whether user has entered an integer of a size defined by the specified minimum and maximum values. The value must be any numeric type or String that can be converted to a long.
You can use more than one validator on an input component to validate for different criteria. When you use a validator, your component also needs a message component to indicate when the validation fails.
[b]See Also
For more details on
"Using Validators", Please see the tutorial at
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/validators_converters.html
Customizing a Standard Validator Message
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/custommessage.html
and
Adding Your Own Validation Handler
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/customvalidator.html
Please share your comments, experiences, additional information, questions, feedback, etc. on these components.

.

Similar Messages

  • How many miters is the iphone wifi and why dosnt the wifi atchive long rang networks

    how many miters is the iphone wifi and why dosnt the wifi atchive long rang networks

    I don't understand your question at all. I think you are asking what the range is for WiFi on an iPhone. It meets the WiFi standard, which is 40 meters if there are no obstructions, much less if there is anything at all between the phone and the router. My iPhone meets the standard.

  • Cycle range/length bar in logic pro 9

    How do I get rid of the green bar toward the top of my screen that reads "cycle range length" when i hover over it? I have been unable to prevent it from limiting the duration of my recordings. I just want to get rid of it altogether. Please... help!

    Just hit "c" to switch cycle mode on or off and please read the manual before posting silly questions like this, thank you...

  • I need a long range wifi extender, anyone know of a brand?

    Hi everyone,
    I’m after a long-range Wi-Fi extender that will allow me to send my Wi-Fi from my house to my friend’s house about 1.5-2km away. Does anyone know if this is possible or know of a brand that will do this? Even if it’s an industrial brand/model, what ever will work? 
    thanks for your help!

    That's a pretty long run for wifi to run reliably. Even though you may see the signal at your friends location their devices need the power to communicate with the wifi router too. You would probably need to use highly directional antennas on both ends with a clear site line, then boost the signal at your friends end as well.

  • Long range Wireless Network Bridging

    I'm looking for a solution
    I need too hooked wirelessly two wireless network together.  One network has the wrt300n router which is sharing internet and have 10 computer wirelessly hooked on it. I need to do a bridge of some sort to another local about 300 to 400 ft away from there. This second network is not setted up yet but will have about 10 other computers wirelessly set. I have read something about eoc-2610 long range  bridge client. But anyone have a suggestion for this setup please?

    Well as per my recommendation i would suggest you to buy an ethernet bridge (WET610N) and a Wireless Router, which will be hardwired to the Ethernet Bridge. Once you configure all thes settings on your ethernet bridge, then you need to connect that bridge to an Wireless router and your wireless router will allow all your other computers go online wirelessly.
    Once you configure all the settings on your Bridge, then you need to connect your wireless router to the bridge via Ethernet cable (On the Internet Port) . Then Connect your computer to any Ethernet Port on the Router. 
    Open an Internet Explorer browser page on a computer hard wired to the router...In the address bar type - 192.168.1.1...Leave the Username blank & in Password use admin in lower case...
    Change the LAN Ip of your Router to 192.168.2.1 and click on Save Settings. 
    The Wireless Settings of your 2nd Router should be different from your 1st Router. So both the network wont get conflict with each other and this will allow all your computers go online wirelessly from 2nd Router. 

  • Compatible PCMCIA cards long range compatible with macosx (300mW)

    Hi everyone,
    Does anyone know any pcmcia card compatible with a macintosh long range ?
    working at 300mW ?
    Greatfully ,
    Nuno Faisca

    i don't think that there is any compatibilty issue betwen the wireless cards and the range expander ...
    in order to set up the range expander , use the following steps :
    1)connect the expander to the computer
    2)assign a static ip add to the computer ( 192.168.1.10 )
    3)try to access the expander using http://192.168.1.240 . the default login password is admin
    4)ensure that the wireless settings on the expander web interface are same as that on the router's wireless settings ...
    5)once the wireless settings are done , unplug the expander from the computer .. remove the static ip add from the computer
    6)do a power cycle to the network and check whether the expander works now ..

  • HT1349 how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    SfromW wrote: ... how can I change an email for authorization, the email address we used years back, is no longer a valid email address
    How to change account here: http://support.apple.com/kb/PH1641
    If you need more help, start here: http://www.apple.com/support/itunes/
    SfromW wrote: ... we can't remember the password from the old email address (for authorization)...
    Help Retrieving and changing passwords here: http://support.apple.com/kb/HT1911
    If you need more help, from iTunes for Windows, click  iTunes > iTunes Store > Support
    SfromW wrote: ... apple should make it easier to transfer authorization authority....I would think anyways.
    You might want to rethink your thoughts about making transferring authority easier.  Making it too easy would certainly degrade your account's security.  If you still believe it should be easier, you can send feedback directly to Apple via http://www.apple.com/feedback/itunesapp.html
    You will not get a response, but you can be certain that the responsible Apple people will see your input for consideration in FaceTime product development.
    As a new user, please understand that you are NOT directly addressing Apple here.  For more info about Apple discussions, start here: http://discussions.apple.com/static/apple/tutorial/etiquette.html 
    Message was edited by: EZ Jim
    Mac OSX 10.7.4

  • I restored my ipod touch however the apps will not sync.  I tried to re-download but I changed my apple id as my old id is no longer a valid email address.  Any ideas out there please

    I restored my ipod touch however the apps will not sync.  I tried to re-download but I changed my apple id as my old id is no longer a valid email address.  Any ideas out there please?

    It might be logical to someone, but not to me. I agree it's a pain.
    How did you change your Apple ID? Creating a new one is not what you want to do, but if you changed the ID associated with your purchases then that might have worked. You would need to sign in with the Apple ID on both your iPod Touch as well as in iTunes. I'm not sure how you changed it but clearly they need to match.
    If it's just your password that is not getting recognized reset it here: http://iforgot.apple.com/
    It will send an email confirmation to the email address associated with that Apple ID. The email address you elect to use might not look anything like your Apple ID. If you don't appear to get an email check your spam filter.

  • If I sell my Mac the warranty will no longer be valid?

    If I sell my Mac the warranty will no longer be valid?

    You should have a printed copy of the warranty that came with your Air...read that carefully, mine says the warranty is for one year from the date of purchase (original purchase) and does not specify original owner.  See what yours says as mine is two years old and may be different.

  • Why does double-click no longer select a whole word?

    I am on the beta update channel and currently using FF 8.0, latest update as of the moment of this posting.
    I am not sure when it happened - I think since I started using 8.0 - but double-click no longer selects a whole word. It's the same effect as a single click - simply positions the insertion point where the mouse cursor is located.
    This is very aggravating. I thought it may be a bug in the new version (I already posted it to Bugzilla, but hasn't been confirmed yet), Unfortunately, I don't have the old version to cross-check (can I install both versions on one machine?)
    Or is it some configuration issue? Or conflict with something else? I've searched and not (yet) found any other complaints about this issue from other users.
    Note that I do not have the problem in any other app nor in other browsers that I have installed (e.g., IE, Chrome, Opera, Safari). In all of those, double-click on a word selects the whole word.
    Thanks in advance for any suggestions or guidance.
    Best,
    Yosh

    OK - I found the culprit. It seems that the Answers.com '''1-Click Answers''' utility had changed its behavior. In its Options on the Activation tab is an option to activate it when using double-click in a browser. I don't remember turning it on, but it ''was'' on. When I turned that option off, the problem went away. Apparently it is not compatible with FF8, since double-click was apparently intercepted, but 1-Click Answers was not activated - the double-click simply became a no-op.
    Now that I've turned off that option, double-click in FF8 is back to the way it's supposed to work for quickly selecting a whole word or sentence.
    If anyone else encounters this problem, I hope this information will help to resolve it.

  • Check a number range with date range.

    i have table test which is having column
    Start Range
    End Range
    Start Date
    End date
    how can i check start range and end range does not exists b/w existing record also with date range of this record.
    end date can be blank also.

    990690 wrote:
    i have table test which is having column
    Start Range
    End Range
    Start Date
    End date
    how can i check start range and end range does not exists b/w existing record also with date range of this record.
    end date can be blank also.Your question makes absolutely no sense whatsoever. We could make guesses, but then we may be wrong in our guesses.
    Please provide sufficient details for people to be able to help you. Read the FAQ: {message:id=9360002}

  • Primary Key Violation at the time of Moving from primary range to secondary range.

    Hi Experts,
    I've observed a strange issue in our environment.
    we are using sql server 2008 R2 with SP2.
    whenever a table is moving from primary range to secondary range on it's identity values, application is getting crashed with the message as below. 
    Violation of PRIMARY KEY constraint 'PK6'. Cannot insert duplicate key in object 'dbo.TD_TRANN'. The duplicate key value is (17868679).
    The statement has been terminated.
    OR
    Violation of UNIQUE KEY constraint 'IX_TDS_COST'. Cannot insert duplicate key in object 'dbo.TDS_COST'. The duplicate key value is (17, 19431201).
    identity ranges were auto managed by replication. agents are running continuous.
    please suggest.
    Cheers, Vinod Mallolu

    Well this is pretty simple, so there are two type of subscriptions (Server and client) in merge replication. So while adding article you provide following parameters:
    @pub_identity_range
    @identity_range
    You can check the details of above parameters on following article:http://msdn.microsoft.com/en-us/library/ms174329.aspx
    Snippet
     @pub_identity_range= ]
    pub_identity_range              
    Controls the identity range size allocated to a Subscriber with a server subscription when automatic identity range management is used. This identity range is reserved for a republishing Subscriber to allocate to its own Subscribers.
    pub_identity_range is bigint, with a default of NULL. You must specify this parameter if
    identityrangemanagementoption is auto or if
    auto_identity_range is true.
    [ @identity_range= ]
    identity_range              
    Controls the identity range size allocated both to the Publisher and to the Subscriber when automatic identity range management is used.
    identity_range is bigint, with a default of NULL. You must specify this parameter if
    identityrangemanagementoption is auto or if
    auto_identity_range is true.
    So for example you are adding "Server" type subscription then we consider @pub_identity_range value while assigning the range to that sub. If it is "Client" type subscription in that case we consider @identity_range value.
    You could run following query to check the range assigned to each publisher and subscriber:
    SELECT B.SUBSCRIBER_SERVER,B.DB_NAME,A.* FROM MSMERGE_IDENTITY_RANGE A,SYSMERGESUBSCRIPTIONS B
    WHERE A.SUBID=B.SUBID
    This should answer your other question as well.
    Vikas Rana | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker -------------------------------------------------------------------------------- This posting is provided "AS IS"
    with no warranties, and confers no rights. ------------------------------------------------

  • After Range and Before Range

    Hi Experts,
    I encounter a problem with my templates that use After RANGE or BEFORE RANGE.
    In Planning Application, there is no problem downloading the file that uses AFTER RANGE and BEFORE RANGE but in CONSOLIDATION Application I was unable to download or open the file with AFTER RANGE and BEFORE Range.
    When I tried to open it, the Excel Program Hangs or Not Responding, then I must End Process to use the Microsoft Excel again.
    Any suggestions?
    thanks

    Why don't you just put contents of ds_remote_schema.ldif from the IS6.0 install packages to your schema file, any ##name you want and tell installer to use preconfigured directory?! Up to IS6.0ea2 schema was a separate file.

  • I have money left on an old Itunes Apple ID email account which is no longer a valid email address..  How do I transfer those funds to my new Apple ID?

    I have money left on an old Itunes Apple ID email account which is no longer a valid email address..  How do I transfer those funds to my new Apple ID? 
    Thanks in advance for any assistance in this matter.
    SandyButler4

    Click here and request assistance.
    (65392)

  • How to get Code Combination Range (Account Range From - Account Range To)

    Hi,
    I have a requirement that I need to get the range of code of combinations based on the parameter (Account Range From & Account Range To) in the query. Please could anyone help how to fetch this value based on the parameter.
    Account Range From (7 Segments)
    XXX
    AAAA
    BBBB
    CCC
    000
    YYY
    ZZZZ
    Account Range To (7 Segments)
    XXX
    AAAA
    BBBB
    CCC
    000
    YYY
    ZZZZ
    These is the example of value which I will be getting on the Accounting Range From and Accounting Range. Based on this account range, I need to pull records from the GL_CODE_COMBINATIONS table. Any help on this plz?
    Thanks,
    Geno

    I would not use the code_combination_id. That code_combinaition_id is incremented by one for each new account, so unless you happened to create all your accounts in the right sequential order (not likely), then you cannot do a range of FROM code id a TO code id b. Do an SQL against the code combinations table and sort on the segments columns and take a look at the code combination id on each row, and I think you will see that they jump around quite a bit. I think you can only rely on using the segment columns values for doing an account range.
    John Dickey

Maybe you are looking for