ListField action listener

Hi all

Im trying to create a list with a ListField that contains a list of vectors.

Now I want to put an action listener to the to the ListField then when somebody cliks something on the list of the application of the captures that.

I tried to do by adding listfield.setChangeListener, but it does not work

Here is my code.

public class ServerSelect extends MainScreen {
    private Main main;
    private ServerList serverlist;
    private Bitmap online, offline;
    private Vector list;
    private ListField listfield;
    private ListCallback callback;

    public ServerSelect(Main main)
    {
        this.main = main;
        online = Bitmap.getBitmapResource("talking.jpg");
        offline = Bitmap.getBitmapResource("not_talking.jpg");
        list = new Vector();
        listfield = new ListField();
        callback = new ListCallback();
        listfield.setCallback(callback);
        add(listfield);
        listfield.setChangeListener(selectServer);
        initializeList();
        reloadList();
    }

    private void reloadList()
    {
        listfield.setSize(list.size());
    }

    private void initializeList()
    {
        serverlist = new ServerList();
        for(int i = 0; i < serverlist.serverCount(); i++)
        {
            Server server = serverlist.printServers(i);
            list.addElement(server);
        }
    }

    public boolean onClose()
    {
        Connection.logout();
        close();
        return true;
    }
    //What I tried
    FieldChangeListener selectServer = new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
            int index = listfield.getSelectedIndex();
            Server server = (Server) callback.get(listfield, index);
            try {
                Connection.UseServer(server.getid());
            } catch (ConnectionClosedException e) {
                Dialog.alert("Connection closed");
            } catch (IOException e) {
                Dialog.alert(e.getMessage());
            }
            main.ChangeScreen("ServerUser");
        }
    };

    private class ListCallback implements ListFieldCallback
    {

        public void drawListRow(ListField listfield, Graphics g, int index, int y, int w)
        {
            Server server = (Server) list.elementAt(index);
            String text = server.toString();
            if(server.isOnline())
            {
                g.drawBitmap(new XYRect(0, 13, 15, 15), online, 0, 0);
            }
            else
            {
                g.drawBitmap(new XYRect(0, 13, 15, 15), offline, 0, 0);
            }
            g.drawText(text, 20, y, 0, w);
        } 

        public Object get(ListField listField, int index) {
            return list.elementAt(index);
        }

        public int getPreferredWidth(ListField listField) {
            return getWidth();
        }

        public int indexOfList(ListField listField, String prefix, int start) {
            return list.indexOf(prefix, start);
        }

    }
}

I hope you can help me.

Moochers

Welcome on the support forums.

I suggest that you crush navigationclick (and maybe keychar if you want to enter, return back... to do something).

Please note that blocking operations, such as networking, must be executed on a separate thread. Do not put this code directly in the event handler.

Tags: BlackBerry Developers

