BUG - JSF f:selectItem

JDeveloper Version: 10.1.3.0.4(SU4)
Build JDEVADF_10.1.3_NT_060125.0900.3673
Linux (fedora core 5) and Windows 2000.
Setting the f:selectItem itemLabel or itemValue attribute to '<=' causes page to not compile.
Values of '<', '>','>=' work fine.
wysiwyg rendering on the design tab fails with message detail:
java.lang.NullPointerException
     at oracle.jdevimpl.webapp.model.css.html.HtmlCSSManager.getCSSValuesAssigner(HtmlCSSManager.java:46)
     at oracle.jdevimpl.webapp.view.DisplayManager.generateBoxes(DisplayManager.java:1683)
     at oracle.jdevimpl.webapp.view.DisplayManager.generateView(DisplayManager.java:1674)
     at oracle.jdevimpl.webapp.view.DisplayManager.showContent(DisplayManager.java:1650)
     at oracle.jdevimpl.webapp.view.DisplayManager.showContent(DisplayManager.java:647)
     at oracle.jdevimpl.webapp.editor.XmlGuiEditor.showContent(XmlGuiEditor.java:266)
     at oracle.jdevimpl.webapp.editor.html.HtmlEditor.updateDisplay(HtmlEditor.java:754)
     at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.rebuildViewDocument(AbstractWebAppEditor.java:689)
     at oracle.jdevimpl.webapp.editor.html.HtmlEditor.rebuildViewDocument(HtmlEditor.java:621)
     at oracle.jdevimpl.webapp.editor.jsp.JspEditor.rebuildViewDocument(JspEditor.java:209)
     at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.editorShown(AbstractWebAppEditor.java:456)
     at oracle.jdevimpl.webapp.editor.html.HtmlEditor.editorShown(HtmlEditor.java:447)
     at oracle.ideimpl.editor.SplitPane.doLayoutBottomTabs(SplitPane.java:617)
     at oracle.ideimpl.editor.SplitPane.doLayout(SplitPane.java:480)
     at java.awt.Container.validateTree(Container.java:1473)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validateTree(Container.java:1480)
     at java.awt.Container.validate(Container.java:1448)
     at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
     at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
=====================================
Example JSF page:
=====================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=US-ASCII"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"/>
<title>test</title>
</head>
<body><h:form>
<h:selectOneMenu>
<f:selectItem itemLabel="<=" itemValue="<="/>
</h:selectOneMenu>
</h:form></body>
</html>
</f:view>
===================
thanks.

