Child component values submitted when parent component not rendered

This pertains to the standard JSF components, but may carry over into Sun JSC.
I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
Is there a bug here?

This pertains to the standard JSF components, but may carry over into Sun JSC.
I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
Is there a bug here?

Similar Messages

  • Did not auto copy child's value to new parent row

    I have page, which have three level
    l) level 1 is Scroll area (group) , level 2 is Grid( members)
    2) if My Scrollrow1 have two rows on his Grid(level)
    when I add one more row in level 1(my Scroll Arear) , it would auto copy the Grid value.
    what I want is if I add one new row at level 1 , I don't want it auto copy child's value( Grid) to new parent( scroll) row

    This is default behaviour of Effective dated records
    PeopleTools 8.52: PeopleSoft Application Designer Developer's Guide > Planning Records, Control Tables, and TableSets > Effective Dates
    When you run a page with effective-dated records and you insert a row, the system copies the contents of the previous row into the new row to save you keying time. In a large effective-dated table, you do not want to reenter all of the data when only a single field changes. Also, anytime you insert an effective-dated row using PeopleCode, the system copies the contents of the previous row.
    I believe this happens when Effdt is the last key in your record. If you do not want to use this feature, try moving Effdt to a higher order in the key structure.
    Regards,
    Hakan

  • Component tree destroyed when it should not be

    I have a custom component which derives from UICommand, clicking on which pops up a new window ... i have a listener associated with this component ... within this listener I call the setAction(outcome) method on the associated UICommand component with an outcome string (whose navigation rule is defined in faces-config.xml) ... This works properly in that the new window opens with the correct JSP.
    However, in doing this, JSF destroys the component tree of my original page ... Hence when I perform some operation on the original page (after opening the new window), it constitutes a new tree instead of using the tree which was already created for this page ...
    How do I solve my problem? - I'd like the original component tree to not get destroyed as well as work with the new window.
    Thanks.

    Currently, JSF only saves the current tree (it does
    not save more than one tree). A new State Saving
    proposal is being developed which will
    address the problem you are having.
    -rogerWow, that's a pretty significant change. Can you give us any hints about other major differences currently under consideration for the next revision?
    Thanks,
    Jonathan

  • Wrong values submitted when submitting a form with javascript

    Hi guys, I know this aint a struts forum, but I did not know where else to go. So here goes..
    I have the following code in my jsp
    <logic:iterate id="ex" name="myForm" property="users">
    <html:multibox property="deleteUsers">
    <bean:write name="ex" property="userId"/>
    </html:multibox>
    </logic:iterate>
    I have about 10 users of which 5 have already been marked for deletion from another action. So basically, the above tag renders 10 rows with a checkbox in the beginning to select users to delete. Also 5 of them have been checked already, I mean when the form is loaded. So checkboxes 1, 4, 5, 8, 10 have already been checked. Now I have a link on which goes like this
    Select None. On this I call a javascript which does the following
    function uncheckAll() {
    for (i = 0; i < 10; i++) {
    document.myForm.deleteUsers.checked = false;
    This unchecks all my checkboxes.
    Now comes the problem. I am submitting the form using a javascript which is invoked on clicking on the submit link using document.myForm.submit(); The problem is the deleteUsers property in myForm still retains the old values. If the checkboxes are unchecked no values should be submitted for this and the deleteUsers array should be empty. Can anyone help me out on this.
    Thanks.

    Checkboxes only submit a value when they are "on"
    They submit nothing if they are not selected.
    The problem comes - do you interpret no checkbox values as "clear all values" or "leave the values alone"? Struts assumes the latter.
    Your form is probably being kept in session?
    Try implementing the reset() method of your action form and set its property to be equivalent to no checkboxes selected.

  • Fireworks web designs when using slices not rendering properly in IE

    When I create web pages in Fireworks CS6 and use slice tool then export the html, IE 8 and 9 renders borders and misaligned pixels. But when I view the html in Chrome, Safari or Firefox the html pages are rendered as I want them to render. Am i doing something wrong and how can I get html pages to render properly in IE.
    thank you for any help!

    States are used for animations or creating things like buttons from scratch. Use pages for designing the pages for your site.
    In your place I would export only the images from Fireworks, and then build the pages in Dreamweaver with those images. Fireworks HTML is OK for creating prototypes, but, as you can see, the HTML it creates is often not stable enough for web pages. If you want to use HTML from FW, it's not the spacers that cause the problems. The problems are usually generated by the way the page is sliced. To create stable tables, the sliced columns and rows need to line up next to and under each other, like a checkerboard. If the slices are staggered in brick fashion, the table can break apart. That's what you are seeing in IE.

  • Actual cost component values

    Hi
    We are facing an issue that actual cost component values in our system are not calculating correctly. We consider that there might be difference in our understanding regarding the calculation of actual cost component values.
    Therefore I want to understand that how actual cost component values are calculated in SAP Material Ledger. I will appreciate if anyone can elaborate this with example and formula, used for calculation.
    Regards

    Hi Saad,
    Please find below about the actual cost calculation in ML.
    In ML single -level and multi-level material settlements are available. Multilevel price determination calculates the periodic unit price for a material. The standard price, the single-level differences cumulated in the period, the differences between planned and actual prices, as well as input material differences (multilevel differences) are all taken into account.
    The material price calculated in multilevel price determination can be used for inventory valuation.
    The actual price for each material can be updated to the material master for the closed period.
    -During price determination, the system carries out the following calculation: 
    =>Daily Transaction
    1) Purchasing XYZ Qty 20 Std : 10, Actual : 11
       Dr) Stock XYZ 200                   CR) GRIR 220
    Purchase price differ XYZ 20
    2) Purchasing ZYX Qty 20 Std : 20, Actual : 22
       DR) Stock ZYX 400                   CR) GRIR 440
    Purchase price differ ZYX 40
    3) Good issue XYZ Qty 15 Std : 10
       DR) Material cost XYZ 150               CR) Stock XYZ 150
    4) Good issue ZYX Qty 15 Std : 20
       DR) Material cost  ZYX 300               CR) Stock ZYX 300
    5) Good receipt  234 Qty 15  Std : 40
      DR) Stock 234 600                    CR) Clearing 600
    6) Good delivery 234 Qty 10  Std : 40
       DR) Material cost  234 400         CR) Stock 234 400
    7) Good receipt  123 Qty 10 Std : 50
        DR) Stock123 500                    CR) Clearing 500
    8) Good issue  123 Qty 5 Std : 50
       DR) Material cost  123 250         CR) Stock 123 250
    9) Good receipt  ABC Qty 10 Std : 60
        DR) StockABC 600                    CR) Clearing 600
    10) Sold ABC Qty 5 Std 60
        DR) COGS 300                          CR) Stock ABC 300
    => Monthly Material Ledger Closing
    1) Single-level price determination
       DR) Stock XYZ  5 ( Current Stock 5 / Total Purchase Qty 20 *  price difference 20) 
       CR) Purchase price differ XYZ 20
    *Transfer price difference to 234  15 ( Good issue  qty 15 / Total Purchase Qty 20 *  price difference 20)
        DR) Stock ZYX  10 ( Current Stock 5 / Total Purchase Qty 20 *  price difference 40) 
        CR) Purchase price differ ZYX 40
    *Transfer price difference to 234  30 ( Good issue  qty 15 / Total Purchase Qty 20 *  price difference 40)
    2) Multi-level price determination
        DR) Stock234  5 ( Current Stock 5 / Total Good receipt 15 *  price difference 15) 
        CR) Transfer price difference to 234 from XYZ  15
    *Transfer price difference to 123 from 234  10 ( Good issue  qty 10 / Total Good receipt 15
           * price difference 15)
        DR) Stock  234 10 ( Current Stock 5 / Total Good receipt 15 *  price difference 30) 
        CR) Transfer price difference to 234 from ZYX 30
    *Transfer price difference to 123 from 234 20
            ( Good issue  qty 10 / Total Good receipt 15 *  price difference 30)
        DR) Stock 123 15  ( Current Stock 5 / Total Good receipt 10 *  price difference 30) 
        CR) Transfer price difference to 123 from 234 30
    * Transfer price difference to ABC from 123 15
                ( Good issue  qty 5 / Total Good receipt 10 *  price difference 30)
        DR) Stock  ABC 7.5 ( Current Stock 5 / Total Good receipt 10 *  price difference 15) 
        CR) Transfer price difference to ABC from 123 15
    *Not allocated price difference 7.5
                ( Sold qty 5 / Total Good receipt 10 * price difference 15)
    3) consumption revaluation
             DR) COGS ABC 7.5                     
             CR) Not allocated price difference 7.5
    => Current Actual Stock Amount
       1) XYZ Qty : 5 Actual Amount : 55 (actual price : 11)
       2) ZYX Qty : 5 Actual Amount : 110 (actual price : 22)
       3) 234 Qty : 5 Actual Amount : 215 (actual price : 43)
       4) 123 Qty : 5 Actual Amount : 265 (actual price : 53)
       5) ABC Qty : 5 Actual Amount : 307.5 (actual price : 61.5)
    I hope you understand the process of actual cost cal in ML.
    Regards,
    chandu.

  • Adobe Form in HRFORMS: Value of Textfield on Masterpage is not rendered!

    Hi all,
    I design a new form using HRFORMS. When I put a simple textfield on a master page and give the textfield a default value and render my form using transaction PC00_M01_CALC_SIMU, the value of the textfield is NOT rendered.
    I am using Adobe LiveCycle Designer 8.0 within SAP and the Adobe Acrobat 7.0.9 for rendering PDF documents.
    The ADS Server Version is: 800.20070708051308.406522
    The funny thing is, if you do the same things in Adobe Designer (stand-alone) it works perfectly as it should.
    Is this a known bug?
    Thanks.
    Maik

    I have figured out myself.
    It is a bug in SAP and has also been reported as a bug to SAP.
    It works fine with all Adobe Designer stand-alone versions as well as Adobe LiveCycle Forms Server 7 and 8.
    As a workaround in SAP you should use STATIC TEXT with "FLOATING FIELDS" instead of TEXT FIELDS.

  • Value of Textfield on Masterpage is not rendered!

    Hi all,
    I design a new form using HRFORMS. When I put a simple textfield on a master page and give the textfield a default value and render my form using transaction PC00_M01_CALC_SIMU, the value of the textfield is NOT rendered.
    I am using Adobe LiveCycle Designer 8.0 within SAP and the Adobe Acrobat 7.0.9 for rendering PDF documents.
    The ADS Server Version is: 800.20070708051308.406522
    The funny thing is, if you do the same things in Adobe Designer (stand-alone) it works perfectly as it should.
    Is this a known bug?
    Thanks.
    Maik

    I have figured out myself.
    It is a bug in SAP and has also been reported as a bug to SAP.
    It works fine with all Adobe Designer stand-alone versions as well as Adobe LiveCycle Forms Server 7 and 8.
    As a workaround in SAP you should use STATIC TEXT with "FLOATING FIELDS" instead of TEXT FIELDS.

  • JSF RI  1.1_01: UIInput component value was not set during render response

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

  • How to make content of af:popup dynamic? Component Value is not updating.

    HI,
         I am not able to update the component used in af:popup dynamically.
         In my case, the value of the component used in the popup is updated every time before opening the popup.
         I am building the af:popup. I am using component binding for my components. And I am setting data in the component using the component in the Managed bean only. The getter method for every component that I bind gets called only once i.e. while loading of the page. So when ever I change any thing in the component in managed bean, it is not reflecting in JSPX page. Coz it not calling the getter method of the component, so it is not getting the updated status for the component. But if you refresh the page you will get the updated component.
         Following is the sample code to simulate my problem,
         JSPX Page:-
    <af:commandButton text="RCF Dialog (Without Script)" id="button1"
    windowHeight="600" windowWidth="600">
    <af:showPopupBehavior popupId="samplePopup" alignId="button1"
    align="afterEnd"/>
    </af:commandButton>
    <af:popup id="samplePopup" clientComponent="false"
    contentDelivery="lazyUncached">
    <af:dialog title="Sample Dialog Test" modal="true"
    cancelVisible="true" okVisible="true">
    <af:inputText label="Label 1" value="#{searchField.myValue}"/>
    <af:inputText label="Label 2" binding="#{searchField.textField}" />
    </af:dialog>
    </af:popup>
    Managed Bean:-
    public static int count = 1;
    private String myValue = null;
    private CoreInputText textField = new CoreInputText();
    public String getMyValue(){
    String value = "MESSAGE_" + count;
    System.out.println("Count ==>" count " Value ==>"+value);
    count++;
    return value;
    public CoreInputText getTextField() {
    //Get called only once at the page load.
    textField.setValue(getMyValue()+"_XXX");
    return textField;
    public void setTextField(CoreInputText textField) {
    //Get called every time dialog is opened.
    this.textField = textField;
    Please let me know what to do make the content of the af:popup dynamic.
    Any suggestions are welcome.

    HI,
    I have simulate my problem using one text field component in side the popup. It is the same way that i am using. In my case there is more code in the constructor of the dialog bean.
    Following is the code,
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document title="Popup Demo">
    <af:form>
    <af:spacer width="10"/>
    <af:commandButton text="RCF Dialog (With Script)" id="button"
    actionListener="#{mainScreen.processAcion}"/>
    <f:verbatim>
    <![CDATA[
    <script>
    function launchSampleDialog() {
    var popup = AdfPage.PAGE.findComponent("samplePopup");
    var hints = {};
    hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_OVERLAP;
    hints[AdfRichPopup.HINT_ALIGN_ID] = "button";
    popup.show(hints);
    </script> ]]>
    </f:verbatim>
    <af:popup id="samplePopup" clientComponent="false" contentDelivery="lazyUncached" >
    <af:dialog title="Sample Dialog Test" modal="true" id="dialogId" cancelVisible="true" okVisible="true">
    <af:inputText label="Label 1" />
    <af:inputText binding="#{dialogBean.textField}" />
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    //Main Screen Bean set in session scope.
    public class MainScreenBean {
         private static int count = 1;
         public void processAcion(ActionEvent event){
    String updatedData = "ABCDEFG__" + count;
    System.out.println("Inside process Action of Main Bean. Data set in Scope ==>" +updatedData );
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getExternalContext().getSessionMap().remove("dialogBean");
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getProcessScope().put("updateData", updatedData);
              count++;
    ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    service.addScript(facesContext, "launchSampleDialog();");
    //Popup Dialog Bean set in session scope.
    public class DialogBean {
    private RichInputText textField = null;
    public DialogBean() {
    textField = new RichInputText();
    textField.setLabel("Custom TextField");
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    textField.setValue(afContext.getProcessScope().get("updateData"));
    System.out.println("Data From Scope in Dailog Bean = " + afContext.getProcessScope().get("updateData"));
    RequestContext.getCurrentInstance().addPartialTarget(textField);
    public RichInputText getTextField() {
    System.out.println("Inside getter for the component in Dailog Bean. Value = " + textField.getValue());
    return textField;
    public void setTextField(RichInputText textField) {       
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    //Uncomment following line and run again. It will start showing updated value. But this will get called many times.
    //textField.setValue(afContext.getProcessScope().get("updateData"));
    System.out.println("Inside setter for the component in Dailog Bean. Value = " + textField.getValue());
    this.textField = textField;
    }

  • Dim. SCD2 issue, when parent value change. The child loses parent history.

    oracle DB: 10.2
    owb: 10.2.0.4
    Create a SCD2 type dimension with six levels in it. Alle levels have the same columns, see below (change the nr for the level)
    L1_KPL_PK
    L1_DATA_TILL
    L1_SLEUTEL
    L1_DESC
    L1_DATA_FROM
    L1
    When running the mapping, the hierachie is perfectly inserted into the table. When changing the
    value of the L1 parent in te source and running the mapping again the following
    is happend:
    He closed the parent record with the old value and insert a till date.
    He update alle child record with the new value
    He inserts a new record with the new value of the parent.
    What i should expect wat would happen was:
    He closed the parent record with the old value and insert a till date.
    He close alle child records with the old value and insert a till date.
    He inserts new records for all child with the new value of the parent.
    He inserts a new record with the new value of the parent.
    I searched on the net for this issue and i found oracle fixed it in a patch 10.2.04 The bug is know under nr 6004133
    "Child looses parent reference when SCD2 attribute change in parant.
    Installed the patch(7005587) and renewed my dimension, table, and mapping in the repository. Ran the mapping, but the result is not what i expexted as
    descriped above.
    Help needed to fix this issue. So alle histoy is beeing saved.

    Hi
    There was a change in OWB 10.2.0.3 (I think it was this patch) to support this scenario.
    If you go to the SCD settings panel for your dimension, each level also has the parent level's identifying column (this is the new bit) and you can set the Record History property for the parent identifier in order that a change in this will trigger history in the level (so the hierarchy can be versioned). So if you set this and synchronize the dimension operator in your map and redeploy the map, you should be in shape.
    So for example if you had L1, L2, L3 with attributes ID, NAME, ATT, EFF_DATE and EXP_DATE then the SCD panel would have;
    *L1
    ID
    NAME
    EFF_DATE eff date
    EXP_DATE exp date
    ATT trigger history
    *L2
    ID
    NAME
    EFF_DATE eff date
    EXP_DATE exp date
    ATT trigger history
    L1_ID trigger history
    *L3
    ID
    NAME
    EFF_DATE eff date
    EXP_DATE exp date
    ATT trigger history
    L2_ID trigger history
    Let me know if its unclear.
    Cheers
    David

  • Component initialization when used by parent component

    Hi everybody
    I have 'parent' and 'child' components.
    View V1 belongs to child and, upon receiving an inplug, performs a specific view controller method InitView performing activities such as executing controller methods to populate its context depending on the plug parameters.
    V1 belongs to Window W1 as default view.
    child is used in parent component and the child W1 interface view is used in a navigation step in parent.
    Parent view V2 should fire an outbound plug towards the W1 interface view which should handle the related inbound plug calling V1's InitView method.
    In order to achieve this, I assume I should declare V1 view controller as required controller in W1 interface view controller. However this is not possibile afaik.
    Any suggestion? Should I move the InitView method within the child component/custom controller?
    Thanks
    Vincenzo

    Hi,
    how does the page source look ?
    Frank

  • Partial triggers not Fired on partial submit when invalidate component

    Can somebody tell me why Partial triggers are not Fired on partial submit when invalidate component in the validator. Neither error message next to the component is displayed.
    Does somebody has an idea how can i solve this?
    Thank you very much in advance

    Hi, that is a test case which i have promised you:
    The .jspx page contains two fields , one of which has autosubmit = true; You will see, that when invalidate test field 2 partial triigers on field 1 are not fired neither faces message next
    to the field 2 appears.
    If you add programatically Field 1 and Field 2 partial trigerrs this solve the problem.
    I'm waiting for your response.
    Regards,
    Krasi
    <?xml version='1.0' encoding='windows-1251'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1251"/>
    <f:view>
    <afh:html>
    <afh:head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1251"/>
    <title>pprTest</title>
    </afh:head>
    <afh:body>
    <af:form>
    <af:panelLabelAndMessage label="Test Field 1">
    <af:outputText binding="#{testBean.testField1Comp}"
    partialTriggers="testField2"/>
    </af:panelLabelAndMessage>
    <af:inputText label="Test Field 2"
    id="testField2"
    autoSubmit="true"
    binding="#{testBean.testField2Comp}"
    partialTriggers="testField2"
    validator="#{testBean.testField2_validator}" />
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.faces.component.UIXInput;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    import javax.faces.application.FacesMessage.Severity;
    public class TestBean {
    private CoreOutputText testField1Comp;
    private CoreInputText testField2Comp;
    public TestBean() {
    public void testField2_validator(FacesContext facesContext,
    UIComponent uiComponent, Object value) {
    // If input equals "invalidate" set value of the
    // testField1Comp on "Component is invalid"
    // Invalidate input and add an error message
    if (((String)value).equals("invalidate")) {
    testField1Comp.setValue("Component is invalid");
    invalidateInput( (UIXInput)uiComponent,"TestField2","Test Field 2 is invalid!");
    // If input not equals "invalidate" set value of the
    // the testField1Comp on "Component is valid"
    else{
    testField1Comp.setValue("Component is valid");
    //Dynamic adding of the partial targets , solves the problem
    // with losing of partial triggers
    //AdfFacesContext.getCurrentInstance().addPartialTarget(testField1Comp);
    //AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
    public void setTestField1Comp(CoreOutputText testField1Comp) {
    this.testField1Comp = testField1Comp;
    public CoreOutputText getTestField1Comp() {
    return testField1Comp;
    public void setTestField2Comp(CoreInputText testField2Comp) {
    this.testField2Comp = testField2Comp;
    public CoreInputText getTestField2Comp() {
    return testField2Comp;
    public static void invalidateInput(UIComponent uiComp,String compName, String message) {
    showErrorMessage(uiComp , message);
    if (uiComp instanceof UIXInput){
    ((UIXInput) uiComp).setValid(false);
    public static void showErrorMessage(UIComponent component, String message) {
    showMessage(component, message, FacesMessage.SEVERITY_ERROR);
    private static void showMessage(UIComponent component, String message, Severity severity) {
    String compId = component.getId();
    FacesContext ctx = JSFUtils.getFacesContext();
    FacesMessage facesMessage = new FacesMessage(
    severity, component.getId() , message);
    ctx.addMessage(compId,facesMessage );
    }

  • CO-PA Cost Component do not match with Standard Cost Component Values

    Dear Members,
    The CO-PA Cost Components (as mapped through KE4R), do not match with Standard Cost Component values for the Group Currency. In local currency the values match.
    System is correctly picking up VPRS value, both in local currency and Group Currency, which is equal to the total of Standard Cost Components however, it is the Value Fields linked to the Standard Cost Components in Group Currency that do not match.
    In KE40, the Indicator is 4:Released Standard Cost Estimate matching Goods issue Date.
    I have verified KEPH/CKMLPKEPH tables. The values are same as that of VPRS.
    Any help/clues?
    Regards
    Satya

    Hi,
    In case of billing documents the group valuation approach is managed in the data structures of the legal valuation in additional value fields. To control costs and revenues in the different views separately, you must create additional value fields and assign them to the data structures.
    The field contents must be filled via the CO-PA user exit, they cannot be entered by assigning conditions to value fields. The profit center valuation is updated in a separate ledger. No separate value fields are necessary.
    The exit to be used is function module 'EXIT_SAPLKEII_002' ( enhancement COPA0005 ). Within the exit you have the complete SD data avaialble in the tables 'T_ACCIT' and 'T_ACCCR'. The conditions can be found in T_ACCIT and the corresponding values ( linked via 'POSNR' ) in table T_ACCCR. The PA line item and the corresponding SD item in table ACCIT
    can be mapped via the line item field 'RPOSN' and the field 'POSNR_SD' in table ACCIT.
    regards
    Waman

  • EVDRE- Child member values not rolling up to Parent

    Dear Freinds,
    I am using 4 Hierarchy in Account DIM.  I am facing a problem that for second hierarchy child member values not summing up to Parent.
    Dimentioned processed sucessfully.
    Thanks ! in advance.

    Have you recently implemented EHP1?
    If so there is a common issue with the hierarchy tables - refer to OSS note 1139396
    Hope this helps

Maybe you are looking for