Popup link inside  a r portlet - 'calendar'

Hi All,
I'm trying to pop up a link that I've define inside a caledar portlet, but the link opens up on the entire window instead of just inside the portlet itself. I've set my "TARGET" to null and do not know what the "TARGET" value should be. Within my page, I have several portlets. One of which is a calendar portlets with links. Those links will replace the entire page once they're clicked, rather then just open up within the calendar portlet. Do anyone know?
Thanks in Advance,
Vie

How do I pop up a small message window on top of my portal page?
. My portal page contains only a html portlet and I do not want to use the 'onLoad='. Is there something I could do in my pl/sql?
right now I have,
IF condition = 'N' THEN
url := PORTAL30.wwv_user_utilities.get_url('ABC.LINK_TO_PAGE');
portal30.wwv_redirect.url(p_url => url);
ELSE
null;
end;
I tried to sneak in
PORTAL30.wwv_javascript.open_script;
htp.p('window.open(''http://xyz/pls/portal30/url/page/popup'',''Title'',''width=300 height=400'');');
PORTAL30.wwv_javascript.close_script;
into my if statement, but this doesn't work.
Any help appreciated. -------------------------------------
just making it clearer:
my if statement looks like:
IF condition = 'N' THENPORTAL30.wwv_javascript.open_script;
htp.p('window.open(''http://xyz/pls/portal30/url/page/popup'',''Title'',''width=300 height=400'');'); -- this is my popup window
url := PORTAL30.wwv_user_utilities.get_url('ABC.LINK_TO_PAGE');
portal30.wwv_redirect.url(p_url => url); -- this will take me to my portal page
ELSE
null;
end;

