Dynamic pages with WebCenter Sites CSElements

We are using the benefits of WebCenter Sites 11g regarding the possibilities of create the templates and the final user be able to compose the the pages. By the other hand, we have the necessity to create dynamic pages with business logic and interaction with database or web-services with WebCenter Sites templates. We expect to be able to embed these dynamic pages inside CSElements. With all of this in mind, what is the best approach? I'd like to know if our solution to use the Spring 2.5 + JPA 2 is a good a approach to reach our necessity/requirement or WebCenter Sites 11g has another better way to do that.

You can add your own business logic to CSElements, or create your own tag libraries and add your logic there. If you're using a framework like the GSF you can call an action from your element as well. In all cases, you are free to use whatever tools you like to help you implement your business logic (provided that it is compatible, which you've already learned about. :-). Just be careful that you don't use the same database connection pool that Sites uses or you may run out of connections. Also, pay attention to how you are caching your pages and pagelets when you are calling external services or accessing external resources.
Regards
Tony

Similar Messages

  • Document\Approach\Guidance for ATG Integration with Webcenter Site

    we have a requirement where pages/templates/content will be created in Webcenter Sites and will be consumed in ATG. I am looking for some Document\Approach\Guidance for Webcenter Site and ATG Integration

    I am looking for some Document\Approach\Guidance for Webcenter Site and ATG IntegrationBelow may help you:
    http://www.extended-content.com/wp-content/uploads/2012/07/WhitePaper-PublishingContentToATGFromOracleWebCenter-July2012.pdf
    http://www.extended-content.com/mediastore-now-integrates-with-webcenter-sites/
    http://technology.amis.nl/2011/08/13/fatwire-integrated-into-webcenter-as-webcenter-sites-for-web-experience-management/
    Hope this helps.
    -RMishra

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Cannot create dynamic page with cursor based on linked table

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

  • Dynamic Page with Multiple Checkboxes

    I am trying to get a dynamic page to pass the checked value of multiple checkboxes to the submit proceedure. Can anyone tell me what I am doing wrong?
    Thanks in advance,
    Pam -------------------------------------------------------------------------
    Dynamic Page:
    <HTML>
    <FORM action="scott.brsubmit" method="POST">
    <TABLE border CELLPADDING=0 CELLSPACING=0>
    <ORACLE>begin
    for c1 in (SELECT rowid,ename, job, bonus from scott.bonus_approval where approved is null)
    loop
    htp.p('<tr><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.ename);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.job);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.bonus);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="hidden" name="p_ename" value='||c1.ename||'>');
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="checkbox" name="p_cb2" value="N">');
    htp.p('</td></tr>');
    htp.p('<br>');
    htp.p('
    end loop;
    HTP.P('</table>');
    htp.p('<p>');
    htp.p('<input type=submit value="Save" name="p_action" >');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    Procedure:
    (p_ename in portal.wwv_utl_api_types.vc_arr, p_cb in portal.wwv_utl_api_types.vc_arr, p_cb2 in portal.wwv_utl_api_types.vc_arr, p_action varchar2)
    as
    begin
    if p_action = 'Save' then
    for i in 1..p_ename.count loop
    if (p_cb(i) = 'Y') then
    update scott.bonus_approval set approved = p_cb(i) where ename = p_ename(i);
    COMMIT;
    else
    if (p_cb2(i) = 'N') then
    update scott.bonus_approval set approved = p_cb2(i) where ename = p_ename(i);
    COMMIT;
    END IF;
    end if;
    end loop;
    end if;
    htp.print('<script language="JavaScript">');
    htp.print('function display() {
    var msg = "\nRecord Saved Successfully\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display()');
    htp.print('</script>');
    exception
    when others then
    htp.print('<script language="JavaScript">');
    htp.print('function display2() {
    var msg = "\nRecord Not Saved.\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display2()');
    htp.p('Not saved');
    htp.print('</script>');
    end;

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • The browser has a green color at the top of the page. This green also appears inside the page with certain sites. I'm unable to change it-it's ugly and annoying since I do not know it happened.

    The browser has a green color at the top of the page. This green also appears inside the page with certain sites. I'm unable to change it-it's ugly and annoying since I do not know it happened.

    Read the article below:
    iPhone: Troubleshooting activation issues

  • Unable to synch Assets of type Page to webcenter sites.....

    Hi All,
    We have kept repository containing developed source code on SVN and i have checked out the code into my workspace.
    When i am trying to import Templates to my webcenter sites instance using 'Synch to WebCenterSites' , for some templates
    i am getting log message as following
    [2012-10-12 11:44:48,278] [INFO ] [.kernel.Default (self-tuning)'] [com.fatwire.csdt] Importing DSKEY Template-b7b5e4d6-2aee-4536-9514-559b602d19f4 (batch 1349998214674)
    [2012-10-12 11:44:48,326] [INFO ] [.kernel.Default (self-tuning)'] [com.fatwire.csdt] SKIPPING Template:1349502826947 as it has same timestamp as that in CS.
    [2012-10-12 11:44:48,326] [INFO ] [.kernel.Default (self-tuning)'] [com.fatwire.csdt] *** Completed importing batch 1349998214674
    And when i loged in to WCS i cant see there Templates of type Page in Admin interface!!!!!!
    Is there something special process for importing Page assets ??? Even i cant see any pages in Contributor mode????
    Can anyone help me in it???
    Thanks in advance,
    SUVARNA
    Edited by: 964284 on 11-Oct-2012 18:03

    Did you created any choice filed in the page layout?
    Textfiled shold like this
    <SharePointWebControls:TextField FieldName="FieldName"
    runat="server" id="txtName"></SharePointWebControls:TextField>
    Below article describes "how to create pagelayouts in sharepoint 2007"
    http://blogs.msdn.com/b/kaevans/archive/2011/04/02/page-layouts-in-sharepoint.aspx

  • Integrating InDesign with WebCenter Sites

    We are looking at implementing WebCenter Sites but need a print component as well. Has anyone intergrated InDesign with OWS? We want OWS to be the central place for all content. Most of that content is served for the Web, but some of it needs to be served for print.
    Thanks.

    I don't believe that noone has ever tried to connect the local BPM environment to a remote WCC server before. Please let me know if you've ever experienced the same problem. Otherwise, even a simple "I tried to do the samething and I succeeded using the same steps in the tutorial" would help too .
    Another thing is that yesterday, I talked to the tech-lead and I learned that our WCC server environment doesn't have BPM installed yet. I am wondering if this would cause the WCC server to not understand the request from my BPM server. In addtion, I've also upgraded my local BPM server using the lastest SOA bundled patch. Should the same patch be applied to the WCC server environment too?
    I'd be very grateful for any advice .

  • Pass parameters to a dynamic page with MULTIPART

    Hello everybody,
    I'm facing with a problem that I still can't resolve...
    For some reasons I need to use a Dynamic Page as a form, so I create an html form (which contains also an <input type="file" name="file_test">) that call the same page with enctype="multipart/form-data".
    When I call the page to save the data, I can read all the parameters with :parameter_name, but I can't read the content of the file. If I try to get :file_test it contains only a file name.
    How I can get:
    1) the mime format
    2) the content of the file (binary)
    and then save it in a blob?
    Thank you in advance for your help...

    You can use sessions to pass values from one page to another.
    In page A you can add a value:
    v_user_session portal.wwsto_api_session;
    v_user_session := portal.wwsto_api_session.load_session(
    p_domain => 'yourDomain',
    p_sub_domain => 'sub');
    v_user_session.set_attribute(
    p_name =>'name',
    p_value => 'YourValue'
    v_user_session.save_session;
    The p_domain and p_sub_domain can be choosen freely but you must know that they have to be the same if you want the retrieve the value from page2:
    v_user_session portal.wwsto_api_session;
    v_user_session := portal.wwsto_api_session.load_session(
    p_domain => 'yourDomain',
    p_sub_domain => 'sub');
    yourValue := v_user_session.get_attribute_as_varchar2('name');
    This is how you can pass values without posting or without adding them to the URL.

  • Default users configured with Webcenter Sites 11gR1 Jump Start Kit

    Hi All,
    I have installed Webcenter Sites 11gR1 Jump Start Kit. I want to use James Email Server that is shipped with the JSK and I am not sure of what default users have been configured with the JSK.
    Does anyone know what are the default users configured for James Server?
    Thanks in Advance,
    Hari

    Hi Hari,
    The default admin user fwadmin should be the default for mail server also. Configuring users explicitly for mail server is not possible. To use mail server the below said properties must have values.
    cs.emailaccount-- The account used to send mail
    cs.emailhost--mail server host exe:localhost:25
    cs.emailpassword--password for above said mail account
    cs.emailcharset and cs.emailcontenttype properties are optional. These properties are found in futuretense.ini
    Thanks,
    Harish

  • Creating dynamic pages with static URLs

    Hello
    I've built a simple CMS (in DW, using ASP and MS SQL) for a
    client which allows them to edit existing pages (all of which are
    called page.asp?p=X) or add news pages if they want.
    However they'd like to be able to name their new pages e.g.
    pagename.asp.
    Is there an easy way to do this?
    Many thanks in advance
    Square Eye

    Hi Abhilash,
    Thanks for the quick reply.
    Actually the problem is with the image, as I am not able to rotate 270 degree. Crystal report cannot support the rotation of image.
    i have another problem, I have to create a report in which
    Lables are fixed on the left side of report and 3 columns per portrait page. Those columns are
    dynamically created and shown in the report.
    The format is like the above. Can you please help me in doing this report, as I tried it doing
    with CrossTab. I am really stuck to this report.

  • I get diverted from common websites clicked from hypertext transfers - it goes to a "cannot find" page with preferred sites -- site address begins with "urlseek80..." The sites I want are large and well-known -- many are CBC Canada What can I do?

    I use the CBC.ca site every day and have done so for years -- recently, when I attempt to raise it -- usually from my "bookmarks" list -- I get a "can't find.." message and find myself on a "urlseek80..." site with lits of suggestions of sites I may want to go to instead. -- Am I being hijacked? what can I do to avoid this diversion? This is not the only website I have this problem with.

    Hi DamianALugo,
    This is just unacceptable, and if this was my purchase I would be equally upset. If an employee promises a call to a customer they should be making that call, and you should have been given an accurate explanation as to why these deliveries were being rescheduled.
    The only times a BestBuy.com order would be automatically cancelled by us would be if it was set to be picked up in one of our stores, and it wasn’t picked up in a timely manner; the only other time would be if an order was on backorder for a period of time without the customer requesting us to extend this backorder.
    Is there anything specific I can do to get this resolved for you? If so, post back to this thread or send me a private message with what you need. I promise to do what I can to get you any resolution you are seeking. To send me a private message click on the link in my signature.
    Thanks for posting,
    Allan|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • How can I solve white page with some sites in safari 8?

    Hello.
    I have problem with Safari 8. I can't see the articles that I want to read.  It's appear in white page.
    How can I solve this issue?
    Thank you.

    Hi ..
    Might be a cookies, cache, extensions, or plug-ins issue.
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, from the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.

  • Problem calling Procedure with parameter from Dynamic Page

    I received an error saying the Page not found
    here's how to reproduce the error.
    1. Create procedure in portal30 schema.
    Create or Replace PROCEDURE PORTAL30.ADD_TWO_VALUES
    v_one IN NUMBER,
    v_two IN NUMBER,
    v_result OUT NUMBER)
    as
    begin
    v_result :=v_one+v_two;
    end;
    2. Create Dynamic Page with following code
    <ORACLE>DECLARE
    v_total NUMBER;
    BEGIN
    ADD_TWO_VALUES(:v_one,:v_two, v_total);
    htp.p('The total is => ');
    htp.p('<input type="TEXT" VALUE='||v_total||'>');
    htp.para;
    htp.anchor('http://<machine.domain:port#>/pls/portal30/PORTAL30.DYN_
    ADD_TWO_VALUES.show_parms', 'Re-Execute Procedure');
    END;</ORACLE>
    3. I clicked on Customize Link and entered 2 numbers as values for v_one and v_two.
    4. Got "The page cannot be found" error in I.E. or "The requested URL /pls/portal30/PORTAL30.DYN_SAMPLE_ADD.show was not found on this server." on Netscape
    However when I subsitute "ADD_TWO_VALUES(:v_one,:v_two, v_total);" in the dynamic page for "ADD_TWO_VALUES(3,2, v_total);", it runs just fine.
    What's wrong here? Can I not use a parameter from a dynamic page and call a procedure with it? Help is needed urgently and will be greatly appreciated.
    -Ahsun

    Hi,
    I tried with your code with few changes ,please try with them.
    Create or Replace PROCEDURE <myschema>.ADD_TWO_VALUES
    v_one IN NUMBER,
    v_two IN NUMBER,
    v_result OUT NUMBER)
    as
    begin
    v_result :=v_one+v_two;
    end;
    I created the procedure in <mySchema> and granted that to <application_schema> and made some changes
    <ORACLE>
    DECLARE
    v_total NUMBER;
    BEGIN
    <procedure_schema>.ADD_TWO_VALUES(:v_one,:v_two, v_total);
    htp.p('The total is => ');
    htp.p('<input type="TEXT" VALUE='||v_total||'>');
    htp.para;
    htp.anchor('http://<your_host>/pls/<portal_schema>/<application_schema>.DYN_FOR_OTN.SHOW_PARMS', 'Re-Execute Procedure');
    END;
    </ORACLE>
    Hope this helps.
    rahul

  • Cannot find procedures with dynamic pages

    Hi all,
    I have a problem with dynamic pages. cannot find procedures.
    This is the content of a a dynamic page (example):
    <HTML>
    <ORACLE>
    begin
    htp.print(htf.bold(‘Fill in field values and use the push button to buy ticket’));
    htp.br;
    htp.formOpen(‘NETU.BUY_TICKETS’);
    htp.teletype(‘Student Id___:’);
    htp.formText(‘p_id’,5,5);
    htp.br;
    htp.teletype(‘Event Id_____:’);
    htp.formText(‘p_eventid’,5,5);
    htp.br;
    htp.teletype(‘# of Tickets_:’);
    htp.formText(‘p_no_of_tickets’,5,5);
    htp.br;
    htp.teletype(‘Credit Card’);
    htp.br;
    htp.teletype(‘AMEX,MC,VISA_:’);
    htp.formText(‘p_cc_type’,5,5);
    htp.br;
    htp.teletype(‘Card #_______:’);
    htp.formText(‘p_cc_number’,10,10);
    htp.br;
    htp.formSubmit(NULL,’Buy Ticket’);
    htp.formClose;
    end;
    </ORACLE>
    <HTML>
    and try to call to this procedure ‘NETU.BUY_TICKETS’ for save form data in BD:
    begin
    insert into tickets (id, eventid, no_of_tickets,cc_type,cc_number, trans_date) values (p_id, p_eventid, p_no_of_tickets, p_cc_type, p_cc_number, sysdate);
    exception when others then htp.print(‘SQL Error Message:’||substr(SQLERRM,1, 200));
    end;
    All compiled fine.
    The problem exact is when i submit the form, cannot find procedure.
    In browser address show this -> http://portal:7778/pls/portal/NETU.BUY_TICKETS
    and in the body...
    404 Not Found
    Unable to process request. Please check the log file for more details.
    The dev is on OracleAS 10g, on a Solaris 5.10 dual Sparc machine.
    With:
         HTTP_Server     
         Internet Directory
         OC4J_SECURITY     
         Single Sign-On:orasso     
         Gestión
    on infra tier and
         Discoverer     
         Forms     
         home     
         HTTP_Server     
         OC4J_BI_Forms     
         OC4J_Portal     
         OC4J_Wireless     
         Portal:portal     
         Reports Server: rep_portal_oracleas2     
         Web Cache     
         Wireless     
         Gestión     
    on middle tier, all running without problem...
    mmm ... what's wrong? where is the log? i find a lot...

    I have tried your code and it works for me . Here are the steps and codes I have used to stimulate your process
    1. Created the procedure
    CREATE OR REPLACE PROCEDURE p_buy_tickets (p_id in number, p_eventid in number, p_no_of_tickets in number, p_cc_type in varchar2, p_cc_number in number) IS
    BEGIN
    htp.print('Processed Successfully');
    EXCEPTION
    WHEN OTHERS THEN
    htp.print('SQL Error Message:'||substr(SQLERRM,1, 200));
    END p_buy_tickets;
    2. Granted 'Execute' privilge on this procedure to Public.
    3. Created a dynamic page with the following code (same as yours except the schema):
    <HTML>
    <ORACLE>begin
    htp.print(htf.bold('Fill in field values and use the push button to buy ticket'));
    htp.br;
    htp.formOpen('MY_SCHEMA.P_BUY_TICKETS');
    htp.teletype('Student Id___:');
    htp.formText('p_id',5,5);
    htp.br;
    htp.teletype('Event Id_____:');
    htp.formText('p_eventid',5,5);
    htp.br;
    htp.teletype('# of Tickets_:');
    htp.formText('p_no_of_tickets',5,5);
    htp.br;
    htp.teletype('Credit Card');
    htp.br;
    htp.teletype('AMEX,MC,VISA_:');
    htp.formText('p_cc_type',5,5);
    htp.br;
    htp.teletype('Card #_______:');
    htp.formText('p_cc_number',10,10);
    htp.br;
    htp.formSubmit(NULL,'Buy Ticket');
    htp.formClose;
    end;
    </ORACLE>
    <HTML>
    4. I got the message 'Processed Successfully' when I ran the dynamic page and submitted the form.
    You may need to check how you declared parameters in the procedure and how you supplied values when you run the procedure. In this case, I created the procedure with "No Default" value for all parameters , so I have to supply value for all parameters in the form otherwise I will encounter the 'Page Not Found' error.
    Hope this helps!.
    Thanks
    Krishnamurthy

Maybe you are looking for