[ADF Faces] How to open a jsf page in a new window.
I need to open in a new window a page....
I have used the Dialog Framework, but it does not work, because the objects is never reseteds, the frameworks was saving the states of it.....
Then I need only to open the page in a new window, a pop up.
The CommandButton has not the Target property :(
thanks
I discovered it
private String goPohecamp() {
FacesContext context = FacesContext.getCurrentInstance();
// Create the dialog UIViewRoot
ViewHandler viewHandler = context.getApplication().getViewHandler();
UIViewRoot dialog = viewHandler.createView(context, "/access/ecamp.jsp");
HashMap properties = new HashMap();
//properties.put("width", new Integer(250));
//properties.put("height", new Integer(150));
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog,
null, // not launched from any component
null, // no particular parameters
true, //show in dialog
properties);
//return "goPohecamp";
return null;
}Like this is better to me
Similar Messages
-
How to open the navigated page in a new window???
i a report when we click on properties and then go to Column format tab.
there if go to navigate option it jus asks only the target request or dashboard and opens that in the same window on dashboard.
i want to open that in a new window.
how to do that?????I have an example here http://oraclebizint.wordpress.com/2007/11/26/oracle-bi-ee-101332-same-page-navigation-drills-and-passing-parameters/. You basically need to put it inside an iframe or Embedded Section.
Thanks,
Venkat
http://oraclebizint.wordpress.com -
How to open a entity form in a new window using openEntityForm() method.
How to open a entity form in a new window using openEntityForm() method.
As far as I'm aware, there isn't a supported way to do this in the client-side API. You could use window.open instead
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk -
Open a bsp page in a new window?
Hi All,
I am creating a BSP application wherein i have a htmlb button for "help".
I want to open this help page in a new window, so that alongwith the help page the user can
view other pages also simultaneously.
Is there any way by which i can open this BSP page into a new window without loosing
the contents of the current page on which the help button is present.
A sample code for opening page in new window will be of great help.
Thanks in Advance for your help.Hi,
Pls try the below logic :
<htmlb:button id = "help"
text = "Help"
design = "standard"
onClientClick = "window.open('http://www.sap.com')"
tooltip = "Help"
/>
This will work for you.
Regards
CSM Reddy -
How to popup an OAF page in a new window?
Hi all,
I hava a requirement to popup an OAF page in a new window when i touch a image .
When i touch the image,popup a new OAF page ,and the orial page become invalid like LOV,
there are some messageTextInput items and a 'Confirm' submitButton in the new OAF page,
So how to popup a new OAF page and how to pass the values to orial OAF page when i press the 'Confirm' submitButton?
Can anybody give me a detailed example pls?
Tks,
Edmund.Hi Ming,
It seems that the page you are trying to open has some security access on it. Read Menus and Page Security in Dev Guide for more details.
Thanks
--Anil -
Firefox randomly opens an existing page in a new window
I open Firefox with no problem - it opens all my existing tabs. When I choose a tab, and run the cursor over a page (no button pressed) Firefox will randomly (not always) open that page in a new window. VERY annoying!
The problem occurs with no clicking or dragging, but thanks ...
~pete -
How to open a jsf page on a link with a record . Link is in email
Respected Friends ,
I am facing a need for sending a email link to users for opening a form for processing a record . I have created a servlet for forwarding the user to the desired page on which we need to render a perticualr record. The servlet forwards the user to the required page but when the page is rendered it gives
java.lang.NullPointerException at iffco.wf.view.servlets.UserLinkRedirectServelt.getApplicationModule(UserLinkRedirectServelt.java:143) at iffco.wf.view.servlets.UserLinkRedirectServelt.doPost(UserLinkRedirectServelt.java:125) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)
Please help me ,
I want to know how i can load a page from a link with a perticular record .
I am using jdeveloper 10.1.3 . Also when i acess the current application module from the servlet it gives me the null pointer exception.
Thanks in advanceHI FRANK THANKS FOR THE QUICK REPLY I AM PASTING THE CODE OF MY SERVLET..
frank can you please provide me how to pass parametres along with jspx link and how to acess them in the managed bean .this will also solve my problem.
package iffco.wf.view.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;
import iffco.wf.view.backing.LoginPageBean;
import iffco.wf.view.utils.ADFJSFUtils;
import oracle.jbo.ApplicationModule;
import oracle.jbo.ViewObject;
import oracle.jbo.client.Configuration;
import iffco.wf.model.wf_servicesImpl;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import oracle.adf.controller.v2.context.LifecycleContext;
import oracle.adf.controller.v2.lifecycle.PageController;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCDataControl;
public class UserLinkRedirectServelt extends HttpServlet {
private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
public void init(ServletConfig config) throws ServletException {
super.init(config);
/**Process the HTTP doGet request.
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
String var0 = "";
String var1 = "";
String var2 = "";
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>UserLinkRedirectServelt</title></head>");
out.println("<body>");
out.println("<p>The servlet has received a GET. This is the reply.</p>");
out.println("</body></html>");
out.close();
System.out.println("Inside doget method of servlet");
LoginPageBean LoginBeanInstance = new LoginPageBean();
System.out.println("Login bean initiated--->" + LoginBeanInstance );
String nextJSP = "/faces/LoginPage.jspx";
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(nextJSP);
dispatcher.forward(request,response);
/**Process the HTTP doPost request.
public void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
String var0 = "";
String var1 = "";
String var2 = "";
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>UserLinkRedirectServelt</title></head>");
out.println("<body>");
out.println("<p>The servlet has received a POST. This is the reply.</p>");
out.println("</body></html>");
out.close();
System.out.println("Inside post method of servlet");
LoginPageBean LoginBeanInstance = new LoginPageBean();
System.out.println("Login bean initiated--->" + LoginBeanInstance );
String amDef = "iffco.wf.model.wf_services";
String config = "wf_servicesLocal";
wf_servicesImpl service = (wf_servicesImpl)Configuration.createRootApplicationModule(amDef,config);
System.out.println("service created --> "+ service);
ViewObject vo=service.getLoginVO();
System.out.println(vo);
vo.setNamedWhereClauseParam("p_personal_no","109128");
vo.setNamedWhereClauseParam("p_password","abc");
vo.executeQuery();
System.out.println("View Object has -->"+vo.getEstimatedRowCount()+" Rows");
ADFJSFUtils newHelperClass = new ADFJSFUtils();
System.out.println("New Helper Class Initated -->"+newHelperClass);
ApplicationModule currentAM = newHelperClass.getDataControlApplicationModule("wf_servicesDataControl");
System.out.println("Current AM is -->"+currentAM);
ViewObject vo = currentAM.findViewObject("LoginVO");
System.out.println(vo);
vo.setNamedWhereClauseParam("p_personal_No","109128");
vo.setNamedWhereClauseParam("p_password","abc");
vo.executeQuery();
System.out.println("View Object has -->"+vo.getEstimatedRowCount()+" Rows");
System.out.println("Before method");
wf_servicesImpl wfser=getApplicationModule();
System.out.println("after method value got-->"+wfser);
String nextJSP = "/faces/LoginPage.jspx";
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(nextJSP);
dispatcher.forward(request,response);
public wf_servicesImpl getApplicationModule() {
FacesContext context = FacesContext.getCurrentInstance();
System.out.println("context --"+context);
ValueBinding vb = context.getApplication().createValueBinding("#{data}");
BindingContext bc = (BindingContext) vb.getValue(context);
DCDataControl dc = bc.findDataControl("wf_servicesDataControl");
return (wf_servicesImpl) dc.getDataProvider();
private void redirect(
ResponsePage aDestinationPage, HttpServletResponse aResponse
) throws IOException {
String urlWithSessionID = aResponse.encodeRedirectURL(aDestinationPage.toString());
aResponse.sendRedirect( urlWithSessionID );
private void forward(
ResponsePage aResponsePage, HttpServletRequest aRequest, HttpServletResponse aResponse
) throws ServletException, IOException {
RequestDispatcher dispatcher = aRequest.getRequestDispatcher(aResponsePage.toString());
dispatcher.forward(aRequest, aResponse);
} -
Adf faces table and applet in jsf page navSubmit not working in IE
Hi
I have a jsf page with adf faces table and applet , previous / next navigation is not working for my table when i add the applet to the same page , it is working in firefox but not in IE .
I have no clue what to change , can any one help. below is the sample code for my jsf page
Best regards
Srinivas
Code follows, not sure how to format the code here
<h:form>
<af:panelPage title="Test Adf faces table and applet">
<af:panelHeader text="Orders">
<af:table value="#{bindings.Orders.collectionModel}" var="row"
rows="#{bindings.Orders.rangeSize}"
first="#{bindings.Orders.rangeStart}"
emptyText="#{bindings.Orders.viewable ? 'No rows yet.' : 'Access Denied.'}"
id="orders" >
<af:column sortProperty="order"
headerText="#{bindings.Orders.labels.order}">
<af:commandLink text="#{row.order}"
id="orderNumber"
onclick="showOrder(#{row.order})"
disabled="false"/>
</af:column>
</af:table>
</af:panelHeader>
<af:objectSpacer width="10" height="10"/>
<af:panelBox>
<f:verbatim>
<div id="appletDiv">
<applet here />
</div>
</f:verbatim>
</af:panelBox>
</af:panelHorizontal>
</af:panelPage>
</h:form>Sorry about the format, it looked okay when i previewed it , now it looks like terrible
-
How to open all the pages in the same window?
I have set up 8 pages in my website. And i want to open the pages in the SAME window. What should i do?
P.S. I nearly follow all the styles and command made in the video of 'Bayside Cable Car Website'. The pages should be opened under the navigation bar. However, i cannot do so.
Please help.
Thanks a lot.the_shocker wrote:
I see no point in contributing dumb and useless stuff just to justify an ego...pointless....but kids hey.
Wait, are you talking about your post or someone else's? It seems double standard and oxymoronic for you to contribute dumb and useless stuff about dumb and useless stuff just to justify your ego... pointless... but old people hey.
best,
Shocker
Far too easy to wind-up......keeps me entertained though, thanks. -
How to Open a Navigation Link in a new Window?
Hi guys,
I am trying to add a link to one of my team site. And i have activated the SharePoint server publishing infrastructure service. In the navigation link i am sure the clicked the check box open in new window. But i not getting the new window.
The link still open in the same tab. How to open it in new tab ?!!
I am using SharePoint 2013. I am using free trail pack.Hi
one way is to code.
open the page using Deisgner, goto that hlink, and insert inside it target="_blank"
like
<a href="the_URL" taget="_blank">you text or a xslt tag</a>
Alose check this article
http://www.w3schools.com/HTML/html_links.asp
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you. -
Opening Default Topic page in a new window
Hi there,
I am new to RoboHelp HTML. I have recently started using it
for work and was asked to look into something.
I am using version 7.
The problem we have is that the RoboHelp html files are being
incorporated into a web application. There is a link in the
application called "User Guide". This link opens up the RoboHelp
html files in the same browser window as the application.
Therefore, when the user wishes to go back to the application or
close the help files, he/she can't because it's all in one window
and the application has session (so it wont let you go back to the
application if you are in the help).
I know it's possible to simply add a Target="_blank" to the
actual "User Guide" link on the application side - for it to open
the help files in a new browser window.
However, I wanted to know if there is any way to configure
the RoboHelp HTML to start the inital page - default topic in a new
window from the actual RoboHelp software.
Can someone shed some light on this please?
I hope my question is clear enough, like I said, I am new to
RoboHelp so my apologies if I haven't explained myself clearly
enough or used the right words.
Anyways, let me know.
Thanks!Hi Estel-mm and welcome to our community
Your requirement cannot be met with simple use of RoboHelp
HTML. It will likely require hand crafting some special JavaScript
function to make it work. And here's the rub. Assuming you get it
to work, it may have an adverse effect in that if you configure the
default topic to open this way and your end user just happens to
land on that Default topic again, poof! Another new window.
Just a thought... Rick -
Having widgets open a web page in a new window
Everyone,
Is it possible to have a widget open a webpage in a new window? I can get it to work when I publish as .html, but not when I publish as a widget.
Is there any way around this?
Thanks for ALL of your help!
TaraThe widgets options is for Apple iBooks.
https://www.youtube.com/watch?v=5QPCaGZjL-w
http://helpx.adobe.com/edge-animate/using/publish-your-content.html
Darrell -
Until I installed an Adobe update, my firefox worked fine, I have had to restore my computer and restart firefox due to advertising which was installed along with the update. Now each time I click on a webpage, a new tab opens and I can no longer view the webpage in the current tab. As you can tell, I am not that computer savy, but I have tried to change all the settings in the options and nothing has worked. I hope this makes sense, please help as it's driving me mad having all of these tabs.
Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") -
How to Open BSP page in a new window?
Hi All,
I am creating a BSP application wherein i have a htmlb button for "help".
I want to open this help page in a new window, so that alongwith the help page the user can
view other pages also simultaneously.
Is there any way by which i can open this BSP page into a new window without loosing
the contents of the current page on which the help button is present.
A sample code for opening page in new window will be of great help.
Thanks in Advance for your help.Hi Mahima,
Use the onClientClick event of the button.
on_Client_Click="callwindow();"
<s cript>
function callwindow()
win_dow.o_pen("www.sap.com");
</s cript>
Please remove the underscores from code.
Regards,
Anubhav -
ForwardImmediately to open new page in a new window
Hi,
Is it possible to force the forwardImmediately method to open the specified page in a new window? Like the Target Frame = _blank on the Link item.
I am unable to use JavaScript to do this.
Can forwardImmediately be modified to do this or can I create a link item on my page and dynamically fire it from with the processRequest method of my controller?
Any help will be appreciated.
regards
DGHow to open new window in CO programitically in OAFramework
opening a page in a new window using code
Thanks
--Anil
http://oracleanil.blogspot.com
Maybe you are looking for
-
How to run java source files from other java files??
hello all, i need to run 3 to 4 .java files (first.java,second.java,third.java) from one file. i tried the Runtime.getRuntime().exec(cmd); but here cmd must be an exe file. NOTE THAT i need to run the first.java file ,second.java file each time to ge
-
Order of execution of JPDK Portlets inside the same Portal Page
We have 2 Sample JPDK Portlets from the same provider on our page - A LoginPortlet that accepts the username and Password - A Welcome Bin Portlet that shows the logged in user's details Once the user enters username and password in the LoginPortlet,
-
IMac Fan constantly running OS X Yosemite Version 10.10.1 (14B25)
Does anyone have this problem my iMac is going to be about a 1 1/2 year old now and the fan is constantly running and never shuts off. This happened from day one took it back to Apple store when first notice the problem which was 1 week later. They t
-
Source system not Active error while installing BI content cube
Hi., When I try to install the BI content cube, In logs it is showing the error message as "Source client not Active". I activated the source system in modelling tab. Still the problem continues. In source system assignment of BI content the sourc
-
Can't download music from Itunes to Ipod
When I try syncing the music I keep getting the following message: "Attempting to copy to the disk "Logical Disk" failed. You do not have enough access privileges for this operation. ITunes could not save to your Music Folder because you do not have