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
-
I keep getting calls from (removed), so I added that number to my list of calls to block. It doesn't ring anymore, but I keep getting notification messages that say "Call back (removed)". Why do I receive this when the call should be blocked?
Private info removed as required by the Verizon Wireless Terms of Service
Message was edited by: Admin ModeratorOkay, you are correct the call is not supposed to ring in. Have you done any troubleshooting on the phone? First off, try power cycling the phone. Turn the phone off, then back on again. If that does not work, then try a reset. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot. See if that changes things. Is the caller using the exact number that you blocked, or is it possible they are using another number, or have restricted the Caller ID?
-
I'm in cycle mode, and 'merge' is clicked in preferences. However, when I record, my previous track data keeps getting overwritten. Does anyone know what I'm doing wrong. Interestingly, I can still see the data in the region.
jamestait wrote:
when I record, my previous track data keeps getting overwritten.
since you didn't specify, are you recording in a single take?
http://www.bulletsandbones.com/GB/GBFAQ.html#multipassrecording
(Let the page FULLY load. The link to your answer is at the top of your screen) -
When I try to install PSE11, I keep getting error 1935, does anyone have a solution for
this problem?This thread from the Premiere Elements forum may help:
http://forums.adobe.com/thread/1286807?tstart=0 -
I keep getting error when i try to log in to Adobe to post results. I have created an ID.
Running the Lion Os requires a MINIMUM of 2 GB of RAM, as you have. However, with that little RAM the computer will have trouble with many memory based tasks, such as copying and pasting. You really need to increase the amount of RAM your computer has in order to increase its speed and performance. Now, when a task requires more RAM than your system has available then the OS will use some harddrive space temporarily instead. This is called "Virtual Memory." Is it possible that at this time that your harddrive is very full relative to its stated capacity, so that even "virtual memory" is not really available? If that is the case, you really need to cleanup your harddrive by deleting a fair number of less used files.
Hope this helps -
I keep getting calls from a block caller id and it's some dude speaking arabian what do i do? How do i stop this?
Stop answering calls with blocked numbers. If it's someone who really wants to talk to you, they'll leave you a message and you can call them back.
-
My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!
Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?
-
Can someone please help. I have a really old MacBook that is running really slow. I want to wipe everything and reinstall the latest software but don't know how to do this. Also is there a way of keeping Microsoft Office when doing this? Thanks in advance
You do realise that wiping the disk means that everything on the disk is erased. Everything. Photos, music, emails, ...
So the first piece of advice is to make sure you have a back up of everything.
You need the OS disk to reintsall the operating system. You will use that disk first to erase the drive, then to reinstall the OS.
Here's the link for the US. http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
As for MS Office, you will need the original disk that it came on to reinstall it. -
The plugin is gets called when we open any pdf document in internet explorer
Hello,
I have written plug-in( .api) for our use. But it's get called when ever I open any pdf document in internet explorer.
I am using Adobe Acrobat 10. What could be the problem. I don't want to call plug-in methods on internet explorer.
The plug-in method should call when am launch Adobe acrobat separately.
Please help me to solve this issue.
Regards,
SowThanks for the response.
I have written some function in PluginInit. I don't want to call the method when acrobat launches in IE. It should call only when acrobat launches in Desktop.
How can I call the method only when it launches on desktop.
Please help me to solve the issue.
Sow -
Últimamente Photoshop CC 2014 se detiene fusionando las capas al hacer panoramas. Primero edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb RamÚltimamente Photoshop CC 2014 se detiene fusionando las capas al hacer panoramas. Primero edito mis fotos Raw en Lightroom luego las paso a Photoshop para hacer panoramas. Photoshop las abre y fusionando las capas se detiene.
Según el administrador de tareas cuando se bloquea tiene ocupado el 81 % de memoria 25% de CPU y 1% del disco.
Mi PC tiene Windows 8.1 de 64 bits y tiene 8 Gb de ram
Lately Photoshop CC 2014 in my PC gets blocked when doing panoramas. First I edit my raw photos in Lightroom, then export to Photoshop for making panoramas. My Pc runs Windows 8.1 64 bits 8Gb Ram -
I keep getting errors when updating from the Creative Cloud (49)
I keep getting errors when updating from the Creative Cloud (49).
" Update Failed" and when I click on Learn More. The error messages says there is a download error with (49) I am signed on as administrator, so that shouldn't be a problem. I have Windows 7.Error 49 https://forums.adobe.com/thread/1491394
-and https://forums.adobe.com/thread/1353632
or
A chat session where an agent may remotely look inside your computer may help
Creative Cloud chat support (all Creative Cloud customer service issues)
http://helpx.adobe.com/x-productkb/global/service-ccm.html -
I keep getting this when trying to open Time machine: An unexpected error occurred (error code -6584). time machine wont even open up. My Time capsule has a green lite and appears fine
Thaks,This often means the backup is corrupted.
First of all reboot the network.. turn everything off and restart in order.. modem.. TC.. clients.
If you still have issues, hold the option key when you click the Time Machine icon on the top menu and it will bring up verify backups.
Do that.
Read this thread if you need more..
https://discussions.apple.com/thread/3123920?tstart=0
It seems to be a fairly complex problem if the above don't work. -
How to make a functions that gets called when the plug in is loaded?
I'm making an automate plugin, and I want to make a functiosn that gets called when Photoshop loads my plugin. It doen't matter if my plug is never called fro the File->Automate menu. Is there any way to do this? Thank you.
DanielHi There,
I don't believe there is a way to handle this currently within App-V...Other virtualization products do have the ability to exclude processes and force to run outside or the bubble or exclude them from terminating on shutdown.
It would be a great feature request for a future release. You can easily request it here:
http://appv.uservoice.com/forums/280448-microsoft-application-virtualization
PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
rorymon.com Twitter: @Rorymon -
Keep getting message when trying to sync my ipod (could not synced because the sync session failed to start)
Have you seen this Apple support document?
http://support.apple.com/kb/TS3221
B-rock -
I get keep getting this when I get emails ( dosen't know how to open this address because the protocal(blocked http) isn't associated with any program
That is the current AKO policy, see [/questions/747157]
*http://usacac.army.mil/CAC2/MilitaryReview/EmailAnnouncementNotification.pdf
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
-
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
-
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