Struts tiles to create event based loading of tiles on a JSP

Hi All,
I am working on a web app where I am using struts tiles to create my JSPs. I have tiles for header, footer & nav bar.
Now I want to break up my JSP body in multiple tiles. It is required that I insert only one body tile initially, say body1, which contains few hyperlinks. Depending on which link is clicked, I would attach another tile (body2) below the first one. Can any advanced tiles user inform me if it's possible with struts-tiles, & if yes how?
Thanks.

Tiles is basically used to overload the jsp pages and reuse them.
In your tiles-defs.xml file:
//Tiles for header, footer and nav bar goes here
//Tiles for body1 and body2  goes here
<definition name="BodyTile" page="/yourPage.jsp">
          <put name="body1" value="/blank.jsp" />
          <put name="body2" value="/blank.jsp" />
</definition>
<!--Blank jsp is a simple html page without any data into it-->
Now create a customized tile for your module. Mapping has to be done in struts-config.xml.
Notice that the definitions here extend the tile from tiles-defs.xml, i.e. "BodyTile"
<definition name="ActionOneWithBodyOne" extends="BodyTile">
    <put name="body1" value="/yourPage1.jsp" />
</definition>
<definition name="ActionTwoWithBodyTwo" extends="BodyTile">
    <put name="body1" value="/yourPage1.jsp" />
    <put name="body2" value="/yourPage2.jsp" />
</definition>Now when you first load the page forward it to "ActionOneWithBodyOne" and it displays you just your body1.
When ever u click a link on body 1, after performing the action populate the form bean corresponding to yourPage2.jsp and forward the action to "ActionTwoWithBodyTwo".
Hope that helps!!
SirG

