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 Experts, I am getting below error while trying to Replicate Data Source.Can you please help on this- Error analysis     Short text of error message:     Unable to read RFC destination WORKFLOW_LOCAL     Long text of error message:     Technical in [More]
My HP3310 is connected to my Time Capsule via Ethernet to allow it to be used by my iMac and a Macbook. After I updated to OSX 10.6 I had a few problems but eventually I was able to get my 3310 working as a printer and a scanner with both Macs connec [More]
Hi, I going to buy the new Mac mini (the cheap one) and I'd like to be sure that the *Acer H223HQ* (1920 * 1080) is going to work well with it . I'll have to use the Mini-DVI -> DIV Adapter to connect the Mac mini to the screen right ? Thanks!I too a [More]
So I've been running into the minor annoyance of XFCE always using the wallpaper from the monitor on the left screen after I unplug my secondary monitor. Not sure if anyone else runs into this. Just to clarify: (pretend the pipe is the border between [More]
Hi friends I bought a IPOD shuffle(1 GB) yesterday. I have plugged it to my laptop and transfer few songs. I kept connect to laptop for around 2hrs. I thought we need to charge when we get new one. I dont know whether it is charged or not. because wh [More]
I have a 24 inch Mac and yesterday bought an airport extreme. I want the computer to work plugged into the extreme, but when I do this it says that the Mac has a self assigned IP address and can not access the internet. I have updated all software an [More]
Trying to set up Back-to-my-Mac and this site http://support.apple.com/kb/ht1109 says I have to have a MobileMe account...well I just transferred it to iCloud! So in System Preferences>iCloud I have checked Back-to-my-Mac...but what else do I have to [More]
A freind of mined ordered a Iphone online recently on my behalf and it was delivered earlier than the actual date promised wthich is good, but when I unpacked it Lightning connector is missing and I'm unable to use the phone. Please can any one let m [More]
Hi, I want to provide more than three component in the table view. Two images/Icons (Left Side), Text with Subtitle, Text (Date and Time at right-hand side)and Detail Disclosure button. How can i create this with the custom table view?This is an end- [More]
Hello, I am completely new to Outlook (2013) so I'm confused about linked images in .msgs and how they work. I want to build an offline email archive. Ideally it would be in a widely used format each mail or mail folder would be a single file (unlike [More]