Balloon message without action listener.

Hi all,
I want to add a balloon message without a action performed. I mean when the icon is loaded to the tray want to display it.
Check the displayMessage() in tray icon class in several way, but no luck. Can you give me a hint that how to do it.
thanks

augustocallejas, please don't post in threads that are long dead and don't hijack another poster's thread. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
I'm locking this thread now.
db

Similar Messages

  • Button without action listener

    I wanto to know if somebody will create
    a button without action listener???.
    JC

    but.. Buttons are created without ActionLiteners, you have to add them yourself...
    and.. without ActionListener, whats going to happen when you click the Button?
    you could use awt.Button.processEvent() in a subclass of Button, but then you would have to give that subclass some sort of access to the program class or its methods anyway

  • Transaction Posting Confirmation Message and Action Listener behaviour

    Hi, I have a scenario that a user is Posting a Transaction and when he press the “Post” Button a, confirmation dialog box should popup asking “Do you really want to Post the record ?”. If the user press “Yes” the record is further process and If the user press “No” then the transaction should not proceed.
    I have implemented the main screen(PostTransaction.java) and the popup confirmation window(ConfirmationWindow.java)
    Question 1 ) Why the code is not stoping in the Post Button Action listener as in JOptionPane, then how do i know that the user has selected "Yes" or "No" ?
    Question 2) Do I have to write the code for posting of a Transaction(postTransaction() method) in the “ConfirmationWindow”? or it should be in “PostTransaction”.
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.application.Application;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    public class PostTransaction extends Application{
           public void start(final Stage stage) throws Exception {
                  Group root = new Group();
                  Scene scene = new Scene(root, 300,300);
                  stage.setScene(scene);
                  stage.setTitle("Transaction Post Screen");
                  GridPane gp = new GridPane();
                  Label lblName = new Label("Name");
                  Label lblAmount = new Label("Amount");
                  TextField txtName = new TextField();
                  TextField txtAmount = new TextField();
                  Button btnPost = new Button("Post Record");
                  gp.add(lblName, 1, 1);
                  gp.add(lblAmount, 1, 2);
                  gp.add(txtName, 2, 1);
                  gp.add(txtAmount, 2, 2);
                  gp.add(btnPost, 2, 3);
                  btnPost.setOnAction(new EventHandler<ActionEvent>() {
                        @Override
                        public void handle(ActionEvent arg0) {
                             //The code does not stop here as in JOptionPane, then how do i know that the user has selected "Yes" or "No" ??
                             boolean popupResult = ConfirmationWindow.confirmTranactionPosting(stage, "Please Confirm");
                             if(popupResult==true){
                                  //This line is printed before the user selects yes or no
                                  System.out.println("Proceeding with Tranaction Posting");
                                  //postTransaction();
                             if(popupResult==false){
                                  //This line is printed before the user selects yes or no
                                  System.out.println("Do not Proceed with Tranaction Posting");
                 root.getChildren().add(gp);
                stage.show();
                public static void main(String[] args) {
                  launch(args);
              private void postTransaction(){
                   //write the code for posting here
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.HBox;
    import javafx.stage.Modality;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    public class ConfirmationWindow extends Stage {
         Stage owner;
         Stage stage;
         BorderPane root;
         static boolean postStatus = false;
      public ConfirmationWindow( Stage owner, String title){
        root = new BorderPane();
        stage = this;
        this.owner = owner;
        initModality( Modality.APPLICATION_MODAL );
        initOwner( owner );
        initStyle( StageStyle.UTILITY );
        setTitle( title );
        setContents();
      public void setContents(){
        Scene scene = new Scene(root,250,150);
        setScene(scene);
        Group groupInDialog = new Group();
        groupInDialog.getChildren().add( new Label("Do you really want to Post this record ?") );
        root.setCenter( groupInDialog );
        Button yes = new Button( "Yes" );
        yes.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent e) {
                   postStatus =true;
                   stage.close(); // Close the pop up. Transfer control to PostTransaction.java and execute the PostTransaction() method.
        Button no  = new Button( "No" );
        no.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent e) {
                   postStatus =false;
                   stage.close(); // Close the pop up only
        HBox buttonPane = new HBox();
        buttonPane.setSpacing(10);
        buttonPane.getChildren().addAll(yes,no);
        root.setBottom(buttonPane);
        stage.show();
      public static boolean confirmTranactionPosting(Stage owner, String title) {
           new ConfirmationWindow(owner, title);
           return postStatus;
    }

    The MII Message listener is a queue. But when I understand you correctly, you do not want to process the messages immediately after arriving in the Listener.
    Maybe the categorization of messages is an option for you (see [Sap Help: Processing Rule Editor - Category|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm]. You can enter a category for the control recipe messages. The messages will then be placed in the Listener queue. You can use the [Message Services|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] actions to read the categorized messages and process them as you need.
    In addition to Manoj, you may also use the [Queueing actions|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] of MII, where you can queue xml contents.
    Hope this helps.
    Michael

  • How can I forward a message without downloading it ?

    I'm trying to forward a message on messages counter change event by adding a listener on my INBOX folder:
    folder.addMessageCountListener(new MessageCountAdapter()   {
              public void messagesAdded(MessageCountEvent ev) {
                  Message[] msgs = ev.getMessages();
    ...  //forward each new incoming messageMessageCountListener works fine, but i'd like to forward my new messages without downloading them and just changing some header information and recipients.
    Can JavaMail do it?
    Edited by: elisad on Nov 7, 2008 7:52 AM

    No, there's no way to do that with the base IMAP protocol.
    There's some new RFCs that would enable that, but JavaMail doesn't
    support them, and I don't believe they're widely implemented by servers yet.

  • Custom button with action listener - will not invoke action listener

    Hi
    For whatever reason, I cannot find a concise example of a simple custom component that can invoke an action listener. The tutorials I've read so far either ignore this fundamental topic or only make the slightest make reference to it.
    The best I have come up with - in terms of a simple prototype is below... but, the action listener is never invoked.... Can someone tell me what I am missing (full code below). Hopefully, what is missing or incorrect will be obvious to you JSF experts out there.
    Thanks for any help!!
    -f
    tld
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
      <tlib-version>0.01</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name>jsfcustomcomponent</short-name>
      <uri>http://jsfcustomcomponent/</uri>
      <description><![CDATA[jsf custom component tags]]>  </description>
      <tag>
        <name>specialBtnTag</name>
        <tag-class>jsfcustomcomponent.SpecialBtnTag</tag-class>
        <attribute>
          <name>value</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <description><![CDATA[button value]]></description>
        </attribute>
        <attribute>
          <name>actionListener</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <description><![CDATA[action listener]]> </description>
        </attribute>
      </tag>
    </taglib>
    SpecialBtnComponent
    package jsfcustomcomponent;
    import javax.faces.component.*;
    import javax.faces.context.*;
    import javax.faces.el.*;
    import javax.faces.event.*;
    public class SpecialBtnComponent
        extends UIComponentBase implements ActionSource
        public static final String COMPONENT_TYPE = "SpecialBtnComponent";
        public static final String RENDERER_TYPE = "SpecialBtnRenderer";
        public String getFamily()
            return COMPONENT_TYPE;
        public SpecialBtnComponent()
            super();
            setRendererType(SpecialBtnComponent.RENDERER_TYPE);
        private String value;
        public void setValue(String value, FacesContext facesContext)
            this.value = value;
        public String getValue()
            if (null != value)
                return value;
            ValueBinding _vb = getValueBinding("value");
            if (_vb != null)
                return (String) _vb.getValue(getFacesContext());
            else
                return null;
        private MethodBinding action = null;
        public MethodBinding getAction()
            return action;
        public void setAction(MethodBinding methodBinding)
            this.action = action;
        private MethodBinding actionListener = null;
        public MethodBinding getActionListener()
            return (this.actionListener);
        public void setActionListener(MethodBinding methodBinding)
            this.actionListener = actionListener;
        public boolean isImmediate()
            return false;
        public void setImmediate(boolean _boolean)
            //this.immediate = immediate;
        public void addActionListener(ActionListener actionListener)
            addFacesListener(actionListener);
        public ActionListener[] getActionListeners()
            return (ActionListener[]) getFacesListeners(ActionListener.class);
        public void removeActionListener(ActionListener actionListener)
            removeFacesListener(actionListener);
        public Object saveState(FacesContext context)
            Object values[] = new Object[5];
            values[0] = super.saveState(context);
            values[1] = value;
            values[2] = saveAttachedState(context, action);
            values[3] = saveAttachedState(context, actionListener);
            return ( (Object) (values));
        public void restoreState(FacesContext context, Object state)
            Object values[] = (Object[]) state;
            super.restoreState(context, values[0]);
            value = (String) values[1];
            action = (MethodBinding) restoreAttachedState(context, values[2]);
            actionListener = (MethodBinding) restoreAttachedState(context, values[3]);
        public void broadcast(FacesEvent event) throws AbortProcessingException
            super.broadcast(event);
            if (event instanceof ActionEvent)
                FacesContext context = getFacesContext();
                MethodBinding mb = getActionListener();
                if (mb != null)
                    mb.invoke(context, new Object[]
                              {event});
                ActionListener listener = context.getApplication().getActionListener();
                if (listener != null)
                    listener.processAction( (ActionEvent) event);
        public void queueEvent(FacesEvent e)
            if (e instanceof ActionEvent)
                if (isImmediate())
                    e.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
                else
                    e.setPhaseId(PhaseId.INVOKE_APPLICATION);
            super.queueEvent(e);
    SpecialBtnRenderer
    package jsfcustomcomponent;
    import java.util.*;
    import javax.faces.component.*;
    import javax.faces.context.*;
    import javax.faces.event.*;
    import javax.faces.render.*;
    public class SpecialBtnRenderer
        extends Renderer
        String value;
        public SpecialBtnRenderer()
        public void decode(FacesContext context, UIComponent component)
            Map requestMap = context.getExternalContext().getRequestParameterMap();
            String clientId = component.getClientId(context);
            SpecialBtnComponent specialBtnComponent = (SpecialBtnComponent) component;
            String value = (String) requestMap.get(clientId);
            if (null != value)
                specialBtnComponent.setValue(value, context);
            ActionEvent actionEvent = new ActionEvent(specialBtnComponent);
            specialBtnComponent.queueEvent(actionEvent);
        public void encodeEnd(FacesContext context, UIComponent component) throws java.io.IOException
            SpecialBtnComponent specialBtnComponent = (SpecialBtnComponent) component;
            ResponseWriter writer = context.getResponseWriter();
            String clientId = component.getClientId(context);
            value = (String) component.getAttributes().get("value");
            if (value == null)
                value = "defaultValue";
            buildSpecialBtn(writer, value, clientId, specialBtnComponent);
        private void buildSpecialBtn(ResponseWriter writer, String value, String clientId, SpecialBtnComponent component) throws java.io.IOException
            writer.startElement("table", component);
            writer.startElement("tbody", component);
            writer.startElement("tr", component);
            writer.startElement("td", component);
            value = String.valueOf(value);
            writer.startElement("input", component);
            writer.writeAttribute("type", "submit", null);
            writer.writeAttribute("name", clientId, "clientId");
            writer.writeAttribute("value", value, null);
            writer.endElement("input");
            writer.endElement("td");
            writer.endElement("tr");
            writer.endElement("tbody");
            writer.endElement("table");
    SpecialBtnTag
    package jsfcustomcomponent;
    import javax.faces.component.*;
    import javax.faces.el.*;
    import javax.faces.webapp.*;
    import com.sun.faces.util.*;
    public class SpecialBtnTag
        extends UIComponentTag
        public String value = null;
        public String actionListener = null;
        public String getComponentType()
            return SpecialBtnComponent.COMPONENT_TYPE;
        public String getRendererType()
            return SpecialBtnComponent.RENDERER_TYPE;
        protected void setProperties(UIComponent component)
            super.setProperties(component);
            if (! (component instanceof SpecialBtnComponent))
                throw new IllegalStateException("Component " + component.toString() +
                                                " not expected type.  Expected: jsfcustomcomponent.SpecialBtnComponent.  Perhaps you�re missing a tag?");
            SpecialBtnComponent specialBtnComponent = (SpecialBtnComponent) component;
            if (value != null)
                if (isValueReference(value))
                    ValueBinding vb = Util.getValueBinding(value);
                    specialBtnComponent.setValueBinding("value", vb);
                else
                    throw new IllegalStateException("The value for �value� must be a ValueBinding.");
            if (actionListener != null)
                if (isValueReference(actionListener))
                    ValueBinding vb = Util.getValueBinding(actionListener);
                    specialBtnComponent.setValueBinding("actionListener", vb);
                else
                    throw new IllegalStateException("The value for �actionListener� must be a ValueBinding.");
        public void release()
            super.release();
            value = null;
            actionListener = null;
        public void setValue(String value)
            this.value = value;
        public String getValue()
            return this.value;
        public void setActionListener(String actionListener)
            this.actionListener = actionListener;
        public String getActionListener()
            return this.actionListener;
    jsp1.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://jsfcustomcomponent/" prefix="j"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    <link rel="stylesheet" type="text/css" href="./stylesheet.css" title="Style">
    </head>
    <body>
    <f:view>
      <h:form id="form01">
        <h:outputText value="test special button with action listener"/>
        <j:specialBtnTag value="#{specialBtnBacking.specialBtnValue}" actionListener="#{specialBtnBacking.specialBtnActionListener}"/>
        <h:messages/>
        <h:outputText value="#{specialBtnBacking.outcome}"/>
      </h:form>
    </f:view>
    </body>
    </html>
    SpecialBtnBacking
    package specialbtn;
    import javax.faces.context.*;
    import javax.faces.event.*;
    public class SpecialBtnBacking
        private FacesContext context;
        public SpecialBtnBacking()
            this.setSpecialBtnValue("Special Button with action listener");
        private String specialBtnValue;
        public String getSpecialBtnValue()
            return this.specialBtnValue;
        public void setSpecialBtnValue(String specialBtnValue)
            this.specialBtnValue = specialBtnValue;
        private String outcome="actionlistener NOT invoked: click specialBtn above to test";
        public String getOutcome()
            return outcome;
        public void setOutcome(String outcome)
            this.outcome = outcome;
        public void specialBtnActionListener(ActionEvent evt)
            System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Jsp1Backing/specialBtnActionListener()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            this.outcome="***action listener invoked!!!***";
    faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
      <managed-bean>
        <managed-bean-name>specialBtnBacking</managed-bean-name>
        <managed-bean-class>specialbtn.SpecialBtnBacking</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      <component>
        <component-type>SpecialBtnComponent</component-type>
        <component-class>jsfcustomcomponent.SpecialBtnComponent</component-class>
        <component-extension>
          <renderer-type>SpecialBtnRenderer</renderer-type>
        </component-extension>
      </component>
      <render-kit>
        <renderer>
          <component-family>SpecialBtnComponent</component-family>
          <renderer-type>SpecialBtnRenderer</renderer-type>
          <renderer-class>jsfcustomcomponent.SpecialBtnRenderer</renderer-class>
        </renderer>
      </render-kit>
    </faces-config>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
      <display-name>pagerWEB</display-name>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
      <jsp-config>
        <taglib>
          <taglib-uri>http://jsfcustomcomponent/</taglib-uri>
          <taglib-location>/WEB-INF/jsfcustomcomponent.tld</taglib-location>
        </taglib>
      </jsp-config>
      <servlet>
        <description>Added by JBuilder to compile JSPs with debug info</description>
        <servlet-name>debugjsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
          <param-name>classdebuginfo</param-name>
          <param-value>true</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>debugjsp</servlet-name>
        <url-pattern>*.jsp</url-pattern>
      </servlet-mapping>
    </web-app>

    got it working....
    The changes were:
    in "SpecialBtnRenderer"...
    --new--
                        mb.invoke(context, new Object[1]);
    --old--
                        mb.invoke(context, new Object[0]);
    in "SpecialBtnTag"...
    --new--
    import javax.faces.event.ActionEvent;
    --new--
                    MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding(specialBtnListener, new Class[]{ActionEvent.class});
    --old--
                    MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding(specialBtnListener, null);
    -Below is the entire application, again -- for those (like myself) who need concrete examples...
    I hope this helps someone else! --f
    jsp1.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://jsfcustomcomponent/" prefix="j"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    <link rel="stylesheet" type="text/css" href="./stylesheet.css" title="Style">
    </head>
    <body>
    <f:view>
        <h:messages/>
      <h:form id="form01">
        <h:outputText value="test special button with action listener"/>
        <j:specialBtnTag value="#{specialBtnBacking.specialBtnValue}" specialBtnListener="#{specialBtnBacking.specialBtnActionListener}"/>
        <h:outputText value="#{specialBtnBacking.outcome}"/>
      </h:form>
    </f:view>
    </body>
    </html>
    SpecialBtnBacking
    package specialbtn;
    import javax.faces.context.*;
    import javax.faces.event.*;
    public class SpecialBtnBacking
        private FacesContext context;
        public SpecialBtnBacking()
            this.setSpecialBtnValue("Special Button with action listener");
        private String specialBtnValue;
        public String getSpecialBtnValue()
            return this.specialBtnValue;
        public void setSpecialBtnValue(String specialBtnValue)
            this.specialBtnValue = specialBtnValue;
        private String outcome = "actionlistener NOT invoked: click specialBtn above to test";
        public String getOutcome()
            return outcome;
        public void setOutcome(String outcome)
            this.outcome = outcome;
        public void specialBtnActionListener(ActionEvent evt)
            System.out.println("\n\n");
            System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Jsp1Backing/specialBtnActionListener()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Jsp1Backing/specialBtnActionListener()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Jsp1Backing/specialBtnActionListener()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Jsp1Backing/specialBtnActionListener()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
            System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Jsp1Backing/specialBtnActionListener()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n");
            this.outcome = "***action listener invoked!!!***";
    jsfcustomcomponent.tld
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
      <tlib-version>0.01</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name>jsfcustomcomponent</short-name>
      <uri>http://jsfcustomcomponent/</uri>
      <description><![CDATA[jsf custom component tags]]>  </description>
      <tag>
        <name>specialBtnTag</name>
        <tag-class>jsfcustomcomponent.SpecialBtnTag</tag-class>
        <attribute>
          <name>value</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <description><![CDATA[button value]]></description>
        </attribute>
        <attribute>
          <name>specialBtnListener</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <description><![CDATA[action listener]]> </description>
        </attribute>
      </tag>
    </taglib>
    faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
      <managed-bean>
        <managed-bean-name>specialBtnBacking</managed-bean-name>
        <managed-bean-class>specialbtn.SpecialBtnBacking</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      <component>
        <component-type>SpecialBtnComponent</component-type>
        <component-class>jsfcustomcomponent.SpecialBtnComponent</component-class>
        <component-extension>
          <renderer-type>SpecialBtnRenderer</renderer-type>
        </component-extension>
      </component>
      <render-kit>
        <renderer>
          <component-family>SpecialBtnComponent</component-family>
          <renderer-type>SpecialBtnRenderer</renderer-type>
          <renderer-class>jsfcustomcomponent.SpecialBtnRenderer</renderer-class>
        </renderer>
      </render-kit>
    </faces-config>
    SpecialBtnComponent.java
    package jsfcustomcomponent;
    import javax.faces.component.*;
    import javax.faces.context.*;
    import javax.faces.el.*;
    import javax.faces.event.*;
    public class SpecialBtnComponent
        extends UIComponentBase implements ActionSource
        public static final String COMPONENT_TYPE = "SpecialBtnComponent";
        public static final String RENDERER_TYPE = "SpecialBtnRenderer";
        public String getFamily()
            return COMPONENT_TYPE;
        public SpecialBtnComponent()
            super();
            setRendererType(SpecialBtnComponent.RENDERER_TYPE);
        private String value;
        public void setValue(String value, FacesContext facesContext)
            this.value = value;
        public String getValue()
            if (null != this.value)
                return this.value;
            ValueBinding _vb = getValueBinding("value");
            if (_vb != null)
                return (String) _vb.getValue(getFacesContext());
            else
                return null;
        private MethodBinding specialBtnListener = null;
        public MethodBinding getActionListener()
            return (this.specialBtnListener);
        public void setActionListener(MethodBinding actionListener)
            this.specialBtnListener = actionListener;
        public Object saveState(FacesContext context)
            Object values[] = new Object[3];
            values[0] = super.saveState(context);
            values[1] = saveAttachedState(context, this.specialBtnListener);
            values[2] = this.value;
            return (values);
        public void restoreState(FacesContext context, Object state)
            Object values[] = (Object[]) state;
            super.restoreState(context, values[0]);
            this.specialBtnListener = (MethodBinding) restoreAttachedState(context, values[1]);
            this.value = (String) restoreAttachedState(context, values[2]);
        public void broadcast(FacesEvent event) throws AbortProcessingException
            super.broadcast(event);
            if (event instanceof ActionEvent)
                FacesContext context = getFacesContext();
                MethodBinding mb = this.getActionListener();
                if (mb != null)
                    try
                        mb.invoke(context, new Object[]
                                  {event});
                    catch (EvaluationException ex)
                        System.out.println("SpecialBtnComponent/broadcast(FacesEvent event)...EvaluationException encountered - ex.getMessage()=" + ex.getMessage());
                        ex.printStackTrace();
                ActionListener actionListener = context.getApplication().getActionListener();
                if (actionListener != null)
                    actionListener.processAction( (ActionEvent) event);
        public void queueEvent(FacesEvent e)
            if (e instanceof ActionEvent)
                e.setPhaseId(PhaseId.INVOKE_APPLICATION);
            super.queueEvent(e);
        public MethodBinding getAction()
            return null;
        public void setAction(MethodBinding methodBinding)
        public boolean isImmediate()
            return false;
        public void setImmediate(boolean _boolean)
        public void addActionListener(ActionListener actionListener)
            addFacesListener(actionListener);
        public ActionListener[] getActionListeners()
            return (ActionListener[]) getFacesListeners(ActionListener.class);
        public void removeActionListener(ActionListener actionListener)
            removeFacesListener(actionListener);
    SpecialBtnTag.java
    package jsfcustomcomponent;
    import javax.faces.component.*;
    import javax.faces.el.*;
    import javax.faces.webapp.*;
    import com.sun.faces.util.*;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    public class SpecialBtnTag
        extends UIComponentTag
        public String value = null;
        public String specialBtnListener = null;
        private SpecialBtnComponent specialBtnComponent;
        public SpecialBtnTag()
            super();
        public String getComponentType()
            return SpecialBtnComponent.COMPONENT_TYPE;
        public String getRendererType()
            return SpecialBtnComponent.RENDERER_TYPE;
        protected void setProperties(UIComponent component)
            super.setProperties(component);
            if (! (component instanceof SpecialBtnComponent))
                throw new IllegalStateException("Component " + component.toString() +
                                                " not expected type.  Expected: jsfcustomcomponent.SpecialBtnComponent.  Perhaps you�re missing a tag?");
            specialBtnComponent = (SpecialBtnComponent) component;
            if (value != null)
                if (isValueReference(value))
                    ValueBinding vb = Util.getValueBinding(value);
                    specialBtnComponent.setValueBinding("value", vb);
                else
                    throw new IllegalStateException("The value for �value� must be a ValueBinding.");
            if (specialBtnListener != null)
                if (isValueReference(specialBtnListener))
                    MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding(specialBtnListener, new Class[]{ActionEvent.class});
                    ( (SpecialBtnComponent) component).setActionListener(mb);
                else
                    MethodBinding mb = Util.createConstantMethodBinding(specialBtnListener);
                    ( (SpecialBtnComponent) component).setActionListener(mb);
        public void release()
            super.release();
            value = null;
            specialBtnListener = null;
        public void setValue(String value)
            this.value = value;
        public String getValue()
            return this.value;
        public void setSpecialBtnListener(String specialBtnListener)
            this.specialBtnListener = specialBtnListener;
        public String getSpecialBtnListener()
            return this.specialBtnListener;
    SpecialBtnRenderer
    package jsfcustomcomponent;
    import java.util.*;
    import javax.faces.component.*;
    import javax.faces.context.*;
    import javax.faces.event.*;
    import javax.faces.render.*;
    import javax.faces.el.MethodBinding;
    import javax.faces.el.*;
    public class SpecialBtnRenderer
        extends Renderer
        String value;
        public SpecialBtnRenderer()
            super();
        public void decode(FacesContext context, UIComponent component)
            try
                Map requestMap = context.getExternalContext().getRequestParameterMap();
                String clientId = component.getClientId(context);
                SpecialBtnComponent specialBtnComponent = (SpecialBtnComponent) component;
                String value = (String) requestMap.get(clientId);
                if (null != value)
                    specialBtnComponent.setValue(value, context);
                    MethodBinding mb = specialBtnComponent.getActionListener();
                    if (mb != null)
                        System.out.println("SpecialBtnRenderer/decode...mb.getExpressionString()=" + mb.getExpressionString());
                        //mb.invoke(context, new Object[0]);
                        mb.invoke(context, new Object[1]);
                    ActionEvent actionEvent = new ActionEvent(specialBtnComponent);
                    specialBtnComponent.queueEvent(actionEvent);
            catch (EvaluationException ex)
                ex.printStackTrace();
        public void encodeEnd(FacesContext context, UIComponent component) throws java.io.IOException
            SpecialBtnComponent specialBtnComponent = (SpecialBtnComponent) component;
            ResponseWriter writer = context.getResponseWriter();
            String clientId = component.getClientId(context);
            value = (String) component.getAttributes().get("value");
            if (value == null)
                value = "defaultValue";
            buildSpecialBtn(writer, value, clientId, specialBtnComponent);
        private void buildSpecialBtn(ResponseWriter writer, String value, String clientId, SpecialBtnComponent component) throws java.io.IOException
            writer.startElement("table", component);
            writer.startElement("tbody", component);
            writer.startElement("tr", component);
            writer.startElement("td", component);
            value = String.valueOf(value);
            writer.startElement("input", component);
            writer.writeAttribute("type", "submit", null);
            writer.writeAttribute("name", clientId, "clientId");
            writer.writeAttribute("value", value, null);
            writer.endElement("input");
            writer.endElement("td");
            writer.endElement("tr");
            writer.endElement("tbody");
            writer.endElement("table");
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
      <display-name>pagerWEB</display-name>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
      <jsp-config>
        <taglib>
          <taglib-uri>http://jsfcustomcomponent/</taglib-uri>
          <taglib-location>/WEB-INF/jsfcustomcomponent.tld</taglib-location>
        </taglib>
      </jsp-config>
    </web-app>

  • Oracle BI Presentation Services problem - Message without protocol negotiat

    Hello,
    I have installed all the BI EE components on a single RH linux machine, I'm able to start ORACLE BI presentation service and Java host services after the startup the log file (sawlog0.log) says
    Oracle BI Presentation Services 10.1.3.4 (Build 080726.1900) are starting up.
    Type: Information
    Severity: 30
    Time: Thu Feb 26 18:42:56 2009
    File: project/sawserver/sawserver.cpp Line: 459
    Properties: ThreadID-3086547168
    Location:
    saw.sawserver
    Oracle BI Presentation Services have started successfully.
    BUT when I hit the URL [http://]&lt;local host name&gt;:9710/analytics/saw.dll?Dashboard
    The browser is blank and the log file throw error message as following
    Type: Error
    Severity: 40
    Time: Thu Feb 26 18:45:12 2009
    File: project/webcomm/rpcserver.cpp Line: 744
    Properties: ThreadID-41417616
    Location: saw.rpc.server
    saw.rpc.server.handleConnection
    saw.rpc.server.dispatch
    saw.threadPool
    saw.threads
    Message without protocol negotiation
    Type: Warning
    Severity: 40
    Time: Thu Feb 26 18:45:12 2009
    File: project/webcomm/socketrpcserver.cpp Line: 491
    Properties: ThreadID-41417616
    Location:
    saw.rpc.server.handleConnection
    saw.rpc.server.dispatch
    saw.threadPool
    saw.threads
    Bad request. Closing connection.
    Please note that Java host service is up & running with following message
    Feb 26, 2009 6:42:59 PM Main main
    INFO: Listening for new connections
    Can someone help me on what I'm missing?

    Did you check the Enterprise Manager to see wheter the application was correctly deployed and is up and running?
    http://ofdsys.us.oracle.com:9704/em
    Go Applications -> "analytics" (already here you can check the status) -> Module "analytics" -> "Test Web Module"

  • JTextField action listener

    Hi All,
         I have added an action listener to a TextField,im printing the text entered in textfiled by pressing the enter key of keyboard.
          public void actionPerformed(ActionEvent ae) {
                   System.out.println(jtf.getText());
             } my question is as an when i enterd the text in the textfield i want to printit . please help me to solve this.
    Thanks

    Yannix wrote:
    Add a keyListener in your JTextField.
    http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html
    I've always thought that it is better to use solutions that use a higher level of abstraction compared to solutions that use a lower level. If so, then using key Binding may be a better solution. If this is wrong, please let me know. You can learn about key Bindings here:
    http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html
    One statement in this tutorial compares key bindings to keylisteners:
    An alternative to key bindings is using key listeners. Key listeners have their place as a
    low-level interface to keyboard input, but for responding to individual keys key bindings are more
    appropriate and tend to result in more easily maintained code. Key listeners are also difficult if
    the key binding is to be active when the component doesn't have focus. Some of the advantages
    of key bindings are they're somewhat self documenting, take the containment hierarchy into
    account, encourage reusable chunks of code (Action objects), and allow actions to be easily
    removed, customized, or shared. Also, they make it easy to change the key to which an action
    is bound. Another advantage of Actions is that they have an enabled state which provides an
    easy way to disable the action without having to track which component it is attached to.
    In the future Swing related question should be posted in the Swing forum.
    http://forum.java.sun.com/forum.jspa?forumID=57
    Agree 100%

  • ADF TUTORIAL: PROBLEMS WITH "Export Collection Action Listener"

    hello all,
    environment:
    windows xp
    jedev 11.1.1.3.0
    firefox 3.6.13
    tutorial: Developing Ajax-Based User Interfaces with JSF: An Introduction to ADF Faces Rich Client Components
    url: http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/adf_richclient/adfrichclient.htm
    mainstep: "working with menus"
    substep: number 5 "add collection action listener"
    until the step "working with menus" works everthing fine. after i added the collection action listener and saved my work, the webapplication will not open. i see only a blank page and no error message.
    when i delete the action listener works everything fine again.
    how can i fix this issue? thx to everyone.
    best regards
    gunnar

    I'm not sure if this is going to help anyone , but if you're stuck at that point of the tutorial , try to drop the "Export Collection Action Listener" onto the menuItem "Export To Excel" not under it;
    So the xml under the source tab should look something like this :
    <f:facet name="menus">
    <af:menu text="My Options" id="m2" detachable="true">
    <af:commandMenuItem text="Export To Excel" id="cmi1">
    <af:exportCollectionActionListener type="excelHTML"
    exportedId="t1"/>
    </af:commandMenuItem>
    <af:commandMenuItem text="Show Specials" id="cmi2">
    <af:showPopupBehavior popupId=":::p1"/>
    </af:commandMenuItem>
    </af:menu>
    Hope this helped somebody .

  • Download action listener maximum length

    Hi,
    What should be the mzximum size of a file to be downloaded using a filedownload action listener
    I am trying to download a file coming from bi publisher from adf and i have used filedownload action listener
    But whenever the data is more than 200 kb or so it is failing and i am getting empty file. i have downloaded files of 156kb size or so...
    What is the max size of it
    Thanks,
    Vinay

    on click of download bt with download action listener the following method is called
        public void GenerateAirportAndAgent(FacesContext facesContext,
                                            OutputStream outputStream) {
            StringBuffer errorMessage = new StringBuffer();       
            ViewObjectImpl tripLocDetailsVO = (ViewObjectImpl) ADFUtils.findIterator("TripLocationDetailsIterator").getViewObject();
            String tripNumberString = null;
            BigDecimal tripNumber = null;
            Object tripNumberParam = tripLocDetailsVO.getNamedWhereClauseParam("bindTripNumber");
            if(tripNumberParam != null){
              tripNumber = (BigDecimal)tripNumberParam;
              tripNumberString = tripNumber.toString();
            String tripLocIDString = null;
            if(AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID") != null){
                tripLocIDString = (String)AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID");    
            String icao = null;
            Object icaoParam = tripLocDetailsVO.getNamedWhereClauseParam("bindIcao");
            if(icaoParam != null){
              icao = icaoParam.toString();
            tripLocDetailsVO.setRangeSize(-1);
            Row[] aircraftBriefVORows = tripLocDetailsVO.getAllRowsInRange();
              StringBuffer DST=new StringBuffer();
               StringBuffer STD=new StringBuffer();
            for (int i = 0; i < aircraftBriefVORows.length; i++) {
               ViewRowImpl tripLocationRow = (ViewRowImpl)aircraftBriefVORows;
    //For each dept row, getting reference to empVO which contains all employees corresponding to current dept
    RowIterator airPortLOcationVO = (RowIterator)tripLocationRow.getAttribute("AirportLocation");
    while(airPortLOcationVO.hasNext()){
    Row airportLocationRow = airPortLOcationVO.next();
    DST.append((String)airportLocationRow.getAttribute("DSTNew")+",");
    STD.append((String)airportLocationRow.getAttribute("STDNew")+",");
    HashMap parameterValueList = new HashMap();
    if(tripNumberString!=null)
    parameterValueList.put("REPORT_NAME", "AIRPORT_AND_AGENT");
    parameterValueList.put("TRIP_NUMBER", tripNumberString);
    parameterValueList.put("ICAO", icao);
    parameterValueList.put("AIRPORT_TRIP_LOCATION_ID", tripLocIDString);
    parameterValueList.put("DST",DST.toString());
    parameterValueList.put("STD",STD.toString());
    try{
    ReportResponse reportResponse = reportOutputResp(parameterValueList,
    AirportAndAgentBriefTemplate,
    AirportAndAgentReport,
    errorMessage);
    outputStream.write(reportResponse.getReportBytes());
    outputStream.flush();
    catch(Exception e){
    errorMessage.append("Error in generating downloadable Document.\n");
    errorMessage.append(e.getMessage());
    errorMessage.append(". Current User:"+bipUserName);
    errorMessage.append(". Accessing Report:"+AirportAndAgentReport);
    System.out.println(errorMessage.toString());;
    e.printStackTrace();
    else{
    System.out.println("Error: TripNumber is null, cant Print Report");
    errorMessage.append("TripNumber is not Valid, Please try again");
    System.out.println(errorMessage.toString());
    facesContext.responseComplete();
    public ReportResponse reportOutputResp(HashMap parameterValueList,
    String templateName,
    String reportAbsoPath,
    StringBuffer errorMessage){
    publicReportServiceService = new PublicReportServiceService();
    PublicReportService publicReportService = publicReportServiceService.getPublicReportService();
    String sessionToken=null;
    ReportResponse reportResponse=null;
    String reportName = "";
    String tripNumber = null;
    String hotelReqId =null;
    String transReqId =null;
    String icao = null;
    String tripLocId = null;
    String tripLegNum = null;
    String dst = null;
    String std = null;
    if(parameterValueList.get("REPORT_NAME") != null){
    reportName = (String)parameterValueList.get("REPORT_NAME");
    if(parameterValueList.get("TRIP_NUMBER") != null){
    tripNumber = (String)parameterValueList.get("TRIP_NUMBER");
    if(parameterValueList.get("ICAO") != null){
    icao = (String)parameterValueList.get("ICAO");
    if(parameterValueList.get("HOTEL_REQUEST_ID") != null){
    hotelReqId = (String)parameterValueList.get("HOTEL_REQUEST_ID");
    if(parameterValueList.get("TRANS_REQUEST_ID") != null){
    transReqId = (String)parameterValueList.get("TRANS_REQUEST_ID");
    if(parameterValueList.get("TRIP_LOCATION_ID") != null){
    tripLocId = (String)parameterValueList.get("TRIP_LOCATION_ID");
    if(parameterValueList.get("LEG_NUMBER") != null){
    tripLegNum = (String)parameterValueList.get("LEG_NUMBER");
    if(parameterValueList.get("AIRPORT_TRIP_LOCATION_ID") != null){
    tripLocId = (String)parameterValueList.get("AIRPORT_TRIP_LOCATION_ID");
    if (parameterValueList.get("DST") !=null){
    dst =(String)parameterValueList.get("DST");
    if (parameterValueList.get("STD") !=null){
    std =(String)parameterValueList.get("STD");
    System.err.println("reportName -- "+ reportName);
    System.err.println("tripNumber -- "+ tripNumber);
    System.err.println("hotelReqId -- "+ hotelReqId);
    System.err.println("icao -- "+ icao);
    System.err.println("transReqId -- "+ transReqId);
    System.err.println("tripLocId -- "+ tripLocId);
    System.err.println("tripLegNum -- "+ tripLegNum);
    System.err.println("DST -- "+ dst);
    System.err.println("STD -- "+ std);
    try{
    sessionToken = publicReportService.login(bipUserName, bipPassword);
    ReportRequest reportRequest = new ReportRequest();
    reportRequest.setAttributeFormat("rtf");//The output format of the requested report pdf, rtf, html
    //reportRequest.setAttributeFormat("English (United States)");//The locale selection for the report. Example: fr-FR
    reportRequest.setAttributeTemplate(templateName);//The template to apply to the report
    reportRequest.setFlattenXML(false); //True indicates that the XML is to be flattened. This flag is used for the Analyzer for Microsoft Excel because Excel requires XML data structure to be flattened.
    ArrayOfParamNameValue arr = new ArrayOfParamNameValue();
    List<ParamNameValue> list = arr.getItem();
    //Setting Trip Number
    if(tripNumber != null){
    ParamNameValue paramName = new ParamNameValue();
    paramName.setName("P_TRIP_NUMBER");
    ArrayOfString value = new ArrayOfString();
    List<String> trp_number = value.getItem();
    trp_number.add(tripNumber);
    paramName.setValues(value);
    list.add(paramName);
    //Setting ICAO
    if(icao != null && !reportName.equals("PERMIT_BRIEF") && !reportName.equals("ITINERARY_BRIEF")){
    ParamNameValue paramNameIcao = new ParamNameValue();
    paramNameIcao.setName("P_ICAO");
    ArrayOfString icao_value = new ArrayOfString();
    List<String> trp_icao = icao_value.getItem();
    trp_icao.add(icao);
    paramNameIcao.setValues(icao_value);
    List<ParamNameValue> listIcao = arr.getItem();
    listIcao.add(paramNameIcao);
    //Setting Hotel Request ID
    if(hotelReqId != null && reportName.equals("HOTEL_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_REQ_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(hotelReqId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Transportation Request ID
    if(transReqId != null && reportName.equals("TRANS_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_TRANS_REQ_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(transReqId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Trip Location ID
    if(tripLocId != null && (reportName.equals("HANDLING_BRIEF") || reportName.equals("AIRPORT_AND_AGENT"))){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_TRIP_LOC_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(tripLocId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting DST
    if(dst != null && reportName.equals("AIRPORT_AND_AGENT")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_DST");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(dst);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting STD
    if(std != null && reportName.equals("AIRPORT_AND_AGENT")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_STD");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(std);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Trip Leg Number
    if(tripLegNum != null && reportName.equals("PERMIT_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_LEG_NUM");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(tripLegNum);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    reportRequest.setParameterNameValues(arr);
    //reportRequest.setParameterNameValues(paramNameValue);
    reportRequest.setReportAbsolutePath(reportAbsoPath); //The absolute path to the report in the BI Publisher repository. For example: /HR Manager/HR Reports/Employee Listing.xdo.
    reportRequest.setReportData(null);//If you are providing the data directly for the report use this element to pass the data
    reportRequest.setSizeOfDataChunkDownload(-1);//If you set flattenXML to true, or if you do not want to chunk the data, set this parameter to -1 to return all data back to the client.
    reportResponse = publicReportService.runReportInSession(reportRequest, sessionToken);
    catch(Exception e){
    errorMessage.append("There was a problem in getting the report.\n");
    errorMessage.append("Please try again. \n If problem persists contact System Administrastor with below Message.\n");
    errorMessage.append(e.getMessage());
    errorMessage.append(". Current User:"+bipUserName);
    errorMessage.append(". Accessing Report:"+reportAbsoPath);
    System.out.println(errorMessage.toString());
    //outputStream.write(generatePDF(errorMessage.toString()));
    //outputStream.flush();
    e.printStackTrace();
    finally{
    try{
    if(sessionToken!=null)
    publicReportService.logout(sessionToken);
    catch(Exception e){}
    return reportResponse;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

  • Pass arguments inside action listener

    Hi everybody, I have a bunch of combo boxes which I have stored in an array. Now I have action listeners on these and i wanna know which combo box of the array element has been called. Like lets say ihave combobox = new JComboBox. I want to know the value of "i" inside the action listener when that particular combo box is called. I am not sure whether I have explained it well enuf, but please let me know if thats the case. I need some urgent help on this.

    No its not that I guess. I have this loop where u run thru it for i = n lets say and create an array of comboboxes. Now I have to know whenever which of these comboboxes has been fired. lets say combobox # 5 in the array has been fired then somehow I have to know and get this value 5 (which I have to store in a class variable). Hope I made myself clear this time.
    You can always call getSource() on the action
    event to figure out which component fired it. Is this
    what you are looking for? I think your message is
    missing a section in the middle.
    Mitch Goldstein
    Author, Hardcore JFC (Cambridge Univ Press)
    [email protected]

  • Having horrible service with 4GLTE I have had 3G for several weeks (I am not the only person I know having this problem), I have reset my network settings and it did not resolve the issue.  I am also unable to send SMS and text messages without them eithe

    Having horrible service with 4GLTE I have had 3G for several weeks (I am not the only person I know having this problem), I have reset my network settings and it did not resolve the issue.  I am also unable to send SMS and text messages without them either failing or not sending at all.  Is there an outage in the Cleveland, Ohio area (zip codes 44129, 44134, 44137) or anything else I can do to resolve this issue?

    Not that I'm a Verizon employee, but I have experience in the field. An LTE tower will only extend up to, on a perfect day, with no elevation, 6-7 miles. On a typical day, you will be lucky at four (4) miles. The three ZIP codes you've given are all within about a 12 mile radius. That would mean that 2-3 towers are currently down at the same time, and Verizon would know about it within the hour. Being it's Cleveland, I'm sure they would receive numerous calls regarding an outage of that size.
    My point is that if you're having issues in all three ZIP codes, chances are it's a phone issue. If you're handset is simply not receiving LTE, but still receiving 3G, that would signify a SIM card issue. You need to get your SIM card replaced.

  • After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?

    After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?
    VIBAC

    I downloaded and installed
    OS X Lion 10.7.5 Supplemental Update
    and that solved my problem completely. (368 AU plugins now works!)

  • How can I delete a message without opening an adjacent one?

    Before Yosemite you could delete a message from Mail.app without opening an adjacent message by holding option and clicking the garbage can.
    However, in Yosemite, there doesn't seem to be a way to delete a message without opening (and setting the message's status to "read") an adjacent message.
    I often don't have time to read all the messages in my Inbox so I'll quickly read some important ones and I'll leave the others as "unread" to get back to later in the day. Yosemite Mail doesn't seem to support this workflow anymore…
    Anyone know a workaround; short of manually setting a messages status back to "unread"?

    Ok, I'm answering my own question.  I made up a fake user name to get into my Palm Desktop and deleted profiles.  Then I went in with real user name.  All of my calendar entries were gone, but fortunately within the last month I had HotSynced and was able to HotSync again to get it back from my handheld.  I think I need a blackberry.  This stuff happens way too often.
    Post relates to: Palm m505

  • How can i disable an Action listener temporary?

    hi folks,
    I have a GUI with many Jcomboxes. Each one of them has an actionlistener.
    The idea was: when one of those comboboxes is selected, then the selected value will appear on ALL the comboboxes (by using setSelectedIndex(int index)).
    The problem is when i select a value on ONE of those comboboxes and set it on the others, the actionListener thinks that i selcted a value on the other comboboxes and starts setting the values again... I other words if i select one combobox i obtain an endless loop...
    Is it possible to disable the action listener temporary when setting the selectd values on the other comboboxes?

    Just use removeActionListener and then addActionListener
    Noah

  • Can I print a Mail message without multiple recipient names?

    Is there a way to print a Mail message without having also to print the dozens of recipients, where that's the case? I can't see an obvious way, but I'm sure I used to be able to do this. I'd be grateful if anyone knows how.

    HI,
    Go here and download this utility. Print Selection 1.1
    "You can select text and graphics in any cocoa application (safari, mail.app, etc.), go to the services menu and go to "Print Selection" and the selected stuff will be printed."
    Carolyn

Maybe you are looking for