Using client listener on page level

Hello All,
I am having a jspx page and i am able to add client listener on individual components but my requirement is i want to add a client listener on page level so that when I run the page, through client listener lets say on keydown it will call a javascript and do the required action.
But I am not able to add client listener on entire page region. It is not working. Is there any solution or workaround?
Thanks
-- Navin Kumar

dup to {thread:id=2287973}

Similar Messages

  • What is the best output page-level help for a thick/fat client software app

    I am looking to do some reorganizing of some help projects here at my new employer.  For the past 10 years, I have only been dealing with web-based apps so all my help has been web help... sometimes page-level, sometimes not.  However, I will need to now convert and/or create new help for a software app that is thick-client style.  I need to know what the optimum output format would be to work best for page-level, thick-client, online help... HELP!
    BTW.. I am currently using RH10 for Windows 7.
    Thanks,
    kb

    The best format depends on your client's situation. Do all client pc's have internet access and can you get a server to host the help? If so, I would go for WebHel/HTML5. That's the easiest to maintain and the client won't have to hassle with installing help.
    If you client doesn't have internet access or you don't have a server, a CHM is quite safe. It works well even though it is an old technology. But keep in mind that if the CHM is located on a network drive, it won't work unless the client is willing to change some security settings.
    Kind regards,
    Willam

  • How to copy a page( webpart page) with its content using client side.

    How to copy a page(in my case  webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
    What i am planning is ,to give end user a page where it will contain text box to specify  name of page and a button with the help of  content editor webpart.
    where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
    Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
    or can we create a template of an existing page with content without the help of sharepoint designer.
    Thanks in advance
    with regards Ravichandra

    This is good example
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
    Create web service
    http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
    Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
    Oleg

  • Quotes in a page level item not showing up as " when used in a hyper link

    Hi all,
    In my app, I need to hyper link to a crystal report application with parameters from my page. I have a page level item that puts my parameter in quotes, but when the item is utilized in the hyperlink, the quotes come across as & q u o t ; (spaces were put in to the post to avoid html conversion) how can my string be used to appear the way I want?

    I don't use Crystal Reports, but, in general, you should encode your URL. When you create your link, run the URL through utl_url.escape() first. Put it in your select statement.
    E.G.,
    select utl_url.escape('http://oracle.com/foo"bar') from dual;
    will escape/encode the quotation mark and give you:
    http://oracle.com/foo%22bar
    This translates the " into a URL-safe escape code, %22, that should (I hope) be understood properly by your Crystal Reports server.
    Good luck.

  • Permission Level Question (Use Client Integration Features)

    Hello All, 
    I just had a general question on one of the options for permission levels in sharepoint. There's one called "Use Client Integration Features":
    Can anybody explain exactly what would be enabled if I enable this option? I know some basic things so far, such as if I enable this, the "Send To->E-mail a link" option would appear for users. However, I'm not exactly sure what else this would
    be used for. Any help would  be greatly appreciated.
    Thanks!
    Chris

    Hi,
    hope these links helps you-
    http://office.microsoft.com/en-us/sharepoint-server-help/change-how-to-open-a-document-in-a-library-with-one-click-HA101729873.aspx
    http://technet.microsoft.com/en-us/library/ee837425(v=office.14).aspx
    http://blogs.technet.com/b/officeasia/archive/2013/01/09/configure-sharepoint-server-to-open-office-documents-in-client-application-by-default.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Jquery ui css is not loading in my page, i done this using client library....i tried to check using

    jquery ui css is not loading in my page, i done this using client library....i tried to check using firefox.. firebug addon..the css is showing as empty...so finall css is not calling can you please suggest the solution for this...

    Thanks for ur response...I followed the same link what you suggested for me...
    actually i try to display the buttons in  jquery ui buttons format but it is showing as normal buttons..so i checked uisng firebug ..here css showing as empty.....
    please suggest the same..
    In css.txt.. i write css file names like the below..please confirm is it correct or not
    jquery-ui.min.css
    jquery-ui.css
    Thanks in advance...

  • How check page level permission on SharePoint pages library using JSOM

    Hi,
    Can anyone tell me how check page level permission on SharePoint pages library using JSOM.
    Tanks in advance .
    Regards,
    Hari
    Regards, Hari

    Hi,
    According to your post, my understanding is that you want to check the page level permission on SharePoint Pages library via JSOM.
    I have made a simple code demo to check whether current user has edit permission for the pages in Pages library, it works like a charm.
    You can re-write it to fit your environment.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var web;
    var list;
    $(function(){
    $("#Button1").click(function()
    console.log(1);
    getListItems('Pages',success_Items,error_Items);
    console.log(2);
    function getListItems(listTitle,success,error)
    var context = SP.ClientContext.get_current();
    this.web = context.get_web();
    this.list = context.get_web().get_lists().getByTitle(listTitle);
    this.items = list.getItems(SP.CamlQuery.createAllItemsQuery());
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.load(web,'EffectiveBasePermissions');
    context.load(items);
    context.executeQueryAsync(
    function() {
    success(items);
    error
    function success_Items(items){
    var e = items.getEnumerator();
    while (e.moveNext()) {
    this.item = e.get_current();
    console.log(this.item.get_item('FileLeafRef')); //print File or Folder Name
    console.log(this.item.get_item('FileRef')); //print File or Folder Url
    if (this.web.get_effectiveBasePermissions().has(SP.PermissionKind.editListItems)) {
    console.log('Nice, edit list item permissions!');
    else {
    console.log('Boo, no edit list item permissions!');
    function error_Items(sender,args){
    console.log(args.get_message());
    </script>
    <input id="Button1" type="button" value="Check Permissions"/>
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Using Page Level Summary Column in Report 6i

    Hi Folks,
    I'm trying to create a report in which I want a Page level Summary column i.e., the Summary column should reset at each page and should display the sum of a particular field on each page depending upon how many records are displayed on each page. But whenever I choose the Reset Property to Page the following error is displayed" Page level summaries are not supported in the defaulting" and in certain case the summary column displays the sum only on the last page of the report and the rest of the pages do not display the summary column. The database has three tables i.e., master-detail-detail.
    Do I need to make some changes in the Data Model or what?
    TIA
    Hassan

    Hi Hassan,
    it only works onceWell, this is definitely not expected. Maybe you can try to see after running the report once whether all the values you set in your report (from my last post) remain the the same, or somehow they revert back to their default values.
    if I do some formatting of the report... summary also disapperasYou could try placing the page level summary in another frame, below your group repeating frame, with enough gap between them. Also, try setting the value for "max no of records" to some lower value, which makes sure there is space for the summary column on every page.
    Another idea for making a page level summary is - you can place the summary BEFORE your group repeating frame, which means the summary will print on top of every page. In this case, you won't even have to worry about setting "max no of records per page" to some particular value. See if this suits your needs.
    Navneet.

  • Setting font-family at Page level in xsl ???

    Hi All,
    I have a question regarding setting the attribute font-family at page level.
    I can use this attribute at block level , Is it possible to use it at Page level ie (simple-page-master).
    In simple terms use the same font across the page without having to declare it at each block in the page.
    Thanks.

    As Jorg stated, Group ACL settings are meant to control access at a page
    level.  As he also stated is possible to control access even further, but
    with additional effort and difficulty. But, nearly every client wants this
    done down to the component level and on a group by group basis.  So, what
    I've found, over the years that works is the following:
    - Configure the available components per template type per parsys
    - Further configure the available components at the group level
    For the custom built components, you can remove them at the group level by
    un-checking the 'read' ACL on the dialogs for the given component.  You
    don't want to un-check read for the whole component because then the users
    of that group experience random 'holes' in the content.  But, if you
    un-check 'read' for the dialogs, then the component will not display in
    Side-kick (at least on 5.4 and prior this is the case).
    The only caveat to this is the OOB components.  That is where you will run
    into a lot more difficulty.  Those should mostly be enabled/disabled at the
    design level for the entire page/parsys.
    Hope this helps.
    Todd

  • 10g Client listener isn't configuring properly

    Hi all! Here's my problem:
    My workstation is named gubbs09 is on a domain named gubbsinc on my home office lan. It's OS is XP SP2. I've installed 10.2.0 client on gubbs09. I created a listener called LISTENER using the Net Configuration Assistant Tool. I'm trying to communicate with an Oracle 10g database (SID guwuprod1) on another workstation named gubbslap03.
    When I try to communicate with guwuprod1, I get listener errors.
    Upon investigation, I've found that LISTENER on gubbs09 is not listed in the services control panal. If I try to start the listener from a command prompt using the command "LSNRCTL start", I get this error message: 'LSNRCTL' is not recognized as an internal or external command.
    Anyone know what's going on? I'm not a very knowledgeable Oracle user. Does a client even need a listener?
    Thanx for any help!

    I would suggest checking your path
    lsntctl notmally reside in $ORACLE_HOME/bin
    on your workd station you need to add that to the path as well as establish a libpath . but the question is your subject state 10g client listener. a listener is a server level entity not a client uses a tnsnames.ora files to connect to a server where a listener is running. unless you have an oracle database sitting on your workstation you probably dont need a listener.

  • Recommended practice for handling page level validation?

    I'm wondering what the recommended practice is for handling what I would call "page level validation?"
    For example, I have two text boxes. Either one text box or the other must have a non-null value. If they are both null, I want the page validation to fail and redisplay the page the same way it would if validation for a particular field failed. However, I don't want the message that is posted to be associated with either of the two text boxes. I want it to use some other unique ID because I want to display the error text at a location that is different than for either of the text box error messages.

    The reason I don't want to use a custom converter is because I'm using a custom tag/renderer which aggregates several HTML input components and has complex conversion logic. Maybe I could chain things together, but, a converter should be used for conversion not validation. Secondly, I don't understand why validation occurs after conversion. This seems backward to me.
    One hack that I tried which almost worked was to create a custom tag/rendererer that was an input component, but, had no visible UI. I made that component always have a value which caused the validator to always be called. I made it so that it accepted a method binding as an input so that you could specify which validation method was called. I checked the component values for the components of interest using UIInput.getValue(). However, I ran into what might be a bug. Everything worked fine as long as the value changed to a non-null value. When the value was set to null, UIInput.getValue() was returning the old value instead of null. The strange thing is that the bean property that the component was bound to, ultimately was changed to null as I would have expected to. The problem was that UIInput.getValue() was returning the old value instead of null.
    My current solution which isn't ideal is by using code similar to the following in my action method that my form submit button calls.
    if(value1 == null && value2 == null) {
    String message = "Validation Error: Value is required.";
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage("id1", new FacesMessage(message, message));
    return "validationError";
    Note, I had to create my own custom tag/renderer equivalent of h:message because I couldn't get h:message to work. h:message couldn't find the message that I posted.
    The down side to doing it this way is that the validation is occurring after the validation phase. Hence, the error message isn't displayed at the same time as other error messages. Furthermore, if you have more than one button on the form, you'd have to do the check for each action method.
    This is really stupid. I can't believe something that should be so simple is so difficult in JSF. I'm planning on taking a closer look at ASP.NET. I'm pretty sure all you have to do in ASP.NET is override a method to do this and you have access to all the form controls as variables within the Page object. i.e. no having to lookup the controls using a method and a client ID.

  • Invoking client listener from javascript

    Hello,
    I am using ADF Faces 11g.
    I wonder if it is possible to invoke a UI control's client listener from javascript method. For example i have a command link with a client listener, defined like this:
    <af:commandLink id="cl1" text="click here" partialSubmit="true">
    <af:clientListener method="onClickLink" type="action"/>
    </af:commandLink>
    I can find the control in a javascript method, with this: AdfPage.PAGE.findComponent("cl1");
    Now i want to invoke the onClickLink(event) method. How can i do it?
    Thanks.

    Isn't this just calling onClickLink(event)?
    Or do you want to know how to get the function the client listener calls?
    May be you should take a look at http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/classic_api_mistakes_part2/classic_api_mistakes_part2.html
    At about min 35 of he video Frank shows something like what you like to do (as fas as I recall).
    Timo

  • Client Listener on subview

    Hi All,
    I have one .jspx page which has <af:document> tag and client Listener , Server Listener on page load action and inside the page i am calling the Page Fragments through <f:subview> tag ,the fragments has <f:form > tag.
    If the fragments has html code inside it , it is giving me the error "the connection to the server has failed:403". My question is where i need to put the Java script , Client Listener and server Listener whether i need to put in page fragments or in .jspx page.
    I am using Jdev 11.1.2.2.0
    Thanks in Advance,
    Suganya.

    Hi Don Kleppinger ,
    Thanks for your reply i tried what you suggested , the main page.jspx look like this
    <af:clientListener method="loadpage" type="load"/>
    <f:facet name="metaContainer">
    <af:resource type="javascript" source="resources/js/pageLoad.js">
    </af:resource>
    </f:facet>
    <af:serverListener type="loadpage_action" method="#{viewScope.login.loadpage_action}"/>
    But still i am receiving the error."A connection to the srever has failed (status:403)
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #2
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager.getRedirectCookieForPartialRequest(RichWindowManager.java:1222)
         at oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator.__writeRedirectExtension(RegistrationConfigurator.java:547)
         at oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator.__sendRedirect(RegistrationConfigurator.java:526)
         at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse.sendRedirect(XmlHttpServletResponse.java:56)
         at oracle.adf.share.http.ServletEnvironment.redirect(ServletEnvironment.java:158)
         at oracle.adf.share.security.authentication.JEEAuthenticationService.login(JEEAuthenticationService.java:79)
         at oracle.adf.share.security.providers.jps.JpsAuthenticationService.login(JpsAuthenticationService.java:67)
         at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:282)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at weblogic.servlet.internal.ForwardAction.run(ForwardAction.java:22)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.security.internal.FormSecurityModule.sendError(FormSecurityModule.java:395)
         at weblogic.servlet.security.internal.FormSecurityModule.processJSecurityCheck(FormSecurityModule.java:262)
         at weblogic.servlet.security.internal.FormSecurityModule.checkUserPerm(FormSecurityModule.java:213)
         at weblogic.servlet.security.internal.FormSecurityModule.checkAccess(FormSecurityModule.java:96)
         at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:82)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2213)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Thanks,
    Suganya.

  • ReRender using client-side dom id

    Is it possible to use client-side DOM ids for rerendering. I have noted that JSF/Richfaces only accepts server-side DOM names.
    e.g.
    <h:form id="myForm">
        <h:outputText id="testData" value="#{testAction.testData}" >
        <a4j:commandButton id="updateData" value="Update Data"
                                 action="#{testAction.updateData}" reRender="testData"/>
    </h:form>client-side DOM id: testData
    server-side DOM id: myForm:testData
    Is there some method on the server (maybe in rerender phase) that I call to achieve this i.e. reRender="myForm:testData"
    Thanks,
    Philip

    The problem that I've posted is just an example. The real jsf page is extremely complex which is made up repeating data that is nested multiple levels deep. I'm trying to minimize the amount of data being rerendered as the page is over 1.5MB in size as it stands, but still needs to be extremely interactive and responsive.
    The form lives within the repeating rich:dataGrid to minimize the amount of data being submitted to the server. In the real application this repeat is nested within a few other repeats multiple levels deep. I also use ajax regions to minimize the amount of processing on the server side.
    The problem I'm trying to solve is as follows:
    1) I have page with lots of repeating data multiple levels deep. At each data level content is represented in a set of panels/forms.
    2) Changing one value in one of the forms can initiate a complex set of events, where data needs to be rerendered in other areas outside the current form (but on the same page).
    3) The data across all these tables can be sorted by the end user, which means that I have lost the original link between the backing data and the client-DOM component i.e. if you sort data, the data changes its position, but the DOM components remain unchanged. This is problematic as I need to know down to a single field what needs to rerendered.
    The solution that I am trying to employ:
    1) As the page loads (or is subsequently rerendered on a post-back) I store a unique identifier (based on pk of the backing component - ejb entity) and the client dom id of the component back in a map on the server (pk to client dom map). I only need to do this for a select set of fields that I know might change during step 2 above. If one element is changed that causes a data change in another area of the screen, I can get to the client ID by doing a look up on pk/client dom map.
    2) I am using the ajaxKeys property combined with the field name to calculate the exact component that needs to be renrendered. However, to get at this I need to parse the client ID to figure out the ajaxKeys and field name. I then need to set these keys for every table that is a parent of the current field that I am trying to rerender. One issue that I am faced with using this approach is: if I need to update more than one field within the same rerender but is based on different ajaxKeys - still trying to figure this one out.
    This process would be so much easier if I could just tell JSF to rerender based on the set of client IDs that I know need to be rerendered.
    Thanks for the advice.
    Philip

  • Use 1 listener for multiple database in a server

    hi guys,
    just want to check whether this is the right way to configure my Listener.ORA . I am using 1 listener.ora to listen for incoming request connection from remote client. There are multiple databases installed in a server.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )sorry i am reading about it so did not install another database to test out. Just thinking in the line that it mention that the list of SID is refering to the multiple database that is installed in a server and i am using 1 listener.
    Please further advice.

    Shivananda Rao wrote:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ora03)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = O11R2)
    (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
    (SID_NAME = O11R2)
    (SID_DESC =
    (GLOBAL_DBNAME = O10G)
    (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
    (SID_NAME = O10G)
    )Please use as above. You can have one listener for multiple databases.right right so it the pattern goes like this:
    SID_LIST_LISTENER =
         (SID_LIST =
              (SID_DESC =
              (GLOBAL_DBNAME = AAAA)
              (ORACLE_HOME = /oracle/app/oracle/product/11.2.0/db_1)
              (SID_NAME = AAAA)
              (SID_DESC =
              (GLOBAL_DBNAME = BBBB)
              (ORACLE_HOME = /oracle/app/oracle/product/10.2.0/db_1)
              (SID_NAME = BBBB)
         )thanks !

Maybe you are looking for

  • Record.CheckOut Status

    Hi, Can someone tell me what exactly the difference is between Record.CheckOut Status =1 and Record.CheckOut Status = 3?I have checked it in MDM API.But i need some inputs.At times the status of the record is returned 1 and at times 3 in my code.When

  • How can I create "Sub Queries" in a select statement?

    Hi all, I need to create reports, which are not based on a single table but on several "sub-queries". This would be the code, but I don't know how to solve that problem... SELECT OGBI.* FROM (((select "OSSRALL"."FORECAST_OWNER", sum ("OSSRALL"."TOTAL

  • RoboHelp 7 TOC

    How do I set up the Table of contents so the << and >> buttons are available and also the Back button on all inquiries?

  • Macbook air 2013 needs power button pressed for 10 seconds before it turns on?

    macbook air 2013 needs power button pressed for 10 seconds before it turns on? also I've tried resting PRAM but when i press the 4 buttons before the start up screen it never restarts again? please help!

  • RC Error Code = 0x84020020

    Does anyone know what this error code means.  I am loading content using Import Manager into SRM-MDM and receiving this error message.  The content has loaded successfully on another server/repository but not this one. The actual message reads "Impor