Page navigation and send parameters between different projects (ADF Faces)
Hi,
I am using ADF Faces 11g and have an application which has multiple web projects, I want to navigate between different projects' pages and send form values as parameters. How can i do that?
Thanks
Edited by: user12227999 on 16.Şub.2010 01:43
You'll need to use JavaScript to alter the action url on the form element to achieve that, but it's going to be complex and I'm not too positive on the resulting stability in a 11g environment that often need to send XHR to the server. What's your exact use case? It looks like a bad design to me. Normal external call would be using URL parameters, which is consistent to RESTful strategies. What you want to do is a POST to an external application from another which is quite horrible imho, how will you handle session management? Piping the response from the server could be another option.
Regards,
~ Simon
Similar Messages
-
Sharing custom classes between different projects
I'm using different projects as modules for a main
application. I'm trying to use a custom class to share data between
the modules. I've been unable to share the custom data's variables.
Can this be done?
Thanks for the help!!
CarlosYou need to read up on ApplicationDomains. When your
main/first SWF has been loaded by the Flash Player it is put into
an ApplicationDomain - this is the parent domain. When a Module is
loaded it is put into a child domain.
If your main SWF has a Button defined, and your Module also
has a Button defined, the Module's Button definition is ignored -
the first class definition loaded wins.
The parent domain cannot see into the child domain. Any data
residing in the Module is not available to the parent and to any
siblings because they too are loaded into separate domains.
Suppose Module wants to use an HBox and the HBox class was
not loaded by the main SWF. Now another Module is loaded, it too
wants to use HBox. Since the HBox class was loaded by the first
Module it will not be loaded by the second Module. However, the
second Module won't be able to use the HBox because it resides in a
different domain. If the main SWF had loaded the HBox, both
children can use it - the Flash Player first searches for a class
in the current ApplicationDomain, and if it is not there, goes to
the parent domain.
The same is true for data - the parent domain should load the
data so it can be shared by all of the child domains/Modules.
You can load Modules into the same domain as the parent, but
you'll have to read the documentation for that. This has a couple
of drawbacks because data loaded by a Module will clobber data
loaded by the main SWF, but it can work if you are careful. -
ADF: Page navigation and buttons stop working after a while
Hi all,
We have a web app built with ADF Faces/JDev 10.1.3 that runs in OC4J 10.1.2.0.2. Sometimes we encounter this problem in our JSF pages: after a while (can't relate to some particular action), all navigation in a page (links, tabs, buttons, etc) just stops working, i.e. you can click them, the server receives some request (we see this in the logs), but the desired action never happens. It's just like the page keeps refreshing all the time. There is no navigation out of the page at this point, it's completely stuck.
If, at the same time, we connect to the app from a different browser, it will work fine, but the first browser will remain in the faulty state.
I turned the enableTokenValidation in the pages on and off, but it seems to make no difference. Can anyone provide an idea about what might be going on?
Thanks,
SerbanHello,
Any answer on this issue? It seems that ADF is pretty unstable if user clicks repetedly on the same submit button (like a double-click) or on different tabs on the old page, until the next page loads. We are using .jspx pages and combined with SSL access this behaviour is behaving even worser.
Basically we encounter the following problems:
1) It seems that users with not so good network access (and accessing ADF app on a SSL OC4J) still have access to the origin page until the target page loads on a submit. If they click a different button or tab on the origin page in this interval (waiting for their previous action to complete), they usually get a JavaScript error that will block the interface until they do a manual refresh (F5)...
This can be reproduced even on client machines with good network access if you click very fast on the same button twice or on two different submit buttons.
2) It seems that sometimes the browser keeps showing the loading bar in the status bar even if the new .jspx page is already loaded. Any advice on how to solve this, as the users might be tempted to push application buttons or browser navigation thinking that the page is blocked?
All the above happen on IE 6, which is the preffered browser.
Thanks! I can give you more details if needed. -
Since I use a couple of page fragments with menu's, I'm using wildcards for the navigation between pages. However, I'm trying to do things like
<from-view-id>foo</from-view-id>
Somehow JSC doesn't understand this. Is there any detailed information available somewhere about page navigation wildcards? I really don't feel like inserting 32 rules instead of 2 wildcards...The navigation file is a faces config file (as shown by the DTD at the top of the file), and the DTD (http://java.sun.com/dtd/web-facesconfig_1_0.dtd) has this to say about wildcards:
<!--
A "ViewIdPattern" is a pattern for matching view identifiers in
order to determine whether a particular navigation rule should be
fired. It must contain one of the following values:
- The exact match for a view identifier that is recognized
by the the ViewHandler implementation being used (such as
"/index.jsp" if you are using the default ViewHandler).
- A proper prefix of a view identifier, plus a trailing "*"
character. This pattern indicates that all view identifiers that
match the portion of the pattern up to the asterisk will match the
surrounding rule. When more than one match exists, the match with
the longest pattern is selected.
- An "*" character, which means that this pattern applies to all
view identifiers.
-->
<!--ENTITY % ViewIdPattern "CDATA"-->
Thus, as you can see you're a bit limited in where you can put the *, and you can only use one.
-- Tor
http://blogs.sun.com/tor -
Copy and Pasting Tracks between separate Projects.
I have a track on my first project I want to put on my second project but I can't seem how to figure it out because I can never have two open and I don't know how to open up different projects within a gargeband project.
josh.kollege wrote:
I can never have two open
you don't have to, just copy from the first one, then open and paste into the second one.
note: always do a Save As and Archive after the paste. -
Copy and Past voiceover between different videos
I need to split a video into three sections. I have recorded voice over in the video (appears in the blue boxes under the video clips). Is there a way to copy those from one video and paste them into another?
Hi there,
If all you're trying to do is to move from one video clip to another, dragging will suffice. But if, as I imagine, you're trying to move it to another project, copy/paste won't work on the narration track.
Find the project file in the Finder, and right click to select "Show Package Contents". This will enable you to see your voice over recordings and from there you could drag and drop 'em onto the new project. After you do such and have your narrations in place, it would be advisable to go into iMovie's File menu and hit "Consolidate Media…" so that your voice overs would be copied and referenced to the current project (should you decide to trash the original).
Be advised that the newly dragged narration will work as a regular audio track and not as a narration track (you will have to perform the audio ducking manually) and its color will revert to the default "green".
Hope this helps. -
SelectOne... and SelectMany... tags in ADF Faces
Everybody:
Are there any plans to add SelectOneTable/SelectOneTree and SelectManyTable/SelectManyTree tags to ADF? Has anyone done their own?
JeffThe SelectOneXXX and SelectManyXXX components in Faces and ADF Faces are used to capture user input values for the purposes of conversion and validation, and finally to update the model with the new value.
In a typical user interface, tree and table components often also have a concept of selection, which might be single, multiple, contiguous or non-contiguous. This is a different concept of selection.
We already have a selectionState attribute on the UIXTable component, and are looking at adding first class selection (table, tree) and expansion (tree) listeners.
Kind Regards. -
Hi,
I created a librarie "LA" in project "PA", i put in this library 3 reqs and covering tests.
In the project "PB", I import the library "LA" so i now have in project "PB" a librarie "LA_imported" and the 3 reqs and covering tests from A.
I update a req in "PB".
I go in "PA" and i compare the librarie "LA" with the librarie "LA_imported" from project "PB".
I see that i have a difference between "LA" and "LA_imported", but the "Synchronise" button is not clicable.
What is the problem ?
thanksThe duplication is unnecessary. Exporting creates a duplicate of the file. So now you'll have a duplicate of a duplicate. Exporting is not "working on" a file.
No it's not merging, it's exporting from one to the Finder and into another. No matter what lose something. If you export the Original you leave behind all the work you've done in iPhoto. If you export anything else, you lose the non-destructive editing and the ability to revert to the original. With merging you preserve that work. Yes, you can trash the old Library when you have completed the manoevre but no it's not the same thing as merging.
This User Tip
https://discussions.apple.com/docs/DOC-4921
has details of the options in the Export dialogue. But in brief:
Current gets you the iPhoto Preview, used for sharing via media browsers. It's a jpg, medium quality missing metadata. Original gets the file you imported, unchanged and then you can export different version of the current version at different qualities. If you choose to export anything except the Original you do not get a Raw. There's no such thing as an "edited Raw", and you lose the connection between the original and the exported version. That means you've taken a non-destructive workflow and turned it into a destructive one.
The Tiff will certainly be higher qulaity and less likely to suffer generational loss in future editing but the file sizes are vast, often more than 10 times the size of the jpeg.
Put it this way, it would be cheaper to buy Library Manager than the disk you'll need to contain all the Tiffs. Unless you plan on a lot of editing, I'd go for a high quality jpeg as a reasonable compromise.
To be clear:
So, I guess my new question is, how can I edit the Raw image and keep it in a RAW format that IPhoto recognizes so that I can reprocess without any loss at a future time, or is it that once you edit a RAW image, then it is no longer a RAW image?
Once you edit a Raw it can no longer be a Raw. End of. -
Navigate from report to dashboard and pass values between different column
Hello
I have a question about navigating from 1 report to a dashboard page while passing the value from column 1 to column 2 in the second report...
In OBIEE 11G, I create action link on report 1, column 1 and this action link is navigate to BI Content and the destination is a dashboard page, which has column 2 used as dashboard prompt and there are 3 reports all use column 2 to filter. Now the column 2 in the dashboard page is an alias of column 1 from report 1, from user's point of view they are the same, but from OBIEE point of view they are different.
My action link is able to navigate to dashboard, however, the value in column 1 which I clicked to execute the navigation, does not get passed to column 2 as the dashboard prompt doesn't get this value upon navigation..
Since I can't put column 1 in dashboard 2 nor can I put column 2 in report 1. Because our data model is done in the way that if I use column 1 or column 2 in both places, it will be circular joins...
Is there a way around this issue?
Let me know if I need to provide more clarification
ThanksSid
Here is the thing..
Let's say we have Dimension 1, dimension 2 and fact 1 and fact 2
In one report, you need to show Dimension 2 and fact 1 so Dimension 2 joins to fact 1.
In some other cases, you need to shown dimension 1 and fact 2 stuffs, but dimension 1 can't get to fact 2 without going through dimension 2. So Dim 1 --> Dim 2 --> Fact 2
Then in some other cases, you need to show Dim 1 and Fact 1 reports..
In means, your model will look at:
Dim1 --> DIm2 and Dim 1 --> Fact 1 and Dim 2 --> Fact 1.. This is just a simpler version of a much more complex model that I am dealing with now..
So in this case, you can't just use Dim 1 attributes across the board. For some dashboards, you will have to create alias of Dim 1, call it A1_Dim1, un-join Dim1 with Dim 2 or to fact 1 to avoid circular joins... Then in different reports, you either use columns from Dim 1 or A1_Dim1..
Now Dim1 and A1_DIM1 are really the same thing, but they are not according to OBIEE...
So my problem is, in report 1 where Dim1 is used, it can't past values to Dashboard 2 where A1_DIM1 is used as dashboard prompt..
I want to know if there is a way around this issue
Hope this makes more sense now
Thanks -
Command_link page navigation and acoinListener
I have a command link inside a form that includes a table, my page navigatoin does not work though.
when i clik on the link i am still in the same page. the actionListener is not called either. It seems like a pretty basic thing. but I can not get it to work.
when I view the html code generated the <form> action attribute is still set to the same page. regardless of the value of the action attribute for <h:command_link>
here is portion of the jsp file
<h:form>
<h:data_table>
<h:column>
<f:facet name="header">
<h:output_text value="Name"/>
</f:facet>
<h:command_link id="PartnerName" action="#{Partners.success}" immediate="true" actionListener=" #{Partners.handlePartner}">
<h:output_text value="#{item.partnerName}"/>
</h:command_link>
<h:data_table>
</h:form>
here is a code snippet from the backing bean Partners
public String success()
return "success";
public void handlePartner(ActionEvent event)
System.out.println("in partner action listener!!");
Here is my navigation rule:
<navigation-rule>
<from-view-id>partners.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>newpartner.jsp</to-view-id>
</navigation-case>
</navigation-rule>
Any help is really really appreciated.
thanks
--Omidthanks for the replay...
you know what? i had my bean-scopse set to request. that was the source of the problem. I changed it to
session and now it is working. This sounds like a bug. doesn't it?
thanx
--Omid -
Can I make my web page stretch and shrink to fill different sized browsers?
Hey team,
I just built my first site in iWeb: www.dylanjamesgeorge.com
I'm using iWeb version 3.0.2
I set the page width to 1200px because that's what looks best on my screen, however when I look at the site on a larger or smaller screen it doesn't look good. When I check out some other websites they manage to make their content stretch to fill different sized browsers. Something about using relative sizes (%) instead of absolute sizes (pixels) for the page dimensions?
I know iWeb doesn't offer this option, but I'm wondering if there's anyway to change the code manually.
I'm just trying to avoid people with small screens having to scroll to see content and people with large screens being left with lots of void space on either side of the screen.
Thanks in advance for your time.
DylanHey Roddy,
Thanks for your reply. I've read that before, but what I'm trying to do is get the content on my page to move as the browser window gets smaller. For example, if I grab the bottom right hand corner of my browser right now and make the window smaller, the content of this page will adjust itself to stay centered until the window is too small, THEN it will add a scroll bar. Any idea how to make this happen in iWeb? -
Calling VC iView from ext. app. and send parameters back
Hi,
My problem is the following: I have several NON-SAP web-applications which should be able to call a VC iView which has the functionality of searching Business Partners in SAP CRM. After I select one of the found BPs, the selected BP should be passed back to the calling application. Is there a solution how I can realize that with Visual Composer?
Thanks a lot in advance.
TimoThe only chance that I see is by passing values from VC to your external application, if your external application can use URL-parameters. You could run the ext. application in an HTML View control inside a VC application and pass data this way.
How to send data from your external application to VC, I don't know. I can only give you a solution by using Portal eventing.
Mario -
Sharing files and iCal events between different users (accounts) on one Mac
Hi,
I have a new iMac with Leopard. I have two accounts on this machine: one for myself and one for my girlfriend. I want to share files with her such as iPhoto events (so I don't have to import photos twice), iCal events (so I don't have to send her an email to synch our calendars), music from iTunes and other files.
Does anyone know how to easily do this? I have tried the drop folder for sharing but it only appears across a network if I am logged in and won't transfer to different users.
Danielthanks, zevoneer. apparently, I gave up too early in my own search. I'm trying it now - the copy process is taking some time. Well, I had hoped to narrow the access down to only one other account but at least this should provide the access that is needed.
-
DispatchEvent and sending parameters
Hi,
I have a game with two joysticks and I use the dispatchEvent
command to
send the fire button event. What would be a good way to send
the number
of the joystick to check who pressed the fire button. A bit
dirty way
would be to save just the number in root or in my main class.
Any better
ideas?
TIAthe event dispatcher can be determined using the
currentTarget property of the event. -
Sending textfield parameters between screens in ADF
Hi All
I have a search.jspx where I provide 3 values
Those values needs to be used in the WHERE condition of the SQL and the results should be displayed in the list.jspx file.
How can i pass those values from one screen to another?
Thanks in Advance..
//JDear Timo
I am using JDeveloper and exploring the ADF
What I did?
1. I created a Model object for Employees from EMPLOYEES table
2. I created a Bounded Task flow without Trains
search.jspx (providing few input parameters, employee id, emp name and email for searching) - ADF Form
list.jspx (listing out the list of employees) - ADF Read Only Table, click to edit options and pressing the update button
update.jspx (showing the individual records in editable mode) - ADF Form
then I created two Task flow Return. One for COMMIT, one for Roll back
Here in Update form, I created two buttons, one associated to COMMIT another to Rollback
My output?
From list.jspx, when I select a record from table and click Update, it goes to update.jspx
In the update.jspx, I modified some values and click Save (task flow return: COMMIT)
This flow is fine
What is the issues?
Issue 1.
The first flow, search.jspx to list.jspx I get the issues
search.jspx i enter few parameters,
I need to carry these parameters in Request object.
There, in the next list.jspx form, I want to display a table
This tabel shoudl retrieve the employees based on the values I provided in search.jspx
How to do this?
I understand, my list.jspx which is a ADF Read-only table might be wrong.
Your suggestions please?
Issue 2:
I need to implement CSS kind of styles for my ADF forms.
How can I do this?
Thanks a lot..
//J
Edited by: jaijava on Oct 30, 2010 5:15 AM
Maybe you are looking for
-
How can I get a date picker or wheel to show up in the form to make filling in a form with a lot of
how can I get a date picker or wheel to show up in the form to make filling in a form with a lot of dates more easy?
-
Online Purchase - How to swap upgrades?
Hello, I am planning to purchase the iPhone 6 on VZW.com on Friday when it comes available for pre-order. My line is not available for an upgrade but 2 other lines on my family plan are eligible (I have permission to use one of the upgrades). Is ther
-
Does iOS 8 fix the wifi 'grayed out' bug in iPhone 4S?
Hi. I have an iPhone 4S which is running iOS 7.1.2 . Apparently, the wifi was working before upgrading to ios 7.1.2 (from ios 6.1.3). The wifi option is 'Grayed out" in the Settings app and my Mac address is seen as 'N/A' . There are so many 'fixes'
-
I was wondering if Apple was going to make a app for the Blue Ant Bluetooth Device.
I think thid would be a great idea since the Android Market has it and is really useful while driving and able to reply by speaking to the bluetooth.
-
Sap hr flexible benefits integration
Hi, Our company is planning to implement SAP HR flexible benefits and benefits are provided by 3rd party flexible benefits provider. My question is how do we integrate between SAP HR and 3rd party benefits provider. The benefits are recording in SAP