h:outputText/ and its value property (escape)

if I do this:
<h:outputText escape="false" value="<br/>" />
it works fine. however, if I do this:
<h:outputText escape="false" value="#{pc_Mypage.formatBR}" />
it doesn't work fine. It prints escaped characters. What should I do? :(

Works ok for me. Can you show your formatBR method?
Thanks,
CowKing

Similar Messages

  • h:outputText/ and its value property

    I have this case:
    <h:outputText id="text1" value="#{varpak.status}" />
    now, I would like to format its value property to be something like:
    <h:outputText id="text1" value="myFunction(#{varpak.status})" />
    and then to write myFunction's body. Is this possible? How can I do that? Is there any example? I couldn't find any. Where should I put myFunction's body?
    Thank you in advance.

    I'm not talking about JavaScript.
    I would like to write my own Java function:
    String formatStatus(String status, Date date) {
    If (status.equals("A"))
    return "Active from date " + date;
    else
    return "Not active";
    and then to replace inside my dataTable's column:
    <h:outputText id="text2" value="#{varpaketi.status}" />
    with:
    <h:outputText id="text2" value="#{pc_Paketi.formatStatus($status, $date)}" />
    where $status and $date are dataset variables which were displayed in column of my datatable.

  • Display data to edit based on fields and its value defined in internal tabl

    I need to display data in a internal table for editing in a screen.
    you have a internal table with field name , data types and its value. I need to display data in a screen ( sceen painter not in a report) row by row in vrtical format.
    The internal table's structure not fix. you can have any number of fields in the internal table.
    Can you please send me code if it is available with you or send me any senario in SAP if any ...so that i can debug to extract the code..
    have to display data vertically as below in editable format,
    for example,
    Airline
    Flight Number
    Flight date
    Flight price
    Airline Currency
    Plane Type
    Maximum capacity
    Occupied econ.
    Total
    No of fields will change.
    also F4 help needs to be attached with each field.
    I think it can be done through step loop. can anybody give sample code or tell me where to find in SAP or somewhere else?
    it will be great help to me..
    Sanjeev

    Hi
    just check out this program DEMO_DYNPRO_STEP_LOOP.

  • Function to extract characteristics and its value from PI sheet

    Hi experts,
      I am working on a report to generate Avg. deckle for the month form the PI sheet. In the PI sheet the data that is displayed is basically the message characteristcs and its value.
    Please tell me ne function that will give me the related data to be displayed.
    Thanks in advance..

    reading the characteristics: CAVC_DB_READ_CFG_IN_CBASE.
    reading the values according to the characteristics: CARD_CHARACTERISTIC_READ.
    Note: the second FM is obsolete according to SAP. but it still works in opposition to the new ones.

  • Is there any function module to get vc characteristics and its value using material number?

    Hi Experts,
    I am using BAPI_CLASS_GET_CHARACTERISTICS, BAPI_OBJCL_GETCLASSES to get characteristics description and its values.
    Is there any other Function module to pull this values using material number?
    Thanks in Advance.
    Ramkumar

    Have you tried this BAPI_OBJCL_GETDETAIL
    Import parameters
    MATNR value in the OBJECTKEY
    MARA in OBJECTTABLE
    Class name in CLASSNUM
    '001' in CLASSTYPE
    You will get the Class Characteristics data into these tables:
    ALLOCVALUESNUM
    ALLOCVALUESCHAR
    Jogeswara Rao K

  • Characterstics and its values

    Hi All,
              In whih table i could find Characterstics and its values.
    regards
    sunil

    Hi sunil,
    T2513                          Table of Characteristic Values
    T2538                          Table of Characteristic Values
    will give you Characteristic wise values.
    AUSP                           Characteristic Values for STD LOBM Characteristics.
    Find Some More herewith.
    COMM_CFGCLNHIER                Numeric Characteristic Values Hierarchy
    COMM_CFGCLSHIER                Symbolic Characteristic Values Hierarchy
    COMM_CFGNHIER                  Numeric Characteristic Values Hierarchy
    COMM_CFGSHIER                  Symbolic Characteristic Values Hierarchy
    COMM_CFGVALSYM                 Symbol Table for Characteristic Values
    EHQMT_CODE2                    EH&S-QM: Assignment of Characteristic Valu
    IBSYMBOL                       IB: Characteristic Value Assignment
    PGPLE                          SOP Characteristic Values
    RCCHARVAL                      Characteristic Value for Classification
    RSMDTMPTAB                     Temporary Storage for Characteristic Value
    SCEVALSYM                      Symbol Table for Characteristic Values
    T22A7                          Text Table for Characteristic Values
    T22A8                          Text Table for Characteristic Values
    T22A9                          Text Table for Characteristic Values
    T22B0                          Text Table for Characteristic Values
    T22B1                          Text Table for Characteristic Values
    T22B2                          Text Table for Characteristic Values
    T22B3                          Text Table for Characteristic Values
    T22B4                          Text Table for Characteristic Values
    T22B5                          Text Table for Characteristic Values
    T22B6                          Text Table for Characteristic Values
    T22E6                          Text Table for Characteristic Values
    T22E7                          Text Table for Characteristic Values
    T22E8                          Text Table for Characteristic Values
    T22E9                          Text Table for Characteristic Values
    T241B                          Description of Characteristic Values
    TDCHARACVALUE_T
    TDCHARACVALUE2_T
    TE518G
    TF199C
    TFC_INST_VAL
    TFC_TEMPL_VAL
    TFIN000
    TFK115G
    TFK115S
    TFK125G
    TKEPROT
    TRACC_GROUP
    TRACC_GROUP_T
    VTBLSLA
    WRF_APC_PACHR
    WRF_CHARVAL
    WRF_CHARVALT
    WYT2M
    I am sorry but I have pasted this much data because you haven't specified the requirement.
    Regards,
    Shyamal
    Edited by: Shyamal Joshi on Aug 20, 2008 1:01 PM
    Above all will give you in form that can be transported to EXCEL

  • H:selectOneMenu and its value parameter trouble

    Hello!
    I have a form in my jsp page ^
    <h:dataTable id="table" value="#{Reference.template.fields}" var="list" rowClasses="list_row_odd, list_row_even" columnClasses="align_right, align_left" width="100%" border="0" cellpadding="4" cellspacing="1">
                <h:column rendered="#{(list.label != 'code')}">
                  <h:outputText value="#{list.label}" escape="false"/>
                </h:column>
                <h:column rendered="#{(list.optionsSize < 1)&&(list.label != 'code')}">
                  <h:inputText id="ref_input" value="#{Reference.faculty}" readonly="true" rendered="#{list.label == '&#1060;&#1072;&#1082;&#1091;&#1083;&#1100;&#1090;&#1077;&#1090;'}" size="50"/>
                  <h:inputText id="ref_input_1" value="#{list.value}" rendered="#{(list.label != '&#1060;&#1072;&#1082;&#1091;&#1083;&#1100;&#1090;&#1077;&#1090;') && (list.value == '')}" size="50"/>
                  <h:inputText id="ref_input_2" value="#{list.value}" readonly="true" rendered="#{(list.label != '&#1060;&#1072;&#1082;&#1091;&#1083;&#1100;&#1090;&#1077;&#1090;') && (list.value != '')}" size="50"/>
                </h:column>
                <h:column rendered="#{(list.optionsSize > 0) && (list.label != 'code')}">
    // here is the problem -----------------------------
                  <h:selectOneMenu id="list" value="#{list.value}">
                    <f:selectItems value="#{list.options}" />
                  </h:selectOneMenu>
                </h:column>
                <h:column rendered="#{(list.label != 'code')}">
                  <h:outputText value="#{list.lov}" escape="false"/>
                </h:column>
              </h:dataTable>the trouble is if there is a value parameter, the form is submitted to server
    as empty one, if there isn't value parameter it works well.
    list.getValue - returns String
    and i strongly need to show the selected value!!!1
    Please help

    I'm not talking about JavaScript.
    I would like to write my own Java function:
    String formatStatus(String status, Date date) {
    If (status.equals("A"))
    return "Active from date " + date;
    else
    return "Not active";
    and then to replace inside my dataTable's column:
    <h:outputText id="text2" value="#{varpaketi.status}" />
    with:
    <h:outputText id="text2" value="#{pc_Paketi.formatStatus($status, $date)}" />
    where $status and $date are dataset variables which were displayed in column of my datatable.

  • How to find custom parameters and its values?

    Hi,
    Please let me know how to find the list of custom parameters with its possible values and its use in programs?
    Thanks.

    There is no validation for the values that can be input so you can put anything in the value field. For example, try "BUK" and
    then a value for a company code you know does not exist.
    When you run a transaction with that it will default that value.

  • FM to get OA/SA history and its value

    hi guys,
    is there any FM that can be used to get OA/SA history and its follow-on documents value ..pls advice

    Hi Huang,
         i had a similar requirement and unfortunately i wasnt able to get any solution on this(probably there isnt).
    how to get Position of cursor and its cell value in webdynpro alv
    My requirement was to pick up the value from the cell and do a multi paste to all lead selected records of the same column.
    Sadly, i had to do a workaround to achieve the solution.
    1) user needs to click on "Enter" key with cursor on the cell
    2) lead select all the records where multipaste is required
    3) then click on button "Paste" on application bar to paste the values to multiple cell.
    Let me know if you get anything on this (for my education).
    Regards,
    Tashi

  • How can i remove a key and its value from properties file

    hi all,
    i want remove a particular key and associated value from the
    properties file. is their any standard way of doing?
    thanks inadvance
    daya

    hi,
    thanks
    i am able to remove the key,
    one more question how can avoid storing date and time
    in properties file.
    thanks
    daya

  • How to search for a field and its value in an internal table

    Hi,
    I want to search for a field(which i dont know whether it exists or not) in an internal table and on finding that field, I have to update the value of that field. How do I do it? I think its similar to how SEARCH works but i wanted to know the internal table eqivalent of it.

    Hi Sujay,
    this code will help ful to u, just gi through it,
    TABLES : KNA1,VBAK,VBAP.
    ***********INTERNAL TABLE DECLARATIONS****************
    DATA : IT_KNA1 TYPE TABLE OF KNA1,
           WA_KNA1 TYPE KNA1.
    DATA : IT_VBAK TYPE TABLE OF VBAK,
           WA_VBAK TYPE VBAK.
    DATA : IT_VBAP TYPE TABLE OF VBAP,
           WA_VBAP TYPE VBAP.
    START-OF-SELECTION.
      SELECT * FROM KNA1
      INTO TABLE IT_KNA1
      WHERE KUNNR = P_CUST.
      IF NOT IT_KNA1 IS INITIAL.
        SELECT * FROM VBAK
        INTO TABLE IT_VBAK
        FOR ALL ENTRIES IN IT_KNA1
        WHERE KUNNR = IT_KNA1-KUNNR.
        IF NOT IT_VBAK IS INITIAL.
          SELECT * FROM VBAP
          INTO TABLE IT_VBAP
          FOR ALL ENTRIES IN IT_VBAK
          WHERE VBELN = IT_VBAK-VBELN.
        ELSE.
          WRITE : / 'Customer',P_CUST,'does not exist ......'.
        ENDIF.
      ELSE.
        WRITE: / 'sales order does not exist for',P_CUST.
      ENDIF.
    Rewards points plz if useful
    Ganesh.

  • Details about BayerGreenSplit and its value

    Does anyone know anything more than the few lines written in the DNG documentation about this tag, BayerGreenSplit?
    How is the green pixels divergence measured? How can one decide what BayerGreenSplit value corresponds to his/her camera?
    The 0 - 5000 range looks quite strange. Maybe the phenomena described has also another name?
    Any help is appreciated.
    Thank you.

    OK, I exhaled. ;)
    Used to think the weird clay texture ACR rendered high frequency detail like blades of grass and foliage in the distance in my Pentax PEF's was something undesirable. But after comparing ACR's ease of use, quality and speed of its editing tools and simpler interface compared to other raw converters, the odd texturing is tolerable.
    And besides that it can only be seen at 200% zoomed view anyway and can't be seen even on 20x30in. print enlargements. This texture also produces some very clean results when applying aggressive sharpening as well, so I'm thinking whatever algorithm Adobe's engineers are using to produce such a texture must be intentional.
    I'm just fascinated by all the variations achieved just with demosaicing algorithms.

  • Downlading Material stocks and its Value, storage location wise

    Dear Experts,
    As we are reimplementing SAP, we need to download the
    a)     stocks Plant and storage location wise for all the materials. Bcoz stocks are maintained in different storage locations.
    b)     Value of stocks for each material in the Plant and storage location wise, Bcoz stock qty will be different in different location and hence the value will be dependent upon the qty ?
    How can we extract this ? From which tables do we need to extract  this ?
    Can any one guide on this ?
    Regards     
    Javeed Ahamed.

    Goto MB52 report ,change the layout asper your requirement and extract to excel.To extract follow this
    go to menu bar
    system-- list-- save -- local file
    alternatively you can take it MBEW table also(se16n)

  • How to get active document  swatch color and its value

    Hi
    i want to get the swatch color of active document
    i use 3 to 4 colors both cmyk and pantone which is in swatches
    now i want to get their values using script
    any one please help me
    Thank you
    Appu

    Download the script "Render Swatch Legend" from the following site: http://www.wundes.com/JS4AI/
    This script generates a legend of rectangles for every swatch in the main swatches palette. You should be able to grab the code you need from this.

  • Report showing overdelivery material and its value.

    A report is required showing the material received by giving overdelivery/unlimited tolerance.  It should give the details of the material,quantity excess received, excess quantity value.
    How to get it.
    Pl reply.
    T.SRINIVAS

    Hello Friend
    Try Report with Tcode ME2M and in input screen dont forget to choose "ALLES" in Scope of list.
    Else If your corporate policy is the same regardless of vendor /
    material combination, then you can use the ME2N transaction. It
    has a dynamic selections button that allows you to search on
    practically any PO field. The Delivery tolerances fields are
    contained on the PO item folder of the dynamic selections.
    Additionally, you can enter a document date restriction to limit
    the results. I also recommend entering "WE101" - "OPen Goods
    Receipt" as a Selection parameter to keep the list to include
    open, GR relevant PO Items.
    If the Delivery tolerances vary by Material vendor and you can
    not create variants in the ME2N transaction to capture the
    relevant scenarios, then you may have to write a SAP query to
    compare the PO Item to the Purchasing Information REcord. If
    this is the case, I recommend using Infoset MEPOLDB for the
    Purchase ORder information, and table EINE for the Delivery
    tolerance information of the PIR.
    Reward if useful
    Regards
    SE
    Edited by: SAP Enjoy on Jan 24, 2008 4:56 PM

Maybe you are looking for

  • Creating a new schema

    This may sound really simple, but I would like to create a new schema within my 9i database. How do you do that? I have found how to add just about everything else, but not schemas. Thanks

  • Need activation help

    I have had creative suite premium installed on my computer for a long time, but now it states that my computers configuration has changed and needs to be reactivated, but it cannot be activated by internet, and the phone number states that adobe no l

  • Sharing photos to e-mail recipients.

    I am using OS X 10.5.8.  When I select a series of photos in iPhoto and hit the share icon I get an e-mail form.  When I add a number of recipients to the address window, if there are a lot, they don't appear in the window.  Also, the text that I typ

  • HTML to XML class

    Assuming that the HTML is well formed, can't there be a JAVA class that can do what http://www.html2xml.com is doing. I need this for a particular project regarding some sites that dont yet have an XML based site but i need to run some service from t

  • Strange problem in N81

    I have this weird problem on my Nokia N81. The screen is flashing all the time, and I can't solve the problem myself. When I restart the phone the problem disappears, but after the keys are locked and opened again it comes back. Can anyone help me? H