How do I conditionally validate an element?

Hi,
I'm using MyFaces 1.1.6. I want to validate that a field is non-empty only if a particular checkbox is checked. How can I do this in JSF?
Thanks for any thoughts, - Dave

Here is a sample of an enumeration type definition.
     <xs:simpleType name="verbChoice">
          <xs:restriction base="xs:string">
               <xs:enumeration value="Adjust"/>
               <xs:enumeration value="Align"/>
               <xs:enumeration value="Test"/>
          </xs:restriction>
     </xs:simpleType>

Similar Messages

  • How to use data of multiline element from workflow container

    Hi,
    Can you please tell me how to access rows of multiline element of workflow container.
    Scenario is like below.
    I have values in a multiline container(table) of workflow container.
    Now inside Fork branches  i need to check for specific data in the above table and with that condition i have to send workitem.
    I hope u can understand,otherwise please revert.
    Thanks in advance,
    Madhu

    You cannot didrectly check the condition...
    what you have to do is.. write a inside the method as below and set the flag...and use the flag in condition editor...
    SWC_GET_TABLE CONTAINER 'AGENTS'  lt_agents.
    loop at lt_agents ino wa_agents.
    if wa_agents = 'A'.
    lv_flag = X.
    endif.
    endloop.
    SWC_SET_ELEMENT CONTAINER 'FLAG' lv_flag.
    Create an export parameter FLAG as char1 with export marked.
    Do the neccesary bindings from task to workflow.
    Then in workflow check this flag in condition editor.

  • How to build DTD for this element

    How to write DTD for an element which has character data and child element?
    I am trying to write DTD for "paycode" element:
    <paycode lookup="name" source="RT">OT
      <rate type="BASERATE">1.0</rate>
    </paycode>So i have written this so far:
    <!ELEMENT paycode (rate)>
    <!ATTLIST paycode
         lookup (name|code) "code"
         source CDATA #REQUIRED>Where I am going to specify that paycode has character data as well (in my xml its "OT")?
    Thanks

    But when i define my xml as :
    <rules>
    </rules>
    and open it in IE 6.0, the Internet Explorer doesnot
    give me any error message. Any reason?Is the InternetExplorer supposed to validate your XML
    ? I doubt that.
    The XML in itself is valid as long as it matches the
    basic XML syntax rules ("well-formed"). The structure
    matters only when it gets validated against a
    DTD.On http://www.w3schools.com/dtd/dtd_validation.asp webiste it said that "Internet Explorer 5.0 can validate your XML against a DTD."

  • How to get ALL validate-errors while insert xml-file into xml_schema_table

    How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ?
    Hi,
    I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 .
    To get a error-output about the reason I do validate
    the xml-file against xdb-schema, by insert it into schema_table.
    When more than one validate-errors inside the xml-file,
    the exception shows me the first error only.
    How to get all errors at one time ?
    regards
    Norbert
    ... for example like this matter:
    declare
         xmldoc CLOB;
         vStatus varchar
    begin     
    -- ... create xmldoc by using DBMS_XMLGEN ...
    -- validate by using insert ( I do not need insert ;-) )      
         begin
         -- there is the xml_schema in xdb with defaultTable XML_SCHEMA_DEFAULT_TABLE     
         insert into XML_SCHEMA_DEFAULT_TABLE values (xmltype(xmldoc) ) ;
         vStatus := 'XML-Instance is valid ' ;
         exception
         when others then
         -- it's only the first error while parsing the xml-file :     
              vStatus := 'Instance is NOT valid: '||sqlerrm ;
              dbms_output.put_line( vStatus );      
         end ;
    end ;

    If I am not mistaken, the you probably could google this one while using "Steven Feuerstein Validation" or such. I know I have seen a very decent validation / error handling from Steven about this.

  • How to enter condition wise tax amount manually in MIR7 & MIRO?

    We have a PO with a tax code entered in it.
    but while parking invoice in MIR7, we want to enter condition wise tax amount manully which is different than calculated tax amount through tax code and subsequently we want the same manual tax amount to be displayed in MIRO also
    I tried to enter amount for each condition in 'Detail' screen of 'Tax' tab in MIR7,
    but at the time of simulating, amount calculated as per tax code is only shown and not the amount entered by me
    'Calculate Tax' checkbox is not selectd in this case.
    Can anybody tell me how to enter condition wise tax amount manully in MIR7 & MIRO and post an accounting entry with this manually entered tax amount?

    Hi,
    i checked their is no unplanned delivery cost and in FV13 tax is 12.5%. In FTXP No Tax Percent rates.
    Regards
    Mahesh

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • How many computers can I use Elements 12 on?

    I purchased Photoshop Elements 12 in the box. I have Elements 8 on my computers. Should I uninstall Elements 8 or will the Elements 12 install take care of it? Also, how many computers can I install Elements 12 on?

    Ho Ktown,
    You can use Elements 12 along with Elements 8 and they can coexist. As per the EULA you can install the Software on 2 Machine but can use on 1 Machine at a time.
    Regards,
    Abhijit

  • How to get the number of elements in DB

    Could you tell me how to get the number of elements in DB??
    My code to get the number is below, but I think it is not efficient
    DB->cursor(DB, NULL, &cursorp, 0);
    while ((ret = cursorp->c_get(cursorp, &key, &data, DB_NEXT)) == 0)
    count++;
    --------------------------------------------------------------------------------------------------------------

    Hi,
    The most efficient way to get a count from the database is using the DB->stat API (http://docs.oracle.com/cd/E17076_02/html/api_reference/C/dbstat.html)
    The code will be something like:
            DB *dbp;
            DB_BTREE_STAT *statp;
            int ret;
            /* Print out the number of records in the database. */
            if ((ret = dbp->stat(dbp, NULL, &statp, 0)) != 0) {
                    dbp->err(dbp, ret, "DB->stat");
                    goto err1;
            printf("%s: database contains %lu records\n",
                progname, (u_long)statp->bt_ndata);
            free(statp);The code comes from the example included in the distribution at examples/c/ex_btrec.c
    If the database isn't a btree, you should update to the appropriate statistics structure and field.
    It's worth noting that retrieving the count is never a "cheap" operation. The count is not stored in the database - since doing so introduced a single point of contention that creates a bottle neck.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • How to add a new data element for existing table filed(Primary key field)

    Hi Experts,
    How to add a new data element for existing table field(Primary key field)
    For this filed ther is no foreign key relation ships and even check table.
    while activating table it is giving message like below.
    can you help any one to solve this and wil steps to add new dataelement for existing primary key filed of a table.
    Check table (NAMING SPACE/TABLE NAME(EX:/TC/VENDOR)) (username/19.02.10/03:29)           
    Primary key change not permitted for value table /TC/VENDOR
    Check on table  /TC/VENDOR resulted in errors              
    Thanks
    Ravi

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • How can I access the sub elements of the Nested Cluster-2

    would like to know the label a sub element of a Nested Cluster. I have included the vi. I am trying to programmetically read the Text label of the data elements in Value N mode cluster (Max , Min Mode). I was looking into the Type descriptor document. It can tell me how many and what type of elements are in the cluster. But it does not gove me Refnum to those objects.
    Let me know if you have an solution to my question."
    Attachments:
    cluster_1.vi ‏24 KB

    Hi
    You need to do a recursion. If the reference you get from the array "controls[]" if of type cluster, then you have to loop through recursively.
    Openg toolkit has variant tools that might be of some help to you (www.openg.org).
    Good luck
    PJM
    Got EasyXML?
    JKI.VIPM.EasyXML.OpenG.LAVA.Builder.blog

  • How can I access the sub elements of the Nested Cluster

    I would like to know the label a sub element of a Nested Cluster. I have included the vi. I am trying to programmetically read the Text label of the data elements in Value N mode cluster (Max , Min Mode). I was looking into the Type descriptor document. It can tell me how many and what type of elements are in the cluster. But it does not gove me Refnum to those objects.
    Let me know if you have an solution to my question.
    Attachments:
    cluster_1.vi ‏24 KB

    I suggest posting this question on the LabVIEW forum. This is the Measurement Studio for Visual Basic forum and there are not nearly as many LabVIEW experts that monitor this forum as the LabVIEW forum.
    - Elton

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • How do I recover my photoshop elements after hard drive replacement?

    I recently had to replace my main drive on the computer, so I have to reload all my software.  I originally installed photoshop elements 3.0 and still have the CDs and serial number, but cannot install it because it isn't compatable with windows 7.  I had upgraded to 5.0 and have that CD, but it is upgrade only and will not install because it cannot detect an earlier installation.  I do have all the files copied from my previous drive into a directory in the new drive, but the installation of 5.0 didn't find what it needed, even when I gave it the correct directory.
    How do I get my photoshop elements back on my computer?
    Thanks!

    You should not need to reinstall Elements 3 at all. Upgrade disks contain the full version of the software. The serial numbers tells the installer if you have a full version or an upgrade.
    Just install Elements 5 from the upgrade disk, enter your Elements 5 upgrade serial number then enter your Elements 3 serial number when prompted.

  • How can I move my Premiere elements 8 from my old pc to my new imac?

    How can I move my Premiere elements 8 from my old pc to my new imac?

    tenfootprints
    Does your imac come with a Windows Mac interface?
    If not, you cannot. There is no Premiere Elements 8 Mac version. And, you cannot install Premiere Elements 8 Windows on
    a Mac computer. As I recall, Premiere Elements 9.0/9.0.1 was the first Premiere Elements version to be offered in Windows and Mac versions.
    Please explain with more details.
    Thanks.
    ATR

  • I upgraded my computer to 64bit.  How can I transfer my Premiere Elements 8.0 (32bit) to new computer?

    In October 2014, I purchased Adobe Premier Elements 8.0 (and the APE Templates 8.0) for my work computer (32bit Windows 7).  Now they gave me a new computer which is 64bit (Windows 7).  How can I get my Premier Elements program back on my new computer without having to purchase it all over again?  I only had the program for a couple of months before they upgraded my computer  to a 64bit  I submitted my question through "Adobe Chat" and they said they couldn't help and I would need to check the forums.  Thanks to anyone who can help!   Jay
    [Moved from Premiere PRO forum to Premiere Elements... Mod]

    jaym
    What did you have for installation...
    a. installation files from a purchased download from Adobe
    or
    b. installation disc from boxed packaging of the product?
    If you have an installation disc, then insert the disc into the burner tray and follow the instructions for the installation
    that present sequentially. Remember that Premiere Elements 8 on Windows 7 64 bit is still going to be a 32 bit application.
    It will be running in the 32 bit compatibility mode of the 64 bit computer and the 32 bit limitations would apply. But Premiere Elements
    8 will install on Windows 7, 8, or 8.1 64 bit but not as a 64 bit application.
    Now if you purchased an download, those downloads are typically specific to the operating system to which it was downloaded.
    Whether or not installation files downloaded to a 32 bit computer will work on 64 bit computer is questionable. Best advice is to
    try it. You will get an immediate message from the computer and program if it is a no go.
    Please review and let us know the outcome.
    Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR
    Add On...Premiere Elements Windows is a 64 bit application only when it is version 10, 11, 12, or 13 run specifically on
    Windows 7, 8, or 8.1 64 bit computer.

Maybe you are looking for

  • IPod Classic Screen still black after restoring it

    After dropping my iPod classic, the screen went black and I could no longer get it to work.  I was able to restore it however the screen is still black. I can hear it clicking when I spin the will and it connects to iTunes but the screen is still bla

  • Drop Down Menu List Not Visible

    Hi I am using a Horizon menu across top of page for user to select from a list of pages to go to but for some reason the menu drop down list is not fully visible but rather appears behind other elements on the page such as a flash video and a google

  • IPod does not function well. i need help!!

    I got this iPod, bought frm korea. Tried to dwnld songs in it. Wen connected to computer, it doesnt come out in iTunes. It comes out at mycom. Wen i dwnld songs manually, it cannot be play & my ipod went blank and turn off. went i connect it back, th

  • Flash in HTML-based AIR app: Urls do not open

    Hy there Like the title states, I have a HTML-based AIR application, which embeds flash. This flash opens Links which should eventually open the default browser. For this I previously had to set the following property in my AIR application: window.ht

  • Firefox sync can I sync my smart TV to my pc

    I've got Windows 7 Home Premium and a all-in-one desktop pc (Inspiron one 2020, 4 GB RAM, 64-bit operating system and I'm wondering if I can sync my pc with my Samsung smart tv.