Sitemap

Amicuk Programming Answers

Solution to Button Action not being called in IE

-0001-11-30   Views:1

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
Hi All, I have created 1 module pool program with screen no. 0100. But the statement CALL SCREEN 0100 is not getting executing its showing error i.e ' statement cannot be accessable' even i have created and activated the sceen 0100. Thanks... kiranHi [More]
Is it possible to create a quotation or a sales order that is assigned to a project that has 'no project stock' (PROJ-BESTA) in the project profile? We are using a non valuated material in the quotation but get the error message CN769 'Material valua [More]
I use P/S CS6 and Lightroom 4. As a photographer I have had no interest in the other products. It looks as if there will be no CS7, and I will have to "lease" any forthcoming improvements to CS6.  The intro *sucker price* has no relationship to [More]
hi all, I am installing BPC 7.5 on Windows Server 2008, and the install hangs at the Checking Server Components section.  We are utilizing SQL server and Reporting Services on another server.  Any ideas?When you performed the installation did you run [More]
Hi, I'm implementing a connection from MQ to SAP, through XI. The simple things work, but I do have some problems with the more complex scenario's. I think the JMS-adapter isn't sufficient enough for my implementation :      - performance : a load of [More]
Hello Gurus, I have a requirement in which scanned copy of clearing document which is stored using Open text should be linked to the clearing document in SAP. I am new to this concept, can anyone help me with how to go about this. I am suppose to wri [More]
I recently purchased Adobe Photoshop Elements & have installed it on my pc laptop.  I have no issue opening or using the organizer, however, the editing program itself will not open. It brings me to the screen where it says Sign In Required. I sign i [More]
Hi all, In a JSP i perform an sql query wich should give the average of a bunch of dates. <sql:query var="avgList" scope="request">      SELECT avg(date) resultaat FROM gok </sql:query> I'm able to get the result through th [More]
Hi. I'm hoping some fine folks can help me. As you can probably guess, I'm a bit on the "newbie" side when it comes to front-end development. :) I'm trying to help out my brother, who owns a small business. He'd like a website that would allow c [More]
I was using a brother lazer printer HL1435 on my desktop using Windows XP pro. I installed a Kodak ESP3250 printer and all other programs accept the new default printer. When I went to about:config and searched for print I found only references to th [More]