Adding custom navigation rules results in strange behavior

Hello,
We'd like to add navigation rules to our application. To avoid post-JHeadstart-generation-steps we created an extra faces-config-custom.xml file which contains the navigation rules. When adding this file to the web.xml and run the aplication we encounter strange behavior
- Errors are shown in duplicate
- 'Transaction completed' messages are not shown
Try adding the underneath faces-config-custom.xml to a standard HR demo project and you will get the same behavior.
(1) What is the reason of this strange behavior?
(2) How can we add custom navigation rules, without having to do post creation steps?
Regards Leon
[faces-config-custom.xml]
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>BezwaarVerzoeken</from-outcome>
<to-view-id>/pages/inboeken/BezwaarVerzoeken.jspx</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>LosseOpdrachten</from-outcome>
<to-view-id>/pages/inboeken/LosseOpdrachten.jspx</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
[Add faces-config-custom.xml to web.xml]
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config-custom.xml,...

Leon,
When you perform a drag and drop operation, JDeveloper adds the following lines to the faces-config.xml:
<lifecycle>
<phase-listener>
Oracle.adf.controller.faces.lifecycle.ADFPhaselistener
</phase-listener>
</lifecycle>
However, JHeadstart uses its own subclass of ADFPhaselistener, and defines the lifecycle element in JhsCommon-beans.xml. Due to a bug in ADF, ADF does not look for the lifecycle element in other files than faces-config, and adds its own element in faces-config.xml If you remove these lines, everything works fine again.
To prevent this from happening again, you can move the following entry from JhsCommon-beans.xml to faces-config.xml:
<lifecycle> <phase-listener>oracle.jheadstart.controller.jsf.lifecycle.JhsADFPhaseListener</phase-listener>
</lifecycle>
And then make a custom template for JhsCommon-beans.vm where you remove this entry.
Steven Davelaar,
JHeadstart team.

