Insert Only Forms with custom Page Lifecycle class

I discovered a bug/inconsistency in the JHS Generator:
The business case (translated to the HR schema) is
We have an Insert Only form for creating new Departments. (Group name: DepartmentsEntry)
When the user saves a new Department, we want to forward them
using the Faces Navigation Handler to the group named "Departments".
The implementation we used:
- Create a custom class which extends oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.
This class overrides the onCommit method: if there are errors we stay on this page,
otherwise we redirect the user.
- Specify this classname in the Page Lifecycle Class property (under "Customization Settings") within the Application Definition Editor.
When we then try to run the page, the Insert-Only form does not work as expected;
The user has to click on the "New Department" button first.
I see that the specified classname occurs in the ControllerClass property of
the Page Definition file DepartmentsEntryPageDef.xml file.
The way I solved the problem was to create a custom groupFacesConfig.vm template
which specifies the managed-bean-class property of the ${JHS.current.group.name}PageLifecycle managed bean.
This then solves the problem - the InsertOnly form works as expected.
This is not as I would expect the "Page Lifecycle Class" property to be used.
In my opinion the "Page Lifecycle Class" property should also be used in the default groupdFacesConfig.vm template and not only in the Page Definition file.
Is this behaviour expected?

Cliff,
You are right, this is a bug that has been fixed for the upcoming 10.1.3.2 release.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • Help with custom page size support for non standard paper

    Firstly, we appreciate any support you may be able to provide, we have already thrown considerable effort at this and it has been very time consuming and frustrating.
    To support a number of business functions need to print to (non standard) continuous and mulitpart paper on a dot matrix printer. The (test) Mac is a 10.4.11 G4 laptop, the printer is an Oki Microline 520 (9 pin 80 column, IBM Proprinter, Microline or Epson FX personalities with a parallel interface) which has been networked via a HP JetDirext Ex Plus print server. That part appears to be operating correctly.
    We have tried a number of drivers / printer personalities with varying levels of success:
    ESP / EPSON 9-Pin Series CUPS v1.1 / Epson FX personality
    ESP / OKIDATA 9-Pin Series CUPS v1.1 / Oki Microline personality
    Ghostscript / epsonc / Epson Dot Matrix Foomatic PPD / Epson FX personality
    Ghostscript / ibmpro / IBM ProPrinterII Foomatic PPD / IBM Proprinter personality
    Ghostscript / okiibm / Oki Microline IBM compatible 9 pin Foomatic PPD / IBM Proprinter personality
    There were no appropriate drivers in Gutenprint (5.2.3 version) The most successful is the okiibm / Oki Microline IBM compatible 9 pin settings, it can print A4 and honors the Printer Features Resolution settings in the print dialogue.
    Q1: Should we see anything in the Printer Info / Installable Option, it is always blank ?
    The issue is custom page sizes, we can manage / add Custom Pages Sizes via the Page Setup / Paper Size interface and they draw on the screen OK but they do not work at the printer (various issue at the printer such error messages, junk printing and wrong orientation):
    Q2: Are we heading in the right direction or is there a better way to handle this ?
    Q3: Would 10.5 solve all our problems, are the print drivers any better ?
    Q4: Is this the correct way to specify custom page sizes, is this all we need to do ?
    Q5: Is so how do we get the driver to respect the size, do we need another filter or something ?
    Q6: Is it possible to add (by hand) custom page sizes to the ESP drivers or Foomatic PPD files so they they appear as a "standard" offering in the Page Setup / Paper Size interface ?
    Sorry for the long / complicated post and thanks in advance for any advice / assistance.

    Matt Broughton wrote:
    Testing on 10.5.7, Tried both Oki 9-Pin Series 1.3 / Microline personality (no joy) and Epson 9-Pin Series 1.3 (this is a much better driver than 1.1) / Epson FX personality but not much joy with custom page sizes,
    The Oki 9-pin Series 1.3 and the Epson 9-Pin Series 1.3 should produce the same results. The only difference in the PPDs is the printer model name.
    After some testing, I find that the output is not the same despite the two PPDs being virtually identical. I did spot in the CUPS source code for the rastertoepson filter that there is some model name matching for Epson printers. Thus I can see where the output using the Oki 9-pin PPD could be different than when using the Epson 9-pin PPD.
    but again once I imbedded the page size into the ppd some (but frustrating) luck. I can get it to respect the paper orientation and it prints well but I could not get the form length to work properly. At best over a print run of 7 labels it would creep up the label by about 0.1 inches / 2 mm.
    Just for the fun of it, I made some additions to the Epson 9-pin 1.3 PPD. All I can say is that I could print a job to file. I have no way to know what it would look like on paper.
    I did find that using a custom paper size did add some unwanted margins to the output bounding box. Putting the custom page size into the PPD seemed to get around that issue.
    I added the following lines to the Epson 9-pin PPD 1.3--
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">*PageSize Label1/Label1: "<</PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *PageRegion Label1/Label1: "<<PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *ImageableArea Label1/Label1: "0 0 288.00 107.80"
    *PaperDimension Label1/Label1: "288.00 107.80"</pre>
    This adds a paper size with the 4 inch (288pt) width and 1.5 inch (107.8pt) height. That represents the 1.4 inch label and the 0.1 inch gap between labels. I set 0pt margins except for the bottom where is set the 0.1 inch (7pt) gap as the bottom margin.
    The full diff in context is--
    <pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; padding: .3em .8em .3em .8em; font-size: 9px;">loki:~ matt$ diff -u /usr/share/cups/model/epson9.ppd ~/Desktop/epson9.ppd
    --- /usr/share/cups/model/epson9.ppd 2009-02-20 20:16:53.000000000 -0600
    +++ /Users/matt/Desktop/epson9.ppd 2009-06-06 20:37:06.000000000 -0500
    @@ -42,6 +42,7 @@
    *PageSize Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
    *PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
    *PageSize FanFoldUS/US Fanfold: "<</PageSize[1071 792]/ImagingBBox null>>setpagedevice"
    +*PageSize Label1/Label1: "<</PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *CloseUI: *PageSize
    *OpenUI *PageRegion/Media Size: PickOne
    *OrderDependency: 10 AnySetup *PageRegion
    @@ -50,17 +51,20 @@
    *PageRegion Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
    *PageRegion A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
    *PageRegion FanFoldUS/US Fanfold: "<</PageSize[1071 792]/ImagingBBox null>>setpagedevice"
    +*PageRegion Label1/Label1: "<<PageSize[288 107.8]/ImagingBBox null>>setpagedevice"
    *CloseUI: *PageRegion
    *DefaultImageableArea: Letter
    *ImageableArea Letter/US Letter: "18.00 18.00 594.00 774.00"
    *ImageableArea Legal/US Legal: "18.00 18.00 594.00 990.00"
    *ImageableArea A4/A4: "18.00 18.00 577.00 824.00"
    *ImageableArea FanFoldUS/US Fanfold: "18.00 18.00 1053.00 774.00"
    +*ImageableArea Label1/Label1: "0 0 288.00 107.80"
    *DefaultPaperDimension: Letter
    *PaperDimension Letter/US Letter: "612.00 792.00"
    *PaperDimension Legal/US Legal: "612.00 1008.00"
    *PaperDimension A4/A4: "595.00 842.00"
    *PaperDimension FanFoldUS/US Fanfold: "1071.00 792.00"
    +*PaperDimension Label1/Label1: "288.00 107.80"
    *MaxMediaWidth: "1080.00"
    *MaxMediaHeight: "86400.00"
    *HWMargins: 18.00 18.00 18.00 18.00</pre>
    I don't know if that will help you or not. Let us know what sort of progress you make.
    Matt

  • Custom page controller class

    Hello,
    I'm trying to implement what is explained in the article *"Two Ideas to Handle JBO-35007 'Row Currency Changed' Exception"* (http://blogs.oracle.com/smuenchadf/examples/). This example illustrates how to use a custom page controller class to override the handleError() method to conditionally handle the JBO-35007 exception ('Row currency has changed since the user interface was rendered.') in a way that might be more useful to the end-user.
    So I've defined a custom page controller class in a JSP of my application, but I don't know why the application flow is not passing through the handleError method when a JBO-35007 exception occurs.
    I've defined well in the pagedef the attribute "ControllerClass", and I use the "back button" to produce the JBO-35007 exception. But I don't know why the method handleError is not executed, although the the JBO-35007 exception is displayed.
    Thank you very much.

    Hi,
    you are on JDeveloper 11g ? The article you follow was written for 10.1.3. In 11g the error handling is configured in DataBindings.cpx page. Select the DataBindings.cpx page in the Application Navigator and select its root node in the Structure Window. Then open the Property Inspector to configure your version of the Error Handler class
    Frank

  • Fillable form with multiple pages

    I have a fillable form with multiple pages. However, when I save it and open it, it tabs to the end of the first page and will go back up to the top of the first page again. It won't tab to the second page. Instead, the user will have to click there cursor into the first field of the second page, tab through that, and repeat this process from page to page. If the person doesn't know there are multiple pages, they may believe they have finished the form once they get to the bottom of the first page, hit tab, and it takes them back up to the first field on the first page again. How can I make it go from the last field on the first page, tab, and first field on the second page?

    Thanks for the reply. Since my post to this topic I discovered some things about tabbing. With out adding another master page but just keeping the one and making sure that it's occurance is set to a minimum of one and including master page in the numbering it will work as long as the order of fields in the hierarchy tab matches the order in the position of the fields.
    I have a subForm that has a row of fields starting with a button then several text fields. I couldn't tab to the next page because the button was at the bottom of the hierarchy and it wasn't until I moved it to the top that I could finally tab to the next field on the next page. I also discovered that with a one page dynamic interactive form that has some expand able text fields in it and when the field expands so that any fields are pushed to a new second page tabbing seems to not work. In other words when I tab out of that field that is suppose to expand and a new page is added to the form the tabbing quits and in order for it to resume I have to click in a field and from then on it work even if it gets to where a third page and so forth is added. It is just when a one page (in my case) form turns into multiple pages for the first time.
    Hope that makes sense.

  • Can not create template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • Can not build a template based page with customized page type.

    I built a customized page type (with persepective attribute) and wanted to build pages with this type. If the new pages do not based on any template, it works fine. However, if I wanted to use a template, the page type was set back to "standard"!
    Steps to reproduce it:
    1. create a new page type - test page type.
    2. create a new template = test template.
    3. create a new page - test page.
    3.1 choose the page type to be "test page type"
    3.2 fill in the form including the new attribute info.
    3.2 choose the page template to be 'test template"
    3.3 click finish
    4. click the properties of "test page", it shows that the page type is "standard" and the new attribute information is gone!
    If in step 3.2, no template is chosen, the properties of the new page shows the page type is "test page type".
    I tried to find a workaround.
    1. create a page with "test page type".
    2. covert the new page to template.
    I got this error message:
    Error while copying page. (WWC-44262)
    (WWC-00000)
    Looks like customized page type and template can not coexist. Is this a bug?

    How long should the upgrade take? And should it be attempted on a production (infrastructure on machine 1/middle-tier on machine 2) Windows 2000 architecture? Or should be wait for 9.0.4? Or ... should I ask this in a TAR? Thanks!
    Mike

  • Custom Master Page with Custom Page Layout

    Hi All,
    I have created a Custom SharePoint Master Page. In that Master Page I have created a custom Header & Footer.  In between the header and the footer I created a space to put page's content.
    However I have created a page using that master page and it was successfully published.
    After that I wanted to create a Custom Page Layout using that Page previously created. That also was a successful one. But when default Page Layouts in SharePoint 2013 inserted to a page it shows an area that can add content. But in my Page Layout inserted
    to a page it does not show like that.
    So what have I missed when I created the Custom Page Layout? Could you kindly someone tell me how to solve this matter?
    Thanks and regards,
    Chiranthaka

    Can you confirm that your custom page layout has the same WebPart Zones as the default one? They need to be if you wish to see content that was added with the default page layout.
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

  • How to 'flatten' interactive forms with Fixed Pages?

    I have a large project I am working on that is automating the population of forms with strict layouts. (Provided by State governments for licensing requirements). I have the need to generate flattened version, or image of the document as one of the last steps of the process. The final step is to use "Insert Pages" to include into the newly created PDF, other PDFs that were attachments to the original document. These would include employment histories, Residential histories, etc. all are in PDF format.
    The current method is to print the main document to "Adobe PDF", and save the file as a PDF to the file system. This newly saved PDF will accept Inserted pages as it is no longer deemed interactive with Fixed Pages, where the original with Fixed Pages will not accept insertions.
    I have not been able to find a way of doing this via Javascript.
    My goal is to find a way to flatten or image the document, then insert the attachments into the main document to create one compound instrument that records the licensure filing, and can be printed off and sent to the government, and retained for proof of filing.
    Any ideas of how to replicate the print to "Adobe PDF" function and retain a handle to the new document object would be greatly appreciated. The fileName feature on the print method seems to be limited to ".ps", and ".prn" extensions.
    Thank You
    Mark

    I have not been able to Add Pages to a form that has Fixed Pages - either through the UI, or JavaScript. Options are greyed out in the UI.
    Could you expand on what you mean by "You can set the Designer properties to Print Form"?
    Thanks
    Mark

  • Html form with 2 pages

    I have created a form with designer that has 2 pages.
    In pdf, all works ok.
    But when i render it to html, i only can display the first page.
    How can i navigate between pages?
    Thanks in advance

    Hi,
    If your rendering your form as HTML then you are probably using LiveCycle Forms. To navigate between pages you will have to create a IOutputContext object and assign it the value returned by the call to the EJBClient.processFormSubmission(...)in your servlet. You will then need to call the IOutputContext.getFSAction() method to determine what action was performed on the form. If the value returned by getFSAction() is 3 then the output of the processFormsubmission method is the Next page in the form. If the value is 4 then the output is the previous page in the form. If getFSAction returns either 3 or 4 then you can write just the data returned by the call to IOutputContext.getOutputContent() back to the web browser.
    Trevor.

  • Word 2011 for Mac Issue with Custom Page Size

    I have installed Microsoft Office 2011 for Mac on my brand new iMac.  I'm using Microsoft Word 2011 for Mac and I have opened the "Word Publishing Layout" template (this is essentially Microsoft Publisher).  I'm trying to set up custom page sizes by performing the following steps.  I go to File --> Page Setup and use the following settings:
    1. Settings: Page Attributes
    2. Format For: Any Printer
    3. Paper Size:  I choose "Manage Custom Sizes"
    4. I create a 24x36 page and save it
    When I do this, Word 2011 (and Word 2008) for Mac will only go to a maximum of 22 inches wide and 22 inches in height.  Is there any way around this?  I need the big sizes to do digital proofs for my business.  I don't want to scale down to 12x18 (essentially cutting the proof by 50%) because when I import it into my other program that can accommodate any size document, I have to do a lot of manual work to get things back to scale.  Thanks in advance for your help.  If we can figure this out, I'll be grateful.
    AC

    Please re-post on the Office for Mac Product Forums

  • Open flash file in SharePoint with custom page

    Dear Team,
    I have a document library with .swf files, by default, if the browser has flash related plugin, the file would be opened in browser directly, if the browser has no such plugin, the file would be downloaded to local.
    To avoid downloading and opening the document in client local, I would like to use my customized page to open the .swf file when clicking it in library.
    Any way to do this?
    Thanks,
    Qiao Wei
    My blog:http://blog.goobol.com

    Hi,
    Please check below
    http://www.robertkuzma.com/2010/08/unable-to-open-flash-or-html-page-in-sharepoint-foundation-2010/
    http://www.sharepointdiary.com/2010/05/using-flashswf-files-in-sharepoint.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Paging with custom page number

    As the spry paging always start at the 1 page.
    How can I make the spry start at a different page number
    ex. 3 out of 5 instead of 1 out of 5
    1,2,
    3,4,5

    Can you confirm that your custom page layout has the same WebPart Zones as the default one? They need to be if you wish to see content that was added with the default page layout.
    Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com

  • Page size printing problems with custom page size I created

    I have created a custom page size (very small) for printing an advertise I had to print, and now after that operation all the pages I ask to print to any printer are automatically printed in that setup, and sometimes even if I change to A4 manually, the page changes but the borders of the page still remain the old one (result i can not print). How can I cancel the custom page size I created, so that my printers restart to print automatically in A4?
    thank you very much

    I have created a custom page size (very small) for printing an advertise I had to print, and now after that operation all the pages I ask to print to any printer are automatically printed in that setup, and sometimes even if I change to A4 manually, the page changes but the borders of the page still remain the old one (result i can not print). How can I cancel the custom page size I created, so that my printers restart to print automatically in A4?
    thank you very much

  • Creating publishing page in specific folder and with custom page layout using JSOM

    Hi!
    I have a site collection under my root, in which I have a page library with a folder inside. I want to create a publishing page inside the folder using JSOM. The API provides the following information on the three possible ways of how you can create a publishing
    page.
    PublishingPageInformation with all defaults.
    PublishingPageInformation.Name and PublishingPageInformation.PageLayoutListItem.
    PublishingPageInformation.Name, PublishingPageInformation.PageLayoutListItem and PublishingPageInformation.Folder.
    Source - SP.Publishing.PublishingPageInformation Properties (sp.publishing)
    Since I want to create the page in a specific folder in the page library, I have to go for the last option.
    I have a function call chain that look as follows:
    getLanguageID(webUrl, languageID)
    .then(function(resolveVal) {
    language = resolveVal;
    return checkPageExist();
    .then(getEditorialNewsFolderJSOM)
    .then(getAssociatedPageLayoutListItem)
    .then(addPublishingPage)
    The first two methods, 
    getEditorialNewsFolderJSOM
    getAssociatedPageLayoutListItem
    fetches the required data as SP.Folder- and SP.ListItem-objects.
    The problem occurs when
    addPublishingPage
    is called. This method, in turns calls this function. 
    var pageInfo = new SP.Publishing.PublishingPageInformation();
    pageInfo.set_name(publishPage.title);
    pageInfo.set_pageLayoutListItem(pageLayoutListItem);
    pageInfo.set_folder(editorialNewsFolder);
    pageCreationContext.newPage = pubWeb.addPublishingPage(pageInfo);
    clientContext.load(pageCreationContext.newPage);
    clientContext.executeQueryAsync(function() {
    publishPage.isPageCheckOut = true;
    resolve();
    }, function(error) {
    reject(precio.intranet.resource.errCreateContent_addPublishPage);
    The error happens when this function is called with the page information object.
    SP.Publishing.PublishingWeb.addPublishingPage(pageInformation)
    Error:
    Cannot read property '$2t_0' of undefined
    and it happens in SP.Runtime.js.
    I've tried this
    sample code from the MSDN-team, and added the pagelayout and folder properties, but it renders the same error.
    Creating a page directly in the page library with a blank SP.PublishingPageInformation object works perfectly fine!
    What could possibly be wrong? The error isn't something that I can debug myself since it happens in SP.Runtime.js, and the documentation for this is very sparse!
    Any help on how to resolve this issue would be helpful!

    Hi Vinay,
    This may be useful:
    https://blogs.oracle.com/jdevotnharvest/entry/remote_task_flow_vs_wsrp

  • Read-only forms work great - page fails to load on interactive form.

    we have a weird issue.
    we moved all our Adobe development (which was all new) to our QA environment.
    Our 1 interactive form fails to even display, while all the other read only forms work fine.
    I changed my interactive form to ENABLED off (unchecked) and moved it to QA - and it displays fine. I changed ENABLED = checked, and it's not working.
    any ideas?

    chintan,
    we figured this out late yesterday - I was selecting all the business partners for a drop-down list in the form . It turns out another developer loaded 30k business partners in RPM. So, this was causing the form to blow up.

Maybe you are looking for