DataTable - Best way use Rendering (if condition)

Hello ,
I am new to jsf(come from the JSP/struts world).I have to display dataTables based on multiple conditions , if in JSTL I would have used a series of c:if conditions to display the same.
I was wondering how I could use the "rendered" as an if condition to check conditions (can I use "and" , "or" conditions using this..).Or is there a better way to do this ..
An example would go a long way in clearing my doubt .

The rendered attribute accepts a booleanvalue. This can be just a property or an outcome of one or more expressions.
Some basic examples:rendered="#{myBean.booleanValue}"
rendered="#{myBean.stringValue == 'value'}"
rendered="#{myBean.intValue > 10}"
rendered="#{myBean.objectValue == null}"
rendered="#{!empty myBean.collectionValue}"
rendered="#{myBean.stringValue != null && myBean.intValue == 1}"
rendered="#{myBean.stringValue != 'value' || !myBean.booleanValue}"

Similar Messages

  • Best way using ADDT? : No page refresh, but form fields change on selection.

    The top half of the form is a simple user registration. The bottom half is dependent on the user selecting an item from a dropdown menu which then changes the form accordingly.
    What is the best way to do this?

    -----
    How about an alternate solution, where each form is on an a spry widget accordion plane?
    When tyring to do that with ADDT or Dreamweaver forms, you would have to define multiple insert or update transactions as well -- that´s per se not possible, also because an insert/update transaction always comes with an "redirect after insert/update" trigger, means the user will be leaving that page.
    But is there a way to still have the simple registration form at the top of the page?
    see my "redirect after insert" comment above.
    Would each widget form have its own submit button?
    You might want to consider creating separate (non ADDT) forms for each SPRY accordion which submit their stuff to the database behind the scenes and without leaving the page. To my knowledge the SPRY documentation shows how this can be done -- but as this isn´t related to ADDT, I´m not going to comment on that :-)
    Then on submit it inserts the simple registration form along with its own form?
    the main form
    (regardless if it´s driven by ADDT´s or Dreamweaver´s insert/update behaviours) will be redirecting to another page
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Basic Ask What is best way, using Type

    Hi
    I have a Global cursor in package , in Procedure A I open this cursor and need send data from cursor to other Procedure B. How can I to send Data from cursor using a Type ?
    Thanks

    We are passing a table from one procedure to another.
    We declared a type as a record and then declared a type as a table of that record type. When experimenting I declared one based upon a cursor as below:
    Cursor c_wklds
         is
    Select
         FCAS_ORG_UID,
         FCAS_WKLCTG,
         WKLFN,
         WKLSFN,
         WKLNUM,
         FY,
         FMTH_NUM,
         OPEN_PEND_CNT,
         YTD_WKYRS
         TM_DIV_1_WKYRS,
         TM_DIV_2_WKYRS,
         YTD_PRCD_CNT,
         YTD_RCPT_CNT,
         MNTH_END_PEND_CNT,
         ASAL,
         CST
    from
    FCASWKLDVAL;
    Type WRKLDS_TBL is table of c_wklds%Rowtype INDEX BY PLS_INTEGER;
    My_wklds_table WRKLDS_TBL;
    So that we could pass the table from one procedure to another we declared it in our specification as recommended in this post.
    Passing A PL/SQL Table Through a Procedure

  • Best way to adjust lighting in video clips

    Is there a "best" way to adjust lighting conditions within a video clip?  I have a clip with terrible lighting conditions and cannot reshoot the scenario.
    While I don't expect a perfect solution, I am hoping that there are better approaches than the ones I've been using.  If recommendations include third-party plugins, I would appreciate hearing about them, as well.
    I have been using the gamma corrector and luma corrector filters.  The gamma corrector adjustments in greater values, but seems to only work in discrete steps.  So, if the gamma needs to be stepped up or down within a clip, there is a very visible and sometimes jarring visual effect.  The luma corrector seems to only be able to increase the brightness level (through a combination of all 5 or 6 variables including brightness, gain, gamma, etc.) before the clip looks washed out. 
    Thanks,
    Steve

    All CC and Grading should start with "Levels"
    You could then go into 3-Way Color Correction.
    You could also look at a more powerful CC such as Colorista 2

  • I need to know best way to edit MXF files, with least rendering, is that converting the MXF or Log and Transfer? the end product is dvd, but I have lots and lots of these projects to do.

    I am about to comence my Edit, and was told of Mpeg Streamclip, however this doesn't seem to work with my Canon XF305 Clips, the reason I was told to use it was so I wouldn't have to Render in Final Cut Pro all the time.. I do have the Canon Disc with the Plug in Utility and the update from their site.
    Is it best to Convert these MXF files first and import them into FCP or use 'Log and Transfer', so far I am unable to do either!!
    The projects on the timeline will have introduction .Movs already on it as a Template to re-use again and again with the new Footage ( MXF Files ) to be added and edited with transitions etc..This process is repeated again and again but with different MXF clips each time.
      I am looking for the quickest and best way for workflow as there are 80 or more projects to do, each with 10 or so clips to be added to the timeline and Exported for DVD...Will I have to then Compress to fit onto DVD's??
    I know Streamclip is an Mepeg 2 app but I thought the Canon XF305 Shot as mpeg2....
    Is Log and Transfer my only Option?
    Basically I need to know the quickest for Render purposes, and of course, the best way so the files aren't so huge etc etc.
    Please, any suggestions would be greatly received....

    We only work with PR422 files in FC7.  We use Shane's workflow with all 5D & MXF footage.
    Make your life easier and stick to the ProRes family for your footage and edit sequences. Avoid H264 & convert any you have to ProRes.
    Unless you are considering Blu-Ray the only way to deliver video on a DVD is to convert it to SD.
    Depending on the length of your show you can make a Blu-Ray in Compressor but you have very limited authoring options when compared to DVD Studio Pro.
    Compressor can also convert your HD to SD mpg-2 & Ac3 files. The best results usually come from setting the frame controls in the mpg-2 setting of Compressor to best. Depending on the the length of the show and your Qmaster settings this can take quite a while.
    I personally find Compressor's HD to SD DVD conversion varies. Sometimes it is wonderful and sometimes not so much. I prefer the following as it is usually is faster and very consistent.
    Export a quicktime movie (not QT conversion) of your final sequence
    Import the exported HD file back into FC.
    Create a SD 16x9 sequence and then drop in the recently exported HD seq and render. Rendering the sequence basically has FC doing the HD to SD conversion. Export the SD sequence and then convert to mpg-2 & ac3 in Compressor. While this does take time I still find it faster than Compressor with Qmaster utilizing all cores.
    Another option is using jobs in Compressor
    http://pixelcorps.cachefly.net/macbreak-154-540p-h264.mov
    In this workflow you would have Compressor convert the HD file to SD and then through jobs convert the SD file to mpg2 & Ac3. 
    In theory the jobs version could be faster (based on a number of variables- length, Qmaster, etc) but I haven't had time to compare the two. 

  • Does Adobe Reader for iOS have the ability to open inbedded links to additional PDF docs?  If not, then what would be the best way to use these already created PDF's?

    Does Adobe Reader for iOS have the ability to open inbedded links created with Acrobat Standard to additional PDF docs?  If not, then what would be the best way to use these already created PDF's on an I Pad?

    driddy61,
    As of June 2014, none of the Adobe Reader mobile products support the hyperlink action for opening a separate PDF document.
    Adobe Reader for iOS
    Adobe Reader for Android
    Adobe Reader Touch for Windows 8
    In addition, the Reader mobile products do not open multiple windows/documents simultaneously, which would make the navigation between PDF documents nearly impossible. (Once a hyperlink takes you to a different PDF document, you have no way to go back to the original PDF document.)
    The only Adobe Reader product that fulfills your department's requirements is Adobe Reader XI (mostly for Windows/Mac desktop/laptop computers).  Acrobat Pro and Standard are paid products.
    Because you are in search of a less expensive device for your department, you could get a Windows tablet instead of a Windows desktop/laptop computer. Microsoft Surface Pro (that you've mentioned in your previous reply) is just one example.  You can also find other less expensive Windows tablets.
    Tablets
    However, please keep in mind that there are two different types of Windows tablets running two different operating systems.
    (a) A Windows tablet with an Intel-based processor running Windows 8.1 Pro
    Example: Surface Pro 3
    You can install and run traditional desktop apps (e.g. Adobe Reader XI) and new Windows Store apps ("Modern" or "Metro-style" apps).
    (b) A Windows tablet with an ARM-based processor running Windows RT 8.1
    Example: Surface 2
    You can only install and run Windows Store apps (e.g. Adobe Reader Touch) but not traditional desktop apps like Adobe Reader XI.
    In general, type (b) tablets are more affordable than type (a) tablets.  However, if you want to run Adobe Reader XI, you do need to check the technical specification of each tablet and make sure the following conditions are met.
    Processor: Intel
    Operating system:  Windows 8/8.1 or Windows 8/8.1 Pro, not RT
    Hope this helps you choose the right device for your department.  Please let us know if you have any questions about system requirements or supported features in the Adobe Reader products.

  • Best way to declare and use internal table

    Hi all,
    As per my knoledge there are various techeniques (Methods) to declare and use the internal tables.
    Please Suggest me the Best way to declaring and using internal table ( WITH EXAMPLE ).
    Please Give the reason as well how the particular method is good ?
    What are benefits of particular method ?
    Thanks in advance.
    Regards
    Raj

    Hello Raj Ahir,
    There are so many methods to declare an internal table.
    Mainly I would like to explain 2 of them mostly used.
    1. Using Work Area and
    2. With header line.
    This with header line concept is not suggestable, because, when we shift the code to oops concept.. it doesn't work... Because OOPS doesn't support the Headerline concept...
    But it all depends on the situation.
    If you are sure that your program doen't make use of the OOPs concept, you can use HEADER LINE concept. If it invols OOPs use WORK AREA concept.
    Now I'l explain these two methods with an example each...
    1. Using Work area.
    TABLES: sflight.
    DATA: it_sflight TYPE TABLE OF sflight.
    DATA: wa_sflight LIKE LINE OF it_sflight.
    SELECT *
      FROM sflight
      INTO it_sflight
      WHERE <condition>.
      LOOP AT it_sflight INTO wa_sflight.
        WRITE / wa_sflight.
      ENDLOOP.
      In this case we have to transfer data into work area wa_sflight.
    We can't access the data from the internal table direclty without work
    area.
    *<===============================================
    2. Using Header line.
      DATA: BEGIN OF it_sflight OCCURS 0,
              carrid LIKE sflight-carrid,
              connid LIKE sflight-connid,
              fldate LIKE sflight-fldate,
            END OF it_sflight.
      SELECT *
        FROM sflight
        INTO it_sflight
        WHERE <condition>.
        LOOP AT it_sflight INTO wa_sflight.
          WRITE / wa_sflight.
        ENDLOOP.
    In this case we can directly access the data from the internal table.
    Here the internal table name represents the header. for each and every
    interation the header line will get filled with new data. If you want to
    represnent the internal table body you can use it_sflight[].
    *<======================================================
    TYPES: BEGIN OF st_sflight,
             carrid LIKE sflight-carrid,
             connid LIKE sflight-connid,
             fldate LIKE sflight-fldate,
           END OF st_sflight.
    DATA: it_sflight TYPE TABLE OF st_sflight,
          wa_sflight LIKE LINE OF it_sflight.
    This is using with work area.
    DATA: it_sflight LIKE sflight OCCURS 0 WITH HEADER LINE.
    This is using header line.
    <b>REWARD THE POINTS IF IT IS HELPFUL.</b>
    Regards
    Sasidhar Reddy Matli.
    Message was edited by: Sasidhar Reddy Matli
            Sasidhar Reddy Matli

  • What is the best way to sharpen using both Lightroom_4 and Photoshop CS6?

    I want to learn the best way to sharpen various subjects.  I have Martin Evening's latest Lightroom 4 and Photoshop CS6 books, but no mention of which methods are better,  or better for which subjects/conditions.  It seems that Camera Raw and Lightroom are the same, so I'm tempted to just do it all in Lightroom with the Develop module Detail panel, and the adjustment brush for local sharpening. But can I be doing more with Photoshop CS6, or Lightroom and Photoshop together?

    Lightroom and Photoshop have different capabilities.  Photoshop power lies in layers so sharpening in Photoshop is best done using a sharpening layer which can be blended and masked into layers below.  Lightroom is more a image developer then and editor and does not have layer support.  Both Lightroom and Photoshop use Adobe RAW conversion engine to develop images.  Adobe RAW Conversion Engine has very good sharpening and noise reduction capabilities. Sharpening and Noise reduction is more or less a balancing act to much sharpening enhances noise to much noise reducing loose details and add softness.  Though both Photoshop and Lightroom use the same Adobe RAW conversion engine they use different user interfaces when they use Adobe RAW conversion engine.  Lightroom also lacks Layer support.

  • What is the best way to preserve my battery? Should I always have it connected to the charger when using it or should I use it and then recharge it?

    What is the best way to preserve my MacBook Pro battery? Should I always have it connected to the charger when using it, or should I use it and then recharge it?

    Don't worry about it:
    http://macmost.com/dont-stress-about-batteries.html
    If you want to condition it once a month, go ahead:
    http://www.apple.com/batteries/notebooks.html

  • Best way to use return values in a webservices

    Hi all,
    Scenario: We have three web services. What is the best way to do this acitivity or is it possible?
    webservice1
    webservice2
    webservice3
    Call invoke webservice1 & 2 (they need to their work do be done parallely and will return a value eg "string")and call webservices3 with input values as the returned value from webservice 1 & 2.
    Thanks,
    Shashi
    Edited by: Shashi_sr on Sep 17, 2010 1:46 PM

    Hi Shashi,
    The way to achieve your desired functionality is as follows:
    Create a flow activity, and within that flow activity, you will call web services (using an invoke activity) webservice1 and webservice2.
    After the flow activity, you will then use another invoke activity to call the 3rd webservice using the output given by the first 2 webservices.

  • HT1349 I lost/had my iPhone stolen. Tried using Find My iPhone and it's offline. It was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Tried using Find My iPhone and it's offline. It (Find my iPhone) was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Find My iPhone is good for misplaced iPhone but not good for thief and it was never meant to be.
    You chance of getting it back is very small.
    There are a few things you can try.
    Try remote lock/wipe your iPhone through Find My iPhone.
    https://www.icloud.com
    You can report to the police, cell carrier (expensive cell charges for international calls, roaming etc)
    Change all the passwords used in iPhone: Apple ID, E-mail, Bank Account ....
    http://support.apple.com/kb/HT2526

  • I have an old 30" apple cinema display (2005) I want to use as a 2nd monitor to a new iMac (2012).  I don't just want mirror image of iMac; what's the best way to do this?

    I have not bought the iMac yet but will do so very soon and just want to make sure I have what I need to get everything setup including adding the old faithful 2005 30" cinema display.  Currently I am driving the old 30" cinema display with a macbook pro also purchased 2005 and happy to say I got a lot of good miles out of this rig.  What's the best way to connect the old 30" monitor as a second display for the new generation iMacs?
    Other Questions
    I can find online new in unopened box a 2012 iMac 27" i7 with 1T Fusion Drive for $1899 no sales tax.  This seems like a pretty good deal since I notice the same is available from Apple refurbished for $100 more plus sales tax.  I know that they say the Fusion drive is a lot faster on 2013 models but some of the speed tests I reviewed online showed the 2012 i7 and 2013 i7 very close on speed for both storage and processing.  Any thoughts?
    I don't like changing batteries so I would buy a separate Apple keyboard with numeric pad since it only comes with wireless keyboard.  I'm a trackpad enthusiast having been using my macbook pro trackpad with current set up; and I am prepared to buy the Apple trackpad and replace batteries every 2 months but I would greatly prefer USB connection and rechargeable trackpact.  I know Logitech makes one so if anyone is using and knows how it compares to Apple's I'm all ears. 

    <http://support.apple.com/kb/HT5891>
    You can use USB for the Apple trackpad.
    <http://www.mobeetechnology.com/the-power-bar.html>

  • Hi, Please help. I accidentally deleted my entire Iphoto Library. I used Stellar Phoenix 4.1 and I do believe that I recovered all. I recovered to "My Passport" for Mac External HD. Files are all mixed up, best way to import back?

    Hi, a couple days ago, I was orgainizing my Iphoto libray. Then, I thought that I was emptying my trash on Iphoto. (the ones I deleted when orgainizing) after hitting are you sure button, I realized that it was 209 files with 18,000+ photos. So I frantically stopped iphoto from "saving critical information" thinking If I left it open I could copy all my files over to (I beleive somewhere in finder under pictures?) I thought, but it most have been under the applications folder. Well this is where I really messed up. So after saving every file to that section, and everything was normal again on iphoto, I decided to make space and delete them from where I put them. So instead of selecting each file indivually, I used the select ALL button. Only to find that it deleted EVERYTHING. Iphoto (the file) was apparently at the bottom of the page along with Nikon Transfer, Lightroom 2 and god knows what else. That is when I found a data recovery software program (Stellar Phoenix 4.1mac) 17 hours later it found 159GB. I read enough to know that I HAD to go and buy an external HD. (even though I already own Time Capsule, but I never hooked it up ) was confused about if I could actually use that for this matter so, I just went and bought My Passport an external HD for Mac. Plugged it in, and recovered what looks like all my files (hopefully) did also read enough that I knew NOT to use my computer after this occured.
    Now that you all know how I got into this mess, I would like to know the best way to import the files back? Ok I know this sounds easy, but all the files are scattered everywhere on the HD. Is there a way to put them back on my Mac Book Pro that would possibly put them in some kind of order? Date? Image file number? Anything? 18,000 photos to reorgainze is going to be brutal. I can reinstall Lightroom 2, if i can locate where I put the disk. And I also have CS5. Also wondering if the quality of the photo was affected?  I did get them back, so I am not complaining but any assistance would be greatly appreciated!
    Will be turning on Time Machine and hooking up Time Capsule as well. Should I also use my new HD along with capsule? Any advice on that matter would also be greatly appreciated as well!!!!!
    Thanks, Michelle

    There is an iPhoto community forum if you are at all interested:
    https://discussions.apple.com/community/ilife/iphoto

  • What is the best way to open emails and attachments without using wifi?

    For I-phone and I-pad, what is the best way to open emails and attachments without using wifi?  I turned off wifi in my settings but my boss thinks there may be another way and a better way to use something else instead of wifi.  Any help would be appreciated!  Thank you!

    Thanks!  That is a very good question you post.  My boss asked me that and I am assuming that he is having issues with using wifi wherever he is at.  My boss is the kind of person that when he asks something you look into it and ask him no questions...he's the only one asking questions!  But thank you for your response I will tell him the information you told me and hopefully that will help!

  • I would like to use one library but with multiple ipods, but because they are my kids Ipods, and they each have their own gift cards, I'd like to be able to add money to their "profiles" without them having their own account - what is the best way

    So here is my delima - I want one Ipod account - because I only want one library - since we all like the same music - but my kids, who have their own IPODS, have gift cards, who want to be able to keep track of their balance without the other child affecting the balance - meaning - each gift card should be seperate and not totalled to the single account - Beacuse the library is fairly large, having three libraries of large amounts would be a waste.  I would also like to restrict their purchased to the gift cards only and not my credit card on file.  Does this make sense?  Once this is resolved, I'm assuming they would use their own playlists to copy their favorites to each Ipod.  Or would I set up an account for each child - which I dont want to do, because I dont want them having access to my Credit Card, and only gift card balances.  With multiple accounts, I'm assuming that would also build seperate libraries?  We also have multiple computers, but I share the library to those computers -
    What is the best way?  I'd like to be able to add credit to a specific child (birthdays, etc) without the other child being able to access that credit.  For simplicity sake.
    We are new to IPODS and lack any MAC skills.
    Thoughts?

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

Maybe you are looking for