Similar Messages

  • Error in creating event based  jobs.

    while trying to creating event based jobs. I am getting below error
    ORA-00904: "SYS"."SCHEDULER$_QP_5187"."F3": invalid identifier
    ORA-06512: at "SYS.DBMS_ISCHED", line 99
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 295
    ORA-06512: at line 2
    I am using 10g database.
    Even below small procedure is not working.
    begin
    DBMS_SCHEDULER.create_job
                         ('test1F' ,
                          job_type             => 'plsql_block',
                          job_action           =>    'begin  test_proc end;',
                          event_condition      =>    'tab.user_data.object_name ='' test''  and  tab.user_data.event_type = ''JOB_FAILED''',
                          queue_spec           => 'sys.scheduler$_event_queue,myagent',
                          enabled              => TRUE
    end; and
    Myagent is subscribe to
    SELECT consumer_name
      FROM dba_queue_subscribers
    WHERE queue_name = 'SCHEDULER$_EVENT_QUEUE';
    MYAGENT
    SCHEDULER$_EVENT_AGENTEdited by: ma**** on 25-Aug-2012 01:55

    Please lock this thread, post to the scheduler forum, and when you do include sufficient information for someone to help you ... this isn't it.
    What version number.
    What is the code you are running?
    In what schema with what explicit and role-based permissions?
    At what point do you get the error? The way it is posted, above, it is impossible to be sure.

  • How to create event based process chains

    Hi All,
    I would like to know about event based process chains. In connection to this, could you please answer the following queries,
    1. How to create events
    2. How to link created event to the process chain in the same BI or BW system and as well as from  
        externel BI system.
    3. How link one process chain with other process chain (i.e, After completion of one process chain, it
        should trigger other dependent process chain)
    Thanks and Regards,
    Kotesh.

    1). Doubt regarding first question.
    For example, i would like to create time based event (it should be trigger daily at specified time),
    where we have to maintain scheduling options while creating event.
    When i checked SM62 there i found only two options a). Event name and b). Description.
    Could please send any doucument link if you have.
    Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
    2). For externel BIW system also same procedure we need to follow or any difference.
    Ans : Externally you need to trigger the same event.
    3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
    Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
    I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
    Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
    But Metachain is preferred for such thing.Though it does similar thing.
    Hope this helps.

  • Iphoto, Creating events and Albums

    I have attempted to create events and albums on the photo app in Ipad with no success. I have also synced the iPad to itunes and transfered pictures from an existing iphoto (macbook pro) event with no success. How can i create events and albums on the Ipad so i can seperate new pictures into specific areas for viewing.

    You can't. Photos on the iPad doesn't have organising features. You can't create groupings, or copy from one event/whatever to another. You have limited features in the 'camera roll' for images you've saved onto the iPad - you can delete them or share them.
    Your organising has to be done on the Mac in iPhoto or Aperture. Both create Events based on metadata from the image (date and time and so on). You can make albums and sync the albums to the iPad.
    I know that isn't what you want, but it's all we've got. It bears repeating - the iPad is not a completely standalone device - it's dependent on a desktop and iTunes for its full functionality.

  • How to "undo" a create event in Struts

    HI,
    I'm using ADF and Struts/JSP.
    I need to know how I should undo a "Create" event on a iterator in the binding container using Struts. I Create a blank row by invoking the Create action, bound to an iterator, in the binding container. This works just fine - a blank row is created and the JSP-form is blank.
    But, when the user hits the "Cancel" button, how do I then remove the blank-row created by the Create action from the iterators/bindings? I've tried some different thing, like getting the RowsetIterator and invoke the removeCurrentRow* methods. I've tried to invoke af Rollback action, but nothing does the job well.
    How do I cancel a blank row?
    Regards
    Jacob

    I have been working on same problem. I came to following conclusion. There are two ways to handle:
    1. Subclass: WebView doesn't forward touch events by blocking in hitTest function. But link clicking works
    2. Transparent subview of WebView: Touch events obtained through transparent view can be forwrded to scrollview subview of webView and all seems working. But link linking fails. It seems like touch event for link clicking is handled by webView only. It does it before other touch events are processed. So there is no point in passing those touch events to webView. WebView doesn't expose way to handle click handling.
    Correct me if wrong. If someone has solution please post.

  • Query on event based job in a client schema and not SYS schema

    Hi, I am fairly new to oracle job scheduler and wanted your inputs on how to create a event based job that sends a mail based on success of another job.
    I was able to implement this with the jobs being created under SYS schema. I did get email notifcation when errors were logged in exception table.
    However, now the requirement has changed to create the jobs under a client specific schema.
    The jobs got created successfully in CLIENT schema but the event based job is not working. It does not send the email notification.
    I feel this is to do with not correctly subscribing to the event queue {sys.scheduler$_event_queue}.
    Can CLIENT schema use the agent "AGENT" created under SYS to subscribe to the Scheduler event queue {sys.scheduler$_event_queue}? CLIENT is the schema in which the all jobs and procedures are created.
    BEGIN
    DBMS_AQADM.ENABLE_DB_ACCESS('AGENT', 'CLIENT');
    END;
    --Main Job that will load data and errors will be logged into exception table
    BEGIN    
    dbms_scheduler.create_job( job_name=> 'CLIENT.LOAD_DATA',                              
    job_type=>'PLSQL_BLOCK',                              
    job_action=>'BEGIN  CLIENT.p_loaddata;                                     
    END;',                              
    start_date=>systimestamp,                              
    repeat_interval=>'FREQ=MINUTELY;INTERVAL=1;',                              
    number_of_arguments=>0,                              
    enabled=> true);
    END;
    --set raise_events attribute = job_succeeded for main job
    BEGIN
    DBMS_SCHEDULER.set_attribute ('CLIENT.LOAD_DATA', 'raise_events', DBMS_SCHEDULER.job_succeeded);
    END;
    --Event Job that will send email based on condition. Condition is checked in procedure CLIENT.p_check_sendmail; If errors are found in the exception table, this job will raise exception and will be JOB_FAILED status. This job will send a email notification.
    BEGIN 
    DBMS_SCHEDULER.create_job (       job_name          => 'CLIENT.EMAIL_JOB',     
    job_type          => 'PLSQL_BLOCK',     
    job_action        => 'BEGIN  CLIENT.p_check_sendmail;                                   END;',     
    event_condition  => 'tab.user_data.event_type = ''JOB_SUCCEEDED'' and tab.user_data.object_name = ''LOAD_DATA''',      
    queue_spec        => 'sys.scheduler$_event_queue,AGENT',      
    enabled          => true);
    END;
    BEGIN    
    dbms_scheduler.add_job_email_notification ( job_name => 'CLIENT.EMAIL_JOB',     recipients => '[email protected]',events => 'JOB_FAILED');
    END;
    Is the way i am subscribing to the event queue correct? Could you please share an example/document of event based job in a schema other than SYS and how subscription is being done to event queue?
    Thanks

    Hi,
    It's a good decision you made because you shouldn't create objects in the SYS schema. I see you're using the add_job_email_notification procedure, so I'm assuming you're on 11g onwards.
    This procedure is meant to make the job easy for you. That is, you don't need to worry about setting up AQ, the procedure does it all for you. All you need to do is setup the mail server if not already done, and call this procedure to add the mail notification. That's it.
    You can also specify a filter to the add_job_email_notification procedure, so maybe you could specify directly your CLIENT.LOAD_DATA job to this procedure.

  • How to set a default start and/or end date for New Events based on trigger date.

    I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
    However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
    I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
    At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
    Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
    1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
    2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
    Any thoughts or ideas?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • 2 Create bindings in 1 page, second Create event does not fire (ADF)

    I have an ADF, Struts, JSP master detail page and within that page there is a Create binding on the master view and this works fine.
    I added the detail list to the page and added a Create binding for this view underneath the list.
    The second create event does not seem to fire at all, when the button is clicked the page gets submitted and the request forwards to the correct page to display the input form but the contents of this form is the current selected detail row in the view and not a new row.
    I have created 2 new pages to test the detail view... I put a link in the original page to a test list page that displays the detail list and included a Create binding in this page which links to a test create page and this works fine.
    Has anyone else had this problem?
    Can there be only 1 Create event binding in a single page?
    Is there a way round this other than having to have my detail page on a seperate page?
    The Jdeveloper version I am using is as follows...
    JDeveloper Version 10.1.2.0.0 (Build 1811)
    Oracle IDE     10.1.2.17.84
    Business Components Version     10.1.2.17.96
    UML Modelers Version     10.1.2.16.71
    Versioning Support     10.1.2.16.71
    WebDAV Support Version     10.1.2.16.71
    Struts Modeler Version     10.1.2.6.15
    Designer Generators Framework     10.1.2.7.56
    ADF UIX     2.2.16
    java.version     1.4.2_04
    Thanks
    Al

    Can you do something like this?
    1. Look at the uimodel for your page and find the Create that is the action binding for the detail. Name it something like: CreateDetail
    2. Change the button on the page to create a detail to be named: event_CreateDetail.
    3. Change the forward from Master/Detail browser page to: CreateDetail
    Can you provide more details on:
    1. What are the names of the create bindings for master, then detail?
    2. What is the name of the forwards, that is the struts-config.xml action definition for this page?
    I hope this helps!

  • Session based load balance + Prepared statements

    Experts,
    From the docs I understand that there are 3 load balancing techniques. One is client side and two are server side. Of the two, one is session count based load balancing, and as per docs, it is recommended for connection pool setting.
    My question is if I have prepared statements originally created using connection to node1, and say if listener re-directs the conneciton to another node node2, will the prepared statement work on node2 ?.
    Thanks
    Vissu

    Just to clarify, the question is:
    Are the prepared statements usable when we use session count based load balancing.

  • Event Based Alert not working

    Version R12.1.3
    I have created a new Event based alert, the Alert is not firing the action set.
    The SQL is working perfectly fine. But action set is not firing when I check from History.
    Could somebody provide me, if any Patches need to be installed.

    Hi Hussein,
    I tried this, but Alert did not work.
    When I change the type of alert to periodic I am getting the desired result.
    Basically I am trying to insert some data into table.
    this is working from Periodic alert but not from event based alert.
    The alert is created based on GL_PERIOD_STATUSES table, when ever there is change in status column, then I am trying to insert in one of the custom table.
    Please let me know if you have any other pointers for this issue.
    regards,
    PK

  • Auto Create EVENTS with existing library (already imported)

    Had an "issue" a while back where I lost all my photos. It has since been corrected via Data Rescue but... I must have imported the found photos in a manner that did not allow for iPhoto 08 to auto-create events. So I have one big event with 15,000 plus photos in it.
    Is there any option to have iPhoto create new events automatically from these photos based on picture date? New imports are fine.
    Most of the pictures have the correct exif data....
    Thanks

    Except you will have 15000 duplicates
    1 - quit iPhoto,
    2 - delete your iPhoto preferences,
    3 - drag the iPhoto library to the desktop (this will be a backup),
    4 - start iPhoto,
    5 - reset the preferences including the split items imported from the finder,
    6 - and drag the originals folder from the iPhoto library on the desktop onto the running iPhoto program - this will import all of your originals (and hopefully split them into events) into a new library - after you check it you can delete the one on your desktop (or archive it as a backup )
    LN

  • Can not create Event on HDD

    This is somewhat similar to the other HDD postings but on mine I see the drive and can select it but it will not allow me to create events.
    This is a new computer that I just picked. At first when I installed FCPX I could not create events so I brought it back to my local Apple reseller who had just sold me a custom configured Macbook Pro. They could not figure it out but when 10.6.8 was release they installed it and it appeared to fix the FCPX problems.
    However after using it for an hour I got an error with one of my events, the clips were red with a yellow triangle. This problem was limited to this event so I continue to create new events and import clips, once I decided that the problem appears to be resolved I decided I would delete all of the work and setup FCPX to begin my work. I then shutdown the computer and when I started it backup to my surprised I can no longer create events on my second drive.
    I have check permissions and verified the drive is a Mac OS Journaled disk. I have deleted FCPX, reinstalled it, re-formated the drive but I still have the problem. The only thing that appears strange to me is in the Event Library FCPX lists my two drives as follows: Macintosh SSD(with a picture of a house), STORAGE (with a picture of a diskdrive). Now in the Project Library the same drives are listed in the same order however the Macintosh SSD picture is now a drive and the STORAGE now has a picture of a house.  It changed the pictures.
    Here is my configuration of my computer: 
    -13" Macbook Pro.
    - The DVD was removed and the 500GB Apple SATA drive was installed in the space the DVD once occupied to be used as a scratch disk.
    - The OS was installed on a 120GB SSD that was installed inside the Macbook Pro.
    I have tried connecting a USB drive and that works.
    Every other application works fine but since I only purchased this computer for FCPX and chose this configuration based on the Apple reseller who know that my sole intention for this computer was running FCPX. I would not have purchased it if I know FCPX would not work.
    Any suggestions please let me know

    Hello,
    What if you try to create the APPROVE event using SWUE?
    I assume you are creating the event with the same key as for the SUBMIT event.
    As always, try SWU_OBUF.
    I've encountered that message before, never did find a reason for it. Please keep us informed how it eventually gets fixed.
    regards
    Rick Bakker
    Hanabi Technology

  • 2 event-based mediators (in 2 separate composites) are triggered instead of

    Hi,
    I followed steps in http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_hwfmodel.htm#BABDBAJJ to create an SOA composite with event based mediator to be executed when a task is assigned to users. I created two separate composites (each one has an event mediator) but at runtime we noticed that whenever we execute a composite, both mediators in both composites are triggered !!

    I have the same problem. It would be great to see a solution. This is what I am trying to do:
    My xml document:
    <document>
    <person>
    <name>Jasmina</name>
    </person>
    <person>
    <name>Tajib</name>
    </person>
    <person>
    <name>Serif</name>
    </person>
    </document>
    Statement:
    select extract(doc, '/document/person/name/text()').getStringVal() as Names
    from xml_test
    Returns:
    NAMES
    JasminaTajibSerif
    I would like to get:
    NAMES
    Jasmina
    Tajib
    Serif

  • I can create events, but then cannot access them in Facebook. Help.

    I've created several events for a Facebook group/fan website. The "create an event" link works for me. BUT after creating event(s), I cannot access them via events link on page or via Facebook search. Often I NEED to get back to them to edit -- but I can't. Others can see them however, so I am wondering if this is a Firefox (12.0) issue. Of course I have contacted Facebook -- three times -- and of course they are nonresponsive. (and i've already tried, per firefox "help," deleting cache, allowing cookies -- etc., everything firefox suggested...)

    Check if Facebook is working normally on other Web Browsers like IE, Chrome, etc.
    * See this article -> [[Error loading web sites]]
    Also, make sure that your Firefox Plugins are updated.
    -> Update All your Firefox Plugins by visiting the following link:
    * http://www.mozilla.com/en-US/plugincheck/
    * '''When Downloading Plugins setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    Check and tell if its working.

  • Creating Event driven process chain

    Hi all,
    In my scenario there are two chains in which
    1. First chain is normal chain, which we are using to
    load business data.
    2. Second chain will contain start variant and one ABAP
    program that will call first chain and this second
    chain is event driven.
    So can anybody send me relevant documents or
    information regarding how to create event? How to
    schedule process chain using event? and also how to call
    process chain using ABAP program?
    Thanks & Regards
    Ajinkya Deodhar

    Hi,
    Look into the following links:
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    Event collector:
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    Creation of Event:
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    Hope it hepls you

Maybe you are looking for

  • Is there a workaround for moving. videofiles to Sansa Fuze

    Hi all I have bought a Sansa fuze 4 gb to my wife as a christmas gift. Musik and photo are Ok to just drag and drop. But videofiles needs to be converted in order to be loaded at the player. And Sansa has its converter just for windows. Is there a wa

  • SAMLPOSTProfileServlet failing to initialize and execute

    Doing some testing with SAML v1.1 against a Juniper SA SSL VPN. I got it working to a point where, after the IDP login, the SAML assertion is created, and redirects back to the SA. I had to restart the OpenSSo service because a change a the SAML 1.1

  • AIR 2.7 and molehill combi for iOS???

    Hi, how do you tell Flash CS 5.5 to compile an iOS app with AIR 2.7 and Flash player 11? (Molehill) I have both installed but Flash seems to complile to player 10 in AIR 2.7 and I want player 11 in AIR 2.7. Any help much welcome! regards!

  • "Application Help" for Solution Manager 4.0 pre SP 12 required

    Hello, where on the web I can find the application help for the SAP Solution Manager 4.0 in the version relevant for me (SP 10)? On help.sap.com I only find the help for SAP Solution Manager 4.0 SP12. But in SP12 there are some screens which are not

  • Why is my iMac clicking and having difficulty starting up?

    In the past 2 weeks, my iMac has been making odd clicking noises when starting up and when waking from sleep. The motor drones to start up (accompanied by the clicking), will fail, and it will try starting again. It usually requires restart when I'm