BP for "Non Portlet" pages

What is the best practice for organizing pages (static or dynamic) that are not
portlet pages? For instance, "Contact Us" type pages that we want to be 'in the
portal' but not necessarily as a portlet? do they necessarily need a webflow?
what is contactUs.jsp posts to processContact.jsp?
thanks

We had the same issue. Had non-portal pages that we wanted the same header/footer/leftnav/stylesheets
of the general page.
you can do something like this:
1. Create a new portal page in ebcc...call it general or something.
2. Create a layout that is just a 1x1 table. This will store only one portlet
that takes up the entire page (except for the header, etc).
3. Create a portlet that will go in the new layout. Create a simple JSP (call
it general.jsp) that goes in the portlet.
4. This new general.jsp can take a single param that is the real jsp it should
render. The general.jsp can just forward to the real jsp.
links to these non-portlet pages are now just change portal page calls that pass
an extra arg that is the JSP to render.
that's just one suggestion.
will
"Steve Lewis" <[email protected]> wrote:
>
Well, if you're just getting into Portal, use 7.0. WF is much more stable
with
this version. You can structure it any way you want, we have
/sampleportal
/sampleportal/portlets
/sampleportal/portlets/portlet1
/sampleportal/portlets/notportlet2
/sampleportal/common
/sampleportal/framework
That sort of thing.
Basically for anything that's NOT on the front portal page, you do yourself.
Layout, look/feel, the whole shebang. We include /framework/header.jsp
in our
non-portlets just to have the same header across all pages.
Steve
"kurt" <[email protected]> wrote:
so, can you give an example of how you've structured this sort of thing?
what does
a portal without webflow look like? or are you saying to are movingaway
from
the portal?
i'm really interested in where you keep the files and how you manage
the headers,
footers, and page "entitlements" for non portlet content
thanks,
"Steve Lewis" <[email protected]> wrote:
They don't necessarily need a webflow. Some of our stuff uses webflow,
but some
of our stuff doesn't. We're moving away from WF ourselves.
Steve
"kurt" <[email protected]> wrote:
What is the best practice for organizing pages (static or dynamic)
that
are not
portlet pages? For instance, "Contact Us" type pages that we want
to
be 'in the
portal' but not necessarily as a portlet? do they necessarily needa
webflow?
what is contactUs.jsp posts to processContact.jsp?
thanks

