Overriding jsf

I'm a bit frustrated with some of the behavior for the jscookmenu. I looked online, but couldn't find any advice on how to override the behavior.
What I'm trying to do is alter the javascript functions so that menus pop up on mouse clicks rather than mouse hover.
The following site says that this is possible:
http://tinyurl.com/losn9
I've tried the following with no luck:
1)Edited the jscookmenu, put it into a jar file and include this in my WEB-INF folder instead of the original
2)Try writing the modified javascript function inside a <script> tag, following this advice:
http://tinyurl.com/ljd5f
3)I don't think there's anything in the stylesheet that would allow me to do this, because the mouseclick events are javascript, not css.
4)There doesn't appear to be any option to set in the t:navigationmenuitem or jscookmenu that would enable only mouseclick and not mouseover events.
Another idea I thought was somehow have the taglib uri point to my modified lib files, instead of http://myfaces.apache.org/tomahawk
I'm getting desperate here--I've tried everything, and I just can't seem to override a simple mouse over event with a mouseclick event.
Any ideas would be greatly appreciated.
Thanks.

Figured out the answer on my own ("the best help is self-help")
For the t:jscookmenu component, there's an option called javascriptLocation. What you can do is set that to a directory in your webapp. You need to copy over all 3 javascript files for the jscookmenu--myfaceshack, jscookmenu, and the one for your theme.
Here's how I modified the javascript to disable the annoying hover-over menus (in jscookmenu.js)
I initially tried changing the mouseover to mousedown events (the most logical thing to do), but for some reason the menu kept disappearing when you went to click on it. So after trying various permutations of mouseover/mousedown events, what I eventually ended up doing was just setting a boolean flag 'onClicked'. When the mousedown event was triggered, I set the onclicked flag to 1. Wherever the visibility of the menu was set to hidden, i set the flag to 0. In the mouseover event, I return if it's the main menu & the flag is not 1. There's also one more weird bug where the menu doesn't show up if you click and don't move the mouse, so you have to call the mouseover event from the mousedown event(pass in the extra parameters).
Hopefully anyone else having the same issue with the jscookmenu won't have to go through the same problems I did.

