How to add enter-in-insert mode without post-generation steps

Hello,
We'd like to enter one of our pages in insert mode.
We found the trick how to do it, there is one step which is a post JHeadstart generation step (add code to Page Definition). I'd like to know if we can avoid this post-generation step
Here the complete list of steps
(1) Model project, set View Object, Tuning to 'No Rows'
(2) ViewController Project
2.1 JHeadstart settings for the page
- Single-row insert allowed Yes
- Single-row update allowed Yes
- SHow New Rows at Top Yes
2.2 Generate the JHeadstart application
2.3. Go to the Page which you'd like to enter in insert mode and click on 'Go to Page Definition'
Add in the <executable> part the following code
<invokeAction Binds="CreateAanmakenAdminEenheden" id="invokeCreate" Refresh="renderModel"
RefreshCondition="${!adfFacesContext.postback and empty
bindings.exceptionsList}"/>
(see also http://download-uk.oracle.com/docs/html/B25947_01/web_form006.htm for more information)
Make sure that the Binds part has the sam name as the <action id='Create...' which is available in the bottom part of the page definition.
My question is
How can we avoid this last post-generation step, the addition of code to the Page Definition file.
I know you can unclick the 'Generate Page Definition' property in JHeadstart, but that introduces a risk that functionality is not included after changing the page.
Regards Leon
By the way, this is a lot of of work, just for entering a page in directly in insert mode. I think there can be made some improvement in ADF to accomodate this (a lot wanted) functionality.....

Navid,
You need to create custom templates to achieve this. The easiest way to get everything in place, is to first generate the group as insert-only (without search and query).
This will generate the following:
- in the page definition the ControllerClass property will be set to a JSF EL expression, something like #{EmpWizardPageLifecycle}
- in the group beans config file, two beans are generated like this:
<managed-bean>
<managed-bean-name>EmpWizardPageLifecycle</managed-bean-name>
<managed-bean-class>oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>beforePrepareRenderMethods</property-name>
<list-entries>
<value-class>oracle.jheadstart.controller.jsf.bean.InvokeMethodBean</value-class>
<value>#{CreateEmpWizardMethod}</value>
</list-entries>
</managed-property>
<managed-property>
<property-name>validateADFModel</property-name>
<value>false</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>CreateEmpWizardMethod</managed-bean-name>
<managed-bean-class>oracle.jheadstart.controller.jsf.bean.InvokeMethodBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>methodBinding</property-name>
<!-- we leave out the JSF EL brackets, to prevent premature evaluation of the expression -->
<value>bindings.CreateEmpWizard.execute</value>
</managed-property>
<managed-property>
<property-name>executeCondition</property-name>
<!-- we leave out the JSF EL brackets, to prevent premature evaluation of the expression -->
<value>jsfNavigationOutcome=='StartEmpWizard' or param.StartEmpWizard=='true'</value>
</managed-property>
</managed-bean>
The executeCondition does the trick here: it causes the page to start in insert mode when the navigation outcome is 'StartEmpWizar' or there is a request param named StartEmpWizard with value true.
So, to get this functionality in a normal queryable group, you need to create a custom template for the groupFacesConfig.vm and add the two bean defs as above. And to get the ControllerClass property generated correctly, you can use the advanced group-level property Page Lifecycle class and set this to #{EmpWizardPageLifecycle}.
(and replace EmpWizard with your own group name)
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How to put ipod in recovery mode without a home button ???

    how to put ipod in recovery mode without a home button and i cant get in to my devise what can i do ???????????

    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    or
    http://joshuabailey1997.wordpress.com/2010/09/02/recboot-v1-3/
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    RecBoot may have problems on 64X windows, then try:       
    Tenorshare ReiBoot – Enter & Exit iPhone, iPad, iPod Recovery Mode with a Single Click
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Installs blootware on PC too

  • How to add one or two photos without synchronise my 8240 photos on my ipad2

    How to add one or two photos without synchronize my 8240 photos on my ipad2 or iPhon4 ?
    Thank you

    Just add the photos to the folders/location that you last synced and sync them - as only the contents of the last photo sync remains on the iPad, you have to (re-)sync all the photos that you want on the iPad. In theory only the new photos will need processing by the sync process, so it shouldn't take a long time to sync (it hasn't for me when I've added a few to my 1500 photos in the past anyway). Not including photos in a sync is how you remove them from the iPad.
    Your alternative is to email them to yourself and then save them from the email, but they will only go into the Saved Photos/Camera Roll album - come iOS 5 in the Autumn you should then be able to move photos between albums.

  • My iphone 4 currently at ios 7.1.. suddenly my iPhone entered into recovery mode without any reasons.. i tried using iTunes restore the iPhone.. after the process finished... I still stuck at recovery mode. any idea?

    currently at ios 7.1.. suddenly my iPhone entered into recovery mode without any reasons.. i tried using iTunes restore the iPhone.. after the process finished... I still stuck at recovery mode. any idea?

    i have tried to restore via itunes as i would have usually, half way through i get an error code 3194 pop up.....and yes i do back up.
    Thanks for your help but i've already tried this a couple of times.

  • How to add the Assignment column on this post outgoing payment in f-53

    Hi all,
    how to add the Assignment column on this post outgoing payment in f-53?
    thanks.
    Joo

    Hi ,
    If you want to see the assignment column in f-53 process open item screen
    1. First in O7V3 check for t.code FBz2 which line layout ( 2 digit code is assigned)
    2. Then in t.code O7z4s check in the line layout and if assignment field is not there then insert the field.
    then check in F-53.
    Hopw it will solve your problem.
    Assign points if useful
    Regards
    Prabhat

  • Wizard does not enter in insert mode

    Hello,
    We are using JHeadstart 10.1.3.1.26.
    We are creating a wizard process for creating a record in several steps.
    For some reason we are not able to enter the page in 'Insert' mode.
    When the page is started the page is shown in 'View' mode. When we click the tab page for the View then the page changes into 'Insert' mode.
    View/Application Definition
    - On the view object we've set 'No Rows' to be retrieved from the database on the Tuning panel of the View Object Editor
    - In the application page definition we've the following settings
    * Wizard Style Layout      Checked
    * Layout STyle          form
    * Quick Search           None
    * Advanced Search           None
    * Auto Query          Unchecked
    * Single-Row Insert allowed     Checked
    * Single-Row Update allowed     Unchecked
    Created artifacts
    The Page Definition Page contains a Controller Class
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.40.66" id="EpvOpdrachtenPageDef"
    Package="nl.belastingdienst.epv.lokaal.view.pagedefs"
    EnableTokenValidation="false"
    ControllerClass="#{EpvOpdrachtenPageLifecycle}">
    <parameters/>
    In the structure pane a Warning is shown "Class #{EpvOpdrachtenPageLifecycle} not found"
    Workaround
    A workaround is adding in the Page Definition Page the following invokeAction.
    I am not a fan of post processing actions, because then our application is not 100% generatable anymore.
    <executables>
    <invokeAction Binds="CreateEpvOpdrachten" id="creOpdrachten"/>
    How can we set the wizard process train directly from JHeadstart in insert mode?
    Has this got something to do with the page definition page, and with the fact that the ControllerClass cannot be found?
    Regards Leon Smiers

    Hi Sandra,
    We are facing the same problem, we fixed it by adding the value !adfFacesContext.postback in the bean of the first page.
    But the problem that the back button in this case clear inserted data, secondly there is no any generated beans for other pages of the wizard, so there is no way to write the above value.
    by the way we are trying the steps in the JHeadstart Developer's Guide many times.
    Could you please help us to fix this issue?
    Thanks
    Ahmed Mohsen

  • How to add a file to jar without compression using JarOutputStream

    Hi,
    I just want to know how to add a file without compression to a jar using JarOutputStream. By default the file is compressed when you add it to the JarOutputStream. This option is present when you create a jar using command line mode using the jar tool. Is there something like that in JarOutputStream.
    Thanx in advance.
    -Dani

    Try to use http://java.sun.com/j2se/1.3/docs/api/java/util/zip/ZipOutputStream.html#setLevel(int) method

  • How to add ability to insert Annotations via Reader to an existing PDF form

    I have an existing PDF form created in LiveCycle ES2/Acrobat X, with fillable text boxes and all that stuff.  I want to add the ability for Reader users to insert items from the Annotations menu, but can't seem to figure out how to add that permission.  When I look at the Document Restrictions Summary in the PDF properties, it has "Commenting: Not Allowed".
    So how can I keep the existing form working as is, but add the ability for anyone to insert Annotations through Reader?

    You have two choices
    1) You can use JavaScript in your AIR application to communicate with the JavaScript in the PDF to fill in the form directly. This can all be done inside of your AIR app. This is certainly the best route to go and there is (IIRC) a sample in the AIR SDK.
    2) You can create an XFDF file from your XML data and then have Acrobat/Reader open the XFDF file to fill in the data.
    Both methods will work with Acrobat and Reader - HOWEVER, Reader users won't be able to save the PDF unless it has been Reader Enabled.
    Leonard

  • How to add gmail account to mail without having to download all old mail

    How to add a gmail account to mail without having to download all old mail.  As i have thousands of main over the years.

    In Mail, select the File -> Preferences menu. Click on Accounts in the toolbar. Select your gmail account on the list on the left and press the Advanced tab. Uncheck the Enable This Account box. That should do it.

  • How to add keyframes on blending Mode (Normal, Soft Light etc)

    Hi All,
    How can I add keyframes on blending mode? I have a movie layer and need it to start from Soft Light with sooth transition to Normal or Hard Light in a few seconds.How can I do this?
    Thanks
    Andy

    Thank you. I have found another way here:
    http://help.adobe.com/en_US/AfterEffects/9.0/WS3878526689cb91655866c1103906c6dea-7d0aa.htm l
    "You can’t directly animate blending modes by using keyframes. To change a blending mode at a certain time, split the layer at that time and apply the new blending mode to the part of the layer that continues. You can also use the Compound Arithmetic effect, the results of which are similar to the results of blending modes but can change over time."
    Have you tried that? which way is preferrable quality-wise?

  • How to add music to my iphone without deleting the music already on it

    I have many laptops in my house and they all have different music on it. So i want to know is there a possible way that i can add music to my iphone without deleting my musc already on it?

    No.
    iphone will sync/manually manage to one and only one comptuer at a time.  Syncing/manually managing to another wil erase the current content.

  • How to add Favorites in EP ? Pl... provide steps in details....urgent

    Hi All
         How to add Favorites in EP ? What and settings i need to do ?
        Can any one help me on this and this is urgent for me ?
        In general what is content we will keep in this Favorites ?
    Thanks and Regards
    Rakesh

    Hi,
    You can "add Favorites in EP" by clicking on the image available next to forward link in the title bar of the portal
    Various options like
    Open in New window
    Refresh
    Personalise
    Details
    Add to Browser Favorites
    Add to Portal Favorites
    When you click on "Add to Portal Favorites" then the particular iview is added in the portal favorites iview section. which is displayed below the detailed navigation.
    Example if you add the iview present in the Content administration --> K M Content
    you can add the KM content iview in the favorites.
    Now if you are present in the System Administration --> Portal Display --> Theme Editor then you can navigate to KM iview directly without going through Content administration --> KM Content.
    This reduces the number of navigation paths.
    Hope this helps you.
    Thanks and Regards,
    Gauri Gosavi.

  • Can someone please tell me how to add studio starting things like paramount, universal studios. step by step please

    i need to know how to add famous copmany logos to imovie ike paramount and stuff pls

    to imovie
    pls

  • How to add birthday to birthday calendar without contact?

    Hey guys,
    how can I add birthdays to the birthday calendar without adding new contacts?
    I know some people's birthday, but I do not have any number because they are too young or too old.
    I want to know or write down their birthdays. I mean, I could add them to my actual calendar, but why when there is an integrated birthday calendar?
    It's not just about human's birthday :-)
    best regards

    I have been using an app called Occasions (iPhone only)  for a few years now and love it  This app allows you to put in entries for birthdays, anniversaries, or anything related to a calendar that you would like to track on an annual basis.  This app allows you to enter birthdays for grandchildren and others that you don't want to carry in your contacts.   You can select it to synchronize with your contacts and Facebook so you have all your birthdays, anniversaries and special dates all in one app.  Today I learned that there is a new version called Occasions+ (iPhone and iPad only) and this app has a feature that allows it to synchronize to your calendar in addition to all the features of the original version.   I created a new calendar called "Occasions" (new calendar so it doesn't clutter up my appointment calendar etc. and I can deselect it from the view) and have the app synchronize to it.  My calendars are on the cloud, so now I get the Occasions+ entries on my iPhone, iPad and iMac.   This does what I wanted.... and only for 99 cents.   I hope this works for you.  

  • How to add new In-app-purchases without updating app?

    I have an app already available in appstore with several number of in-app-purchase products. Now I want to add another products without updating or resubmitting my app. How to do that? Thanks.

    You are a developer of an app?
    You should ask in the developer forums.
    This is the iPhone forum.

Maybe you are looking for