Concat strings for use with ternay operator

Hi,
depending on a boolean i want to output an welcome message for a user logged in or "login failed".
problem: ternary operator only acceps one expression for each argument.
so, this is ok:
<t:outputText  value="#{login.loggedIn ? bundle.loginWelcome  : bundle.loginFailed}" />but i want to output the username also, like:
<t:outputText  value="#{login.loggedIn ? bundle.loginWelcome login.user : bundle.loginFailed}" />but this throws this:
ERROR - Servlet.service() for servlet jsp threw exception
javax.faces.el.ReferenceSyntaxException: Invalid expression: '${login.loggedIn ? (bundle.loginWelcome login.username) : bundle.loginFailed}'
Caused by: org.apache.commons.el.parser.ParseException: Encountered "? ( bundle . loginWelcome login" at line 1, column 18.
Was expecting one of:
...is there a way to concat strings in EL?
thx

Why don't you create a method on the managed bean that do that for you?

Similar Messages

  • DialPlan string for SPA122 with @sip-operator;uid/usr= ; pwd=

    Hello!
    Look this document:
    ADMINISTRATION
    GUIDE
    Cisco SPA100 Series Phone Adapters
    SPA112 and SPA122
    http://www.cisco.com/en/US/docs/voice_ip_comm/csbpvga/spa100-200/admin_guide/SPA100_AG_OL-25117.pdf
    Pages 95-96:
    Example 1:
    *1xxxxxxxxxx<:@fwdnat.pulver.com:5082;uid=jsmith;pwd=xy z
    Example 2:
    *1xxxxxxxxxx<:@fwd.pulver.com;nat;uid=jsmith;pwd=xyz
    At first, I think, after that must be >
    But it's not work.
    Are You sure that SPA122 with actual soft/firmware - works correctly with @net uid= pwd= in DialPlan?
    Read this http://www.cisco.com/en/US/docs/voice_ip_comm/csbpvga/spa100-200/admin_guide/spa232d_ag_78-20305.pdf
    ADMINISTRATION
    GUIDE
    Cisco SPA232D Mobility Enhanced Phone Adapter
    Pages 116,207.
    Examples like before but also:
    <8,:1408>xxxxxxx<:@pstn.cisco.com:5061;usr=joe;pwd=joe_pwd;nat>
    Here You see not only uid but also usr.
    In other pdf for family like SPA122 device You also see uid or usr.
    So uid= or usr= for SPA122?
    Possible there must be ="..." like in some examples for some ATA-family manuals? Or without " " ?
    So What string with @ and pwd in DialPlan is right for SPA122?
    Or when You made firmware were it works correctly like engaged in documentation for SPA122?

    Hi Name,
    Thanks for letting us know about the errors in the ATA guides. The SPA1xx and SPA232D share the same/similar dialplan rules as the PAP2T, SPA2102, and SPA3012. It looks like an example was added that was not properly reviewed so I'll file a CDETS for each document and get the dialplan strings corrected.
    A better description of the dialplan starts on page 43 in the Digit Sequences section of the http://www.cisco.com/en/US/docs/voice_ip_comm/csbpvga/spa100-200/admin_guide/SPA100_AG_OL-25117.pdf guide.
    To address the issues here:
    SPA112 and SPA122
    http://www.cisco.com/en/US/docs/voice_ip_comm/csbpvga/spa100-200/admin_guide/SPA100_AG_OL-25117.pdf
    Pages 95-96:
    Example 1:
    *1xxxxxxxxxx<:@fwdnat.pulver.com:5082;uid=jsmith;pwd=xy z
    Example 2:
    *1xxxxxxxxxx<:@fwd.pulver.com;nat;uid=jsmith;pwd=xyz
       Should be:
    Example 1:
    [comment: I believe that in the example, the author is trying to show that ";" is used as a delimeter between sequence elements but omitted to show the parenthesis around the dialplan and only showed one sequence so no "|" (pipe symbol) is shown. The author also appears to have forgotten the closing angle bracket ">" around the substitution sequence so I've corrected below.
    See page 43 of the SPA1xx admin guide that you'd linked to for more details.]
    (*1xxxxxxxxxx<:@fwdnat.pulver.com:5082;uid=jsmith;pwd=xyz>)  [note: space is removed between y and z in xyz in the password]
    The example is trying to show that if the user dials any number starting with "*", followed by "1" and any 10 other numbers, the entire dialed sequence is replaced with @fwdnat.pulver.com:5082;uid=jsmith;pwd=xyz [note: I'll test this and report back later]
    Example 2:
    similar comments and corrections as above
    Thanks,
    Patrick---

  • Will the iPhone 5c be abel for use with a Norvegian operator if I buy the phone in the US?

    Will the iPhone 5c be abel for use with a Norvegian operator if I buy the phone in the US? Im going on a vacation to USA in a few days, and i dont know when the phone will come to norway, so if it's possible, i would like to buy it in the US! Is it then possible for me to use it in Norway when i get back with a Norvegian operator?

    Jules Francis,
    The model numbers are different and each is carrier locked to their respective carriers.
    Even if they were not, the £269 price in the UK includes VAT. The price without VAT is £228.94
    The price in the U.S. Store does not include sales tax. Last time I checked sales tax in New York City is 8.375%.
    If you compare the pre-tax prices the difference is approximately £24. The rest of the difference is taxes.
    Hope this helps,
    Nathan C.

  • Unlocked old iPhone 3GS for use with pay as you go sim in the UK on vacation. O2 sim works while ph plugged in.  Unplugged, works short time and crashes.  Sometimes won't even re-boot.  Software on phone up to date as far as 3GS goes.

    I brought an old IPhone 3GS to the UK on vacation for use with sim card.  I had the phone unlocked with approval and instructions from ATT.  Store in the UK recommended O2 pay as you go sim which works as long as the phone remains plugged into the wall.  Once unplugged, it will work for a short time and then always crashes.  Sometimes it will re-boot and crash again and sometimes it will not re-boot at all.  One store told me to sync with itunes which I did on my Mac Book.  I don't know if the sim is defective or if the software of the 3GS is just not compatible with the sim when on the battery.  I have updated the software on the phone as far as it will go.  Any suggestions?  Maybe the phone is too old to use with the latest pay as you go sim cards.  I am disappointed that this phone has not been reliable as a pay as you go and I have had to purchase a UK phone here in order to have a reliable phone.

    There is nothing you can do. You bought an illegally unlocked phone off Ebay. A lot of sellers there will tell you it is unlocked but the first time you try to update the operating system it will put the lock back on to the carrier the phone was originally locked to. Sorry but unless the carrier it was locked to will unlock the phone I am afraid you have a very expensive paper weight now. You should have bought it from a reputable dealer instead of ebay.

  • How does one install non-English character sets for use with the "find" function in Acrabat Pro 11?

    I have pdf files in European languages and want to be able to enter non-English characters in the "find" function. How does one install other character sets for use with Acrobat Pro XI?

    Have you tried applying the update by going to Help>Updates within Photoshop Lightroom?  The update should be using the same licensing?  Did you perhaps customize the installation location?  Finally which operating system are you using?

  • What is an easy web-page creation program for use with MacBook Pro?

    Can anyone suggest an easy web-page creation program for use with MacBook Pro?  I have used FrontPage with my PC, but am changing to a MacBook Pro.

    It largely depends on your skill level. Do you want to write web page code, or do you want to just design something and have it turn into a web page automatically?
    If you are more of a designer, try these:
    RapidWeaver
    Freeway Pro
    Muse
    If you want to write web page code, try these:
    Coda
    BBEdit
    Dreamweaver
    If you really don't want to write the code and want the best experience for your viewers, and you want to spend the least amount of time on it, my recommendation is:
    No program at all.
    Instead, sign up with a web site company like:
    WordPress.com (hosted by them) or WordPress.org (hosted on your server)
    Squarespace
    Wix
    The reason is that these companies have fully operational, nicely designed web site templates that you just fill in with your words and pictures, and they are ready to go. They also give you these benefits:
    Already designed to the latest web standards
    Already designed to resist hackers
    Already designed to work on all browsers
    Already designed to automatically adjust the page for readability on desktop, laptop, tablet, and smartphone screen sizes
    Already designed for accessibility
    Already designed for Search Engine Optimization so that your page will be found on Google
    Already designed with social media links built in if you want
    It is not like the old days where you build a site in Front Page and you assume it will only be seen on a desktop computer. If you build it yourself with a web page program, do you have the knowledge to make a site that works on all of the different web browsers and mobile devices, and is friendly to search engines and social media? If you don't have those skills, working with a website company can be a lot better, faster, and more reliable than trying to hammer all of that out yourself using code in some app.

  • Syntacx for xslt with relational operator

    hi
    can any one tell me what is the exact syntax for using logical AND operator with <xsl:if>
    i am using like this:
    <xsl:if $test="xyz='abc' & ct>1>
    i am getting errors.
    please help me with the exact one
    thanks

    Amazingly, the logical AND operator in XPath is "and". Like this:<xsl:if $test="xyz='abc' and ct&gt;1>I will leave you to guess what the logical OR operator is.

  • [Oracle JDBC Driver]This driver is locked for use with embedded application

    Hi
    I installed Sun Java Studio Enterprise 8, and am trying to connect to my Oracle database using the attached tutorial code.
    The code compiles fine, but I get the following error whenever I run the file: [Oracle JDBC Driver]This driver is locked for use with embedded application
    I don't understand what is happening.
    Using the Runtime navigation panel on the upper left of the IDE screen, I can right-click and connect to the database, and navigate database files, using the Oracle JDBC Driver that came with JSE8.
    Name: Oracle Driver
    Driver: com.sun.sql.jdbc.oracle.OracleDriver
    Database URL: jdbc:sun:oracle://JAZZPUP:1521;SID=REPO
    If the driver is installed, and can be used to connect to a database by right-clicking on the database definition in the Runtime panel, why can't I connect to it just using java code in the IDE. I would expect both methods to work or to fail, not one of each using the same IDE.
    Many thanks and take care,
    Shayne
    import java.sql.*;
    public class CreateCoffees {
    public static void main(String args[]) {
    //String url = "jdbc:mySubprotocol:myDataSource";
    String url = "jdbc:sun:oracle://JAZZPUP:1521;SID=REPO";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    //Class.forName("myDriver.ClassName");
    Class.forName("com.sun.sql.jdbc.oracle.OracleDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    //con = DriverManager.getConnection(url, "myLogin", "myPassword");
    con = DriverManager.getConnection(url, "login", "password");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    } //end class CreateCoffees
    ---

    There are two similar threads:
    http://swforum.sun.com/jive/thread.jspa?threadID=61327&tstart=0
    http://swforum.sun.com/jive/thread.jspa?threadID=51057&messageID=188210
    To summarize - the DataDirectDriver that is shipped with the IDE seems to be locked to be used inside the IDE only because of some licensing issues etc..
    That's weird, I agree. I will raise a question on reasons for such a behavior.
    The solution would be to use Oracle's own driver, that is distributed at no charge from their web site - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    HTH,
    Kirill

  • Alternative to WSUS for use with NAC

    I'm looking for thoughts on alternatives to WSUS for use with Cisco Network Admission Control.  I'm primarily looking for increased speed.  Thanks.

    I don't see the value in getting that particular time on the first day of the current monthYou're completely right about that.
    That makes me assume on some autopilot that we have another case of YASTDCOVV or YACOSTADISC
    +'Yet Another String To Date Comparison Or Vice Versa' or 'Yet Another Case Of Storing Time And Date In Separate Columns'+
    However, three other people interpreted the request the same yet different than I did so my assumption is probably wrong Only Evaleah can tell....
    Edited by: hoek on Oct 21, 2009 8:54 PM OP has a name, you blunt Hoek, so use it!

  • HT204149 What is the maximum resolution available for use with the Apple Mini DisplayPort to Dual-Link DVI adapter?

    What is the maximum resolution available for use with the Apple Mini DisplayPort to Dual-Link DVI adapter?

    Hey guys,
    I found out an answer by myself...
    The missing link : the MacBook Pro needs to be powered... as in you need to plug the charger in...
    In conclusion, you simply plug everything, turn on the MacBook Pro, close the lid, and there you go !

  • How do I do this to use OVerdrive media on deviceThe Apple device must be formatted for use with Microsoft Windows.  The iTunes setting 'Manually manage music-' must be enabled for the device before you can complete the transfer.

    I cannot make these directions work
    I downloaded media on Overdrive MEdia on my PC
    I have the overdrive media ap on my I pod touch 4g
    this media is suppossed to be compatible w/I pd touch
    Notes on Transferring OverDrive MP3 Audiobooks…
    Most MP3 capable devices should play OverDrive MP3 Audiobooks.
    If you intend to transfer OverDrive MP3 Audiobooks to an Apple® device, note the following…
    iTunes® v9.0.2 (or newer) is required.
    The Apple device must be formatted for use with Microsoft® Windows®.
    The iTunes setting 'Manually manage music…' must be enabled for the device before you can complete the transfer. Adjust this setting in iTunes as follows…
    Connect the iPod® to your computer.
    If it does not launch automatically, open iTunes v9.0.2 (or newer).
    In iTunes, locate the device in the left vertical navigation panel (under heading 'DEVICES'), and click the device.
    The 'Summary' screen is displayed. 
    Place a checkmark next to 'Manually manage music…'.
    Click the 'Apply' button.
    The iTunes 'Summary' screen refreshes, and the changes are saved.
    If desired, close iTunes.
    Note that if an Apple device is connected to your computer, you can choose to simultaneously transfer a title to the iTunes Library and the Apple device. If you wish to only transfer a title to the iTunes Library, you must first disconnect the Apple device

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    Also you said " I want to add them to my iCloud, and also back to my computer.   " Note that unless  subscribe to iTunes match, only iTunes purchases are stored in iCloud.
    Also,
    You can redownload most iTunes purchases by:
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • HT3529 Is there a way to create, store and use preset messages for use with "Messages"?

    Is there a way to create, store and use preset messages for use with "Messages". I often have a recurrinig message to send, after a repeating event, and need to enter the same short message each time. It would be nice to have this short message stored and selectable so that I do not need to enter each time.

    found an answer that seems to work:
    https://discussions.apple.com/message/17997300#17997300

  • Can i buy an iPhone at a pawn shop and get it unlocked for use with Straight Talk wireless?

    Just wondering if I can buy a used iphone at a pawn shop or on ebay and get it unlocked for use with the prepaid Straight Talk wireless service? If so, how much would it cost to get it unlocked?

    PHones can only be unlocked from the carrier; if you're looking for an unlocked device I'd recommand buying it directly from Apple as that is the only way to promise it is, if you buy it second hand you may find it is locked to a carrier who doesn't support unlocking, or worst yet activation lock

Maybe you are looking for

  • HP Laserjet M1522nf Won't Scan

    Info: HP Laserjet M1522nf, Windows 8.1 Laptop, Connected through USB  Hey guys, I recently got a new laptop windows 8.1.  I connected and then downloaded and installed the driver and everything went smoothly.  Printing to the printer works fine howev

  • LabVIEW 7.0 utilize the real-time functions in Window 2000 Real-time.

    Can an application written with LabVIEW 7.0 utilize the real-time functions in Window 2000 Real-time.

  • Problème ultra-récurent avec Bridge CC

    Bonjour, Je travaille sur un Mac Pro, dont voici les détails. Prozessor  2 x 2.8 GHz Quad-Core Intel Xeon Speicher  16 GB 800 MHz DDR2 FB-DIMM Grafikkarte  ATI Radeon HD 2600 XT 256 MB Software  OS X 10.9.5 (13F1066) J'ai eu toutes les versions de CS

  • Which programs corresponds to an offline analysis?

    Dear all, I'm trying to extract data for an offline analysis. Which programs do I use for extracting the last two flat files? File 1 : User File - /VIRSA/DLOAD_USRS File 2 - User Action File - /VIRSA/DLOAD_AUTH_OBJS File 3 - User Permission File - ?

  • Loss of speaker sound with soundblaster li

    hello;I have just incurred another incident as to where my speakers went dead and I lost the sound in my soundblaster li've! software. I recieved an error message "there is no mixer device detected on this system", system mixer will? now exit. when I