Similar Messages

  • Override JSF's default messages.

    I am trying to override JSF 1.2 default messages, I have done it in JSF 1.1 but its not working in JSF 1.2.
    Can anyone help me on this.
    The following is the code in JSF 1.1:
    javax.faces.component.UIInput.REQUIRED = This field is required.

    skmali wrote:
    I am trying to override JSF 1.2 default messages, I have done it in JSF 1.1 but its not working in JSF 1.2.
    Can anyone help me on this.
    The following is the code in JSF 1.1:
    javax.faces.component.UIInput.REQUIRED = This field is required.Another solution is use requiredMessage attribute for the UIInput component.
    For Example :
    <h:inputText value="#{student.id}" required="true" requiredMessage="This Field Is Required"/>Edited by: Matrix_Paul on May 10, 2009 10:46 PM
    Edited by: Matrix_Paul on May 10, 2009 10:48 PM

  • JSF Message.Properties

    I am trying to use a message properties file in my jsf page, to display headings ect. But it gives an error >
    org.apache.jasper.JasperException: Can't find bundle for base name bundle.Messages, locale en_US
    I put my Message.properties file in my folder \webapps\jsf\bundle,
    and in the properties file I got test=helle there.
    In my JSF page i do the following >
    <f:loadBundle basename="bundle.Messages" var="Message"/>
    <h:outputText value="#{Message.test}" />,
    what i am doing wrong.
    thanks

    Are you trying to A) customize JSF's messages, or B) create your own custom message bundle?
    To customize the JSF messages:
    1) Create your .properties file "Example.properties" and put it in WEB-INF/classes.
    2) Override JSF's default messages by putting key/value pairs in Example.properties. For example:
         javax.faces.component.UIInput.REQUIRED=Required field3) Tell your JSF app to load Example.properties by putting the following in faces-config.xml:
    <faces-config>
      <application>
        <message-bundle>GridManagerResources</message-bundle>
      </application>
    </faces-config>See this link for details. A list of keys for JSF messages is at the bottom:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/themes/jsf/custommessage.html
    To create and use your own custom message bundle, see
    http://www.laliluna.de/javaserver-faces-message-resource-bundle-tutorial.html
    HTH,
    Scott

  • JHS and JSF Validation Conversion Error Customizations

    Hello
    Have JHS done any work about JSF validation or conversion error customizations?
    I mean the error messages such as "lablename:"value mus be entered etc.
    What can i do if i want to globally customize and localize this error messages.
    I have copied the key such as "javax.faces.component.UIInput.REQUIRED" in my appdeff resource bundle but JHS (or maybe ADF) gives own message yet.
    I Apologize if my problem don't depend on JHS. I wonder that JHS overrided JSF default messages.
    Thank You

    JHeadstart does not use any JSF standard message.
    JHeadstart uses ADF Faces which comes with its own bundle of error messages.
    Please use the JDeveloper forum for instructions on modifying ADF Faces error messages.
    Steven Davelaar,
    JHeadstart Team.

  • Problem overriding default JSF conversion error messages

    Hello !
    I have a problem to override default JSF conversation error message. I have an inputText which is binded to BigDecimal attribute, so when I enter a character in that field I get this error message: "- Conversion failed."
    I think I need to register the message bundle in my faces config, and put the key of this error message to my properties file.. am I right ?
    Can somebody help me with this ? Which key I need to put into the properties file ?
    Miljan

    Get [Sun's Java EE tutorial |https://www.sun.com/offers/details/JavaEETutorial.xml?cid=20090723ZA_TACO_JVEE_0004] and read the relevant section so you don't have to guess what you need to do.

  • JSF 1.1 - problem with overriding default messages with UTF8 ones

    Hi there,
    I'm stuck with JSF 1.1 for now (creating application that is to run on JBoss 4.0.x) and I've encountered a problem... My web application uses UTF8 encoding - so that's also encoding I need in my message bundle. I've created one - and here goes a problem. I need to put Polish special characters into a properties file of a bundle - so I do it with UTF escape notation:
    javax.faces.component.UIInput.REQUIRED=Warto\u009C\u00E6 dla pola {0} jest wymagana
    some.custom.message.CLOSED=zamkni\u0119taThe thing is - while custom messages are working properly, overriden javax.faces.component.UIInput.REQUIRED message is rendered on a page as four "strange" characters, suggesting that it was first interpreted as UTF, then parsed as some kind of an ASCII (ISO) encoding and then back to an UTF8 page...
    How to fix this?
    TIA,
    Wojtek

    IDE fooled me - it was smarter then I expected and properties editor was showing already decoded values, not raw content of file. It's working properly now

  • Validating Dates in JSF using convertDateTime an overriding message format

    Have seen a way to validate dates with this kind of code snippet:
             <h:inputText id="departDate"
                value="#{flight.departDate}">
               <f:convertDateTime pattern="dd/MM/yy"/>
             </h:inputText>
             <h:message for="departDate"/>-----
    This results in an ugly default error message when things go wrong like so:
    j_id_jsp_1447383442_1:departDate: 'a' could not be understood as a date. Example: 28/02/08
    Is there a way I can override this by using some sort of message placeholder, so I get a message like:
    *"Depart Date 's' is invalid"*
    So placeholder message would be *"[0} {1} is invalid"*, where parm *0* would be *"Depart Date"* and parm *1* would be value *"#{flight.departDate}"*.
    I know you can resort to a full blown custom converter class, but I was wondering if I could put a message formatted with placeholders directly into the code snippet.
    Is this feasible?

    After several more iterations of testing, I discovered the problem is actually due to using the trinidad rendering kit. Part of my migration to 1.2 involved experimenting with the use of the trinidad components. I thought I had removed all the trinidad stuff from my application during testing of this date problem, but I discovered that I had left the following in:
    web-app library:    trinidad-1.2.10
    faces-config.xml entry:
        <default-render-kit-id>
                org.apache.myfaces.trinidad.core
        </default-render-kit-id>once these items were removed, the application worked as expected. So it looks like the problem is with the trinidad rendering kit/library.
    Edited by: emprice26 on Aug 11, 2009 6:02 PM

  • Jsf servlet override security contraints

    i've a jsf application with administration area that can be accessed only by the role admin, this is a part of the web.xml:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Labometer</web-resource-name>
    <url-pattern>/faces/labotat/*</url-pattern>
    <url-pattern>/faces/labotat/admin/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>admin</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Labometer</web-resource-name>
    <url-pattern>/faces/labometer/*</url-pattern>
    <url-pattern>/faces/labotat/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>role1</role-name>
    </auth-constraint>
    </security-constraint>
    And this is a part of the faces-config.xml:
    <navigation-rule>
    <from-view-id>/labotat/*</from-view-id>
    <navigation-case>
    <from-outcome>config</from-outcome>
    <to-view-id>/labotat/admin/config.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    the security constraints works if i write the url of admin pages directly in the browser, but not if i click a commandbutton that send me to ad administrative page.
    Any suggestions?

    Security constraints work from browser to server
    requests. In your case, you are posting to first
    page which fowards on server to second page. exactly, is the faces servlet that forward to the second page.
    Since
    the forward is happening on server, security
    constraints do not apply. Use <redirec/> in your
    faces-config.xml for navigavtion case and it should
    workok it works, i didn't know the tag <redirect>.
    Thank you very much!

  • How can I put an output stream (HTML) from a remote process on my JSF page

    Hello,
    I've a question if someone could help.
    I have a jsf application that need to execute some remote stuff on a different process (it is a SAS application). This remote process produces in output an html table that I want to display in my jsf page.
    So I use a socket SAS class for setting up a server socket in a separate thread. The primary use of this class is to setup a socket listener, submit a command to a remote process (such as SAS) to generate a data stream (such as HTML or graphics) back to the listening socket, and then write the contents of the stream back to the servlet stream.
    Now the problem is that I loose my jsf page at all. I need a suggestion if some one would help, to understand how can I use this html datastream without writing on my Servlet output stream.
    Thank you in advance
    A.
    Just if you want to look at the details .....
    // Create the remote model
    com.sas.sasserver.submit.SubmitInterface si =
    (com.sas.sasserver.submit.SubmitInterface)
    rocf.newInstance(com.sas.sasserver.submit.SubmitInterface.class, connection);
    // Create a work dataset
    String stmt = "data work.foo;input field1 $ field2 $;cards;\na b\nc d\n;run;";
    si.setProgramText(stmt);
    // Setup our socket listener and get the port that it is bound to
    com.sas.servlet.util.SocketListener socket =
    new com.sas.servlet.util.SocketListener();
    int port = socket.setup();
    socket.start();
    // Get the localhost name
    String localhost = (java.net.InetAddress.getLocalHost()).getHostAddress();
    stmt = "filename sock SOCKET '" + localhost + ":" + port + "';";
    si.setProgramText(stmt);
    // Setup the ods options
    stmt = "ods html body=sock style=brick;";
    si.setProgramText(stmt);
    // Print the dataset
    stmt = "proc print data=work.foo;run;";
    si.setProgramText(stmt);
    // Close
    stmt = "ods html close;run;";
    si.setProgramText(stmt);
    // get my output stream
    context = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
    ServletOutputStream out = response.getOutputStream();
    // Write the data from the socket to the response
    socket.write(out);
    // Close the socket listener
    socket.close();

    The system exec function is on the Communication palette. Its for executing system commands. On my Win2K system, the help for FTP is:
    "Ftp
    Transfers files to and from a computer running an FTP server service (sometimes called a daemon). Ftp can be used interactively. Click ftp commands in the Related Topics list for a description of available ftp subcommands. This command is available only if the TCP/IP protocol has been installed. Ftp is a service, that, once started, creates a sub-environment in which you can use ftp commands, and from which you can return to the Windows 2000 command prompt by typing the quit subcommand. When the ftp sub-environment is running, it is indicated by the ftp command prompt.
    ftp [-v] [-n] [-i] [-d] [-g]
    [-s:filename] [-a] [-w:windowsize] [computer]
    Parameters
    -v
    Suppresses display of remote server responses.
    -n
    Suppresses autologin upon initial connection.
    -i
    Turns off interactive prompting during multiple file transfers.
    -d
    Enables debugging, displaying all ftp commands passed between the client and server.
    -g
    Disables file name globbing, which permits the use of wildcard characters (* and ?) in local file and path names. (See the glob command in the online Command Reference.)
    -s:filename
    Specifies a text file containing ftp commands; the commands automatically run after ftp starts. No spaces are allowed in this parameter. Use this switch instead of redirection (>).
    -a
    Use any local interface when binding data connection.
    -w:windowsize
    Overrides the default transfer buffer size of 4096.
    computer
    Specifies the computer name or IP address of the remote computer to connect to. The computer, if specified, must be the last paramete
    r on the line."
    I use tftp all of the time to transfer files in a similar manner. Test the transfer from the Windows command line and copy it into a VI. Pass the command line to system exec and wait until it's done.

  • Error on running the .portal on the weblogic portal server 10.3.2 using jsf

    Hi,
    This are the below file that i have included in the project
    login.jspx
    <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ice="http://www.icesoft.com/icefaces/component">
    <jsp:directive.page contentType="text/html;charset=utf-8" />
    <f:view>
    <ice:outputDeclaration doctypeRoot="HTML"
    doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
    doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
    <html>
    <head>
    <title>ICEfaces,Login Portlet</title>
    <link rel="stylesheet" type="text/css"
    href="./xmlhttp/css/rime/rime.css" />
    </head>
    <body>
    <ice:portlet>
    <ice:outputText value="Welcome to ICEfaces." />
    <ice:form>
    <ice:outputText value="Username" />
    <ice:inputText id="name_t" value="#{Login.userName}"></ice:inputText>
    <ice:outputText value="Password"/>
    <ice:inputText id="password_t" value="#{Login.password}"></ice:inputText>
    <ice:commandButton action="#{Login.checkUserPass}" value="OK"></ice:commandButton>
    </ice:form>
    </ice:portlet>
    </body>
    </html>
    </f:view>
    </jsp:root>
    faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    <application>
    <view-handler>
    com.icesoft.faces.facelets.D2DFaceletViewHandler
    </view-handler>
    <locale-config>
    <supported-locale>de</supported-locale>
    <supported-locale>en</supported-locale>
    </locale-config>
    </application>
    <managed-bean>
    <managed-bean-name>Login</managed-bean-name>
    <managed-bean-class>com.pack.login.Login</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>userName</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    <managed-property>
    <property-name>password</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/login.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/success.iface</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-view-id>/failure.iface</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    portlet.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    <application>
    <view-handler>
    com.icesoft.faces.facelets.D2DFaceletViewHandler
    </view-handler>
    <locale-config>
    <supported-locale>de</supported-locale>
    <supported-locale>en</supported-locale>
    </locale-config>
    </application>
    <managed-bean>
    <managed-bean-name>Login</managed-bean-name>
    <managed-bean-class>com.pack.login.Login</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>userName</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    <managed-property>
    <property-name>password</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/login.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/success.iface</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-view-id>/failure.iface</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    Login.java
    package com.pack.login;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    public class Login {
    public String getUserName() {
    return userName;
    public void setUserName(String userName) {
    this.userName = userName;
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    private String userName;
    private String password;
    public String checkUserPass(){
    FacesContext facesContext = FacesContext.getCurrentInstance();
    if("icefaces".equals(getUserName()) && "icefaces".equals(getPassword())) {
    return"success";
    FacesMessage facesMessage = new FacesMessage(
    "You have entered an invalid user name and/or password");
    facesContext.addMessage("Login", facesMessage);
    return "failure";
    What are the classes or interfaces that we need to use to render the content and to the process the action in jsf-portlet + icefaces libraris + weblogic portal server 10.3.2
    I have created the .portal file and i have included the instance of the .portlet file in the portal page. When i run .portal file on the server it will throw the below exception.
    <Warning> <netuix> <BEA-423319> <A default JSP response character encoding was not found for webapp [Portal]. Defaulting to [UTF-8]. You can override this default response character encoding for all portals in netuix-config.xml or for each portal or desktop in each portal or desktop definition.>
    12, 2010 9:57:05 AM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /login.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@18fddac]
    <Error> <netuix> <BEA-423405> <An exception [java.lang.NullPointerException] was thrown while rendering the content at [login.jspx].
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    Truncated. see log file for complete stacktrace
    >
    <Error> <netuix> <BEA-423137> <There was an error loading the requested URI /login.jspx.>
    Login Error opening /login.jspx.
    The source of this error is:
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
    at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
    at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:488)
    at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:152)
    at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
    at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
    at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:148)
    at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
    at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:168)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)
    at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:231)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:216)
    at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:275)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:719)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    ... 71 more
    I have created the .portal file and i have included the instance of the .portlet file in the portal page. When i run .portal file on the server it will throw the below exception.
    <Warning> <netuix> <BEA-423319> <A default JSP response character encoding was not found for webapp [Portal]. Defaulting to [UTF-8]. You can override this default response character encoding for all portals in netuix-config.xml or for each portal or desktop in each portal or desktop definition.>
    12, 2010 9:57:05 AM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /login.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@18fddac]
    <Error> <netuix> <BEA-423405> <An exception [java.lang.NullPointerException] was thrown while rendering the content at [login.jspx].
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    Truncated. see log file for complete stacktrace
    >
    <Error> <netuix> <BEA-423137> <There was an error loading the requested URI /login.jspx.>
    Login Error opening /login.jspx.
    The source of this error is:
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
    at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
    at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:488)
    at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:152)
    at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
    at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
    at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:148)
    at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
    at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:168)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)
    at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:231)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:216)
    at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:275)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:719)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    ... 71 more
    Thanks in advance.

    First you install a JDK6 version after which you can install your WebLogic and Forms, Reports...
    A step-by-step example is presented here: http://middlewaremagic.com/weblogic/?p=7265
    Look in the 'Install WebLogic' section. Note that you probably do not have to create a separate user,
    also you can use HotSpot instead of JRockit.

  • Parametrized JSF Converter

    Hello
    my question:
    for example i have a h:selectOneMenu, witch present the streets in the any (chose before) town
    this selection in xhtml page looks like
    <h:selectOneMenu id="town_4"     value="#{locationAddAction.street}" immediate="true">
         <f:selectItems value="#{locationAddAction.streetLookup}" />
         <fmedia:streetConverter town="#{locationAddAction.town}" />
    </h:selectOneMenu>in my project i need to convert a string into Street object stored in DB
    but there are can be many streets with the same names, but difference in town reference
    so i need the town attribute in converter
    my converter class extends javax.faces.convert.Converter
    public class StreetConverter implements Converter {
         private LocationService locationService = new LocationService();
         private Town town;
         @Override
         public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
              Town town = locationService.getStreetByNameMatch(town,arg2)
              return town;
         @Override
         public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
              if (arg2 instanceof Street)
                   return ((Street) arg2).getName();
              return null;
         public Town getTown() {
              return town;
         public void setTown(Town town) {
                    this.town = town;
    }i registered my converter with parameter in faces-config.xml
    <converter>
              <converter-id>streetConverter</converter-id>
              <converter-class>package.StreetConverter</converter-class>
              <attribute>
                   <attribute-name>town</attribute-name>
                   <attribute-class>package.Town</attribute-class>
              </attribute>
         </converter>and create my facelet tag
    <tag>
              <tag-name>streetConverter</tag-name>
              <converter>
                   <converter-id>streetConverter</converter-id>
              </converter>
         </tag>PROBLEM:
    any request to my converter (StreetConverter, <fmedia:streetConverter>) set the new creation of my Converter
    but the initialization of "town" field happend only once in creation page (when i'm requesting whole jsf page) and any request to converter is erasing my town parameter, becouse it has been init in another converter object.
    how can i initialize town attribute in all requests to converter ?
    sorry my horrible english
    thanks =)

    Use f:attribute:<h:someComponent>
        <f:converter converterId="streetConverter" />
        <f:attribute name="town" value="#{bean.town}" />
    </h:someComponent>
    public X getAsX(FacesContext context, UIComponent component, Y value) {
        Object town = component.getAttributes().get("town");
    }Alternatively just get the bean from context:
    public X getAsX(FacesContext context, UIComponent component, Y value) {
        Bean bean = (Bean) context.getApplication().evaluateExpressionGet(context, "#{bean}", Bean.class);
        Town town = bean.getTown();
    }

  • Get JSF objects in a Filter Class

    Hi! I have a problem with my JSF application. As the most of the web applications I have a login at the begining and I place a Listener - Filter classes for catching the session timeout to returning the user to the login page. All this works OK. The problem it´s to validate that the user only has 1 session open at the time, when the user begin session I change a flag into it's database row, and when the user logout the flags change again to false (both actions (login and logout) was fired by the user clicking it's respective buttons), this works fine, but I want to change the data flag in the database row with the timeout Filter classes after pass 1 minute. My Filter class it's like this:
        public void doFilter(ServletRequest request,ServletResponse response, FilterChain filterChain) throws IOException,ServletException {
            if ((request instanceof HttpServletRequest) && (response instanceof HttpServletResponse)) {
                HttpServletRequest httpServletRequest = (HttpServletRequest) request;
                HttpServletResponse httpServletResponse = (HttpServletResponse) response;                      
                if (!StringUtils.contains(httpServletRequest.getRequestURI(), "welcomeJSF.jsp")) {                                
                    if((httpServletRequest.getRequestedSessionId() != null) && !httpServletRequest.isRequestedSessionIdValid()){
                         /* 1 */               
                           FacesContext context = FacesContext.getCurrentInstance();
                             User user = (User) context.getExternalContext().getSessionMap().get("simpleUser");
                             UserDAO conn = new UserDAO();
                             List users = conn.findByNumber(new Long(user.getNumber()));
                             persistence.User userDB = (persistence.User) users.get(0);
                             userDB.setUse(false);
                             Transaction tx = conn.getSession().beginTransaction();
                             conn.save(userDB);
                             tx.commit();
                             conn.getSession().close();                                     
                             /* 2 */                     
                        String timeoutUrl = httpServletRequest.getContextPath()+ "/faces/" + "welcomeJSF.jsp";
                        System.out.println("Session is not invalid. Redirecting to login page. ");
                        httpServletResponse.sendRedirect(timeoutUrl);
                        return;
            filterChain.doFilter(request, response);
        }When I comment from 1 to 2 works fine, but if I want to get the context.getExternalContext().getSessionMap().get("simpleUser") i get this error:
    java.lang.NullPointerException
         at validadores.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:53)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:619)This is because I'm working in a diferent conexts? How can I get Jsf objects from ServletRequest? or to pass getExternalContext().getSessionMap() to the filter class? Any ideas to change the database when the session timeouts if I'm using hibernate?
    Thanks for your time and help!

    correction :
    MyObjectProxy extends ObjectProxy{
         override callProperty(
              // your dyna logic
    and expose new MyObjectProxy(dynaInstance)

  • ADF JSF 10.13 how do you reference a binding from a command button?

    I have developed the following code as a model as I am trying to utilise ADF JSF without using a database.
    I have a collection called School. This has the appropriate operations that populate the school with a number of Child. A Child simply has a firstname and a surname.
    I have generated data controls for these collections and created two JSP pages and added a navigation link as follows:
    index.jsp --> goToSchool (navigation) --> school.jsp
    I have then added a command button to the index.jsp page. When the button is then pressed the school.jsp page is displayed. This works correctly.
    I would like to override the action of the button though so that before the navigation is executed I can get a handle on the school collection and populate it so that it will be displayed on the school.jsp page.
    I have previously done this in 10.12 when I had the following setup:
    index.jsp --> getSchool (dataAction) --> school.jsp
    by overriding the getSchool dataAction.
    I have looked through the 10.13 ADF user guides and tried various different things but have not managed to successfully acheive my goal of populating the school collection when the button is pressed prior to navigating to the school.jsp page.
    I would appreciate it if you could offer any advice, and if possible let me know the recommended best practices to acheive this.
    Thanks in advance for your help
    David

    Check out the ADF Tutorial (TopLink edition) chapter 5 has a section called:
    Adding a Drilldown Link
    I think this is what you are looking for.
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/ADF_tutorial.pdf

  • Connecting ADF BC view object w/ param to a JSF Table?

    I'm brand new to JDev so this is probably an easy one, I'm still trying to grasp some of the concepts: I have created an application module that has one view object containing a simple parameterized query (page is a simple search form - user enters keywords - I pass keywords to database and return results.) This Data Control shows up in the Data Control Palette and I am able to associate this with a table on the JSF page. Where I'm struggling is how / where do I tell JDev to bind the query parameter? In the examples from the help files, they show in the Data Control Palette a method with parameters. My Data Control Panel just shows the application module labeled as a Data Control with no parameters? In the Application Module (where I have defined the parameterized SQL stmt), in the Client Interface menu item, there are no methods available. Do I need to create the method even if I don't want to override the default functionality? Any help appreciated.
    Also, many of the tutorial and examples look like they use the EJB/Toplink approach - are there good examples or tutorial for using ADF BC and ADF Faces?
    Thanks. BTW - this product looks awesome so far! I was using myEclipse - this product is light years ahead.

    This new 10.1.3-production JSF/ADFBC tutorial covers a lot of ground and includes an example of building the search page that you're trying to build, too :-)
    http://otn.oracle.com/obe/obe1013jdev/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm
    The trick is noticing that a View Object with named bind parameters includes an additional built-in operation in its "Operations" folder called ExecuteWithParams. Dropping this operation onto your page gives you the choice of creating a "Parameter Form" for your VO's bind variables. If you then drop the VO as a readonly table to the same page and run the page, you are done. :-)
    Try to do that in Eclipse in two drag-drop operations! ;-)
    It warms my heart to hear you say that about JDeveloper versus Eclipse... Really makes my day!

  • Calling a method in the Custom ADF component from JSF page

    HI.
    I have created some custom compoents by extending the core ADF Components. Like i have a ComboBoxDefault component with it's ComboBoxDefaultTag.java and Controls.tld file.
    Now my requirement is i want to bind my label to this component from the JSF page. like
    <fwcontrols:label binding="#{listComponents.comboBoxDefaultLabel}" id="label1"/>
    <fwcontrols:comboBoxDefault binding="#{listComponents.cmbLocales}"
    value="en_GB" id="comboBoxDefault" autoSubmit="true" label="label1">
    <f:selectItems value="#{listComponents.locales}"/>
    </fwcontrols:comboBoxDefault>
    In my JSF page the label will have an id, and that id will be specified in the label tag of the component.
    In Tag.java file i have overrided the setProperty(FacesBean facesBean). In this method i have bind all my properties. In core JSF the setProperty method is provided with the UIComponent parameter, so i can call my method in component also. Which is not in case of ADF Faces.
    My main point is how i can call my method setLabel() which is in ComboBoxDefault.java so that i can set the label.
    Thanks in Advance.

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

Maybe you are looking for

  • How to unpair bluetooth headset during charging

    I have an old Jabra BT500 and a iphone4.  One thing I really like is that the Jabra BT500 unpairs while it is charging.  But the sound quality was ok.  So I recently upgraded to the Plantronics Voyager Pro+ and discovered the new headset doesn't unpa

  • CrystalReports XI release 2 Downloaded service pack setups don't work

    Hi I am an existing customer using Crystal Reports Developer XI Release 2. I tried to install latest Crystal Reports XI Release 2 service pack5 for windows and it did errored out between the install saying a cab file was corrupted. Tried couple times

  • I can't click allow or deny on anything with flash, like blogtv or dailybooth.

    It just won't even let me click. I've tried downloading and using FireFox and several sites that ask you to allow. The mouse can hover over the buttons. Lion just won't let me click. I just bougt my first mac today, and I got a free download of Lion.

  • Approving shopping cart w/o account

    hi i have an issue related to approvals. User is not having the Fixed Asset Clerk A/C in org structure,eventhough he is Approving the shopping cart(Awaiting Approval). so how it is posible.please advise me. Regards Sai

  • Error message on execution

    I am receiving the following message when i try to execute an appellet - exception: java.language.ClassFormatError: NCMECbanner(bad magic number). Any suggestions would be of great help. Thank you