Similar Messages

  • Rendering external links inside a java portlet

    Hi,
    I have a Java portlet written which displays a page including some links that are pointing to an external page. When clicking on that link the portal environment is left, that's not what I want. I want to render the content of this link inside the portlet.
    Is there any way to do that in a Java portlet? Like a method that rewrites all URLs inside a HTML page so that when clicked they will be rendered again in the portlet and again all the URLs inside this page are rewritten?
    Thanks for any help.
    Erik

    Hi Erik,
    You can use methods in PortletRendererUtil to construct links to your resources so that you are within the Portal context.
    Another workaround to this would be to have a controller jsp for the show mode. Put this as the resource in the <showPage>....</showPage> tag in the provider.xml
    Now this JSP will forward the request to the appropriate JSP (or any other resource) based on an action.
    So in all the jsps, let the form be submitted to the controller jsp, which reads the action from request & forwards it to the right jsp. e.g. in your scenario,
    the main JSP (that contains links etc) will contain a form element which will have the following signature.
    String portletActionLink = HttpPortletRendererUtil.htmlFormActionLink(request, HttpPortletRendererUtil.PAGE_LINK);
    <form name="formName" method="POST" action="<%= portletActionLink %>" >
    <%= HttpPortletRendererUtil.htmlFormHiddenFields(request, HttpPortletRendererUtil.PAGE_LINK) %>
    <input type="hidden" name="ClickedAction" value="">
    </form>
    When any link inside the form is clicked, the "ClickedAction" hidden element will be set to the right action inside a javascript & the form will be submitted to the controller jsp (as we are still in the "Show mode")
    The controller jsp will contain the following extract,
    String action = prr.getParameter("ClickedAction");
    if ( action.equals("externalPage1") )
    //have a runtime include for ExternalPage1 jsp
    You can thus extend the controller based on number of actions you have.
    In this approach, all requests are routed through the show mode controller jsp. However, through other methods in the PortletRendererUtil class, you can rewrite a direct URL to that JSP.
    Regards,
    Abhinav

  • How to change the color of the links inside a portlet ?

    Hi,
    I have to apply a css into one of the portlets of my page. Since I thought it would not be easy I figured out that the only thing the client cares is the color of the links inside the portlet. The portlet has a bunch of links and these link should be blue and 12pt. Does somebody know how to do that ?
    Thanks,
    Rafael.

    Change hyperlink color:
    There are about 50 predefined styles with each template. They are modifiable. Hyperlink is one of the styles.
    Follow this process:
    • In your document select a word of text, any word will do.
    • Style it the way you want your hyperlinks to look.
    • Show Styles Drawer from the View menu.
    • Find the Hyperlink style in the drawer and right-click on it.
    • Select - Redefine Style from Selection - in the pop-up menu.
    That's it. You've changed the hyperlink style for this book.

  • Links inside a portlet

    Hi,
    I've got 4 links inside a portlet, i woulld like to target each link to the same portlet.
    Basically,i want this links to open inside a portlet.
    <netui:anchor action="Week">|Week</netui:anchor>
    <netui:anchor action="DayofWeek" >|Day of Week</netui:anchor>
    <netui:anchor action="TimeOfDay" >|Time Of Day</netui:anchor>
    <netui:anchor action="AccidentType">|Accident Type</netui:anchor>

    Hi Caroline
    You should install and use the "Url Services". I have the same need. But I can't succesffuly install the URLServices, I then get a lot of timeout errors when browsing the portal. I don't know when I'll have time to work on that, but that's the way you should work around.

  • IFrames keeping the links inside the portlet frame

    Hi All,
    I have installed the iFrame portlet, and tested with the technet.oracle.com portlet. Why do the links on this portlet open up in the whole window rather than stay within the boundaries of the portlet? Isn't that the point of iFrame? I tried to add in
    <convertTarget>false</convertTarget>
    and
    <inlineRendering>true</inlineRendering>
    to the provider.xml, but I got errors each time saying there is no set or add method for them in
    Class oracle.portal.provider.v1.RenderManager
    is there any way I can keep the links inside the frame, or do I have to create a html portlet and manually put in an iframe tag?
    Thanks, Sarah

    It simply does not work! We have tried using iFrames and URLservices with inline rendering and the links always open in the same browser window but outside the portlet. This is getting very frustrating as every post we read has a different solution but none work.
    And yes we have specified inlineRendering and convertTarget in the provider and yes the samples work but they don't open in the portlet. According to 2 threads in the forums, it should work now but it does not.
    Re: ORA-01427: single-row subquery returns more than one row
    Oracle Appplication Server 10g Std Edition One: Linux Available
    We have version 3.0.9.8 and the latest pdk. We are seriously considering switching to a solution that really works.

  • Portlet that displays links inside it

    I need a portlet that displays the links inside the portlet without opening a new window.
    Thanks
    null

    Hi there,
    We've been playing around with something like this. We wanted to create an application which acted as an autonomous entity within a portal page. We finally managed to do this with a combination of the parameters passing example and use of session variables (wwpre_api). The thing here is that any session variables must be referenced with the portlet reference and a portlet's show method must always pre-check for the current state.
    The main thing to watch out for is that you want any portlets shown on a particular page to retain state while you are "working" in another portlet, hence the session variables.
    This is now growing into an application framework which allows screen changes (i.e. edit to list and back) to occur from links within the portlet, without jumping to a new page. We are considering to eventually release this when we cleaned things up a bit.

  • Command Link inside table to external website in popup window

    Hi,
    I am trying to have a command link inside a table which is on the tables id. I know that if I have control of the destination page I can use setCurrentRowKeyValue. However I do not have control of the external website. So I cannot add it into my faces-config.xml file? I have tried putting a GoLink and a GoButton but I get the following Illegal character in fragment error, when I put my destination URL in. An example of the format the URL is:
    http://www.bbc.co.uk/radio?&music=#{row.PrimaryKey}&adf=123
    Where I am adding in #{row.PrimaryKey} which is the Id of the row. I would like to have the new page opened into a pop up window if this is possible.
    I am not sure if this can be done in the backing bean or whether my approach is the correct one?
    Many Thanks
    Steve

    something like...
    <af:goLink text="#{row.PrimaryKey}"
               destination="http://www.bbc.co.uk/radio?&amp;music=#{row.PrimaryKey}&amp;adf=123"
               targetFrame="_blank"/>Regards,
    Neeraj

  • Opening a New page on click of a link in Struts PDK portlet

    Hi All,
    Please help me to sort out my issue..
    I created a portlet(say P1) using struts Portlet.That portlet is added to a portal page..which has some other portlets already(p2,p3,p4)...So my portal page has 4 portlets p1,p2,p3,p4..In Portlet P1 There is JSP which has a link inside...When i click on the link..I need to open a new JSP page with some prepopulated data inside it..Now the problem is..it is opening a page with data..but in the new page i am seeing all the remaining portlets as well..P1(with new data),P2,P3,P4 portlet..
    But i need to see only the JSP page with my new content..please help me with this..
    Here is the code...what i have written
    INDEX.JSP
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <html:link action="/sayActionHello" target="_blank">My Link</html:link>
    </body></html>
    ACTION CLASS
    public class SayHelloAction extends Action {
         public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    System.out.println("Inside execute ................................");
    PortletRenderRequest pReq = (PortletRenderRequest)
         request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    ProviderSession pSession = pReq.getSession();
    if(null != pSession){
         System.out.println("Inside---pSession...........................");
         pSession.setAttribute("sample","Sample Data for Testing");
    return mapping.findForward("success");
    Provider.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>samstruts</name>
    <title>samstruts</title>
    <description>sample struts Portlet Description</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
    <defaultAction>/sayHello.do</defaultAction>
    </showPage>
    </renderer>
    </portlet>
    </provider>
    Strutss-config
    PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <action-mappings>
    <action path="/sayHello" scope="session" type="com.up.tey.SayHelloAction">
    <forward name="success" path="/jsp/index.jsp"/>
    </action>
    <action path="/sayActionHello" scope="session" type="com.u p.tey.SayHelloAction1" input="/htdocs/jsps/index.jsp">
    <forward name="success" path="/jsps/indexsample.jsp"/>
    </action>
    </action-mappings>
    </struts-config>
    Indexsample.jsp
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <h1>HELLO WORLD Sample using Struts !!!!!!<%=session.getAttribute("sample")%></h1>
    </body></html>
    In new window i am cing Indexsample.jsp inside my P1 portlet..But the remaining 3 portlets(p2,p3,p4) are also there..Which i dont want..Please Help..this is really very urgent for me..

    HI
    i am also facing same problem with session but in simple portlet with ajax implementation.
    i am setting session in portlet jsp with following code using oracle application server portal 10g.
    (here portlet jsp means which is included from portlet.)
    session.setAttribute("map",map);(here session is implicit object )
    i want to call ajax jsp from portlet jsp with below code.(i.e setting session in portlet jsp and accessing in ajax jsp)
    var url = "<%=renderRequest.getContextPath()%>/AjaxProcessRequest.jsp?q=" + random;
    var pars = '&namespace=<portlet:namespace/>' +'&imagesPath=' + '<%=imagesPath%>';
    var myAjax = new Ajax.Updater(
    {success: 'emailbody'},
    url,
    method: 'get',
    parameters: pars,
    onFailure: reportError,
    evalScripts: true
    i am accessing map object from session in my AjaxProcessRequest.jsp as shown in below code.
    Map map=(Map)session.getAttribute("map"); (here session is implicit object )
    here map object is getting null from session.
    Please help on this if u know about this session.
    Regards
    Raju

  • Link inside tableview iterator

    Hi Experts,
    I kept a link inside tableview iterator it is working fine, when i click the link it shows error, i cant understand it.
    The error is
    The following error text was processed in the system:
    BSP Exception: Das Objekt targetbspapplication/page.htm in der URL /sap(bD1lbiZjPTgwMA==)/bc/bsp/sap/ztableview1/targetbspapplication/page.htm?link=WWW.SDN.SAP.COM ist nicht gültig.
    please help me to solve it.
    Thanks & Regards,
    Arun

    Hi Arun,
    You can try the method mentioned below:
    RENDER_CELL_START
    when 'ACTION'.
            if p_edit_mode is not initial.
              data: bee_table  type ref to cl_bsp_bee_table,
                       link       type ref to cl_htmlb_link.
              data: cell_id_del(20).
              cell_id_del = p_cell_id.
              create object bee_table.
              link ?= cl_htmlb_link=>factory( id = p_cell_id
                                               text = 'Modify Entries'
                                               on cli ck = 'modify').
              bee_table->add( element = link level = 1 ).
              p_replacement_bee ?= bee_table.
            endif.
    OnInputprocessing of BSP page:
    when 'modify'.
          gv_flg_tv_popup = 'X' .
          gv_matcode = gs_materials-matnr.
    In Layout:
    <%
      if gv_flg_tv_popup is not initial.
            %>
            <s cript type='te xt/ jav ascript'>
            var m atcode="<%= gv_matcode %>";
            windo w.open('tv_popup.htm?ma tcode='+ma tcode+'&end','my window','width=450,height=230,res izable=no');
            </s cript>
            <%
      clear gv_flg_tv_popup.
            %>
            <%
      endif.
            %>
    In the above code , I have a tableView in which last  column is a link.On Click of this link a new window is opened in whicn details of one material is displayed in tableview.on click of link OnInputprocessing is trigered and I read the row no for which link is clicked and the material numnber for that row.Now in OnCreate of popup window I fetch the data for that material and display it in the tableView.
    Regards,
    Anubhav

  • Ios7 bookamrking web application to home screen via Safari crashes after login and when we try to open any link inside. Can anyone please tell me if there is any scheduled fix for this bug in safari?

    ios7 bookmarking web application to home screen via Safari, crashes after login and when we try to open any link inside from the icon that gets created on the home screen. Can anyone please tell me if there is any scheduled fix for this bug in safari?
    From what i understand i see that - Cookies are not transferred between your website and your webapp when installing the icon on the home screen (for authentication purposes for example). It was working until 6.1 and now it’s not working anymore.
    Can someone please tell me if this bug will be fixed in any future release, if so the ticket number of some kind that i can track, or if there is a workaround for this issue?

    ios7 bookmarking web application to home screen via Safari, crashes after login and when we try to open any link inside from the icon that gets created on the home screen. Can anyone please tell me if there is any scheduled fix for this bug in safari?
    From what i understand i see that - Cookies are not transferred between your website and your webapp when installing the icon on the home screen (for authentication purposes for example). It was working until 6.1 and now it’s not working anymore.
    Can someone please tell me if this bug will be fixed in any future release, if so the ticket number of some kind that i can track, or if there is a workaround for this issue?

  • I am a innkeeper at a bed and breakfast. we use a third party web reservation site. is there any way i can link this website to my calendar to where all web bookings will be uploaded to my calendar. i have the most recent software on my mac

    I am a innkeeper at a bed and breakfast. we use a third party web reservation site. is there any way i can link this website to my calendar to where all web bookings will be uploaded to my calendar. i have the most recent software on my mac

    Hi,
    Does the website have a WebDAV feed of their calendar?
    John M

  • How can I make multiple popup links on one page?

    I was wondering if anyone had a simple code that will allow me to have multiple popup links on one page? I have no idea what to do.  Any help would be greatly appreciated.

    Give each an individual id like:
    <SCRIPT language="JavaScript1.2">
    function openwindow1()
    window.open("score_popup/wbc_slalom_running_order.html",
    "mywindow","location=1,status=1,scrollbars=1,width=600,height=525");
    .......... etc.
    and then:
    <p><a href="javascript: openwindow1()">WBC Invitational Slalom Event Running Order</a></p>
    View actual working page here:
    http://www.worldbarefootcenter.com/
    scroll to bottom of page to see pop-up links. View source code for complete details:
    Best wishes,
    Adninjastrator

  • Can you force a link inside a .pdf to open the "linked to" document in a new window?

    When I have a link inside my .pdf document - linking to another .pdf document or to a Word document - how can I force the linked-to document to open in a new window?
    I have a web site (business internal, so unfortunately I cannot point to it).  My HTML menu has links to .pdf documents - no problem.  However, once I open those .pdfs, they contain links to other .pdfs and to Word documents.  Clicking on these links, which reside inside my .pdfs, opens the "linked-to" docs in the same page.  How can I force them to open in a brand new frame?
    All of my .pdfs were originally created in Word, and in the Word versions, the links DO open into new frames.  I am not sure why, when I convert them to .pdfs, they lose this feature.
    Can anyone help?

    Hi Magenta,
    Would you mind reposting this question over on the Acrobat boards?  You've posted in the AIR forum and you'll have better luck with this over there.
    Thanks,
    Chris

  • How to get Page URL inside a JSR168 Portlet

    Hi,
    How can i get the Portal's page URL inside a JSR168 Portlet?
    All I can see in renderRequest Object is information about the portlet itself not about the page it is inside.
    Thanks,
    André

    Hi Andre
    Please see this note on My Oracle Support. 433507.1
    Hope that helps!
    AMN

  • Command Link inside of datatable

    I have the following problem when I put a command link inside a datatable.
    The action or actionlisteners never get called. Now here is the funny thing.
    1. If I move the action link outside the datatable it works.
    2. if I change the scope of the bean to session it works
    3. if the datatable contains more than 1 row it works
    The last one tells me this is a bug.
    To test this I change the sql query to limit the result so 1 row would be returned.
    The sql query returns a CachedRowSetImpl
    I believe this is a bug.
    <h:dataTable rows="6" first="0" id="table" binding="#{event.eventdata}" value="#{event.eventdetails}" var="eventdetail">
    <h:column>
    <h:commandLink value="#{eventdetail.title}" action="#{event.resaveEventaction}" actionListener="#{event.resaveEventdetails}" id="test" >
    </h:commandLink>     
    </h:column>
    <h:column>
    </h:dataTable>

    Here is some additional information that makes this more confusing.
    The following code is used to populate the datatable
    public CachedRowSetImpl getEventdetails(){
         CachedRowSetImpl rs2 = null;
         String selectedeventmy = selectedevent;
         int rowcount = 0;
         try { 
              sql = "SELECT * FROM event where eventid='"+selectedeventmy+"' ";
              rs2 = RunQuery.mysql(sql);
              rowcount = rs2.size();
         } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         return rs2;
    where RunQuery.mysql is
    public class RunQuery {
         public static CachedRowSetImpl mysql(String sql) throws Exception {
              CachedRowSetImpl crset = null;
              InitialContext initCtx = new InitialContext();
              Context envCtx = (Context) initCtx.lookup("java:comp/env");
              try {
                   DataSource ds = (DataSource) envCtx.lookup("jdbc/associations");
                   Connection conn = null;
         Statement stmt = null;
         conn = ds.getConnection();
         stmt = conn.createStatement();
         stmt.execute(sql);
         ResultSet rs = stmt.getResultSet();
         crset = new CachedRowSetImpl();
         crset.populate(rs);
         rs.close();
         stmt.close();
         conn.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
              return crset;
    if I replace the line
    String selectedeventmy = selectedevent;
    with String selectedeventmy = "61";
    it works properly.
    selectedevent is populated from the following triggered by another action event on another page. ? The funny thing is if the result set returns more that 1 row all works ok.
    public String viewDetails(){
         System.out.println("Running view Details");
         int selectedrow = eventlist.getRowIndex();
         Object selected = eventlist.getRowData();
         Map rowdata = (Map) selected;
         selectedevent = rowdata.get("eventid").toString();
         System.out.println("Selected Event:"+selectedevent);
         outcome="eventdetails";
         return outcome;
    }

Maybe you are looking for

  • Global Temp Table Not found - SSIS

    I am facing below error while using global temp table in SSIS. [OLE DB Destination [78]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37. An OLE DB record is available.  Source: "Microsoft SQL Server Nat

  • After Effect / Premiere Pro CC 2014 Video Importing Conflicts

    Why are my Adobe software packages not cooperating? PRes imported out of AE and into PPRO, but no die? Why? Today I have a brand new MacBook Pro, I also have Adobe CC installed, predominantly for PremierePro and After Effects. First issue - With ProR

  • Problem with external punchout in SRM Server 713

    Hello, We upgrade from SRM_SERVER 701 SP 04 to SRM_SERVER 713 SP 02, now we have a problem with external catalog, we did not change anything in standard call structure, however now when the user access to external catalog, select a product and "check

  • What's the difference between Java SE 6 Update 10 RC and JDK 6 Update 7

    I want to download jdk and do some java development. But I saw "Java SE 6 Update 10 RC" and "JDK 6 Update 7" are both there for me to download. I don't know which one should I download. I used to think JDK is Java SE. Can someone explain it to me? Gr

  • Process table full up with ssh_agent processes created by Terminal

    Every time I start a new shell using Terminal, a new ssh_agent process is started. (It's PID is not stored in the environment variable SSHAGENTPID.) The problem is that this ssh_agent process lives on after the shell process completes. Over time, as