Hi,

I want to display the result of an action (a new page) in a new 
browser window. So I set the target attribute of tc:link or
tc:button to the window name. This works fine. But when I click another 
button or link in the page the action is not executed (the page is 
rendered again). I always have to click the button twice.

I think this is a known problem with a known solution. In my code for 
the PDF download I included this two lines to avoid this problem:

    // Save serialized view or else after clicking on the export button,
    // user will have to click TWICE to invoke another action
    StateManager stateManager = 
(StateManager)facesContext.getApplication().getStateManager();
    stateManager.saveSerializedView(facesContext);     

(Taken from http://swforum.sun.com/jive/thread.jspa?threadID=63566)

Maybe this code should be included in Tobago (or myFaces?) when the
target attribute is set.

Regards
Helmut

Reply via email to