Need help , simple question

how to implement "if else "operation in JSF pages.
Because i want to show different sub pages in the same JSF page depends on different cases. Help me please.

The simplest way is using the rendered attribute such as:
<h:panelGrid rendered="#{foo.bar}" >
</h:panelGrid>
<h:panelGrid rendered="#{! foo.bar}" >
</h:panelGrid>
Actually, you can use jstl tags, but you have to provide the ids for each inner components.
Sergey : http://jsfTutorials.net

Similar Messages

  • Need help mac question

    i need help
    i am going to buy the new macbook with
    mac osx v10.5 leopard
    (1)can i update the mac to mac osx v10.5.5 without buying the mac osx v10.5.5 cd
    (2)i want to know if the the games guitar hero call of duty and medal of honor will work on my macbook ihave
    NVIDIA GeForce 9400M graphics
    320gb hard drive
    guitar hero 3+aerosmith:
    System Requirements
    Mac OS X v10.4.11 or v10.5.4 or later
    2GHz or faster Intel Core 2 Duo processor (2.33GHz recommended); does not support PowerPC processors
    1GB of RAM (2GB recommended)
    7.1GB free hard-disk space + 1GB swap file
    Video card: ATI Radeon X1600 or nVidia GeForce 7300
    Video memory (VRAM): 128MB (256MB recommended)
    DVD-ROM drive
    Internet or LAN connection (for Internet or multiplayer gaming)
    Macintosh mouse and keyboard
    Supported video cards: NVIDIA GeForce 7300, 7600, 8600, 8800; NVIDIA Quadro FX 4500; ATI Radeon X1600, X1900, HD 2400, HD 2600
    call of duty 4:
    System Requirements
    Mac OS v10.5.4 or later
    2Ghz or faster Intel Core 2 Duo processor
    1GB of RAM
    9GB free hard-disk space
    ATI Radeon X1600 or NVIDIA GeForce FX7300 video card
    128MB of VRAM
    DVD drive
    Mouse and keyboard
    Broadband or LAN connection for multiplayer mode
    Supported video cards: ATI Radeon X1600, X1900; Radeon HD 2400, 2600; NVIDIA GeForce 7300, 7600, 7800, 8600, 8800; GeForce Quadro FX 4500
    medal of honor war chest:
    System Requirements
    Operating system: Mac OS X v10.2.8 or later
    CPU processor: PowerPC G4/G5 or later
    CPU speed: 800Mhz minimum, 1Ghz or faster recommended
    Memory: 256MB recommended
    Hard disk Space: 2.6GB free disk space
    Video card (ATI): ATI Radeon 7500 or better
    Video card (NVidia): GeForce2 MX or better
    Video memory (VRAM): 32 MB or higher
    Media required: DVD drive for installation and play

    The answer to (1) is yes. for OSX, there hasn't yet been a full-number release (they're all v10). Point releases come out every couple years or so, and usually cost about $130. So if you had 10.4 and wanted to upgrade to 10.5, you'd have to buy it. But updated numbers after the second point are free. So if you have 10.5, then 10.5.5 is a free download.
    Question (2) I'm less sure about, but I would guess that all of those games would probably work. They don't list the particular video card in the Macbook as "Supported", but it's newer than the cards listed. All the other requirements are met.
    From the requirements listed, I would guess that "medal of honor war chest" is a PPC game, which means it will probably run on the Intel Macbook, but under emulation. I think usually the newer Intels are fast enough that running PPC stuff under emulation should be fine, but I don't do much of that so I can't speak from experience.
    I sometimes install Windows on a second partition on my Macs so I can dual boot, just for games. So there's that option too.

  • Need help with question about indesign 2014...

    I am using indesign 6 on a pc - simple question: when I update to indesign 2014, will the update keep all of my previous and current work?

    Yes. Your documents will be unaffected by any new versions you install unless you open them in the new version and save them with the same name, then you will lose the ability to open them again in the old version.

  • Need help  - Ethernet question for DSL

    Hi, hoping someone can help me. We are looking into getting Verizon DSL internet, and don't know if we have the Ethernet specifications. We have a flat screen 17" iMac 1Ghz, Dh said he knows we have an ethernet connection but doesn't know about the card. What Verizon says we need is a "10-Base-T Ethernet Network Interface Card (NIC)". How would I find out if we have this? (We are not eligible for the 24hr online chat support and I don't want to pay $49+ for one question)! Thanks,
    Erica

    Tom & Erica,
    You should have very little trouble connecting with Verizon. I have multiple Verizon accounts and they have always been very helpful in getting you set up, even if they need to come out to test/adjust the line-in to your home. You will get a package from them which will include DSL modem, filters, cables and so on.
    Don't hesitate to call them for help in setting it up - BUT, tell them at your first opportunity that you are running on a Mac. They will switch you immediately to a Mac person who can walk you thru just about any OS configuration.
    And no I don't work for Verizon...Just Kidding
    GOOD LUCK
    John
    Oh, of course you will want to call Verizon and have them test the line prior to/or at the time of your order. They can do that while you are on the line with them and at no charge.

  • Beginner needs help, simple do-while

    Need some help whit this code, how can I get this do-while loop to work?
    I use a simple gui where a decimal number is been read in, and some calculations beeing done.
    I want the user to decide if he/she wants to exit or not.
    But I dont now how I shall use it when using the boolean type.
    Tanks in advance.
    I'm sorry about my bad english!
    import mittBibliotek.*;
    class nettopris{
         static final double moms = 1.24;
         static final double rabatt = .85;
         public static void main (String[] args){
              do{
                   JavabokGUI gui = new JavabokGUI("Legger til moms");
                   gui.show();
                   double pris = gui.lesDesimaltall("","Skriv inn nettopris: ");
                   if (pris>2000){
                        double rabattPris=bergenNypris(pris);
                        double brutto = beregnBruttopris(rabattPris);
                        double rabattbel?p= beregnRabbattBel?p(pris,rabattPris);
                        gui.skrivResultater("Nettopris - 15% rabatt : " +rabattPris);
                        gui.skrivResultater("Prisen inkl. mva : " +brutto);
                        gui.skrivResultater("Rabatt bel?pet er : " +rabattbel?p);
                        gui.skrivResultater("Mva bel?pet er : "+beregnMvabel?p(brutto,rabattPris));
                   }else{
                        double brutto= beregnBruttopris(pris);
                        double avrundetPris= avrunding(brutto);
                        gui.skrivResultater("Prisen inkl mva (avrundet): " +avrundetPris);
                        gui.skrivResultater("Mva bel?pet er (avrundet): " +beregnMvabel?p(avrundetPris,pris));
                   }// end if else
                   boolean svar = gui.jaSvar("","Ny beregning? ");// GUI  yes/no.Where yes is true.If true looping until false
    }while  (svar == true) ;// error: cannot resolve symbol, variabel svar
         }// main
         static double beregnBruttopris(double prisen){
              double brutto= prisen * moms;
              return brutto;
         }//Brutto
         static double avrunding(double bruttopris){
              int avrundet= (int) (bruttopris + 0.5);
              return avrundet;
         }// Avrundet
         static double bergenNypris(double nyprisen){
              nyprisen = nyprisen * rabatt;
              return nyprisen;
         }// Nyprisen
         static double beregnRabbattBel?p(double pris, double rabatt){
              double rabbel?p = pris - rabatt;
              return rabbel?p;
         }// Rabatt bel?p
         static double beregnMvabel?p(double brutton, double rabattPrisen){
              double mvaBel?p = brutton - rabattPrisen;
              return mvaBel?p;
         }// Mvabel?p
    } // class nettopris

    If your only problem is with the variable svar, just put a line:
    boolean svar = true;before the "do" line and change the line:
    boolean svar = gui.jaSvar("","Ny beregning? ");to:
    svar = gui.jaSvar("","Ny beregning? ");Your problem has to do with variable scope. Since you declare the variable svar inside the braces {} of the do loop, it doesn't exist for the while test.

  • Need help simple download

    ok im thinking about buying or avids pro tools or adobes premiere pro.
    im having trouble downloading the creative cloud it starts downloading and then says that i need to connect to the internet.
    i also tried to download it from direct links following the instruction but also there im having trouble is there a simple way to download premiere, i want to press download and that everything would work dont want something complicated. thanks

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • Need help - several questions

    The main problem: I have a computer that needs wireless connectivity. I do not want to use a wireless card, for a couple of reasons. One is sort of made obvious below, and the other is that I want to use the pci slot for something else anyway.
    The secondary, tertiary, etc. problem:
    1. I am using a wireless N router. I have been checking this site on occasion to see how I can improve its performance, and what I've done is make sure the firmware is up to date (but that was as of a couple of months ago), and make sure the antennae are bent/turned at different directions so they don't interfere with one another. I've also tried some of the modifications regarding beacon interval et al. (did nothing, so it's all back to defaults now, except it insists on only using channel 11 and I can't remember if it did that before) The problem is that I often lose my connection to the router. It's worse with one specific computer, which I'll explain about in a sec, but the problem also exists to a lesser extent with a powerbook.
    2. The powerbook is able to connect and maintain a decent connection only when the antennae on the router are set up such that they don't cancel each other out. It gets a poor signal when in the same room as the router, although I have read that this may be by design. We've got the router in the basement and use the laptop mostly in other rooms, so this isn't too big of a deal, but still, our B router outperforms the N router when it comes to the powerbook.
    3. The computer that has the worst problem is a desktop PC that is used for gaming and video editing. I move large files around with this machine, and I've found that very often, the wireless card ends up crashing. I've used both a linksys wireless-N card and a d-link one, and both have given me trouble, in two different computers that were used for the same purposes. In fact, I thought I had broken the linksys card because it started causing blue screens of death (this is why I replaced it with a d-link). I've noticed one correlation: the wireless card is more likely (although not guaranteed) to crash if I use the microwave or if I've moved around several gigabytes' worth of files (*especially* if I try to upload and download at the same time). Yes, I know that microwaves are bad for wireless networks, but our B cards and routers never had a problem with it (we had robustness settings turned on). But now, I seem to have roasted the d-link card, as well. It's causing hardlocks and the system can't always boot up. The card randomly stops responding. What I want to know is if I can actually burn out cards this way. I'm thinking that maybe they try to use too much power to overcome both the microwave's interference and the utter crappiness of the router. After the card crashed again today, I immediately powered down and pulled the card out, and it was burning hot. I had noticed the same with the linksys card before, after it started blue screening... (and I'm 100% certain it was the linksys card causing the BSODs as I analyzed the core dump with one of Microsoft's tools, and what came up was the broadcom driver)
    3. I've decided to buy a wireless bridge and hook it up to this computer's built-in ethernet port. What I want to know is: Will I burn out the bridge? Or does it stand a better chance? Also, can a bridge work this way, or does it need to be hooked up to a router? (if so, no prob - I have a spare router) The bridge I've ordered is the Linksys one (not sure but I think there may only be one), and it runs at G speeds. Will this be an issue?
    I also want to know if I can cause any damage to other components in my system what with two wireless cards having burned out. The first card started giving problems in one computer, but then when I got the new one, I transferred it over to the new computer, out of curiosity to see if it would work. It didn't, so that is when I got the D-link. The D-link worked fine for a little while, but now I seem to be headed right down the same path I headed down with the Linksys, with the same initial hardlocking symptoms (I bet if I wait long enough, the D-link will start blue screening too).
    Last but not least, I'm ripping my hair out over this connectivity problem. I'm thinking of firing up my old B router, despite its lack of decent security, and going with that. At least that router works perfectly, even at 7 years of age. I may still use this stupidly expensive N router, but only as a router (not a wireless access point). I apologize for sounding frustrated, but I consider myself a bit of a seasoned wireless network user, having successfully set up and used a wireless-B network for years. It was only after we got this wireless-N equipment that everything made me feel like a total noob again.
    Can anyone suggest *anything* that might help, now that you know the background?
    Oh and one more thing, before someone asks: yes, we have wireless phones. They run at 5ghz.

    1) Here's the thing. To the best of my knowledge, while Premiere can successfully ingest several kinds of color space videos, most of it's processing is done only in RGB mode. I found this out when some colors from DV source changed on me as soon as I added most any effect, whether or not I changed any of that effect's parameters. Simply adding the effect changed the color space Premiere was working in from the native YUV of DV to RGB. That change in color space caused the color shift, and nothing I did would bring it back.
    The point here is that if any affects are added to your video, Premiere has probably already shifted to the RGB color space, so you may as well keep it that way for export, rather than shifting it back to YUV causing further degradation.
    2) Leave it off.
    3) For your source, you can probably just leave it at 8.
    4) Turn off Optimize Stills. That setting can cause issues.
    5) No. Interleave is just combining the video and audio.
    6) Dude, this is Video 101 stuff. How does someone working with your source not know this already?

  • Need help with question about Microsoft Excel?

    I have recently begun using Microsoft Office for Mac. My question is related to the Excel program. I have used this for years on a PC where when the program opens, it shows a Workbook with a single page. However, on the Mac, when it opens, it shows many pages, the first going from column A to G, the second going from H to N, etc. and each page with the text "Click to add data". This continues forever. I would like to have just one sheet as on the PC. I have not found a way to limit this view to a single page. I have looked in the Preferences and in "View", but nothing seems to change the configuration. Any suggestions?
    Thanks

    My zoom only shows the magnification and does not give a "one page" option. However, I did find an icon that I loaded into the menu bar which gives the one page view. This may be due to the version 2004 that I am using.
    I also find that if I want to change the number of columns and rows, I change the size of each. I assume this is correct.
    Thanks for the help. This is slightly different that the PC version, but I am sure over time, there will be no problem.

  • HT5312 NEED HELP SECURITY QUESTION

    i dont remember my security question answer. now i'm block how can i reset my security quest

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (95694)

  • Need help with question about upgrading phone

    Okay, so, here's what's going on:
    I currently have a Samsung Galaxy Nexus on Verizon.
    It's dying/freezing/battery life is terrible. Looking to upgrade.
    I don't have an upgrade available for my line, but my wife does.
    She's giving me permission to use hers, which a Verizon rep told me is fine.
    I want to use her upgrade to get a Samsung Galaxy Note II.
    The best price (subsidized) right now is on Dell's site ($169.99), which I could price-match at Best Buy (employee confirmed this). However, it's still a little high for me.
    I could get a better price by adding a line with this device - shave off $40 ($129.99).
    So here's my question: is there any way to add a line, get some immediate savings on the purchase, then immediately cancel the line (maybe only taking a little bit of a hit, getting most of the cost reimbursed for not using it)? In other words, how can I get this phone as cheap as possible?
    Thanks for your suggestions!

    If you add a line as you suggest, that new line will come with a 2 year (24 month) contract for service that will have a $350 Early Termination Fee (ETF) if you cancel the line immediately like you indicated.  There goes the thought of getting the Note II for the cheaper than the upgrade price.
    I recommend going with the price match upgrade @ $169.99 at Best Buy.  I can confirm they do the price match.  I bought my last phone from Best Buy and they matched the Radio Shack price I brought them and  I had a good experience.
    Good luck.

  • Please help, simple question about Smart Playlists and Live Updating

    PLEASE for some reason I've never gotten an answer on this.
    I have a Smart Playlist called "Recently Played" with Live Updating. No matter how I set the parameters, the most recently played *song will ALWAYS appear on the bottom of the list when using my iPhone on the go.* I bolded that because I want you to be aware I'm not talking about on iTunes - I'm aware you can change how the list is viewed on iTunes.
    When using your iPod/iPhone on the fly and Live Updating is enabled, is there any way to make the most recently played song appear at the very top???
    Thanks so much

    Haven't seen that problem before but try the following: in iTunes, right-click the playlist name and enable the option "Copy to Play Order." Then sync.
    The normal use of "Copy to Play Order" when you have the playlist displayed in iTunes in some sort order, but you want it to display in the iPod in shuffled order (as it will actually play). Different problem than you are observing, but the same thing "might" help.... Let us know.

  • Need Help -- multi-question

    Wow, this software is incredibly difficult to use -- but I need it to manage access for my daughter.
    1) I'm not sure how I did this, but I can access HND only through Network Magic.  I paid for my service and cannot find how to launch HND and/or how to install without installing the **bleep** anti-virus software.  All I want is HND
    2) How do I set up a rule so I allow my daughter access from 7 am to 9 pm on weekdays and 7 am to 10:30 on weekends? Right now, I have one rule and and only one time window.  I have RTFM and I can't find out how to do this.  I'm also an "expert" at this and not a newb, so I trolled the internet sites, RTFM, check the support and nothing.
    3) How do I change the email registered to HMD.  I originally set it up through my wife's email account, but need to swtich it back as my daugther has access to my wife's email and keeps changing the settings.
    4) How to I get **bleep** reports.  I've set this up several times and no reports are coming in.
    Thank you in advance!! And, sorry for my frustration as I don't think it's normal to spend 12 hours figuring this out.

    " the fact that you do'nt have a recipt is just the exuse they need to slam the door in your face"
    This statement is complete garbage. Of course your iPod will be under warranty. Either fill out the service request, or take it to an Apple store.

  • Need help AS3 question

    I am programming a music game where there are five movieclips (acting as buttons) representing five notes of a piano.  When the user clicks on each one, they play a note.  I would like to know how I can program it so that if the user clicks a specific five note sequence, it will trigger an animated movieclip in the timeline.
    Example:
    Note_1 + Note_4 + Note_2 + Note_5 + Note_3 = Animation_movie
    I am using Flash CS4 and Actionscript 3.  I've searched everywhere for a posting on this and couldn't find it anywhere.  Any help would be greatly appreciated!

    I tried using the array command, I feel like I'm getting closer, but I still can't get it to work.  This is what I have so far
    ActionScript Code:
    var noteArray:Array = new Array(note05_mc, note01_mc, note03_mc, note04_mc, note02_mc);
    var buttonArray:Array = new Array();
    stage.addEventListener(MouseEvent.CLICK,musicsequence);
    function musicsequence(event:MouseEvent):void {
        if (noteArray.toString().indexOf(event.toString()) != -1) {
            buttonArray.push(event);
            if (buttonArray.toString().indexOf(noteArray.toString()) != -1) {
                // (This is where my event would go)
            trace("Hey, it works!");
            buttonArray = new Array();
    } else {       
            buttonArray = new Array();

  • I need help, n00bie question inside

    I need to break up any shape3d into triangles in such manner that once I assemble them all together via TriangleArray, I get the original shape...
    Thx

    Got a working link dude?
    Anyways since I can turn shapes into TriangleStripArray (Casting), and then extract the info about the strips and vertex count, I'm on my way to code my own function to get individual triangles.
    I'm gonna use this for my next dynamic shadows demo which will feature casting on any planes in the scene :)
    Thx

  • Need help stupid question

    When I type any letter on my keyboard that has a tiny character on it also, I can't get the capital version when I hold down the shift key. Instead I get the little character. If I hit shift "p" I get an asterisk because there is a tiny little asterisk below the p. Is there a way to change this?

    No matter what, without the *num lock* lit up, you should not be experiencing those results. Notice how that set of keys resembles a 10-key keypad, like an extended keyboard, hence the purpose of F6.
    Have you installed any third party apps that do keyboard mapping?
    Joe

Maybe you are looking for

  • How to add three columns under a column of Column Structure in BEx Query ??

    Hi all,     I have created a Structure for Taxes (with 10 rows) under Rows and another Structure for Company under Columns and it has 3 columns like Company A, B & C. Now I want to have three columns (Actual, Forecast & Total) under each company A, B

  • Xml in a clob

    I'm currently storing xml in a clob datatype using Intermedia Text. The main purpose for this is because the information is variable, sometimes 5 fields sometimes 10. My problem is that I can't run queries against the data because the sections (index

  • Display chinese character HTML in iPS3sp3

    Hi there, I am using iPS3sp3 and I modified it so that JSP can display chinese character correctly. But somehow I still can not display the chinese character in normal HTML.For instance, I put chinese character in Ldap.properties file but when user g

  • Passing Object types using JDBC

    I need to pass Oracle user-defined object types in and out of PL/SQL stored procedures. Is this possible??? Thanks null

  • Simple questions about proxy

    Hi, all I need to retrieve data in system_provider from system_consumer. So I model a service interface load_data in system_PI. Question1, as mentioned in training document. I should run transaction sproxy to create proxy and implement the interface