Custom UIX Components
Is there any way to customize UIX components? For instance, alter the layout of a List of Values? The List of Values component is basically a complete web form with a search field, table, and buttons. Is it possible to change the presentation at all (besides the colors)? I would really like to re-work the layout if possible (move some things around, change wording, etc...). Thanks!!
JOHN
dear sir...
please check this:
Create a UIX control
best regards
Similar Messages
-
Hello folks,
I am looking for best practices advice when (1) creating
custom components and (2) styling and skinning.
I already know how to skin a component part of the Flex
framework. I can make a class extending ProgrammaticSkin and have
my component skinned using CSS to link the component with the
reference to my custom class.
However what about those cases when you are completely
creating a component from scratch?
Imagine a "Freehand Drawing Canvas" component that allows the
user to draw on it and has some buttons to set color styles, line
styles, etc., or imagine a "Screen Flow Gallery" component that
displays visual objects in a fashion similar to Cover Flow in the
Mac.
In many components I am aware you may reuse other components
part of the Flex framework but I am trying to picture an scenario
where you would need to draw everything yourself because there just
isn't something to base it upon so you will end up drawing it from
scratch.
To learn how instead of building one of those components I
mentioned previously I decided to start with something simple that
would illustrate this like a LiteButton component that will behave
just like the Flex mx.controls.Button but will extend UIComponent
and be completely custom drawn.
The component will have a default look and will also be
style-able and skin-able. I will provide styles for users of the
component to modify and regarding skinning anyone can create a
custom ProgrammaticSkin adding its own drawing logic and link it to
the component via CSS with the ClassReference applied to the skin
selector.
So far so good and it's clear what I want to achieve. I
actually know how to do most of the stuff here but I have one
single problem.
Here is my question, where should I put my custom drawing
logic? If I do it in the updateDisplayList inside the class
extending UIComponent it works, however I thought that it would be
a better practice to do it using programmatic skins, that way I
could provide different skin themes for my component set.
The problem is that I can't make the programmatic work in
this scenario. I tried instantiating the custom programmatic skin
during the updateDisplayList of the LiteButton component and adding
it to my display object via addChild but that didn't do anything. I
also tried creating a "default.css" stylesheet and tried to use
ClassReference as I would normally do to skin an already existing
component (or composite component as well) but that didn't do
anything either.
So how do I apply programmatic skins for completely custom
drawn components of my Flex library project?
I could do it inside the updateDisplayList of the LiteButton
class extending UIComponent but again I would like to provide
different theme sets for my components so it makes sense using
programmatic skins."jbucaran" <[email protected]> wrote in
message
news:[email protected]...
> Hello folks,
>
> I am looking for best practices advice when (1) creating
custom components
> and
> (2) styling and skinning.
>
> I already know how to skin a component part of the Flex
framework. I can
> make
> a class extending ProgrammaticSkin and have my component
skinned using CSS
> to
> link the component with the reference to my custom
class.
>
> However what about those cases when you are completely
creating a
> component
> from scratch?
>
> Imagine a "Freehand Drawing Canvas" component that
allows the user to draw
> on
> it and has some buttons to set color styles, line
styles, etc., or imagine
> a
> "Screen Flow Gallery" component that displays visual
objects in a fashion
> similar to Cover Flow in the Mac.
>
> In many components I am aware you may reuse other
components part of the
> Flex
> framework but I am trying to picture an scenario where
you would need to
> draw
> everything yourself because there just isn't something
to base it upon so
> you
> will end up drawing it from scratch.
This may help with that
http://livedocs.adobe.com/flex/3/html/help.html?content=skinstyle_3.html
> To learn how instead of building one of those components
I mentioned
> previously I decided to start with something simple that
would illustrate
> this
> like a LiteButton component that will behave just like
the Flex
> mx.controls.Button but will extend UIComponent and be
completely custom
> drawn.
>
> The component will have a default look and will also be
style-able and
> skin-able. I will provide styles for users of the
component to modify and
> regarding skinning anyone can create a custom
ProgrammaticSkin adding its
> own
> drawing logic and link it to the component via CSS with
the ClassReference
> applied to the skin selector.
>
> So far so good and it's clear what I want to achieve.
Actually after
> playing
> with the weekend and today I know how to do most of the
stuff but I have
> one
> single problem. So here is my question, where should I
provide my custom
> drawing logic? If I do it in the updateDisplayList
inside the class
> extending
> UIComponent it works, however I thought that it would be
a better practice
> to
> do it using programmatic skins, that way I could provide
different skin
> themes
> for my component set.
These aren't mutually exclusive. When you provide a skin with
a
TypeSelector, you have to add it to the display list
somewhere, and this is
typically done in updateDisplayList or addChildren. I prefer
to do it in
updateDisplayList, because you can then change it if the
style changes.
> The problem is that I can't make the programmatic work
in this scenario. I
> tried instantiating the custom programmatic skin during
the
> updateDisplayList
> of the LiteButton component and adding it to my display
object via
> addChild but
> that didn't do anything.
Exactly what did you do?
> I also tried creating a "default.css" stylesheet and
> tried to use ClassReference as I would normally do to
skin an already
> existing
> component (or composite component as well) but that
didn't do anything
> either.
I've never had any problem using an approach similar to
this...but I will
say that I couldn't see any advantage in creating a
default.css style sheet,
since it's not really default in the way that the one that
comes with Flex
is. It's much more obvious to anyone using your component
what's going on
there if you create a style sheet where they're likely to
spot it.
> So how do I apply programmatic skins with the default
look for custom
> drawn
> components?
It seems like your approach is fine, but maybe you've made a
mistake in your
implementation.
> I could do it inside the updateDisplayList of the
LiteButton class
> extending
> UIComponent but again I would like to provide different
theme sets for my
> components so it makes sense using programmatic skins.
You might want to consider also adding an instance of
HaloBorder to your
component. That brings a lot of functionality with it.
HTH;
Amy -
Customer gui components needed?
I require to build a program with which allows the user to add representations of objects onto the main GUI by adding a seperate square for each object. each square should be capable of being moved, resized, deleted as well as have text displayed in it, and another object associated with it (but I'm currently just dealing with the GUI side of things). Each square will also need to be connected to others by means of an arrow from one square to another. Any suggestions as to where to start as there does not seem to be any appropriate widgets provided by java for this and I am having trouble finding stuff on the net about it. Will creating my own custom GUI components be the best option? If so any tips on how to do this?
RegardsHello Ravi,
Create a Variable for 0CALMONTH, and use this code,
' Declare this in the top
data : v_startmon(6) type n,
v_endmon(6) type n,
' Include this in the case statement
when 'VarName'.
' Step 2 will execute after the user Input
if i_step = 2.
v_year = sy-datum(4).
v_mon = sy-datum+4(2) - 1.
' If the month is Jan
IF v_mon = '00'.
CONCATENATE v_year '01' INTO v_startmon.
CONCATENATE v_year '01' INTO v_endmon.
ELSE.
CONCATENATE v_year '01' INTO v_startmon.
CONCATENATE v_year v_mon INTO v_endmon.
EndIF.
clear l_s_range.
l_s_range-low = v_startmon.
l_s_range-high = v_endmon.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
append l_s_range to e_t_range.
Endif.
Please see this for
[User Exits in SAP BW|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/23f2f094-0501-0010-b29b-c5605dbdaa45]
[User Exit Examples|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef]
Also see this
[Dependencies for Variables of Type Customer Exit |http://help.sap.com/saphelp_nw04/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm]
Thanks
Chandran
Edited by: Chandran Ganesan on Mar 17, 2008 1:57 PM -
Customizing Business Components Error Messages sample
hi i have been following this sample and this: http://jobinesh.blogspot.de/2011/03/customizing-business-components-error.html,i have follow the instruction but its not working win my application i re-create the problem,i have check with the working sample i have done everything i can see be done in the working sample but mine still not work can somebody check what am i missing i have upload in this hostfile i used hr schema http://www.datafilehost.com/download-9d37bd8a.html. am using jdeveloper 11.1.1.6.0
i have created the two class and one of them
<Application xmlns="http://xmlns.oracle.com/adfm/application"
version="11.1.1.59.23" id="DataBindings" SeparateXMLFiles="false"
Package="view" ClientType="Generic"
ErrorHandlerClass="view.CustomErrorHandler"
what else am i missing what have i not done,i know am mssing something but don't know what,the sample does not show step by step implementation,it just have a working solution,if somebody know step by step implementation can you pls explain to meEdited by: adf009 on 2013/03/12 12:09 PM
Edited by: adf009 on 2013/03/20 2:44 PMis not working in my application,in my application am checking primary key constraint not unique constrains like in sample is there a diffirent
this is my class,i have re-create the problem http://www.datafilehost.com/download-9c3e5f17.html
import java.util.ListResourceBundle;
public class CustomMessageBundle extends ListResourceBundle {
private static final Object[][] sMessageStrings =
new String[][] { { "UAM_ORGUSERSLINK_PK",
"Hello, The user Already Belong to this organisation" }, };
/**Return String Identifiers and corresponding Messages in a two-dimensional array.
protected Object[][] getContents() {
return sMessageStrings;
i have follow steps in the sample
am geting this log error,instead of geting my error message
<XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
javax.servlet.ServletException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[assist03 3099 ].
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.jbo.TooManyObjectsException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25013. Error message parameters are {0=oracle.jbo.Key[assist03 3099 ]}
at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:604)
at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:613)
at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1020)
at oracle.jbo.server.EntityCache.replaceForAltKey(EntityCache.java:1820)
at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:4094)
at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3676)
at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3301)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2012)
at ecadastre.gov.za.uam.model.entities.UamOrganisationUserImpl.setUsername(UamOrganisationUserImpl.java:137)
at OrgDetails.onRowCreate(OrgDetails.java:2057)
at OrgDetails.addMember(OrgDetails.java:1978)
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:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 38 morehi can anybody help me please
Edited by: adf009 on 2013/03/26 4:59 PM -
Problem Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Prev
I'm having a problem on Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Preview (http://www.oracle.com/technology/products/jdev/101/collateral/101/adffaces/howto_customcomponents.html)
The step 1 of 5 isn't visible for me and I don't see the "Install from local file" option to select the adf-faces-bundle.zip from my file system. The OTN check for updates don't prove the ADF Faces...
What may I do?And...
If "Check for Updates Wizard" is not launched, you can try to set LANG.
see: 10.1.3 Can't not launch Update Wizard in Japanese environment.
10.1.3 Can't not launch Update Wizard in Japanese environment.
Thanks.
Takuya Ono -
Dynamically add custom MXML components in Actionscript
As there's no constructor for custom MXML components, how to
dynamically add it as a child using ActionScript?
I'm looking for some alternative to avoid the need to rewrite
the entire existent component in ActionScript just to add it this
feature (a constructor). PopManager is not an alternative...
Is there any way?
The case/situation:
I have a custom MXML component that needs to be dinamically
added to a NativeWindow created using ActionScript.
Thanks a lot!
Vicente Junior
Independent Web Developer
http://teclandoalto.blogspot.commxml classes get generated into AS classes with a default
constructor.
In fact, there is essentially no difference between an AS
component and an mxml component, they can be used exactly the same
way.
Tracy -
Jdev 9iRC: deployment of BC4J-UIX components to OC4J !2.0! does not work
in different threads the problem of deployment of BC4J UIX components to OC4J 1.2.2.x is addressed (see http://forums.oracle.com/forums/message.jsp?id=679060 for example). contrary to the sayings of different members of the jdev-team i face the same problem with OC4J 2.0 (java lang nullpointer exception).
i'm using jdev9iRC and 9iASWE v2 beta which comes with OC4J 2.0.
i followed the recommendations of the thread mentioned above, no result. i followed the recommendations of steve muench in thread HELP! Loading Java Classes into Oracle ERROR result is the same error but now already when calling the main.uix. next try was also on recommendation of steve muench somewhere else: i installed the complete jdev 9iRC on my application server and tried to deploy to this "embedded" OC4J. result: uncomplete deployment because of denied access to the files server.xml and http-website-xml:
Beginning to deploy to Oracle9i Application Server...
Wrote WAR file to C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.war
Wrote web EAR file to C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.ear
Invoking Oracle9iAS admin tool...
C:\Programme\oracle\jdeveloper\jdk1.3\jre\bin\javaw.exe -jar C:\Programme\oracle\jdeveloper\j2ee\home\admin.jar ormi://bajor.skypages.net admin **** -deploy -file C:\Programme\oracle\jdeveloper\jdev\mywork\WF_Wettfamily\src\F1StammdatenUIX.ear -deploymentName F1Administration-F1StammdatenUIX-app
Auto-unpacking E:\ORACLE\jdev9iRC\j2ee\home\applications\_F1StammdatenUIX.ear... done.
Auto-unpacking E:\ORACLE\jdev9iRC\j2ee\home\applications\_F1StammdatenUIX\F1StammdatenUIX.war... done.
java.io.FileNotFoundException: E:\ORACLE\jdev9iRC\j2ee\home\config\server.xml (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.evermind.xml.XMLConfig.storeToURL(XMLConfig.java:433)
at com.evermind.xml.XMLConfig.store(XMLConfig.java:420)
at com.evermind.server.ServerComponent.store(ServerComponent.java:756)
at com.evermind.server.ServerComponent.store(ServerComponent.java:728)
at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:466)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:79)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
Exit status of Oracle9iAS admin tool (-deploy): 0
C:\Programme\oracle\jdeveloper\jdk1.3\jre\bin\javaw.exe -jar C:\Programme\oracle\jdeveloper\j2ee\home\admin.jar ormi://bajor.skypages.net admin **** -bindWebApp F1Administration-F1StammdatenUIX-app F1StammdatenUIX http-web-site /F1Administration-F1StammdatenUIX-context-root
Communication error: E:\ORACLE\jdev9iRC\j2ee\home\config\http-web-site.xml (Access is denied)
Exit status of Oracle9iAS admin tool (-bindWebApp): 1
---- Deployment finished. ---- 12.02.2002 12:53:02
what am i supposed to do? is there a solution?
please help
TIA, treviYes, I can create a new as3 file, but I can't "fill it with
sensible content". Neither my As3-codes are recognized nor simple
components are displayed to me in a proper way when testing the
movieclip.
Now, I have just reinstalled my CS4 on another computer and
there it works with AS3. Really strange. Does CS4 need to
communicate with some internet services while executing a simple
fla-file or something like that? -
Custom-made components & midp4palm
Hi all,
I've developed two simple custom-made components by subclassing canvas. One is a simple button, which you can push with the palm pointer.
The other is a sort of textfield. The problem arises when I try to input text into this component... the Palm does not have a keyboard! And the little keyboard which pops when you press the dot under the "abc" image does not pop!
Is there some way to make that keyboard appear?
Any help would be greatly apreciated.
Thanks,
Estanis.the current api does not allow text to be placed into the canvas class. i would recommend u to use a textbox class. so if the user clicks on the canvas screen, it will call up the textbox class and allows the user to key in some data.then upon returning back to the canvas class, u can just update the display using repaint method.
hope this helps.
regards,
joseph -
hi ...
i have just about started using jato in conjunction with S1Studio
and find it a real great asset ...
we are trying to build custom jato components which can be packaged
into a jar file and used like any other standard jato component ...
e.g. i have developed this date component which is basically a
composition of 3 comboboxes - one each for m/d/y ...
to render these 3 comboboxes i have a "date" tag (DateTag.java)
which basically includes a file Date.jsp in the parent jsp - the
contents of Date.jsp:
<jato:pagelet>
<jato:combobox name="month"/>
<jato:combobox name="day"/>
<jato:combobox name="year"/>
</jato:pagelet>
The problem with this approach is that I can't package a JSP in a
jar since the web server would not be able to determine the path to
the jsp ...
Can any of u direct me here? ... Also, if u have an example of a
similar packaged custom jato component - that'd be of great help!
thanks much,
keyurThanks Craig ... but Somehow this didnt work - maybe I didnt follow
the steps correctly ... here is what i did:
the jar file -> date.jar
date.jar has .class files arranged according to their package
names ..
there's also the "COMP-INF" directory ...
in addition to these - i added another folder called "webapp" ...
and within "webapp" i housed the JSPs ...
i then copied date.jar to <context root>/WEB-INF/lib folder and
started the server ...
however, the web server didn't extract out the JSPs ... did i go
wrong somewhere? .... am i to do something other than this - like
create the jar with some special parameter or change some
configuration in the server?
thanks!
keyur
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
Keyur,
You are in luck. There is a way to bundle the JSPs (or any web resources
like images and other jar's) in the component jar file so that the tool
will expand them properly into your web application's doc root.
It's not officially documented yet, as is the case with creating
components in general, but here's what you do:
You have the ability to extract arbitrary files from a component library jar file into the web app's file system. This allows
libraries to automatically unpack files like additional jars,
images, pagelets, etc. All that's needed to take advantage of this
new feature is to create a hierarchy of files in the complib under
a "webapp" directory (off the root). The files under that directory
will then be automatically extracted into the web context's
filesystem.
>
For example:
/webapp/test/foo.html
will extract to
<context root>/test/foo.html
and the following
/webapp/WEB-INF/lib/foo.jar
will extract to
<context root>/WEB-INF/lib/foo.jar
Anything not under the "webapp" dir in the component jar file will stay packaged in the jar file.
>
Does that make sense?
craig
Keyur Shah wrote:
hi ...
i have just about started using jato in conjunction with S1Studio
and find it a real great asset ...
we are trying to build custom jato components which can be
packaged
into a jar file and used like any other standard jato component ...
>>
e.g. i have developed this date component which is basically a
composition of 3 comboboxes - one each for m/d/y ...
to render these 3 comboboxes i have a "date" tag (DateTag.java)
which basically includes a file Date.jsp in the parent jsp - the
contents of Date.jsp:
<jato:pagelet>
<jato:combobox name="month"/>
<jato:combobox name="day"/>
<jato:combobox name="year"/>
</jato:pagelet>
The problem with this approach is that I can't package a JSP in a
jar since the web server would not be able to determine the path to
the jsp ...
Can any of u direct me here? ... Also, if u have an example of a
similar packaged custom jato component - that'd be of great help!
thanks much,
keyur
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Service -
Gate pass & Customer trial components clarification
Hi MM Gurus,
1)Pls tell me about the Scenario with procedure of
Customer Trial Component under
i) with Modvat ii) Without Modvat iii) scrapping of Customer trial components with Modvat reversal
2) Can any of u pls let me know what is the difference b/w the T-codes
1) LECI & 2) LECIW
3) Can anyone tellme the procedure for creating
Gate pass and visitor Pass
thanks,
Girish.C.M.
Edited by: Girish C M on Feb 29, 2008 4:37 AM -
I am new to Catalyst and looking for a way to create components in Catalyst to be compatible with an existing application created in SDK 3.5.
I am working on a project for a client to reskin an existing flex application done in SDK 3.5, but they are not ready to migrate yet to SDK 4.0.
I really want ot use Catalyst to create some custom components for the new style of this existing application, but the problem is the that the spark component architecture and the old version 3.5 are not compatible. Is there a way around this until they are ready to migrate to 4.0 or will I have to create my components in flash and bring them into flashbuilder with a swc this way instead? What would be the best approach for me at this point, please help?No. Flash Catalyst leverages the new component framework that was introduced in 4.0 (aka Spark). Flex 3.5 and earlier used a framework (referred to as MX or Halo). That framework is incompatible with Flash Catalyst.
Chris -
ParserExtension and Custom Renderer components
Hi,
I am trying to create a custom component of my own which will control access to UINodes based on the contents of the User's HTTPSession object. In the HTTPSession I have a list of Roles that are assigned to the user and based on these roles I would like to turn on/off certain UI nodes. Initially I tried to create a component that was defined like this:
<sso:ssoassetchecker asset="987654321">
<contents>
<messageBox automatic="true"/>
</contents>
</sso:ssoassetchecker>However I was having trouble (probably due to me needing to have the contents tag in there but no having child node support in my custom UINode).
So I decided to look at the ParserExtension mechanism to get a component that looked like this:
<link text="User List (Super)" destination="UserList-SuperAdmin.uix" sso:assetcheck="sso_super_admin_role"/>This almost worked but I think that the ParserExtension will not operate dynamically for each user. I have some code in the ParserExtension that looks like this:
public Object elementEnded(ParseContext context, String namespaceURI, String localName, Object parsed, Dictionary attributes)
logger.debug("::elementEnded - About to parse new attribute type");
if (parsed instanceof MutableUINode)
MutableUINode node = (MutableUINode)parsed;
Object assetId = attributes.get("assetcheck");
if (assetId != null)
List roleIdsToCheck = new LinkedList();
StringTokenizer strTok = new StringTokenizer((String)assetId, ":");
logger.debug("::elementEnded - Checking whether user has any of the roles : " + assetId + " for node " + node.getNodeID());
while (strTok.hasMoreTokens())
roleIdsToCheck.add(strTok.nextToken());
BajaContext bajaContext = BajaParseContext.getBajaContext(context);
HttpServletRequest request = bajaContext.getServletRequest();
UserInfo userInfo = SSOManager.getUserInfo(request);
boolean roleFound = false;
if (null != userInfo)
String username = userInfo.getUsername();
long userId = userInfo.getUserId();
logger.debug("::elementEnded - Getting ROLES for username : " + userInfo);
Iterator rolesToCheckIterator = roleIdsToCheck.iterator();
while ( (rolesToCheckIterator.hasNext()) && (!roleFound) )
String curRoleToCheck = (String)rolesToCheckIterator.next();
logger.debug("::elementEnded - Checking whether user has current role : " + curRoleToCheck);
if (userInfo.checkPermissionForRole(curRoleToCheck))
roleFound = true;
logger.debug("::elementEnded - MATCH User does have current role : " + curRoleToCheck);
if (!roleFound)
logger.debug("::elementEnded - No match found for specified roles - HIDING node");
node.setAttributeValue(UIConstants.RENDERED_ATTR, "false");
parsed = null;
else
logWarning(context, "Controller extensions not supported on " + parsed + " objects");
return parsed;
}I know it is a bit hacky at the moment just turning off the rendered attribute and returning null but I just want to get it going.
So, after all that the question is this : will this ParserExtension get called each time the page is rendered and correctly get the data from the user's httpsession OR will the session only be looked up the first time the page is rendered?
Many thanks,
pj.The page should only be parsed once (and when the file is modified). It seems like if you're only trying to turn on and off certain ui nodes you should be able to write a template...
-
Adding custom GUI components to a panel
<sorry about the 'Hello All' subject in the previous post>
I am creating a Backgammon game for my JAVA programming class. I would like to design a board and have certain checker pieces that can be dragged around on the board. In the course I am taking, I still have not been able to understand how a GUI interface has GUI components that is "custom built" like my checker class. My checker class below draws a picture of a checker on a JPanel. I want it to exist inside a JPanel(that has a board painted in it) with 30 checkers that can be moved around. Any feedback would be appreciated including helpful packages, classes, trails, etc.
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.util.Random;
import javax.swing.JPanel;
import java.awt.BasicStroke;
// Checker.java - This will draw the checkers used in the game
public class Checker extends JPanel
private Color checker_color; // color of checker
private int abs_pos;
private int player; // player 1 or player 2
Checker(Color check_color, int pos, int plyr)
checker_color = check_color;
abs_pos = pos;
player = plyr;
public void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2d = (Graphics2D) g; // cast g to Graphics2D
this.setBackground(Color.WHITE);
// make a circle
g2d.setColor(checker_color);
g2d.setStroke(new BasicStroke(1.0f));
g2d.fillOval(47,47, 35, 35);
g2d.setColor(Color.BLACK);
g2d.setStroke(new BasicStroke(2.0f));
g2d.drawOval(47, 47, 35, 35);
public int getPlayer(){
return player;
public Color getCheckerColor(){
return checker_color;
public int getPosition(){
return abs_pos;
public void setPosition(int pos){
abs_pos = pos;
}Um... pretty much the way you are doing it in the code you already posted. What is the problem? Not that there's not problems....
1) setBackground called in paintComponent doesn't do much. Just set the background outside paint and super.paintComponent() will fill the BG color if the component isn't opaque.
2) a checker, I would expect, would be opaque, actually.
3) the oval size you draw would probably be better off being based on the size of the component (getSize()) instead, that way it scales easily.
But other then that, you are doing it right. You probably need to set the size and location of each checker object explicitly, since most likely it's being used in a container with a null layout. -
Extension which will provide Custom Soa components from component palette.
I was asked to created an extension which will aid in helping the development faster and enable following standards strictly.
So I have to create an extension which will add the following functionality.
I have to add custom components in component palette which can be dragged dropped in composite editor similar to that of JMS Adapter extra.
So Can you please look into the requirement and give me some pointers.
Update: I was able to add a custom component to the component palette with the help cppageprovider example. But the component does nothing.
I want to know how the drag and dropping is done.
How to extend BPEL designer to add my own activities palette icon/item? I am stuck at exactly the same point as his.
I know it is difficult to get an answer during christmas! But I have deadline. :(
Edited by: Ramasamy gopalan on Dec 26, 2011 11:22 PM
Edited by: Ramasamy gopalan on Dec 27, 2011 2:08 AMHi,
while it is JDeveloper owning the extension framework, unfortunately we do not own the composite editor. I'll try and forward your question Oracle internally, but I have no direct access to the developer of the SOA editor extension. I deally you also continue posting to the SOA forum
SOA Suite
Frank -
Customizing Webcenter components
Hi,
We are building an application to manipulate content server objects and are thinking of two option: one is to use RIDC and build our own presentation tier. another is to use existing components such as Document Manager and customize them to suite our needs.
So far we have not been able to find enough documentation on how to customize these out of the box components. To give an example, When a document is uploaded, we requiire to populate metadata such as author name, security group the document belongs to and so on. Another example is when a document is created we want to attach a workflow to that document.
Are there any recommendations? If customizing existing taskflows is a better option, can you provide us links to the resources?
We have tried Oracle documentation and some of the blogs, and everytime we run in some exception or the other. I will refrain from posting those exceptions here as our developers have raised those questions in other threads.
Thanks and RegardsThis post contains many disputable points:
Hi,
We are building an application to manipulate content server objects and are thinking of two option: one is to use RIDC and build our own presentation tier. another is to use existing components such as Document Manager and customize them to suite our needs.What is this application about, what is its purpose? Having mentioned Document Manager of WebCenter Portal, you might want to create a WebCenter Framework-based app. I'm not sure if you can customize WebCenter task flows in such a way - nevertheless, this is definitely a question to WebCenter Portal forum.
>
So far we have not been able to find enough documentation on how to customize these out of the box components. To give an example, When a document is uploaded, we requiire to populate metadata such as author name, security group the document belongs to and so on. Another example is when a document is created we want to attach a workflow to that document. I don't think you will be able to check-in an item without providing mandatory metadata (such as security group), and even changing them later is not exactly what you should do (even though it is possible). As for workflows, UCM can handle that for you without customizing the front-end. Maybe, you should get someone who has UCM experience and who would help you to construct the overall architecture.
>
Are there any recommendations? If customizing existing taskflows is a better option, can you provide us links to the resources?
We have tried Oracle documentation and some of the blogs, and everytime we run in some exception or the other. I will refrain from posting those exceptions here as our developers have raised those questions in other threads.
Thanks and Regards
Maybe you are looking for
-
IPhone is lost while syncing with iTunes
Hi there, for the longest time my iPhone hasnt been very friendly when syncing with iTunes. It often disconnects, the iPhone plays that "I'm connected" sound out of nothing, then a few seconds later iTunes hangs and displays various error messages li
-
Hello all, Does anyone know if it is possible to make a disc (burned on a standard red-laser DVD+/-R or DVD+R DL) containing HD content that is readable in a HD-DVD player? Or how about the same but readable in a PS3? (That machine apparently reads H
-
SERIOUS PROBLEM, CAN'T HANDLE IT
Hi, I have following problem. I have made ir forms button "MAIL", when button is pressed then generate report as PDF attachment in MS Outlook. Problem is following: If i have defined server(repserver) then when i click button "MAIL" then there is no
-
Windows opening problem.
i bought a nootbook, from italy by the name of compaq. VISION AMD, WINDOWS 7, HP PREMIER EXPERIENCE, DUAL CORE AND AMD RADEONtm GRAPHICS. BUT problem is when i m trying to on my laptop. is showing is opening but few seccend later is coming blank. no
-
Resource Task view for managers
Hi, Is there any way to provide a 'My Tasks' view for managers to view and update their resource's tasks? Your help is appreciated