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.

Similar Messages

  • Buy Back Process and back order processing.

    Hi,
    Can any 1 explain me what is buy back process and back order processing how to configure in SAP SD.
    Thanks.

    Hi
    Buy back process is nothing but you are keeping certain qty of stock at your customers place, he is unable to sell due to various reasons so u need to take back. So this is buy back process. This can be configured by way of using the consginment process.
    The backorder processing is where the customer has requested for the delivery of goods on a particular date but as the stock is not available, this order will be processed only once the stock is made available.
    Hope this clarifys.
    Kind Regards
    Chakradhar

  • 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?

  • Component-family and renderer

    Hi All
    in jsf beta i have following in faces-config.xml and it was working fine.
    <render-kit>
    <renderer>
         <renderer-type>Text</renderer-type>
         <renderer-class>com.sxc.faces.render.CustomTextRenderer</renderer-class>
    </renderer>
    </render-kit>
    I have changed above to:
    render-kit>
    <renderer>
    <component-family>Input</component-family>
         <renderer-type>javax.faces.Text</renderer-type>
         <renderer-class>com.sxc.faces.render.CustomTextRenderer</renderer-class>
    </renderer>
    </render-kit>
    But it is not working. is it problem with component family or something else?
    Please help me.
    Thanks in Advance

    Hi!
    try
    <renderer>
      <component-family>javax.faces.Input</component-family>
      <renderer-type>javax.faces.Text</renderer-type>
      <renderer-class>
          com.sxc.faces.render.CustomTextRenderer
    </renderer-class>
    </renderer>cheers
    Matze

  • Question about creating Custom JSF form tag and renderer

    Is it possible to build a custom form tag in JSF and have it replace the standard jsf form tag. Are there any potential issues with child forms or anything else.
    I created the following
    - custom form component class that extends javax.faces.component.UIForm (the only changes I made was to change the value of the COMPONENT_TYPE attribute and change the value for renderer type)
    - custom form renderer class that extends HtmlBasicRenderer and I made changes to the encodebegin method and encrypt the value of the id and action url)
    - custom form tag class that extends UIComponentELTag ( I did not make any changes here)
    - tld for my custom form tag
    - created an entry in faces-config.xml of my web-app for my custom form tag
    Are there any issues with the above.
    Is there something I should do in addition.

    In theory you should be fine. Some of the open source libraries either swap out the renderer for the standard h:form component or supply their own form components. You could look at their code for reference if need be.

  • Batch processing and rendering multiple clips in SpeedGrade CC?

    I'm new to SpeedGrade CC, just watched 2 hrs of Lynda training, and I'm just about ready to go. Before people jump on my question, let me walk through what my indended use will be.
    Unlike most of the content / workflow that was discussed in the training, I'm not color grading a sequence of clips stitched together in a timeline, but multiple clips that have been pre-edited to length, that I want to apply the same color correction two. This will only be done to small groups of clips, maybe 4-5 at a time, but since I'm all about efficiencies, I wanted to ask what the best workflow for doing this is.
    Let's assume that I've taken one of the clips and adjusted everything natively in Sg (no Dynamic link from Pr). I like where I ended up with the settings so I saved a .look preset file.
    So what is the next best way to handle applying these settings to the other files? Creating mutliple, separate Sg projects doesn't seem the efficient way, and having to cue up each succesively for Render, equally as slow. In the lessons the instructor illuded to working with and processing "dailies", which I also assume would be achieved through a batch process, but that isn't covered.
    I appreciate the advice!
    Steve

    Interesting ... process ... you have there. Hmmm. I can't think of any way you could work in Sg that isn't on a timeline. Whether made in PrPro or there in Sg(native) ... it's a video editing program, and that's done on a timeline. Plus the way the both PrPro and Sg are designed, you MUST define and name a project before you can start to work.
    Now, other than where the working files for the project will be kept, you don't really have to complete the forms out in PrPro especially. After you give your project a name and say where it's files will be kept, you can simply skip the rest and when you create a new sequence & drop a clip onto it, the sequence settings will be set to match your footage.
    Now ... do you have all one type footage (codec, frame size & rate) or different kinds, say some 1080p-24fps, some 720i-60fps, some 460p-29.976fps, that sort of thing?
    You know, what I'm thinking ... might actually be the easiest. Create a project in PrPro ... and a new sequence for each type of footage. Use the media browser panel to import all your footage into the project panel ... drag & drop a few similar clips to a sequence, then DL that over to Sg (takes a couple seconds) to grade/look 'em. Save 'em back to PrPro, then render that sequence out. Then when you know you've got a good render, either delete the clips from that timeline & re-use it, or create a new one. Do your next group. Rinse and repeat, so to speak.
    I take it you've no reason to save the sequences of graded clips past rendering them, so you should be able to use just the one "projects" and import folders as necessary, removing them as you will. You won't spend near any time with the "project" details, but the programs will be happy.
    Again, as noted above you can either copy a grade to other clips on a sequence or put an "adjustment layer" over the clips of a sequence in PrPro (project panel: new item -> adjustment layer) and then grade that ... it will automatically be applied to all clips under it.
    And before you ask again, there isn't any way to work a single clip without it being a "project" with a timeline. These aren't photoshop, where you can open a single image.
    Neil

  • What is the difference between Release process and Prchase order process?

    Like both processes are used to replenish, but than whats the need of both the processes.One of the process can be used to come up with request.Correct me if i am wrong.Kindly explain with an example

    Hi Nandan,<br>
    In purchase Order we have fixed date , quantity  and schedule on which supplier has to deliver the items .<br>
    Example:PO with Item A:<br><br>
    to be deliver on 12-May-2010 20 quantity<br><br>
    to be deliver on 12-Jun-2010 40 quantity<br><br>
    In Release process we have quantity/price schedule agreement of item between supplier and customer.it specifies certain amount of quantity of the products that a supplier is to deliver to the customer in a specific time period. Customer uses MRP run at regular intervals and determines what exact requirement quantities are to be released from the scheduling agreement on certain dates.this schedule lines then releases to SNC to inform supplier about current demand<br><br><br>
    In schedule agreement schedule lines have the following status :<br><br>
    1)Fixed dates and quantities:Quantity and date of the schedule line are fixed and will remain unchanged. The schedule line belongs to a delivery-relevant release. The supplier can deliver the quantity without waiting for another acknowledgement or the customeru2019s request.<br><br>
    2.Production and material go-ahead:The schedule line belongs to a forecast delivery schedule that is not relevant for delivery and is in the production go-ahead period. The supplier can, therefore, procure the materials for manufacturing the ordered products and start with production. If the customer cancels a schedule line, the supplier can invoice the material and production costs.<br><br>
    3.Material go-ahead:The schedule line belongs to a forecast delivery schedule that is not relevant for delivery and is within the material go-ahead period. The supplier can, therefore, procure the materials that s/he requires for production. If the customer cancels a schedule line, the supplier can invoice for the material costs. <br><br>
    4.Preview:The schedule line belongs to a forecast delivery schedule that is not relevant for delivery. The schedule line is not binding and may possibly change. The supplier can use the data for his or her own planning, however.<br><br>
    Exmaple:We have schedule agreement of 1000 quanity for Item A and time period start date:30-Apr-2010 end date:1-May-2011<br><br>
    Customer runs MRP/planning from he gets following schedule line with status as mention above<br><br>
    quanti ty 100 with schedule line status Fixed dates and quantities which means Quantity and date of the schedule line are fixed and will remain unchanged. The schedule line belongs to a delivery-relevant release. The supplier can deliver the quantity without waiting for another acknowledgement or the customeru2019s request.<br><br>
    quanti ty 200 with schedule line status Production and material go-ahead which means schedule line belongs to a forecast delivery schedule that is not relevant for delivery and is in the production go-ahead period. The supplier can, therefore, procure the materials for manufacturing the ordered products and start with production. If the customer cancels a schedule line, the supplier can invoice the material and production costs.<br><br>
    quanti ty 300 with schedule line status .Material go-ahead which means schedule line belongs to a forecast delivery schedule that is not relevant for delivery and is within the material go-ahead period. The supplier can, therefore, procure the materials that s/he requires for production. If the customer cancels a schedule line, the supplier can invoice for the material costs. <br><br>
    quanti ty 500 with schedule line status Preview which means The schedule line belongs to a forecast delivery schedule that is not relevant for delivery. The schedule line is not binding and may possibly change. The supplier can use the data for his or her own planning, however.<br><br>
    Note that total quantity of product is 1000.,Depending upon schedule line supplier can plan his/her activity.<br><br>
    Summary: In Purchase order supplier has to deliver fix amount of quantity on fixed date and time to the customer .
    In Release process supplier can deliver the product depending upon schedule line status as mention above so advantage  of using release process we fixed period and fix quantity  in that period  customer can send his demand to supplier whenever customer requires in schedule agreement time period.<br><br>
    Thanks,
    Nikhil

  • ANNOUNCE:  Speed up your Data-Driven JSF/Seam Application by Two Orders of

    Hello,
    I am pleased to announce a new article on JSF Central. In the second installment of this two-part article, Dan Allen continues his discussion of some common performance problems you may encounter when using JSF components, Seam components, and the EL. You'll learn about the set of best practices for eliminating them that led to an improvement of two orders of magnitude in the performance of his application.
    Here is an excerpt:
    In the first part of this article, I began briefing you on optimizations I made to maximize the responsiveness of a JSF application that I developed out in the field. I cited performance problems caused by casually accessing components from a JSF view, then presented a set of best practices to eliminate this unnecessary overhead. Despite the progress made by the end of the first part, you had not yet witnessed the two orders of magnitude in performance improvement that was promised.
    In this part, the additional gains will be achieved by leveraging partial page rendering-provided by the RichFaces JSF component library and by slimming the response. Partial page rendering cuts out the overhead of rerendering the entire page after each user interaction, which turns out to be the real bottleneck in most traditional web applications, and instead redraws only the areas of the page that have changed. Naturally, you want the replacement HTML source to be as condensed as possible. These optimizations allow the responsiveness of a web application to measure up to its desktop counterpart.
    Read the full article here: [Speed up your Data-Driven JSF/Seam Application by Two Orders of Magnitude – Part 2|http://www.jsfcentral.com/articles/speed_up_your_jsf_app_2.html]
    Kito D. Mann -- Author, JavaServer Faces in Action
    http://twitter.com/kito99  http://twitter.com/jsfcentral
    http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
    http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
    +1 203-404-4848 x3

    Hi,
    how can we ensure that every body define the id in jsf page. we are using the jsf 1.0 and I think this artical for jsf 1.2
    with IBM extended JFS lib.
    if we don't want to change the code of full application,is it possible to speed up the render time with the help of framework or some other way.

  • Rendering JSF Component to Different Kinds of Clients

    Hi,
    Sub:
    How can I render my custom component to different types of clients like web, swing, PDA and so on.
    Exlanation:
    Suppose I have created a JSF custom component for web which includes(Tag,Component and Renderer).
    If i want to use the same component for different clients like swing or PDA, how can it is possible...
    Any info related to this????
    At least I should use Tag and Component for another types of clients also.
    I'm not getting any info related to this....
    If any body throw any kind of help is highly appreciable.
    Thanks && regards,
    Ram

    We had a demo of this for JavaOne. Also, I think some of the current books out there cover this topic. I'll see if I can get the demo source code published to java.net.
    Ed (JSR-252 co-spec-lead)

  • Link between process order and sales order for planning strategy 52

    Hello,
    I investigate the possibility of a link between "sales order" and "planned order / process order" for the usage of planning strategy 52 (planning w/o final assembly, make to stock).
    I know, this is not conform to the basics of planning strategies (EITHER make to order OR make to stock) and I suspect it would be a modification. Of course we have the alternative "make to order" - strategy 50, but we do not want to use individual customer stocks.
    Is anybody there with similar customer requirements or project experiences?
    Thanks in advance,
    Joerg
    Message was edited by:
            Jörg Demtschuk

    Hi Jorg,
    To my understanding if you need hard pegging then in SAP only Individual requirement is possible.
    Or else you need to create a custom transactions/table to identify Sale order and when ever a process order is created by selecting the sale order record, the process order detials should also get updated against that.
    You need to take the help of ABAP expert for this,
    Regards,
    Prasobh
    Reward points if this was useful

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • List of issues and fixes for procure to pay process and order to cash process for a trading company

    Dear All Gurus
    Kindly tell me where I can find the list of all issues arising in procure to pay process
    and order to cash process and there fixes for a trading company in support project
    Thanking You
    Abdul Baseer

    Hi Abdul,
    There are no standard list to provide, you should identify the issue through regression testing and raise an SR or create a thread accordingly we can help you.
    Note:- Issues are vary to instance to instance, version to version, installation to upgrade etc..

  • BPM process and BRM rules process in same development component in NWDS

    Hi All,
    Is it possible to create the BPM process and BRM rules process in the same development component in NWDS?
    I tried but whenever we create it,say,first ly for BPM,that is File-New-Project-Development Component-Process Composer
    While once this development component is created I try to create rules composer in the same composer by right clicking on local development component as well as process composer but ther is no option of creating /calling rules composer/rules modeling.
    Can you please guide me creating both BPM process and BRM rules composer/rules modeling in the same development component if its possible?
    Thanks in advance

    Open your project explorer and expand the BPM project you have created. Locate a folder named "Rules" in the Project Tree. Right-click on the Rules folder and select 'Create new rule'. You can model your rules such as rule-scripts here and use it in the BPM.
    Note: These rules cannot be used outside the BPM Project.

  • I've ordered a book from iPhoto 3 times.  Last order was W29631918.  It says the order is accepted and being processed and then about 4 days later tells me the order has been cancelled.  If I call the help line it tells me the order has been cancelled and

    CLICK.  I've never had any problem like this with Shutterfly, ever.  And Apple gives you no other explanation.  CLICK.  That was my last Apple order.  What a waste.  Maybe someone from Apple can tell my why they do this.  It was for Christmas and I started ordering November 5 and waiting for it to be delivered each time.  This last one I followed and it even told me that the order had been processed and could not be cancelled.  The proprietary company.  Now I'm sorry I started using iphoto.  I'll redo the project with Shutterfly but I'm wondering if Apple treats many of its customers like this.

    i had the same problem .. and the worse is that i am from middle east where we can not get any help from apple.
    like if apple is only for some countries not for all world.
    what happened then? have you ever know what was the problem?

  • Why is my order taking that long to process and to be shipped?

    Well its almost going to be 5 days and my order still says processing
    in the details it said that it would be shipped from 1-3 days and that it will be delived from Delivers   Jan 11 - Jan 13  via 2-3 Business Days
    all i want to know is why does it take so long to process it should be shipped by now.

    No one here works for Apple nor does Apple visit this message board.  We are all end users like yourself helping each other out.
    Call the vendor where you placed your order and ask them about the "process" delay.

Maybe you are looking for

  • Manage machines across subnets?

    What steps do I need to take to be able to manage clients across subnets? I need to be able to wake clients that are not on my local subnet (my office is in one subnet and the clients are distributed all over a university campus with subnets that cor

  • Is it possible to load a user defined mathscript function at run-time in an executable?

    I am currently allowing a customer to define their own matlab script for post-processing their data file. This is all well and good in the development environment, beecause when I re-load this VI, it searches my MathScript search paths and re-loads t

  • Iphoto will not load images

    Good Day, Im trying to fix and issue that I have with Iphoto. What is happening Iphoto loads and shows the thumbnails fine for all the images that are in the Iphoto Library and the albums but when I go to load an image all it does is sits there an ha

  • Shockwave ready photogallery?

    Is there a nice ready photo gallery in shockwave which I can use for a website i am designing for a photographer? please advise. I am currently using java based photo gallery, however am not satisfied with the effects therein. the site's url is www.s

  • Garageband Share - Won't export to disk, CD audio is too soft

    When I attempt to share a GB project to file as MP3, it won't make a file. It goes through all the mixdown motions, but no file for MP3 or uncompressed. It will only make a M4A file type. Also, the mixdown file created or the CD burned from GB is ver