Similar Messages

  • CS3 loses css formatting in design view for non-templated pages

    We recently upgraded to CS3. All of the pages on our site are
    templated except the home page. The home page, when viewed in
    design view in Dreamweaver, looks as if the css styles are missing.
    Sometimes refreshing the view causes some of them to appear, but
    not all. This didn't happen in the old version. And it's not
    happening (so far) on our templated pages. Any ideas?

    DW6x was not the sharpest knife in the drawer and would
    tolerate lots of
    things that DWCS3 will not.
    I suggest you do the following -
    * Change your doctype from this one (inserted by DMX6x, and
    broken) -
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    to this one (valid and complete - the way DMX6x *should* have
    done it) -
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    Now your page will render in Standards mode, and not quirks
    mode (a very bad
    thing).
    * Change this (in your stylesheet) -
    vertical-align: top;
    end FedFAQ
    /* ********************** COLLAPSE/EXPAND MENUS
    to this -
    vertical-align: top;
    /* end FedFAQ */
    /* ********************** COLLAPSE/EXPAND MENUS
    I am sure that by doing this you will see a remarkable change
    in your
    page....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "abna" <[email protected]> wrote in message
    news:f9fopl$it9$[email protected]..
    >
    http://dallasfed.org/index.cfm
    >
    > (tried to attach the code in the message, but kept
    getting error messages
    > from this site)

  • How do you extract non consecutive pages from a pdf document. I can highlight in thumbnails but only extract consecutive.

    How do you extract non consecutive pages from a pdf document?
    I see its easy to do it with consecutive pages by highlighting thumbnails then 'extract' but this does not allow for non consecutive pages.
    Thank you

    After highlighting the pages you can drag them and drop them somewhere,
    like on the desktop, and a new file will be created with just those pages.
    If highlighting the pages is not feasible, or too tricky to do, then a
    script can be used where you specify which pages to extract and the script
    extract them to a new file.

  • One save for multiple portlets in a page.

    Hi,
    I have 3 portlets in 1 page. All the portlets are having individual "Save" button to save some information in individual portlets. I need to create a new "Save" button which does the work of all these 3 Save buttons in one shot. Basically my new "Save" button should be able to save the information of all the 3 different portlets at once!Can we do this? If yes then how ?Need it urgently!
    Thanks in advance,
    Adi...

    If you are still looking for the solution....
    I think this can be done by declaring same named action in all three pageflows. And write code individually as to do the logic for each portlet respectively in their pageflows. The most important and third step is making portlet2 and portlet3 listen to portlet1. (This can be done by double-clicking portlet and entering the instance label of portlet1 in listenTo field. This has to be done for both portlet2 and portlet3.) This will make the control to execute the action in portlet1, portlet2 and portlet3 in that order whenever any of the save buttons is invoked.
    --SJ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error in configuring Custom Error Pages for Faces Portlets

    According to
    http://e-docs.bea.com/wls/docs92/schemaref/controls-netuix/http.www.bea.com.servers.netuix.xsd.controls.netuix.1.0.0/element/facescontent.html
    you can specify an errorUri attribute on the facesContent object for the error page.
    <netuix:facesContent contentUri="/testList.jsp" errorUri="/error.jsp"/>
    WebLogic Workshop even allows setting this in the tool.
    However, the errorUri never gets picked up and the following error shows up.
    <BEA-423266> <No setter for property :: errorUri.>
    Anyone faced this problem. Is there any other alternative to specify a custom error page for JSF portlets.
    Please note that the errorUri works fine for the jspContent tag used for JSP Portlets.

    Hi Sanjeev,
    You need to check if you have access to AXF_CONFIGS table. Check if you have ran GRANT_ACCESS.sql script which has below grant commands.
    grant execute any type to apps;
    grant create type to AXF;
    grant select on AXF.AXF_CONFIGS to apps;
    v_formId AXF_CONFIGS.FORMID%TYPE; means tableName.columnName%type;
    so looks like when you are running AXF_EBS_SOLUTION_DATA.sql you are not able to access AXF_CONFIGS table.
    Hope this helps.
    Regards,
    Amol Gavali.

  • How to hide the page ribbon and quichlaunch for non admin users

    HI
    1 ) how to hide the ribbon in a page in sharepoint 2010 for non administrator users  
    2) how to hide quicklaunch also for non admin users
    in quick lanuch i want to hide links for all site content also.
    i used Document Center Template to create my web application.
    adil

    HI
    i did not get how i use this control 
    <Sharepoint:SPSecurityTrimmedControl
    runat="server"
    PermissionsString="FullMask">
    2
      <div>
    3
        <SharePoint:SPLinkButton
    id="idNavLinkViewAll"
    runat="server"
    NavigateUrl="~site/_layouts/viewlsts.aspx"
    Text="<%$Resources:wss,quiklnch_allcontent%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/>
    4
      </div>
    5
    </SharePoint:SPSecurityTrimmedControl>
    adil

  • Portlet page names

    Ok I think I'm on the right newsgroup now.
    Subrahmanyam,
    My question back to you. Who do you login in as? I am logging in as administrator.
    -Travis
    Subject: Re: portlet page names.
    Date: Mon, 22 Apr 2002 10:15:29 -0600
    From: Subrahmanyam Allamaraju <[email protected]>
    Newsgroup: weblogic.developer.interest.personalization
    Travis,
    You can change the display names via the JSP tools. Login to the tools, and select
    the portal for the "everyone" group. The procedure is the same as for group portals.
    In future, please post all WLP related questions to the weblogic.developer.interest.portal
    newsgroup.
    Sincerely,
    Subbu
    travis wissink wrote:
    I have a question regarding portlet names. Referring to the stockportal that comeswith portal server, I notice that the name for one of the portlets is "About Avitek."
    In the ebcc the portlet is identified as "AboutAvitek." So, I am wondering how the
    space got in the middle of the two words. I found that in the PORTLET_P13N table
    that the value in the Display_Name column was the "About Avitek." I would like to
    control the title bar name of the portlet for non-logged in users. Has anyone else
    notices and overcome this issue? My desired goal is to allow the ebcc user to control
    the title bar name through the ebcc. Any suggestions would be most appreciated.

    Travis,
    I just spoke to the engineer working on this for the 4.1 release and it has
    already been implemented. If you want to do some custom coding I think you
    can also write a JSP that exposes the API methods to your users to change
    the display name.
    http://edocs.bea.com/wlp/docs40/javadoc/wlp/index.html
    Sincerely,
    Daniel Selman
    "travis wissink" <[email protected]> wrote in message
    news:3cc46327$[email protected]..
    >
    Dan,
    Actually, I think the "display-name" is the more appropriate element toedit.
    >
    This is a bummer; this appears so naturally for the example, when in factits going
    to be nearly impossible for a "Business User" to edit such a file. Iguess my main
    request to the EBCC group is if there is an option in any of theassociated schema's,
    e.g. the "display-name" element in the portal-1_0.xsd schema, then providea way
    to edit it via the EBCC.
    Thanks,
    Travis Wissink
    "Daniel Selman" <[email protected]> wrote:
    Travis,
    It looks like you are going to have to edit the XML by hand to introduce
    the
    space into the portlet-name. E.g.
    <portlet-name>ReviewNewsletters</portlet-name>
    goes to:
    <portlet-name>Review Newsletters</portlet-name>
    I will take this up with the EBCC engineers and file a CR. Please let me
    know if this does not solve the problem.
    Thanks (and sorry),
    Daniel Selman
    "travis wissink" <[email protected]> wrote in message
    news:3cc45bd8$[email protected]..
    Subbu,
    I've been all over the ebcc. Even inside of the xml files. Nowhere dois
    see the
    possibility of manipulating the "Display Name" of the portlets in theebcc
    at all.
    Of course when you create a new portlet you can name it but that namehas
    restrictions
    against it, e.g. no spaces.
    Do you know specifically where I can manipulate that attribute in theebcc?
    -Travis
    Subrahmanyam Allamaraju <[email protected]> wrote:
    Sorry for mt wrong answer. You've to do this via the EBCC. Check the
    default portal configuration.
    Sincerely,
    Subbu

  • I am having trouble viewing iStore. It appears as if its a Flash issue, as several minutes after logging in to iStore I get a non-flash page of iStore in my iTunes window. I have re-installed everything and tried opening all ports in router....any ideas?

    I am having trouble viewing iStore. It appears as if its a Flash issue, as several minutes after logging in to iStore I get a non-flash page of iStore in my iTunes window. I have re-installed everything and tried opening all ports in router, and used msconfig to bring up each service individually to see if there is an effect.Flash and iTunes have been re-installed  ...any ideas?

    I agree. I don't rely on iCloud as a backup, that is what I have my portable hard drive for. Its 500 GB so I can hold my entire iTunes library several times over on it. I have all my movies on my hard drive, but somehow "The Mist" got deleted off of my hard drive, so I figured "Well, the option to redownload an already purchased movie is available through iCloud, I'll just do that!"
    And permissions and download availability have nothing to do with it, the movie's still there, it still allows me to redownload it. The only problem is when I click download, I get that message.
    And nobody else uses my computer, but I do have multiple accounts authorized on it. Even still though, I am attepmpting to download it through the account I purchased it under. :/

  • Can I import HTMLs from inside the project and use as portlet page ?

    As you know, I am using Java Studio Creator 2 Update 1 for my current portal project. I have created JSR-168 JSF Portlet Project for my portlet development.
    As I have some html pages ready for my development,
    Can I import HTMLs from inside the project and use as portlet page for my project?
    I did the followings steps:
    1: In side the project - File -> Add Existing Item -> Web Page ( imported test.html page from my local folder)
    2: Let it convert some of the tags for me ( so now it becomes - �test.jsp� )
    3: Set it to initial view.
    4. A default portlet page � newPortletPage.jsp is still there with no initial view.
    Now after doing this, No Visual Designer and Properties window available to for that �test.jsp� page. Though it allowed me to �build� the project successfully.
    When I build and run the portlet application, got the error message �Error occurred in portlet!� on Pluto Portal. Please advice.

    You do not open fcpproject files. You don't double click or anything else. The files have to be in the correct folder structure in the Final Cut Projects folder and the application opens them automatically. Can you post screen shots of the Final Cut Projects folder and its location.

  • ArchWiki: suggestion for a new page layout

    Finally, I have some time to spare for ArchWiki improvement.
    I have modified my article on CMYK support in The GIMP as an example.
    Please take a look at it here:
    http://wiki.archlinux.org/index.php/CMY … n_The_GIMP
    The code to produce the box on the right is here:
    {{sn|'''Article summary:'''
    This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images.
    It will also cover more general topics on CMYK colors and DTP.
    '''Required software:'''
    *[http://www.gimp.org/ The GIMP The GIMP]
    *[http://www.littlecms.com/ lcms]
    *[http://download.adobe.com/pub/adobe/iccprofiles/win/AdobeICCProfiles_end-user.zip Adobe ICC profiles]
    *[http://www.blackfiveservices.co.uk/separate.shtml Separate plugin source]
    '''Related article:'''
    *[[Using lprof to profile monitors]]
    This is the best we can do with current ArchWiki setup. It would be even better if we could list categories in the box, as well as i18n links.

A: ArchWiki: suggestion for a new page layout

dtw wrote:Doesn't display correctly in IE
I've been tinkering with the templates. It's fixed now, I think.
Anyway, the templates used for the job can be seen from the code:
{{Article summary start}}
{{Article summary text|This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images. It will also cover more general topics on CMYK colors and DTP.}}
{{Article summary heading|Translations}}
{{i18n_entry|Deutsch|CMYK support in The GIMP(Deutsch)}}
{{i18n_entry|English|CMYK support in The GIMP}}
{{i18n_entry|Español|CMYK support in The GIMP(Español)}}
{{i18n_entry|Finnish|CMYK support in The GIMP(Suomi)}}
{{i18n_entry|Français|CMYK support in The GIMP(Français)}}
{{i18n_entry|Nederlands|CMYK support in The GIMP(Nederlands)}}
{{Article summary heading|Required software}}
{{Article summary link|The GIMP (v2.0 and above)|http://www.gimp.org/}}
{{Article summary link|lcms (v1.15 ?)|http://www.littlecms.com/}}
{{Article summary link|Separate plugin (v0.10 and above ?)|http://www.blackfiveservices.co.uk/separate.shtml}}
{{Article summary heading|Related articles}}
{{Article summary wiki|Using lprof to profile monitors}}
{{Article summary end}}
As you can see, it's a bit more typing than before, but it sure looks better. I might shorten the names for the templates. I wanted to make them memorable so they are a bit long.
As you can see, the problem of i18n links integration was fixed, so you can use existing i18n template and combine with the new "Article summary" set.
I will modify the article about writing summaries to include those templates and examples.
EDIT:  :oops:  the i18n links in the article are just examples. Don't use them, since they lead to non-existing pages.
EDIT2: Okay, I've played around with the appearance of the summary box, but I'm at work now, so it's going nowhere. I'll play with it some more when I get home.

dtw wrote:Doesn't display correctly in IE
I've been tinkering with the templates. It's fixed now, I think.
Anyway, the templates used for the job can be seen from the code:
{{Article summary start}}
{{Article summary text|This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images. It will also cover more general topics on CMYK colors and DTP.}}
{{Article summary heading|Translations}}
{{i18n_entry|Deutsch|CMYK support in The GIMP(Deutsch)}}
{{i18n_entry|English|CMYK support in The GIMP}}
{{i18n_entry|Español|CMYK support in The GIMP(Español)}}
{{i18n_entry|Finnish|CMYK support in The GIMP(Suomi)}}
{{i18n_entry|Français|CMYK support in The GIMP(Français)}}
{{i18n_entry|Nederlands|CMYK support in The GIMP(Nederlands)}}
{{Article summary heading|Required software}}
{{Article summary link|The GIMP (v2.0 and above)|http://www.gimp.org/}}
{{Article summary link|lcms (v1.15 ?)|http://www.littlecms.com/}}
{{Article summary link|Separate plugin (v0.10 and above ?)|http://www.blackfiveservices.co.uk/separate.shtml}}
{{Article summary heading|Related articles}}
{{Article summary wiki|Using lprof to profile monitors}}
{{Article summary end}}
As you can see, it's a bit more typing than before, but it sure looks better. I might shorten the names for the templates. I wanted to make them memorable so they are a bit long.
As you can see, the problem of i18n links integration was fixed, so you can use existing i18n template and combine with the new "Article summary" set.
I will modify the article about writing summaries to include those templates and examples.
EDIT:  :oops:  the i18n links in the article are just examples. Don't use them, since they lead to non-existing pages.
EDIT2: Okay, I've played around with the appearance of the summary box, but I'm at work now, so it's going nowhere. I'll play with it some more when I get home.

  • How to set value in SupplierLov on Non-Catalog page when value is via hashm

    Hi ,
    I have created a link above the supplier name Lov field .
    Click on the link opens a custom page which shows some supplier records based on business validation.Now I selected one record on custom page and clicked on select .--This forwardsImmediately back to non-catalog request page with hashmap carring supplier name.Now I want to populate the Supplier Lov field with this supplier name .
    I tried below option
    OAMessageLovInputBean mlib = (OAMessageLovInputBean) webBean.findIndexedChildRecursive("SupplierOnNonCat");
    mlib.setValue(pageContext,VendorName);
    The value gets populated in the field but actually I feel its not the selected value as per behaviour of supplier Lov ..because when I immediately tab out of that field and try to select a supplier site it gives error message on the screen mentioning to first
    select the Supplier Name criteria and then only you can select the site .
    Please advise as how can I automate this process
    Regards,
    Chandu

    I tried the option a below
    RequisitionAMImpl reqAM = (RequisitionAMImpl)pageContext.getApplicationModule(webBean);
    NonCatalogRequestVOImpl nonCatalogRequestVO =reqAM.getNonCatalogRequestVO();
    NonCatalogRequestVORowImpl noncatRequestRow = (NonCatalogRequestVORowImpl)nonCatalogRequestVO.getCurrentRow();
    noncatRequestRow.setSupplierName(VendorName);
    Still when i click on the Supplier Site torch on Non catalog page i get the message
    Error
    You must enter a value for SupplierName as criteria for the List of Values.
    Please advise.

  • Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an er

    Urgent help please, I made an file with the size 1024x768, then i made two folios, one for retina 2048x1536 and one for non retina 1024x768, i have alot of video content in it, everything works perfect on my retina ipad, but when i open it on ipad 2 an error appears on the pages with video content?

    its in german:
    der Vorgang könnte nicht abgeschlossen werden.
    something like the process coundnt be completed

  • Custom edit form for my Wiki Page library with only "Page Name" field included

    I want to create a new custom edit form for my Wiki page library, and to only allow users to edit the Page name inside the edit form. now i created a new Edit form using SharePoint Designer , and i select the Enterprisewiki content type for it , which generates
    the following markup :-
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListFormPageTitle runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <span class="die">
    <SharePoint:ListProperty Property="LinkTitle" runat="server" id="ID_LinkTitle"/>
    </span>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    <div style="padding-left:5px">
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    <table class="ms-core-tableNoSpace" id="onetIDListForm">
    <tr>
    <td>
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:DataFormWebPart runat="server" EnableOriginalValue="False" DisplayName="Customer Service KB" ViewFlag="1048584" ViewContentTypeId="" Default="FALSE" ListUrl="" ListDisplayName="" ListName="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" ListId="6a6ece84-4d39-48e2-bd6a-c20b2ac6355b" PageType="PAGE_EDITFORM" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" NoDefaultStyle="TRUE" InitialAsyncDataFetch="False" Title="Customer Service KB" FrameType="None" SuppressWebPartChrome="False" Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" DetailLink="" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="True" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_f1c88e12_e91d_4300_91f2_62f0bd7825fb" ChromeType="None" ExportMode="All" __MarkupType="vsattributemarkup" __WebPartId="{F1C88E12-E91D-4300-91F2-62F0BD7825FB}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><DataSources>
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" SelectCommand="&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ContentType&quot;/&gt;&lt;Value Type=&quot;Text&quot;&gt;Enterprise Wiki Page&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;" UseInternalName="True" UseServerDataFormat="True"><SelectParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </SelectParameters><UpdateParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </UpdateParameters><InsertParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </InsertParameters><DeleteParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </DeleteParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">&apos;</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">ListForm</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
    <div>
    <span id="part1">
    <table border="0" width="100%">
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows"/>
    </xsl:call-template>
    </table>
    </span>
    <SharePoint:AttachmentUpload runat="server" ControlMode="Edit"/>
    <SharePoint:ItemHiddenVersion runat="server" ControlMode="Edit"/>
    </div>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton1"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton1"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:FormToolBar runat="server" ControlMode="Edit"/>
    <SharePoint:ItemValidationFailedMessage runat="server" ControlMode="Edit"/>
    </td>
    </tr>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowedit"/>
    </xsl:for-each>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td class="ms-descriptiontext" nowrap="nowrap">
    <SharePoint:CreatedModifiedInfo ControlMode="Edit" runat="server"/>
    </td>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton2"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton2"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </xsl:template>
    <xsl:template name="dvt_1.rowedit">
    <xsl:param name="Pos" select="position()"/>
    <tr>
    <td>
    <table border="0" cellspacing="0" width="100%">
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Title (Display In Search)</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
    <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Standard<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="Edit" FieldName="Standard" __designer:bind="{ddwrt:DataBind('u',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Standard')}"/>
    <SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="Standard" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Document Type<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="Edit" FieldName="Document_x0020_Type" __designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Document_x0020_Type')}"/>
    <SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="Document_x0020_Type" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Departments<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff4{$Pos}" ControlMode="Edit" FieldName="Departments" __designer:bind="{ddwrt:DataBind('u',concat('ff4',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Departments')}"/>
    <SharePoint:FieldDescription runat="server" id="ff4description{$Pos}" FieldName="Departments" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Hide physical URLs from search</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff5{$Pos}" ControlMode="Edit" FieldName="PublishingIsFurlPage" __designer:bind="{ddwrt:DataBind('u',concat('ff5',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingIsFurlPage')}"/>
    <SharePoint:FieldDescription runat="server" id="ff5description{$Pos}" FieldName="PublishingIsFurlPage" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Page Content</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff6{$Pos}" ControlMode="Edit" FieldName="PublishingPageContent" __designer:bind="{ddwrt:DataBind('u',concat('ff6',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingPageContent')}"/>
    <SharePoint:FieldDescription runat="server" id="ff6description{$Pos}" FieldName="PublishingPageContent" ControlMode="Edit"/>
    </td>
    </tr>
    <tr id="idAttachmentsRow">
    <td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    <SharePoint:FieldLabel ControlMode="Edit" FieldName="Attachments" runat="server"/>
    </td>
    <td valign="top" class="ms-formbody" width="80%">
    <SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="Edit" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('u','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    <script>
    var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    if (elm == null || elm.rows.length == 0)
    document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    </script>
    </td>
    </tr>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <tr>
    <td colspan="99" class="ms-vb">
    <span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span>
    </td>
    </tr>
    </xsl:if>
    </table>
    </td>
    </tr>
    </xsl:template>
    </xsl:stylesheet> </Xsl>
    <DataFields>
    </DataFields>
    <ParameterBindings>
    <ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="0"/>
    <ParameterBinding Name="weburl" Location="None" DefaultValue="http://sharepointdev:12341/sites/wiki1"/>
    <ParameterBinding Name="ListID" Location="None" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}"/>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    </ParameterBindings>
    </WebPartPages:DataFormWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </td>
    </tr>
    </table>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    </div>
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:DelegateControl runat="server" ControlId="FormCustomRedirectControl" AllowMultipleControls="true"/>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server"><ContentTemplate>
    <SharePoint:CssRegistration Name="forms.css" runat="server"/>
    </ContentTemplate></SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleLeftBorder" runat="server">
    <table cellpadding="0" height="100%" width="100%" cellspacing="0">
    <tr><td class="ms-areaseparatorleft"><img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" /></td></tr>
    </table>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
    <script type="text/javascript" id="onetidPageTitleAreaFrameScript">
    if (document.getElementById("onetidPageTitleAreaFrame") != null)
    document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator";
    </script>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
    <SharePoint:StyleBlock runat="server">
    .ms-bodyareaframe {
    padding: 8px;
    border: none;
    </SharePoint:StyleBlock>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyLeftBorder" runat="server">
    <div class='ms-areaseparatorleft'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaSeparator" runat="server"/>
    so from the above  markup  the name field is not part of the edit form,, i think this is because the Name is part of the Document content type and not part of the enterprisewiki content type .. so is there a way to add the name field to the edit
    form ?.
    second question, the edit form will show all the content type fields such as ; standard, document type, department , title (display in search), etc   so what is the best way to remove these fields from the custom edit form ?

    Hello John,
    This can only be done by adding VBScript to the form. It would basically be:
    Sub Item_Open() 
    Item.GetInspector.SetCurrentFormPage "P.2"
    End Sub
    ... where "P.2" would be what you named the page you want to display first.

  • How to change background image for each individual page in a template?

    I've been working for hours to try to figure out how to change the background image for each individual page in a template.  I have tried making a div in the body and adding a CSS and setting a background picture.  Unfortunately even after I made it editable all templated webpages changed.  I tried looking at different forum results which didn't really help me out. http://forums.adobe.com/message/2670005#2670005#2670005.  I've also tried embeding a CSS style on the webpage instead of the external CSS which again didn't work.  I'm not sure where to go from here.  Is there a good video that explains this clearly.  Please help.  Thanks.

    Adjust inline styles to suit your needs.
    <li><a tabindex="-1" href="giving/index.html" class="MenuBarItemSubmenu" style="background:none; color:#FFF; background: #000;">GIVING</a>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Pagination support for non-Oracle databases?

    Hi,
    I just read this thread (Pagination Support on pagination support. Is there any way to get pagination with non-Oracle databases? We are using an IBM iSeries / AS/400 DB2 database right now, and we're planning to use some local lightweight database in the near future as well (probably Cloudscape/Derby or "IBM Everyplace database".)
    We currently use code like this:
    String sql = "SELECT art FROM Artikel art" +
                /* dynamically generated where statement is added here */
                + "ORDER BY art.artikelNummer";
    Query q = em.createQuery(sql);
    q.setFirstResult(firstResult);
    q.setMaxResults(maxResults);If I look in the TopLink logs, I see queries like this:
    SELECT ARTNR, ARALT, ARAFJ, ARXII, ARAVJ, ARXIV, ARANJ, AHGCD, ARNVJ, ARCRJ, ARARK, ARFKJ, ARTNK, ARGP1, ASGCD, ARGP2, ARPR1, ARGP3, ARPR2, AREX1, ARPR3, AREX2, ARPR4, AREX3, ARASA, ARINA, ASSCD, ARIA1, ARBAN, ARIN1, ARBAV, ARIA2, ARBAK, ARIN2, ARCES, ARIA3, ARCDT, ARIN3, ARCRE, ARIA4, ARCWK, ARIN4, ARHBH, ARIA5, ARDFA, ARIN5, ARDFG, ARIA6, ARDOS, ARIN6, AREPW, ARINN, ARFOD, ARIAS, ARFOE, ARINS, ARFOF, ARNAB, ARFOI, ARNIB, ARFON, ARNIA, ARFOS, ARNN1, ARFTA, ARNA2, ARVIV, ARNO2, ARGAP, ARNN3, ARGPT, ARNA4, ARGPD, ARNO4, ARGPA, ARNN5, ARGPO, ARNA6, ARHIS, ARNN6, ARISP, ARNIO, ARKHM, ARNNS, MAGCD, AROVJ, MTGCD, ARPL1, ARMXM, ARPL2, MRKCD, ARPL3, ARMVR, ARVKJ, ARMIM, ARV12, ARMDT, ARVVJ, ARMTE, AR#VR, ARMTU, ARZLS, ARMTM, ARIAT, ARMWK, ARAVS, MPCCD, ARNVS, ARBTW, ARFJS, ARXI2, ARG2S, ARXI3, ARE1S, ARXI4, ARE3S, ARXI6, ARIB1, ARXI1, ARIB2, ARXI5, ARIB3, AROPI, ARIB4, ARPRV, ARIB5, SZGCD, ARIB6, ARSPC, ARINO, ARSMF, ARIOS, VEAAN, ARNIS, ARSYN, ARNO1, ARVR1, ARNA3, ARV1S, ARNN4, ARVR2, ARNO5, ARV2S, ARNIN, ARVR3, ARNOS, ARV3S, ARP1S, ARTFA, ARP3S, ARTFG, ARS12, ARUVC, ARZLD, ARUCW, ARAJS, ARBKV, ARCJS, ARVVI, ARG3S, ARVVP, ARINB, VPOCD, ARIO2, VPECD, ARIO4, ARVIH, ARIO6, ARVHG, ARNBS, ARVRW, ARNN2, ARVPR, ARNA5, ARVVR, ARNAS, ARVVS, ARP2S, ARVV1, ARSVV, ARZK1, ARNJS, ARNA1, ARNO3, ARIO1, ARNO6, ARIO5, AROJS, ARE2S, ARVJS, ARIBS, ARIAD, ARIO3, ARG1S FROM ART WHERE ((((ARUVC = 'N') AND (ARHIS = 'N')) AND (ASGCD = 7)) AND (AHGCD = 15)) ORDER BY ARTNR ASC
    (Yeah, I know we have too much columns in the table...)
    So, no pagination in the query. As you can see, we have a mechanism in place to dynamically generate a where clause. This is because the user can set filters. The problem is, if our user sets a filter that causes the result set to be significantly smaller, the performance is way better than when he sets no filter at all. We suppose this is because the whole result set is sent to TopLink, regardless of the values of firstResult and maxResults.
    We are using TopLink Essentials 2.1-10, by the way.
    Message was edited by:
    Bart Kummel

    Hi all,
    I'm trying to subclass <tt>DatabasePlatform</tt> to add pagination support for the AS/400 DB2 database of my customer. To be fair, it is not going very well so far.
    The first problem is, the query Chris found by googling (Re: Pagination support for non-Oracle databases?), does not work for AS/400s version of DB2. In fact, although it is called "DB2", the database on the AS/400 system is a whole other database than the "normal" DB2 database that runs on Windows and *nix. The AS/400 DB2 simply does not have a "ROW_NEXT" function.
    Another option would be to use the <b>row_number() over()</b> mehtod. But, as can be read here, this function is only available from version V5R4 of OS/400. And guess what? We're stuck on V5R3 at this client. (We cannot upgrade, because there's an application in use that's written in Delphi and IBM dropped the Delphi binding from V5R4...)
    So I pretty much ran out of options. On the mailing list I linked to above, someone mentions the option to make a sort of stored procedure that generates a row count number. An example of how to do this can be found here. I implemented it, and ended up with this code:
    package com.myclientsname.persistence;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import org.eclipse.persistence.expressions.ExpressionBuilder;
    import org.eclipse.persistence.internal.databaseaccess.DatabaseCall;
    import org.eclipse.persistence.internal.expressions.ExpressionSQLPrinter;
    import org.eclipse.persistence.internal.expressions.SQLSelectStatement;
    import org.eclipse.persistence.internal.sessions.AbstractSession;
    import org.eclipse.persistence.logging.SessionLog;
    import org.eclipse.persistence.platform.database.DatabasePlatform;
    import org.eclipse.persistence.sessions.SessionProfiler;
    public class AS400Platform extends DatabasePlatform {
        private static final long serialVersionUID = 0L;
        public AS400Platform(){
             super();
             super.setShouldBindAllParameters(false);
        public void printSQLSelectStatement(DatabaseCall call, ExpressionSQLPrinter printer, SQLSelectStatement statement) {
            int max = 0;
            int firstRow = 0;
            if (statement.getQuery()!=null){
                max = statement.getQuery().getMaxRows();
                firstRow = statement.getQuery().getFirstResult();
            if ( !(max>0) && !(firstRow>0) ){
                super.printSQLSelectStatement(call, printer,statement);
                return;
            } else {
                statement.setUseUniqueFieldAliases(true);
                ExpressionBuilder builder = new ExpressionBuilder();
                statement.addField(builder.getField("COUNTER() AS CNTR"));
                printer.printString("SELECT * FROM (");
                call.setFields(statement.printSQL(printer));
                printer.printString(") AS R WHERE R.CNTR >= ");
                printer.printParameter(DatabaseCall.FIRSTRESULT_FIELD);
                if ( max > 0 ){
                    // Use of binding parameters is not allowed here, so use
                    // String concatenation instead...
                    printer.printString(" FETCH FIRST " + max + " ROWS ONLY");
            call.setIgnoreFirstRowMaxResultsSettings(true);
        public boolean wasFailureCommunicationBased(SQLException exception, Connection connection, AbstractSession sessionForProfile){
            if (connection == null || this.pingSQL == null){
                //Without a connection we are  unable to determine what caused the error so return false.
                //The only case where connection will be null should be External Connection Pooling so
                //returning false is ok as there is no connection management requirement
                    //If there is no ping sql then we can not perform the ping.
                return false;
            PreparedStatement statement = null;
            try{
                sessionForProfile.startOperationProfile(SessionProfiler.ConnectionPing);
                if (sessionForProfile.shouldLog(SessionLog.FINE, SessionLog.SQL)) {// Avoid printing if no logging required.
                     sessionForProfile.log(SessionLog.FINE, SessionLog.SQL, getPingSQL(), (Object[])null, null, false);
                statement = connection.prepareStatement(getPingSQL());
                ResultSet result = statement.executeQuery();
                result.close();
                statement.close();
            }catch (SQLException ex){
                try{
                    // Had to add this check because of NullPointerExceptions
                    // (maybe a bug?)
                    if(statement != null){
                        //try to close statement again in case the query or result.close() caused an exception.
                        statement.close();
                } catch (SQLException exception2) {
                    //ignore;
                return true;
            }finally{
                sessionForProfile.endOperationProfile(SessionProfiler.ConnectionPing);
            return false;
    }(As you can see, I had to override the <tt>wasFailureCommunicationBased()</tt> method as well, due to some unexpected NPE's. (A bug, perhaps?))
    This code does work. However, the performance is not very well. The first page comes relatively fast, but as you browse further in the table, each page comes slower. I assume this is because the counter() method has to be evaluated for each row in the table.
    I have to get the performance better and constant. Does anyone have an idea how to optimize this further?
    Best regards,
    Bart Kummel

  • Maybe you are looking for

    • Finder window glitches

      I find that the finder windows (often in the background of Safari and other programs) will close and reopen all the time. The problem with this is if I'm looking for files and trying to do something in Finder, it totally interrupts me. Anyone else no

    • New iPad makes time capsule internet slower

      I currently have a time capsule as my internet router for an iPhone, iMac and MacBook Pro.  I also use the time capsule as a back up disk. I recently bought my husband an iPad 2 and have noticed that when he is using it in our house, the desktop and

    • N97 mini annoying me! can anyone help?

      Hi, my n97 mini is getting on my nerves...... when it decides it will show me the name of who is txing me, then on the next it will just display the number???? only had it a cple of weeks does it need repairing? thanks, Dawn Message Edited by dawn020

    • The extractor in RSA7 is RED

      Hello Friends, The extractor 2LIS_03_UM in RSA7 is RED and when I try to check the entriesin the delta queue, it errors with the message" There are still no parameters available for the delta transfer". How to correct this error. Thanks Simmi

    • Errors when Restarting Deployed Apps

      Good afternoon and please forgive my lack on knowledge, but I am new to the Fusion middleware environment. I am working with an OBIEE setup, and I am attempting to restart all components for the "coreapplication" server. Most application deployments