Action on hyperlink keeps getting called when doing other actions

Hello.
I have a jsf application created mostly with visual web pack, but with some custom code added. I have a table where one of the columns contains a hyperlink, which I created a custom action for. This action gets an HttpServletResponse and write urls to it with content type "audio/x-mpegurl".
Once this action has been called, any attempt to click on another link which calls this action will call the action twice. A third link click will cause it to be called three times. Any attempt to use a search button on the screen, or a table reorder link, will cause the action to be called (the number of times it was called from the last link click).
Is there some method I need to be called in order to clear something out?
Thanks in advance, and here's the code.
First the action
    public String recordingHyperlink_action() {
        try {
            String url;
            List<WarehouseQuestion> questions = null;
            Boolean isFullCase;
            isFullCase = getSessionBean1().isIsFullCall();
            log.debug("url is" + FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("url"));
            if (FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("url") == null) {
                url = null;
            } else {
                url = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("url");
            if (isFullCase && url != null) {
                if (getSessionBean1().getKludgeKeyToDetail() != null) {
                    log.debug("In hyperlink action, getting key from url: " + url);
                    WarehouseDetail wd = getSessionBean1().getKludgeKeyToDetail().get(url);
                    if (wd != null) {
                        questions = wd.getQuestions();
                    } else {
                        log.error("warehouseDetail is null in hyperlink action but want full case is true");
                } else {
                    log.error("keyToDetail is null, but want full case is true... should be no results");
            getApplicationBean1().returnRecording(questions,url,isFullCase);
        } catch (IOException ex) {
            log.error("Error in hyperlink action for playing recording", ex);
        return null;
    }Then the writing to the response.
    public void returnRecording(List<WarehouseQuestion> questions, String url, Boolean isFullCall) throws IOException {
        ExternalContext econtext = getExternalContext();
        HttpServletResponse response = (HttpServletResponse) econtext.getResponse();
        ServletOutputStream sos = null;
        FacesContext fcontext = FacesContext.getCurrentInstance();
        try {
            sos = response.getOutputStream();
            if (isFullCall == null || isFullCall == false) {
                response.setContentType("audio/x-mpegurl");
                try {
                    sos.println(url);
                } catch (IOException ex) {
                    log.error("Error adding url to response: " + url, ex);
            } else {
                response.setContentType("audio/x-mpegurl");
                if (questions != null) {
                    for (WarehouseQuestion wq : questions) {
                        try {
                            sos.println(wq.getUrl());
                        } catch (IOException ex) {
                            log.error("Error adding url to playlist: " + wq.getUrl(), ex);
                } else {
                    log.error("returning playlist, questions is NULL!");
            sos.close();
        } catch (IOException ex) {
            log.error("Error setting output stream to response: " + url, ex);
        fcontext.responseComplete();
    }Sorry for the messy code, and thanks in advance for any help, this is really driving me nuts!

How odd.. this works as intended when called from a button with a static url, but now I can't access the param in the button, which I could in the hyperlink. Here's the jsp code for the two.
<ui:tableColumn binding="#{resultsPage.tableColumn7}" headerText="Recording" id="tableColumn7" sort="questionName">
    <ui:hyperlink action="#{resultsPage.recordingHyperlink_action}" binding="#{resultsPage.recordingHyperlink}"
                  id="recordingHyperlink" immediate="true" text="#{currentRow.value['questionName']}">
        <!--<f:param name="studyNumber" value="#{currentRow.value['studyNumber']}"/>
        <f:param name="formName" value="#{currentRow.value['formName']}"/>
        <f:param name="caseNumber" value="#{currentRow.value['caseNumber']}"/>
        <f:param name="attempt" value="#{currentRow.value['attempt']}"/>
        <f:param name="date" value="#{currentRow.value['date']}"/>-->
        <f:param name="url" value="#{currentRow.value['url']}"/>
    </ui:hyperlink>
    <ui:button action="#{resultsPage.recordingHyperlink_action}" binding="#{resultsPage.playRecordingButton}" escape="false"
               id="playRecordingButton" mini="true" text="Play">
        <f:param name="url" value="#{currentRow.value['url']}"/>
    </ui:button>   
</ui:tableColumn>

Similar Messages

Maybe you are looking for

  • How can I remove a video player?

    Hi, awhile back I installed a video player, that I can't even remember the name of now, and it plays all my video's being watched over the web with this player now, it does give me the option to use original player, but you have to be lightning quick

  • Editing in Illustrator CS3

    hi there, im having trouble right-clicking and object and editing it in CS3 i just get a pop up that says "Editing in CS4" Does that mean only flash catalyst is only compatible with CS4? also, an eyedropper color tool would be nice!

  • Mac Word 04: Recover saved file

    I chose all the text in one document and then deleted it, started writing new text and when I was done I hit the disk in the upper left corner instead of save as. Now the document I saved replaced the old one. Is there any way I can get the original

  • [Solved] Remove Panel Shadow In KDE 4.10

    Hello all, I just moved to KDE 4.10, and everything works smoothly. I have just on little annoyance, I can't figure out how to get rid of the panel shadow. It is going on top of the application window itself, and makes it harder to read content, I'm

  • Date picker in JSP

    Hi, I have a problem on selecting date picker. I have a drop down of 20 numbers. On selection of any number I need to build a grid of same rows. There is a column called date in the grid. It has date picker. I am getting the grid. But when I tried to