Solution to Button Action not being called in IE

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. Theform 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 IDEappears to require a component. To correct the problem, I simplyset 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>

[3378 byte] By [gmoneya] at [2007-11-27 0:37:50]
# 1
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.ThanksK
kish@suna at 2007-7-11 22:48:20 > top of Java-index,Development Tools,Java Tools...