"Suggestive" validators (suggestors?)

Is there any way to do this? For example, I have a "signup"
type form (name, email, address, hobbies, etc.)... Certain fields
would be required and have their respective validators (name,
email, phone)... But other fields (hobbies, homepage, etc.), I
would like to recommend that the user fill them in before
submitting the info, but it's OK if they don't... Is there any type
of "suggestion validator" that can accomplish this, or do you just
have to handle all the logic yourself...??? Or can you actually
just do it with validators and I'm missing something obvious...???
Just wondering...

Istrasci,
There is nothing like a "sugestion validator" in Flex
framework. But as you said, you can validate those fields with your
own logic. I would sugest you create your own "sugestion validator"
class to use it in your project, sou it would be easier to handle.
Depending on what you plan to do, you cold extend TextInput and
create a flag, required or optional and create your own validator,
which would handle each Field acording to its flag.
(I personaly hate flex validators, i always create my own
lib).
I hope that my post was useful.
Regards,
Peter

Similar Messages

  • Creating Custom Validators for ADF in JDev 10.1.3.1

    Hi all,
    I'm trying to create a validator to solve a seemingly common problem - that is given 2 dates (startDate & endDate), validate that endDate cannot be earlier than startDate.
    In my case, both startDate and endDate are in the same form. From the ADF Developers Guide, the recommended approach is to create the validation method on the page's backing bean. But in my application, there are many occurrences of startDate and endDate in other forms, therefore having the validation method on the backing bean might not be the best solution.
    I tried to create my own custom validator and tying it to a tag library stated in http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFDevelop6.html#wp999130, but that didn't seem to work either. I'm not sure if creating custom validators by extending the ValidatorTag is supported in ADF.
    Would appreciate it if someone has any suggestions on how to create the validator that I need, without having validation methods that does the same thing all over my backing beans.
    TIA.
    Regards,
    Lennard

    Hi,
    of course, ADF Faces supports custom validators because it is compliant to the JSF APIs runnting on the JSF RI.
    Another approach for validation would be on the business service level. Assuming you use ADF BC, the EO can have a method validator defined that is automatically inherited by all its views. The disadvantage though is that the error message would have to come from the server, requiring custom error message handling for user friendly messages as described in the developer guide.
    Looking forward, in a next release of ADF the binding ayer will allow more complex validations thus not requiring to handle complex validation on teh business service.
    So far however I think that using a custom validator is the best you can do. Note that in the case of ADF BC the date is of type oracle.jbo.server.domain.Date and not java.util.Date, which might be a hint to check for your validator issue
    Frank

  • How to use field validators, like an EmailValidator, in a Flash Catalyst project?

    After making a contact form in Flash Catalyst, I added an EmailValidator in Flash Builder.
    Unfortunately, the validation error message is not visible: only the outline of the message box and the red outline around the input field.
    Does someone has some tips or suggestions how to make the error text visible?
    details:
    1. code snippets:
    in de <fx:Declarations> section:
      <mx:EmailValidator id="emailValidator"
                                                                   source="{emailInput}" property="text"
                                                                   triggerEvent=""
                                                                   requiredFieldError="Email address must be entered"
                                                                   missingAtSignError="add @-sign, please" />
    2. screenshot of 'empty' error message:
    (rectangle on the right in the image should display an error message)
    Thanks for any help,
    Peter van der Post

    The issue is that Flash Catalyst uses the Wireframe Theme. Validators display in this fashion under that theme. What you need to do, once you are done with the project, take it back into Flash Builder, and change the Theme. This can be done under Project > Properties > Flex Theme > Spark
    Hope this helps.
    Chris

  • Looking for best jQuery.ajax & JSON code validators for VStudio 2013 SP Dev

    Hi All,
    As a new SharePoint 2013 developer I’m looking for the best Visual Studio 2013 Intellisense Extensions or code validators for:
    1. jQuery.ajax
    2. JSON
    3. JSON.stringify
    The reason for this is I sometimes make silly syntax mistakes that take hours to correct. For example the text marked in green below show
    the small errors I made yesterday, and got no help from Visual Studio.
    ************************Start Of Code************************
    var call = jQuery.ajax({
    url: _spPageContextInfo.webAbsoluteUrl + "/_api/SP.WebProxy.invoke",
    type: "POST",
    data: JSON.stringify(
    "requestInfo": {
    "__metadata": {
    "type":
    "SP.WebrequestInfo"
    },        //should be R
    "Url":
    "http://services.***********/?$format=json",
    "Method":
    "GET"
    heaaders:             
    //two a's{                                                                                                       
    "Accept":
    "application/json;odata=verbose",
    "Content-Type":
    "application/json:odata=verbose",   
       //should be ;    
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    call.done(function
    (data, textStatus, jqXHR) {                   
    if (data.d.Invoke.StatusCode == 200) {                          
    var categories = JSON.parse(data.d.Invoke.Body);
    var message = jQuery("#message");
    message.text("********* service:");
    message.append("<br/>");
    jQuery.each(categories.value(
    function (index, value) {     //should
    be ,    
    message.append(value.*********);
    message.append("<br/>");
    } else {
    var message = data.d.invoke.body;   
                //should be capital letters
    alert("Call failed. Error: " + message);
    //should be errorThrown
    call.fail(function
    (jqXHR, textStatus, errorThrow) {                     
    var response = JSON.parse(jqXHR.responseText);
    var message = response ? response.error.message.value : textStatus;
    alert("Call failed. Error: " + message);
    ************************End Of Code************************
    Visual Studio didn’t highlight any of the errors I made. The only help I got was from a message
    box with the message “invalid character” (see screenshot below).
    Even with Fiddler it was impossible to see where the errors were. Last week I had a similar problem with a much larger block of code. One syntax mistake that was not highlighted by Visual Studio cost me hours of lost time.
    I hope you can help
    CEStar

    Hi,
    As this question is more relate to Visual Studio, I suggest you post it to Visual Studio Development Forum, you will get more help and confirm answers from there.
    What’s more, I have seen a similar post from you in the link below, please check whether Crystal’s post is helpful:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/dbde39a0-18a5-4e15-9b5b-6b41cc4350d0/help-finding-the-best-intellisense-extensions-or-code-validators-for-visual-studio-2013?forum=visualstudiogeneral
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • Model - Eo validators?

    hi groups,
    i had question here? regards Eo - Entity validators,
    i written a method says as 'x' on Application Module Implmentation i would like to call the method 'x' in Eo validator's method (Eo Impl class).
    how should i do? let me know :)
    is it right way? can i do this? please provide some suggestion on this thread :)

    If you need to validate, write that method in the entity Implementation class itself. There's no point in writing that method in the app module and calling that >method from the entity, in fact it is bad practice. If you want to get some values from a VO, define view accessor in the EO. Through accessor you can refer >the required values.from this point of that thread i understood somewhat . but am not getting clear.
    so am go to writing my need in details.
    in AM i can able to get all of my vo instance method (by getxvo getyvo getzvo). if am going to eo validator method.
    am unable to access those x,y,z vo's methods.so my question is
    how do i access those methods.
    important note :
    so d'nt push me to do a association or viewlinks for accessing those methods. for simple validation(getting some values check it whether it is correct or not?)
    is there any way? access all my vo i want do this validation on eo validate.
    i hope that here is my answer:
    If you want to get some values from a VO, define view accessor in the EO. Through accessor you can refer the required values.
    if am went off right means please ensure it.

  • Validation is calling before Suggest List

    Hi Experts,
    I m using a barcode scanner for input AutoComplete.I m facing a strange problem that my inputBox is calling validation before the suggestion list Pop Up.So getting Null Pointer Exception.I m facing problem when scanner setting is on New Line after it Scan.So is there any method or way so that i can call validator after procedure fill Pop up Array.My jdev Version is 11.1.1.5.0.
    Thanks,
    Raul

    Hi,
    validation occurs on a field when the field is left (for client side validators) and when a field is submitted (for server side validators). As I don't know how your scanner is integrated to the form I would assume it uses some sort of Applet or similar, which means it probably leaves the field.
    Frank

  • I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    The following previous discussion has a solution that worked for a variety of people with the -1712 error on a variety of applications and may help: The application Safari can't be opened -1712

  • Pluginspage is not working in embed script in firefox 36 version. Actually wanna downlaod jre 1.8 . It was working on firefox 22 version. Please suggest

    <pre><nowiki>function createEmbed(divID, context, locale, server,client)
    var d = document.getElementById(divID);
    d.innerHTML = '<EMBED type="application/x-java-applet;version=1.8" CODE="com.cybertrust.webrao.WebRAOApplet.class"'+
    'JAVA_CODEBASE="'+context+'" '+
    'ARCHIVE="WebRAO.jar" '+
    'NAME="WebRAOApplet" '+
    'MAYSCRIPT="true" '+
    'pluginspage="http://javadl.sun.com/webapps/download/GetFile/1.8.0_31-b13/windows-i586/xpiinstall.exe"'+
    'L="'+locale+'" ' +
    'PinTimeout="'+server+'"'+
    'ClientTimeout="'+client+'"'+
    'separate_jvm="true"'+
    'java_version="1.8.0_31" />';
    }</nowiki></pre>
    We are using the above script. Defined the application/x-java-applet;version=1.8 So. as per the oracle documentation, Firefox has to check whether java version 1.8 or above is available and then run the applet thereby opening the run window and finally the applet window has to open. So the expectation is if 1.8 jre is not available it has to trigger the pluginspage attribute thereby redirecting to the jre autodownload url mentioned in pluginspage. This code use to work for firefox 21. Not sure why it will not work with any of the versions above 21. Right now we are trying with firefox 36. The same code works with IE 11 also. Please suggest is there any solution for the same.

    There are some updates happening to [https://www.mozilla.org/en-US/plugincheck/]
    However to further investigate I would suggest troubleshooting the installation of Java:
    *[http://kb.mozillazine.org/Java#Java_Deployment_Toolkit_plugin]
    *[https://support.mozilla.org/en-US/kb/troubleshoot-issues-with-plugins-fix-problems]
    Or also checking with Mozillazine or stackoverflow.com for compatibility and development troubleshooting is a good place to also look.

  • Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Welcome to the Apple community.
    Does anyone have suggestions?
    Trash the spyware (Chrome) and use Safari.

  • HT204053 i accidently set up one account for i cloud and one for itunes. suggestions on how do i update this to only the one. please on how do i change my icloud to be the same as my itunes acct. thanks

    i accidently set up one account for icloud and one for itunes; suggestions on how to correct this and use just one account for both.... thanks

    If you want to change your iCloud ID to another existing ID you'll have to delete the account, create a new account with the other ID, and migrate your data to the new account.  To do this, first go to Settings>iCloud on your phone and turn all data you are syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on your iPhone.  (If you are syncing iWork documents with iCloud, also open your iWork apps and turn off iCloud syncing and choose to keep the documents on your phone.)  After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using your other ID, then turn syncing for your data (contacts, etc.) back to On.  When prompted, choose Merge.  This will upload the data to your new account.
    This will not move your photo stream, however.  If you have photos in photo stream that aren't in your camera roll and that you haven't backed up anywhere else you will need to save these before deleting the account.  To do this, open your photo stream album on your iPhone in the thumbnail view, tap Edit, tap all the photos to select them, tap Share, then tap Save to Camera Roll.  You can then delete the iCloud account and your photos will stay in your camera roll.

  • HT5012 I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

    I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • At a helper's suggestion, I hit Command+up arrow + 4. Ouch. Can't undo resulting view

    I was working with a support person at Constant Connect, and to solve a problem I was having, she suggested I hit Command+4+up arrow. I did. All the text in the article I was viewing became tiny, tiny. I now can't get out of this setting.

    Hi, Tim...
    Command + 0 didn't solve my problem. But Option + 0 did. (Us Mac people have to be different, huh?)
    Thanks so much for getting me onto the right road!
    Deb

  • I've just upgraded to IOS 7.0 on my iPhone 5 and the calendar is horrible!  I want to be able to see the who day at a glance not a few hours.  Does anyone have any suggestions?

    What's happened to the calendar in IOS 7.0?  I would like to be able to see the whole day at a glance not just a few hours.  Any suggestions?

    I know what it looks like and what it does.  I need to be able to see the whole day!  A few hours is not helpful for knowing whats ahead.  I don't want to scroll I just want to be able to look at a glance.  Does anyone have any helpful suggestions.

  • I am using the big date calendar template and when I submit it to apple for printing I lose the name of two months. These names are not text boxes. I see the names when I send it in but something happens during the transmission to apple. It was suggested

    I am using the big date calendar template in iPhoto. I am on Lion 10.7.2, macbook air. The names of the months are on each calendar page but something happens when I send the data to Apple. The names are part of the template. They are not text boxes. I lose two names on the calendar after it is sent to Apple. Apple suggested I make a pdf file of my calendar before sending it in and check to make sure every name shows. I did this with a calendar I just sent in. The calendar was correct. All names of the months were showing. After sending the data two month names disappeard because when it arrived by mail, it was incorrect. Apple looked at my calendar via a pdf file and it was incorrect.  This is second time this has happened. I called Apple and they had me delete several folders in the Library folder, some preferences and do a complete reinstall of iPhoto.  I have not yet remade the defective calendar. I am wondering if anyone else has had this problem?
    kathy

    Control-click on the background of the view all pages window and select "Preview Calendar" from the contextual menu.
    You can also save the pdf as a file to compare to the printed calendar.  If the two names are visible in the pdf file then the printed copy should show them.  Contact Apple for a refund.  Apple Print Products - Apple Store (U.S.)

  • In ical I just added new calendars to a pre-existing calendar group, I can make events with these calendars, but not reminders, any suggestions?

    in ical I just added new calendars to a pre-existing calendar group, I can make events with these calendars, but not reminders, any suggestions?

    Hi,
    Lion has changed the way reminders (todos as was) work. They now seem to need to be in a seperate calendar.
    In iCal open the File menu and select New Reminder List... and select where to put it.
    Best wishes
    John M

Maybe you are looking for