Sitemap

Amicuk Programming Answers

Solution to Button Action not being called in IE

-0001-11-30   Views:0

Advertisement

All, Thought I'd post a solution to a problem I had recently. I have seen variations on a theme elsewhere on the net. IDE: Java Studio Creator 2, Update 1. Problem: The button action associated with a button component on a jspx page is not called whe

All,
Thought I'd post a solution to a problem I had recently. I have seen variations on a theme elsewhere on the net.
IDE: Java Studio Creator 2, Update 1.
Problem: The button action associated with a button component on a jspx page is not called when using IE 6, but is called using M. Firefox 1.5.
Background: The jspx page is a combination of one core jsp page and four jsp fragments (header, main nav bar, module nav bar, authorization code). Several components are present on the core jsp page (layout components, table, buttons), several on the header, main nav bar, module nav bar fragments (images, hyperlinks, text), JSTL and a lonesome form on the authorization fragment. You can see where I'm going....
Solution: The problem was with the authorization fragment. The authorization fragment is meant to be dropped on pages that I want to protect from users without the authorized role, perhaps by these users trying to navigate to it by URL manipulation. I added some JSTL code to specifically look at the role authorization for the current session user. If not in that role, they are redirected to the home page. Navigation links are secured by similar authorization using the rendered property bound to session data. The form was the problem. Unfortunately, I didn't give much thought to the additional component I would need on the fragment. I had to add something so I picked a layout one. The IDE appears to require a component. To correct the problem, I simply set the rendered property to "false". IE 6 now works fine, M. Firefox 1.5 was always happy. Code example below...
Code Pre:
<?xml version="1.0" encoding="UTF-8"?>
<div style="-rave-layout: grid; width: 400px; height: 200px" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <c:if test="${SessionBean1.monitor==false}">
        <c:redirect url="/faces/Welcome.jsp"/>
    </c:if>
    <ui:form binding="#{MonCheck.form1}" id="form1" />
</div>
Code Post:
<?xml version="1.0" encoding="UTF-8"?>
<div style="-rave-layout: grid; width: 400px; height: 200px" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <c:if test="${SessionBean1.monitor==false}">
        <c:redirect url="/faces/Welcome.jsp"/>
    </c:if>
    <ui:form binding="#{MonCheck.form1}" id="form1" rendered="false"/>
</div>

The replay answer
Advertisement
Hi there,
Great to know you were able to fix your problem. Thanks for posting the solution as well, Im sure It'll help the community.
Thanks
K

Go to See the other 2 answers

Solution to Button Action not being called in IE

Category:DefaultRelease time:-0001-11-30Views:130

All, Thought I'd post a solution to a problem I had recently. I have seen variations on a theme elsewhere on the net. IDE: Java Studio Creator 2, Update 1. Problem: The button action associated with a button component on a jspx page is not called whe[More]

Button action event not call in dataprovider

Category:DefaultRelease time:-0001-11-30Views:130

hi, i have JSF table and it's bound to Mysql database table. when i bound the table and run it's working properly but it's button action event is not call action. when i use static jsf table then it's table action event work properly. my jsp code is[More]

Value  set in constructor is not getting saved in button  Action method

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I am not understanding why the value set ( On Condition )in constructor is not hold in the button actoin method. Could any body explain me on that for this I will try to explain with sample example I have taken a button and add a integer prop[More]

How to view an Image in ABAP Webdynpro on button action

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts, I want to view an image on a button action without creating a new view or window. I just need to display the image. Thanks, R SahuHi Rabi, Add Context Attribute "SOURCE_IMG" with type String. Add Image UI "img_id" in layout[More]

Command link / button action is not taking place if i use it in iterator.

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am new to ADF, i am facing 1 issue while implementing ADF mobile browser application. Issue: command link / button action is not taking place if i use it in iterator. its just refreshing the page it self and displaying as no records. Scenario i[More]

How to use the cases in button action?

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts, I want to get a prompt message if the field is empty.I got it but at the same time if the field is filled I want the other action to be performed that is to call a BAPI and give me output.How can I give two events for the same action. How[More]

