Communication between separate windows
Hello,
I am a JSF newbie and i have the following problem.
I have one JSF-Site where the user can enter a value in an input_text field. I want to open another page in a new, separate window when the value of this field has changed. This is possible by using the onchange-attibute with the javascript: "this.form.submit(); window.open (...)"
In the new window, there?s a table with the possibly results of a selection. Each row has one button to select the row. In the onclick-attribute i tried to work with the javascript: "this.form.submit(); window.opener.location='<Adress from the first JSF-Page>';window.close();"
The data for the two pages are saved in a session bean.
The problem is, sometimes it works, mostly not. The window is closing correctly, but the first window was not updated.
Is there another way to work with separat windows? Can i manage the windows within a bean?
Thanks for your help.
Matthias
I assume this kind of behaviour is due to the life cycle of the submitted page. The values in your new page have not been persisted yet in the bean while the first page is opening, so the render gets the old values.
Is it not possible to pass the selected value from the new page through parameters in the URL of the first page instead of getting them from the bean?
Second solution, in JSF 1.2, you can use the attribute beforePhase related to <f:view> in order to wait for the persisting of the new values in the bean. The load of the first page is conditionned to a flag set after the persisting in the bean.
Similar Messages
-
Communication between separate ADF Web Applications
Using 11.1.1.5 of JDeveloper I have two Fusion Web Applications that each have a single "view" task flow. Those task flows will be dropped into regions within a WebCenter Portal application so they behave like portlets. I'd like to have a value from one app passed to the other app and have the second app respond to the change. It seems like it should take about 10 minutes but so far... two weeks without any progress. I'm incredibly frustrated. Does anyone have a simple list of the steps I need to perform to pass parameters between task flows? Please help! All I'm looking for is step 1: set up this, step 2: set up that. I can't believe it's this hard.
All of the samples I find on line are about inter portlet communication with JSR 286 portlets, WSRP portlet producers or inter-component communication. I've read this too: http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html but I haven't been working with JDev and WebCenter for 5 years so it simply doesn't make sense. For example, one piece of sample code looks like this
public void handleEventStringPayload(String customPayLoad) {
FacesContext fctx = FacesContext.getCurrentInstance();
ELContext elctx = fctx.getELContext();
ExpressionFactory exprFactory =
fctx.getApplication().getExpressionFactory();
ValueExpression ve =
exprFactory.createValueExpression(elctx, "#{backingBeanScope.mirrorPageBean}",
Object.class);
MirrorPageBean mirrorPageBean = (MirrorPageBean)ve.getValue(elctx);
mirrorPageBean.setMirrorValue(customPayLoad);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.getCurrentInstance().addPartialTarget(mirrorPageBean.getMirrorTextField());
Pretend I don't know the nine layers of technology involved here. Why in the world do I need all of this stuff in this order just to set a parameter... or is that NOT what this is doing? Why are they doing addPartialTarget? What does that do? Why do they have an EventObjectHandler and an EventStringHandler? The article is clearly written for an experienced WebCenter developer and that simply isn't me. If anyone has a resource that shows me how to pass parameters between web apps that actually explains the steps needed and why they need to be taken, that would be great.
Thanks in advance for any help.Hi!.
To communicate two regions (ADF Task Flows) in a WebCenter Portal Page you have "Contextual Events Framework".
You can learn it following this Blog entries:
http://technology.amis.nl/blog/3365/adf-11g-how-events-in-one-region-cause-other-regions-to-refresh
http://andrejusb.blogspot.com/2010/10/contextual-events-framework-and-adf-11g.html
http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html
Video: http://www.youtube.com/watch?v=XIVom59Kq2U
In addition, you can communicate two regions without Contextual Events following this entry:
http://andrejusb.blogspot.com/2010/04/communicating-between-adf-regions.html
Regards!
Edited by: Daniel Merchán on 22-feb-2012 22:15
Edited by: Daniel Merchán on 22-feb-2012 22:18 -
Communication between separate .fla files?
I want to create a site which has a separate navigation menu
.fla file so the menu anims do'nt refresh everytime a new scene
loads... Is there a way I can communicate between the separate
files? I am using the loadMovieNum script to load the menu into the
main site.
Thanks to anyone who can help me!!Well, first of all, make sure you don't get .fla files
confused with .swf files. .fla files don't do anything, they are
the authoring files for the Flash application, the .swf files are
the one you watch in the Flash Player(in a browser).
If you are loading a .swf into another .swf using
loadMovieNum, you can access it by using the _level1(or whatever
level you loaded it into). _level0 is always your main movie.
That being said, most people prefer to use
MovieClip.loadMovie instead, as it gives you more control, and
loadMovieNum is a little more prone to problems. -
Communication between two windows
Hi,
I have a form to store student's personal information. In the middle of the form I have a link named "upload image". When click this link, a new window will pop out for user to upload up to 6 files. I use JSPSmartUpload to upload image, which works fine. When close the pop up window after done uploading, the old window which contains the form need to automatically contain the links to display images uploaded so far. It's like the "attach file" when using yahoo email to attach files. When you done with the attachment, the email will show all filenames you attached so far.
I was thinking that when close the uploading window, the window object will call a reload action target to the parent window. During the reloading, the old parent window will go to database to check the image files and create related links. But the problem is that if reloading the parent window, I think I am going to loose all informations in that form the user entered so far. So, he had to reenter all information.
Can anyone give me some hints about how to accomoplish this task? Thanks in advance.
jmlingCan you give me more details? Or give me some website to check. For example, the form is as below:
<form method=get>
<table>
<tr><td><input type="text" name="name" size="20"></td></tr>
<tr>
<td><a href="uploadForm
onClick="popUp('<%=request.getContextPath()%>/fileUpload.jsp', 'uploadWin', '600', '450', 'yes'); return false;"><strong>upload Forms</strong></a></td></tr>
<tr><td><input type="submit" value="continue" name="next.x"></td></tr>
</form>
how to use javascript to get input "name"'s value? where to store them? how to pass this value to the new window and pass it back? Sorry for this simple question. I appreciated it.
Thanks! -
Can we view events in separate windows?
In previous versions of iPhoto, we could open an event and make it a separate window, then go back to our Library of events and open a second event. Is this possible in iPhoto 11?
We liked the option of having two windows open with separate scroll bars and then moving photos between each.
ThanksAfraid not.
Regards
TD -
How to realize communication between two iViews of the same window but not the same portal page? I tried with using firing portal events but this doesnt seem to work with Mozilla Firefox. Do you have any other ideas?
The sending iView is a portal application the receiving iView a Web Dynpro for ABAP application (so I cant use JavaScript, I guess).
Thanks!
René
Edited by: Rene Guenther on Jan 10, 2008 3:29 PMHi Mrkvicka,
To enable communication between iviews you need to use the EPCF .
You can raise an event in the component of the first iview and define an OnClick event.
this event you can subscribe from the other iview
Refer to this link to get a more clear picture
DropDown Selection and EPCF
also refer to
EPCF
hope this helps,
Regards,
Uma. -
Communication between JInternalFrame
Hi, I have a question on the communication between two separate JInternalFrames in the same GUI.
for example, Jinternalframe1 has a Jbutton (where action Command is already set and is ready to be caught in the actionPerformed() method). When I press the Jbutton in internalframe1, how can I create an Event in Jinternalframe2?
Thanks in advance.if you want to set the background for a button on the an internal frame from the other for example, you can do this :
public class MyFirstInternalFrame extends JInternalFrame
public JButton b1 = new JButton(...);
public MyFirstInternalFrame ()
b1.addActionListener( new Action.... Performed{
MySecondInternalFrame.b2.setBackground(Color.blue);}
public class MySecondInternalFrame extends JInternalFrame
public static JButton b2= new JButton(...);//must be public & static
public MySecondInternalFrame ()
I hope it will help you.. -
Communication between Two WebLogic instances on the same machine
Hi,
We're having a problem with communication between two copies of Weblogic on
the same machine. They are configured with seperate ports (regular and SSL).
Independantly, they run fine. I can access EJBs running on either of them.
The problem is that a bean in one of them has code which attempts to access
an EJB on the other one. The procude fails when trying to obtain the initial
context. This same code works if compilied independantly of WebLogic on the
same machine.
Are there any known issues regards communication between two running
instances of Weblogic on the same machine?
Thanks in advance,
Randy Yarger
marchFIRST
[email protected]Thanks for the prompt reply.
There is one IP address (internal address 10.227.1.34) one the machine. WLS1
is set up at ports 7001 and 5133. WLS2 is setup at ports 7004 and 7005.
When WLS1 attempts to obtain a context to WLS2 with the URL
t3://10.227.1.34:7004/ it pauses for a long period of time. Running truss
on the both WLS processes shows communication occuring between the two
followed by long periods of silence. Finally WLS2 spits out the error
ConnectionException[7001,7001,5133,5133,7001,7001] (paraphrased, I can get
the entire error if it would help).
After another long pause, WLS1 quits trying with the error 'Server
10.227.1.34:7004 not found' (again paraphrased).
Among the things we've tried:
* Changing the URL from the IP to 127.0.0.1
* Enabling/disabling SSL on either or both WLSs.
* Changing the server name in WLS2's copy of weblogic.properties from
'myserver' to 'myserver2' (previously they were both 'myserver')
* Upgrading WLS2 to 5.1.0sp5 (Tried upgrading WLS1, but was getting class
not found errors and quit because that WLS is being used by other people)
This is a Solaris server. WLS1 is running 5.1.0 and WLS2 is running 5.1.0sp5
Any suggestions would be appreciated.
Best,
Randy Yarger
marchFIRST
[email protected]
"Michael Girdley" <[email protected]> wrote in message
news:[email protected]...
>
>
There should not be. What is your network configuration? Are they on
separate IP addresses?
Thanks,
Michael
Michael Girdley
BEA Systems Inc
"Randy Jay Yarger" <[email protected]> wrote in message
news:[email protected]...
Hi,
We're having a problem with communication between two copies of Weblogicon
the same machine. They are configured with seperate ports (regular andSSL).
Independantly, they run fine. I can access EJBs running on either of
them.
The problem is that a bean in one of them has code which attempts toaccess
an EJB on the other one. The procude fails when trying to obtain theinitial
context. This same code works if compilied independantly of WebLogic onthe
same machine.
Are there any known issues regards communication between two running
instances of Weblogic on the same machine?
Thanks in advance,
Randy Yarger
marchFIRST
[email protected] -
Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interfa
Hi
i am try do
Communication between SAP and 3rd Party Systems using IDOC HTTP XML Interface
With The help of SDN Contribution
link----
( have look on it)
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4943f2b7-0a01-0010-37af-faff35b2f08c
I am getting error in
Partner system as HTTPLOG and "Execute" to check the results
Error is -- Port could not be created
RFC destination HTTPLOG Not specified for system HTTPLOG
any 1 have any idea if plzzzzzzzz...........
Thank u
RamHello .
we are also in process of implementing the same
could you share the knowledge pl?
1)is it a separate add on with ALE to saphr
or using ECC ??
2)can u share the configuration part ??
we are trying it on webas as addon 3.0 . -
I've been doing a lot of reading the last couple of days on how we can encrypt db communication between our product app and a customer's SQL Server db, but cannot make it work as expected. The app uses a ODBC/DSN to connect to the SQL Server db. I use this
ODBC app to setup the DSN (on a Windows 7 PC):
C:\Windows\SysWOW64\odbcad32.exe
The DSNconnection uses the SQL Server driver 6.01.7601.17514 and has these properties:
- WinNT authentication.
- Client Config button: TCP/IP to <server-name>\<instance.-name>
- Change to default db: <name-of-app-db>
- Everything else is default setting.
SQL Server is on the same Windowns 7 PC and has a self-signed cert installed (used IIS to generate it) and has the Force Enryption set to "yes".
I have a test C# program that uses the ADODB 2.7.0.0 COM-wrapper, made by Visual Studio after adding a reference to the ADO 2.7 library version 6.1.7601.17857. The program creates an ADODB.Connection object that has a simple connection string: "DSN=<san-name>;UID=<user>;PWD=<password>". The
program then creates an ADODB.Recordset object and reads and displays a field from a table.
Works fine.
If I go into SQL Server and set Force Encryption to "no," clear the cert, restart the SQL service, and then re-run the program, it works fine.
Here's the kick. If I go into the DSN and select "Use strong encryption for data" the Test button on the DSN works—why does it work? The SQL Server is no longer encrypting the connection so an error should occur. If I run the test program, it works
as well—why? I can look at the connection properties in the test program and see that ADODB has added the ";Encrypt-yes" stuff to the end of the connection string. Yet that option seems to have no effect.
If I set the SQL instance back to Force Encryption:yes, enable the cert, restart the SQL service, and clear the DSN's "Use strong encryption for data" option, I can still connect to the db with the
test program—why?
What am I doing wrong? I need to be able to ensure that the communication between our app product and the SQL instance is encrypted, and that we get an error if the SQL instance does not support encrypted communications. We really don't want the customer
to have to enable Force Encryption because they have other db's on their SQL Server that do not use encrypted communication, but they want to know that our product's communication channel with the db is encrypted.
No, I can't change the app product's code at this point in time. I'm stuck with working with what a DSN called from ADODB has to offer.
Also, how can I be sure that communications are encrypted? I mean, I've tried things like "SELECT * FROM sys.dm_exec_connections" but that doesn't help because I have no idea how to tie the list of sessions shown back to my test program, although
I guess it's a good thing that some of the sessions listed show encrypt_option as TRUE.
-glenn-Ah yes, very good point. It's easy to miss because you have to delete then recreate the DSN in order to change drivers. So I switched the DSN over to the SQL Native 11 driver.
Now when I try to connect to the SQL instance as <computer-name>\<instance-name>, and without a cert on the server, I get "the target principal name is incorrect". Perfect; now we're getting somewhere!
Change my DSN to use <fqdn>\<instance-name> and it works. This tells me that SQL Server has auto-generated a cert and named it <fqdn>. I would have expected the "cert fail" error, not a cert
name mismatch, because I'm not using Trust Server Cert.
So I load up my self-signed cert, and that works too.
I am still confused as to why I'm not seeing the "cert fail" error when I have no cert loaded on the SQL Server. I am not using Force Encryption on the server at all, so wouldn't expect SQL Server to auto-create a cert when an Encrypt=yes request comes in,
but apparently it does?
I also ran into a problem with this:
select c.session_id, c.encrypt_option, s.client_interface_name
from sys.dm_exec_connections c
join sys.sysprocesses s
on c.session_id = s.session_id
where s.dbid = db_id('MyDatabase')
There is no s.client_interface_name, probably should be s.hostname. There's also no s.session_id. I thought maybe this should be s.sid, but then no rows ever come back. The c.session_id looks like 51 and 52, but the s.sid looks like a very long binary number,
so these two fields cannot be joined. I don't know how to convert the sid's properly so that the join would work. Ah wait, I just found the s.spid column; the join works when that column is used (I assume that's correct anyhow).
If I add a Thread.Sleep(30 seconds) to my C# program just before the connection is closed, this query shows me the session for the correct hostname has encrypt_option=TRUE.
And I have to keep my fingers crossed that all the app I/O will still work properly after
changing the driver. Probably a safe bet though.
Think I'm ready to throw in the towel on getting the "cert fail/no SSL" error to appear.
It does look like I am able to sufficiently show that the connection is encrypted when Encrypt=yes is used with the newer driver.
Thank for all the help!
-glenn- -
Hello,
Strange issue. I upgraded our Exchange 2013 to CU 7 and now users are reporting they cannot open emails in a separate window in OWA. Regardless of browser, browser version even regardless of another computer or mac. Chrome, Firefox, IE, Safari...same
issue regardless of version numbers also.
I've tested these settings on several laptops and I cannot open emails in a separate window. This happened a day after the upgrade. Previously this was working for all users. Now its hit or miss. Not all users are affected however. My mailbox/account is
also a victim so I can test any theories out.
Any suggestions would help and be appreciated.
Thanks,Hi,
Please check if there is any error message when these affected users try to open mail in a new window.
Please check if these users can open messages in Outlook. This can help us to narrow the issue.
And please check the aplication log in Exchange server to see if there is events related to this problem, which can help us to troubleshoot the issue.
Best regards,
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Belinda Ma
TechNet Community Support -
I have published a file so that user clicks an object and You Tube video launches in a separate window, This allows the user to close the window and return to the cap file. When I launch file using Chrome and user clicks the object, the You Tube video appears in the current window. The back button is not available. User closes the window and is kicked out of Cap file. User must get back into the Cap file to continue.
When I test this using IE, everything works correctly. Why doesn't this work in Chrome? I need a fix so that no matter what browser is used the YouTube video will open in separate window.Hi Elizabeth,
Welcome to Adobe Community.
We were successfully able to reproduce this issue at our end and we have reported this to the department concerned.
Thanks! -
ITunes 11: still not working keyboard shortcuts in separate window video playback
Hi,
I updated iTunes 11 today. I confirm the issue of my old post is still not be fixed. I disappointed.
In separate window video playback, Keyboard Shortcuts setting up in Preferences is not working.Cmd + 1 = Music
Cmd + 2 = Movies
Cmd + 3 = TV Shows
Cmd + 4 = Podcasts
Cmd + 5 = iTunes U
Cmd + 6 = Books
Cmd + 7 = Apps
from iTunes 11: Keyboard shortcuts for switching between different types of content in iTunes library (hints.macworld.com) -
Data conversion for communication between Java and C/C++ program
The real problem, i guess, is about data type conversion between Java and C programs. For instance, and int is supposed to be 4 bytes in Java, and also in C/C++. But, as far as I know, the size of and int in C depends on the processors architecture, so if it were a 64 bit arch., size of and int, double, etc. in C, would change. The real scenario would be a communication between a 32 bit machine (Java) and a 64 bit machine (C/C++).
First of all, is this assumption correct?
If so,
how is it possible to deal with this problem in Java?
Is there any way to know 'type length' automatically? or
would it be necessary to modify the Java program to work with a C program in 32-bit or 64-bit arch?
thx in advancecotton.m wrote:
Yes you should develop the C part of the protocol first and then build from there.
See http://forum.java.sun.com/thread.jspa?threadID=5243547 for a previous discussion of this topic.
I understand what you mean, also the topic you referenced. I will explain the situation a bit more. The protocol is already defined: (16 bits message size, 16 message id, 32 bit time, etc.); it is also defined in C (structures and so on). So it would be easy to write my Java code using the specified protocol in bytes, and C types wouldn't be necessary to be considered. But, let's say that the C code can't be modified, and I thought (and don't know yet if its correct), that size of C types CAN changed depending on architecture. So if size changes for C types (code is specified in short, int, etc, and not in bit format), it all would be a mess, if I don't implement something in my Java code.
cotton.m wrote:
I don't believe that 32 or 64 bit enters the equation here at all.Maybe 32 o 64 doesn't mind, but sparc or PC could take a point here. Communication would be between a sun solaris sparc and windows x86 PC. But if type size in C/C++ does not change, I wouldn't really have any problem then...
The situation is not ideal, I know, but is what I have; and I think I could have problems if I run the C program in other machines; so I would have to try to solve it whithin my Java Program.
I hope it is clear now what I need.
thx
Edited by: MGasa on Jan 16, 2008 1:51 AM -
Full screen mode: How to switch between open windows?
Hi There,
Is there way to get CMD + ` working in full screen mode?
Other shortcuts like CMD + OPT [ ] to switch between open tabs and CMD + TAB to switch apps seem to work - but without the ability to switch between open windows within the same app, full screen mode is kind of useless.
Any pointers in the right direction would be much appreciated.
BTW I'm using Yosemite but the forums won't find a Yosemite community (not sure the community search is working properly)
Cheersor:
And some additional shurtcuts:
OS X: Keyboard shortcuts - Apple Support
http://www.danrodney.com/mac/
cmscss wrote:
Hi There,
Is there way to get CMD + ` working in full screen mode?
Feedback: www.apple.com/feedback/
Maybe you are looking for
-
I got a message that " iphone software version 5.0 is available" for my iphone. After i updated it, i got a message that my iphone could not be activated and to try to connect to itunes which i did, but i got a message that my phone has no sim card.
-
Changing a linechart background color upon a chartitem selection
hello guys, I am displaying multiple lines vertically in a linechart. User can make a rectangular selection on chartitems. I want to change the linechart background color of the selected region only. So if user selects multiple region then I will be
-
How to replace a MacBook Model# AT181 Logic Board?
The MacBook Model# AT181 Starts up with no display and the white sleep light is lit and I can't wake it up? Please help me if anyone know of a solution?
-
How can I get my back arrow to appear?
The back arrow has disappered from my screen display. How can I get it back?
-
Help on Sitecatalyst Integration
All, Need help with Sitecatalyst Integartion. Using AEM 5.6. Referred to the below link, https://dev.day.com/docs/en/cq/5-6/administering/integrating_with_adobe_marketing_cloud/si tecatalyst.html Could someone please guide me with steps . I set up a