Show a form component in a portlet

I tried the following method to call a component in the show procedure of a portlet:
PORTAL30.wwa_app_module.link (
p_arg_names => PORTAL30.wwv_standard_util.string_to_table2('_moduleid:_show_header:_rowid'),
p_arg_values => PORTAL30.wwv_standard_util.string_to_table2('2755583209:YES:ABCDEFGHIJKLMNOPQR'));
The result is error message: 302 Found. What does that mean? And how can I show a form component inside a database portlet?
Thanks,
Song

I would rephrase: it's actually a design consideration that the portlet links take you to a separate page. It keeps from hitting the cache/refreshing the rest of the portlets on the screen just for one portlet.
The folks on this board, myself included, will have trouble answering questions regarding the wiring of declarative portal components since they are outside the PDK.
I can tell you, though, that the declarative components will not read parameters from the URL as outlined in the PDK. They must be passed using the parameter form.

Similar Messages

  • How do I get the _pageid using wwpro_api_parameters for a form published as a portlet

    Hi, I need to be able to determine which page my form component is running on.
    Is it possible using the pl/sql api to determine the value of the _pageid parameter?
    The wwpro_api_parameters package does not expose all of the parameters in the URL. I need the _pageid parameter.
    The only alternative I can think of, is to output some Javascript in the before form PL/SQL section that stores the document url in a cookie, which is then retrieved using the OWA_COOKIE package.
    Surely there is a better alternative?
    I am running 3.0.9.8.1 (patched) on Windows NT.
    I know report components published as portlets have access to p_page_url? Is there something similar for form components?
    I know I am unlikely to get a response!
    kind regards,
    Matt.

    Resorted to cookies!
    Before page pl/sql ...
    begin
    htp.p('^script language="Javascript1.1"^SetCookie("PageURL",unescape(document.location),expire(1,0,0,0),"/",".disney.com");<^script^');
    end;
    declare
    lv_page_url VARCHAR2(256) := null;
    pageurlCookie owa_cookie.cookie;
    ln_type_id number := -1;
    lv_currenttab varchar2(64);
    begin
    begin
    pageurlCookie := owa_cookie.get('PageURL');
    if pageurlCookie.num_vals != 0 then
    lv_page_url := substr(pageurlCookie.vals(pageurlCookie.vals.first),1,256);
    end if;
    exception
    when others then
    null;
    end;
    if lv_page_url is not null then
    lv_page_url := bvhe_page_utils.unencode(lv_page_url);
    end if;
    lv_currenttab :=
    bvhe_portal.bvhe_page_utils.get_idname(
    bvhe_portal.bvhe_page_utils.process_pageid(
    bvhe_portal.bvhe_page_utils.get_pageid(lv_page_url)
    null

  • Jpanel overlap Forms Component

    Hi all,
    I'm using forms 11g, now i try to add one JPanel (Swing) to DrawPanel (Oracle forms DrawPanel), I add the panel first after that I add other Forms component such as VTextField, VBUtton, after that I change Z-order of JPanel to last index (because i want Jpanel will be overlapped by other forms components) .
    But the result always show the JPanel overlap Form Component.
    For more detail you can view this link : [http://stackoverflow.com/questions/7764532/jpanel-overlap-other-components]
    Thanks in advance
    Best regards,
    Edited by: 891733 on 21:05 16-10-2011

    Hi,
    When i change JPanel to Forms DrawnPanel, i still got this problem,
    And i've already added this post to Java Programming Thread
    jpanel overlap Forms Component

  • Editing Views show empty Form ?

    Hi,
    I'm using System Center Service Manager 2012 R2 installed on Windows 2012 R2  , after Creating any view Trying to edit the view will Show empty form with no errors .
    I have seen these errors only once:
    Date: 15/01/2014 11:21:29 AM
    Application: Edit new
    Application Version: 7.5.3079.0
    Severity: Error
    Message: Failed to verify reference to ViewType: GridViewType
    : Verification failed with 1 errors:
    Error 1:
    Found error in 1|ServiceManager.IncidentManagement.Configuration|1.0.0.0|View.858a467f17b94904b29b2a9aae080372|| with message:
    Failed to verify reference to ViewType: GridViewType
    : Cannot resolve identifier CustomSystem_WorkItem_Library!System.WorkItem in the context of management pack ServiceManager.IncidentManagement.Configuration. Unknown alias: CustomSystem_WorkItem_Library
    : Failed to verify reference to ViewType: GridViewType
    : Cannot resolve identifier CustomSystem_WorkItem_Library!System.WorkItem in the context of management pack ServiceManager.IncidentManagement.Configuration. Unknown alias: CustomSystem_WorkItem_Library
    Date: 15/01/2014 11:31:46 AM
    Application: Service Manager Console
    Application Version: 7.5.3079.0
    Severity: Error
    Message: Failed to retrieve the default task for the location 'msscnav://root/Windows/Window/ConsoleDisplay/Folder.c3ad7662-019c-62f0-1584-a98c72fe117a/Folder.709bb4d6-a960-6301-a6fb-b4b9e2864c26/Folder.3ce978e8-b521-d5de-275c-8ba5903bafc4/View.e29ba681-3b83-b91e-ccfc-b9617e984443'.
    Microsoft.EnterpriseManagement.ConsoleFramework.TaskQueryFailedException: Failed to retrieve the default task for the location 'msscnav://root/Windows/Window/ConsoleDisplay/Folder.c3ad7662-019c-62f0-1584-a98c72fe117a/Folder.709bb4d6-a960-6301-a6fb-b4b9e2864c26/Folder.3ce978e8-b521-d5de-275c-8ba5903bafc4/View.e29ba681-3b83-b91e-ccfc-b9617e984443'.
    ---> Microsoft.EnterpriseManagement.UI.DataModel.QueryFailedException: Query to adapter 'dataportal:NavigationTaskAdapter' failed. ---> : Cannot resolve identifier CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident in the context of management
    pack ServiceManager.IncidentManagement.Configuration. Unknown alias: CustomSystem_WorkItem_Incident_Library
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.UI.DataModel.DataPortalService.EndQuery(IAsyncResult result)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Uri adapterUri, Uri dataSourceUri, IList`1 inputs, Dictionary`2 parameterList, DataQueryBase query)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Uri adapterUri, Type adapterType, Uri dataSourceUri, Dictionary`2 parameterList, IList`1 inputs)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.SdkNodeProvider.GetTasksFromAdapter(IList`1 nodes, TaskQueryCriteria queryCriteria)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.SdkNodeProvider.GetTasks(Uri providerRoot, IList`1 nodes, TaskQueryCriteria queryCriteria)
       at Microsoft.EnterpriseManagement.ConsoleFramework.NavigationModelAdaptor.GetNodeTasks(DataQueryBase query, IList`1 nodes)
       at Microsoft.EnterpriseManagement.ConsoleFramework.NavigationModelAdaptor.DoAction(DataQueryBase query, IList`1 dataSources, IDictionary`2 parameters, IList`1 inputs, String outputCollectionName)
       at Microsoft.EnterpriseManagement.UI.DataModel.QueryQueue.StartExecuteQuery(Object sender, ConsoleJobEventArgs e)
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.ConsoleFramework.ExecuteNodeTask.EndExecution()
       at Microsoft.EnterpriseManagement.ConsoleFramework.NavigationModel.EndExecute(IAsyncResult asyncResult)
       at Microsoft.EnterpriseManagement.ConsoleFramework.ConsoleViewContext.<>c__DisplayClass2.<OnDefaultTaskEnded>b__0(Object , ConsoleJobEventArgs )
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
    Microsoft.EnterpriseManagement.UI.DataModel.QueryFailedException: Query to adapter 'dataportal:NavigationTaskAdapter' failed. ---> : Cannot resolve identifier CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident in the context of management pack
    ServiceManager.IncidentManagement.Configuration. Unknown alias: CustomSystem_WorkItem_Incident_Library
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.UI.DataModel.DataPortalService.EndQuery(IAsyncResult result)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Uri adapterUri, Uri dataSourceUri, IList`1 inputs, Dictionary`2 parameterList, DataQueryBase query)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Uri adapterUri, Type adapterType, Uri dataSourceUri, Dictionary`2 parameterList, IList`1 inputs)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.SdkNodeProvider.GetTasksFromAdapter(IList`1 nodes, TaskQueryCriteria queryCriteria)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.SdkNodeProvider.GetTasks(Uri providerRoot, IList`1 nodes, TaskQueryCriteria queryCriteria)
       at Microsoft.EnterpriseManagement.ConsoleFramework.NavigationModelAdaptor.GetNodeTasks(DataQueryBase query, IList`1 nodes)
       at Microsoft.EnterpriseManagement.ConsoleFramework.NavigationModelAdaptor.DoAction(DataQueryBase query, IList`1 dataSources, IDictionary`2 parameters, IList`1 inputs, String outputCollectionName)
       at Microsoft.EnterpriseManagement.UI.DataModel.QueryQueue.StartExecuteQuery(Object sender, ConsoleJobEventArgs e)
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
    : Cannot resolve identifier CustomSystem_WorkItem_Incident_Library!System.WorkItem.Incident in the context of management pack ServiceManager.IncidentManagement.Configuration. Unknown alias: CustomSystem_WorkItem_Incident_Library
    Regards, Hikmat Kanaan Amman-Jordan Remember to click “Mark as Answer” on the posts that helps you

    Hi.
    Have you tried this http://systemcenterandmore.com/?p=39 ?
    For me it worked !
    Best regards
    Andreas

  • Dynamic Form componants in my jsf page?

    how could i make dynamic form componant in my jsf page ,depend on user inputs or result from database or whatever , where i use sun studio creator ???

    you need to use the "rendered" attribute of the components...
    for example in your jsp put this...
    <h:outputText value="Hello" rendered="#{myBean.renderHello}"/>
    the render hello method looks like this in your backing bean "myBean"
    public boolean getRenderHello() {
    return true; // or false
    if getRenderHello() returns true, "Hello" will be displayed, if getRenderHello() returns false, it will not...
    you can also use expressions in the jsf... for example...
    <h:outputText value="Hello" rendered="#{myBean.someNumber == 5}"/>
    if the "getSomeNumber()" method in your backing bean returns 5 it will be true and "Hello" will show up... otherwise it won't... :)
    Hope this helps...
    -Garrett

  • Error occured while showing adobe form in abap webdynpro application

    Dear SAP-Masters ,
    This is the mail regarding the error occured while showing adobe form in abap webdynpro application .
    When i run the adobe form seperately it works fine but with abap web dynpro , i'll get following error .
    Pls tell me how to resolve this problem .
    The following error text was processed in the system D35 : WebDynpro Exception:
    The error occurred on the application server DV35_D35_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: UPDATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP

    Hi Arjun ,
                Thanx for ur reply ,
                i got following results in ST22 dump analysis :
    '  An exception occurred that was not caught ' .
            and
    Source Code Extract
    Line
    SourceCde
    79
    x_xml = get_wd_context_as_xml( data_source = data_source ).
    80
    m_pdf_object->set_data( formdata = x_xml ).
    81
    catch cx_fp_exception into lr_fpexc.
    82
    raise exception type cx_wd_general
    83
    exporting
    84
    previous = lr_fpexc.
    85
    endtry.
    86
    if fillable = abap_true.
    87
           if m_version is initial.
    88
             m_version = m_pdf_object->get_version_info( ).
    89
           endif.
    90
           if version < ''.
    91
             set_usage_rights( m_pdf_object ).
    92
           endif.
    93
    endif.
    94
    endif.
    95
    endif.
    96
    97
    only call the ads if requested
    98
    if execute_ads_call = abap_true.
    99
    try.
    100
          set document
    101
    m_pdf_object->set_document( pdfdata = pdf ).
    102
    103
          execute, call ADS
    104
    m_pdf_object->execute( ).
    105
    106
          get result
    107
    m_pdf_object->get_document( importing pdfdata = pdf ).
    108
    catch cx_fp_exception into lr_fpexc.
    >>>>>
    raise exception type cx_wd_general
    110
    exporting
    111
    previous = lr_fpexc.
    112
    endtry.
    113
    endif.
    114
    115
    endmethod. 
    and
    Error analysis
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    WebDynpro Exception:
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_FP_RUNTIME_SYSTEM", which was raised in the program
    "CL_FP_PDF_OBJECT==============CP",
    specifically in line 255 of the (include) program
    "CL_FP_PDF_OBJECT==============CM02Y".
    The cause of the exception was:
    ADS: com.adobe.ProcessingException: PDF is not interactive.  Data can only be
    |    imported into interactive forms.(201501).

  • Error when creating a Report with Form component

    I am trying to create a new report with form component but when I try to choose the Table/View name I get a web error "404 web not found". I know for a fact that the list is working because I see the list when I create a "simple form". Is this a bug or i need to do something to get it working? thanks

    419008,
    It is a bug that has been identified and will be corrected in an HTML DB patch. There is nothing you can do to correct it.
    This bug is specific to Internet Explorer and utf-8 encoding. It is not a bug with IE, it is a bug with how we handle this for IE.
    Joel

  • Button Icons not show in Form 11g run time

    Button Icons not show in Form 11g
    I installed the following tools :-
    Weblogic Server 10.3.6
    SE JDK 6U35 64bit
    Oracle Portal,Forms,Report,and Discoverer Services (11.1.1.4.0)
    1. Create a "icons" folder and place all gif images in there :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\<icons>
    2. Within icons i made a jar file of all gif images :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\icons\jar -cvf frmicons.jar *.gif
    3. Copy this new jar file into :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\
    4. Edit formsweb.cfg file:
    imageBase=codebase
    archive=frmall.jar,frmicons.jar
    5. Edit Registry.dat file:
    default.icons.iconpath=/forms/java
    default.icons.iconextension=gif
    After doing above configuration i create a form and place an icon on the button.
    Set button's icon property = Yes and give name of icon without extension.
    When i run the form not display icons who configure icons.
    Please give the solution how to set icons on button.
    Thanks & regards,
    Java console message :-
    Java Plug-in 1.6.0_25
    Using JRE version 1.6.0_25-b04 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Shiv
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Forms Session ID is formsapp.8
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    Forms Applet version is 11.1.2.0
    FRM-92471: unable to load image exit for iconic button item

    Duplicate post. Refer to comments in Push Button Iconic not show in Forms 11g

  • Help: how to show 9i forms without browser

    Hi, I want to show 9i forms in separate frame without browser, and I use JInitiator. I use separateFrame=true, which worked. But my question is since I don't need the browser, I want to close it. The problem is it'll close the form too. I think the reason for that is the browser is the parent of the form. Can someone tell me whether is possible to close the browser page without closing the actual form? or is there any other way to display actual form without the browser frame. Please help! Thanks,
    Sa

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • Tax details are not showing in Form 16 ..India payroll

    Hi Experts,
    I have done all configurations with respect to India Payroll.But im unable to see follwing details in form 16.
    A. Value of perquisites under section 17(2) are not showing in form 16.
    B. Less: Allowance to the extent exempt under section 10 ....are not showing  in     Form 16.
    C.Deductions under chapter 6A are not showing in form 16.
    D.Total income .Tax on total income ,surcharge ,Tax payable are also not  showing in form 16.
    Probably i might have missed some important steps while configuring.Please tell and advice me to resolve the problem.Thank you very much.
    Regards,
    Sai.

    Hi,
    Firstly, check in the RT cluster table for the employee if the folowing wagetypes aare fetching values.
    /416, /418, /130, /432.....few more for surcharge etc..but if the given wagetypes are fetching values, then other will also be caputured.
    Also, did u maintain Tax infotypes 586, 585, 582 etc..
    If yes, then problem can be with the confuguration of the wagetypes.
    Please check the above and let us know...
    Regards,
    Pranitha

  • Passing Parameters to Form Component

    Can I pass parameters to a form component through the URL...like PORTAL30.wwa_app_module.new_instance?p_moduleid=1098075940 is the link to get the form ..I want to pass a parameter along with this.This is to pass the parameter to a stored procedure on which the form is based.
    null

    Yes you can pass parameters.. here's a quick tutorial..
    There are 2 ways to link to a 3.0 form from another component:
    1. "Query links", in this mode user can specify any conditions for the form and when the form
    gets these values it will execute the query using passed conditions and if a record found we will bring the form in the update mode so that record can be updated, if multiple records found all set of the records will be returned, and user can use "Next" and "Previous" buttons to navigate in the set.
    If none of the records in the table satisfy the criteria, the form will be shown in insert mode with all fields empty.
    Parameter | Condition | Static Value | or | Column Name
    EMPNO &#0124; &#0124; >= &#0124; &#0124; 7900 &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    ENAME &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    JOB &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    MGR &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    HIREDATE &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    SAL &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    COMM &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    DEPTNO &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    showheader &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    _rowid &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    Resulting Link Example:
    portal30.wwa_app_module.link?
    p_arg_names=_moduleid&p_arg_values=1060253649
    &p_arg_names=_sessionid&p_arg_values=
    &p_arg_names=EMPNO&p_arg_values=7900
    &p_arg_names=_empno_cond&p_arg_values=%3E%3D
    2. "Link-to-fill-the-defaults"
    This type of link is similar to WebDB 2.x forms link.
    Take the link above and remove all the conditions and you will get the "defaults" link, we just take whatever you put in the value field and put it in the form field as a default value, no query performed. This type of link should be used in case if the users want to create a new record based on some of existing table data. For example to create another employee record in a department with the same job title and reporting to the same manager.
    Parameter | Condition | Static Value | or | Column Name
    EMPNO &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    ENAME &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    JOB &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; JOB &#0124; &#0124;
    MGR &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; MGR &#0124; &#0124;
    HIREDATE &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    SAL &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    COMM &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    DEPTNO &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; DEPTNO &#0124; &#0124;
    showheader &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    _rowid &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124; &#0124;
    Resulting Link Example:
    portal30.wwa_app_module.link?
    p_arg_names=_moduleid&p_arg_values=1060253649
    &p_arg_names=_sessionid&p_arg_values=
    &p_arg_names=JOB&p_arg_values=CLERK
    &p_arg_names=MGR&p_arg_values=7902
    &p_arg_names=DEPTNO&p_arg_values=20
    null

  • How to retrieve a jsf component value of portlet based Faces JSP ?

    In my JSF JSR 168 spec application, I need to perform Javascript client-side validations like null-check etc. in my Faces JSP.
    In my JSP, I have a text field and a button which calls the validate method.
    <f:view>
    <h:form styleClass="form" id="schedulerForm" >
    <hx:scriptCollector id="scriptCollector1">
    <h:inputText styleClass="inputText" id="eventName"  required="true" value="#{schedulerBean.eventName}">
    </h:inputText>
    <h:commandButton id="TestButton" value="Validate" onclick="validate();"></h:commandButton>and the javascript method is :
    <script language="JavaScript">
         function validate(){
            var form = document.schedulerForm;
            alert(form.eventName.value);
          return false;
    </script>
    </hx:scriptCollector>
    </h:form>But I am get the alert "Undefined".
    All I want is to check if the eventName field is null. So when the button is clicked, the eventName field should be checked against null condition. But since this is running in JSF JSR 168 portal,I think the form gets encoded, and in the view source, I could see that form id is encoded.
    So how can I get the encoded formname in my Javascript, inorder to access the components?.
    In Struts we use PortletApiUtils class to retrieve the encoded bean name, similarly is there any class that we can use to get the encoded form name in Faces Portlets JSP?.
    Please help me.

    Thanks for the IDea, but although the code compiles and seems to work fine, the real result is that the ID of <f:subiew> is still the same as designed in the "logo.tag" file. In other words - setting ID at run time has no effect.
    Actually I'm trying to solve the problem when I use the tag more than once - I would like to have access to all "f" and "h" controls in every tag. But waht happens when the tags are placed dynamically? Let's say I have "<h:dataTable>" with unknown number of rows and in every row I would like to place such a tag (or something else with ID). How do you solve such situations?

  • Show parameter form and then print directly to client printer

    I have few reports that show parameter form for user entry. After the user enters the parameter and hits Submit query, the report should automatically get printed on the client's default printer. I tried to use ORARRP but I could get that to work only for reports do not open parameter form before going directly to the printer. Can someone please guide me how to achieve this?
    Thanks!

    I would like it to go to the client PCs default printer. Can you please tell me how do I do that?

  • Form component

    Is there any default Form component to display and navigate records?
    What I like to have is a component just like table on which we can attach/drag a data provider but than for single record display, which first, previous, next and last record navigation buttons.
    I believe this is out-of-the-box available is it?
    I know I can create a form and manually add buttons, but then I have to di this for all single record forms.
    Regards,
    Marcel
    BTW: Congrats on delivering SJSC2. My first impressions are good.

    Hi Marcel,
    Thanks for appreciating JSC 2! We really look forward for your participation here to make this product better!
    And about your Question--
    I guess, you know about the Table component, which makes it ez for the type of databinding and pagination. You could just drop a database table and enable pagination for navigating through the rows. But this one doesn't display a single record in a Form with datacolumns/fields displayed in a vertical fashion.
    But it is still very easy with Creator to build such a form with navigation.
    Please check out the bundled sample application 'Single Page CRUD with Form' which demo's such a functionality. You can get a copy of it by choosing File> New Project> Samples> Single Page CRUD with Form.
    HTH,
    Sakthi

  • Component Portal to Portlet

    Hi:
    I need to develop some applications that are developed using the component portal to portlet . Are there any tools that make?
    Is there any documentation that can help me?
    Best Regards.
    Maria Elena

    Hi:
    Yes, I want to convert my developed portal applications to portlets.
    Any idea, documetation, same example??????
    Best Regards.
    Maria Elena

Maybe you are looking for