Condition Check problem

Hi,
I am new in jsf, I have got a problem...
I have a bean named UserBean, It has a age property.
I want check a condition on Age property, and using JSTL for that, The Code is like that...
<c:if test ="${UserBean.age>17}">
  <h:outputText value=" You are Adult"/>
</c:if>Can Any one help me?
It will be better if any one send me code....
Thanks
Palash

The 'rendered' attribute to be precise :) You can put any boolean expression in it. When this evaluates to true, then the component and it's children will be rendered, otherwise if false, then they will be hidden.
Some basic examples:<h:someComponent rendered="#{myBean.booleanValue}" />
<h:someComponent rendered="#{myBean.intValue > 10}" />
<h:someComponent rendered="#{myBean.objectValue == null}" />
<h:someComponent rendered="#{myBean.stringValue != 'someValue'}" />
<h:someComponent rendered="#{!empty myBean.collectionValue}" />
<h:someComponent rendered="#{!myBean.booleanValue && myBean.intValue != 0}" />
<h:someComponent rendered="#{myBean.stringValue == 'oneValue' || myBean.stringValue == 'anotherValue'}" />

Similar Messages

  • Smartform blank condition check problem

    Hi,
    i am printing the address detials in the secondary window.
    I have to suppress  name2 , street to suppress if they are blank.
    Currently i am prininting all the name 1 name2 name3 name4 in a single box.
    I tried to code in the editior like this  
    /:  IF & NAME2& NE &SPACE&
        & NAMEe2&
    /: ENDIF
    But still it is giving blank lines for name2 and street.
    Please suggest is there a any other way to check the IF the conditon.
    Thanks,
    Radhakrishna.

    Hi NIck,
    Thanks for the suggesion.
    Problem is i have 10 to 12 address fields. Currently i put all the fields in a single text node.
    Otherwise i need to create 12 text nodes for each and every field.
    Can't we restrict the blank values with the "IF" condition ?
    Thanks,
    Radhakrishna.

  • Condition Period Problem in Sales order -  Need help

    Hi Gurus
    I am testing Sales Order back dated
    Condition period Problem in Sales order
    example for you to understand
    Sales Order where PO date is 17.12.2007
    Del Date & Price date is 13.02.2008
    Then it is not calculating IN: A/R BED %IN A/R BED totalN A/R CESS [1621]
    But if i do it after 14 feb 2008 then it is calculating IN: A/R BED %IN A/R BED totalN A/R CESS [1621]
    When I do it with current date it is calculating IN: A/R BED %IN A/R BED totalN A/R CESS [1621] say date is 9-5-2008
    I am not able to trace out problem, kindly help me from where I do I check and why this is happening.
    Rajesh Chalke

    Hi,
    I am not sure if this solves your problem, but I am suspecting that this might be due to the 'valid on date' of the condition records created for the relevant duty condition types.
    Since it was a recent regulation and VK11 usually defaults current date as the valid date, that condition record may have been valid only from the recent date on which it was created.
    Check the date in VK12 (To find the exact selection parameters, check the pricing analysis in the sales order which will display the exact condition record which is being selected as of current date.) Check for the same parameters; change the date to relevant date in the past and recreate the sales order. Hopefully this should solve the issue.
    Cheers,
    KC

  • How i can make in the same action 2 condition (check the exemple down)

    how i can make in the same action 2 condition (check the exemple down)
    this is an example and I really thank you for helping me(any body plz)
    http://www.2shared.com/file/DPpdgC_a/Exemple_Edge.html

    1. make each rectangle a symbol  (Symbol_1 and Symbol_2) and uncheck autoplay()
    2. Delete your code on the click event and put the following code in compostion ready:
    var toggle=true;
    function btnPlay(){
              if (toggle){
                        toggle=false;
                        sym.getSymbol('Symbol_1').play();
              else{
                        toggle=true;
                        sym.getSymbol('Symbol_2').play();
    sym.$('Ellipse').click(function(){
              btnPlay();

  • I want to create new popup block screen in CO11N SCREEN for condition check

    in standard CO11N screen after completing filling the required field , when i click the save icon I NEED TO CREATE THE POBUP BLOCK SCREEN FOR CONDITION CHECKING WHICH CONSIST
    YES    NO    CANCEL
    IS THERE ANY FUNC MODULES TO DO THIS? OR IS IT POSSIBLE BY CODING?

    Don't rely on 'Preview'.
    Share/Export as .ibooks file and then drag that to iTunes and sync to your iPad.
    Still no joy, find a pre-processing recipe ( that includes export for iPad) that doesn't spoil the quality in the process.
    Just keep in mind that low quality in means low or lower quality out, in this example.

  • Capacity check problem in Project system

    hi,
    i have some questions for the Capacity check problems in Project System.
    1. if one Person is assigned to diffierent Work Centers, for example,  person A is assigned to Work Center 01 under Plant 01, and Work Center 02 under Plant 02, how can i do the Capacity check?
       if i want to use A of Work Center 01 in the Project, the System will only check the Capacity of  01, or both of 01 and 02?
    2.  What is the Pooled Capacity?
    Rgds,
    Liang

    hi,
    1.Capacity check takes place at plant level itself..
    2.Pooled capacity:- This is created separately in [u wil find in PP] and this capacity can be used by different work centers.
    regards
    pushpa

  • Syntax Check Problem?

    Hi there!
    I have an ActionScript Project and have many AS Classes on my
    source directory, but have only one Application (Main.as).
    The question is that I can write anything on the AS Classes
    and the Flex doesn't point any errors. Flex only parse the classes
    that are used by my Main Application. This is not a good thing,
    because not all the classes are laoded by the Main Application
    directly, but I still need a instant syntax checking...
    So, could some one say me if this is a Syntax Check Problem?
    Thank you,
    CaioToOn!

    Hi,
    Indeed, it can be frustrating that your class gets compiled
    only when it gets used. I'm guessing the compiler behaves that way
    for performance reasons.
    But I don't understand the bit about classes not being loaded
    by the main application directly? You mean those classes are
    compiled into modules / rsls?
    As long as the classes are referenced in some class which is
    being used by the application, it *should* get compiled. It would
    be interesting to know the dependency of your actionscript
    classes.

  • Capacity check problems

    hi,
    i have some questions for the Capacity check problems in Project System.
    1. if one Person is assigned to diffierent Work Centers, for example, person A is assigned to Work Center 01 under Plant 01, and Work Center 02 under Plant 02, how can i do the Capacity check for this person?
    if i want to use A of Work Center 01 in the Project, the System will only check the Capacity of 01, or both 01 and 02?
    2. How to config Capacity check in PS?
    Rgds,
    Liang

    hi,
    1.Capacity check takes place at plant level itself..
    2.Pooled capacity:- This is created separately in [u wil find in PP] and this capacity can be used by different work centers.
    regards
    pushpa

  • Condition Checking

    Hi,
      Is there anyway i can ensure, let's say my "net income" is larger than 2 million before the user can submit the data? is there some sort of condition checking or locking mechanism that does this?
      any input on this?
    cheers

    You can have something like that for submission
    please check into help online the follow link
    http://name of your application server/osoft/help/admin/helpstart.htm#Setting_application_set_parameters.htm
    It is not exactly what you want but you can do something using this approach.
    You can change the work status settings for each application. Changing the work status settings involves identifying three to five 'work status dimensions,' and then defining specific members for the remaining non-work status dimensions used for validation purposes. You must determine which account you will use for validation of the data at the time the work status is changed. The validation account must be &rdquor;0u201D at the intersection of the 3-5 variable members and the members designated for the non-work status dimensions.  If the account is not &rdquor;0u201D then the owner/manager cannot set the work status.  This is an option feature.
    The dimensions you select as the work status dimensions are the variables in your business process. For example, the entity, category, and time might change based on who is submitting data, but the account, data source, reporting currency, etc., remains static. (Typically, Time is a work status dimension since data is usually segregated based on time.)
    For example, lets say that you set Entity, Category, and Timeas your work status dimensions for a given application. You then set your other current view members to the following:  Account: Validation; DataSrc: TotalAdj; Intco: All_Intco; and RptCurrency: LC. In addition to assigning work status dimensions, you also specify which dimension is the 'owner dimension.' The owner dimension includes the Owner property. The owner property determines who can edit a work status setting. The following figure shows this setup, where Entity is the Owner dimension.
    A user attempts to post data to the current view shown in the following table. The system checks the 'validation' account to make sure the intersection equals zero (0). If so, the data is posted, and a success message is displayed. The user can now set the work state to 'submitted' on that intersection. Subsequent submissions to that exact intersection will be rejected. Users can only send data to the same intersection if the Entity, Category, or Time member changes.
    Account
    <All>
    Category
    Actual
    DataSrc
    <All>
    Entity
    SalesNE
    Intco
    <All>
    RptCurrency
    <All>
    Time
    Feb.2007
    To change work status settings for applications
    From the Admin Console, expand the Application node.
    Expand the application for which you want to change the work status setting.
    Select Work Status Settings.
    In the Work State column, select Yes for each dimension you want to use to control the work status settings. Select Owner for the dimension that contains the Owner property.
    In the Member Validation column, select a member for each non-work status dimensions. (Use the browse button to open the Member Lookup.)
    From the action pane, select Save Work Status Settings.

  • HT201303 MGwFL7jgk9 Please check problem my account  I want refund all item because i gift again all item medthod vie print gift my self and all item

    I gift app for friend Order mgwl7jgk9 my friends can' t receive email gift app. Please check problem my account.
    I want refund all item because i gift again all item method vie print gift my self and all item

    You are NOT addressing Apple here at all.
    AGAIN:
    We are all itunes users just like you.
    We can check nothing.
    You need to contact itunes support.
    http://www.apple.com/support/contact/"

  • Dynamic Credit check - problem -Delivery creation from Sales order

    Hi
    we have a problem which i would appreciate some help with.
    Sales order is blocked for credit and subsequently released via VKM1
    BUT as soon as line item is selected and then Sales document > deliver -
    the Dynamic credit block kicks in again straight away, no other changes have been made
    why is this occurring ?
    I managed to get round the problem by creating delivery via VL10c and selecting line item and then create in background

    Hi Tony,
    Do you have a credit check active again at Delivery level?
    In OVA8 - for the combination of credit control area, risk cat & credit group - please check field 'Number of days'.
    If you do not wish to carry out the credit check again for the released doc, here you can maintain the number of days.
    Description of F1 for this field is as below.
    Credit check: Number of days without check
    Specifies the number of days after which a changed document must be re-checked for credit.
    Use
    This function is used for checking documents that have already been released by a credit representative, but that have subsequently been changed. The system does NOT carry out another credit check if the following conditions are met:
    The value of the changed order is not greater than the value already approved for credit (inclusive of the deviation factor), AND
    The current date is not greater than the original release date plus the number of days specified here
    thanks
    Anirudh

  • While loop condition check

    Dear All,
    attached is an NI that does the following.
    1. The user inputs a frequency and amplitude range to drive a speaker.
    2. A laser displacement sensor measure the speaker displacement, checks if it is in the desired range, and jumps on to the next frequency, if its not in the desired range it tries another drive voltage.
    The program works fine, the problem is, is that the while loop checks the condition in the beginning or the middle of the loop, therefore if it is in range instead of stoping at that particular amplitude and frequency, it goes to the next amplitdue before going to the next frequency. Since at the begining of the loop execution the condition was different that in the middle.
    How can I force the while loop to read the condition only after the sequence inside has completed.
    Thank you
    Ala
    Attachments:
    AmpFinder.vi ‏431 KB

    Dear All,
    I think this fixes the problem
    Cheers,
    Ala
    Attachments:
    AmpFinder.vi ‏431 KB

  • Condition check in PO

    Hi guys,
    I've a problem: I have a condition type defined "Required" in calculation schema and the condition appear in PO with value zero. How can I do to check if the value is greater than zero ?
    Regards
    Alberto

    when you mark a condition as "Required"  , it only means that  the  condition type must mandatorily appear in the procedure ,  it however does  not check the value at all   ,   in order to check the value  ,  you  need do define Limits for conditions  , you  can define this under customizing for conditions in purchasing.  apart from this, you can also define some routine and assign to the condition type.
    If  the value for that condition is  based on some parameters ( e.g.  plant/ p.org etc)  , then you can define an access sequence and maintain condition records to default the same.
    regards
    Raviraj

  • ABAP & Java conditional checks

    Hi folks,
    I'm running the IDM 7.1 Identity Centre, and when I assign a business role that has an ABAP and a Java privelege in it (And also when I unassign it...) the condition that checks whether the user has any priveleges in the system (and decides whether to delete him or not) seems to fail.
    That means my ABAP and Java users both are left in the repository with no roles/groups assigned.
    It seems to use the mxpt_check_account Stored procedure, which I've looked at, but cannot figure out why the condition is failing this check, and my users are not getting properly created/deleted.
    Any insight? Thanks im advance!
    Troy Shane

    Ok, I think you have it now, except for the exact order of things.
    Here's what I face right now:
    I assign a Business Role, with those 5 priveleges assigned to it, to my user, Larry.
    Larry gets created ok in ABAP and Java, and actually, the roles get assigned just fine there. If i change the role he's assigned to (Manager West, instead of East for example) I see them get updated with no problems (Very smoothly, in fact) in both the ABAP and the Java. For example, if I simulate a promotion for Larry through the IDM User Interface, and assign him a VP role, I see the roles updated properly. (Besides some SPML Date format warnings on the MX_VALIDFROM & MX_VALIDTO, but those I can live with for now.)
    However, I still, have two problems:
    1. It seems that NOW...(sorry, different behaviour now than when I first posted this message, due to the recommendations I've implemented) when I remove the Role assignment in IDM, the user's roles get removed properly in the repository systems. Then the tasks to delete the Java and ABAP users run, but they BOTH error out. It seems that the jobs that modify the role/profile assignments for both my ABAP and Java system (Standard SAP Prov Framework tasks - SetJavaRole&GroupForUser & SetJavaRole&GroupForUser ) also effectively deletes the users, because by the time the delete tasks run, the users are no longer there. These tasks throw the errors:
    Pass: DeleteJavaUser
    Error in delete: Can not delete object with id SPML.SAPUSER.Larry because Could not delete object as id seems to be invalid SPML.SAPUSER.Larry
    (...makes sense)
    Pass: DeleteABAPUser
    User Larry does not exist
    (...also makes sense)
    Ok, admittedly, this one is low impact, and I don't really need to get it fixed, I just want to understand why it is throwing an error...should it really be deleting the users when it first removes the roles, and then checks that there are no more privelege assignments for that system? (When I have 2 priveleges for the same system assigned through roles, it doesn't delete the user, just removes the role, as expected...no errors
    Ok, this one is my real issue now (Thanks for reading this far):
    2. I have the role configured as above, including priveleges from all 3 of my repositories (I hit "post" too early above):
    Role = ROLE:BUSINESS:SALES_EAST
    5 Priveleges total :
    - Z_INNOTECH_EAST-Group (JV1)
    - Eastern Region-Group (LABS)
    - Sales-Group (LABS)
    - Z_INNOTECH_SALES_EAST-Role (CR7)
    - Z_INNOTECH_SALES_EAST-Role (JV1)
    JV1 = AS Java 7.01 SP4 (EHP1 SP4)
    CR7  = SAP CRM ABAP 7.01 SP2
    LABS = Active Directory OU
    The ABAP & Java tasks faithfully fire now, every time I assign or unassign a Business role to my user Larry. (Yay!)
    There are also 2 AD groups (privelege) assigned to Larry through the role: Eastern Region group and Sales Group.
    There is also an inherited "Employee" Business Role, which has the AD "Employees" Group - for base employee access.
    The idea is that, a member of the Eastern Region Sales group would automatically be an Employee, so it is a Child Role of most of my major roles.
    When I assign this Business Role, the Active Directory tasks very rarely and very inconsistently fire...I am watching th results in the Job Log and also through my AD tools...
    I am using IDM 7.1 SP2 (Patched on Monday past)
    Using individual tasks through the IDM UI, I can create Users, and enable them...but the Provisioning seems not to work. I have the tasks set properly in the Repository definition and am using the SAP delivered ones (I have tried using modified copies with limited success, and am now back to basics) This proves it isn't the repository definition, or permissions on the repository. I'm always using the same Administrative user to assign/unassign these users, so now I'm stumped!
    Phew, ok that's enough for now...I'll post more error messages once I've investigated the AccountRepoName that you suggest...I haven't seen that Attribute and don't know if it is defined here.
    TIA (and so far...),
    Troy
    (Ok...how come I don't have any line returns in my message?)

  • Price conditions download problem

    Hi!
    I have a problem with downloading to CRM price conditions. I have some price objects (DNL_COND_A002, DNL_COND_A003...) in R3AM1 with yellow light. They stuck in queue with SYSFAIL. In SMW01 for specific BDoc I have message:
    Target table CNCCRMPRSAP002 is not actively available
    There is no active target table for an application for usage A.
    Error when carrying out initial download.
    Objects:
    DNL_CUST_CND
    DNL_CUST_PRC
    DNL_CUST_FGD
    were downloaded correctly.
    I've tried to find table CNCCRMPRSAP002 in CRM but it doesn't exists. Please help!
    Best regards
    P

    Hi Piotr,
    You could think of generating the adapter object in transaction SMOGGEN.
    and also check the table CNCCRMPRSAP002 is activated in CRM system,then upload the adapter object.
    I hope, this could help you...
    Regarsd,
    Saurabh

Maybe you are looking for

  • Step-by-step configuration from XI to R/3 for Idoc to File Scenarious

    Hi Gurus,                 Am the Beginner in Xi, I tried to connect the Xi to R/3 for Idoc to File Scenario but the connection fails, (error in Rfc showing ), could any one send me the step-by-step sm59 configuration. R/3 version 4.6c and Xi version

  • Quicktime Corruption

    I recently downloaded ITunes and have the icon sitting on my desktop. I have tried to install it several times, but keep receiving the following error: "the cabinet file 'Quicktime.cab' required for this installation is corrupt and cannot be used. Th

  • Applet-tag in deployJava.js - really!?!

    I have studied the deployJava source, and am surprised! From what I can deduce, the script embeds an invisible "object"-object or an "embed"-object when it is initially loaded. But the call to deployJava.runApplet() then actually embeds an "applet"-o

  • IPhone 4s shuts down with 30%+ power left...What's the problem?

    Phone shuts off with 30% or more battery power.  When I try to turn on...it is requiring me to plug in.  (red battery warning) I think my phone is still under warranty.  Is this something Verizon will handle?  Do I need a replacement phone?  Frustrat

  • HT201210 when trying to recover an iphone, anyone know how to fix an error 21?

    when trying to recover an iphone, anyone know how to fix an error 21?