Special Button

Hi all,
I need to develop a transaction, a special button is needed to add under the OK button and above the applicaction toolbar,(not on the application toolbar), you can see it in T-Code ES32. It is for create attachment and workflow ...
Does anyone know how to add that to the screen?
Thx in advance, points will be rewarded.
Vincent

HI..,
u can do that in the Function keys option of that particular screen's GUI status..
go to Menu painter .. give the program name and the Status name ..
In that open the Fucntion keys option.. u will get some predefined keys..
U just double click on any one of those which is of no use in your program.. and change it accordingly...
reward if it helps u...
sai ramesh

Similar Messages

  • Special button with double action

    hi there,
    i know that what i'm gonna ask is quite complicated, but let's try, i'm sure somebody will help me out.
    I'm trying to get an expanding button for my app. I want a button like the 'debug' or 'run' (among others) buttons of the Eclipse environment, which you can find in the toolBar. If you click on the left side of it, you'll see it runs the last 'configuration'. If you click on the expand arrow on the right side of it, a pop-up menu will show up.
    Do you have any idea how to get such a button?
    thanks in advance people!!!

    thanks everyone!!
    well, after spending few hours trying to do it, I found out the solution.
    In order to get such a button, you have to add an action to a toolbar and make it 'AS_DROP_DOWN_MENU' . had to look into the code of the org.eclipse.jface.action.Action class to find it out.
    there is this particular constructor :
    protected Action(String text, int style) {
              this(text);
              switch (style) {
              case AS_PUSH_BUTTON:
                   value = VAL_PUSH_BTN;
                   break;
              case AS_CHECK_BOX:
                   value = VAL_TOGGLE_BTN_OFF;
                   break;
              case AS_DROP_DOWN_MENU:
                   value = VAL_DROP_DOWN_MENU;
                   break;
              case AS_RADIO_BUTTON:
                   value = VAL_RADIO_BTN_OFF;
                   break;
              }THANKS ANYWAY GUYS!

  • Special mouse buttons stop working after resume

    Hi, I have logitech RX100 mouse with 8 buttons. I configured it according to arch wiki with evdev driver and it works great but when I suspend with pm-utils and then resume my special buttons don't work.
    My Xorg.conf
    Section "InputDevice"
    Identifier "USBMouse"
    Driver "evdev"
    Option "Name" "Logitech USB Optical Mouse"
    Option "Device" "/dev/input/by-id/usb-Logitech_USB_Optical_Mouse-event-mouse"
    Option "Resolution" "1000"
    EndSection
    X.log
    (**) USBMouse: always reports core events
    (**) USBMouse: Device: "/dev/input/by-id/usb-Logitech_USB_Optical_Mouse-event-mouse"
    (II) USBMouse: Found x and y relative axes
    (II) USBMouse: Found mouse buttons
    (II) USBMouse: Configuring as mouse
    (II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
    (II) evaluating device (USBMouse)
    (II) XINPUT: Adding extended input device "USBMouse" (type: MOUSE)
    (II) evaluating device (Trackpoint)
    X.log after resume
    (WW) USBMouse: Grab failed (No such device)
    (EE) Read error: No such device
    (EE) Read error: No such device
    (EE) Read error: No such device
    (EE) Read error: No such device
    (EE) Read error: No such device
    X.log says No such device, but device is same as before suspend and points to same /dev/input/event*. When I restart X everythings is ok again.
    Last edited by qubit (2008-10-05 20:29:44)

    You're not the only one. There's no real solution yet, but you might want to track
    http://bbs.archlinux.org/viewtopic.php?id=88307&p=1
    and
    https://bugs.freedesktop.org/show_bug.cgi?id=26213
    Also, maybe add your weight to the bug report. I don't think we've really been noticed yet.
    Last edited by onety-three (2010-02-13 14:21:23)

  • Special keys/buttons on enhanced HP keyboard no longer do anything

    The special keys/buttons on my keyboard no longer do anything. ALL ,except for the Mute and Volume Up/Down buttons, do nothing when pressed. The Eject 1 and Eject 2 buttons used to Open/Close upper and lower the drive trays, but now do not.  I tried downloading the drivers from teh HP website but they are older than the ones I got with the computer. I tried installing them anyways but the install keeps crashing with error "If (OSLangDec=="1028" || OSLangDec=="2052" || OSLangDec=="3076") Then".
    Any idea why these special keyboard buttons are non-functional at this point? 
    System info:
     Product HP Pavilion a6200n Desktop PC  
     Model #: a6200n
     Enhanced Multimedia PS/2 Keyboard
     Microsoft Windows Vista Home Basic 32

    Hi mikenowo, sry I haven't got any more ideas on this one. 
    In an effort to bump this back up toward the top of the list, here's a couple more questions for you:  Is ur Vista current with updates i.e. SP1 and/or SP2?  And have you, by chance, disabled the "kbd" services from start up?  (KBD.exe runs the special buttons on the keyboard.  Needs to have a check mark next to it, like this.) 
    And an observation:  I googled ur error message and, from my brief survey, this oslangdec thing appears to be an hp specific issue with windows operating systems, both xp and vista, a compatability/emulation conflict of some type?  I even found one thread where someone posted a pic almost identical to the one u posted.   Here's the link to that forum thread.   And here's the pic *he* posted (almost two yrs ago).  You will see in that thread that he's not even talking about keyboards; he is having a problem with audio drivers.   This tells me that the problem is not specific to the keyboard driver - but to certain 3rd party driver installation in general?  Unfortuantely noone every followed up with any solution either in this thread or any others I found.  But I bring it up now in case someone else in these forums has any idears.
    Good luck.

  • Samsung R580 , can't change brightness, a few buttons don't work

    Hi,
    Spent over 6 hours trying to find a solution, yet it's always on the highest brightness mode.
    Couldn't find the monitor with lspci (don't know if it's possible anyway), here's the vga controller :
    02:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0a29] (rev a2) (prog-if 00 [VGA controller])
    Subsystem: Samsung Electronics Co Ltd Device [144d:c06a]
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at cc000000 (32-bit, non-prefetchable) [size=16M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    Memory at ce000000 (64-bit, prefetchable) [size=32M]
    I/O ports at 2000 [size=128]
    [virtual] Expansion ROM at cd000000 [disabled] [size=512K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [b4] Vendor Specific Information: Len=14 <?>
    Capabilities: [100] Virtual Channel
    Capabilities: [128] Power Budgeting <?>
    Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
    Kernel driver in use: nvidia
    Kernel modules: nvidia, nvidiafb
    I tried changing /proc/acpi/video/NVID/LCD/brightness but it didn't work.
    http://aur.archlinux.org/packages.php?ID=36238 did actually turn the display on and off, though. Modifying the script didn't help and I don't know anything about kernel programming so it's not an option either.
    On top of that, some of my "special" buttons won't work. Touchpad enable button works flawlessly and a few of them actually worked before I removed KDE to install Xfce (like volume control) and I can see them using xev so I'll fix it later, but those that change the brightness and turn the wireless on and off aren't recognized at all.
    Any suggestions ?
    Last edited by felace (2010-04-11 08:52:52)

    Here's more information about the issue, in case it might prove useful :
    Output of Xorg.0.log :
    II) Apr 12 17:47:24 NVIDIA(0): NVIDIA GPU GeForce GT 330M (GT216) at PCI:2:0:0 (GPU-0)
    (--) Apr 12 17:47:24 NVIDIA(0): Memory: 1048576 kBytes
    (--) Apr 12 17:47:24 NVIDIA(0): VideoBIOS: 70.16.3f.00.ff
    (II) Apr 12 17:47:24 NVIDIA(0): Detected PCI Express Link width: 16X
    (--) Apr 12 17:47:24 NVIDIA(0): Interlaced video modes are supported on this GPU
    (--) Apr 12 17:47:24 NVIDIA(0): Connected display device(s) on GeForce GT 330M at PCI:2:0:0:
    (--) Apr 12 17:47:24 NVIDIA(0): Seiko (DFP-0)
    (--) Apr 12 17:47:24 NVIDIA(0): Seiko (DFP-0): 330.0 MHz maximum pixel clock
    (--) Apr 12 17:47:24 NVIDIA(0): Seiko (DFP-0): Internal Dual Link LVDS
    (II) Apr 12 17:47:24 NVIDIA(0): Assigned Display Device: DFP-0
    (==) Apr 12 17:47:24 NVIDIA(0):
    (==) Apr 12 17:47:24 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
    (==) Apr 12 17:47:24 NVIDIA(0): will be used as the requested mode.
    (==) Apr 12 17:47:24 NVIDIA(0):
    (II) Apr 12 17:47:24 NVIDIA(0): Validated modes:
    (II) Apr 12 17:47:24 NVIDIA(0): "nvidia-auto-select"
    (II) Apr 12 17:47:24 NVIDIA(0): Virtual screen size determined to be 1366 x 768
    (--) Apr 12 17:47:25 NVIDIA(0): DPI set to (102, 102); computed from "UseEdidDpi" X config
    (--) Apr 12 17:47:25 NVIDIA(0): option
    (==) Apr 12 17:47:25 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
    (--) Depth 24 pixmap format is 32 bpp
    (II) Apr 12 17:47:25 NVIDIA: Using 768.00 MB of virtual memory for indirect framebuffer
    (II) Apr 12 17:47:25 NVIDIA: access.
    (II) Apr 12 17:47:25 NVIDIA(0): Initialized GPU GART.
    (II) Apr 12 17:47:25 NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
    (II) Apr 12 17:47:25 NVIDIA(0): may not be running or the "AcpidSocketPath" X
    (II) Apr 12 17:47:25 NVIDIA(0): configuration option may not be set correctly. When the
    (II) Apr 12 17:47:25 NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
    (II) Apr 12 17:47:25 NVIDIA(0): try to use it to receive ACPI event notifications. For
    (II) Apr 12 17:47:25 NVIDIA(0): details, please see the "ConnectToAcpid" and
    (II) Apr 12 17:47:25 NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
    (II) Apr 12 17:47:25 NVIDIA(0): Config Options in the README.
    (II) Apr 12 17:47:25 NVIDIA(0): ACPI display change hotkey events enabled: the X server is new
    (II) Apr 12 17:47:25 NVIDIA(0): enough to receive ACPI hotkey events.
    (II) Apr 12 17:47:25 NVIDIA(0): ACPI brightness change hotkey events enabled.
    (II) Apr 12 17:47:25 NVIDIA(0): Setting mode "nvidia-auto-select"
    (II) Loading extension NV-GLX
    Also, there's an option to decrease brightness automatically when ac adapter is unplugged (via BIOS) : It's dimmer than it usually is , but by the time I start booting, it reverts back to full brightness (somewhere between "triggering udev" and "loadling modules").
    Last edited by felace (2010-04-12 15:37:01)

  • Satellite U200-128 & Vista: FN & Control buttons don't work

    I upgraded my notebook's OS from XP to Vista.
    But after I changed my OS, some functions are not operating anymore, I.E. the multimedia keys (which is located just above the keyboard, right next to the power key), and the FN keys (screen backlight dimmer, wifi key, etc).
    Can someone assist me with this?
    I've already downloaded Toshiba software made for U200 for Vista and yet I can't seem to fix it like I did with an XP OS previously.

    Hi
    You have to install the Toshiba Vista Value Added Package to get the Toshiba Control buttons functionality.
    Also the FN buttons should work after the VAP installation.
    The point is that Vista FlashCards controls the FN buttons and the FlashCards are a part of the VAP.
    I would also recommend installing the Button Support because it allows you to customize and preset TOSHIBA special button settings
    Bye

  • Hold-on-to-button event

    heys all, is there a way to fire an event repeatedly when a button is pressed (and not released)

    i rmb reading somewhere that there is this special button which java swing scrollbars use. that is, the 2 buttons (the up arrow and the down arrow) are the implementation of a kind of button that can respond to the -while-button-is-pressed-event. (but i cant' find the article anymore)
    what i'm trying to do is to fire an event repeatedly while the button is pressed on to (like a scrollbar) and then stop it when it is released. is there a standard way to achieve this functionality?

  • 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>

  • Mighty Mouse (wired) Button Config in Vista

    Is there a comparable configuration application in Vista for configuring button actions on the mighty mouse? The windows control panel sees the mighty mouse but does not allow it to configure the side buttons or change the default action of the scroll ball. Any help would be greatly appreciated, thanks in advance.

    It isn't likely that there is an alternative available for the Mighty Mouse in Vista. This is because the buttons on the Mighty Mouse are optimized for use in Mac OS X, not Windows. The drivers and stuff that allow the Mighty Mouse to work in Windows are not the same as in OS X, and lack the driver support for the special buttons. I would recommend buying a "Certified for Vista" mouse if you want special features like that in Vista. If you're using Boot Camp on a Mac, I would recommend having a Mighty Mouse for Mac OS X and a Vista Certified mouse from Microsoft or Logitech for Vista.

  • Handling Multiple buttons in WDA Intercative forms

    Hi,
    I have two buttons on Adobe interctive form in WDA, namely 1. submit  2. Reset .
    can you please help me how to determain which button has been clicked.
    with Regards,
    ShaiK Shadulla.

    Hi,
    the Submit button is special button in interactive form.
    So in web dynpro u get a SUBMIT ACTION for this (Interactive form).
    for the rest of the buttons you can use java script in form itself.
    hope this will help u.
    Regards,
    Arvind

  • Re: Satellite A500 - need some help with FN button and Toshiba programs

    Hi,
    The FN button, Eco button and other specialized buttons such as the one which opens Windows Media Player have stopped responding on my A500 PSAM3A-03P00E which runs Windows Vista. I can still change screen brightness with the FN button but no menu appears at the top of the screen.
    Also the Toshiba programs which are meant to run at start up such as PC Health Monitor are not auto starting, even though they are selected in System Configuration (msconfig).
    Bluetooth manager is however running at start up.
    I have previously had blue screen errors however they are not a problem since I updated the BIOS to 1.5 and uninstalled Zonealarms.
    Cheers

    Thanks all,
    All problems have been fixed after downloads of Toshiba value added package and the new version of PC Health Monitor (V1.3.2.0).

  • Tecra A7 - Presentation button under Vista Business

    Hi!
    I have a Tecra A7 with Windows Vista 32 installed. Also all Toshiba specific drivers and tools are installed.
    The Tecra A 7 has two special buttons, one of them is the presentation button, which swiched should put the output to a extrnal monitor. Whenever I press the button, it starts Windows media player.
    How can I reconfigure the button, so that I can switch between internal display and external monitor, like th FN+F5 does?

    To be honest I don't have this notebook model and cannot say for sure how Vista configured but this notebook model is is 3 years old and at this time delivered with WXP.
    It is nice that Toshiba supports it for Vista 32-bit too. I hope you have installed all Toshiba stuff from download page.
    If you cannot use this presentation button you can use FN+F5 key combination when external monitor is connected to your Tecra notebook. Value Added Package contains the tool for this function.
    Toshiba Assist is also available for Windows Vista but not offered for your Tecra.

  • Microphone Mute Button Doesn't Work - T510

    Pretty simple issue.  I think I have the latest software updates installed but on my Win7 64-bit T510, all keyboard special buttons work except for Microphone mute.  Speaker mute and speaker volume buttons work fine. I'm having to mute my mic from the Recording Devices screen in Win7. 
    What could prevent Microphone mute button from working?
    Solved!
    Go to Solution.

    Markus101 wrote:
    I've got the same problem on  my new T410. I think quite a few people do, but for some reason, this isn't getting much attention. Strange how you can buy a high end product, from a reputable laptop manufacturer, and the product still doesn't work. Quite hard to believe - I mean, this is the year 2010, and a simple button on the notepad doesn't work. Also, hard to believe the audio is not supported on the display port....
    Would be hard to believe that audio isn't supported on the display port, since it is supported..
    Thinkpad T500-2081 CTO | T9400 2.53GHz | 8 GB RAM | ATI HD3650 + Intel GM45 | 15.4" LED WXGA+ | Windows 8 | ATI Catalyst 13.1 (non-switchable)
    Thinkpad 390x | PII 333 | 256mb ram | NeoMagic 256AV | SVGA LCD | OS/2 v4.52

  • HP easy access buttons

    i have a keyboard Model DC 170B  HP easy access wireless keyboard and mouse, and i need a driver to work the special buttons to go internet, surch, mail,  or others programs.
    Where i find it? how to make do? i like very much this keyboard, and i want to do this.
    Olá
    Tenho um teclado modelo DC 170B  HP easy access wireless keyboard and mouse, e quero 

      I have the same keyboard.
    Wow,great question and showed some patients.
    I like but it's old as the hills . I will try and run what you did and assign some keys, could be fun, Hopefully mine won't glitch out as well  
    Man .. I guess HP could not spare the guy who broke his leg skiing to come in the office and chew through some of the forum questions.  How lame, that's  where the rubber meets the road in product loyalty and recommendations.   I see their just as neglectful as the last company I bought from. 

  • Uswsusp-git buttons for kde

    Hi.
    I would like to ask you for and advice. I recently changed my computer spec (from AMD X4-955 to I5-4670K), and i've been trying to bring lost funcionality of being able to suspend to ram and suspend to disk. I succesfully bring back suspend to disk with uswsusp-git, but i have two concerns that i would like to discuss and fix it:
    -s2ram doesen't work at all. When turned on, computer switchs to "tty", and freezes, don't know how to diagnose. It is strange because on archwiki it's being written that it should work out of the box. In my case, it just doesen't (i have added uresume hook to mkinitcpio.conf)
    -how to make KDE use s2disk with kde suspend/sleep buttons in K>CLOSE(END)>suspend/hibernate/log off, switch user and so on?
    Could somebody help me? I don't know what to look foor, i google it around but haven't found an solution. I would show what i have in mind:
    Screen 01:
    http://imgur.com/5UzCONH
    Screen 02:
    http://imgur.com/J7oB6Zv
    Screen 03:
    http://imgur.com/W0XawKQ
    Screen 04:
    http://imgur.com/NfnOa73
    As you can see, i want to be able to ude KDE sleep/hibernate buttons (screen 01/02) for s2disk/s2ram, but the only solution i was able to come up was the one from picture 03-04. I just added new item to menu, and created script in bash (#!/bin/bash and put there sudo and sleep). I would like to use sleep/hibernate buttons from K, not the one i created (screen 03-04).
    Could somebody points me to a good direction? Also, why s2ram doesen't work?
    Thanks.

    topito wrote:
    I have no idea how to do that but the options that appear under "Special buttons" seem to be here, well, not all but at least some of them...
    /opt/kde/share/apps/kicker/menuext
    thank you! i had a look at these files and what i found
    X-KDE-Library=kickermenu_prefmenu
    i don't really like ... X-KDE-Library? this seems to be compiled and the desktop-file just calls this "kickermenu_prefmenu" and others ... hmmm ...
    *going to search for the codes in the cvs tree of kde*

Maybe you are looking for