UI class for custom Button
Hey frineds can any one tell me how can i make a UI class for my custom component?
Let me explain this is detail
I have a custom button called MyButton extended From JButton. I can change its appearance at runtime if i define my own UIClass called MyButtonUI which is extended from Basic ButtonUI.
One way to apply the ui to Mybutton is using method setUI().
But the much better way is to define our own look and feel class and setting defining buttonUI in it. This is done as follows
protected void initClassDefaults(UIDefaults table)
super.initClassDefaults(table);
table.put ("ButtonUI", "MyButtonUI");
}But this method sets the newly created UI to every swing button including the button used in comboBox !!
Can Any one tell me how can i set the ui that is applicable only to MyButton.
Thans in Advanced
You should override the method getUIClassID() in your MyButton class which returns something like MyButtonUI. Then you put this in the default table:
protected void initClassDefaults(UIDefaults table) {
super.initClassDefaults(table);
String pkg = ...;
table.put ("MyButtonUI", pkg + "MyButtonUI");
}Then you apply the UI only to your custom buttons.
Similar Messages
-
Htp.p( )/htp.script( ) in plsql for custom button
Hi All,
I am trying to display an ALERT after doing some validations in the PL/SQL Code of a "Custom Button" on a FORM:
htp.p('<script language="JavaScript">
alert("No values found");
</script>');
But, looks like the whole statement is being ignored.
On the other hand i can execute the same code in the Additional PL/SQL Code section for "After displaying the Form".
Appreciate if anybody could help.
Thanks,
Gopi.I noticed when you enter Java Script code for some field events in Portal the custom code does not show up in the generated web page. This is probably the same kind of problem.
-
A Full list of task command for custom Button
Hi All
I am looking for the exhaustive list of Task Commonad for the Custom Button , that i am preparing. In the 320 material, it is saying that "A Full list of task command is located in the online BPC Excell for help"
can anybody please let me know the appropriate link or any other appropriate place , from where i can get the list.
Thanks
krishYou can greatly improve your chance of receiving a helpful answer to your question if you state the version (MS or NW) and the release (5.1, 7.0, 7.5) of BPC which you are using.
Also notice the sticky [note|Please do not post BPC, SSM or FI/CO questions here!; at the top of this forum whereby we announced new dedicated forums for BPC which are the proper place to post your questions regarding BPC in the future.
Thanks and best regards,
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP BusinessObjects
Enterprise Performance Management
Regional Implementation Group -
Hi All,
Can you please tell me how can I found if a particular class is released for customer use or not?
Thanks,
RajeevSAP says this with respect to class -
Internally Released Indicator
Until a comprehensive release concept is developed for a packet discussion, two levels of release exist:
Not released, that is, this class is only a utility class and is not actually used
Internally released, that is, this class can be restricted (see internal release of function modules). There are no stability guarantees for use outside of SAP. -
OAAM 11g R2: Unable to load java class for custom configurable action
Need to configure a Configurable Action to get triggered for a particular action at a given checkpoint.
Steps Followed:
1. Created a java class implementing com.bharosa.vcrypt.tracker.dynamicactions.intf.DynamicAction, getParameters() and execute() methods were implemented in that java class.
2. Added necessary jars from $ORACLE_IDM_HOME\oaam\cli\lib to the build classpath.
3. Compiled and created a jar with it.
4. Extracted the oracle.oaam.extensions.war file into a working folder.
5. Added the Custom Jar created in step 3 into <working folder>/WEB-INF/lib/
6. Changed the following in MANIFEST.MF in <working folder>/META-INF/:
Specification-Version:11.1.2.0.1
Implementation-Version:11.1.2.0.1
7. Rejar-ed the oracle.oaam.extensions.war from the working folder using following command:
jar -cvfm oracle.oaam.extensions.war <working folder>\META-INF\MANIFEST.MF -C <working folder>/ .
8. Stopped the oaam_admin_server1, oaam_offline_server1 and oaam_server_server1.
9. Deleted the oracle.oaam.extensions deployment from the weblogic.
10. Deployed the newly created oracle.oaam.extensions as a shared library for oaam_admin_server1 and oaam_server_server1.
11. Started all managed servers.
But when I tried to create an action template with the java class I just created, it was throwing following error
+java.lang.ClassNotFoundException: *+
Unable to load configurable action class *. Ensure the class is made available in the class path.
Referred following documents:
1. http://docs.oracle.com/cd/E27559_01/admin.1112/e27207/cfgactions.htm
2. http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/cfg-action.htm
3. http://docs.oracle.com/cd/E27559_01/dev.1112/e27206/extend.htm
Kindly help me. Thanks in advance.
Edited by: 917717 on Dec 12, 2012 7:16 PMThis thread is a bit stale but I thought it might help to clarify one point about custom jar files on UCCX.
To properly load a custom jar:
Upload it into the classpath directory in the document repository.
Select it under System | Custom Classes Configuration
Finally you need to restart the CCX Engine and the CCX Administration services. If you have HA you need to restart them on both servers.
Other notes:
When referencing your class in the CCX Editor, use the fully qualified name of the class. Lots of other classes use things like Element or Document so you need to be explicit. The editor only knows about the 20 native classes by their object names. If you create a Document object in the editor you are really creating a com.cisco.doc.Document object. If you loaded jdom.jar and you wanted a jdom document then you need to create an object of type org.jdom.Document.
When compiling your custom jar files, be sure to compile for the version of Java that the CCX Engine runs. In general UCCX 7.X and older use Java 1.4. UCCX 8.X and higher use Java 1.6. Several of the core Java classes had significant changes between 1.4 and 1.6. If you ran your code on UCCX 7 or earlier and now it fails in UCCX 8.X or higher, recomplile for Java 1.6 and you classes will likely work again.
Finally, check for security violations in UCCX 8.X or higher. Cisco has restricted some of the things you can do. These URL's have more information:
http://docwiki.cisco.com/wiki/Engine
http://docwiki.cisco.com/wiki/Troubleshooting_Tips_for_Unified_CCX_8.0
-Steven
Please help us make the communities better. Rate helpful posts! -
Update Profile Class for Customer
Hi,
Can anyone tell me if I can update the customer profile class with sql query
This is the query I have written for updating
update hz_customer_profiles set profile_class_id = 'number', standard_cycle_id= 'number'
where cust_account_id in (select cust_account_id from hz_customer_profiles where collector_id in (a,b))
So can i use ths query to update for all the customers in the oraganization...
I know there is an API hz_customer_profiles_v2pub to update the customer profile for customers...but i have no idea how to do with that...
can you tell me how to update with API ( with steps)
Thx a lot for the Help
Regards
Jdev...You can try your luck in the E-business suite forums.
-
Cannot load classes for custom user store
I implemented a custom user store and deployed as sda library into NetWeaver preview SP16. NetWeaver is not able to load those classes when configuring that user store through Visual Administrator. Below is the error message I got,
Unable to register user store!
java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: Can not instantiate UserContext.
at com.sap.engine.services.security.server.UserStoreImpl.<init>(UserStoreImpl.java:78)
at com.sap.engine.services.security.server.UserStoreFactoryCache.registerUserStore(UserStoreFactoryCache.java:120)
at com.sap.engine.services.security.server.UserStoreFactoryImpl.registerUserStore(UserStoreFactoryImpl.java:150)
at com.sap.engine.services.security.userstore.RemoteUserStoreFactoryImpl.registerUserStore(RemoteUserStoreFactoryImpl.java:64)
at com.sap.engine.services.security.userstore.RemoteUserStoreFactoryImplp4_Skel.dispatch(RemoteUserStoreFactoryImplp4_Skel.java:99)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.ClassNotFoundException: mypackage.myusercontextimpl
Found in negative cache
Loader Info -
ClassLoader name: [common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore]
Parent loader name: [Frame ClassLoader]
References:
library:com.sap.ip.basecomps
library:core_lib
common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
library:servlet
library:sapxmltoolkit
library:com.sap.mw.jco
library:com.sap.util.monitor.jarm
library:j2eeca
library:opensql
interface:security
interface:log
interface:shell
interface:keystore_api
library:ejb20
interface:webservices
library:com.sap.guid
interface:appcontext
interface:endpoint_api
interface:resourceset_api
interface:resourcecontext_api
common:service:iiop;service:naming;service:p4;service:ts
interface:ejbcomponent
interface:container
interface:visual_administration
interface:transactionext
interface:dsr_ejbcontext_api
service:timeout
library:tc~jmx
interface:cross
service:file
service:locking
library:tcSLUTIL
service:memory
library:antlr
library:jdbdictionary
library:opensqlextensions
Resources:
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\dbpool\dbpool.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\basicadmin\basicadmin.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_compat.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\adminadapter\adminadapter.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\basicadmin\jstartupimpl.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\jmx_notification\jmx_notification.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\security\security.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\com.sap.security.core.ume.service\com.sap.security.core.ume.service.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_toolkit_api.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_userstore_lib.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\webservices_lib.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\basicadmin\jstartupapi.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_jaas_test.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\dbpool\sqljimpl.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.core.sda\com.sap.security.core.tpd.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.api.sda\com.sap.security.api.perm.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\connector\connectorimpl.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\saaj-api.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\configuration\configuration.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_jaas.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_xmlbind.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_util.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_csi.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_toolkit_core.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_ssf.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\userstore\userstore.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_https.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_service_api.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\jaxrpc-api.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\dbpool\opensqllib.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\deploy\deploy.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_jaas.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\jmx\jmx_sec.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.api.sda\com.sap.security.api.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.core.sda\com.sap.security.core.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\jmx\jmx.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\jaxm-api.jar
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\keystore\keystore.jar
Loading model: {parent,local,references}
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:348)
at com.sap.engine.services.security.server.UserStoreImpl.<init>(UserStoreImpl.java:75)
... 13 more
at com.sap.engine.services.security.exceptions.BaseSecurityException.writeReplace(BaseSecurityException.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:139)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:306)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)Hi sheshu0022,
Based on my research, the issue can be occurred due to something get corrupted in the script task. To fix this issue, please copy the code in the task, then rebuild the script task with the same code to test again.
The following similar thread is for your reference:
http://stackoverflow.com/questions/15165760/ssis-script-task-fails-on-server-with-error-cannot-load-script-for-execution
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
BAPI or FM or Class for Customer open items CLEAR (F-32)
Hi Everyone,
Is there any BAPI or FM to CLEAR customer open items (F-32).
Thanks,
NKHi,
For clearing open items you can use BAPI_ACC_DOCUMENT_POST.
but need to write extra code in BTE
check this function module SAMPLE_INTERFACE_RWBAPI01.
need to update below four fields of table accit.
REBZG (document no against u want to clear)
REBZJ (fiscal year)
REBZZ (line item)
REBZT
to update these field use BTE.
Thanks,
Avadhut. -
Thanks in advance for any help you can provide...
To represent roads on a map as mouse-overable, clickable buttons, I extended JComponent, added the instances to a layer in JLayeredPane, and registered each instance as a Mouse- and MouseMotionListener on an invisible JPanel ("mousePanel") which resides at the top level of the JLayeredPane. There are some other layers above the road layer (but below the mousePanel).
What's the best (simplest?) way to implement Tool Tips for the road-buttons. Each button's bounds, and the bounds of components in the higher layers are set to the bounds of the JLayeredPane, so the ToolTipManager can't "hear" mouseEvents from the buttons themselves--they're blocked.
I don't think I can extend the ToolTipManager (e.g., to have it also listen to the mousePanel) without messing up its behavior elsewhere in the UI, where there are other conventional components that also use tooltips, since the ToolTipManager is a singleton.
I tried firing new mouseEntered and mouseExited events from the mouseEntered/mouseExited methods in the road buttons, but the ToolTipManager didn't respond to those either. Here are the key pieces, cleaned up for simplicity:
public void mouseMoved(MouseEvent e) {
if ( !e.isConsumed() ) {
//outline is a Shape representing the road, offset &
//dim create a rectangle around the mouse. The event
//must be consumed to ensure only one road is selected at a time
if ( outline.intersects( e.getX()-offset, e.getY()-offset, dim, dim )) {
e.consume();
setActive(true, e);
repaint();
return;
setActive(false, e);
repaint();
public void setActive(boolean b, MouseEvent e) {
//fire a PropertyChangeEvent if there's been a change--
if ( active==b ) return;
this.active = b;
if ( clickable ) {
changer.firePropertyChange("active", !b, b);
if ( b ) {
mouseEntered(e);
return;
mouseExited(e);
public void mouseEntered(MouseEvent e) {
new MouseEvent(this, MouseEvent.MOUSE_ENTERED,e.getWhen(),e.getModifiers(),e.getX(), e.getY(),0, false);
public void mouseExited(MouseEvent e) {
new MouseEvent(this, MouseEvent.MOUSE_EXITED,e.getWhen(),e.getModifiers(),e.getX(), e.getY(),0, false);Just wondering if it would be possible to register a MouseMotionListener on your mousePanel that, on mouseMoved, could search the components below it for the top-most button and then set the mousePanel's own toolTipText to match the button's toolTipText. Perhaps SwingUtilities.getDeepestComponentAt() (or something similar) would help. Maybe have a look through the RootPane tutorial (especially the section on the GlassPane) for a similar situation.
http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html -
Using two Button classes for single Button control MFC
Hi,
Here is my problem:
I have a VC++ MFC dialog based application. There I am adding a Button to my dialog by just drag and drop from the tool box.
I am also having a MyCustomButton.dll to give new looks to the button.
Inside MyCustomButton.dll, MyCustomButton.cpp is the button class which is derived from CButton.
Now I want the behavior of my application in such a way at execution of my application, like if the MyCustomButton.dll is present in system then the button of my dialog should look like as per implementation of MyCustomButton.dll, where as if the dll
is not present normal MFC button should get displayed.
Please guide me in achieving this. How can I make my application (*.exe) decide at run time.
Thanks in Advance,
Thanks & Regards, Mayank AgarwalThanks Rupesh,
But my requirement is like that only I have to decide at run time.
Please look the scenario below:
// MyDialogDlg.h //
#include "MyCustomButton.h"
class MyDialogDlg
MyCustomButton m_CalcButton;
In the above piece of code
m_CalcButton is object of MyCustomButton class.
and my requirement is such that if MyCustomButton
.dll is not present then, m_CalcButton should executed as the object of CButton class of MFC.
There are cases where I cant ship the dll.
In such case how should I write the code? Please guide.
Thanks in Advance.
Thanks & Regards, Mayank Agarwal -
"Newbie Unable to load class for custom tag"
I have recently written a custom tag but I have been unable to implement it in a JSP because the server is unable to load the .class file. Below I have supplied the files that contribute to make up the custom tag, aswell as the JSP file used to implement it.
genericDBConnect.java
stored in C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF\classes\jsp\tags\dbase
package jsp.tags.dbase;
import java.io.*;
import java.sql.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class genericDBConnect extends BodyTagSupport
private String odbcDriver;
private String dataSource;
public void setOdbcDriver(String driver)
odbcDriver = driver;
public void setDataSource(String source)
dataSource = source;
public int doStartTag() throws JspException
return EVAL_BODY_INCLUDE;
public int doEndTag() throws JspException
try{
pageContext.getOut().print("This is the value of odbcDriver = " + odbcDriver + "and dataSource = " + dataSource);
catch(Exception ioException)
System.err.println("Exception thrown in genericDBConnect.doEndTag():");
System.err.println(ioException);
throw new JspException(ioException);
return EVAL_PAGE;
WEB.XML
Stored in: C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/dtd/web-app_2_2.dtd">
<web-app>
<display-name>Generic database Connector</display-name>
<description>
Connecting to a database using dataSource and OdbcDriver
Attributes as well as sending a query to the database;
</description>
<taglib>
<taglib-uri>/genericdbconnecttags.tld</taglib-uri>
<taglib-location>/WEB-INF/genericdbconnecttags.tld</taglib-location>
</taglib>
</web-app>
genericdbconnecttags.tld
C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!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>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>genericDBConnect</short-name>
<tag>
<name>dbconnect</name>
<tag-class>jsp.tags.dbase.genericDBConnect</tag-class>
<attribute>
<name>dataSource</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>odbcDriver</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
</taglib>
DBTester.jsp
Stored in:C:\jakarta-tomcat-3.2.3\webapps\exper
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Generic dataBase Connection</title>
</head>
<body>
<%@ taglib uri="/genericdbconnecttags.tld" prefix="database" %>
<database:dbconnect odbcDriver="sun.my.tag.lib" dataSource="hello">
this is the the begining of the end of life as we know it
</database:dbconnect>
</body>
</html>
And this is the error I get:
Error: 500
Location: /exper/DBtester.jsp
Internal Servlet Error:
org.apache.jasper.compiler.CompileException: C:\jakarta-tomcat-3.2.3\webapps\exper\DBtester.jsp(8,0) Unable to load class null
at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:129)
at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:759)
at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:138)
at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:909)
at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:194)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Please if you can help I will be very gratefulI was searching about this problem and I found here.
I'm using WSAD 4.0.3 and I'm making my first custom tag.
Here is my files:
======================= CLASS ======================
package sas.ric.tags.teste;
import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import java.io.IOException;
public class ClTagHello extends TagSupport {
public int doStartTag() {
try {
JspWriter out = pageContext.getOut();
out.println("HELLO!");
} catch (IOException ioe) {
System.out.println("Erro in ClTagHello: " + ioe);
return (SKIP_BODY);
================= TLD ==========================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>ric</short-name>
<uri></uri>
<info>Exemple</info>
<tag>
<name>hello</name>
<tag-class>sas.ric.tags.teste.ClTagHello</tag-class>
<body-content>empty</body-content>
</tag>
</taglib>
======================== JSP =====================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
</HEAD>
<%@ taglib uri="WEB-INF/app-tlds/tag-hello.tld" prefix="ric" %>
<BODY>
<ric:hello />
</BODY>
</HTML>
==========================================================
Please, help me.
Occur this error "JSPG0058E: Unable to load class null"
Thank's -
I created new customized buttons in RoboHelp. I want all the
buttons to have a rollover state. Although each button is
programmed exactly the same, some buttons do not maintain their
rollover state. HELP!!Hi again
Sorry, but the nature of these beasties is that the state is
not retained. This is because with the normal
TOC/Index/Search/Glossary buttons, the state is retained to show
what is currently visible in the navigation pane. For custom
buttons, all you will ever see is the rollover state. This is
because once you click, the navigation pane doesn't normally
change. The buttons only evoke an action, such as loading a topic
or opening a URL.
Sorry, I'm unaware of a way to alter the code to make the
state persist. Maybe someone super good at JavaScript will jump in
here and enlighten all of us.
Cheers... Rick -
How do I go about changing the tooltips of custom buttons.
One of the projects I'm working on right now has a button with a
graphic and is labeled "Print". Now I'd like to change the tooltip
hover to say something other than "Print".Hi ClubHans
If you click
This
super handy little ole link right here, you can download a copy
of my Skinny on Skins file. Once you get it saved, you may need to
right click it and Unblock it. After you get it displaying things,
click the Index tab and type "tooltip" into the index. I believe
you will find a topic titled "Tooltips for custom buttons".
Hopefully that should get you going.
Cheers... Rick -
Cant use Export to Excel functionality for ALV if I add a custom button
Hi,
I have added a custom button the the ALV toolbar by creating a GUI status and using the USER_COMMAND event. However. Now I dont the get the standard ALV toolbar with all the options for sorting, exporting to excel etc.
Can someone show me how I can do both, add my own button to the toolbar as well as use ALV Grid toolbar. Currently the ALV grid standard toolbar has disappeared
Thanks for readingHello,
I am not sure how you are creating your ALV report. If you are using FM REUSE_ALV_GRID_DISPLAY there is a parameter callled I_CALLBACK_PF_STATUS . Read the documentation for this field from the doc for the FM. It tells you to copy a standard PF status from fucn group SLVC_FULLSCREEN and then add your new button to that staus.
If you are using class CL_SALV_MODEL_BASE there is a method called set_screen_status that lets you do a similar thing - copy an existing PF status and add your button.
Hope that helps
Regards
Greg Kern -
Custom renderer for radio buttons?
I want to change how radio buttons are rendered (so they aren't all rendered alone in their own table). What would be the best way to do this?
One way would be to create a custom component, tag handler, and renderer (and register them all in faces-config.xml).
But what about using the existing JSF components and just writing my own renderer. Could that work? Would just need to write a renderer and configure faces-config.xml to use the appropriate component-family (for the existing JSF radio button component) and renderer-type (for the existing component tag class for the radio button)�.like this:
<render-kit>
<renderer>
<component-family>javax.faces.SelectOne</component-family>
<renderer-type>javax.faces.Radio</renderer-type>
<renderer-class>my.custom.renderer</renderer-class>
</renderer>
</render-kit>
Could this work?
Thanks.Could this work?Yes. Why do you doubt it?
Maybe you are looking for
-
ORA-00001 - unique constraint violation when upgrading 10g EUL
Hi, I am trying to upgrade my Discoverer 4i to Discoverer 10g. When I log into 10g, it prompts me to upgrade the EUL. After making the right back up of my 4i EUL, I continue with the upgrade. During the upgrade, I am hit with this error: Database err
-
Time Capsule Set Up With Neighbor's WiFi
I use my neighbor's WiFi (with permission and password). I can't get the set up for my time machine to work. I keep hitting this wall where it no longer can find my wireless device (the time capsule) after I "connect" the airport utility to the exist
-
Problem with iTunes for iPod Touch
While using iTunes on my iPod Touch the Music, Videos, Ping, Search and More icons along the bottom of the screen don't work. In the App Store the icons along the bottom work just fine. They also work like they are supposed to in the iBooks store. Se
-
I have a new rewquirement from the client wherein I have to link wbs elements to work orders. Please explain me from scratch what is wbs with necessary examples and the settings required?
-
User Decision with Note - Where are comments stored?
We are interested in using the "UserDecisionNote" property in our XML file for a User Decision workitem. (This allows a comments text box when a user clicks accept/reject for example) How and where are these commens stored? As an attachment? Thanks