Component Declarative use problem
Hi...
I've made a declarative component with this characteristics:
1.- An inputText for entrys of format number
2.- With javaScript Code for formatting numbers
3.- I've use client listeners for actions under inputext
4.- I've define a general converter in faces-config and put that format in my inputtext
5.- I've deploy my proyect and import in another proyect
6.- I've drag a form and replace an input text with my component ...
I'ts works but when I want to do commit the commit button it keeps disabled all time.
What it's my error?
Thanks In advance
Edmar
Hi,
using ADF BC, the commit button is enabled as soon as the data has changed. If the commit button is the same button you want to use for submit, then you need to clear the disabled property field of the button
Frank
Similar Messages
-
Persisting Declarative Component attributes using MDS
Hi,
I have created a Declarative Component with some custom attributes.
Is there a way to persist the component attributes using MDS or by some other means.
Thanks
PrahladHi Krithika,
Thank you for your answer. I decComp is null only if I try this code in the binding method. If I define a popupFetchListener and bind to a method in a managed bean, decComp is not nut. I don't know how to get attribute values and create my UIComponent programatically.
Does anyone know how to achive that?
Regards
Joseba -
Problem in Component Allocation using RCPTRA01 for Reference Operation Set
Hello,
I am trying to do Reference Operation Set upload with component allocation using RCPTRA01 program in lsmw.
Even though i assign values to BIMPZ structure fields the component allocation is not happening.
Could u please give some inputs ?
Thanks!
Regards,
DeepaliHi,
Check this link, if it can help you.
http://help.sap.com/saphelp_45b/helpdata/en/35/a47e3b763e0392e10000009b38f9b7/content.htm
Reddy -
Revision: 12025
Revision: 12025
Author: [email protected]
Date: 2009-11-19 17:48:04 -0800 (Thu, 19 Nov 2009)
Log Message:
Switching out the old video component for the new video component that uses OSMF. Also fixing RSL issue with OSMF because a change in flex-config.xml accidentally got overwritten. Also fixing a bug caught during the last code review where you would set the volume on the VideoPlayer, but the volumeBar wouldn't be made aware of that change.
Switching out the video component results in many API changes. The changes are highlighted below:
Class name changes:
- spark.primitives.VideoElement is being renamed to spark.components.VideoDisplay
- spark.components.mediaClasses.StreamingVideoSource is renamed to park.components.mediaClasses.DynamicStreamingVideoSource
- spark.components.mediaClasses.StreamItem is renamed to park.components.mediaClasses.DynamicStreamingVideoItem
VideoDisplay/VideoPlayer event changes:
The new video component's events are:
- bytesLoadedChange : org.osmf.events.LoadEvent
- currentTimeChange : org.osmf.events.TimeEvent
- durationChange : org.osmf.events.TimeEvent
- mediaPlayerStateChange : org.osmf.events.MediaPlayerStateChangeEvent
The old video component's events were:
- close : spark.events.VideoEvent (removed)
- complete : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
- metaDataReceived : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
- playheadUpdate : spark.events.VideoEvent (replaced with currentTimeChange)
- progress : flash.events.ProgressEvent (replaced with bytesLoadedChange)
- ready : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
VideoDisplay/VideoPlayer property changes:
Renames:
- maintainAspectRatio:Boolean has been renamed to scaleMode:String and rather than true/false, it now access 4 values: none, zoom, letterbox, and stretch. See the enum class org.osmf.display.ScaleMode.
- playheadTime:Number has been renamed to currentTime:Number
- playWhenHidden has been renamed to pauseWhenHidden, and it's "tense" has been reversed. So playWhenHidden = true correlates to pauseWhenHidden = false. Also, before we would only pause when the video component was explcitly set to visible=false, but now we detect if the video components or any of it's ancestors have been hidden.
- totalTime:Number has been renamed to duration:Number
New properties:
- bytesLoaded:Number This is a new property not available on the old video component
- bytesTotal:Number This is a new property not available on the old video component
- loop: Boolean this was a property added a while ago on the old video component but not in the original video player spec
- mediaPlayerState: this is a new property that details the state of the video component. See org.osmf.media.MediaPlayerState for all the possible values.
- seekToFirstFrame:Boolean (pending PARB approval) - This is a new property available on VideoDisplay/VideoPlayer. When autoPlay = false, if seekToFirstFrame is set to true, then we will connect to the server to start downloading the video, figure out the size of the video and resize appropriately, and show the first frame of the video. If seekToFirstFrame is false, then no connection to the server is made, there's no implicit size for this video, and the first frame will not be show automatically. By default the value of this property is true. In the old video component, when autoPlay = false, we always has the same behavior as seekToFirstFrame = true. Now it is controllable through this property. Eventually, (not for Flex 4.0), we will most-likely have support for a thumbnail source or a splash screen so the video's preview will show up without making an unneeded connection to the server. The property name may change depending on PARB.
Other changes:
- autoRewind: The default of autoRewind is now true instead of false
- enabled: before we paused the video when the video component was explicitly set to enabled = false. Now we pause the video when the video component or any of it's ancestors have been disabled.
VideoPlayer-only changes:
- videoObject:flash.media.Video property is now a new property on VideoPlayer. It was previously only on VideoDisplay.
- The skin states for the old VideoPlayer were: connectionError, disabled, disconnected, loading, playing, stopped, connectionErrorAndFullScreen, disabledAndFullScreen, disconnectedAndFullScreen, loadingAndFullScreen, playingAndFullScreen, stoppedAndFullScreen. The new skin states are: uninitialized, loading, ready, playing, paused, buffering, playbackError, disabled, uninitializedAndFullScreen, loadingAndFullScreen, readyAndFullScreen, playingAndFullScreen, pausedAndFullScreen, bufferingAndFullScreen, playbackErrorAndFullScreen, disabledAndFullScreen
DynamicStreamingVideoItem property changes:
- bitRate:Number renamed to bitrate:Number
DynamicStreamingVideoSource property changes:
- initialIndex has been added to DynamicSteramingVideoSource
- live:Boolean has changed to streamType:String which accepts values: live, recorded, any. See the enum class org.osmf.net.StreamType for more info.
- serverURI:String renamed to host:Object
- streamItems:Array has changed types to streamItems:Vector.
ScrubBar property changes (THESE CHANGES ARE NOT DONE YET, BUT SHOULD BE DONE SOON)
- bufferedStart will be removed
- bufferedEnd will be renamed to loadedRangeEnd. This property name still may change depending on PARB.
- bufferedArea skin part needs to be renamed. Probably will be renamed to loadedArea. PARB still deciding.
QE notes: -
Doc notes: -
Bugs: -
Reviewer: Kevin
Tests run: checkintests
Is noteworthy for integration: Yes
Modified Paths:
flex/sdk/trunk/frameworks/flex-config.xml
flex/sdk/trunk/frameworks/projects/spark/defaults.css
flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as
flex/sdk/trunk/frameworks/projects/wireframe/build.xml
flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mx ml
flex/sdk/trunk/frameworks/spark-manifest.xml
Added Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
Removed Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer2.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamItem.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamingVideo Source.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.png
flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin2.mxmlI've got that same problem: iPod Touch 2nd Gen, Apple Component Cables, and an HD TV.
The funny thing is, the cable works fine with an iPod Classic (160 GB) but not for the iPod Touch. Can anyone explain why that is? -
Defining a component width using CSS
Hi,
I am using CSS to completely define the layout of my applications. I was able to remove all layout coding from the MXML/AS files (which is great!!), except one minor thing - which, unfortunately, is very important -: component size (width and height).
I can define positioning and "some" sizing using constraint layout (left="10", right="10"). But there are some cases where I need to explicitely say: "I want this component 10 pixels far from the right border, and I want it to have 100 pixels of width, no matter what happens with it's container size". In those cases I am forced to put "skinning" code in the middle of my MXML, which sucks.
Isn't there an easy way to set component dimensions using CSS? I find this a major problem with skinning applications using CSS. Or is there another proposed solution?
Thanks,
João SaleiroI normally post my ER's & bugs in Jira. I just wanted to make sure that there weren't other solutions before filling an ER.
Thank you.
For other people looking for this subject, my ER can be found here: https://bugs.adobe.com/jira/browse/SDK-21805 -
How to create Auto suggestion component by using of ADF tag
Hi ,
In my project, I am using the ADF frame work and I need to use the auto suggestion component.
Can any body suggest me how to create Auto suggestion component by using of ADF tag.
Waiting for your valuable suggestions...Try this forum:
JDeveloper and ADF
You might get a lot more response.
Jan Kettenis -
How to add interface to customlize MXML Component when use Flex Builder 3?
How to add interface to customlize MXML Component when use
Flex Builder 3?David,
I don't believe you can add the interface via the creation
dialog in FlexBuilder 3. You can always manually add the
"implements" property to your MXML Component root tag. Something
like this: <mx:VBox implements="com.mycorp.IMyInterface">
If you want autogeneration of the interface, then create an
ActionScript class with that interface and then copy the generated
functions and setter/getters into the script block of your MXML
component. -
Tables for component batches used in production order
what are the tables where i can the look up the
Component Batches used on a Production Order?
I am developing a report, where i need to input the batch number, and it should give the production orders in which it is used.one option is MSEG table. PrdOrd ID can be input into MSEG-AUFNR field and this way you get all the goods movements in connection with the order. If your confirmation and backflushing take place at the same time you can use the material document number and check the batches of the components.
Other option may be to use COOIS for components in connection with a PrdOrd / PrdOrds.
(I mean you check in connection with which PrdOrd that certain batch of FG was confirmed and you check the goods movement for thath PrdOrd using COOIS) -
WDA Component Usage - used component's point of view
Hi folks!
Component Usage is a real nice feature of WDA. The using component knows exactly, when which other components are used.
But what about the used component's point of view:
How can a used component find out if it is currently running natively or as a used component and who is the using component?
Alternatively: How can the using component hand over initialization information (parameter) to the used component the used component has access to in component controller method DOINIT?
Background: In my scenario the used component has to "turn right" when it is used by component A and it has to "turn left" when it is used by component B and it has to go straight forward when it is running in "native" mode..
Thanx in advance for any hint!
Kind Regards,
VolkerhI Volker
You can implement the component usage by implementing interface method or interface node.
1. Interface method :-
Here the using component can access methods of used component.
So in your used component you have three method for 1. TURN RIGHT 2. TURN LEFT 3. STRAIGHT
so from comp A you call TURN RIGHT
From component B you can call TURN LEFT.
Make Straight default which can run in "native" mode..
That is if you want to implement from using component's view.
2.You can take a node in your used component as interface node which must be populated by values from other component.
From your using component you can pass the required value .
Now in your used componentcontroller DOINIT method call that interface node and in the make some condition according to the value it get from using component.
But I don't think in this it can run in "native" mode.
However i dont have that much idea about whether the in used component we can keep any log like where it has been used and how.
Thanks & Regards,
Monishankar C -
I want to create a text area on the screen that has the following attributes.
Non editable.
Font and Style formatable
Multi Colour line text.
Amendable and updateable.
Any ideas on the best component to use?
Thank in advance,
HaroldA JEditorPane with HTML content set to be not edtiable.
-
No declarative use of dvt: map component
Is possible to use in not declarative way a dvt map component like Oracle Maps Ajax Javascript API?
Thanks
Juan Carlos LLaness possible to obtain any example about how to use programatically a dvt.map component to send ( for example) a Zoom-In command to mapviewer server?
-
Problem in Variable declaration using c:set
Hi All,
I've declared a variable as follows:
<c:set var="desc" scope="page"
value="<b>${map.SITETYPE}: </b><a href='http://147.147.2.91:7001/pfk-deploy/sitehomepage.do?site=${map.SITEID}' ${map.PLANTID}</a><br><b>Address:</b><small>${map.ADDRESS}</small><br><b>East, North:</b>${map.EAST},${map.NORTH} <br><b>Long, Lat:</b>${map.XLONG},${map.YLAT}<br>"/>
in which i want to add tags such as <b><br> etc as can be seen above , but these tags are not evaluated at run time .
Secondly i want to concatenate desc with another string as follows:
<%desc = desc + " Find all <a href='map.do?siteID=<c:out value='${map.PLANTID}'/>=${qTemp}&east=&north=&radius=&postcode='>DPs</a>?<br>" ; %>
I dont know whether this is the correct way to concatenate.
But nothing is working , Iam very new to EL/JSP stuff , but i've to make this code running . Please help, its urgent.
Thanks,What is map.SITETYPE, map.SITEID etc? Is map a java.util.Map object that has been set in scope and SITETYPE, SITEID etc keys in that map?
What do you get when you output these variables?
<c:out value = "${map.SITEID}"/>On to your second question, why do you require a scriptlet variable. Cant you use the jstl c:set itself ? (same like the earlier one?)
Anyways here's how you would do that
<%
StringBuffer descBuffer = new StringBuffer("desc");
descBuffer.append(" Find all <a href='map.do?siteID=");
descBuffer.append((String)pageContext.findAttribute("map.PLANTID"));
descBuffer.append((String)pageContext.findAttribute("qTemp"));
descBuffer.append"(&east=&north=&radius=&postcode='>DPs</a>?<br>" );
desc = descBuffer.toString();
%>And that's assuming you have map.PLANTID in scope (depends on your answer to the first question).
Finally, please use [ code ] tags (without the spaces) while posting code. Look at [url http://forum.java.sun.com/help.jspa?sec=formatting]this for formatting tips.
ram. -
Create a button in one component and use it in other component
Hello, I have a problem(is not the first time but I don't have very clear that problem and I'm asking again). I'm creating a button in one component doing that
Comp1:
public var btn=Button;
override public function main(args:IParams):void{
var btn = new Button
btn.label = ....
And now I want to use this button in another component:
Comp2:
private var dia:Object; //It's my own object, it's a Dialog but with my properties,a dn the dialog need (button,string,boolean)
private function onClick(event:Event):void{
dia = new Object(HERE I HAVE TO PASS THE BUTTON , "Tittle", false);
I want know how can use the button that I have declared in the first component in my object. It's much more complicate but I have tried simplify my code.
I hope that somebody can help me.
Thanks!I'm sorry, probably I'm explainign wrong, I don't know if it's for my english or because I don't know how to say, but this is not the problem. I will put the code because I think that ou could understand better. Forget the buttons, the problem is the window parameter
I'm very sorry because you're wasting time with me, but I hope that you can do the last try now with the code. If you don't understand something ask me before start thinking.
MyModule
<?xml version="1.0" encoding="utf-8"?>
<AbstractVisualModuleExecutable
xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
private var win:ITopComponent; //MY window
private var dia:Dialog; //My Dialog
override public function main(args:IParams):void{
win = initContext.environment.createTopComponent();
win.title = "Prueba Dialog"
win.contentPane = this;
win.visible = true;
private function onClick(event:Event):void{
dia = new Dialog(win, "Title", false); ((Here I use the window, because I have to say to the dialog who is her father. Win is the father or the dialog, the dialog will create when I do click in one button of my window(the father).
var btn2:Button = new Button();
btn2.label = "Cerrar";
btn2.addEventListener(MouseEvent.CLICK, function(event:Event):void{
dia.dispose();
dia.contentPane.addChild(btn2);
]]>
</mx:Script>
<mx:Button id="btn" click="onClick(event)" label="Dialog" />
</AbstractVisualModuleExecutable>
Now I want to divide this applicatión in one module and one component.
MyNewModule (something like this):
<mx:Script>
<![CDATA[
private var win:ITopComponent;
private var dia:Dialog;
//Here I create the window
override public function main(args:IParams):void{
win = initContext.environment.createTopComponent();
win.title = "Prueba Dialog"
win.contentPane = this;
win.visible = true;
</Script>
MyNewComponent (something like this):
<Script>
private var dia:Dialog;
Here the instance of win I supose, but I don't know how. I have tried more than one thing
private function onClick(event:Event):void{
dia = new Dialog(here the win, "Title", false); //here I want to use the win that I have created in MyNewModule, but I only get a null when I execute the module. I don't know how can I do, instance.top or something like this I suposse it.
//This part is not important
var btn:Button = new Button();
btn.label = "Cerrar";
btn.addEventListener(MouseEvent.CLICK, function(event:Event):void{
dia.dispose();
dia.contentPane.addChild(envio); //here I add the content of the dialog
//dia.contentPane.addChild(btn); //here I add only a button without content, but don't worry about that, like I said later this is not important. The import thing is how can I use win when I create the dialog.
dia.visible = true;
</Script>
<mx:Button id="toOpenDialod" label="Open" click="onClick(event)"/>
THANKS! -
CFMX 6.1's Virtual Memory Use problem!!
I appologise for the long post in advance...
Ok... so I have this script that, using cfdirectory, will
check a directory for any files that may have been uploaded, if
there are files, it loops through the results and reads the files
one at a time, line by line, using the FileReader.cfc (Uses the
Java FileInputStream, InputStreamReader, and BufferedReader to
provide a way to incrementally read large files). The files are
just pipe "|" delimited data, each line represents a record for a
db table.
Now as it's reading each line, it will perform some basic
string parsing to clean up the file line to make sure the data is
valid, blah blah blah and then it will write that "cleaned" line to
another file using FileWriter.cfc (Java component once again). Once
it's completely done reading the original file, it will close it
and it will open the new "cleaned" version of the file, read it
(FileReader.cfc), create an INSERT statement and then update the
database table.
Now... this all works GREAT... until it has to loop through
more than a few files... 3 - 4 files are NO problem! works like a
charm, but throw 6 - 8 files at it and it dies, not a timeout mind
you but an actual "java.lang.OutOfMemoryError" (now, I've tried
making all the files exactly the same (just changed the name) and
the weird thing is, it takes longer and longer to process each as
it goes through the loop... I have the script write some stats as
it's looping:
FILE 1 STATS
Name: COA0607_Intranet1.DAT
Status: Import Successfull
Line Count: 32,971
Processing Time: 74,237ms
FILE 2 STATS
Name: COA0607_Intranet2.DAT
Status: Import Successfull
Line Count: 32,971
Processing Time: 82,018ms
FILE 3 STATS
Name: COA0607_Intranet3.DAT
Status: Import Successfull
Line Count: 32,971
Processing Time: 94,476ms
FILE 4 STATS
Name: COA0607_Intranet4.DAT
Status: Import Successfull
Line Count: 32,971
Processing Time: 145,108ms
I know what you guy are probably thinking; "Woah man... CF
isn't really meant to do that kind of processing...", I know, trust
me I know... however, I really neeeeeed it too lol.
Ok, so as the script is running, I watch the Virtual Memory
use of jrun.exe, processing say 3 - 4 of these files brings up the
usage to approx 300,000k which yes, is a LOT but that's fine...
this process is meant to run at night via a Scheduled Task...
When I run more than 4 files, things start to get ugly, keep
in mind that these are EXACTLY the same files just re-named
differently. The script will start lagging BIG time and on the last
file (usually the last file) I'll see the memory usage spike from
350,000K all the way up to 600,000K and that's when it throws the
"java.lang.OutOfMemoryError" and dies... I've tried commenting out
the part of the script that updates the db, but still get the same
problem...
So... what gives? How come CF Server does this??? I mean, it
runs fine for the first few files... and then WAM, it dies... sorry
for the long post... any insight here is VERY much appreciated...
it would be AWESOME if the wonderful folks at Adobe could shed some
light on this for me : )
CFMX 6.1 version: 6,1,0,83762
Windows XP Pro SP2
Intel P4 2.8Ghz
1Gb of Ramquote:
Originally posted by:
Mr Black
300M memory usage while using "incremental" file reader??
Looks like it is "incremental" only in the sense that it increments
memory usage. Did you try non-Java C/C++ file reader tags?
Well I did try cffile originally... and it didn't even run...
lol -
ADF component with Facelets problem
I use oracle ADF with Facelets, almost every components work well, except two problem.
1) <af:table>. If I defined af:commandLink for the column
<af:column>
<af:commandLink action="editTeam" immediate="true"/>
</af:column>
If you want to enter the link in the first row of the table, your click it once and get no response. You must click at least twice , then you will get the response action. All other row work well except the first row.
2) <af:processTrain>, If I define a new skins for processTrain, the image show the processStation will not show up, any idea about how to define a new image in CSS to display the station status?
Best regards,
SamHello Sam. I have a similar problem, only I cannot get any ADF Faces components to display. Their tags are in the JSP's source like so:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:af="http://xmlns.oracle.com/adf/faces" xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML" doctype-system="http://www.w3.org/TR/html4/loose.dtd" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>testTemplate</title>
</head>
<body>
<af:inputText value="AN inputText"/>
<h1>Here's my Title</h1>
<div> Here's My Menu </div>
<p> Here's My Body </p>
</body>
</html>
</jsp:root>
Maybe you are looking for
-
My Safari shortcut Cmd+Opt+B doesn't work. Please Help.
Hi fellow MacBook Pro Users, My Safari shortcut Cmd+Opt+B, to show and hide all bookmarks doesn't work. The same shortcut is used in a third party app Scrivener and it doesn't work there too. I had a look at all my keyboard shortcuts listed in Syst
-
ABAP Interface for Web Template Design
Hi BW Gurus, I have report published in the portal through BSP. Please some advise me what are the ABAP class files so that I can design my portal reports. I am sure there are few class files where I can desi
-
Extending 27" Cinema Display A Great Distance
Hey all, I have purchased 2 cinema displays and I have my computer located about 100 feet away in a separate machine room. Normally i would buy a KVM extender to extend the display over Cat6. However since the LED cinema displays i have only have a M
-
Way to expand/contract group footers?
Hi, I have a report that includes totals in a group footer, but only for some of the elements in the group. For other elements, the group totals are N/A or zero, so I am suppressing the total fields from printing. The report "reserves" the space in t
-
How can you tell between Week 37 and Week 38?
Hey everyone. Well it took me some research to find out the difference between week 37 and week 38. So to clear up with future readers that arent sure, The "week" refers to when the ipod was made. Anyways, is their a visual difference on the box disp