users@javaserverfaces.java.net

I want to make sure I understand f:view attribute beforePhase, need to create a way to clear a h:selectOneListbox.

From: Todd Patrick <Todd.Patrick_at_dtn.com>
Date: Mon, 21 May 2007 23:20:12 -0500

I am logging the following message to my server.log each time I load a page in which I send a request too that page. "This is phase: RENDER_RESPONSE 6" So, that's right - because the first time the page loads It should go to phase RENDER_RESPONSE. What I need to do is clear a h:selectOneListbox each time I go to the page, because what I am finding is the h:selectOneListbox is retaining it's values, even thought I don't want that type of value retention - I want the h:selectOneListbox values to be cleared and reloaded with the correct values - NOT concatenated with the previously retained values. So, my thought is to make a managed bean beforePhase method that would clear the h:selectOneListbox and then call the method to populate the the h:selectOneListbox with the new values. But, will this work - from what I am thinking - I've past the phase were the model is updated. Therefore is using a beforePhase method binded to a beforePhase attribute of f:view the best way to clear a h:selectOneListbox each time the page is sent a request? Thanks, --Todd ----------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.