Best practice: text/value formatting based on a value

Hi all.
How would you make a field display different text/value based on the actual value of a field?
I have a field in a bean called retriesPerSecs. If this value is less than 1, then I want to display the text/value "{retriesPerSecs*60} retries per minute". If the value is higher than 1, then I'd like to display "{retriesPerSecs} retries per second". The value in the bean should always be retries per second.
Should I make a converter to do this, or is there a smarter way to accomplish this?
Thanks,
R

Hi,
I don't know if when you say "the value in the bean has to be always be retries per second" means that for some specific reason you need to bind that component to that property, but if is not, i think you have two more options..
1. Build the whole text on your backing bean based on retriesPerSecs property.
2. Or bind the value to two properties, like value="#{retriesPerSecs*60} #{textDescription}", where text description evaluates what you have to show.

Similar Messages

  • Best practice for photo format: RAW+PSD+JPEG?

    What is the best practice in maintaining format of files while editing?
    I shoot in RAW and import into PS CS5. After editing, it allows me to save as various formats, including PSD and JPEG. PS says that if you want to re-edit the file, you should save as PSD as all the layers are maintained as-is. Hence I'd prefer to save as .PSD. However, in most cases, the end objective is to share the image with others and JPEG is the most suitable format. Does this mean, that for each image, its important to save it in 3 formats viz RAW, PSD and JPEG? Wont this increase the total space occupied tremendously? Is this how most professionals do it? Pls advice.

    Thanks everyone for this continued discussion in my absence over two weeks. Going through it i realize its helpful stuff. During this period, i downloaded Aperture trial and have learnt it (there's actually not much learning, its so incredibly intuitive and simple, but incredibly powerful. Since I used iphoto in the past, it just makes it easier.
    I have also started editing my pics to put them up on my photo site. And over past 10 days, here is the workflow I have developed.
    -Download RAW files onto my laptop using Canon s/w into a folder where i categorize and maintain all my images
    -Import them into Aperture, but letting the photos reside in the folder structure i defined (rather than have Aperture use its own structure)
    -Complete editing of all required images in Aperture (and this takes care of 80-90% of my pics)
         -From within Aperture open in PS CS5 those images that require editing that cannot be done in Aperture
         -Edit in CS5 and do 'Save', this brings them back to Aperture
         -Now I have two versions of these images in Aperture - the original RAW and the new .PSD
    -Select the images that I need to put up on my site and export them to a new folder from where i upload them
    I would be keen to know if someone else follows a more efficient or robust workflow than this, would be happy to incorporate it.
    There are still a couple questions I have:
    1 - Related to PS CS5: Why do files opened in CS5 jump up in terms of their file size. Any RAW  or JPEG file originally btn 2-10 MB shows up as minimum 27 MB in CS. The moment you do some edits and/or add layers, it reaches 50-150MB. This is ridiculous. I am sure I am doing something wrong.  Or is this how CS5 works with everyone.
    2 - After editing a file in CS by launching it from Aperture, I now end up with two versions in Aperture, the original file and the new .PSD file (which is usually 100MB+). I tried exporting the .PSD file to a folder to upload it on my site, and wasnt sure what format and size it would end up with. I got it as a JPEG file within reasonable filesize limits. Is this how Aperture works? Does Aperture allow you options of which format you want to save the file in?

  • Best practices for setting environment based static variables?

    I have a set of static string variables that hold the url location of modules in a project. These locations change depending on whether I'm building for development, staging or production.
    What's the best way to set static variables in this way?

    I don't know if this is best practice, but here's the solution I've come up with.
    The root domain is accessible within the swf via a node on a loaded xml file. So I created a simple method that sets a url variable based on that domain node.
    The domain-based url variable is then used within the static string variables that define the location of the modules.
    Simplified like so:
    var domain:String = xml.node.value;
    static var bucketLocation:String = getLocation()
    static var moduleLocation:String = bucketLocation + "modulename.swf";
    function getLocation():String
         var loc:String
         switch (domain) {
              case stagingUrl:
                  loc = "pathToAmazonStagingBucket";
                   break;
              case productionUrl:
                   loc = "pathToAmazonProductionBucket";
                   break;

  • Best Practice for module components based on API's

    Hi all,
    is there a white paper/other documents which outline best
    practice for using table/module component api's and best
    approaches to get around restrictions?
    I would also appreciate war stories about using this method of
    Forms development bearing in mind i would be using this as the
    foundation of a web deployed based application (intranet first -
    ultimately internet).
    Thanks
    Mark
    null

    You cannot add agents to skills dynamically; however, you can queue the caller into more than one CSQ based on statistics. You would use the Get Reporting Statistics and an If step within the Queued branch of your first Select Resource step. If the condition is met (e.g. Contacts Waiting >= 10) then exectue a second Select Resource step within the queued branch of the first. The contact would then be waiting in both CSQs waiting for an agent.

  • Best Practice Employee Self-service based on ECC 6.0

    Hello,
    Where do I find info about best-practice installation for Employee Self-service based on ECC 6.0?
    I only seem to find info about older versions that are not valid anymore.
    Regards,
    Fredrik

    Fredrik,
    Please check this
    http://help.sap.com/saphelp_erp2005/helpdata/en/f6/263359f8c14ef98384ae7a2becd156/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/a0b47200-9c6d-2910-afa6-810c12eb7eb3
    Hope this helps.
    Have a great weekend
    Cheers,
    Sandeep Tudumu

  • Any best practice to apply role based access control?

    Hi,
    I am starting to apply the access permissions for new users as being set by admin. I am choosing Role Based Access Control for this task.
    Can you please share the best practices or any built-in feature in JSF to achieve my goal?
    Regards,
    Faysi

    Hi,
    The macro pattern is my work. I've received a lot of help from forums as this one and from the Java developers community in general and I am very happy to help others and share my work.
    Regarding the architect responsibility of defining the pages according to the roles that have access to them : there is the enterprise.software infrastructure.facade
    java package.
    Here I implemented the Facade GoF software design pattern in the GroupsAndRolesAccessFacade java class. Thus, this is the only class the developer uses in order to define groups and roles of users and to define their access as per page.
    This is according to Java EE 6 tutorial, section VII Security, page 471.
    A group, role or user is created with an Identity Management application or by a custom application.
    Pages of the application and their sections are defined or modified together with the group, role or user who has access to them.
    For this u can use the createActiveGroup and createActiveRole methods of the GroupsAndRolesAccessFacade class.
    I've been in situations where end users very strict about the functionality of the application.
    If you try to abstract web development, u can think of writing to database, reading from database and modifying the database as actions.
    Each of these actions should have suggester, approver and implementor.
    Thus u can't call the createActiveGroup method for example, without calling first the requestActiveGroupCreationHelper and then the approveOrDeclineActiveGroupCreationHelper method.
    After the pages a group has access to have been defined with the createActiveGroup method, a developer can find out the pages and their sections a group has access to by calling the getMinimumInformationAboutGroup method.
    Further more, if the application is very strict, that is if every action which envolves writing to the database must be recorded, this concept of suggester, approver and implementor is available throught the recordActiveGroupAction method.
    For example, there is a web shop, its managers can change the prices of the products, but the boss will want to know who had the dared to lower prices.
    This action of lowering prices, is an action of modifying the information in the database and u can save in the database who suggested it, who approved it and who implemented it.
    Now that I write about the functionality of the macro pattern, I realise that some methods should have more proper names and I haven't had time to write documentation in the API, but this will be a complete when I add the web pages for the architect to use for defining access control and for the end users to view who and what is doing with their application.

  • Best practices for complex recipe-based system?

    Hi Folks,
    I'm at about the intermediate level (working on my CLD), and tasked with re-vamping a tighly-developed control system(which I'm intimately familiar with) into more of a configurable 'recipe'-based system. Basically the current front-end control software does a lot of the work for the end user - it pre-defines flows, assumes certain electrical/plumbing configurations, etc. This is fine for the 'production floor', however the R&D guys would like something a bit more configurable.
    This system comprises of several flow controllers, mostly controlled/monitored via analog I/O (compact FieldPoint). There's some static analog input channels devoted to temp, humidity, etc. There exists the possibility of 1-2 external RS232 metering devices as well.
    Anyway I'm trying to work out the foundation for the UI. In terms of architecture think a que-ed state machine is my best bet due to the number of parallel processes occuring at once (analog acq, multiple serial comm, TDMS, UI, etc).  Basically I'd like the user to be able to add/remove/modify 'steps'. For instance, "Set Flow: controller IDx, 20cfm", or "Time Delay, Static: 10:00", "Time Delay, Psuedo-Static, based on X". 
    I've worked out a configuration UI (utilizing the in-build NI configuration storage VIs) to associate the analog channels to external devices (ie Aout1="Controller1 SP", Ain1="Controller1 FB"). Later I'll populate a ring control, for instance, for the 'add SetFlow step', to list all of the analog OUTs for selection.
    So I guess what I'm looking for is advice on passing all this info around without having to re-hash it all the time to present to the user. Keeping in enum/ring allows for easy user viewing, changing, and block diagram readbility (vs string constants, which are error prone) - is this something that the 'flatten to string' would be helpful for (something I have no experiance using).
    What tips can you provide for moderate-complexity HMI control systems developed strictly in LV? We currently don't have DSC, and I'm a bit closed-minded about using it for this (but perhaps you can convince me otherwise?).
    Thanks for your time,
    Jamie
    Message Edited by 8bitbanger on 04-21-2010 08:10 AM
    v2009 devel. w/RT

    Cool, thanks for the screenshot!
    This request for more customization was anticipated, so I began working things in last year with other minor revs. The first was this 'hardware configuration' utility. Right now I'm only using the MFC Config page for channel scalling/name info. (the production version still relies on 'static' channel associations to control devices). The enum 'card/slot' selector does exactly as you mentioned - it controls a tab value, which loads other pages (with similar info).
    The second 'generator' page is used to populate a list of generators available for the user to select, and works quite well - users can add somewhat custom generators to the list w/out having to specify "custom" every time (and I don't have to rebuild to add such a simple thing).
    You can see the 'Flow Control' and 'Monitor' channel that have not yet been implimented. :-)
    Lastly the mockup is where I want to end up. I *wish* that labview was able to incorperate enum/ring drop-downs within a table cell (without the hacks that I've seen suggested).
    I intended to setup a similar format for the 'steps' - an Action (or noun as you say), Target (ie file path, device name, etc), Value (setpoint, other pertinent data), etc. Do you pass this info around as a cluster in your VI then simply parse out to the UI in the steps listing? My hurdle is how to ellegantly relate, say, a CSV file back to the enums without a lot of hard-coded (constant) strings.
    Cheers,
    Jamie
    ::edit:: *Finally* found the button to insert images... ::edit::
    Message Edited by 8bitbanger on 04-21-2010 10:30 AM
    v2009 devel. w/RT
    Attachments:
    config_UI.JPG ‏52 KB
    generators.JPG ‏39 KB
    mock-up.JPG ‏33 KB

  • Best practice for adding agents based on queue stats

    I am looking for some guidance (sanity check really) on the best way for to add agent to a CSQ base on call statistics. Scenario: 20 agents logged in and ready. The first 15 agents take all the calls until the contacts waiting reaches 10, then and only then should the other 5 agents start taking calls.
    I appreciate any help or sample scipts on this subject.

    You cannot add agents to skills dynamically; however, you can queue the caller into more than one CSQ based on statistics. You would use the Get Reporting Statistics and an If step within the Queued branch of your first Select Resource step. If the condition is met (e.g. Contacts Waiting >= 10) then exectue a second Select Resource step within the queued branch of the first. The contact would then be waiting in both CSQs waiting for an agent.

  • Best practice to securely format a solid state hard drive.

    Hey guys i am not sure this is in the right place or even belongs on this forum but here we go.
    I am going to be participating in a security project and the goal is to recover data from formatted drives. 
    So i need/want to know the most secure and fastest way to erase a solid state drive. For the competition we have an undetermined operating system and file structure *i am guessing* and we need to erase the data as fast as possible and then the person who
    has the least recoverable data is the winner.
    I am part of the datamining/recovery team so i just want to know what to look for and what to expect. 
    Thanks!
    Also let me know if this is in the wrong section.

    Hi,
    As far as I know, Windows has format fuction for drives, and we could do fast format also.
    Maybe the below links also helpful for you:
    http://howto.cnet.com/8301-11310_39-20115106-285/how-to-securely-erase-an-ssd-drive/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    http://www.tomshardware.com/forum/281081-32-formatting-secure-erase-quick-format
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Regards, Yan Li

  • Best practice for deleting data based on mismatch

    I have two tables which share the same key columns (one is an extension table of the other, basically)
    INVPARTINSTOCK_C is current data
    INVPARTINSTOCK_D is a date extension table
    I want to remove all data in D which is not in C
    I can gather a list of mismatched data by using:
    select
    d.Contract,
    d.Part_No,
    d.Location_No,
    d.Lot_Batch_No,
    d.Serial_No,
    d.Eng_Chg_Level
    from invpartinstock_d d
    MINUS
    select
    c.Contract,
    c.Part_No,
    c.Location_No,
    c.Lot_Batch_No,
    c.Serial_No,
    c.Eng_Chg_Level
    from invpartinstock_c c but how do I apply that to a DELETE FROM INVPARTINSTOCK_D WHERE... ?
    Thanks

    1) It depends on, at least, the data volumes we're talking about, but
    DELETE FROM dtable
      WHERE (column_list) IN (your_minus_query)should be functionally correct. Probably more efficient would be
    DELETE FROM invpartinstock_d d
    WHERE NOT EXISTS(
        SELECT 1
          FROM invpartinstock_c c
         WHERE c.contract = d.contract
        )2) Why isn't there a foreign key relationship that prevents this sort of mismatch in the first place?
    Justin

  • Content filters based on Group Best Practice

    What is best practice for Content filters based on Group.
    What we wanna accomplish.
    We have few groups but i'll make an example on two.
    We have one group that have allowed "Media" and another group that have allowed "Exe".
    What is best practice if one user is in both group.
    How would you do Content filtering?
    I dont see in Content filtering condition
    if (Envelope Recipient does not mach group) then Block.
    Is the best way to create first?
    If (attachment.type="Media") then (insert header="sometext);
    and after in Content filter below
    if (Envelope Recipient) and (Header does not contain "sometext") then Block.

    Hi,
    I understand that I will have to use BPM. What is the best way?

  • FDM file format best practice

    All, We are beginning to implement an Oracle GL and I have been asked to provide input as to the file format provided from the ledger to process through FDM (I know, processing directly into HFM is out..at least for now..).
    Is there a "Best Practice" for file formats to load through FDM into HFM. I'm really looking for efficiency (fastest to load, easiest to maintain, etc..)
    Yes, we will have to use maps in FDM, so that is part of the consideration.
    Questions: Fix or delimited, concatenate fields or not, security, minimize the use of scripts, Is it better to have the GL consolidate etc...?
    Thoughts appreciated
    Edited by: Wtrdev on Mar 14, 2013 10:02 AM

    If possible a Comma or Semi-Colon Delimited File would be easy to maintain and easy to load.
    The less use of scripting on the file, the better import performance.

  • Re engineering of existed process / Best Practice (customization)

    Hi all of you,
    We are implementing SAP ECC 6.0 for one of our clients. Client is asking us to compare their existed business process with Best Practice / standard process and based on the result, asking to prepare a GAP analysis between the existed and best practice for his business.
    SAP itself is a best practice in the respective domains / business processes. By implementing SAP ERP,  the client will have best practice for his business processes as I know. But thing is, how can I explain to the client that SAP has given the best practice and based on which, client will consider the SAP practice as Best Practice for the business??
    Please give me a solution
    Regards,
    Ramki

    f l,
    I'm not sure deleting keys from the registry is ever a best practice, however Xcelsius has listings in:
    HKEY_CURRENT_USER > Software > Business Objects > Xcelsius
    HKEY_LOCAL_MACHINE > SOFTWARE > Business Objects > Suite 12.0 > Xcelsius
    The current user folder holds temporary settings, such as how you've modified your interface.
    The local machine folder holds more important information.
    As always, it's recommended that you backup the registry and/or create a restore point before modifying or deleting any keys.
    As for directories, the only directory Xcelsius uses is the one you install to.  It also places some install logs in the temp directory, but they have no effect on the application.

  • Best Practices for AP Power

    Can someone tell me or explain to me if there are best practices for AP Power based on data or voice networks?  Specifically, if you're tasked to do a Wireless Site Survey with the intention that RRM will not be used how would you configure the APs power for data usage only or voice and data.
    I have never read anything that states a best practice for power ... I tend to set APs at 6 or 12 mW for 2.4GHz and 12mW or 25mW for 5GHz ... but there isn't anything to state whether my practice meet any type of best practice so I'm just looking for any supporting facts or idea of what other Wireless Engineers use when they do site surveys.
    Any information or shared thoughts are much appreciated!!!
    Thanks,
    Mal

    Hello Mal,
    Your question will cause a number of responses from the different RF chefs here, Im sure!
    Ive been in WiFi for a long time. When I sit down with educated customers they will ask the same question. Based on my experience designing high availability, data intensive networks I follow the practice to design for the "lowest" common denominator.
    With this being said, its often a 5 GHz Phone device or even a 2.4 GHz Vocera badge. In any case, both devices live in or around 20mW. I like to design my networks at 12.5mW. I find this works better for RRM and also builds in fluff incase I need to adjust power on a AP.
    If a customer requires both a 2.4GHz and 5 GHz design. I will just design 5 GHz  @ 12.5 mW, as the 2.4 GHz network will surly fit inside of the 5 GHz design.
    I hope this helps...

  • System requirement tp install Utilities Best practices(utilities-V1.500)

    Hello All,
    We want to install SAP Best Practices for Utilities (UTILITIES - V1.500) in our landscape. I checked the system requirements proposed by SAP and observed that most of the s/w releases they are reffering to are ECC5 (500) and our system is at release ECC6 (600).  I beleive that there will be a lot of changes in the config nodes of ECC6 from ECC5. So if we install it in our landscape then will it cause a conflict in configuration? So is it advisable to install Utilities Best Practices in our system? Please find below the system requirement proposed by SAP for installation of best practice and RTD system Configuration. Kindly let me know.
    System Requirements proposed by SAP is as follows
    Software Component     Release     Support Package     Highest Support     Short Description of Software Component
                   Package     
    SAP_BASIS     640     13     SAPKB64013     SAP Basis Component
    SAP_ABA     640     13     SAPKA64013     Cross-Application Component
    ST-PI     2005_1_640     2     SAPKITLQH2     SAP Solution Tools Plug-In
    PI_BASIS     2004_1_640     10     SAPKIPYI6A     Basis Plug-In (PI_BASIS) 2004_1_640
    SAP_BW     350     13     SAPKW35013     SAP_BW 350
    SAP_APPL     500     9     SAPKH50009     Logistics and Accounting
    SAP_HR     500     11     SAPKE50011     Human Resources
    EA-IPPE     300     7     SAPKGPIC07     SAP iPPE 300
    EA-APPL     500     9     SAPKGPAC09     SAP R/3 Enterprise PLM, SCM, Financials
    EA-DFPS     500     9     SAPKGPDC09     SAP R/3 ENTERPRISE DFPS
    EA-FINSERV     500     9     SAPKGPFC09     SAP R/3 Enterprise Financial Services
    EA-GLTRADE     500     9     SAPKGPGC09     SAP R/3 Enterprise Global Trade
    EA-HR     500     11     SAPKGPHC11     SAP R/3 Enterprise HR Extension
    EA-PS     500     9     SAPKGPPC09     SAP R/3 Enterprise Public Services
    EA-RETAIL     500     9     SAPKGPRC09     SAP R/3 Enterprise Retail
    FINBASIS     500     9     SAPK-30009INFINBASIS     FINBASIS 300 : Add-On Installation Request
    SLL-LEG     300     9     SAPK-30009INSAPSLL     SLL-LEG 300_640 : Add-On Installation
    CPROJECTS     300_640     8     SAPK-31408INCPROJECT     SAP cProject Suite 3.10 (based on 640)
    BI_CONT     353     5     SAPKIBIFP5     BI_CONT 353 : Add-On Delta Upgrade
    BP-INSTASS     500V3     0          -     Best Practices Installation Assistant
    BP-BLERP     500V6     0          -     Best Practices All-in-One (based on ECC
    Our RTD System
    Software Component     Release     Support Package     Highest Support     Short Description of Software Component
                   Package     
    SAP_BASIS     701     4     SAPKB70104     SAP Basis Component
    SAP_ABA     701     4     SAPKA70104     Cross-Application Component
    ST-PI     2005_1_700     6     SAPKITLQI6     SAP Solution Tools Plug-In
    PI_BASIS     701     4     SAPK-70104INPIBASIS     Basis Plug-In
    SAP_BW     701     4     SAPKW70104     SAP Business Warehouse
    SAP_APPL     604     3     SAPKH60403     Logistics and Accounting
    SAP_HR     604     11     SAPKE60411     Human Resources
    EA-IPPE     400     15     SAPKGPID15     SAP iPPE
    EA-APPL     604     3     SAPKH60403     Logistics and Accounting
    EA-DFPS     600     13     SAPKGPDD13     SAP Enterprise Extension Defense Forces & Public Security
    EA-FINSERV     600     3     SAPKGPFD03     SAP Enterprise Extension Financial Services
    EA-GLTRADE     600     5     SAPKGPGD05     SAP Enterprise Extension Global Trade
    EA-HR     604     11     SAPK-60411INEAHR     SAP Enterprise Extension HR
    EA-PS     600     13     SAPKGPPD13     SAP Enterprise Extension Public Services
    EA-RETAIL     600     5     SAPKGPRD05     SAP Enterprise Extension Retail
    FINBASIS     600     13     SAPK-60013INFINBASIS     Fin.
    Thanks a lot in Advance!
    Boby Mathew

    Hi ,
    Please go with the sequence 4, 1, 2 ,3. This would give you solution manager key for the other systems also. 
    Rest of the stuff you can get it in the installation guides. http://service.sap.com/instguides
    Regards,
    Pavan

Maybe you are looking for

  • Name of tables of fb50 and fb60 and fb70 and fbcj

    hi all i make a query from sq01 and it for all  transactions io make tranaction in fb50 and fb60 and fb70 and fbcj but i need the name of these tables tables of documnt header and line items tables of vendor header and line items tables of customer h

  • Cursor variable and for update

    hi can anyone explain me why can't we use "for update " with a Cursor Variable. Thanks in advance.

  • Indesign forms and combo boxes

    Hey, I have created an interactive document which is working perfectly, however I just need to clarify a couple of things. • Combo boxes - can I change the actual appearance of these? Like colour, size of drop down arrow etc? I know I can change the

  • Adobe Flash Broke my LabVIEW Help

    Recently, all of a sudden whenever I opened up LabVIEW Help (such as right-clicking on a function/VI and selecting Help), the Help window would appear, the left pane would be filled in, but the right pane would be blank. The inner part of the title b

  • Is nokia lying about n95 tech spec?

    Hi. I is wondering about one thing. In several programs on my Nokia n95 I have seen that the CPU is only 206mhz!!! :/ I have reading about the nokia n95 since October last year. And i understand it was a 330mhz. But why is all the program I have used