InDesign Button Action for PDF – Open File (in new window)

Category:DefaultRelease time:2015-10-11Views:130

I am using the 'Open File' action on buttons in a document i am making which will eventually be a PDF, but am wanting to specify the button action to open the file (another PDF) in a new window. I have found that I can achieve this and add button act[More]

Button actions only work the first time used then nothing?

Category:DefaultRelease time:2015-10-11Views:130

This is what I have... I Have 2 buttons in MC named mcMovieTrans the AS for these buttons are in the MC's timeline, the code is: stop(); function playLifeboy(event:MouseEvent):void gotoAndStop(3); function playKrave(event:MouseEvent):void gotoAndStop[More]

Button action in Firefox 2 on XP

Category:DefaultRelease time:2015-10-11Views:130

I know this is a hail Mary play, these issues are so random and impossible to troubleshoot, but my boss told me ask around, so ask around I shall... We have a SWF ( http://dev.binaryinteractive.com/bluetooth/consumer/html/onthego_demo.html) that play[More]

ADOBE DPS - MAGAZINE to TABLET in INDESIGN.....Need to brush up my tablet design in DPS (did it a few yearscback), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?

Category:DefaultRelease time:2015-10-11Views:130

....Need to brush up my tablet design in DPS (did it a few years back), can anyone recommend on the Adobe site tutorials that I can download, with artworks /buttons / actions and put it together?See this forum post here from Bob. Best place to learn[More]

Does the Video Button Action really work?

Category:DefaultRelease time:2015-10-11Views:130

According to teh Adobe site, the Video button action should be functional: I have not been able to get it to function so far. I am truing to get the button to play a video from a Navigation point. Am I doing something wrong (likely) or is the Adobe s[More]

Hot
If we store some type of binary file (XLS, DOC, PDF, EML and so on, not only pictures) in BLOB column how can I show the different contents? We use designer and forms 9i with PL/SQL. How can I copy the files from BLOB to file in a directory or how ca [More]
From the front end aplication parameter the following value will be coming  into the SQL Query 'aaaa','bbbb','cccc','ddddd' Example: Consider The user entering aaaa,bbbb,cccc,dddd four values in one of the filter from the Front end Aplication i want [More]
I know this is not a fully evolved question because you could respond, what MP's (Maintenance Packs) do I have installed, and what all am I monitoring, however I am somewhat new to SCOM 2012, I've set it up and have it going, getting great alerting, [More]
Hi all, I don't really use iPhoto that much but since I started using my iPhone 4S as my principle out-and-about camera rather than lugging my DSLR everywhere I have started using it to archive all my mobile snaps using Photostream so that there's on [More]
Is there a way to set the no_zero attribute just for a particular row? The requirement is just to display blank when the value of the field is zero but just for the first two rows.  How can I do this?  Thanks.Hi Giscard Rous , <b>1</b>. NO_ZER [More]
Hi everyone. I was wondering if anyone could resolve a problem I'm having with Warp Stabiliser in Adobe Premiere Pro CC. So I'm editing a video for a client and unfortunately a few scenes feature some camera shake, which don't look that aesthetically [More]
Using EXCEL from Office 2010.  Have tried all the solutions - no change.  Any new ideas - 2014?Hi, Have you try to un-select the Ignore other applications that use Dynamic Data Exchange (DDE) setting? Click the Microsoft Office Button, and then click [More]
Here is something weird I noticed whilst using Vimperator's hint navigation. Screenshot follows: Upon further investigation, it was revealed to be a link. The contained text originally had the CSS 'display' attribute set to 'none', which is why it wa [More]
Hi all, I have an internal with more than 10000 records. I have data like this id  matnr test A    M1 B    M2 C    M3 D    M4 D    M5 C    M6 A    M7 B    M8 NOW I WANT TO SECT TEST A VALUE BASED ON ID IF ID = A then test = 1      IF ID = B then test [More]
After several years of successfully using iMovie with a Sony PC100E, I am now failing to import the audio belonging to imported clips. iMovie HD plays the sound correctly during the import process. But there is no sound when I then play clips individ [More]