Setting the f:selectItem itemLabel or itemValue attribute to '<=' causes page to not >compile. Values of '<', '>','>=' work fine.Probably giving us the exact steps you did would help us.
1. Did you change the property through PI or from code editor?
2. Was the code editor and design editor open at the same time (as split windows?)
3. Did you make the change in code editor and switched to design editor?
Thanks,
--srini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • BUG - JSF InputText boxes not populating properly

    Okay,
    Here's the situation:
    I have an edit page (JSF Web) that allows the user to pick an item to edit from a SelectOneMenu tag. When they pick the item the page rerenders and shows the object associated with the selected item allowing the user to edit the object in various InputText controls.
    First of all the ValueChangeListener event doesn't work for the SelectOneMenu tag - the event is not recognized in the backing bean (with or without immediate set, the event code is never accessed.) - and so I had to tie the change to the pressing of a command button.
    Upon pressing the command button, in the action event, I find the object from the selected item. Now I want to set the input text boxes in the screen to the various values of the object. There are two ways to do this. I either set the value property of the bound (using the binding property) backing bean to the objects property - the code looks like this:
    <h:inputText binding="#{EditCalendarBean.name}"
    value="#{EditCalendarBean.name.value}"/>
    This results in a fatal error that halts the OC4J.
    Alternatively; I added various properties to the backing bean one for each property of the object and bound the object's properties to these and then bound the user interface's value properties to the bean properties. For example, imagine a user interface control InputText tag called "name" has it's value property bound to a property on the bean called Name which returns String. This configuration runs but the InputText control when the page is re-rendered (after the submit), is empty even though I've set the value property. However, if I add an OutputText control to the page and bind it's value property to the same String property of the bean, the outputText control correctly shows the value of the object.
    The code looks like this:
    <!-- code in the page -->
    <h:inputText id="name" binding="#{EditCalendarBean.name}"
    value="#{EditCalendarBean.nameValue}"/>
    // Code in the Backing bean:
    // Find the Bean from the submitted id from the SelectMenuTag.
    CalendarData data = manager.getCalendarById(calendarID) ;
    // Set value of the UITextInput components on the page.
    this.getName().setValue(data.getName());
    this.getDescription().setValue(this.getDescription());
    // This results in a fatal error that halts the OC4J
    // Method 2: declare two String properties on the bean and set them
    // Then, in the page use the Value property of the InputText control.
    // This runs but doesn't populate the controls. It does populate them if
    // the contols are OutputText controls though!!!
    this.setNameValue(data.getName());
    this.setDescriptionValue(data.getDescription());
    Best regards,
    Nigel

    Yes - this really is a bug. Any changes to make to the selectItems tag through the properties dialog rewrites the tag source code to seperate the selectOne tag and the selectItems tag. For example, before you use the dialog, you tag code could look like this:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1">
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    </h:selectOneMenu>
    After the use of the dialog the code will be rewritten as:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    Notice, the tags are now seperated instead of the selectItems tag being encased in the selectOneMenu tag.

  • BUG JSF Select Item not binding properly

    Dear Oracle,
    I'm running JDeveloper 10g version 10.1.3.0.3.3412 early access 1. If you create a HTMLMenu1 select list in a JSF Page and use the properties dialog to bind the values to a backing bean, the binding get's lost and the page doesn't call the value binding. What's more, if you try to rebind the values using the dialog, JDeveloper repeatedly inserts a new SelectItems tag for the menu.
    For example, if you create the SelectMenu1 and then use the dialog to bind the selectItems to a backing bean property, you will end up with code something like this:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"
    valueChangeListener="#{backing_showFactory.selectFactoryEvent}"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems1}"
    id="selectItems1"/>
    Now, click on the newly created menu item in the design window of the JSP editor and bring up the properties dialog. You will see that the value binding is blank. If you reenter the value binding information, JDeveloper creates a new tag so you end up with the following:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"
    valueChangeListener="#{backing_showFactory.selectFactoryEvent}"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems1}"
    id="selectItems1"/>
    Each time you repeat the process, JDeveloper creates another tag:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"
    valueChangeListener="#{backing_showFactory.selectFactoryEvent}"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems3}"
    id="selectItems3"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems1}"
    id="selectItems1"/>
    Either way, if you clean up the JSF page with the spurious tags, the value binding (in the example above backing_showFactory.allFactories), is never called.

    Yes - this really is a bug. Any changes to make to the selectItems tag through the properties dialog rewrites the tag source code to seperate the selectOne tag and the selectItems tag. For example, before you use the dialog, you tag code could look like this:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1">
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    </h:selectOneMenu>
    After the use of the dialog the code will be rewritten as:
    <h:selectOneMenu binding="#{backing_showFactory.selectOneMenu1}"
    id="selectOneMenu1"/>
    <f:selectItems value="#{backing_showFactory.allFactories}"
    binding="#{backing_showFactory.selectItems2}"
    id="selectItems2"/>
    Notice, the tags are now seperated instead of the selectItems tag being encased in the selectOneMenu tag.

  • BUG JSF h:dataTable with JDBC ResultSet - only last column is updated

    I tried to create updatable h:dataTable tag with three h:inputText columns with JDBC ResultSet as data source. But what ever I did I have seceded to update only the last column in h:dataTable tag.
    My JSF page is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.people}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>
    My java been is:
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getPeople() {
    return resultSet;
    I have instaled “Oracle Database 10g Express Edition Release 10.2.0.1.0” – product on my PC localy. I have enabled HR schema and I have instaled and pupulated with sample data folloving table:
    CREATE TABLE "PERSON"
    (     "PIN" VARCHAR2(20) NOT NULL ENABLE,
         "SURNAME" VARCHAR2(30),
         "NAME" VARCHAR2(30),
         CONSTRAINT "PERSON_PK" PRIMARY KEY ("PIN") ENABLE
    I have:
    Windows XP SP2
    Oracle JDeveloper Studio Edition Version 10.1.3.1.0.3894
    I am not shure why this works in that way, but I think that this is a BUG
    Thanks in advance.

    Hi,
    I am sorry because of formatting but while I am entering text looks fine but in preview it is all scrambled. I was looking on the Web for similar problems and I did not find anything similar. Its very simple sample and I could not believe that the problem is in SUN JSF library. I was thinking that problem is in some ResultSet parameter or in some specific Oracle implementation of JDBC thin driver. I did not try this sample on any other platform, database or programming tool. I am new in Java and JSF and I have some experience only with JDeveloper.
    Java been(session scope):
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement
    (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getZaposleni() {
    return resultSet;
    JSF Page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.zaposleni}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>

  • JSF & h:selectItems issue

    hello all,
    i am rewriting my app (originally written with Struts) in JSF, and i got at a dead end where i have to display in my JSP a selectable list which
    is populated using a Collection of JavaBeans.
    the option value is, let's say, JavaBean.property1 and the option label is JavaBean.property2.
    CAn anyone tell me how to do this with JSF? though i searched the net, i was not able to find out how can i put a collection of JavaBeans into a h:selectItems tag.
    the only structure usable is a Map, but i don't want to rewrite all my collections to be Map just to populate a selectable box
    anyone can help me out?
    do i need to write my own JSF component for that?
    thanx and regards
    marco

    well,you need to use a backing bean to create the collection for selectItems value.But remember, every object in the collection is a SelectItem instance.in your example, your JavaBean class need to have a properties method, and it probably looks like this:
    public List getProperties()
          List props=new LinkedList();
          SelectItem item1 =new SelectItem( prop1ID,prop1LabelValue);
          props.add(item1);
          SelectItem item2 =new SelectItem( prop2ID,prop2LabelValue);
          props.add(item2);
          return props;
    }and in the jsf page,you may have the following line:
    <f:selectItems value="#{JavaBean.properties}"/>
    hope it is helpful:)
    Robin

  • Bug: JSF 2.0 library OEPE 12c

    The OEPE 12c & WebLogic Server 12c have a bug in the deployment of the JSF 2.0 library, which generates an error:
    com.sun.faces.config.ConfigurationException: java.util.concurrent.Exe
    cutionException: javax.faces.FacesException: java.io.IOException: java.net.URISy
    ntaxException: Illegal character in opaque part at index 43: zip:C:/Users/dvohra
    +/workspace/libraries/JSF 2.0 (Mojarra 2.0.3-FCS)/mojarra-2.0.3-FCS/lib/jsf-impl.+
    jar!/META-INF/mojarra_ext.taglib.xml

    Hi,
    The issue is becuase the JSF library is installed in a folder that has spaces in the path. If you want to use the User Library, copy javax.faces.jar from <ws>\libraries\JSF 2.1 (Mojarra 2.1.6-FCS)\mojarra-2.1.6-FCS\lib to a folder withoutspaces and add it to a new User Library and configure the JSF Facet to use the newly defined user library.
    Thanks
    Raghu

  • Bug in JSF 2?

    I'm creating a fairly simple application using Weld and JSF2, running on Glassfish v3. However I have run into a problem which I can't get my head around. On one page I have a search field, which the result populates a h:selectOneMenu. From the h:selectOneMenu it should then be possible to select one of the results. This is were I get an error (or lack thereof, so to speak). The second request never reaches my RequestScoped bean, which I find odd.
    I have created a very simple example to illustrate. The behavior I would expect, is the search field to be populated in the h:selectOneMenu, and then the value selected here shown in the bottom line.
    If I change the bean to return a populated list for #{imTheBean.searchResult} on the first render, I'm able to submit just fine. Which is the behavior I was expecting from my example, but doesn't seem to work because I'm dynamically populating the searchResult..
    <h:messages /> outputs: "searchform:searchResult: Validation Error: Value is not valid". Nothing shows in the glassfish log..
    Am I doing something wrong, or is this a bug somewhere?
    JSF page:
    <?xml version="1.0" encoding="UTF-8"?>
    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                    xmlns:ui="http://java.sun.com/jsf/facelets"
                    xmlns:f="http://java.sun.com/jsf/core"
                    xmlns:h="http://java.sun.com/jsf/html">
        <h:messages/>
        <h:form id="searchform" styleClass="as_form">
            <h:inputText id="search" value="#{imTheBean.searchString}"/>
            <h:commandButton id="searchbutton" value="Search" action="#{imTheBean.doSearch}"/>
            <br/>
            <br/>
            <h:selectOneMenu id="searchResult" value="#{imTheBean.selectResult}">
                <f:selectItems value="#{imTheBean.searchResult}"/>
            </h:selectOneMenu>
            <h:commandButton id="selectButton" value="Select" action="#{imTheBean.doSelectResult}"/>
        </h:form>
        <br/>
        <br/>
        You selected #{imTheBean.selectedResult}
    </ui:composition>Bean:
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.List;
    import javax.enterprise.context.RequestScoped;
    import javax.inject.Named;
    * ImTheBean.
    @RequestScoped
    @Named
    public class ImTheBean implements Serializable {
        private static final long serialVersionUID = -6412703392546135760L;
        private String searchString;
        private List<String> searchResult;
        private String selectResult;
        private String selectedResult;
        public void doSearch() {
            searchResult = new ArrayList<String>();
            searchResult.add(searchString);
        public void doSelectResult() {
            selectedResult = selectResult;
        public String getSearchString() {
            return searchString;
        public void setSearchString(String searchString) {
            this.searchString = searchString;
        public List<String> getSearchResult() {
            return searchResult;
        public void setSearchResult(List<String> searchResult) {
            this.searchResult = searchResult;
        public String getSelectedResult() {
            return selectedResult;
        public void setSelectedResult(String selectedResult) {
            this.selectedResult = selectedResult;
        public String getSelectResult() {
            return selectResult;
        public void setSelectResult(String selectResult) {
            this.selectResult = selectResult;
    }

    This is a vague error that has existed for a long time, also in JSF 1.x. If you search on that specific error in google you'll get many cries for help, with solutions.
    Among other possibilities, it can happen when the list you use to fill the oneSelectMenu has different values on the postback; if the value that was selected in the menu does not exist in the backing list on the post back, you'll get this error.
    Also check BalusC's reply in this thread:
    [http://forums.sun.com/thread.jspa?forumID=427&threadID=5305443|http://forums.sun.com/thread.jspa?forumID=427&threadID=5305443]

  • ConvertDateTime: caching TimeZone: possible JSF bug?

    Hi all,
    I'm outputing a date field utilizing the timezone attribute of the convertDateTime tag. When I change the viewing timezone, the convertDateTime tag seems to be caching the old timezone value.
    Is anyone else encountering this issue? Is it a Bug? Is there a work around?
    Thanks all,
    Here is some test code I wrote to expose the bug...
    public class TimeZoneTest {
        private static final Log LOGGER = LogFactory.getLog(TimeZoneTest.class);
        private TimeZone timeZone = TimeZone.getTimeZone("GMT");
        private Date currentTime = new Date();
        private SelectItem[] availableTimeZones;
        public TimeZone getTimeZone() {
            return timeZone;
        public void setTimeZone(String timeZone) {
            this.timeZone = TimeZone.getTimeZone(timeZone);
        public Date getCurrentTime() {
            return currentTime;
        public SelectItem[] getAvailableTimeZones() {
            if (null == availableTimeZones) {
                availableTimeZones = new SelectItem[3];
                availableTimeZones[0] = new SelectItem("GMT","GMT");
                availableTimeZones[1] = new SelectItem("PST","PST");
                availableTimeZones[2] = new SelectItem("EST","EST");
            return availableTimeZones;
    }The JSP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache"/>
    <META HTTP-EQUIV="Expires" CONTENT="-1"/>
    <f:view>
        <html xmlns="http://www.w3.org/1999/xhtml">
            <body>
                <h:form>
                    <h:panelGrid columns="2">
                        <h:outputText value="TimeZone:"/>
                        <h:outputText value="#{timeZoneTest.timeZone.ID}"/>
                        <h:outputText value="Current Time:"/>
                        <h:outputText value="#{timeZoneTest.currentTime}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss z" timeZone="#{timeZoneTest.timeZone}"/>
                        </h:outputText>
                        <h:outputText value="Change Time Zone:"/>
                        <h:selectOneMenu value="#{timeZoneTest.timeZone.ID}"
                                         onchange="submit()">
                            <f:selectItems value="#{timeZoneTest.availableTimeZones}"/>
                        </h:selectOneMenu>
                    </h:panelGrid>
                </h:form>
            </body>
        </html>
    </f:view>

    Thanks for the reply.
    It appears the "F" tags are read in once per session. In my real testcase, if I start a new session the dates show in the correct timezone. So I believe this means that any evaluated value bindings for the "F" tags would be stored at the session scope.
    IMO - this is a major design flaw. Why allow for dynamic value binding expressions on a component that isn't fully evaluated when the tree is rendered?
    The only way around this seems to be a custom tag.
    So here is my crude outputDate custom tag - I hope this helps someone.
    Disclaimer: I only tested the three attributes I made: not sure if the component is as fully functional as say a h:outputText tag.
    Cheers,
    Jason V.
    The Tag:
    public class OutputDateTag extends UIComponentTag {
        private static final Log LOGGER = LogFactory.getLog(OutputDateTag.class);
        private String pattern;
        private String timeZone;
        private String value;
        private static final String TIME_ZONE_ATTRIBUTE = "timeZone";
        private static final String PATTERN_ATTRIBUTE = "pattern";
        private static final String VALUE_ATTRIBUTE = "value";
        public void setPattern(String pattern) {
            this.pattern = pattern;
        public void setTimeZone(String timeZone) {
            this.timeZone = timeZone;
        public void setValue(String value) {
            this.value = value;
        public String getRendererType() {
            return null;
        public String getComponentType() {
            return "com.mycompany.presentation.components.UIOutputDate";
         * Sets the 3 expected attributes:
         * <pre>
         * value: should evaluate to a java.util.Date object.
         * timeZone: should evaluate to a java.util.TimeZone object.
         * pattern: should evaluate to a String and be a compatiable form for a SimpleDateFormat object.
         * </pre>
         * {@inheritDoc}
         * @param component {@link UIComponent} whose properties are to be overridden
        @SuppressWarnings({"unchecked"})
        protected void setProperties(UIComponent component) {
            super.setProperties(component);
            FacesContext context = FacesContext.getCurrentInstance();
            Application application = context.getApplication();
            //pattern
            Map attributes = component.getAttributes();
            if (isValueReference(pattern)) {
                ValueBinding patternValueBinding = application.createValueBinding(pattern);
                component.setValueBinding(PATTERN_ATTRIBUTE, patternValueBinding);
            } else {
                attributes.put(PATTERN_ATTRIBUTE, pattern);
            //time zone
            if (isValueReference(timeZone)) {
                ValueBinding timeZoneValueBinding = application.createValueBinding(timeZone);
                component.setValueBinding(TIME_ZONE_ATTRIBUTE, timeZoneValueBinding);
            } else {
                attributes.put(TIME_ZONE_ATTRIBUTE, timeZone);
            //value
            if (isValueReference(value)) {
                ValueBinding valueBinding = application.createValueBinding(value);
                component.setValueBinding(VALUE_ATTRIBUTE, valueBinding);
            } else {
                attributes.put(VALUE_ATTRIBUTE, value);
            LOGGER.debug("pattern = " + pattern);
            LOGGER.debug("timeZone = " + timeZone);
            LOGGER.debug("value = " + value);
         * <p>Release any resources allocated during the execution of this
         * tag handler.</p>
        public void release() {
            super.release();
            value = null;
            timeZone = null;
            pattern = null;
    }The TagLib:
        <tag>
            <name>outputDate</name>
            <tagclass>com.prenet.presentation.tags.OutputDateTag</tagclass>
            <bodycontent>empty</bodycontent>
            <attribute>
                <name>value</name>
                <required>true</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
            <attribute>
                <name>pattern</name>
                <required>true</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
            <attribute>
                <name>timeZone</name>
                <required>true</required>
                <rtexprvalue>false</rtexprvalue>
            </attribute>
            <attribute>
                <name>binding</name>
            </attribute>
            <attribute>
                <name>id</name>
            </attribute>
            <attribute>
                <name>rendered</name>
            </attribute>
        </tag>The Component:
    public class UIOutputDate extends UIOutput {
        private static final Log LOGGER = LogFactory.getLog(UIOutputDate.class);
        private static final String TIME_ZONE_ATTRIBUTE = "timeZone";
        private static final String PATTERN_ATTRIBUTE = "pattern";
        private static final String VALUE_ATTRIBUTE = "value";
        public UIOutputDate() {
            //we render ourself... thanks.
            setRendererType(null);
         * Uses the timeZone and pattern attributes to pass to a  SimpleDateFormat object to get a String
         * representation of the Date value.
         * @throws NullPointerException {@inheritDoc}
        public void encodeBegin(FacesContext context) throws IOException {
            ResponseWriter writer = context.getResponseWriter();
            Locale locale = context.getViewRoot().getLocale();
            Map attributes = getAttributes();
            Date value = (Date) getValue();
            TimeZone toTimeZone = (TimeZone) attributes.get(TIME_ZONE_ATTRIBUTE);
            String pattern = (String) attributes.get(PATTERN_ATTRIBUTE);
            DateFormat format = new SimpleDateFormat(pattern, locale);
            format.setTimeZone(toTimeZone);
            String dateString = format.format(value);
            writer.writeText(dateString, VALUE_ATTRIBUTE);
    }The Test JSP (note: that there are some fixes to my original post)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="p" uri="http://www.mycompany.com/jsfTaglib" %>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache"/>
    <META HTTP-EQUIV="Expires" CONTENT="-1"/>
    <f:view>
        <html xmlns="http://www.w3.org/1999/xhtml">
            <body>
                <h:form>
                    <h:panelGrid columns="2">
                        <h:outputText value="TimeZone:"/>
                        <h:outputText value="#{timeZoneTest.timeZoneId}"/>
                        <h:outputText value="Current Time (Standard JSF):"/>
                        <h:outputText value="#{timeZoneTest.currentTime}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss z" timeZone="#{timeZoneTest.timeZone}"/>
                        </h:outputText>
                        <h:outputText value="Current Time (Custom TAG):"/>
                        <p:outputDate value="#{timeZoneTest.currentTime}" pattern="MM/dd/yyyy HH:mm:ss z" timeZone="#{timeZoneTest.timeZone}"/>
                        <h:outputText value="Change Time Zone:"/>
                        <h:selectOneMenu value="#{timeZoneTest.timeZoneId}" onchange="submit()">
                            <f:selectItems value="#{timeZoneTest.availableTimeZones}"/>
                        </h:selectOneMenu>
                    </h:panelGrid>
                </h:form>
            </body>
        </html>
    </f:view>The Testing Backing Bean:
    public class TimeZoneTestVC {
        private static final Log LOGGER = LogFactory.getLog(TimeZoneTestVC.class);
        private String timeZoneId = "UTC";
        private SelectItem[] availableTimeZones;
        public TimeZone getTimeZone() {
            TimeZone timeZoneByName = TimeZone.getTimeZone(timeZoneId);
            return timeZoneByName;
        public String getTimeZoneId() {
            return timeZoneId;
        public void setTimeZoneId(String timeZoneId) {
            this.timeZoneId = timeZoneId;
        public Date getCurrentTime() {
            return new Date();
        public SelectItem[] getAvailableTimeZones() {
            if (null == availableTimeZones) {
                String[] availableIDs = TimeZone.getAvailableIDs();
                Arrays.sort(availableIDs);
                availableTimeZones = new SelectItem[availableIDs.length];
                int i = 0;
                for (String zoneId : availableIDs) {
                    availableTimeZones[i] = new SelectItem(zoneId, zoneId);
                    i++;
            return availableTimeZones;
    }

  • Bug in JSF 1.2 RI using in JDev 11g

    Hi,
    We have found a bug in the JSF RI version used by JDev 11g TP2:
    In com.sun.faces.application.ApplicationImpl.createValidator, a MessageFormat is created using an erroneous pattern : created validator of type ''{0''}. This method is called by oracle.adfinternal.view.faces.util.rich.ConverterValidatorRegistrationUtils.addValidatorById. So, when the logging level is set to FINE, this crashes our application.
    FYI, this seems to be corrected in the last version (1.2_06) of the JSF RI.
    We tried replacing the jsf-api.jar and jsf-ri.jar files in lib\java\shared\oracle.jsf\1.2 with that new version but we are getting compilation errors in our JSPs.
    Before we spend time trying to do that, can you please tell me if that sounds like the right thing to do (or if there is another solution). Also, can you please confirm that the subsequent versions of JDev will include a corrected version of the JSF RI.
    Thanks.
    Olivier

    Hi,
    the right place is JDeveloper/jsf-ri for JDeveloper. I'll file a bug
    Frank

  • JSF editor Bug ?

    Hi everybody i'm trying the new jdeveloper 10.1.3 with jsf support , and after use it sometime, i realize that the jsf editor is not synchronizing very well the components on the backing code with the jsp document , when the backing code class isn't compiling (and it's saved in this state). This is a terrible source of error when you don't know it ...
    the question is , this is a normal behaviour or horrible bug ?

    Thanks, but that's not what i mean, you modify the components in the property inspector, but you don't write the methods code on the property inspector.The problem is when that code isn't compiling, if you keep using the jsp design view, the backing bean stops being updated ... if you dont realize of this bug you got desync the view with the backing ... :S

  • Does Oracle's implementation of JSF have this published bug?

    re: jsf with filter crashes when link to static html link is clicked.
    I also posted this on Sun's JSF forum and got a reply that said it sounded like this bug:
    https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=146
    Does Oracle know whether or not this bug is in their implementation of JSF?
    Regards,
    Al Malin

    Steve,
    I have determined that, with the JDev supplied JSF libs, a jsf with filter crashes when an invalid static html link is clicked.
    Replacing jsf-api.jar and jsf-impl.jar with the ones from JSF 1.1_02, my app did not crash. Instead it correctly displayed a 404 Not Found page.
    After restoring the jars and correcting the static link paths in the jsp, the links worked properly.
    What a way to discover a coding error!
    Al

  • JSF bug in Jdeveloper - Strange behaviour in identifying duplicate IDs

    Hi,
    I am having a JSF called top.jsp as follows: The following code works fine for around 2 times when I run my application for around 10 times. Looks like some time related sporadic issue. Is there a workaround for this issue? This issue is really troubling a lot.
    I am using Jdeveloper 10.1.3.2.0.4066.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=utf-8" session="true" errorPage="/error.jsp"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <%
        String sessionUser = (String)session.getAttribute("SessionUserName");
    %>
    <f:view>
      <html>
        <head>
          <title>iTools - Menu</title>
          <link rel="StyleSheet" href="../css/iTools.css" type="text/css" media="screen"/>
          <script type="text/javascript">
            function showErrorMsg() {
                if(document.getElementById('top:topErrMsg').value != '') {
                    alert(document.getElementById('top:topErrMsg').value);
                document.getElementById('top:topErrMsg').value='';
          </script>
        </head>
        <body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" id="top_body">
          <h:form id="top" binding="#{backing_General_top.top}" enctype="application/x-www-form-urlencoded" target="contentFrame">   
            <h:inputHidden id="topErrMsg" binding="#{backing_General_top.topErrMsg}" value=""/>
            <table class="topframebg" cellSpacing="0" cellPadding="0" width="100%" summary="" border="0" id="top_table1">
              <tbody id="top_table1_tbody1">
                <tr id="top_table1_tr1">
                  <td id="top_table1_tr1_td1">
                    <table align="right" background="../images/bottom-shade.gif" cellpadding="0" cellspacing="0" width="100%" summary="" border="0" id="top_table2">
                      <tbody id="top_table2_tbody2"><tr id="top_table2_tr1">
                        <td width="20" id="top_table2_tr1_td1"> </td>
                        <td width="75%" class="smalltext" id="top_table2_tr1_td2">Welcome to <%=sessionUser%></td>
                        <td id="restrictedWrkProfile" noWrap align="center" width="65">
                          <a class="txtglobalnav" href="userProfile.jsp" target="contentFrame">User Profile</a>
                        </td>
                        <td id="restrictedWrkProfileFollowup" width="5">
                          <span class="dividerglobalnav">|</span>
                        </td>
                        <td noWrap align="center" width="30" id="top_table2_tr1_td3">
                          <a class="txtglobalnav" onclick="" href="javascript:top.cqHandler.help()" id="top_table2_tr1_a1">Help</a>
                        </td>
                        <td align="center" width="5" id="top_table2_tr1_td4">
                          <span class="dividerglobalnav" id="top_table2_tr1_span1">|</span>
                        </td>
                        <td noWrap align="center" width="30" id="top_table2_tr1_td5">
                          <a id="top_table2_tr1_a2" class="txtglobalnav" onclick="window.open('?command=GetProductInfo&rmsessionid=203d4d38-8e6d-4b24-be1a-87fee01afc94','about','height=385,width=356,resizable=no,scrollbars=no')" href="http://rational-blr.iidc.lucent.com:8080/cqweb/main?USE_CASE=cq_banner&action=banner#">About</a>
                        </td>
                        <td align="center" width="5" id="top_table2_tr1_td6">
                          <span class="dividerglobalnav" id="top_table2_tr1_span2">|</span>
                        </td>
                        <td noWrap align="center" width="50" id="top_table2_tr1_td7">
                            <a class="txtglobalnav" href="../login.jsp" target=_top id="top_table2_tr1_a3">Log Out</a>
                        </td>
                        <td align="center" id="top_table2_tr1_td8">
                          <img height="8" alt="" src="../images/nocolor.gif" width="5">
                        </td>
                      </tr></tbody>
                    </table>
                  </td>
                </tr>
                <tr>
                  <td class="topframebg">
                    <table class="topframebg" cellSpacing="0" cellPadding="0" summary="" border="0" width="100%">
                      <tbody>
                        <tr>
                          <td width="15"><img height="30" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td class="topleftnavbold" noWrap>Product: 
                            <h:selectOneMenu id="iproduct__productname">
                              <f:selectItems value="#{backing_General_top.prodList}"/>
                            </h:selectOneMenu>
                          </td>
                          <td></td>
                          <td width="5"><img height="1" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td width="30">
                            <div><span style="WHITE-SPACE: nowrap">
                                <a4j:commandButton value="Go" styleClass="tabactive1" style="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" id="productSelect" action="#{backing_General_top.productSelect_action}" type="submit" reRender="topErrMsg" oncomplete="showErrorMsg()"/>
                            </span></div>
                          </td>
                          <td width="15"><img height="30" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td class="topframeshadow" width="1"><img height="1" alt="" src="../images/nocolor.gif" width="1"></td>
                          <td class="topframehighlight2" width="1"><img height="1" alt="" src="../images/nocolor.gif" width=1></td>
                          <td width="5"><img height="37" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td class="topleftnavbold" noWrap>Record: 
                            <h:selectOneMenu binding="#{backing_General_top.selectRecord}" id="selectRecord" style="select">
                              <f:selectItem itemLabel="User" itemValue="User"/>
                              <f:selectItem itemLabel="Product" itemValue="Product"/>
                              <f:selectItem itemLabel="Release" itemValue="Release"/>
                              <f:selectItem itemLabel="Product User" itemValue="Product User"/>
                            </h:selectOneMenu>
                          </td>
                          <td></td>
                          <td width="5"><img height="1" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td width="30">
                            <div><span style="WHITE-SPACE: nowrap">
                                <h:commandButton value="New" styleClass="tabactive1" style="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" id="createNewRecord" action="#{backing_General_top.createNew_action}" type="submit"/>
                            </span></div>
                          </td>
                          <td width="5"><img height="1" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td class="topframeshadow" width="1"><img height="1" alt="" src="../images/nocolor.gif" width="1"></td>
                          <td class="topframehighlight2" width="1"><img height="1" alt="" src="../images/nocolor.gif" width=1></td>
                          <td width="5"><img height="37" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td class="topleftnavbold" noWrap>ID:  </td>
                          <td>
                            <h:inputText maxlength="10" size="8" id="recordGet" binding="#{backing_General_top.recordGet}"/>
                          </td>
                          <td width="5"><img height="1" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td width="30">
                            <div><span style="WHITE-SPACE: nowrap">
                              <h:commandButton value="Find Record" styleClass="tabactive1" style="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" id="actionGetRecord" action="#{backing_General_top.actionGetRecord_action}"/>
                            </span></div>
                          </td>
                          <td width="5"><img height="1" alt="" src="../images/nocolor.gif" width="5"></td>
                          <td width="70%"> </td>
                          <td width="1"><img height="1" alt="" src="../images/nocolor.gif" width="1"></td>
                          <td width="5"><img height="37" alt="" src="../images/nocolor.gif" width="5"></td>
                        </tr>
                      </tbody>
                    </table>
                  </td>
                </tr>
              </tbody>
            </table>
          </h:form>
        </body>
      </html>
    </f:view>I am getting the following errors:
    An error occured:
        Duplicate component ID 'top:recordGet' found in view.
    javax.servlet.jsp.JspException: Duplicate component ID 'top:recordGet' found in view.
         at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:191)
         at _general._top._jspService(_top.java:234)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:622)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)Every time the error message on which id (like top:recordGet) it reports varies. I double checked all the files in my project. No where else this id is used.
    or
    An error occured:
        Duplicate component ID 'top:_id0' found in view.
    javax.servlet.jsp.JspException: Duplicate component ID 'top:_id0' found in view.
         at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:191)
         at _general._top._jspService(_top.java:234)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:622)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)and some times it gives 500 internal server error.

    The corresponding java code for the top.jsp is
    package _general;
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import oracle.jsp.el.*;
    import javax.servlet.jsp.el.*;
    public class _top extends com.orionserver.http.OrionHttpJspPage {
      // ** Begin Declarations
      // ** End Declarations
      public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
        response.setContentType( "text/html;charset=utf-8");
        /* set up the intrinsic variables using the pageContext goober:
        ** session = HttpSession
        ** application = ServletContext
        ** out = JspWriter
        ** page = this
        ** config = ServletConfig
        ** all session/app beans declared in globals.jsa
        PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, "/error.jsp", true, JspWriter.DEFAULT_BUFFER, true);
        // Note: this is not emitted if the session directive == false
        HttpSession session = pageContext.getSession();
        int __jsp_tag_starteval;
        ServletContext application = pageContext.getServletContext();
        JspWriter out = pageContext.getOut();
        _top page = this;
        ServletConfig config = pageContext.getServletConfig();
        javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);
        try {
          out.write(__oracle_jsp_text[0]);
          out.write(__oracle_jsp_text[1]);
          out.write(__oracle_jsp_text[2]);
          out.write(__oracle_jsp_text[3]);
          out.write(__oracle_jsp_text[4]);
              String sessionUser = (String)session.getAttribute("SessionUserName");
          out.write(__oracle_jsp_text[5]);
            com.sun.faces.taglib.jsf_core.ViewTag __jsp_taghandler_1=(com.sun.faces.taglib.jsf_core.ViewTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.jsf_core.ViewTag.class,"com.sun.faces.taglib.jsf_core.ViewTag");
            __jsp_taghandler_1.setParent(null);
            __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();
            if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))
              out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_1,__jsp_tag_starteval,out);
              do {
                out.write(__oracle_jsp_text[6]);
                  com.sun.faces.taglib.html_basic.FormTag __jsp_taghandler_2=(com.sun.faces.taglib.html_basic.FormTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.FormTag.class,"com.sun.faces.taglib.html_basic.FormTag id enctype target binding");
                  __jsp_taghandler_2.setParent(__jsp_taghandler_1);
                  __jsp_taghandler_2.setId("top");
                  __jsp_taghandler_2.setEnctype("application/x-www-form-urlencoded");
                  __jsp_taghandler_2.setTarget("contentFrame");
                  __jsp_taghandler_2.setBinding("#{backing_General_top.top}");
                  __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();
                  if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))
                    out.write(__oracle_jsp_text[7]);
                      com.sun.faces.taglib.html_basic.InputHiddenTag __jsp_taghandler_3=(com.sun.faces.taglib.html_basic.InputHiddenTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputHiddenTag.class,"com.sun.faces.taglib.html_basic.InputHiddenTag id value binding");
                      __jsp_taghandler_3.setParent(__jsp_taghandler_2);
                      __jsp_taghandler_3.setId("topErrMsg");
                      __jsp_taghandler_3.setValue("");
                      __jsp_taghandler_3.setBinding("#{backing_General_top.topErrMsg}");
                      __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();
                      if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                      OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,3);
                    out.write(__oracle_jsp_text[8]);
                    out.print(sessionUser);
                    out.write(__oracle_jsp_text[9]);
                      com.sun.faces.taglib.html_basic.SelectOneMenuTag __jsp_taghandler_4=(com.sun.faces.taglib.html_basic.SelectOneMenuTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.SelectOneMenuTag.class,"com.sun.faces.taglib.html_basic.SelectOneMenuTag id");
                      __jsp_taghandler_4.setParent(__jsp_taghandler_2);
                      __jsp_taghandler_4.setId("iproduct__productname");
                      __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();
                      if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))
                        out.write(__oracle_jsp_text[10]);
                          com.sun.faces.taglib.jsf_core.SelectItemsTag __jsp_taghandler_5=(com.sun.faces.taglib.jsf_core.SelectItemsTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.jsf_core.SelectItemsTag.class,"com.sun.faces.taglib.jsf_core.SelectItemsTag value");
                          __jsp_taghandler_5.setParent(__jsp_taghandler_4);
                          __jsp_taghandler_5.setValue("#{backing_General_top.prodList}");
                          __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();
                          if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                            return;
                          OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,4);
                        out.write(__oracle_jsp_text[11]);
                      if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                      OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,3);
                    out.write(__oracle_jsp_text[12]);
                      org.ajax4jsf.taglib.ajax.AjaxCommandButton __jsp_taghandler_6=(org.ajax4jsf.taglib.ajax.AjaxCommandButton)OracleJspRuntime.getTagHandler(pageContext,org.ajax4jsf.taglib.ajax.AjaxCommandButton.class,"org.ajax4jsf.taglib.ajax.AjaxCommandButton oncomplete reRender id styleClass style value action type");
                      __jsp_taghandler_6.setParent(__jsp_taghandler_2);
                      __jsp_taghandler_6.setOncomplete("showErrorMsg()");
                      __jsp_taghandler_6.setReRender("topErrMsg");
                      __jsp_taghandler_6.setId("productSelect");
                      __jsp_taghandler_6.setStyleClass("tabactive1");
                      __jsp_taghandler_6.setStyle("PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 1px; PADDING-TOP: 1px");
                      __jsp_taghandler_6.setValue("Go");
                      __jsp_taghandler_6.setAction("#{backing_General_top.productSelect_action}");
                      __jsp_taghandler_6.setType("submit");
                      __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();
                      if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                      OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,3);
                    out.write(__oracle_jsp_text[13]);
                      com.sun.faces.taglib.html_basic.SelectOneMenuTag __jsp_taghandler_7=(com.sun.faces.taglib.html_basic.SelectOneMenuTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.SelectOneMenuTag.class,"com.sun.faces.taglib.html_basic.SelectOneMenuTag id style binding");
                      __jsp_taghandler_7.setParent(__jsp_taghandler_2);
                      __jsp_taghandler_7.setId("selectRecord");
                      __jsp_taghandler_7.setStyle("select");
                      __jsp_taghandler_7.setBinding("#{backing_General_top.selectRecord}");
                      __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();
                      if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))
                        out.write(__oracle_jsp_text[14]);
                          com.sun.faces.taglib.jsf_core.SelectItemTag __jsp_taghandler_8=(com.sun.faces.taglib.jsf_core.SelectItemTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.jsf_core.SelectItemTag.class,"com.sun.faces.taglib.jsf_core.SelectItemTag itemLabel itemValue");
                          __jsp_taghandler_8.setParent(__jsp_taghandler_7);
                          __jsp_taghandler_8.setItemLabel("User");
                          __jsp_taghandler_8.setItemValue("User");
                          __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();
                          if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                            return;
                          OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,4);
                        out.write(__oracle_jsp_text[15]);
                          com.sun.faces.taglib.jsf_core.SelectItemTag __jsp_taghandler_9=(com.sun.faces.taglib.jsf_core.SelectItemTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.jsf_core.SelectItemTag.class,"com.sun.faces.taglib.jsf_core.SelectItemTag itemLabel itemValue");
                          __jsp_taghandler_9.setParent(__jsp_taghandler_7);
                          __jsp_taghandler_9.setItemLabel("Product");
                          __jsp_taghandler_9.setItemValue("Product");
                          __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();
                          if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                            return;
                          OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,4);
                        out.write(__oracle_jsp_text[16]);
                          com.sun.faces.taglib.jsf_core.SelectItemTag __jsp_taghandler_10=(com.sun.faces.taglib.jsf_core.SelectItemTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.jsf_core.SelectItemTag.class,"com.sun.faces.taglib.jsf_core.SelectItemTag itemLabel itemValue");
                          __jsp_taghandler_10.setParent(__jsp_taghandler_7);
                          __jsp_taghandler_10.setItemLabel("Release");
                          __jsp_taghandler_10.setItemValue("Release");
                          __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();
                          if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                            return;
                          OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,4);
                        out.write(__oracle_jsp_text[17]);
                          com.sun.faces.taglib.jsf_core.SelectItemTag __jsp_taghandler_11=(com.sun.faces.taglib.jsf_core.SelectItemTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.jsf_core.SelectItemTag.class,"com.sun.faces.taglib.jsf_core.SelectItemTag itemLabel itemValue");
                          __jsp_taghandler_11.setParent(__jsp_taghandler_7);
                          __jsp_taghandler_11.setItemLabel("Product User");
                          __jsp_taghandler_11.setItemValue("Product User");
                          __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();
                          if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                            return;
                          OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,4);
                        out.write(__oracle_jsp_text[18]);
                      if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                      OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,3);
                    out.write(__oracle_jsp_text[19]);
                      com.sun.faces.taglib.html_basic.CommandButtonTag __jsp_taghandler_12=(com.sun.faces.taglib.html_basic.CommandButtonTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.CommandButtonTag.class,"com.sun.faces.taglib.html_basic.CommandButtonTag action id value style styleClass type");
                      __jsp_taghandler_12.setParent(__jsp_taghandler_2);
                      __jsp_taghandler_12.setAction("#{backing_General_top.createNew_action}");
                      __jsp_taghandler_12.setId("createNewRecord");
                      __jsp_taghandler_12.setValue("New");
                      __jsp_taghandler_12.setStyle("PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 1px; PADDING-TOP: 1px");
                      __jsp_taghandler_12.setStyleClass("tabactive1");
                      __jsp_taghandler_12.setType("submit");
                      __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();
                      if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                      OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,3);
                    out.write(__oracle_jsp_text[20]);
                      com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_13=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,"com.sun.faces.taglib.html_basic.InputTextTag id maxlength size binding");
                      __jsp_taghandler_13.setParent(__jsp_taghandler_2);
                      __jsp_taghandler_13.setId("recordGet");
                      __jsp_taghandler_13.setMaxlength("10");
                      __jsp_taghandler_13.setSize("8");
                      __jsp_taghandler_13.setBinding("#{backing_General_top.recordGet}");
                      __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();
                      if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                      OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,3);
                    out.write(__oracle_jsp_text[21]);
                      com.sun.faces.taglib.html_basic.CommandButtonTag __jsp_taghandler_14=(com.sun.faces.taglib.html_basic.CommandButtonTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.CommandButtonTag.class,"com.sun.faces.taglib.html_basic.CommandButtonTag action id value style styleClass");
                      __jsp_taghandler_14.setParent(__jsp_taghandler_2);
                      __jsp_taghandler_14.setAction("#{backing_General_top.actionGetRecord_action}");
                      __jsp_taghandler_14.setId("actionGetRecord");
                      __jsp_taghandler_14.setValue("Find Record");
                      __jsp_taghandler_14.setStyle("PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 3px; PADDING-TOP: 3px");
                      __jsp_taghandler_14.setStyleClass("tabactive1");
                      __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();
                      if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                        return;
                      OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,3);
                    out.write(__oracle_jsp_text[22]);
                  if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                    return;
                  OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);
                out.write(__oracle_jsp_text[23]);
              } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
              out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);
            if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
              return;
            OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);
        catch (Throwable e) {
          if (!(e instanceof javax.servlet.jsp.SkipPageException)){
            try {
              if (out != null) out.clear();
            catch (Exception clearException) {
            pageContext.handlePageException(e);
        finally {
          OracleJspRuntime.extraHandlePCFinally(pageContext, true);
          JspFactory.getDefaultFactory().releasePageContext(pageContext);
      private static final char __oracle_jsp_text[][]=new char[24][];
      static {
        try {
        __oracle_jsp_text[0] =
        "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n".toCharArray();
        __oracle_jsp_text[1] =
        "\r\n".toCharArray();
        __oracle_jsp_text[2] =
        "\r\n".toCharArray();
        __oracle_jsp_text[3] =
        "\r\n".toCharArray();
        __oracle_jsp_text[4] =
        "\r\n".toCharArray();
        __oracle_jsp_text[5] =
        "\r\n".toCharArray();
        __oracle_jsp_text[6] =
        "\r\n  <html>\r\n    <head>\r\n      <title>iTools - Menu</title>\r\n      <link rel=\"StyleSheet\" href=\"../css/iTools.css\" type=\"text/css\" media=\"screen\"/>\r\n      <script type=\"text/javascript\">\r\n        function showErrorMsg() {\r\n            if(document.getElementById('top:topErrMsg').value != '') {\r\n                alert(document.getElementById('top:topErrMsg').value);\r\n            }\r\n            document.getElementById('top:topErrMsg').value='';\r\n        }\r\n      </script>\r\n    </head>\r\n    <body leftMargin=\"0\" topMargin=\"0\" marginheight=\"0\" marginwidth=\"0\" id=\"top_body\">\r\n      ".toCharArray();
        __oracle_jsp_text[7] =
        "    \r\n        ".toCharArray();
        __oracle_jsp_text[8] =
        "\r\n        <table class=\"topframebg\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" summary=\"\" border=\"0\" id=\"top_table1\">\r\n          <tbody id=\"top_table1_tbody1\">\r\n            <tr id=\"top_table1_tr1\">\r\n              <td id=\"top_table1_tr1_td1\">\r\n                <table align=\"right\" background=\"../images/bottom-shade.gif\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" summary=\"\" border=\"0\" id=\"top_table2\">\r\n                  <tbody id=\"top_table2_tbody2\"><tr id=\"top_table2_tr1\">\r\n                    <td width=\"20\" id=\"top_table2_tr1_td1\"> </td>\r\n                    <td width=\"75%\" class=\"smalltext\" id=\"top_table2_tr1_td2\">Welcome to ".toCharArray();
        __oracle_jsp_text[9] =
        "</td>\r\n                    <td id=\"restrictedWrkProfile\" noWrap align=\"center\" width=\"65\">\r\n                      <a class=\"txtglobalnav\" href=\"userProfile.jsp\" target=\"contentFrame\">User Profile</a>\r\n                    </td>\r\n                    <td id=\"restrictedWrkProfileFollowup\" width=\"5\">\r\n                      <span class=\"dividerglobalnav\">|</span>\r\n                    </td>\r\n                    <td noWrap align=\"center\" width=\"30\" id=\"top_table2_tr1_td3\">\r\n                      <a class=\"txtglobalnav\" onclick=\"\" href=\"javascript:top.cqHandler.help()\" id=\"top_table2_tr1_a1\">Help</a>\r\n                    </td>\r\n                    <td align=\"center\" width=\"5\" id=\"top_table2_tr1_td4\">\r\n                      <span class=\"dividerglobalnav\" id=\"top_table2_tr1_span1\">|</span>\r\n                    </td>\r\n                    <td noWrap align=\"center\" width=\"30\" id=\"top_table2_tr1_td5\">\r\n                      <a id=\"top_table2_tr1_a2\" class=\"txtglobalnav\" onclick=\"window.open('?command=GetProductInfo&amp;rmsessionid=203d4d38-8e6d-4b24-be1a-87fee01afc94','about','height=385,width=356,resizable=no,scrollbars=no')\" href=\"http://rational-blr.iidc.lucent.com:8080/cqweb/main?USE_CASE=cq_banner&amp;action=banner#\">About</a>\r\n                    </td>\r\n                    <td align=\"center\" width=\"5\" id=\"top_table2_tr1_td6\">\r\n                      <span class=\"dividerglobalnav\" id=\"top_table2_tr1_span2\">|</span>\r\n                    </td>\r\n                    <td noWrap align=\"center\" width=\"50\" id=\"top_table2_tr1_td7\">\r\n                        <a class=\"txtglobalnav\" href=\"../login.jsp\" target=_top id=\"top_table2_tr1_a3\">Log Out</a>\r\n                    </td>\r\n                    <td align=\"center\" id=\"top_table2_tr1_td8\">\r\n                      <img height=\"8\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\">\r\n                    </td>\r\n                  </tr></tbody>\r\n                </table>\r\n              </td>\r\n            </tr>\r\n            <tr>\r\n              <td class=\"topframebg\">\r\n                <table class=\"topframebg\" cellSpacing=\"0\" cellPadding=\"0\" summary=\"\" border=\"0\" width=\"100%\">\r\n                  <tbody>\r\n                    <tr>\r\n                      <td width=\"15\"><img height=\"30\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td class=\"topleftnavbold\" noWrap>Product: \r\n                        ".toCharArray();
        __oracle_jsp_text[10] =
        "\r\n                          ".toCharArray();
        __oracle_jsp_text[11] =
        "\r\n                        ".toCharArray();
        __oracle_jsp_text[12] =
        "\r\n                      </td>\r\n                      <td></td>\r\n                      <td width=\"5\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td width=\"30\">\r\n                        <div><span style=\"WHITE-SPACE: nowrap\">\r\n                            ".toCharArray();
        __oracle_jsp_text[13] =
        "\r\n                        </span></div>\r\n                      </td>\r\n                      <td width=\"15\"><img height=\"30\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td class=\"topframeshadow\" width=\"1\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"1\"></td>\r\n                      <td class=\"topframehighlight2\" width=\"1\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=1></td>\r\n                      <td width=\"5\"><img height=\"37\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td class=\"topleftnavbold\" noWrap>Record: \r\n                        ".toCharArray();
        __oracle_jsp_text[14] =
        "\r\n                          ".toCharArray();
        __oracle_jsp_text[15] =
        "\r\n                          ".toCharArray();
        __oracle_jsp_text[16] =
        "\r\n                          ".toCharArray();
        __oracle_jsp_text[17] =
        "\r\n                          ".toCharArray();
        __oracle_jsp_text[18] =
        "\r\n                        ".toCharArray();
        __oracle_jsp_text[19] =
        "\r\n                      </td>\r\n                      <td></td>\r\n                      <td width=\"5\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td width=\"30\">\r\n                        <div><span style=\"WHITE-SPACE: nowrap\">\r\n                            ".toCharArray();
        __oracle_jsp_text[20] =
        "\r\n                        </span></div>\r\n                      </td>\r\n                      <td width=\"5\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td class=\"topframeshadow\" width=\"1\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"1\"></td>\r\n                      <td class=\"topframehighlight2\" width=\"1\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=1></td>\r\n                      <td width=\"5\"><img height=\"37\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td class=\"topleftnavbold\" noWrap>ID:  </td>\r\n                      <td>\r\n                        ".toCharArray();
        __oracle_jsp_text[21] =
        "\r\n                      </td>\r\n                      <td width=\"5\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td width=\"30\">\r\n                        <div><span style=\"WHITE-SPACE: nowrap\">\r\n                          ".toCharArray();
        __oracle_jsp_text[22] =
        "\r\n                        </span></div>\r\n                      </td>\r\n                      <td width=\"5\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                      <td width=\"70%\"> </td>\r\n                      <td width=\"1\"><img height=\"1\" alt=\"\" src=\"../images/nocolor.gif\" width=\"1\"></td>\r\n                      <td width=\"5\"><img height=\"37\" alt=\"\" src=\"../images/nocolor.gif\" width=\"5\"></td>\r\n                    </tr>\r\n                  </tbody>\r\n                </table>\r\n              </td>\r\n            </tr>\r\n          </tbody>\r\n        </table>\r\n      ".toCharArray();
        __oracle_jsp_text[23] =
        "  \r\n    </body>\r\n  </html>\r\n".toCharArray();
        catch (Throwable th) {
          System.err.println(th);
    }

  • Bug when using a Map for SelectItems?

    Hi there,
    I think I found a pretty bad bug.... I don't think this behaviour is intended:
    I create a selectOneListbox which uses a map for storing the selectItems. The property holding the value is type compatible with the value in the map. When the component is shown, the wrong item is selected (ie NOT The one that is returned by the value property). If I use SelectItem[] for the selectItems, it works. Here is some sample code:
    The methods in the bean (managed bean with the name helloBean). The value property always returns 12 .....
      public Map getItems(){
        Map map = new HashMap();
        map.put("Hello_11", new Integer(11));
        map.put("Hello_12", new Integer(12));
        map.put("Hello_13", new Integer(13));
        map.put("Hello_14", new Integer(14));
        return map;
      public SelectItem[] getItems2(){
        SelectItem[] items = {
            new SelectItem(new Integer(11), "Hello_11"),
            new SelectItem(new Integer(12), "Hello_12"),
            new SelectItem(new Integer(13), "Hello_13"),
            new SelectItem(new Integer(14), "Hello_14"),       
        return items;
      public Integer getValue(){
        return new Integer(12);
      }..... here is how the selectOneListboxes are initialized ......
    <h:form id="helloForm">
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items}"/>
            </h:selectOneListbox>
            <h:selectOneListbox size="1" value="#{helloBean.value}">
              <f:selectItems value="#{helloBean.items2}"/>
            </h:selectOneListbox>
    </h:form>.... so both boxes refer to the same value property but their selectItems are taken from a map and a SelectItem[] array respectively. I would expect to see in both boxes the text "Hello_12", BUT:
    <select name="welcomeForm:_id0" size="1">     
         <option value="14">Hello_14</option>
         <option value="12">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="11">Hello_11</option>
    </select>
    <select name="welcomeForm:_id2" size="1">     
         <option value="11">Hello_11</option>
         <option value="12" selected="selected">Hello_12</option>
         <option value="13">Hello_13</option>
         <option value="14">Hello_14</option>
    </select>as you can see, only for the array the correct value is initially selected.
    Can anyone confirm this is a bug - or - what i would prefer tell me how to get around this?
    Thanks a lot!

    If getValue returns "12" (a String value), the situation is reversed.
    See the page 9-31 of the specification. It says:
    4. A java.util.Map where the keys are
    converted to Strings and used as labels, and
    the corresponding values are converted to
    Strings and used as values for newly
    created javax.faces.model.SelectItem
    instances. The instances are created in the
    order of the iterator over the keys provided
    by the Map.

  • Bug in JSF 2.0?

    I was using JSF 2.0 + DI + Bean Validation in a app to test the new functionalities. In the end, a got a bug. When the data validation failed in a form, the entire page was redisplayed again, with the appropriate error messages but without some html components, like outputLabels and outputText. I thought that it was my mistake, but i opened the Scrum Toys netBeans example and got the same problem. Anyone here already noticed this?
    Edited by: 1234teste on Jun 5, 2010 10:12 AM
    Edited by: 1234teste on Jun 5, 2010 10:12 AM

    if you think it is a bug, file a bug report.
    I'd find it hard to believe that the Netbeans example displays the same problem and that it has gone unnoticed though. Perhaps you should first try it on a fresh installation of Glassfish V3 to see if the problem remains.

  • Thread bottleneck due to bug in JSF 1.1 : please help

    Hi. We are using JSF 1.1 on a J2EE 1.4 server and have identified a critical a bottleneck because methods of class com.sun.faces.application.ApplicationAssociate are synchronized. This is a bug in JSF 1.1 identified by Sun (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6223295) that has apparently been fixed in JSF 1.2.
    However, JSF 1.2 requires Servlet 2.5 and JSP 2.1support, and our server is only J2EE 1.4 compatible.
    So what can we do ? If you have any ideas, please post.
    Thanks.
    Fabien Coppens

    Actually, I have just tried JSF 1.1_02 and it does seem to solve the thread bottleneck problem. I'll need verification once we get into performance testing, I'll keep you guys posted.

Maybe you are looking for

  • Getting help/attention from Adobe

    Hey, does anyone have experience or advice on how best to make sure Adobe's aware of problems and maybe get responses> I'm aware of 3 possible ways: 1) Post in these forums. You'll probably get a response from other helpful and knowledgeable users, s

  • Should I re-attempt installing iOS7 on my iPhone 5?

    Hello Everyone, I am stuck. Please help. My 1st attempt to install iOS7 was unsuccessful, my phone went into recovery mode. I wasnt able to restore it back as well as it threw error 9. I had to restore it from a local store and now its running iOS 6.

  • How to capture workitem number

    Hi Experts, We have custom workflow for creating material master. The main workflow contains different sub workflows and tasks. The workflow has 4 levels approvals and it has been triggering from Z transaction using event. We have the requirement for

  • Locating my printer setup utility

    I dont seem to have a printer setup utility how do i get one to add my new printer to? did it go the way of my virex when i loaded leopard? cause im getting this error msg to list the new printer in the setup utility and my search provides no printer

  • Api for FND_FLEX_VALUES?

    Hello, has anybody used an API for FND_FLEX_VALUES in the past? I can't find any in the database or in irep.oracle.com. Thanks, Michael