Similar Messages

  • Adding custom navigation to the script

    One of the scripts which I am preparing at the moment is giving me some problems.
    This script has 5 nodes. In the first three, a new user account is created, and in the 3rd node I get a special user ID (it can be found in the pages html source).
    Then the 4th node navigates to an absolutely unrelated page, and the user ID I get from node 3 is used to construct the address for node 4. And node 5 just does more work on that page which I navigate to in node 4.
    As such, I have to use a custom navigation here, which can be implemented, if I am not mistaken, with provided the e-Load Navigation Editor. I do all the steps mentioned in the manual, and it all seems clear and well described. But when I try to run run that node 4 I get something like
    http://mysiteaddress/clever.page?&sp={{UserId[3]_#_Uo2k0k4g0000hk464a1h0000000}}&sp=en
    i.e. the substitution in the address with that custom variable somehow fails, and I get the regular expression code as the output instead of the processed expression. UserId[3] is the variable defined on step 3, which contains the id I mentioned.
    Anyone knows what could be the problem here?
    I know how to do that with PI, but I would like to try and use the Navigation Editor first.

    Can you try this "session.serverVariables.VARIABLENAME"

  • Trackpad Bug in 10.9 (click is delayed, results in strange behavior)

    Hi everybody,
    Since updating my Macbook (5,1 late 2008, SSD, 8GB-RAM) to 10.9 Mavericks my trackpad behaves buggy in the following way:
    When I press down the trackpad with one finger the corresponding "reaction" seems to be delayed (not every but most of the time).
    This results in real annoying behavior when you try to select some text with the cursor, or try to move a tab or file etc.
    Sometimes, also "tracking" is lost while selecting or drag&drop operation thus resulting in unselected lines of text, or files or tabs lost on drag.
    I updated from 10.6.8 (Snow Leopard) and the described bug has never occurred before the update.
    Is this a known bug? Does Apple work on it for 10.9.1? Any suggestions?
    Thanks.

    Thanks four your reply.
    I already looked at the metalink doc. It lists 4 bugs introduced in 10.2.0.5, but none of them seems related to my problem. Did I overlook something?
    Regards,
    Henk

  • ProcessTrain with maxPathKey result in strange behavior

    Hello,
    I have a process train with 5 nodes that works as expected in Plus-one mode. However I would like to use the Max visited model, so I added the maxPathKey property to my faces config with a value of 1. The behavior i'm getting is as follow:
    When I complete the fist page and click on "next" the second page is displayed but the next button is not displayed, so I cannot continue with the process. However if I click on the "previous" button to go back to the first page and click "next" again to go to page two, then the "next" button on page two will display.
    Is this a bug in the process train ?

    While a trailing period may be acceptable to a Mac, it is not acceptable to the Windows OS. If you were to connect to your server via AFP (Apple Filing Protocol) then you would be able to preserve the period at the end of the filename because File Services for Macintosh would make the translation from the illegal character to something that could reside on the server.
    However, since you're using SMB, you're not using File Services for Macintosh.
    Your options are to either use AFP and File Services for Macintosh on your Windows server or use SMB and remove the trailing periods.
    Have a look at this page on Microsoft's site for more information http://support.microsoft.com/kb/q117258/.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.4)  

  • Problem with navigation-rules

    Hello!!!
    I'm using Jboss Jbpm with JSF and I want to navigate to other page when I fill a form and I send the data that I entered. I have declare the navigation-rules but it doesn't work and I don't know why.
    In my faces-config.xml I've added the navigation-rules:
    <managed-bean>
                   <managed-bean-name>usuario</managed-bean-name>
                   <managed-bean-class>com.miApp.UserBean</managed-bean-class>
                   <managed-bean-scope>request</managed-bean-scope>
              </managed-bean>
         <navigation-rule>
                   <from-view-id>/SolicitarAlta.xhtml</from-view-id>
                   <navigation-case>
                        <from-action>#{usuario.registrar}</from-action>
                        <from-outcome>correcto</from-outcome>
                        <to-view-id>/results/correcto.jsp</to-view-id>
                   </navigation-case>
         </navigation-rule>
         The UserBean has the method registrar:
    public String registrar() {
           if(dni==null || nombre==null || apellidos==null || ocupacion==null || mail==null || tlf==null ||
    password==null)      
                return "campos-obligatorios";
           if ((mail.trim().length() < 3) ||       (mail.indexOf("@") == -1))
                          return "mail-incorrecto";
           else if(tlf.length()!=9)     return "telefono-incorrecto";
                else if(dni.length()!=8) {return "dni-incorrecto";}
           return "correcto";
         And with this line:
    <h:commandButton type="submit" value="Enviar" action="#{usuario.registrar}"/>     the method registrar is executed and I know that this method returns the string "correcto" but ... This doesn't redirect me to the page correcto.jsp
    I thought that maybe if SolicitarAlta was an xhtml file the correcto page should be also an .xhtml file. I changed it but it doesn't work.
    Any ideas? Could it be that I have to add something more in the faces-config.xml & web.xml file???
    Thx!

    I found the solution to my problem but I don't really understand why it was not working. My problem was due to the use of command button with a render set to false. I just put them at true and all my navigation rules work!
    If someone know why it was not working, I would be glad to know!

  • Adding AV/AS Rule for AVG 9

    A while back I had TAC send me instructions for adding custom AV rule for AVG 8. I seem to have misplaced those (they're not lost - I just can't find em). Can someone post the steps that I will need to add AVG 9 as a custom rule for NAC? Thanks in advance.

    OK...This what you need to manually add the rules for AVG 9
    If you just want to allow them if Avg9 is installed you can create a new registry check.
    Device Management -> Clean Access -> Clean Access Agent -> Rules -> New Check.
    Check Category: Registry Check
    Check Type: Registry Key
    Registry Key: HKLM : SOFTWARE\Avg\Avg9
    Operator: exists
    Choose your Operating Systems
    Check the box to create a rule based on the new check.
    Under your existing AV Requirement the new rule should now
    show up under Requirement-Rules.
    In order to check the AV Definitions as being current we can add :
    Check Category: File Check
    Check Type: File Date
    File Path: SYSTEM_DRIVE : \Program Files\Avg\Avg9\sc.dat
    Operator: later than
    File Date: Cam date - 5 days
    File Date Type: Modification date
    Select Your OS' and Automatically create a rule based on the check.
    Add this check to your existing AV definition requirement rules and make sure you have
    "Any Select Rule Succeeds chosen.

  • Issue with adding custom speed to a behavior

    I am trying to add a custom speed to a write on behavior. The shape I am trying to write on works fine when I have it at any other speed setting but when I set it to custom (which I need to allow it to both write on and write off at the end) the shape disappears. Despite playing with the custom speed percentage, the shape never comes back. Any ideas?

    Ok. I opened your project in my Motion 4 and after it updated it, I got the custom behavior to work fine. However, I had a thought so I decided to open it on my machine that's using Motion 3. There I noticed the problem you're having. I was unable to get the shape write on behavior to work either.
    I believe the problem to be with your project. It appears slightly corrupt. Here's something you might try. Create a new project. Redraw your circle shape. Apply the write on behavior and keyframe it as I mentioned before. Then copy and paste it into your current sequence to replace the circle you have in there.
    If that doesn't work, I'd rebuild your project. Instead of using all those strokes, just make one X and one O and one line. Then use clones for all the others. That should simplify the project quite a bit.

  • Strange behavior of HtmlPanelGrid.getChildren().clear();

    I have some problem, described in previous messages.
    Investigating it, I found some strange behavior, which I cannot understand.
    I builded a small application to isolate this strangeness.
    There are two pages, first and second. There are hyperlinks from first page to second. Secon page serves as an indicator, that navigation was successfull. It is not so all the time.
    There is a bean, which constructs a hyperlink at runtime and which contains my problem, as I think.
    The config file is (header and footer skipped):
    <navigation-rule>
    <from-view-id>/welcomeJSF.jsp</from-view-id>
    <navigation-case>
    <from-outcome>select</from-outcome>
    <to-view-id>/secondPage.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>bean</managed-bean-name>
    <managed-bean-class>Buggy.Bean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    One can see, that navigation is always controlled with the one constant string literal -- select. The bean is called just "bean" and it exists during a session.
    First page is (header and footer skipped):
    <f:view>
    <h:form>
    <h:commandLink id="link1" action="select" value="link1 (hardcoded)"/>
    <h:panelGrid id="panel" binding="#{bean.panel}" columns="20" border="1" cellspacing="0">
    <h:commandLink id="link2" action="select" value="link2 (hardcoded)"/>
    </h:panelGrid>
    </h:form>
    </f:view>
    One can see, that there are two hardcoded hyperlinks, one is inside the panelGrid, second is outside. Also it is seen, that the panel is binded with bean property as a whole.
    The second page is just displaying a text to be sure the navigation occured.
    Now the bean (header and footer skipped):
    private HtmlPanelGrid panel;
    public HtmlPanelGrid getPanel() {
    return panel;
    public void setPanel(HtmlPanelGrid panel) {
    this.panel = panel;
    Application application = FacesContext.getCurrentInstance().getApplication();
    MethodExpression expr = application.getExpressionFactory().createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "select", String.class, new Class[0]);
    HtmlCommandLink link = (HtmlCommandLink) application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
    link.setId("link3");
    link.setValue("link3 (softcoded)");
    link.setActionExpression(expr);
    panel.getChildren().clear();
    panel.getChildren().add(link);
    One can see, that a third (softcoded) hyperlink is added to the panel dynamically, with preliminary clearing panel content.
    * STRANGENESSES *
    1) despite the fact, that the panel is cleared prior to adding softcoded hyperlink, I CAN see it on the page (all 3 hyperlinks are seen)
    2) in the debugger I can see, that while executing code, the children list is empty; this can mean, that the order of execution of the Jave code and JSP code is reversed; despite this fact, I see the hardcoded link BEFORE the softcoded
    3) the link2 (hardcoded) is not work, i.e. it is not leads the second page to be displayed
    4) if I comment the line panel.getChildren().clear(); then all 3 hyperlinks start to work

    But when I put links creation code in bean's constructor, it was lost.
    It seems to me, that the system creates panel independently and only after that calls setter of my bean. Ergo, the data from the panel field, initialized in constructor is overwrited.
    Where I should place programmatic filling of panel element?

  • Strange behavior at secured pages

    Hi, I encounter a strange behavior at jdev 11
    I have a page A that has a command button that navigates from that page to page B. It's action value is a control flow
    that has from activity:A toActivity:B at the adfc-config.xml.
    That worked fine until I secured page A, after this, pushing command button resulted to nothing (no navigation, no error)
    If i change the control flows fromActivity from A to * then it works OK again.
    so it seems that when the page is secured only global navigation rules are working.
    Is this a bug or am I doing something wrong?
    thanks
    Tilemahos

    url:
    http://127.0.0.1:7101/MarketOffice-ViewController-context-root/faces/welcomePage.jspx
    adfc-config.xml view id:
    <view id="welcomePage">
    <page>/welcomePage.jspx</page>
    </view>
    jazn.com fragment:
    <grant>
    <grantee>
    <principals>
    <principal>
    <class>oracle.security.jps.service.policystore.ApplicationRole</class>
    <name>entryPage_view</name>
    </principal>
    </principals>
    </grantee>
    <permissions>
    <permission>
    <class>oracle.adf.share.security.authorization.RegionPermission</class>
    <name>view.pageDefs.welcomePagePageDef</name>
    <actions>customize,edit,grant,personalize,view</actions>
    </permission>
    </permissions>
    </grant>
    granting customize,edit,grant,personalize,view to welcomePage webpage at entryPage_view role
    adfc-config.xml
    <control-flow-rule>
    <from-activity-id>welcomePage</from-activity-id>
    <control-flow-case>
    <from-outcome>success</from-outcome>
    <to-activity-id>home</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    control flow success navigates from welcomePage to home
    welcomePage.jspx:
    <af:commandButton text="commandButton 1" action="success"/>
    if I replace "success" with some global control flow like:
    <control-flow-rule>
    <from-activity-id>*</from-activity-id>
    <control-flow-case>
    <from-outcome>gtHome</from-outcome>
    <to-activity-id>home</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <af:commandButton text="commandButton 1" action="gtHome"/>
    it works fine
    Tilemahos

  • Strange behavior: action method not called when button submitted

    Hello,
    My JSF app is diplaying a strange behavior: when the submit button is pressed the action method of my managed bean is not called.
    Here is my managed bean:
    package arcoiris;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    public class SearchManagedBean {
        //Collected from search form
        private String keyword;
        private String country;
        private int[] postcode;
        private boolean commentExists;
        private int rating;
        private boolean websiteExists;
        //Used to populate form
        private List<SelectItem> availableCountries;
        private List<SelectItem> availablePostcodes;
        private List<SelectItem> availableRatings;
        //Retrieved from ejb tier
        private List<EstablishmentLocal> retrievedEstablishments;
        //Service locator
        private arcoiris.ServiceLocator serviceLocator;
        //Constructor
        public SearchManagedBean() {
            System.out.println("within constructor SearchManagedBean");
            System.out.println("rating "+this.rating);
        //Getters and setters
        public String getKeyword() {
            return keyword;
        public void setKeyword(String keyword) {
            this.keyword = keyword;
        public String getCountry() {
            return country;
        public void setCountry(String country) {
            this.country = country;
        public boolean isCommentExists() {
            return commentExists;
        public void setCommentExists(boolean commentExists) {
            this.commentExists = commentExists;
        public int getRating() {
            return rating;
        public void setRating(int rating) {
            this.rating = rating;
        public boolean isWebsiteExists() {
            return websiteExists;
        public void setWebsiteExists(boolean websiteExists) {
            this.websiteExists = websiteExists;
        public List<SelectItem> getAvailableCountries() {
            List<SelectItem> countries = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue("2");
            si_1.setLabel("ecuador");
            si_2.setValue("1");
            si_2.setLabel("colombia");
            si_3.setValue("3");
            si_3.setLabel("peru");
            countries.add(si_1);
            countries.add(si_2);
            countries.add(si_3);
            return countries;
        public void setAvailableCountries(List<SelectItem> countries) {
            this.availableCountries = availableCountries;
        public List<SelectItem> getAvailablePostcodes() {
            List<SelectItem> postcodes = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue(75001);
            si_1.setLabel("75001");
            si_2.setValue(75002);
            si_2.setLabel("75002");
            si_3.setValue(75003);
            si_3.setLabel("75003");
            postcodes.add(si_1);
            postcodes.add(si_2);
            postcodes.add(si_3);
            return postcodes;
        public void setAvailablePostcodes(List<SelectItem> availablePostcodes) {
            this.availablePostcodes = availablePostcodes;
        public List<SelectItem> getAvailableRatings() {
            List<SelectItem> ratings = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue(1);
            si_1.setLabel("1");
            si_2.setValue(2);
            si_2.setLabel("2");
            si_3.setValue(3);
            si_3.setLabel("3");
            ratings.add(si_1);
            ratings.add(si_2);
            ratings.add(si_3);
            return ratings;
        public void setAvailableRatings(List<SelectItem> availableRatings) {
            this.availableRatings = availableRatings;
        public int[] getPostcode() {
            return postcode;
        public void setPostcode(int[] postcode) {
            this.postcode = postcode;
        public List<EstablishmentLocal> getRetrievedEstablishments() {
            return retrievedEstablishments;
        public void setRetrievedEstablishments(List<EstablishmentLocal> retrievedEstablishments) {
            this.retrievedEstablishments = retrievedEstablishments;
        //Business methods
        public String performSearch(){
            System.out.println("performSearchManagedBean begin");
            SearchRequestDTO searchRequestDto = new SearchRequestDTO(this.keyword,this.country,this.postcode,this.commentExists,this.rating, this.websiteExists);
            SearchSessionLocal searchSession = lookupSearchSessionBean();
            List<EstablishmentLocal> retrievedEstablishments = searchSession.performSearch(searchRequestDto);
            this.setRetrievedEstablishments(retrievedEstablishments);
            System.out.println("performSearchManagedBean end");
            return "success";
        private arcoiris.ServiceLocator getServiceLocator() {
            if (serviceLocator == null) {
                serviceLocator = new arcoiris.ServiceLocator();
            return serviceLocator;
        private arcoiris.SearchSessionLocal lookupSearchSessionBean() {
            try {
                return ((arcoiris.SearchSessionLocalHome) getServiceLocator().getLocalHome("java:comp/env/ejb/SearchSessionBean")).create();
            } catch(javax.naming.NamingException ne) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
                throw new RuntimeException(ne);
            } catch(javax.ejb.CreateException ce) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ce);
                throw new RuntimeException(ce);
    }Here is my jsp page:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
             <html>
                 <head>
                     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                     <META HTTP-EQUIV="pragma" CONTENT="no-cache">
                     <title>JSP Page</title>
                 </head>
                 <body>
                     <f:view>
                         <h:panelGroup id="body">
                             <h:form id="searchForm">
                                 <h:panelGrid columns="2">
                                     <h:outputText id="keywordLabel" value="enter keyword"/>   
                                     <h:inputText id="keywordField" value="#{SearchManagedBean.keyword}"/>
                                     <h:outputText id="countryLabel" value="choose country"/>   
                                     <h:selectOneListbox id="countryField" value="#{SearchManagedBean.country}">
                                         <f:selectItems id="availableCountries" value="#{SearchManagedBean.availableCountries}"/>
                                     </h:selectOneListbox>
                                     <h:outputText id="postcodeLabel" value="choose postcode(s)"/>   
                                     <h:selectManyListbox id="postcodeField" value="#{SearchManagedBean.postcode}">
                                         <f:selectItems id="availablePostcodes" value="#{SearchManagedBean.availablePostcodes}"/>
                                     </h:selectManyListbox>
                                     <h:outputText id="commentExistsLabel" value="with comment"/>
                                     <h:selectBooleanCheckbox id="commentExistsField" value="#{SearchManagedBean.commentExists}" />
                                     <h:outputText id="ratingLabel" value="rating"/>
                                     <h:selectOneListbox id="ratingField" value="#{SearchManagedBean.rating}">
                                         <f:selectItems id="availableRatings" value="#{SearchManagedBean.availableRatings}"/>
                                     </h:selectOneListbox>
                                     <h:outputText id="websiteExistsLabel" value="with website"/>
                                     <h:selectBooleanCheckbox id="websiteExistsField" value="#{SearchManagedBean.websiteExists}" />
                                     <h:commandButton value="search" action="#{SearchManagedBean.performSearch}"/>
                                 </h:panelGrid>
                             </h:form>
                         </h:panelGroup>
                     </f:view>
                 </body>
             </html>
         here is my faces config file:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
        <managed-bean>
            <managed-bean-name>SearchManagedBean</managed-bean-name>
            <managed-bean-class>arcoiris.SearchManagedBean</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <navigation-rule>
           <description></description>
            <from-view-id>/welcomeJSF.jsp</from-view-id>
            <navigation-case>
            <from-outcome>success</from-outcome>
            <to-view-id>index.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
    </faces-config>The problem occurs when the field ratingField is left blank (which amounts to it being set at 0 since it is an int).
    Can anyone help please?
    Thanks in advance,
    Julien.

    Hello,
    Thanks for the suggestion. I added the tag and it now says:
    java.lang.IllegalArgumentException
    I got that from the log:
    2006-08-17 15:29:16,859 DEBUG [com.sun.faces.el.ValueBindingImpl] setValue Evaluation threw exception:
    java.lang.IllegalArgumentException
         at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:178)
         at com.sun.faces.el.impl.ArraySuffix.setValue(ArraySuffix.java:192)
         at com.sun.faces.el.impl.ComplexValue.setValue(ComplexValue.java:171)
         at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:234)
         at javax.faces.component.UIInput.updateModel(UIInput.java:544)
         at javax.faces.component.UIInput.processUpdates(UIInput.java:442)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIForm.processUpdates(UIForm.java:196)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:363)
         at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:81)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         at java.lang.Thread.run(Thread.java:595)
    2006-08-17 15:29:16,875 DEBUG [com.sun.faces.context.FacesContextImpl] Adding Message[sourceId=searchForm:ratingField,summary=java.lang.IllegalArgumentException)Do you see where the problem comes from??
    Julien.

  • Creating a custom component is causing a strange scoping issue

    I am a fairly new user to Flash and Actionscript, but I have
    a fair amount of experience working with C and Java. I'm currently
    working with Actionscript 2 in Macromedia Studio 8. I was trying to
    create a new component for a project I am working on, and I
    followed the tutorial in the help and all testing works while I am
    in context of the flash document where I export the component from.
    However, I try testing my component in a new blank document and I
    get some strange behavior.
    I am able to create a component on the stage, and adjust the
    properties perfectly fine. However, when I test the file, the
    variables for colors go out of scope. That is, the adjustments I
    made to the component through the parameters panel, and saw updated
    on the stage aren't demonstrated at runtime. The Number variable I
    used however is preserved. I did some traces, and it appears that
    this is happening because at runtime in the new blank document, the
    variables in the onEnterFrame method go out of scope, where they
    weren't before.
    It seems really strange to me that I should be able to edit
    the color on stage but have it revert while it is running. My
    intuition says that if it wasn't going to work in the new document,
    that it shouldn't work in either case.
    Anyway, here is the code for the .as file, I hope I'm just
    doing something stupid.

    There seems to be a little confusion here. Think of it this way:
    A basic UIComponent by itself is not visible; you can add something you can see to it to make a visual custom component. For example, a ComboBox component is a UIComponent with a ComboBox added to it.
    The UIComponent is the lightest weight component available from which you can create other components. I use it as the base for custom components that the user cannot see, like a data manager.
    HTH,
    Carlos

  • Strange behavior with Collections

    Hello!
    I have a - from my point of view - strange behavior with a List (same also applies to Vector, LinkedList, and others):
    List<String> myList = new myList<String>;
    myList.add("One");
    while (true) {
    try {
    System.out.println(myList.size());
    throw new Exception();
    } catch (Exception e) {
    e.printStackTrace();
    }And the result is 1, 2, 2, 2, ...although I added only one element. The two elements in the List point to the same object.
    What could case this issue?
    Regards,

    len00x wrote:
    List<String> myList = new myList<String>;This doesn't even look like it will compile for at least one reason, easily two.

  • Strange behavior of Content area

    Hello everybody,
    I'm working with Portal 3.0.8. I've installed czech language on it.
    What did I do is:
    1) I made new look for my navigation bar (new image and basic items). And it worked fine. I worked in English!
    2) Change language to Czech.
    3) Show my content area and there were old items on navigation bar. But style was new. If I navigate to any sub-folder, the look is OK. In the root folder I can't change anything. I can add new items only, though it is possible to see them only when I work in English.
    Does anybody know the reason of this strange behavior and what I should do? Thanks for your help!
    Petra :-)
    P.S.: You can use this email address: [email protected]

    Sorry for copy paste problem. b1 should be replaced with y1 and c1 with z1.
    Here is the correct code.
    create table xmltab of XMLType XMLTYPE store as binary xml;
    Table created.
    insert into xmltab values('<x><y>y1</y><z>z1</z></x>');
    1 row created.
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    The following query doesn't return any row!!
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' for update;
    no rows selected
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' for update;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/z')='z1' for update;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    The following one returns correct result !!
    select x.object_value, extractValue(x.object_value,'/x/y'), extractValue(x.object_value,'/x/z')
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/y')
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/z')
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    y1
    z1
    I get expected result for all the cases if the table is created in the following way
    create table xmltab of XMLType;
    Can anyone tell me why does select for update behaves in this strange way for binary xml table?

  • How to add the ability to put EL expressions in Navigation Rules

    I had a need to dynamically determine what page to return to in a JSF application. There has to be an easier way, but here's how I wanted to do it. I wanted to put an EL expression in my <to-view-id> nav rules in the JSF config file (e.g. faces-config.xml). This isn't allowed. So I built my own custom ViewHandler to do it.
    1) Define the ViewHandler in faces-config.xml:
         <application>
              <view-handler>com.msd.tts.pluggable.MyDynamicViewHandler</view-handler>
         </application>2) Create the class:
    package com.msd.tts.pluggable;
    import java.io.IOException;
    import java.util.Locale;
    import javax.faces.*;
    import javax.faces.application.ViewHandler;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.*;
    import javax.faces.el.ValueBinding;
    import com.sun.faces.util.Util;
    * Adds ability to put EL expressions in the <to-view-id> Navigation Rules in JSF
    * configuration file (faces-config.xml).
    * @author          Craig Peters
    * @version          1.0
    public class MyDynamicViewHandler extends ViewHandler {
         * The original handler we are customizing.
        private ViewHandler prevHandler = null;
        /** Creates a new instance of MappingViewHandler. By including
         * a parameter of the same type, we encourage the JSF framework
         * to pass a reference of the previously used ViewHandler. This way
         * we can use all the previous functionality and override only the
         * method we are interested in (in this case, the getActionURL() method).
         public MyDynamicViewHandler(ViewHandler prevHandler) {
              this.prevHandler = prevHandler;
         @Override
         public String getActionURL(FacesContext context, String viewId) {
              return prevHandler.getActionURL(context, viewId);
         @Override
         public Locale calculateLocale(FacesContext context) {
              return prevHandler.calculateLocale(context);
         @Override
         public String calculateRenderKitId(FacesContext context) {
              return prevHandler.calculateRenderKitId(context);
         @Override
         public UIViewRoot createView(FacesContext context, String viewId) {
              return prevHandler.createView(context, viewId);
         @Override
         public String getResourceURL(FacesContext context, String path) {
              return prevHandler.getResourceURL(context, path);
         @Override
         public void renderView(FacesContext context, UIViewRoot viewToRender)
                   throws IOException, FacesException {
              String result = viewToRender.getViewId();
              if (Util.isVBExpression(viewToRender.getViewId())) {
                   ValueBinding vb = context.getApplication().createValueBinding(viewToRender.getViewId());
                   result = vb.getValue(context).toString();
              if (result.charAt(0) != '/')
                   throw new IllegalArgumentException("Illegal view ID " + result + ". The ID must begin with '/'");
              viewToRender.setViewId(result);
              prevHandler.renderView(context, viewToRender);
         @Override
         public UIViewRoot restoreView(FacesContext context, String viewId) {
              return prevHandler.restoreView(context, viewId);
         @Override
         public void writeState(FacesContext context) throws IOException {
              prevHandler.writeState(context);
    }3) Use EL in navigation rules:
         <navigation-rule>
              <from-view-id>/CommonForm.jsp</from-view-id>
              <navigation-case>
                   <to-view-id>#{bean.caller}</to-view-id>
              </navigation-case>
         </navigation-rule>The "bean.caller" method will have saved the page to go back to.
    Comments are welcome. I just didn't see any other way to dynamically go back to an arbitrary page.
    Thanks.

    CraigRPeters wrote:
    Comments are welcome.Nice stuff. But that means that navigation is hardwired in the backing bean instead of faces-config.xml. Forget this comment if you've maintained a propertiesfile/configurationfile for that.
    I just didn't see any other way to dynamically go back to an arbitrary page.You can declare more than one from-outcome and/or from-action for one from-view-id.

  • Strange behavior when shutting down - only works once

    Hi there,
    I'm taking advice from around the forum to create a shutdown button for my VI. When the user sends the shutdown command, the loop stops all processes running and turns off all heaters. Then when this is complete it passes a shutdown variable to all loops allowing them to close. This seems to work perfectly once, but when I hit run again and test it again, it fails. If I abort the VI and restart again, the shutdown works. I can't quite figure out what the behavior is doing here.
    Attached is my program, it's a little messy but everything works, and it has to be added to by someone who isn't me, so I tried to keep everything clear and seperate. If anyone's got any ideas as to what is causing this strange behavior I'd love to hear it.
    Thanks,
    Chris.
    Attachments:
    Main VI.vi ‏259 KB

    First of all, your event loop should look something more like this.  Otherwise you won't exit the loop until another event comes through.
    Secondly, I think you are writing to the wrong control here (this is in your timed loop).  I have no clue what is in the subVI, but I don't think it should be looking at the Shutdown PB control.  That control should be in it's event case.  But here you are trying to cause the shutdown event, but you are writing to the wrong control.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Event Structure issue.png ‏10 KB
    wrong property node.png ‏3 KB

Maybe you are looking for

  • Installing Linux system on a Satellite A100

    Hi - I am new to these forums so please be kind with my limited knowledge .  My partner has a satellite A100 laptop that has Windows XP installed on it.  Due to driver and upgrade probs - he now wishes to install a linux op system on it (Ubuntu).  Wh

  • How to install 32 bit program with 16 bit installer on Windows 8.1 32 bit

    Hi, I have installed a 32 bit program that uses a 16 bit installer on Windows XP machines.  The software developer of this program is out of business. Can Windows 8.1 32 bit run a 16 bit installer?  If not, any suggestions as to how I might install t

  • Apple Video Adapters

    Do the adapters Apple sells to drive the screen image on an external monitor provide sound as well? I'd like to set up my MBP to display on my TV for movies/shows/etc., but how do I get the sound to go through my TV's (or better yet, my receiver's) s

  • Website not loading on iPad but works on another iPad

    Website working fine then suddenly wouldn't load properly I.e. just showing text in bullet point format. Works fine on another iPad in household. How do I fix this issue?

  • Query Builder functionality

    Has anyone built a Query Builder Page in the apps that is similar to the standard APEX Query Builder?