How to use ternary operator in JSF using EL expression

how to use ternary operator in JSF using EL expression

I want to use ternary operator for h:datatable columnclasses attribute like as below
<h:datatable
columnClasses="#{booleanExpression ? style1,style2 : style3,style4}"
/>
But it's not working.Is there any other alternative to do this?

Similar Messages

  • How to use regular expression to delete a character?

    Hello,
    I have a query,
    select partition_name from dba_tab_partitions where table_owner='xxx'and num_rows <>0 and table_name = 'xxx';
    P5
    P6
    P7
    P12
    P13
    P14
    P17
    P18
    P19
    P20
    P24
    How can I use regular expression in above SQL query to get result without letter 'P', like..
    5
    6
    7
    12
    13
    14
    17
    18
    19
    20
    24
    thank you

    I find answer...
    select regexp_replace(partition_name,'P','')
    thanks anyway

  • How to use Regular expression

    Hi,
    I have a file that contains this format (separated by ;(semicolon) ):
    user id;user name;email address;password;integer;list of integer(separated by ,(comma))
    below is the example data :
    abc;Abc;[email protected];password1;1;1,2
    def;Def;[email protected];password;2;1,2,3
    ghi;Ghi;[email protected];password;2;1
    my question is how to verify the valid input for each row using regular expression..? TQ

    @Op. Doing a correct validation of e-mailaddresses
    is very hard using regular expressions (doingbasic
    validation is however easy)
    http://www.regular-expressions.info/email.html
    I like the RFC 822 compliant regexp :)

  • How to use regular expressions to generate test data ?

    Hi
    Someone can help me on what I have to do in order to create test data with regular expressions ?
    For example, I want to introduce a random telephone number (XXX-XXXX) in the phone number Form Field, I want to create the phone number using regular expressions in order to test different values in each playback of the script.
    I don't want to use VB or vbscript in e-tester, I'm just trying to do this with e-load nav editor and e-load
    Thanks a lot

    Hi and thanks for your answer!, it's a great trick ^_^
    I'm doing a research on how to improve the execution speed of the scripts in e-load, so actually I'm trying to avoid the use of databanks and VB code also.
    I was expecting that maybe e-load, e-load nav editor or e-tester can automatically generate test data via Regular Expressions. Someone Knows if this is possible ?
    Also can anyone tell me what the option "Automatically Generated (complex)" means ? I think that this will help me a lot
    *you can find this option in e-load Nav Editor when you select a parameter in the tree view, then go to the  "type" listbox in the properties pane, there you will find this option and some more options like :"Databanked variable", "Custom Dynamic Value", "Function".. etc.
    Thanks again

  • How to use Airport Express as a sound output device

    Guys,
    Is there a way that I can use Airport Express as a sound output device? So, I can play all the sound on my HIFI.
    thanks in advance

    In order to listen to the non-iTunes audio streams through your Airport Express you will need to use the third party software Airfoil.
    http://www.rogueamoeba.com/airfoil/
    iFelix

  • How to use 'IN' expression for SQL in DB adapter

    Hi,
    I am working on BPEL PM 10.1.3.3 and need to configure db adapter to get multiple values for one parameter similar to " where deptid in ('1,2,3)".
    While configuring the adapter I am not able to find any such option. Also I need to use custom SQL. I have already tried SQL given below
    select deptname from dept where dept in (#deptID)
    This type of SQL generates an error. I am sure there should be a way to achieve this but donot know how to :(
    -AAg

    This is not possible. You should program on advance the amount of IN paramaters
    IN (#p1, #p2, #p3, #p4)
    or
    IN (#p1, NVL(#p2, #p1), NVL(#p3, #p1), NVL(#p4, #p1))

  • How to use Airport Express to extend range in conjunction with Belkin N Wireless Router

    I would like to know how I can extend the range of my Belkin N1 Wireless Router using the the Apple Airport Express? I saw a similar post to this question but the results talk about using this in conjunction with time capsule - I only have a Belkin router and the Airport Express.
    If so, can someone help me to find out which settings/configuration I need to set of my Router and Airport Express in order the extend the range of my network.
    Thank you in advance for your support.

    Thank you for your quick reply. Can you please expand upon how to set up the 'bridge' mode?
    I tried connecting the AE via Ethernet from the Belkin router but was not successful in being able to get any additional coverage. I feel like I am missing a vital set of instructions with set-up/configuration details.
    Thanks again.

  • How to use regular expression to find string

    hi,
    who know how to get all digits from the string "Alerts 4520 ( 227550 )  (  98 Available  )" by regular expression, thanks
    br, Andrew

    Liu,
    You can use RegEx as   
    d+
    Whether you are using CL_ABAP_REGEX class then
    report  zars.
    data: regex   type ref to cl_abap_regex,
          matcher type ref to cl_abap_matcher,
          match   type c length 1.
    create object regex exporting pattern = 'd+'
                                  ignore_case = ''.
    matcher = regex->create_matcher( text = 'Test123tes456' ).
    match = matcher->match( ).
    write match
    You can find more details regarding REGEX and POSIX examples here
    http://www.regular-expressions.info/tutorial.html

  • How to use regular expression using pattern and match concept for this scenario?

    Hi Guys,
    I have a string "We have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle"
    I need to replace the numbers based on the below condition.
    if more then 5, replace with many
    if less then 5, replace with a few
    if it is 1, replace with "only one"
    below is my code, I am missing the equating part to replace the numbers could any one of you please help me out fixing this.
    private static String REGEX="(\\d+)";
      private static String INPUT="We have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle";
      //String pattern= "(.*)(\\d+)(.*)";
      private static String REPLACE = "replace with many";
      public static void main(String[] args) {
      // Create a Pattern object
           Pattern r = Pattern.compile(REGEX);
        // Now create matcher object.
           Matcher m = r.matcher(INPUT);
           //replace the value 7 by the replace string
    //How to equate the (\\d+)  greater than a number  and use it the below code.
                  INPUT = m.replaceAll(REPLACE);
           //Print the final Result;
            System.out.println(INPUT);
    Thanks and Regards,

    Hi,
    Try the following which makes use of  "appendReplacement" instead with the "start" and "end" methods to locate and check the searched "regExp" string before dynamically setting the "replace" string:
    String regExp = "\\d+";
    String input = "We have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle";
    String replace;
    Pattern p = Pattern.compile(regExp);
    // get a matcher object
    Matcher m = p.matcher(input);
    StringBuffer sb = new StringBuffer();
    while (m.find()) {
       Integer x = Integer.valueOf(input.substring(m.start(), m.end()));
       replace = (x >= 5) ? "many" : (x == 1) ? "only one" : "few";
       m.appendReplacement(sb, replace);
    m.appendTail(sb);
    System.out.println(sb.toString());
    HTH.
    Regards,
    Rajen
    P.S: Please mark the post as answered/helpful if it resolves your issue for the benefit of all community members.

  • How to use EL expression "paramValues" ?

    I use EL ${paramValues.names} in my jsp, but the output in page is "Ljava.lang.String;@1484a8a".
    I change it to <%String names[]=${paramValues.names} ;%>, but Tomcat throws exceptions. I do not know how to solve the problem, and hope some gentleman help me? Thanks a lot.

    Thank you very much.
    However, I have a new question if the Tag class throws
    exception, how can I handle them.
    Anyhow, thank you very much.You can put the code between <c:catch > tags...
    <c:catch var="exception">
      // Some Code that can throw an exception
    </c:catch>
    <c:if test"${exception != null}">
      //Do something when the exception occurs
    </c:if>
    (or)
    <c:choose>
      <c:when test="${exception != null}">
        //Do something when the exception occurs
      </c:when>
      <c:otherwise>
        //Do soemthing when the exception doesn't occur
      </c:otherwise>
    </c:choose>

  • How to use AirPort Express over a dorm network

    Hi,
    I used my AirPort Express at home to add wireless to my existing home network and it worked well.
    However, I can't get it to work here so I'll give you every detail possible in order for you to explain me how to configure it. A million thanks in advance. (I'm giving you the specific address just to illustrate it better)
    I can only use one IP address on the network which is 192.168.1.25
    The subnet mask is 255.255.255.0
    The default getaway is 192.168.1.1
    The preferred DNS is: 195.235.113.3
    The alternate DNS is: 80.58.32.97
    Do I have to put the AirPort Express IP address as 192.168.1.25? And can I use any range of DHCP IP addresses or I must use 192.168.1.x?
    Thanks for helping me guys

    You need to use NAT in order to share the single IP address.
    If you had two (one for the AX and one for your computer) then you wouldn't need to use NAT.
    On the Internet Tab use the following.
    Connect using Ethernet
    Configure Manually
    IP address 192.168.1.25
    Subnet mask is 255.255.255.0
    Router Address 192.168.1.1
    DNS 195.235.113.3
    80.58.32.97
    On the Network Tab
    Check Distribute IP addresses
    Share a single IP address using DHCP and NAT
    I would use 10.0.1.x addressing
    On the Airport Tab
    Change Wireless Security
    Use WPA
    Use a password like this
    45fs6ue6v1d5fg7d55dsg555
    You may need to add the DNS addresses to the clients in order to access the internet.
    This may not work, and I would in fact advise talking to your campus network people instead.
    iFelix

  • Anyone know how to use airport express to bring internet to a powermac G5 model power PC G5 using airport express?

    I bought an airport express and was told that I can configure it, and then move it to the G5 and connect it with the ethernet cable giving the G5 access to the network. But the laptop I first configure it to loses the connection once I remove the ethernet cable between the airport express and the modem. When I connect the G5 to the airport express nothing happens. Any ideas?

    Hello Ed,
    Is this how you set it up?
    http://www.apple.com/airport-express/
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    10.4 instructions...
    Is that Interface dragged to the top of Network>Show:>Network Port Configurations.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.

  • How to use AP Express while my TC is being repaired

    I have a Time Capsule (Mk 1) network with an Apple Express MB321LL/A extension.  But now the Time Capsule 500GB HD has failed and I need to take it to then nearest Apple Store (50 miles away) for HD replacement.  When I disconnect Time Capsule, I lose the network.  What do I have to do to be able to run a network from the Apple Express alone while the TC is in the shop?

    I suppose that means that I'll be setting up a new network with it's own name and PW.
    If you review my post, you will see that I said that you can assign the same wireless network name and password that you used before if you wish.  Or, you could assign a new name and password if you wish.
    And when I get the TC back, will it have forgotten the original network
    That depends on what repairs are needed to your TC. If only the hard drive is replaced, then the TC will remember its previous settings. If other repairs are involved, you should expect to have to reconfigure the TC again, just as you did when it was new.

  • How to use airport express wired and wireless at the same time

    Hi,
    I currently have FiOS with Verizon, they ran a coax cable to the Verizon router. I didn't ask them to switch to CAT6 cable since I have an airport extreme base station and an airport express base station (both are the newest generation). I ran a CAT6 cable from the Verizon FiOS router to my AEBS (extreme) to make it the default wireless router. The Verizon router and extreme are in one room. Now, the Airport express is in my living. I'd like to extend the wireless network from the extreme. However, I can't seem to find a way to use both wired and wireless from the airport express at the same time. It's now either via wired, or wiresless. So is there a way to get both work?

    Can you tell us if you used Apple's instructions for a "roaming" network?
    http://support.apple.com/kb/HT4260
    Although the instructions picture a 2nd AirPort Extreme in the illustrations, the setup instructions would be exactly the same for an AirPort Express.

  • How to use Aiport Express with Verizon FIOS Actiontec MI424WR

    The Airport Express won't connect to the Actiontec MI424WR FiOS router when it's set to use WPA2 encryption.
    I figured this out after a couple of hours of resetting the Airport Express and Googling the issue.
    It's annoying to have to "downgrade" to WPA but other than leaving the network unprotected, that's the only way to make them work together.
    So on the Actiontec, use WPA TKIP & AES (make sure both TKIP & AES are selected as AES alone won't work either) encryption.
    On the Airport Express pick WPA/ WPA2 Personal.
    The Pass-Phrase should obviously be the same.
    I hope this helps someone by showing-up in Google searches for people.

    Thanks for your post.
    Apple does note that the AirPort Express cannot join "other" networks using WPA2, but it's buried in the fine print of footnote #3 on the spec sheet, so most folks are going to miss that bit of information.

Maybe you are looking for

  • How do I install a New hard drive and transfer my data?

    How do I format and make a bootable drive with all my data and then install it in my late 2008 MacBook Pro ?

  • Where to see the log files of runtime

    For my installation, the locations mentioned in the documentation here http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/admin_guide/index.html?t=modules/logging/c_Head_Logging.html does not contain any log files. Where can i find more informat

  • Changing file information for music

    I have some mp3's on my computer, and I've noticed that if I right click them and select "Get Info", in the "More Info" section there is information like album name, genre, authors, title, and so forth. My question is, how do I change this informatio

  • EU Sales List

    Dears, I have the problem that documents of specific reporting countries do not appear on the EU sales list. Allthough the related tax codes are flaged with the EU code "1" as well as the reportig country. Thanks for your help Regards

  • Spaces keyboard shortcut no longer works

    I restarted my computer because expose/dashboard stopped working. After the restart, they were fine, but there was a new problem. The shortcut to view all spaces (F8 on my computer) will not work no matter what key I assign it to...though it works if