Confuse in use EL

Sometimes I feel confused when using EL in my jsf pages for this example:
<c:if test="${4<= sessionScope.approvalInsertionBean.numberOfSelectedServices}" >
the first time I wrote it as :
<c:if test="*4<= *${sessionScope.approvalInsertionBean.numberOfSelectedServices}" >
it didn't work (and even did not report anyerror) , but after I wrote it as shown in the second line above it woked.
Would you please explain how it works?
Regards

The contents of ${ } just represents the whole expression. Everything outside ${ } is plain vanilla template text. Think about it once again, how would the EL parser know what exactly outside the ${ } to take in the evaluation of the expression? Everything up to the double quotes? No, that wouldn't make any sense ;)
Here's the JSP EL spec: [https://jsp.dev.java.net/spec/jsp-2_1-fr-spec-el.pdf]. Good literary food.

Similar Messages

  • Confusion on using USING/CHANGING in PERFORMS and FORMS

    I got a little confused with PERFORM statements.
    As far as I understood, the FORM definition is the one that ultimately defines which variable is going to be handled by value and which by reference (Using either USING, USING VALUE(...) or CHANGING (which is a particularity to deal with recursive functions). Thus, why does the PERFORM statement also accepts the CHANGING option ?
    Should I worry with the way the PERFORM statement is written or can I simply imply from it the values of the parameters passed, in a given moment of execution ?
    Thanks
    Avraham

    Hi
    The USING and CHANGING additions in the FORM statement define the formal parameters of a subroutine. The sequence of the additions is fixed. Each addition can be followed by a list of any number of formal parameters. When you call a subroutine, you must fill all formal parameters with the values from the actual parameters. At the end of the subroutine, the formal parameters are passed back to the corresponding actual parameters.
    Within a subroutine, formal parameters behave like dynamic local data. You can use them in the same way as normal local data objects that you would declare with the DATA statement. They mask global data objects with the same name. The value of the parameters at the start of the subroutine is the value passed from the corresponding actual parameter.
    Parameters Passed by Reference
    You list these parameters after USING or CHANGING without the VALUE addition:
    FORM <subr> USING    ... <pi> [TYPE <t>|LIKE <f>] ...
                CHANGING ... <pi> [TYPE <t>|LIKE <f>] ...
    The formal parameter occupies no memory of its own. During a subroutine call, only the address of the actual parameter is transferred to the formal parameter. The subroutine works with the field from the calling program. If the value of the formal parameter changes, the contents of the actual parameter in the calling program also change.
    For calling by reference, USING and CHANGING are equivalent. For documentation purposes, you should use USING for input parameters which are not changed in the subroutine, and CHANGING for output parameters which are changed in the subroutine.
    To avoid the value of an actual parameter being changed automatically, you must pass it by value.
    Input Parameters That Pass Values
    You list these parameters after USING with the VALUE addition:
    FORM <subr> USING    ... VALUE(<pi>) [TYPE <t>|LIKE <f>] ...
    The formal parameter occupies its own memory space. When you call the subroutine, the value of the actual parameter is passed to the formal parameter. If the value of the formal parameter changes, this has no effect on the actual parameter.
    Output Parameters That Pass Values
    You list these parameters after CHANGING with the VALUE addition:
    FORM <subr> CHANGING ... VALUE(<pi>) [TYPE <t>|LIKE <f>] ...
    The formal parameter occupies its own memory space. When you call the subroutine, the value of the actual parameter is passed to the formal parameter. If the subroutine concludes successfully, that is, when the ENDFORM statement occurs, or when the subroutine is terminated through a CHECK or EXIT statement, the current value of the formal parameter is copied into the actual parameter.
    If the subroutine terminates prematurely due to an error message, no value is passed. It only makes sense to terminate a subroutine through an error message in the PAI processing of a screen, that is, in a PAI module, in the AT SELECTION-SCREEN event, or after an interactive list event.
    reward if useful
    Regards
    Pavan

  • Utterly Confused About Usefulness of Actionscript

    I am utterly confused. I am trying to create series dynamically, meaning that I will have a dataset that looks SOMETHING like the following:
    [Bindable]
    private var arrayOne:ArrayCollection = new ArrayCollection([
    {time:1,day:3,typeA:{wip:10,proj:15},typeB:{wip:15,proj:9},typeC:{wip:20,proj:20}},
    {time:1,day:2,typeA:{wip:12,proj:14},typeB:{wip:13,proj:12},typeC:{wip:12,proj:17}},
    {time:1,day:1,typeA:{wip:15,proj:14},typeB:{wip:12,proj:10},typeC:{wip:5,proj:9}},
    BUT, the only thing I know for sure is that there will be a time and day value. TypeA, TypeB, and TypeC are product types, and they MIGHT or MIGHT NOT be in my dataset, simply depending on the result of a SQL query. So I need to be able to create chart series for typeA, typeB, and/or typeC (or any other type that I may not even know about yet) given that they appear in my dataset.
    I know I need to use dataFunction, since I actually need to access the 'wip' for any given product type. I have found out that 'item' is the row of the data array that is currently being accessed, so in my dataFunction I need to return something like 'item.(series).wip'. But that isn't allowed.
    private function dataFunc(series:Series, item:Object, fieldName:String):object
              if(fieldName == "yValue")
                   return item.(series).wip
    I am dealing with a dataset like the one I posted at the top of this post BUT I don't know what my product types will be, they could be anything. Yet I need to create a series for each product type. Actionscript seems incapable of handling this as far as I have seen thus far. I hope I am incorrect. If anyone can help please chime in!

    Anyone from Adobe? I might be able to figure this out on my own but I can't seem to understand how dataFunction works.

  • Crop Tool Confusion When Used to Change the Dimensions (but not the resolution) of an Image

    Picture this.  You have a real photograph in front of you.  Its dimensions are 7x5 inches, and you want to cut out of that photograph, a 4x4” square.  You’re not bothered by the rest of the photograph, you’ll discard that, so you mark your 4” square on the photo at the place you want to keep, and with a pair of scissors, cut (crop) the photo accordingly.
    Using the analogy above, I’m having difficulty achieving what should be an extremely simple operation in Photoshop CC 2014.  I have an image which is 5000px wide x 3800px high at a resolution of 240px/inch.
    Using the “W x H x Resolution” option of the crop tool, I want to crop the image to 2100px x 2100px, maintaining the original image resolution of 240px/inch.  No matter what settings I use in the crop tool toolbar, the crop tool insists on sizing the crop by assuming the full length of the shortest axis on my image.  In this instance the vertical distance.  If I initiate the crop, I do end up with a 2100px square image at 240px/inch, but the shortest original dimension (and hence pro-rate the image) has been rescaled and resized.
    What I was expecting to see is the crop tool outline simply showing a square which represents 2100px a side at 240px/inch relative to the image I’m viewing.  I would then drag the outline to the position where I wanted it, and then crop the image.  This isn’t happening.  I can manually resize the crop area with my mouse, and rely on the floating information pop-up to check the actual crop dimensions, but this seems counter-intuitive (not to mention difficult when attempting a pixel accurate crop).
    Strangely enough, if I change the size of the crop window by using the mouse, and right click inside the crop area, the context menu has the option “Use Crop Box Size & Resolution”. Selecting this option updates the toolbar with the chosen crop size and everything is as expected.  Surely, this is what the crop toolbar should do in the first place?
    Am I missing something here? I may not perform this particular operation very often in Photoshop, but I’m sure it worked the way I thought is should before!
    Regards,
    Steve

    What I was expecting to see is the crop tool outline simply showing a square which represents 2100px a side at 240px/inch relative to the image I’m viewing.  I would then drag the outline to the position where I wanted it, and then crop the image.
    You'd better use the Marquee tool for this. Set the desired number of pixels in the options bar. Click and drag and finally Image > Crop.

  • Confusion about using non-Apple prod. on my powerbook with AE base station

    I have a G5 and an base station. Always worked fine.
    Then I wanted to add a USB wireless "card" to my powerbook 12 inch G4. The salesman said they are not well supported by Apple. So i found an IO DATA Ethernet Converter WN-G54/C which promises MAc compatibility.
    Problem is the instruction book is Japanese only and I see no Eng one on the net. Probablty not released yet.
    On the other hand, assume these all must work sort of the same.
    Cannot get it to work, though it seems to recognize something.
    Just to make sure..can I NOT connect to my Aiport base station with a mac connected via a product like this ethernet converter, which seems to allow such connections?
    And do I just igore the IO data settings and try to configure it through the Airport application? It seems the airport connection is for apple cards to connect to apple or non apple networks.
    But here i think I have to use the IO data ethernet converter application to connect to the apple or other networks?
    Anyway, I JUST realized my Powerbook has an Apple airport card in it, as i tried to turn it on even without the IO data in,s o this is a mute point for now.
    but if i ever need the IO data (it seems it may have a stronger ability to pull in the signal as it has a big antenna on it), i would like to undersatnd how it works.
    Thanks!
    paul

    No-one has any idea about this?

  • Confuse about using commitchanges

    dear friends....i have some problem using commitchanges methode in netbeans 5.5.1 using oracle database 10g. the problems :
    1. when i inserting first record to database, it's still okay, but when i inserting
    the second record, netbeans replace the first record that i insert with the
    second record twice.
    my code looks like :
    public String addBTN1_action() {
    //getSessionBean1().setrk(rk);
    getSessionBean1().setMode("ADD");
    textField1.setValue("");
    textField3.setValue("");
    textField4.setValue("");
    textField5.setValue("");
    textField6.setValue("");
    getBody1().setFocus("form1:textField1");
    return null;
    public String saveBTN1_action() {
    try {
    if(getSessionBean1().getMode().trim().equalsIgnoreCase("ADD")){
    getSessionBean1().getTestRowSet().setConcurrency(ResultSet.CONCUR_UPDATABLE);
    String test1 = textField1.getText().toString();
    String test2 = textField3.getText().toString();
    String test3 = textField4.getText().toString();
    String test4 = textField5.getText().toString();
    String test5 = textField6.getValue().toString();
    RowKey rk = testDataProvider.appendRow();
    testDataProvider.setCursorRow(rk);
    testDataProvider.setValue("ID", getSessionBean1().getrk(), test1);
    testDataProvider.setValue("CUSERID", getSessionBean1().getrk(), test2);
    testDataProvider.setValue("CKDUNITKEY", getSessionBean1().getrk(), test3);
    testDataProvider.setValue("CNOPO", getSessionBean1().getrk(), test4);
    //testDataProvider.setValue("DTGLPO", getSessionBean1().getrk(), v_dtgllhr);
    testDataProvider.setValue("NPOGROSS", getSessionBean1().getrk(), test5);
    testDataProvider.commitChanges();
    testDataProvider.refresh();
    log("update: changes committed");
    info("Update committed");
    } catch(Exception e) {
    log("update: cannot commit changes ", e);
    error("Cannot commit changes: " + e.getMessage());
    return null;
    i would be appreciate if anyone could help me, thanks before
    null

    Everything here : https://www.sdn.sap.com/irj/sdn/adobe
    Summary: installed with NW7.0, you must configure it. See config guide how to check it.

  • I'm confused about using local fonts in my Edge Animate designs...

    http://blogs.adobe.com/edge/2012/01/27/web-fonts-and-edge-together-at-last/
    According to the above blog, it should be possible to have Edge Animate recognize local fonts, but a few moderators are saying it's not yet possible... (I did try the method above and it did not work, but it seems like a reputable blog...) this is a screenshot of what I tried to do with the code from above:
    The "Welcome" "Portfolio" etc is styled using @font-face in my original html document that I imported into Edge, but the "Test" div I want to have the same style - I want to be able to create new divs within Edge and keep the same fonts...
    So.... is there a way to use local fonts in Edge, or no?
    Thanks all,
    Aza

    Yes it is possible, apologies if my other answer mislead you.
    In your case it appears to be a case of incorrect reference.
    In your Asset > Font dialog creation process you reference your font family with underscores separating the title
    example: 'waukegan_ldo_extended', Tahoma, sans-serif
    BUT, in your .css files, your fontface reference does not.
    example: font-family: 'waukegan ldo extended';   << notice no underscores
    These two references should match exactly. As a tip, I would recommend to use a single word like WaukeganLdoExtended.
    hth
    Darrell

  • HELP! Can't verify or repair HD - confused about using Start Up Discs

    Hi there:
    Never had a problem then yesterday my iMac made the sound it does when its "thinking" and froze. I forced shut down by pushing the "start" button on the back.
    I then tried Disc Utility to verify my HD and it stopped and said:
    "Invalid node structure. The Volume HD needs to be repaired. Error: The underlying task reported failure on exit. 1 HFS volume checked. Volume needs repair."
    On researching, I see that I am supposed to shut down and use my "start up" discs that came with the computer - but these are 2 years old. I am now running the latest update of 10.4.11 (not whatever it was back 2 years ago.)
    I also got nervous that I should back up my important documents & apps before I do anything just in case. So this morning, I made Burn folders and tried to burn to 2 CD-RWs. They did burn, but for whatever reason, the finished CDs say that they are "read only" and that I don't have permissions to change that (even though I am the only user and administrator, etc).
    What am I doing wrong?
    I even tried changing the permissions on one CD-RW before I burned to granted RW permissions to anyone and all the contents....which looked fine but after the CD still said I have no permissions.
    HELP!!!!
    Can I start up from the original install disc and repair without it reverting back to all the old whatever permissions & updates etc., that were on that 2 year old start up disc?
    What am I doing wrong when burning to a CD-RW? Why do they show that I have only read only and can't change?
    When I try to do "Get Info" and it says to unlock the little lock, I do and nothing happens - no prompt with a password or anything that lets me change it.
    Any help you can give about how best to use Disc Utility to verify & repair my HD (if I can indeed use the 2 year old start up CD without a problem) and what I am doing wrong to make my CDs RW?
    Thank You!!!!!!

    CD-RWs - which should mean that I can burn to them but they should be erasable/re-writable - yes?
    Yes indeed.
    But when I burned 2 of these today, the resulting discs "info" states they are "read only" and I have no permissions to change anything...
    Aha, the Standard for appendable CD/DVDs was never finalized, so on the Mac, once you burn you're done burning, unless you used create Sessions which will make it look like 2 or more CDs when mounted, or erase and start over with the write.
    The real answer is a Firewire drive to back it all up at once...
    http://eshop.macsales.com/search/firwire+drives
    Many come with Backup Software, or...
    Get carbon copy cloner to make an exact copy of your old HD to the New one...
    http://www.bombich.com/software/ccc.html
    SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Or the most expensive one & my favorite, Tri-Backup...
    http://www.tri-edre.com/english/tribackup.html
    I just wanted to know if there is some other place where these disc burning permissions are being automatically set up and if its something I am supposed to do there, or before or after burning to make this not do that.
    I just wanted to know if there is some other place where these disc burning permissions are being automatically set up and if its something I am supposed to do there, or before or after burning to make this not do that.
    Nope, you're doing it right, it just doesn't work like a Floppy or HD is all.

  • Confusion in using DWR for ajax

    I am in confusion that, is this DWR framework is reliable because it is giving me too many unexpected results.

    Hi,
    Sales and operation planning is different from sales plan. Sales plan will contain at sales quantities to be sold per time period may be month. You forcast for sales figure. Now to achive this sales target you will plan for production considering your capacity and labour and financial resource availability. Some deceisions at brod level how much you will produce inhouse. How much extra outsourcing capacity is required  can be decided. So production quantities may be different from sales plan as you may produce in months where sales requirement is less and build inventory to achive future months sales as capacity may be available now and not in future. Some times exisiting resource constraint ca lead to sales plan adjustment like rescheduleing promotion plans etc.
    Standarad SOP in ECC is based on infostructure S076. Here you can plan at single organisation level. Sales org,plant etc. there is no flexibility to define multilevel org level for forcast and planning.
    In flexible planning you can your own org levels.
    Planning strategy will define for which material you want to have forcasting results.
    I mean in make to order may be you need to have raw material procurement plan based on sales plan.
    There is no constraint as such as  industries, type of manufacturing etc.
    Regards,
    Santosh

  • I find it confusing when using Runkeeper

    I can start Runkeeper from the watch but it is not clear how I can see how I am doing using the watch and how to pause, stop, or resume a run with the watch. has anyone been using Runkeeper?

    Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
    Thanks.

  • Hi I am slightly confused with using CSS to control links.

    I have set the Hover,active and visited colour properties.
    the issue is that once a link has been visited the hover colour no longer shows up.
    So I tried removing the visited colour and now even when i hover it is staying the default purpleish.
    please advise on how to keep the links one colour except when hovering

    To get best results in all browsers,  a:active MUST follow  a:hover in the  CSS definition order. A simple memory device for link order is " LiVHA" for link, visited, hover, active.
    CSS:
    a:link {color: #FF0000}     /* unvisited link  */
    a:visited {color: #00FF00}  /* visited link */
    a:hover {color:  #FF00FF}    /* mouse over link */
    a:active {color: #0000FF}   /* selected link  */
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • HT5622 im confused i used an i tunes card for music (i still have some money left) but it sent me the billing information through email and jt said it sent the bil

    Sorry. Didn't get to finish but it sent me the billing information and I'm scared it is going to send me a bill!!

    Sorry forgot to mention it sent me the billng information through email just wanna make sure

  • P31 Neo V2 , confused by SATA/IDE? SATA drive seemingly using UDMA 5?

    HI guys.  I am a little confused after using slipstreamed SATA drivers to install XP Pro SP3 on my new PC and  a SATA 2 500gb drive.
    When I look in device manager I dont see any SCSI controllers at all,  under IDE controller I see ICH7 SATA and ICH7 UDMA drivers AND TWO primary IDE channels and TWO secondary channels.
    When I look into the chanels, I only have 2 items attached (correct), one IDE DVD drive using one of the primary channels at UDMA 4 and the SATA 2 500 GB which is seemingly using the other primary IDE and running at UDMA 5!
    How can I get the 500gb SATA 2 drive to use the SATA 2 - 3gb channel which is advertised for the board?  At the moment it seems to be using IDE compatibility mode and I cant get it to move over to SATA whatever I do.  The board has no AHCI option in the bios, only SATA on/off, IDE on/off.  The default is both on, and thats how I installed windows XP.
    Have I been conned when it said SATA 3gb capable?

    Quote
    If none are needed then none will be used
    I know.  That is why I said it was unnecessary for this mainboard (none of the drivers are needed).
    Quote
    IS he wrong?
    Not entirely. Part of your statement in that forum was wrong.  This part of your comment was correct:
    Quote
    that its meant to be that way.
    But this one wasn't:
    Quote
    SATA is a form of IDE apparantly
    SATA is not really a "form of IDE" (I never told you that and that user is right when he says "thats not correct").  The IDE/Legacy Mode is an operating mode of the SATA Controller which will allow Windows to handle SATA Drives as IDE Devices (for maximum plug&play compatibility). It does not mean that the SATA Drives operate as IDE Devices (or are IDE devices).
    And this is what that user said as well:
    Quote
      because your mainboard has Legacy modus enabled for the SATA controler/ports
    There is no contradiction here.  And to be more precise:  The SATA Controller of the ICH7 Southbridge only supports IDE/Legacy Mode, so there is no way to put it into any other operating mode (AHCI or RAID).
    I will attach a screenshot of my Device Manager (I use the German Version of XP, but you will find the important information anyway).  I use a P45 Platinum.  The SATA Controller integrated into the ICH10R Southbridge is currently running in IDE/Legacy Mode.  My SATA-II HD is listed as being attached to the one of the Secondary IDE Channels.  As you can see, Windows shows "UDMA 5". 
    I have used this drive on a number of Intel Boards (975X/ICH7DH Chipset, P35 Platinum/ICH9R Chipset, P965 Neo Combo/ICH8 Chipset).  Whenever the SATA Controller is set to IDE/Legacy Mode, Windows will report IDE Channels and "UDMA 5".  It is a side effect of the IDE/Legacy Mode (for which no SATA Drivers exist (at least not for Intel Chipsets) and no descriptive value whatsoever.  This is basically the price you pay for such a plug & play compatibility mode (make Windows believe it is an IDE Drive), but it does not mean the drive is not operating within in specifications of SATA-II.

  • Can you use soundtrack pro's loops in your youtube videos or do you need to purchase a license since it is royalty free?

    Can you use soundtrack pro's loops in your youtube videos or do you need to purchase a license since it is royalty free?
    I understand they are royalty free, I am just confused about using the actual loops for films, videos, etc - if there is a special license you must purchase or what?
    Yes sure, it's a library and may be used a lot - but is it legal or against agreement?
    And to clarify - what about music I create on the program , that is ok right?

    If you purchased the software you have the right to use the loops that came with the software in the software to make whatever you want.

  • Using iTunes Match with an external hard drive

    Hello.
    Over the years, my iTunes library has got rather large. Now, I'm about to buy a new MacBook Pro with a smaller SSD than my current hard drive, so in order to make best use of the space, I'm going to move my iTunes library to an external drive.
    The plan is to have this drive connected to my home braodband router, and available wirelssly on ymhome network. That means whenever I'm at home, my library will be available to me, and I can sync whatever I like to my iOS devices etc.
    When I'm on the move, I'd like to have access to my music, so I have subscribed to iTunes Match which is working well. My iPhone and iPad stream my music no problem.
    My question is about how this will work on my new computer. The ideal situation for me would be that when I am at home with my external drive accessible via my home network, that I can play my media content locally within iTunes. When the drive is not connected (because it is off, or I am away from home) will the computer realise the music library is unavailable, and allow me to stream via iTunes Match?
    Will this setup confuse the use of iTunes Match on my computer when I'm away from home?
    Any advice on how to best set this up would be appreciated!

    Hi,
    You will need two itunes libraries, one giving you access to your external drive and the other to allow you to stream your music.
    When you get your new Macbook you can create an new blank library which will let you access your music in the cloud - see http://support.apple.com/kb/HT1589.
    You would use same procedure to reconnect to your main liabrary on the external drive.
    Jim

Maybe you are looking for

  • Non CISCO unknown devices are being discovered in LMS

    Hi! I have had no problem with discovery which was used on cdp basis so far. Now the CDP packets do not arrive via new MPLS backbone network.  I have to use the "ping sweep feature in IP range" feature. I had to enter more than 400 subnet from file b

  • Add years to a given date

    I've two colunms in one of my tables: date & term I want to calculate the end date now. but column date is of formate date and column term is of type int. How can I calculate the sum of these two? If I have f.i. date = 02/11/2008 and term = 6. then I

  • Using OAQ with JBoss

    Is anyone else using OAQ and JBoss together ? I am trying to use the patch provided at http://sourceforge.net/tracker/index.php?func=detail&aid=912173&group_id=22866&atid=376687 but running into difficulties (see my comments on that page). If I can't

  • How do I turn off the auto-locator?

    I can no longer get to Yahoo.com which now always defaults to Yahoo.de, the German Yahoo. When I change it to the American one it immediately goes back to the German. I am American but live in Germany. I thought if I turned off the auto-locater I mig

  • Sdo_relate on 3D r-tree

    Is that possible to perform SDO_RELATE on 3D R-tree index created by oracle? I just upgrade oracle from 9.0.1 to 9.2. I was able to do SDO_RELATE on 3D R-tree, but not any more. I get error message: ORA-13243: speciifed operator is not supported for