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
i have OS X 10.10.1 and i also dual boot my mac with windows 8.1. i have a 750 gb hard drive & on my windows partition i have 105 gb of free space but on my mac partition i have only 50 gb freeHi base5700, The resource below will explain how to resiz [More]
hi experts, in script, in text editor, when we are writing some text, n if space is not sufficient, we take continuous text or extended line, so that that will be displayed continuosly in output. in case when we r writing a command we take /: , here [More]
Hi, I am trying to install java using RPM selfextract package. But it alwasy installs in /usr. I am installing on fedora core 3 machine. I dont't have enough space in /usr that's why i want to install in /opt. I am downloading the j2sdk-1_4_2_08-linu [More]
Hello All, I'm looking for a tool that allows to create ABAP Objects from an UML schema or a NW-embeded UML Editor with ABAP code generation. I've heard that Netweaver has some MDA features but I'm afraid that they are only focused on Java developmen [More]
Hi all, Just picked up an awesome digital re-issue of Blue Train by John Coltrane and the disk has a heap of live footage and interviews with the man himself and his contemporaries. Problem is, it comes with Quicktime 2.5 (cast your minds back people [More]
Hi All, I have below source table which gives me CUTSOMER_ID, FIRST_NAME, LAST_NAME, DOB, ZIPCODE and D_ID. Now i need to compare it with target, which gives me same columns. below are my comparision criteria. 1. Compare CUSTOMER_ID, if it matches wi [More]
I have a scenario where we are trying to generate a data template from 10 separate data queries. We want the results of this to be bursted out into 700 separate reports (per account). Right now, the report is generating 700 x 10 (7000) queries agains [More]
I am designing an application based solely on java, where the user is allowed to choose from a list of selected programs and then see the corresponding code in a textarea. I have my code entering into the textarea fine but when i want the code inside [More]
Hi Is there any examples on how to create your own xpath function? Regards, Néstor BoscánHave a look at the sample in <BPEL_HOME>\integration\orabpel\samples\references\CustomXPathFunction Also, look for the topic about constants management.Read oth [More]
Hi All, While doing VL10b in STO it was split into 2 deliveries with delivery no's of quantity 544.20 & .02  & GR was done for the first & while doing delivery for the second it is not accepting. So now my requirement is to close the PO in MD0 [More]