How do you add a validator on a table?

Hi,
I have an ADF table. The user can add or remove elements to this table.
I want to add a validator on the table, that will be invoked, when I leave the page.
This validator will check if the user has added at-least one entry in the row.
I created the validator. I cannot hook it to the "af:table" component. The table component does not provide any kind of validator attribute.
I tried adding "<af:validator></af:validator>" within the table and it didn't work.
How do you add a validator on the table?

Olivier,
My page fragment that contains the table, is 3/5 train stop out of a train.
So when I say leave the page, I mean navigate to the next or previous train stop.
All I want to do is make sure that the user added at-least one row to the table e.g. one contact. This kind of validation does not belong on the entity. That is because that validation will not get fired until the commit point; which in my scenario will be on the 5th train stop i.e. too late.
As for your other suggestion about adding a button or a link, that is not an option. A button or a link would require explicit user action. What happens if the user doesnot click the link or the button? Then the validation will not be invoked and the user will be allowed to go to the next fragment without adding the contact row.
--ajay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How do you add calculation columns to a table Region by using the Footer?

    I have a requirement to add some aggregate metrics at the bottom of my "tableRegion". The "TotalValue" property value for the table is not going to work for me since I the data I'm calculating is more complicated then doing a simple "sum".
    My first try (simple test case) was to use "OATableFooterBean". However, when it tries to find the table bean, it comes back as "null":
    if (empDetails != null) {
    OATableFooterBean tblFooter =(OATableFooterBean) empDetails.getFooter();
    if (tblFooter != null) {
    tblFooter.setAttributeValue("EmployeeName", "Merit Inc Target/Budget");
    I'm guessing it is due to not defining a "footer" region for my "table" region. When I click on the "Table" region, then due "New", I dot see "Region" listed as an option. So my question is how do I add a region "footer" to my "table" region? Once I have that, I'm sure it will solve the "null" exception I'm seeing for trying to get the table footer in the above code.
    Thanks

    Hi,
    For this create a transient attribute in the VO.
    Perform your required logic on this new transient attribute.
    Now create a footer region and create a styledtext and assign this transient attribute.
    Regards
    Sridhar

  • How do you add additional rows to a table

    ...on Word of Mac?

    If you just want to add an extra row at the end of the table all you have to do is hit tab while in the last cell, shroudlupe.
    If you want to add a row in the middle or top of a table, highlight the row above or below where you want the new one to be and then go to the "Table" menu. Go down to the "insert" option and choose whichever is appropriate from "Rows below" or Rows above".
    (If you want to insert more than one row ,then select multiple rows at the first step above, rather than just one , and it will insert the same number of rows that you have selected).
    Another way of doing it, after selecting a row in a table, is to simply access the contextual menu by holding down the control key and clicking, or by "right clicking", and then select "insert rows" from the options presented.
    Cheers
    Rod

  • How Do You Add Multiple CSS Rules to Text?

    Hi everyone, I have these css rules in my css styles window they are all assigned to some text in a cell on my page.
    .Def14grey4 <body>
    .def14grey4 a:link <a>
    .def14grey4 a:visited <a>
    .def14grey4 a:hover <a>
    .def14grey4 a:active <a>
    .def14grey4 a:focus <a>
    How do you add (all of) these styles to the text in the first place, I know how to add the first one (.Def14grey4), you select the text in the cell and choose the rule from the drop-down menu in the css panel, but how do you add the other ones to some text as well, so that it can have the same link properties.
    Basically I have some more text elsewhere on the page and want to assign these rules to that as well.
    thanks Gareth

    You would want to change your order as shown here -
    .Def14grey4 <body>
    .def14grey4 a:link <a>
    .def14grey4 a:visited <a>
    .def14grey4 a:hover, .def14grey4 a:focus <a>
    .def14grey4 a:active <a>
    That way, the hover and the focus states are equivalent.
    How do you add (all of) these styles to the text in the first place, I know how to add the first one
    You don't really.  The 4 bottom selectors say -
    "find an element with a class of 'def14grey4', and style any link inside that element this way"
    So, <span class="def14grey4"><a href="whatever.html">Whatever</a></span> would get the pseudo-class styles, as would any of the following -
    <span class="def14grey4"><a href="whatever.html">Whatever</a></span>
    <td class="def14grey4"><a href="whatever.html">Whatever</a></td>
    <p class="def14grey4"><a href="whatever.html">Whatever</a></p>
    <body class="def14grey4"><a href="whatever.html">Whatever</a></body>
    <div class="def14grey4"><a href="whatever.html">Whatever</a></div>
    <strong class="def14grey4"><a href="whatever.html">Whatever</a></strong>
    and so on.  These examples assume that there isn't some other more specific rule that would apply to the same links.  You need to study up on the CSS cascade and specificity....

  • How do you add a google calendar to muse web site, that updates are synced

    how do you add a google calendar to muse web site, that updates are synced?

    You can add Google Calender using iframe which Google provides if you go to calender settings.
    Once you insert this code in Muse page through Object > Insert HTML , the calender will be displayed on page.
    https://support.google.com/calendar/answer/41207?hl=en
    Thanks,
    Sanjit

  • How do you add non-Garage band instruments into a Logic project so that you can hear them on playback?

    How do you add non-Garage band instruments (orchestral instruments) into a Logic Pro (8) project so that you can hear those insrtruments' sounds on playback?  I've tried to understand and follow the Logic Pro 8 User Manual, but the process comes off as so complex and the writing so technical that it does not help but only confuses.
    To be precise - I want to add instruments (orchestral) that are not offered in the current Garage band menu which is offered in the Mixer's channel strip menus for Logic Pro 8.  To be clear, the instruments that are offered are Bass / Drum Kits / Guitars / Mallets / Organs / Pianos and Keyboards / Synth Basics / Synth Leads / Synth Pads.  Most of these that I've tried seem to work and give their characteristic sound when placed in a particular channel and playback is clicked. 
    However - there is one orchestra instrument offered in the standard Logic Pro 8 Mixer channel menu and it's the item labelled "Performance - 000 flute 1 or 001 flute 1."  And it is this instrument that presents a problem. When I click on it and choose it from the menu and enter it as the instrument of choice for a specfic channel / track in my Logic Pro project arrangement, when playing back the music for the overall piece this particular track, the flute, does not playback and produce the notes (Midi events) in the track in the sound of the flute.  Instead, nothing comes out at all.  I can't imagine why this does not work.  Any ideas, anyone? Again, when choosing this instrument for a track and clicking the playback no flute sound is forthcoming.  Why not? I have not tried them all, but when most of the other various types of keyboards, such as an electric piano or an organ, are chosen for a track the playback successfully renders the sound of these instruments.  Why then does playback not produce the sound of the flute when it has clearly been chosen to play and sound the Midi events given it?
    Anyway, the overall, larger issue for me is the inability I have to choose and get non-Garageband instruments (largely orchestral) to play the Midi events given on various tracks. If my guess is correct then technically, orchestral instruments not offered in the standard Logic Pro 8 Garageband Mixer channel menu are referred to as external Midi sampled instruments - still, IMHO the process is not clearly spelled out in the User Manual.  The simple step by step process whereby a non-Garage band instrument, say an orchestral instrument, is placed in a channel replete with Midi event (notes) waiting to be played should be easy, logical and given in a simple to follow format, but is not.
    What with all the talk of routes, busses, auxillary channels, GM devices, GM mixers, audio bins, libraries and audio files this Logic Pro User is confused to the max.  Can someone please help me and, in simple English, describe the step by step process whereby presumably external sampled orchestral instruments can be successfully employed, in any given Logic Pro arrangement project, to render their characteristic sounds upon playback?
    On my two Macs, one a laptop and one a much larger Mac, I have any number of the GSO (Garritan Symphony Orceshtra) and Vienna Symphony Orchestra instrument library samples - and yet - I've yet to figure out how to actually get them INTO a Logic Pro project of any kind!  To put this as a question, even as a humble request, how can I make good use of these orchestral sample libraries in a Logic Pro project?  Can someone steer my to a clear resolution of this issue.  I'd sincerely appreciate it!  Thanks all! 
    DavidBacon

    DavidBacon wrote:
    Anyway, the overall, larger issue for me is the inability I have to choose and get non-Garageband instruments (largely orchestral) to play the Midi events given on various tracks. If my guess is correct then technically, orchestral instruments not offered in the standard Logic Pro 8 Garageband Mixer channel menu are referred to as external Midi sampled instruments - still, IMHO the process is not clearly spelled out in the User Manual.  The simple step by step process whereby a non-Garage band instrument, say an orchestral instrument, is placed in a channel replete with Midi event (notes) waiting to be played should be easy, logical and given in a simple to follow format, but is not.
    What with all the talk of routes, busses, auxillary channels, GM devices, GM mixers, audio bins, libraries and audio files this Logic Pro User is confused to the max.
    David,  you understand that this is professional software and is not necessarily meant to be easy but is in fact designed to give the professional user as many choices as possible, that's why it's in the Pro Apps section. You WILL need to learn about buses, GM Devices, Audio Bins, Libraries...etc..etc if you intend to use Logic.
    That said, you are looking in the wrong place in the channel strip.
      May I offer you advice?
    Go here:
    http://documentation.apple.com/en/logicpro/
    Open "Exploring Logic Pro"  (a short PDF Document). Pay special attention to chapter 3. Also pay special attention to the included graphics of the channel strips.
    I encourage you to read the whole document as it will clear up many things... even though it's a Logic 9 document.
    Post back

  • How do you add an iTunes Gift Card & how is it charged?

    Hey all,
    I currently pay for my iTunes downloads direct from my Debit Card. If I add a gift card to my account will the cost of downloads come from that automatically or do I need to let iTunes know thats what I want?
    Also - how do you add the card? I'm probably being totally stupid but can't seem to find an "add credit here" option.
    Help appreciated

    If you redeem an iTunes gift card, the next purchases you make up to the value of the gift card will be made from it automatically. To add the card, click here; this link will open iTunes.
    (34512)

  • How do you add multiple iTunes to Keynote

    How do you add multiple songs from the iTunes to your Keynote presentation?

    Jer&Renee,
    welcome to Apple Discussions.
    It depends where you want them in your presentation.
    Open the Media inspector and choose a playlist. In the list of entries, mark those you want to add to Keynote (use command-click to mark multiple titles not in one block).
    Then drag the marked titles either on a slide or on the small Audio field (looks like a frame) in Document inspector. When you then hover the cursor at the Audio "frame", you'll see the quick info "Multiple Files". You cannot change the order or remove one of the files, but only all of them.

  • How do you add pictures to your photo book after saving it? Can you re-save it to send to blurb?

    How do you add pictures to your photo book once you have saved it? Moreover, can you save it again and send it to Blurb.

    Go back to Library and drag the extra photos into the book collection.

  • How do you add multiple users to an itunes account

    how do you add multiple users to an itunes account

    First :
    Using an iPhone without a wireless service plan
    Then restore the iPod to factory settings/new iPod on the computer your kids will use:
    iTunes: Restoring iOS software
    If you are using the same computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • How do you add adobe flash player to your mac computer

    How do you add adobe flash player on a mac computer so you can watch youtube and or listen to music?

    Click here and download it.
    (119142)

  • How do you add the ipad device to your itunes account? Please!!

    How do you add the ipad 2 device to your itunes account

    There is no need to add the iPad, just sign into your iTunes account when you need to.

  • How do you add visual video controls to widget video in ibooks author?

    How do you add video controls to video using ibooks author?

    I have the same question as VideoImage. I would like the controls to appear in some of my videos so that the reader can speed them up or slow them down. This would save me having to run them through iMovie at 4X say and saving them that way. As far as I can see, the video fast forward, fast reverse, go to end, go to beginning controls only appear in the Widget inspector. What is their purpose then? 

  • How do you add a video clip to a slide show?

    How do you add a video clip to a slide show using elements 12?

    You can import some very short video clips into Photoshop and make gifs.  I can import short (10 second or so) .mvi video clips I've taken with my point and shoot camera.
    Use File ->Import->Video Frames to Layers
    CS3 doesn't recognize .mvi files until you enter *.* in the box, hit load, then find the file you want.
    After the file has been loaded, go to Windows, and check Animation.
    After the Animation bar loads, go to the right side arrow, check Make Frames from Layers.
    Then Save for Web and Devices, and you've got your gif.
    I find it much easier to use the separate software.

  • How do you add a new thumbnail to a slide show when using in-browser editing?

    how do you add a new thumbnail to a slide show when using in-browser editing?

    At this moment you can’t add pictures to a slideshow. You only can replace them.

Maybe you are looking for

  • How can I fix my bootcamp partition?

    Hi there, I'm a relative noob when it comes to OSX so please be gentle with me. I'm running an early 2011 Macbook Pro which initially had OSX Maverick with a Windows 7 Bootcamp partition. All was working perfectly and seamlessly until I enthusiastica

  • URL of the current portal page loaded using Javascript ?

    Hello: I am trying to add programmatically the url of the current page loaded in the portal to the 'Favorites List'. There is a pre-built KM iview to store your 'favorites'. I can extract and write to this 'favorites' using KM java API. But only chal

  • How to set kernel module options at boot? (solved)

    I've got a netbook with bluetooth supported by the omnibook driver. In rc.conf, I left the modules autoloading on, and added 'omnibook' to the modules array, because it wasn't automatically loaded. Then I added the following line to /etc/modules.d/mo

  • Command Click in edit changes color white balance and tint in edit

    Command Click in edit changes color white balance and tint in edit, what is happening?

  • Cross Company Third Party Sales related problem

    Dear All, I have the following Third Party Intercompany Sales Scenario - Company Code : A100 -> Plant : T001                            B100 -> Plant : P001 Customer : 1001 under Company Code B100 Business Case - Customercode 1001 of Company Code B10