How to determine the jspx page name in the EntityImpl Java Class

Hello, I'm new jdev programmer. I've come across a scenario that I haven't been able to figure out.
I have a small application with only two pages, but uses the same Entity class. I have two views (One view per page).
In the protected void doDML() method the Entity class, I want the custom logic I have in this method to fire if the call is coming only from a certain page.
Is there a way to determine which "Page" is active in this java class, so that I can do a simple if statement to check if this is the page, and then fire my custom logic in the method?
Thanks

I'll +1 Frank on this one.
There's been a few posts in the past few weeks like this, where I see people trying to access the view state in the model or vice-versa perhaps. I'd like to share one of my "tips and tricks" here:
Pretend that the model (your business components) and your view (the JSF page/ Swing app) are running on different machines (because they can!) You can physically deploy your model and your view on two separate machines; so, if you find yourself trying to get the view state in the model layer, or trying to grab a JDBC connection in the view layer - don't!
Hope this helps,
John

Similar Messages

  • How to force my Wiki Page Title to get the same value as the wiki page Name

    I am working on an enterprise wiki site collection, and currently each wiki Page will have two properties that seems confusing; Name & Title.
    While the default edit form allow to edit the Wiki Page Name only , it does not provide a way to edit the Title.
    So my question is about how I can update the Wiki Page title to be always equal to the Wiki Page name that the user enters?
    For example when I first create a wiki page I miss-spell the word “Bookmark”, so I wrote the following for the wiki page name:-
    Add Bokkmarks Within a Wiki Page.
    Then I edit the page and I change the name to have a correct spelling, so currently I got the following , where the title is still having the wrong spelling:-
    So that why I am want to find a way to always update the page title to be equal to the page name? can anyone advice on this please?
    Thanks

    Hi
    You can add custom event handlers for doing the same
    The details can be referred in the links
    http://www.c-sharpcorner.com/uploadfile/Chandresh.P/implementing-event-handler-in-sharepoint/
    http://blogs.msdn.com/b/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx
    Thanks
    Girish
    so is there an option in sharepoint that allow me to set the value of a site column to be equal to another value ,, without having to write code ?

  • How to get the presentation node name at the page title?

    Hi,
    I am setting the title of any page dynamically at the framework/portal.jsp. In
    order to do this, I am doing:
    PageState pageState = PortalRenderHelper.getPageState(request);
    String pageName = pageState.getDisplayName();
    and displaying the page name in the title.
    Now, in order to have automated tests work correctly, I have to give a unique
    name to all the different presentation nodes. Thus, the title should be something
    like pageName:nodeName. How can I do that? Any suggestions?
    Thanks in advance.

    I think it possible to access that data through embedded java or by creating some custom java function.
    If you put this under Java Embedded activity you will recieve the name of the previous activity at runtime.
    try {     
    IInstanceHandle instance = getLocator().lookupInstanceByConversationId(getConversationId());
    IActivityHandle[] activities = instance.listActivities();
    addAuditTrailEntry(activities[ activities.length - 1 ].getLabel());
    } catch ( Exception e ) {    
    addAuditTrailEntry(e.getMessage());
    Note: In some situations lookupInstanceByConversationId doesnt work becouse [ i think ] the process is not yet in the db.
    Message was edited by:
    Bogumil Laska

  • How to get the jsp page name in jsp?

    how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
    thanks in advance.

    Try request.getServletPath()

  • Urgent, SOS for help: How to show the pdf file name at the right bottow of the page?

    I want to show the pdf file name at the right bottow of the page for filing purpose, anybody knows anything?
    I know it can be showed at the left bottom through adobe printer, but i need it to be at the right bottom.
    thanks.

    The result is a UIWebView that displays a blank page. No errors occur in the UIWebView delegate method. The thing is that data has the correct length, in bytes, for the PDF I am trying to display, and I also get the pdf file in Library/Application Support/iPhone Simulator/4.3.2/Applications/ Does anyone have an idea as to what might be going wrong here or how I can better debug this problem?

  • When I open the "Save Page As" window, the drop-down box for the file name shows files that were saved long ago. This is not cleared by any "clear history" function that I can find. How do I clear this?

    # Question
    When I open the "Save Page As" window, the drop-down box for the file name shows files that were saved long ago. This is not cleared by any "clear history" function that I can find. How do I clear this?

    Hello.
    I believe this is a Windows related issue, since it's the windows Save File manager we're talking about here (right?). You should contact Microsoft for help on that one, I believe. You'd expect to be able to delete the entries by simply tapping ''Delete'' on your keyboard when they are focused (that's how it goes for deleting specific form autocomplete entries in Firefox), but I haven't tried that.
    I'm sorry I can't be of more help.

  • How to get the Portal Page name from PLSQL?

    Can anyone tell me how to get the portal page name from my dynamic page using plsql?
    Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
    My code for attempting to get the page id is below.
    <oracle>
    declare
    v_pageid varchar2(30);
    begin
    v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
    htp.print('Page is '|| v_pageid);
    end;
    </oracle>
    Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
    Thanks in advance!
    Sarah

    Few clarifications -
    1. wwpro_api_parameters cannot be used to get default portal
    page parameters such as '_pageid', '_dad', '_schema' etc.,
    2. Page information can be obtained through any components which
    are available in that particular page. For example, in case of
    dynamic page, we need to publish it as a portlet and add it to the
    page. This process creates necessary packages in the DB, but we
    will not have access to the portlet methods.
    So, I would prefer creating a simple DB provider & portlet and access
    page title from its show method as follows -
    //Declare local variable l_page_id, l_page_title as varchar2
    select page_id into l_page_id from wwpob_portlet_instance$ where
    portlet_id = p_portlet_record.portlet_id and
    provider_id = p_portlet_record.provider_id;
    select name into l_page_title from wwpob_page$ where id=l_page_id;
    More information on DB provider can be found at
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
    Secondly, usage of wwpro_api_parameters.get_value method is
    incorrect. This method expects two arguments -
    <ul>
    <li><b>p_name : </b> The name of the parameter to be returned.</li>
    <li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
    </ul>
    p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
    The following code fragment fetches all parameters available
    for a portlet.
    Note : Copy this code into 'show' method of your portlet.
    //Declare l_names, l_values as owa.vc_arr
    * Retreive all of the names of parameters for this portlet
    l_names := wwpro_api_parameters.get_names(
    p_reference_path=>p_portlet_record.reference_path);
    * Retreive all of the values of parameters for this portlet
    l_values := wwpro_api_parameters.get_values(p_names=>l_names,
    p_reference_path=>p_portlet_record.reference_path);
    //Loop through these arrays to get parameter information
    htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
    htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
    htp.tableRowClose;
    if l_names.count = 0 then
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.p('<td COLSPAN="2">'
    ||wwui_api_portlet.portlet_text(
    'No portlet parameters were passed on the URL.',1)
    ||'</td>');
    htp.tableRowClose;
    else
    for i in 1..l_names.count loop
    htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
    htp.tableData(l_names(i));
    htp.tableData(l_values(i));
    htp.tableRowClose;
    end loop;
    end if;
    htp.p('</table></center>');
    Hope it helps...
    -aMJAD.

  • How to remove the caching in the jspx page?

    I have few links in a jsp page through which i can navigate to jspx pages. In one of the jspx pages there are few drop downs of whose options will be populated from database. when I select a value from the drop down (values are prepopulated in the drop down), then go to the jsp page and visit the jspx again through the link, (without closing the browser) the value which i selected previously is selected as a default value. Why this is happening? Is there anything to be set to remove the caching?
    Thanks in advance
    Uday

    I have an application which uses JSP - only welcome page, ADF Faces, Spring, Hibernate technologies. The IDE I am using is NetBeans 5.5 bundled with Tomcat & JBoss.
    The welcome page (index.jsp) consists of normal html anchors - hyperlinks (2 Numbers) which each hyperlink would navigate the user to 2 individual jspx pages.
    Uday

  • Can I stop iWeb from putting a page name at the top?

    I don't want page names across the top in iWeb. I have a list of hyperlinked icons on the side for that.
    Can anyone tell me how to stop iWeb from putting the page name on the page?
    Thanks.

    The script is for the text in the browser title bar.
    The title is taken from the large textbox at the top of each webpage.
    If that box is missing or empty, iWeb uses a next textbox for the title.
    If that is missing too, the pagename is used for the title.
    If you want the title in the titlebar but not the large textbox on your page, select the textbox, do Cm-T and drag the font-size slider to the bottom.
    Then click the color next to the T-icon and drag that opacity slider to the left (0).
    Then resize the textbox to it minimun size and drag it out of view. And don't forget you did.
    But I think the OP means the navigation links at the top.

  • How can I insert multiple page contents in the page layout properly?

    I wanted to create 4 columns on the page layout. These 4 columns are of page contents.
    After creating new web page based on that page layout, I attempted to enter 4 different inputs on all 4 columns.
    Then, the result (from all columns) becomes the same.
    Image - edit the web page based on 4 columns page layout:
    Image - after edit & save:
    How can I insert multiple page contents in the page layout properly?

    First, I copied the HTML snippet for the Page Content on Sharepoint's Design Manger. The code of Page Content HTML snippet is shown below:
    <div data-name="Page Field: Page Content">
    <!--CS: Start Page Field: Page Content Snippet-->
    <!--SPM:<%@Register Tagprefix="PageFieldRichHtmlField"
    Namespace="Microsoft.SharePoint.Publishing.WebControls"
    Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0,
    Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <!--MS:<PageFieldRichHtmlField:RichHtmlField
    FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server">-->
    <!--PS: Start of READ-ONLY PREVIEW (do not modify)-->
    <div id="ctl02_label" style="display:none">Page Content</div>
    <div id="ctl02__ControlWrapper_RichHtmlField" class="ms-rtestate-field"
    style="display:inline" aria-labelledby="ctl02_label"><div align="left"
    class="ms-formfieldcontainer"><div class="ms-formfieldlabelcontainer"
    nowrap="nowrap"><span class="ms-formfieldlabel"
    nowrap="nowrap">Page Content</span></div>
    <div class="ms-formfieldvaluecontainer"><div class="ms-rtestate-field">
    Page Content field value. Lorem ipsum dolor sit incididuntet dolore.</div>
    </div></div></div><!--PE: End of READ-ONLY PREVIEW-->
    <!--ME:</PageFieldRichHtmlField:RichHtmlField>-->
    <!--CE: End Page Field: Page Content Snippet-->
    </div>
    After I published the page layout, I found the code for Page Content from its ASPX page. The code is shown below:
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/></div>
    So, I attempted to create 4 columns by using 4 HTML snippets of Page Content on the same page layout. The page layout is generated from HTML file to ASPX file.
    Then I edited some parts in ASPX page layout:
    <asp:Content runat="server" ContentPlaceHolderID="PlaceHolderMain">
    <table>
    <tr>
    <td style="width:70px;">&nbsp;</td>
    <td style="width:250px; text-align:right;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:40px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:175px;">&nbsp;</td>
    </tr>
    </table>
    </asp:Content>
    The 4 columns for Page Contents appeared on the web page when I created new page using that page layout. But the problem is that all 4 columns displayed the same result from 4th column.

  • How to include 2 jspx pages in one jspx page and should navigate each other

    Hi,
    How to include 2 jspx pages in one jspx page. When I click on submit button in one page I should able to display those values in another jspx page.
    Plz give me systax or any examples on this requirement.
    Thanks

    I divided one jspx page into 2 parts(Left and Right). In Left side part contain Tree component. Onclick on any node in Tree component, Include another jspx page in Right side. The included jspx contain one submit button. If I click on that button corresponding backing bean is not getting call.
    If I tested with individual pages its working fine. It is getting fail when ever I included jspx page into another.

  • How can i print all the tab pages not just the first page (tab)

    how can i print all the tab pages not just the first page (tab)

    You would need to do this programmatically. Here's one way:
    Attachments:
    Example_VI_BD6.png ‏3 KB

  • How-can-i-remove-my-skype-name-from-the-sign-in-sc...

    Guys this is absolute rubbish feature of the login application where people's login names get recorded in the dropdown menu. Is there any more permanent way of getting rid of this annoying privacy intrusive "feature"? I would like to have a profile with a username that is not going to appear at airports and my grandma's laptop after I log out of skype and no I do not want to go digging for app files to remove my entire history on each and every machine I use as suggested by your help files. Could you please advise if I'm missing something here?
    https://support.skype.com/en-gb/faq/FA11070/how-can-i-remove-my-skype-name-from-the-sign-in-screen-i...

    Unfortunately, the option to remove that feature is not available.  
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • How can I remove old calendar names from the iTunes sync list?

    I gave my calendars new names as part of reducing the total number of calendars in my iCal, and now iTunes still lists the old calendar names as well as the new ones in its "selected calendars" list, even though these names are no longer present in my iCal nor on my iPod Touch. How can I remove the old calendar names?

    The "genius" folks at the Apple Store lived up to their names. The key was to reset the iSync history in the iSync Preferences.

  • Unable to debug the jspx page on Jdeveloper Studio Edition Version 11.1.1.6.0, Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1, using Windows 7 OS

    Hi,
    I am unable to debug the jspx page on Jdeveloper Studio Edition Version 11.1.1.6.0, Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1, using Windows 7 OS.
    When right click on jspx page , clicks on Debug option, it gives the following error:
    Debugger unable to connect to local process.
    [Server Instance IntegratedWebLogicServer is shutting down.  All applications currently running will be terminated and undeployed.]
    I also restarted the Jdeveloper, even re-installed Jdev but still the problem persist.
    Any help is appreciated.
    Thanks in advance.

    If the jspx page is not part of the adfc-config.xml the page can only be displayed, but the tags will not work as the adf life cycle  is not involved. drag te page onto the adfc-config.xml (the unbounded task flow), right click on it and select debug from the context menu.
    Main problem is : Weblogic server cannot be started in debug mode.
    To check this, open the application navigator, select the integrated server, right click on it and select 'debug' from the context menu.
    After a short time you should see some messages and at last you should see <Runnning> in the message log. Now the server runs (without any of your applications, but it runs).
    If you done't see the 'Running' message you should see an error, which you should post here.
    Timo

Maybe you are looking for

  • Can I make a photo collage with iphoto

    Trying to find an easy way to make a photo collage.  Can I do this in iPhoto?

  • Sony Vaio Laptop Won't Turn On

    I have a Sony Vaio laptop that turns off every time I turn it on. I have taken it in for repairs and they can't that nothing is wrong with it and they can turn it on. They even run diagnostics and have opened it up and can't find a problem. I did upd

  • ITunes not saving password

    Since iTunes 9 it doesn't save the password on iPhone or pc. Please advise.

  • Issues with iMovie in viewing

    I am getting weird playback issues with movies I've added to a project. My movie is like 40 minutes long. When I try to watch the finished product or put finishing touches on it, after hitting space bar the video skimmer moves, but the video preview

  • Global Users Table

    Good afternoon, I wasn't sure what to enter in the subject line, so as you see I used "Global Users Table". It doesn't completely convey what my question is, so I'll try to explain better. We perform custom authentication in our Apex apps. Currently,