Home > Default > How do I reuse a custom java control in another project?

How do I reuse a custom java control in another project?

October 11Hits:1
Advertisement
Relatively simple question, but I am having a lot of trouble with this. Documentation
alludes to this being possible and easy, but never says how (and the only tutorials
I can find describe creating a custom java control in the same project where they
are used):
"You can design a custom control for use in one project, or you can design a custom
control for easy reuse in multiple projects." (from WLS docs on Java Controls)
"When the control project builds, all of the controls and associated files are
compiled into a single jar file and pushed onto the classpath of the containing
application for immediate use and testing by other projects in the application.
This jar is self-contained and can be moved to any other application by adding
it to the application’s Library folder. Appropriately marked controls in the Library
it will automatically appear on the user’s palette, ready for incorporation into
an application." (from dev2dev article on controls, P. Hussey)
I have a Workshop application which contains a few projects. One project is a
component project, another is a web project. I created a custom java control in
the control project and built it (JAR appeared in the Libraries folder). Now I
open up the page flow in my web app project, and try to drag the java control
onto my page flow - but I get an eror that the control must reside in the same
project! It does not automatically appear on my palate, so if I go over to the
palate on the right, and try to "add control" I only get a list containing the
BEA controls - no custom controls are listed.
What am I doing wrong? How can I incorporate my custom control into a web project?
I don't want to move the control in the web project, since this contradicts the
concept of a separate shared library. I should be able to build a library of controls
and reuse them in our web projects right?
-Bob

Answers

Please disregard... I got it to work. For some reason I had to close Workshop,
restart it, then I reloaded the application, rebuilt the control project, and
now my control appears in the list of controls and can be easliy added to the
palette.
"Bob" <[email protected]> wrote:
>
Relatively simple question, but I am having a lot of trouble with this.
Documentation
alludes to this being possible and easy, but never says how (and the
only tutorials
I can find describe creating a custom java control in the same project
where they
are used):
"You can design a custom control for use in one project, or you can design
a custom
control for easy reuse in multiple projects." (from WLS docs on Java
Controls)
"When the control project builds, all of the controls and associated
files are
compiled into a single jar file and pushed onto the classpath of the
containing
application for immediate use and testing by other projects in the application.
This jar is self-contained and can be moved to any other application
by adding
it to the application’s Library folder. Appropriately marked controls
in the Library
it will automatically appear on the user’s palette, ready for incorporation
into
an application." (from dev2dev article on controls, P. Hussey)
I have a Workshop application which contains a few projects. One project
is a
component project, another is a web project. I created a custom java
control in
the control project and built it (JAR appeared in the Libraries folder).
Now I
open up the page flow in my web app project, and try to drag the java
control
onto my page flow - but I get an eror that the control must reside in
the same
project! It does not automatically appear on my palate, so if I go over
to the
palate on the right, and try to "add control" I only get a list containing
the
BEA controls - no custom controls are listed.
What am I doing wrong? How can I incorporate my custom control into a
web project?
I don't want to move the control in the web project, since this contradicts
the
concept of a separate shared library. I should be able to build a library
of controls
and reuse them in our web projects right?
-Bob

Read other 2 answers

Tags:

Related Articles

  • How do I reuse a custom java control in another project?October 11

    Relatively simple question, but I am having a lot of trouble with this. Documentation alludes to this being possible and easy, but never says how (and the only tutorials I can find describe creating a custom java control in the same project where the

  • Custom Java Control vs EJBNovember 30

    Hello experts, IHAC , who has implemented few Portals on Weblogic 8.1sp . The customer is now keen on moving to 10.3.2 version. As a part of upgrade they also want to do a code refactoring as they are seeing many performance issues due to heavy user-

  • Java Controls as singletonsNovember 30

    Hi everybody. Can i use Java Control Factories to treat Java Controls as singletons ? Is there any issue about multiple threads acessing the same instance of (Built-in or Custom) Java Controls ? When i use the following structure: Page Flow -> Custom

  • Java Controls, JSPs, Servlets and FiltersNovember 30

    Hi, everybody. How can i invoke a custom java control from a JSP ? How can i invoke a custom java control from a Servlet or Filter ? I've tried using WlwProxy.create(controlInterfaceClass, request) but i don't know if this is the "official and recomm

  • Transaction in java control??November 30

    hi, all. I've wrote a custom java control which include several database operations, and I want these operations be wrapped in transactions. I get information from the document that implicit transaction is provided by workshop. but unfortunately, I f

  • Creation of Data Control for custom java method  which will return recordsOctober 11

    Hi Guys, I have a requirement of creating a a custom java method in App module which will return a record set taking an id as input.In case of single return type it works fine but in case of returning record set it is not working.In my case i have to

  • How to access custom JAVA webdynpro application from an iPad?October 11

    Hi, We are trying to access custom JAVA webdynpro application from an iPad, but nothing is opening up from the iPad browser. What can be the possible reasons for this? Any kind of SICF enablement or opening up of ports in the network? Any inputs are

  • How to implement a custom UI controlOctober 11

    I need to display interactive maps on the Windows SAP GUI. The maps are dynamically generated and fetched from an external map server using ABAP. The interactive map should be scrollable and allow the user to select a single or multiple POIs (Point O

  • Could you please send me the links to get an idea on Custom table controlsNovember 30

    Hi Friends,            I am working on custom table controls, Could you please send me any links on Custom table controls or documentation.    Thanks and Regards,    Sandeep Kumar BonamHello Sandeep, See here for the latest table features in 2004s. <

  • Custom data control createRowData(DCRowContext ctx)November 30

    Custom data control createRowData(DCRowContext ctx) public Object createRowData(DCRowContext ctx) { System.out.println("createRowData()"); DCRowSetIteratorImpl rsi = (DCRowSetIteratorImpl)ctx.getRowSetIterator(); ARow row = new ARow(new PersonTO

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.549 s.