Problems calling nested panels
Hi there I've been going round in circles trying to figure this out. I have a jframe which is split in two, two seperate classes add content to each panel. I have a a mouse listener in one of these classes which I want to use to update the other panel in the other class. I don't know how to reference the other class though!
Can someone put me in the right direction?
thanks
alshac,
One way to do this is to pass into the mouselistener object a reference to the other object. You may do this in the constructor, or after the fact. This approach may produce undesirable coupling.
Alternatively add the mouselistener object as a listener to the other class, or to its contained panel.
--A
Similar Messages
-
Problem calling AS3 class's methods from Flex Project
Sorry if this is a stupid question, but after 2 days of Web
searching and 2 books give up; I am a Java and c# programmer and am
having problems calling AS3 classes (in packages) from Flex Builder
2 Flex Projects; the AS3 classes work great as Flex Builder "AS3
Projects", but when I try to use the classes in a Flex Builder
"Flex Project" I am able to see and set their properties, but
cannot see (through "code completion") their methods (unless the
class extends another AS3 class; and in that case I can see the
base class's methods). Here is the code:
AS3 Example Class:
package asText {
public class CheckWord {
public var strData:String;
public var strAProperty:String;
public var intAProperty:int;
// Constructor
public function CheckWord() {
public function TestMethod():void {
trace("test...");
public function WordLength():int {
var intLength:int = 0;
trace(strData);
intLength = strData.length;
return intLength;
} // From Method WordLength
} // From Class CheckWord
} // From Package asText
The MXML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
width="442" height="488" horizontalAlign="center"
verticalAlign="middle"
backgroundGradientColors="[#c0c0c0, #c0c0c0]"
xmlns:asTheText="asText.*"
>
<asTheText:CheckWord strData="Test words" />
<mx:Panel title="Welcome to ........" width="337"
height="393" horizontalAlign="center" verticalAlign="middle"
layout="absolute" y="15" x="50">
<mx:Text text="First Name" enabled="true" width="68"
fontWeight="bold" x="27.25" y="36"/>
<mx:TextInput id="txtFName" x="112.25" y="34"/>
<mx:Text text="Last Name" enabled="true" width="68"
fontWeight="bold" x="27.25" y="66"/>
<mx:TextInput x="112.25" y="64" id="txtLName"/>
<mx:Text text="email address" enabled="true" width="87"
fontWeight="bold" x="17.25" y="96"/>
<mx:TextInput width="189" id="txtEmail" left="112.25"
top="94"/>
<mx:Button id="butSubmit" label="Submit" x="95" y="194"
click="asTheText:TestMethod();"/>
..............and so on ............
All this does is give me an 1180 error:
1180: Call to a possibly undefined method TestMethod.
flexConveyMovie1.mxmlThanks, I have it working; I was not assigning an "ID" to the
"MXML use of the class" (whatever the formal name for that is;
like: <asTheText:CheckWord id="MyText" strData="The Data" />
) and then I was not referencing that ID in what I am refering to
as calling methods for the Class; like:
<mx:Button id="butTest" label="Test Function" x="39"
y="208" click="MyText.TestMethod();"/>
Also, I did some tests on this, and I am shocked that
apparently neither of these two "uses"(?) of a custom AS3 class
actually "call" the Class's constructor. Does that make sense or is
that the result of how I am structuring this?
Phil -
Mouseclick issue on nested panel
Hi all,
I'm redesigning my portfolio website with Spry sliding panel
tech. and I've encountered a behaviour issue that I was wondering
if anybody else has seen before.
So I've got one set of sliding panels that controls the
sections of the website you visit (ie graphic design, web design
etc) and then a repeating panel inside each one that displays the
different examples in each genre. This nested panel is controlled
by the simple nextFrame(), prevFrame() functionality (as well as
listing the number of panels that are also clickable for more
direct navigation) - to see it all in action, visit
http://www.pixelz.co.uk/newhome.html
My problem is that the FIRST time you click on a navigation
link in the nested panel, nothing happens. After that it all works
fine, but it almost seems that the panel needs to be focused on
first by a click and then will run as normal. Anybody else come
across this issue? Is there a fix for it?
Cheers
PixHi all, anybody found a workaround for this problem?
still searching... -
Problem calling a EJB Java Client from Java Activity Agent
Hi,
We have a wrapper java class that calls to an EJB through a JNDI lookup. The wrapper class is called from a workflow. The problem is that the call fail with the following message error:
Error : getRemoteHome Lugar: ServiceLocator NamingException Mensaje Error: Receive timed out
Mon Jan 09 15:32:13 EST 2006 Enqueuing VIC/97513 com.tallion.tax.workflow.assessment.Update
F_FN_ERROR (MODULE=com.tallion.tax.workflow.assessment.Update) (ITEMTYPE=VIC) (ITEMKEY=97513) (ACTID=10617) (FUNCMODE=RUN) (ERRMESSAGE=getRemoteHome Lugar: ServiceLocator NamingException Mensaje Erro
The wrapper class has in their classpath a jndi.properties as follows:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=69.0.137.120:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
The call just works fine when we restart the Java Activity Agent and then, after a while it fails again with the same error.
Any ideas/workaround?
Thanks.I have a situation that is a bit similar. I have successfully used beans for storing methods used in JSPs and used by other methods in the same class as was suggested above. Now I would like to break some methods into another (utility) class since they are lower level and can be used by lots of things. They are for database operations (given a String query and String dbname, it queries and returns ResultSet for example). I want to have them in a separate class for reusability and OOP.
I am having problems calling those public static methods in the public class from my bean that communicates with the JSP. I can't compile the class that calls the method in the database ops class. I get an error like :
loginHelper.java:45: cannot find symbol
symbol : variable sqlHelper
location: class dbHelperBean.loginHelper
and when I include the package name in the call I get
loginHelper.java:45: cannot find symbol
symbol : class sqlHelper
location: package dbHelperBean
That's strange since the package of both classes is dbHelperBean and the class is indeed called sqlHelper. I tried to compile it in the same directory as sqlHelper as well. What am I doing wrong?
Thanks for any help. -
Problem calling different versions of BPEL process from an ESB
We are currenlty having a problem calling a BPEL process from an ESB service.
We initially developed the solution and the two communicated correctly, however it was necessary to make some changes to the BPEL process and we subsequently redeployed the BPEL process incrementing the version number.
However the ESB service when initiated was still calling the initial version of the ESB service.
Is there any way of making the ESB call the default BPEL process version as configured from the BPEL console.You can accomplish this task by invoking SOAP Service in ESB that points to current WSDL of BPEL process, for example:
http://localhost:8888/orabpel/default/SOAOrderBooking/SOAOrderBooking?wsdl
instead of
http://localhost:8888/orabpel/default/SOAOrderBooking/1.0/SOAOrderBooking?wsdl
This information is accessible in Metalink Note: 430206.1 -
Hi All!
I'm having some problems calling a Webservice. I've created a deployable proxy and a client bean and from this bean I've generated a Webservice. When I test this Webservice the actual webservice call is succesfull but I get the following response from the Webservice:
HTTP/1.1 200 OK
Connection: close
Date: Fri, 13 May 2005 10:26:37 GMT
Server: Microsoft-IIS/6.0
P3P: CP="NOI DSP COR ADM DEV PSA PSD HIS OTP OUR IND STA"
X-Powered-By: ASP.NET
X-Powered-By: PHP/4.3.9
Status: 200 OK
Server: PEAR-SOAP 0.8.0RC2-devel
Content-Type: text/xml; charset=UTF-8
Content-Length: 1887
X-Zend-WinEnabler: 1.2.0
<br />
<b>Notice</b>: Undefined property: actor in <b>C:Program FilesZendWinEnablerphppearSOAPServer.php</b> on line <b>318</b><br /> <br />
<b>Notice</b>: Undefined property: mustunderstand in <b>C:Program FilesZendWinEnablerphppearSOAPServer.php</b> on line <b>322</b><br />
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/ ....etc"
As you can see there is some HTML code in the response. This HTML code causes problems for the SAP parser as it expects a SOAP:Envelope and not some HTML junk.
I've looked up what the properties <i>mustunderstand</i> and <i>actor</i> do in a SOAP header and they seem to be optional properties. On the Webservice side the SOAP parser unfortunately seem to think these properties are mandatory.
There's probably two ways to solve this problem. The first way is to ask the guys who host this Webservice to change it are their side. The other option is to add these properties to the SOAP header on the SAP side....which brings me to my question: Is there any way to add these two properties to the SOAP header before the deployable proxy calls the Webservice?Hi Arnouid,
as far as I understand your post, the HTML code is the body of the response.
If it is so, it is not a correct SOAP-message. A SOAP header is inside of the envelope and not outside of it.
So, it is not very a big surprise, that the parser don't like this.
Aside from the form of a SOAP-message, it is not even a XML-message, which must begin with <?xml...
tom -
I have a problem with tabbed panel...this panel has 3 columns, I copied to each of them a diffrent text (diffrent height)...I expected to obtain diffrent working area of column, for example 1st column-height 7500 px, 2nd-1500 px, 3rd-2500 px, but I received one height 7500 px, each column has been formatted to this size....below a text I have “empty space”- (it is a diffrence between working area and text area)...I put the text to the 1st column for example 7200 px height, empty space below this text is 300 px I received 7500 px of working area in this column, here the problem doesn`t exist but….2nd column i have height of text for example 1300 px, below this text i have 6200 px empty space...It should be height 1300 px of text and maybe 200 px of empty space...so the working area could have at 1500 px not 7500 px of height....I try to change it (to for example 1500 px) but it still return to the basic 7500 px height and can`t do it...The solution is to use another form like. the accordion form..but it is a row form….when you put a diffrent sized text (height) you will receive diffrent size of working area (height), you obtain 7200px text +300 px empty space=7500 working area in 1st row.. 1200 px text + 300 px empty space=1500 workin area px in 2nd row and 2500 working area px in 3rd row…everything is fine in this form…each row has been formatted to the different size of height…but I prefer to use a tabbed panel (column form) instead a accordion form.…I don`t to waste the time to correct the code in html text editor like PSPad…
Best Regards
KamilA couple of threads here that should answer your query.
http://forums.adobe.com/message/5080345
http://forums.adobe.com/message/5104253
Thanks,
Vinayak -
Problem calling a certificate authenticate web service
Hi,
I am having some problem trying to connect to a secure web service PI 7.1 Ehp 1. I have a secure web service hosted somewhere and I can call this web service using SOAP UI . However when I load the same pfx certificate in PI via the netweaver administrator and call the web service I got the following error.
<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier</SAP:AdditionalText>
Has anyone done similar thing? Is there anything else I need to do except loading the cert and configure the cert in the comm. channel? Do I have to configure SSL in PI even if I am only calling a web service?
Thanks in advance
WingWe had the same problem calling a web service where the url started with "https". Once we loaded the certificate in NWA and stopped and restarted the communication channel, it worked fine.
The key is to load the certificate before the communication channel is called. Otherwise you will continue to receive the Peer Certificate rejected by ChainVerifier until you restart the communication channel. -
Problem calling simplebutton from library
Hi guys,
I'd like to ask for your assistance. I have a problem calling
SimpleButton from library. I already checked the Linkage:Export for
actionscript but still an error appear "Call to a possibly
undefined method OkBtn". I'm just wondering because this method
works on my MovieClips except for SimpleButtons. Is there another
way to call SimpleButtons?
Here's my code calling MovieClip:
var mc:MovieClip = new ourProduct();
and same in calling my SimpleButton:
var myOkBtn:SimpleButton = new OkBtn();
please help.
Thank you very muchHi again,
Since I could not call my SimpleButton inside the library, I
was thinking of putting my button inside the movieclip and call
that clip inside my library.
On my stage, I called
underConstructionPane() movieclip. This
underConstructionPane contains
myOkBtn which previously I wanted to call but as a work
around, I just put it inside
underConstructionPane movieclip with instance name of
okBtn. I added eventHandler on
okBtn which supposed to call
showHome() function outside
underConstructionPane.
showHome() was declared on the stage or root (I don't know
the correct term. hehehe
sorry.) but I don't know how to call that function.
I tried this:
var home = new showHome();
but it won't work.
Please help me
Thank you. -
Hi, everyone
i want to know about nested panels in detail. If we make heirarchy of panels at third level then how we can perform drawing in uppermost(last child). please suggest me ideas and give links that gives sufficient matter about it.
Thanks in advance.
Rakesh OjhaHello DB sir
thanks for gentle reply
i m not getting the website address from your message on which layout managers are discussed in tutorial. If you mean sun.com then please tell me.
Thanks
Rakesh Ojha -
I have some problems with element Panel Label and Message.
I have some problems with element Panel Label and Message. When I create form from VO attributes then I have Label for input text element. If I use Panel Label and Message element then I need to copy LABEL from input text element to Panel Label and Message element LABEL PROPERTY. Can I define in View object that I don't need label and want all attributes in Panel Label and Message element?
BEST REGARDSYou can simply remove the label attribute for the input text on the page.
sid -
Problems calling Landlines in France with Skype Un...
Hi all,
I've signed up for the free trial of Skype Unlimited and am having a few problems calling a couple of landlines in France. Both numbers begin +33 (0)9... but are both normal French landlines (at least, calls to them in France are charged the same as any other house phone). So I was wondering if anyone knew why this might be the case?
Thanks in advance for any help/tips!I have also problems with +33 4 numbers and +33 5 numbers.
This is recent and was not the case before. -
HT201303 my payment option problem call me 9994270834 & pls speak tamil
my payment option problem call me 9994270834 & pls speak tamil
Hi Stuart.
Thank you for your concern.
I have spoken to Rita (floor manager) who called me back this afternoon.
She looked at the account and could see that there was an open request on there for the call out charges to be removed, and suggested I wait. I explained to her that the Termination deadline of 28th July was looming and I didn't want to default and the account be closed. She understood what I meant and said the only thing I could do was to pay the bill (including the disputed charge). I could see no other way either given the speed of progress up to now so reluctantly agreed to do this. I feel a little bullied into this but the last thing I want is for the account to be closed and have to deal with someone else such as a debt collection company. I have been placed on a monthly payment plan so that I don't have to pay it all at once. which is welcome at least. This has caused me great stress and I feel a lot of it could have been avoided given better service. my complaint number is 52971381317.
Thanks. -
Problem call stored procedure from asp using oo4o
I am having a problem calling a pl/sql stored procedure from ASP.
Attached is the code. Any help would be appreciated. There are no errors returned on the page as far as I can tell.
Sub add_cc_rec(p_location_rental_object_num, p_start_date, p_end_date, p_rate_code, p_quantity)
'On Error Resume Next
Dim msg, stat, p_available, p_free_sell, p_cap_level, p_status_code, p_error_code
Dim OraDatabase, PlSqlStmt
Response.Write "In Function add_cc_rec<br>"
msg = ""
stat = ""
p_available = "Y"
p_free_sell = "Y"
p_cap_level = "0"
p_status_code = 2
p_error_code = ""
Set OraSession = Server.CreateObject("OracleInProcServer.XOraSession")
Response.Write "Created OraSession<br>"
Set OraDatabase = OraSession.OpenDatabase(ORADB, RUUID &"/"& RUPWD, 0)
'Set OraDatabase = OraSession.DbOpenDatabase(ORADB, RUUID &"/"& RUPWD,cint(0))
'Set OraDatabase = OraSession.DbOpenDatabase(ORADB, UID &"/"& PWD,cint(0))
Response.Write "Created OraDatabase with the following parameters<br>"
Response.Write "Database is " & ORADB & "<br>"
Response.Write "UserId is " & RUUID & "<br><br>"
OraDatabase.Parameters.Add "p_location_rental_object_num", p_location_rental_object_num, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_available", p_available, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_start_date", p_start_date, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_end_date", p_end_date, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_free_sell", p_free_sell, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_quantity", p_quantity, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_cap_level", p_cap_level, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_rate_code", p_rate_code, ORAPARM_INPUT, ORATYPE_VARCHAR2
OraDatabase.Parameters.Add "p_status_code", p_status_code, ORAPARM_OUTPUT, ORATYPE_NUMBER
OraDatabase.Parameters.Add "p_error_code", p_error_code, ORAPARM_OUTPUT, ORATYPE_VARCHAR2
Response.Write "Calling PL/SQL procedure cc_insert <br>"
Set PlSqlStmt = OraDatabase.CreateSQL("Begin RATELINK_CAPACITY_CONTROL.cc_insert(:p_location_rental_object_num, :p_available, :p_start_date, :p_end_date, :p_free_sell, :p_quantity, :p_cap_level, :p_rate_code, :p_status_code, :p_error_code); end;", ORASQL_DEFAULT)
Response.Write "PL/SQL procedure cc_insert has been called <br>"
Response.Write "Status code from PL/SQL procedure cc_insert (" & OraDatabase.Parameters("p_status_code").value & ")<br>"
Response.Write "Error code from PL/SQL procedure cc_insert (" & OraDatabase.Parameters("p_error_code").value & ")<br>"
'Response.Write "Error code from PL/SQL procedure cc_insert (" & p_error_code & ")<br>"
OraDatabase.Parameters.Remove "p_location_rental_object_num"
OraDatabase.Parameters.Remove "p_available"
OraDatabase.Parameters.Remove "p_start_date"
OraDatabase.Parameters.Remove "p_end_date"
OraDatabase.Parameters.Remove "p_free_sell"
OraDatabase.Parameters.Remove "p_quantity"
OraDatabase.Parameters.Remove "p_cap_level"
OraDatabase.Parameters.Remove "p_rate_code"
OraDatabase.Parameters.Remove "p_status_code"
OraDatabase.Parameters.Remove "p_error_code"
Set OraSession = Nothing
Set OraDatabase = Nothing
End Sub1 - Can I clear errors on the OraDatabase class. How do
I do that?They store the last error, should clear itself.
2. Is this a client side or server side error? If this
is a client side error, how do I resolve it?Server side error only. Make sure the user you connect as can see 'RATELINK_CAPACITY_CONTROL.CC_INSERT' and has execute permissions on it. You may need to qualify it with a schema name if the connected user is not the schema owner. -
Have problems calling mobiles and landline to and ...
Hey, I have problems calling mobiles and landline to and other contry and i have and active subscrition.can u please help me out?
Hey, I have problems calling mobiles and landline to and other contry and i have and active subscrition.can u please help me out?
Maybe you are looking for
-
HT1420 Can multiple users have Itunes accounts on the same computer?
New to the Mac. Can my wife and I have separate iTunes directories on the same computer accessed based on our login?
-
Error during PGR - TO creation
Hi , During PGR for an Inbound delivery , the below error is triggered, Steps: PO - VL32N - Create TO - when I try to save the TO, I am getting the error " the storage type does not allow negative stock." And it populates for soruce or destination bi
-
Capitalization errors in iTunes 7.2 Cover Flow view
iTunes 7.2 running under OS X 10.4.9 on MBP. Today I ripped a brand new cd to iTunes and two very strange things happened. One is that after ripping, I downloaded the cover art from iTunes and then decided to erase the downloaded artwork, but it stil
-
Problems downloading my camcorder to Mac
I have just bought a new mini DV camcorder and am not sure how to download the video onto my mac. It is a Samsung SC-D363. Help? Thanks
-
HI ! I have an array which holds 999 different numbers between 1-1000 (which means that 1 number between 1-1000 does not appear in the array). I need to find the missing number in one pass and it's easy. My question is: Do you have any idea how can I