JSF component processing order

Hi,
I'm facing a problem with the order that JSF uses to process the components of a JSP page.
If you set two lists of checkboxes, both with the same list in the backing bean, when you change the status on the first list it may not be readed by the second one. If it happens that the first list is processed first, everything is ok, it'll update the model, but if it processes the second first it will read a model that will be out of date soon, and you will see two results of the same model data.
Does anyone know any way to force the processing of the components ? Any other solution / workaround would be really welcome !
Thanks in advance,
- Juan

The specification and javadoc do not define the order of getChildren().
getChildren() is required to implement a mutable list of the child components
and so, I think, we can't expect it to hold the order of children.
If you put the two lists of checkboxes in one form, both inputs are submitted.
How about using two forms for each lists?

Similar Messages

  • JSF component processing and rendering order

    Hi,
    I have a request level managed bean that has two list boxes on it.
    The first is always displayed, and the second should only ever be displayed when the first one has had a value selected in it.
    So, I use something like this:
    <h:selectOneListbox styleClass="selectOneListbox" value="#{moveBean.sourceListIndex}" size="1" onchange="javascript:submit();" >
        <f:selectItems value="#{moveBean.sourceLists}" />
    </h:selectOneListbox>                               
    <h:selectOneListbox styleClass="selectOneListbox" value="#{moveBean.destinationListIndex}" size="1" onchange="javascript:submit();" rendered="#{moveBean.sourceListIndex != null}">
        <f:selectItems value="#{moveBean.destinationLists}" />
    </h:selectOneListbox>                                The second list is correctly only ever displayed when the first one has been selected.
    However, the value of the second list ("#{moveBean.destinationListIndex}") is never applied.
    Given that this is essentially a request mode operation, I'm loathe to make it into a session bean, but I'm not faced with too many options.
    Help!
    Suggestions?
    -Chris

    You have four options:
    1) Make it a session bean.I did half of this. It was the value of the selects that I moved to a session object and kept the getting of the values of the list boxes to a request scope.
    <h:selectOneListbox styleClass="selectOneListbox" value="#{sessionObject.sourceListIndex}" size="1" onchange="javascript:submit();">
        <f:selectItems value="#{databaseBean.sourceLists}" />
    </h:selectOneListbox>The databaseBean is the request scoped object. This has worked for me in this instance.
    2) Put the data to be stored in session in
    context.getExternalContext().getSesisonMap().
    3) Put the data to be transferred from page to page
    in h:inputHidden.
    4) Use componentbindings.How would this solve the problem? An example, please.

  • Issues during Component Batch Determination for Process Orders

    Hi,
    I am encountering a strange issue during component batch determination of process order.
    1. During creation of process order, when I execute batch determination, systems does determination based on strategies we have set and when I click on Copy it gives an error
    "Log cannot be saved: Object/subobject not specified"
    Message no. BL201
    *Diagnosis
    Log save cancelled because at least one log contains no object or subobject.
    Object and subobject are needed to classify application logs because there are several log types. Only a few logs are managed in main memory at runtime, so this classification is not needed.
    If the logs are to be saved in the database, object/subobject must be specified for later retrieval.
    Procedure for System Administration
    Object/sub object can be passed when a log is created (function module BAL_LOG_CREATE) and changed with BAL_LOG_CHANGE.
    The possible values for object and sub object must be configured in transaction SLG0.*
    If I save the order with CRTD status and come back again in change mode and do determination, It works fine.
    Again when the order is in REL status and do the determination, It gives the same error.
    This happens only for a specific plant, In other plants batch determination works in all scenarios.
    I checked for all plant related Config for batch determination and coudn't find any discrepancies.
    Please advise how to resolve this issue. Thanks in advance for your help
    Regards,
    Aheesh

    There Is no direct solution for your requirement just try this work around.
    While defining the batch determination search strategy for process order in COB1, there is one column Quantity proposal where you can attach the Routines (This is written in ABAB code )  make use of this, define New Routines with ABAB help to fulfill your requirement. Try this if found useful award full points.
    Regards,
    Ajay Nikte

  • Special stock indicator for component in process order

    Hi,
    There is a field in process order where we can maintain special stock indicator for component.
    In this filed if we define consignment stock, then the vendor field becomes activated, where the vendor can be given.
    Now we want to maintain the data as a master data so that whenever process order is created the sp stock indicator as well as vendor are populated for that particular component.
    Q - where to define this master data. I could not see such fields in BOM?
    regards,
    Mohit

    Hi Sunderesan,
    Thaks for responding. Even by doing this system does not propose special stock indicator as '3' in process order & even vendor is not proposed.
    My requirement is that system should propose '3' in special stock indicator in process order.
    Request to look into this.
    regards,
    Mohit

  • Process Order Quanity based on Component Quanitity

    Hy,
    In most cases the component qty. are depends on prodcution/process order quanity, but we have a scenario in which Order quanity is only decided on the basis of Active component's avalable qty of a single bacth which is based on its potency.
    For example
    1.0) If available stock of a single batch of a active ingredient is 5.5 Kg (Assay is 97.5%) then we can take process order quantity of 5000 Nos.
    2.0) If available quanity of a second batch of a actuve ingredient is 3.1 kg and (Assay is 98%) then we can tak process order quanity of 2800 Nos.
    Due this we can not set our lot size.For every single bacth of active ingredient we have to do manual calculation of a process order quantity.
    So pls guide how we can map this scenario for both planing and process purpose.
    Regards,
    Dhaval

    Hi Dhaval,
      I can suggest you to search any planning strategy available where you can create the planned order based on component.
    If it is not there then create one custom transaction where you can get the component availability along with batch ids. and use the same quantity for creation of Header material production order.
      We have developed custom transaction for PO creation where we adjusting or assigning the batch on availability.
    Regards,
    Shailendra

  • Component materials incorrectly assigned to superior operation in process order

    One of my manufacturing facilities is having a problem with components not printing on process order output.
    In all cases, the master recipes themselves look fine when reviewed in C203.  The components are properly allocated to phases (not superior operations).  But when the process orders are generated, certain components are being assigned in the process orders themselves to the first superior operation, instead of to the phase that is indicated in the master recipe.  Here is an example.
    Here is the master recipe operation information as seen in C203:
    And here is the material assignment list as seen in C203.  Note that component material MM6030 is assigned to Phase 0035:
    But when the process order is created, that same component material MM6030 is now assigned to superior operation 0001:
    Here is some additional information that I was able to eke out of the folks at the manufacturing facility:
    The operations in the master recipe did NOT originally contain operation 0001.  It was added to the recipe in C202 after the recipe was initially saved.
    Component Material MM6030 was not originally part of the BOM.  It was added via C202 after the recipe was initially saved.  A different material was originally in its place, and was assigned to a different phase.  After the MM6030 was added to the BOM, the assignment field was blank, and the user assigned it to phase 0035.
    Has anyone ever encountered a similar issue?  If so, how was it resolved?

    Hi ,
    Possibility  , in C202 , user may have changes the BOM first and re-assign the phase  but in process order level Read PP master did not call
    Another possibility manually change the process order component and assign this in Phase in COR2 .Please check  whether it has been added manually in order level . 
    Regards
    JH

  • Add component and Delete Operation in Process order Using COR2

    Hello,
    I need to update any process order (Add components in it and delete some operations of it) on the save of the process order.
    Transaction for change PO: COR2.
    I have found a badi to change in process order (WORKORDER_UPDATE) Method: BEFORE_UPDATE.
    But this badi has all the parameters as Importing. Hence we can not change them.
    If we use field symbols in this badi to change the values,will it make any other issues?
    I have also identified a user exit EXIT_SAPLCOBT_001 but this exit is called very late in the processing, and you cannot change data into that user exit ...check Note (86553 - Documentation on user exits).
    Kindly post your valuable comments and answers.
    Thanks in advance.
    Edited by: Nitin Nyati on Sep 1, 2010 1:09 PM

    Hi ,
    Possibility  , in C202 , user may have changes the BOM first and re-assign the phase  but in process order level Read PP master did not call
    Another possibility manually change the process order component and assign this in Phase in COR2 .Please check  whether it has been added manually in order level . 
    Regards
    JH

  • Deafult batch for component in process order

    Hi Experts ,
    in one of the scenario the client requirement is the batch number for eg- "a" , should be automatically populated in the batch number column of the component in process order while saving or while release.
    this should be done only for components  that are  backflush active.
    can it be done by any user exit /Functionm module etc...
    please advice.
    regrds,
    satish

    Dear Satish
    Please check the following setting in customizing ,
    T.code OPJ2 -
    Operation for batch determination - 3 ( check during backflushing )
    give SDR as per the business requirement and activate BD indicator .
    For SDR ( Stock determination rule ) use T.code OSPX ,here you can
    sort or can give prioriy .
    Please try this ,otherwise go for enhancement /user exit
    Regards ,
    Vishwas.K
    Edited by: vishwas.k on Mar 9, 2011 5:28 PM
    Edited by: vishwas.k on Mar 9, 2011 5:38 PM

  • QI stock batch assignment in Process order component

    I have stock of raw material in MMBE against different batch and stock type. Suppose I have 3 batches - B1, B2, B3 for raw material R1.
    Now in MMBE R1 RM has stock in unrestricted stock batch B1, B2 and QI stock B3.
    If I am creating a process order for FG with RM R1, then in component overview screen in COR1 / COR2 T-code I am able to add manually batch No. B3 against R1 RM. If I am saving as well the batch No. B3 from QI is also saved along with process order.
    However, we have restrcited issue of stock from QI stock. But, is ther any way that during Process order saving system will show error message if any batch is determined manually in component overview from QI stock.
    Any exit or, standard Config is there to restrcit it?
    Please suggest

    Hi Susanta Roy,
    System will pops up the message of material shortage for the batch no. B3 which you have manually selected from QI stock, try this once you maintain the manual entry of batch no. B3 in the cor1 0r cor2, just click on the 'Material Availability check' Tab on the same screen system will pops the message pf material shortage.
    Also maintain the tick mark to Check material availability when saving order (network) in OPJK for your plant and order type for the both Availability check.
    Please check and revert.
    Thanks
    Hrishi

  • Header material batch copy to component in Process order

    Hi,
    I have the following requirement...
    We create process order and assign the batch to process order manually..now during saving of the process order system has to copy batch of the process order ( header material ) to the one of the component in the batch automatically, as this is component is by product which comes to stock along with header material...What is the enhancement/ User exit can be used to meet this requirement...
    Thanks
    Kumar

    Kumar.
    What should be copied? The header batch or some/all of the characteristics of the header batch to a new batch for the component?
    Anoop

  • Component qty.in process order

    Hi,
    while creating process order, my requirement is that there shouldn't be manual change in its component quantity. System should not allow changes in any of the material quantity while creating a process order of a product.
    How to do this ?
    Regards,

    Hi,
    As per std. SAP there is no restriction over manual changes in Production / Process Orders.
    But for such kind of customer specific requirments SAP has provide a different User Exits. Which you can use as per your requirment.You just have to write your own logic with help of abaper.
    You can use below User Exit.
    PPCO0008 to check components that have been changed or added
    Below are the SAP documentation about this Exit
    The enhancement serves to check components that have been added to an
      order or changed (for example, against a standard material database).
      This check can reject the transfer of components to the order in some
      circumstances or replace the material number with another.
      The enhancement is given the material number, the plant and the storage
      location of the component entered by the user (or of the components the
      user has changed). Also, the order header data is copied to the
      structure I_ORDER so that the check can also include order-related
      values. However, changes to values in this structure are not copied!
      The check should copy back the material numbers to be processed (as well
      as the corresponding plant and storage location) in the structure
      E_MATERIAL. If the data was changed then the structure E_MATERIAL is
      always filled completely!
      For the material returned (if E_MATERIAL is filled) the checks specified
      in the program standard are run. It can happen that the enhancement is
      called up for the replaced material number!
      If the component is not to be copied at all then the check must trigger
      the exception MATERIAL_REJECTED which then leads to the adding or
      changing being cancelled.
      Partly for this reason but also for example for the case of one material
      number being exchanged with another there is the structure E_MESSAGE in
      which a message can be copied back to the calling program. The following
      belong to the message: the application, the message number, the level of
      gravity (information, error, warning,...) as wellas four variable texts
      that replace the corresponding place holders in the message. If this
      structure is filled then the calling program makes sure that this
      message is displayed. In the application CO the message 877 was already
      created - it can be used to tell the user that a material number has
      been exchanged.
    Regards,
    Dhaval

  • Adding Distribution KEY (GLEI) to a new Component at Process order Create

    Hello Experts.
    We have a Process Order where all components have the GLEI Distribution Key assigned.  FOr this particular Process order, our Scheduler routinely adds an additional Material Component (with a specific batch number to save operators from having to key in the batch number when reorting production).  The problem is, that when she adds this additional component, the Distribution Key field is greyed out so we cannot assign the GLEI key.  This causes the demand for that particular item to show on dates that dont work for us.  Should it be possible to manually assign the GLEI key to components at the Process Order create stage? 
    *Note, I have also tried adding the extra component at the Planned order stage, and while the screen allows me to enter all of the details (including Distribution key), when I save the Planned order, the new component does not get saved.
    Any help would be greatly appreciated.

    closing thread

  • Replace the component after batch determination in the process order.

    Hi dudes,
    How we can replace component for which batch determination done with a new component in a process order. can any body suggest if its possible.
    thanks in advance.
    Robert

    Hi,
    i am not able to delete the component in the materials overview after the batch allocation done by batch determination rather giving batch manually.
    i.e if i give batch directly in the batch field i can able to delete that entire component row, but if do batch determination for that component once its done i can't  able to delete.
    thanks in advance
    Robert.

  • Process order - material component deleted

    Hi,
    I would like to know where can I check if a material component has been deleted in a created process order. Would there be any history for this?

    Dear,
    in easy easy menu...
    Logistics -> Production -> Shop floor control -> Control -> Order change management ®-> Change process......
    Regards,

  • Process Order BOM component list

    Dear All,
    Can i know form which table i can get Process order relevant BOM component list ?

    To Dear ,
    You can use table RESB Order component from wher you can get Order BOM component .
    You can input here( RESB ) resevation number can find out data related perticular order component .
    Regards
    SANIL

Maybe you are looking for