Similar Questions

  • Want to add Action Listener programmatically on a button created Progammatically.

    Scenario is,

    I want to add the listener of pressing a button I've manually created and added to the page over time.

    public void editPanel (ActionEvent actionEvent)
    {
    System.out.println ("invoked");
    }

    This is my code to the action listener, she is hard-coded

    Hey Zaid,

    Try the following code.

    1. create the inner class on your managed bean.

    private class MyListener implements ActionListener {

    {} public void processAction (ActionEvent actionEvent)

    write your action listener code here...

    System.out.println ("invoked");

    }

    }

    2. then add actionListener class to your button.

    Addpopup RichCommandImageLink = new RichCommandImageLink();

    addpopup.addActionListener (new MyListener());

  • ADF TUTORIAL: PROBLEMS WITH "export Collection Action Listener.

    Hi all

    environment:
    Windows xp
    jedev 11.1.1.3.0
    Firefox 3.6.13

    Tutorial: develop Ajax with JSF-based User Interfaces: An Introduction to ADF Faces Rich Client components
    URL: http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/adf_richclient/adfrichclient.htm

    mainstep: "work with menus.
    step: number 5 "add a listener for collection action.

    until the step "work with menus" everthing works fine. After that I added the earpiece of the collection action and saved my work, the webapplication does not open. I only see a blank page and no error message.
    When I delete the action listener works just fine again.

    How can I solve this problem? Thank you to everyone.

    Best regards
    Gunnar

    You can paste the code of the page where you added the listener to action?
    Make sure it is added within the menu option.

  • The collection action listener Export is to launch error

    Export of expensive,

    My version: Studio Edition Version 11.1.2.1.0

    I have created a collection of Panel tool Menu, under this menu have added an element of menu called 'export to Excel '.

    Now, I drag and drop the action called the listener of the Export action collection in the 'Export to Excel' topic Id as this table.

    When I run the page I get the following error.

    arget - URL http://127.0.0.1:7101/RajaTest-RTVC-context-root/faces/Auction_Header_Page.JSF

    < ViewHandlerImpl > < _checkTimestamp > Apache Trinidad runs with control of activated timestamp. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml

    < LifecycleImpl > < _handleException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 6 RENDER_RESPONSE

    java.lang.NullPointerException

    at oracle.adfinternal.view.faces.util.rich.LoggerUtils.getMessage(LoggerUtils.java:26)

    at oracle.adfinternal.view.faces.util.rich.LoggerUtils.getMessage(LoggerUtils.java:36)

    at oracle.adfinternal.view.faces.facelets.rich.BaseActionListenerHandler.apply(BaseActionListenerHandler.java:43)

    at oracle.adfinternal.view.faces.facelets.rich.ExportCollectionActionListenerHandler.apply(ExportCollectionActionListenerHandler.java:84)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at oracle.adfinternal.view.faces.facelets.rich.RichDocumentHandler.applyNextHandler(RichDocumentHandler.java:68)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:167)

    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:82)

    at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:744)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.buildView (ViewDeclarationLanguageFactoryImpl.java:341)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:982)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)

    to 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:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)

    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)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    [< 15 sep, 2015 18:10:52 IST > < error > < HTTP > < BEA-101020 > < [ServletContext@3154228[app:RajaTest module: root RajaTest-RTVC-context-path: / RajaTest-RTVC-context-root spec-version: 2.5]] Servlet failed with Exception

    java.lang.NullPointerException

    at oracle.adfinternal.view.faces.util.rich.LoggerUtils.getMessage(LoggerUtils.java:26)

    at oracle.adfinternal.view.faces.util.rich.LoggerUtils.getMessage(LoggerUtils.java:36)

    at oracle.adfinternal.view.faces.facelets.rich.BaseActionListenerHandler.apply(BaseActionListenerHandler.java:43)

    at oracle.adfinternal.view.faces.facelets.rich.ExportCollectionActionListenerHandler.apply(ExportCollectionActionListenerHandler.java:84)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    Truncated. check the log file full stacktrace

    >

    < 15 sep, 2015 18:10:52 IST > < opinion > < Diagnostics > < BEA-320068 > < Watch "UncheckedException" with severity "Notice" on the server "DefaultServer" led to the 15 Ms, 2015 18:10:52 IST. Details of the notification:

    WatchRuleType: Journal

    WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))

    [WatchData: DATE = 15 Ms, 2015 18:10:52 IST SERVER = DefaultServer MESSAGE = [ServletContext@3154228[app:RajaTest module: root RajaTest-RTVC-context-path: / RajaTest-RTVC-context-root spec-version: 2.5]] Servlet failed with Exception

    java.lang.NullPointerException

    at oracle.adfinternal.view.faces.util.rich.LoggerUtils.getMessage(LoggerUtils.java:26)

    at oracle.adfinternal.view.faces.util.rich.LoggerUtils.getMessage(LoggerUtils.java:36)

    at oracle.adfinternal.view.faces.facelets.rich.BaseActionListenerHandler.apply(BaseActionListenerHandler.java:43)

    at oracle.adfinternal.view.faces.facelets.rich.ExportCollectionActionListenerHandler.apply(ExportCollectionActionListenerHandler.java:84)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)

    at oracle.adfinternal.view.faces.facelets.rich.RichDocumentHandler.applyNextHandler(RichDocumentHandler.java:68)

    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)

    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)

    at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:167)

    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)

    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)

    at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:82)

    at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:744)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.buildView (ViewDeclarationLanguageFactoryImpl.java:341)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:982)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)

    to 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:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)

    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)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '3' for queue: MSGID 'weblogic.kernel.Default (self-adjusting)' = BEA - 101020 MACHINE = BCTCW-HP92 TXID = the CONTEXTID = afe3047d237f7f0c:-3a29465c:14fd0ff894c:-8000 - 000000000000007 a TIMESTAMP = 1442320852273

    WatchAlarmType: AutomaticReset

    WatchAlarmResetPeriod: 30000

    >

    Kindly guide on how to solve this problem.

    Iqbal

    I solved myself, I added the goMenuitem instead of CommandMenuItem. Now it's working.

  • In JavaFX, binds an alternative to the action-listener?

    Hi, I was wondering if in JavaFX, binding can be an alternative to the events/listener action? Can address us all the actions with the binding instead of event management?

    The links may serve as an alternative to the management of events that represent an action of the user, such as ActionEvents MouseEvents or KeyEvents. ActionEvents are generated when the user takes a specific action, for example on a button, or by pressing the Enter key in a TextField. There is nothing that you can really link to this situation.

    JavaFX defines an API of property that allows to create observable properties (and observable values, whose observable properties are a specific example). You can register ChangeListeners with these observable properties to be notified when their values change. So, for example, TextField has a textProperty containing the value of the text in the text field. If you register a listener changes with textProperty of the text field, it will be notified whenever the text in the text field is changed. (Note that the notification happen essentially on every key shot in the field of text, not just at the point where the user agrees to a value with the Enter key).

    Links to present a simpler alternative to a particular use case for listeners of changes on these properties: when the listener change would simply update the value of another property. For example, the following text:

    final label = new Sun;

    final TextField textField = new TextField();

    final VBox, vbox = new VBox();

    vbox.getChildren () .addAll (label, textField);

    label.textProperty () .bind (textField.textProperty ());

    will cause the label to change to match the text in the text field.

    See using JavaFX and binding properties. JavaFX tutorials and documents 2 for a fuller analysis of properties and binding.

  • Disclosure ADF action listener not triggered when together directly disclosed

    Listener ADF disclosure action not triggered when together disclosed directly in the code.

    Is this expected behavior?

    Thank you

    This should be the behavior whereas there is no case on the side of client fired.

    You must stand in line a disclosure by programming event if you need to call the disclosureListener through code.

  • not able to cal or action listener action on the button while using pop up on the same button

    Hi, my requirement is to call popup button and also action on the same command button, for this when pop up is successfully being cal called, but not in action. Are there other alternative for this? Jdev 12.1.1.6.0 regards, Parvez

    You import the wrong class.

    This is the you need to import classes

    Import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;

    Import org.apache.myfaces.trinidad.util.Service;

  • How to call javascript method action listener.

    Hi Experts ADF,

    JDEV version 11.1.1.7.0

    I cb2 and cb1 button, 2. I call the pressing cb1, cb1 - actionListener () method. I invoke the javascript cb1() method.

    And JavaScript, I need to invoke the command button 2 actionListener. How do I get there?

    I tried the below code but its not invoking is not the cb2_actionListener.


    var button
    = AdfPage.PAGE.findComponentByAbsoluteId ("cb2");

    ActionEvent.queue (button, true);

    Thanks in advance,

    Animesh

    HI Anne

    If you have created actionListener for button cb1 cb2 actionListener call you in this

    See - Blog of Ashish Awasthi (Jdev/ADF): call to Action button by programming, Queuing ActionEvent

    Or if you insist on using Javascript then try this

    var component = AdfPage.PAGE.findComponentByAbsoluteId (commanButtonId);

    AdfActionEvent.queue (component, component.getPartialSubmit ());


    Thank you

  • Tree with action listener node context menu attached to a bean - question

    Hello

    I have a tree node that contains a context menu and a popup. The Popup has a group that has a menu with two menu items. Each menu item has a menu-> to a bean that I created-> #{MenuBean.cmi1_action}. The actions are to add a node to the tree, or remove a node. All parts are connected together and work fine.

    The question is, how do I get a reference to the data node was selected with the right click to launch the popup?

    In addition, from code created as a bean, Java what is the best way to refer to all objects in the user interface?

    Ideally, I would like to put the code in the bean to add or remove a node in the tree and then the table that the data in the tree comes.

    Thanks Bob

    PS, here's the code:

    < af:tree id = "t1" value = "#{bindings." Var OrdersView1.treeModel}' = 'node '.
    selectionListener = "#{bindings." RowSelection OrdersView1.treeModel.makeCurrent}"'unique' = >
    < f: facet name = "nodeStamp" >
    < af:group id = "g2" >
    < af:outputText value = "#{node}" id = "ot28" / >
    < / af:group >
    < / f: facet >
    < f: facet name = "contextMenu" >
    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "p1" >
    < af:panelGroupLayout id = "pgl2" >
    < af:menu text = "menu 1" id = 'm2' >
    < af:commandMenuItem text = "add node" id = "cmi1.
    action = "#{MenuBean.cmi1_action}" / >
    < text af:commandMenuItem = "Delete node" id = "cmi2.
    action = "#{MenuBean.cmi2_action}" / >
    < / af:menu >
    < / af:panelGroupLayout >
    < / af:popup >
    < / f: facet >
    < / af:tree >

    Here's the BEAN:

    Overview;



    public class {MenuAction
    public MenuAction() {}
    }

    public String cl4_action() {}
    Add the code in the event here...
    System.out.println ("Menu clicked...");
    Returns a null value.
    }

    public String cmi1_action() {}
    Add the code in the event here...

    System.out.println ("Menu Clicked.1..");
    Returns a null value.
    }

    The validation operation is available at the level of the data control - so select the data control, you would see the operation.

    Check the screenshot:
    http://adfsampleapplications.googlecode.com/svn/trunk/images/commitoperation.PNG

    Thank you
    Nini

  • Export Collection Action listener does not work on dynamic VO?

    I have a screen that generates a dynamic table using the createViewObjectFromQueryStmt().

    The screen works as expected, and all except when I drag an export Collection on it. My excel sheet is empty.

    Is there something I'm missing? It works only on real and not dynamic ViewObjects?

    With the help of 12.1.3 and built in 12.1.3

    Thank you.

    Then done using BLOG of VINAY @ http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html

    as my heel.

    APACHE POI has problem to download an excel sheet.

    However, the Blog does not include my dynamic qurery can return records 10000 +. His solution was not memory friendly approach, the best was to create a set of child line iterator and iterate over the lines instead of load everything at once in a TABLE... also if you end up copying and pasting the solution and you get back only 25 records make sure that you assign-1 to your reach and attend the slowness of your application.

    Thanks.@v

  • Recovery of the object in the Second Listner Action

    Hello

    I created a stack class using vectors (VectorStack2). Now, I want to set up this operation with the help of the buttons. I created a push button. His action Listener creates an object of class VectorStack2 that calls the push (...) method of the VectorStack2 class in the method actionPerformed (...) of Action1. Now I want to recover this object of class VectorStack2 in the second action listener for the key of Pop so that the floor to invoke the pop() method.

    I don't understand how to do it?

    Some body please guide me. I put "?" symbols on the line following the object I want to recover in the second actionlistener actionPerformed method.

    Javax.swing import. *;

    Import Java.util;

    import java.awt.*. *;

    java.awt.event import. *;

    Class VectorStack2 {}

    private String [] stArr = new String [5];

    Vector < number > elements around.

    private int tos;

    VectorStack2 () {}

    items = new Vector < integer > ();

    TOS = - 1;

    }

    empty() {Boolean}

    If (tos == - 1).

    Returns true;

    Returns false;

    }

    Object (pop) {}

    {if (Empty ())}

    JOptionPane.showMessageDialog (null, "Stack overflow");

    System.Exit (1);

    }

    Return items.remove (tos);

    }

    public void push (Integer x) {}

    Items.Add (++ PE, x);

    }

    }

    public class useVSButt {}

    Public Shared Sub main (String [] args) {}

    int i;

    int nLength = 0;

    int lLength = 0;

    NST string ="";

    String lStr ="";

    JFrame frame = new JFrame ("Test");

    frame.setVisible (true);

    frame.setSize (500,200);

    frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);

    JPanel Panel = new JPanel();

    Frame.Add (Panel);

    JButton button = new JButton ("Push");

    Panel.Add (Button);

    button.addActionListener (new Action1());

    JButton button2 = new JButton ("Pop");

    Panel.Add (button2);

    button.addActionListener (new Action2());

    } //main

    } //useStack

    class Action1 implements ActionListener {

    VectorStack2 objVS;

    public void actionPerformed (ActionEvent e) {}

    int i;

    JFrame frame2 = new JFrame ("Clicked");

    frame2.setVisible (true);

    frame2. SetSize (200,200);

    JLabel label = new JLabel ("you clicked me");

    JPanel Panel = new JPanel();

    frame2. Add (Panel);

    Panel.Add (label);

    int [] int1 = {100, 200, 300, 400, 500};

    VectorStack2 obj = new VectorStack2 ();

    for (i = 0; i < 5; ++ I)

    obj.push (new Integer (int1 [i]));

    HOW TO OBTAIN THIS ITEM from VectorStack2 IN Action2 actionPerformed method?

    }

    }

    class Action2 implements ActionListener {

    public void actionPerformed (ActionEvent e) {}

    int i;

    JFrame image3 = new JFrame ("OKNO 3");

    frame3.setVisible (true);

    frame3. SetSize (200,200);

    JLabel label = new JLabel ("kliknales");

    JPanel Panel = new JPanel();

    frame3. Add (Panel);

    Panel.Add (label);

    VectorStack2 obj = new VectorStack2();

    for (i = 0; i < 5; ++ I)

    JOptionPane.showMessageDialog (null, "burst val is" + obj.pop ());

    }

    }

    Please watch carefully on these lines in your code:

         JButton button = new JButton("Push");
         panel.add(button);
         button.addActionListener (new Action1(objVStack));
    
         JButton button2 = new JButton("Pop");
         panel.add(button2);
         button.addActionListener (new Action2(objVStack));
    

    The lesson here is: always choose names of significant for login!

    Good bye

    DPT

  • Replace the earpiece of the action of the search button in af:query

    Hi experts,

    My version of JDeveloper is: 11.1.2.4.0

    I did some research by applying an action listener to the search button in the Panel of af: query. I see that you can add a footer to the facet of the query and create a menu drop-down 'add custom fields '. However, I can't find a way to access the search key.

    My specific use case is that I am applying an advanced search feature according to a criterion of view to an integrated Office Excel workbook. When the user clicks a button in the Excel workbook, a dialog with the af:query component is displayed. Instead of the user performing a 'search' and then clicking a button to exit the window and perform the download action in Excel, it would be better to have the search af:query search button and close the window.

    Is it possible to include an actionlistener to the search of an af component key: query? If not, is it possible to include this feature? Creating a custom search form is out of the question that the source of data that I use a lot of columns. Different users have different search criteria, in order to dynamically add search fields is a must.

    Thanks for any help!

    Try $ instead of #.

    ${myBean.myValue}

    Timo

  • Cannot find tag event listener in the nucleus of all JSF component category

    Hello
    In jdev 11.1.2.3,.

    I can't find the event listener tag in the category compenent of basis of the JSF component in the component palette.
    There are tags as a listner:
    -Action listener;
    -Phase listener;
    -Set Action listener property;
    -Listener value changes;

    Is there something wrong?
    Thank you!

    In the component palette, you can see a search field on the top of the palette. Hit and type of event in this entry. You get the 'event' as a result?
    Otherwise, open the project properties and open the node of "JSP tag libraries. Check who the library "JSF Core 2.0"in the section "Distributed libraries".

    Timo

  • How to call fileDownload listener programmatically

    Hey people,


    I'm working on jdev 11.1.1.4.0. I have a use case to call the file download listner when clicking on a link to order.
    I want to call the listener action/action on the command link first and after this listener to download file, is it possible to do?

    Or, we can delay run download listener the listener to action action on CommandLink?

    Any suggestions will be appreciated. Thank you


    Concerning
    Kanika

    Hello

    them to the string upwards:

    Use a command link which, in its listener action (after processing what the action listener is supposed to deal with), called a hidden command button or link that has the download auditor assigned

    Frank

  • reset the action using a few imagelink

    Hi experts,

    11.1.1.5.0 - adbc - oracle db10g jdev

    Hi I know not af:reset button is to reset the fields.

    but trying to do commandImageLink link.

    Why go commandImageLink means. image link has some pictures. every time the link. I have to reset the fields.

    I can't do this. How can I do?
    <af:commandImageLink styleClass="OraBITooltipText"
                                           shortDesc="Clear"
                                           binding="#{backingBeanScope.glm0020.cil18}"
                                           id="cil18" icon="/icons/clear.png">
                        
                      </af:commandImageLink>

    ERP,

    something is entered in the field of af: table and I use commandimagelink to clear the entrance to the fields. It does not work properly. (Documents restored enterily)

    So what you see is that the new created line is removed, correct? Well, if that's your problem (I'm not quite sure that you mentioned on page 1 of this thread) then you can have an action listener defined (link order the value partialSubmit = true) who has access to the current row in the table, pass the attributes of this line and set them to null. However, for this you need to PPR table (as if not a single row refresh is not displayed).

    Frank

Maybe you are looking for