Client side eventing with HTMLB

Hi All,
I am trying to access the HTMLB elements from jsp page to java script and failed to handle an event.
My requirement is, i have a form designed in First.jsp which is having 2 input fileds and both are mandatory. I want to display a msg to the user if he try to skip those 2 input fileds without value.
This i tried with dynpage it is working but i want to have with a JSP page, ie., all the presentation is in jsp file. so, how can i access those 2 input fileds in java scipt function?
If anybopdy is having an idea or a sample code please share here.
Thanks in advance,
Regards,
sireesha.

Hi Harini,
Thanks for your reply.I tried the same code but it is not showing the alert, i couldn't find where exactly the problem is!
Here i am putting my code please go through it and help me.
JSP file:
<%@ taglib uri="tagLib" prefix="hbj" %>
<%@ page import="com.sapportals.htmlb.enum.EventTrigger,com.sapportals.htmlb.event.Event" %>
<hbj:content id="myContext" >
  <hbj:page title="PageTitle">
  <script language="Javascript">
          function checkinput(){
          var funcName = htmlb_formid+"_getHtmlbElementId";
          func = window[funcName];
          var inputfield1 = eval(func("inf1"));
          var input1 = inputfield1.getValue();
          if (input1==null)
          alert("Enter mandatory fields");
     </script>
   <hbj:form>
       <hbj:textView id="tv1" text="Name"/>
          <hbj:inputField id="inf1"
                          type="String"
                          required="true">
       <% inf1.setJsObjectNeeded(true);
       inf1.setClientEvent(EventTrigger.ON_BLUR, "checkinput()"); %>
       </hbj:inputField>
       <br>
       <hbj:textView id="tv2" text="City"/>
       <hbj:inputField id="inf2" type="String"/>
       <hbj:button id="b1" text ="submit" onClick="onSubmitclicked"/> 
    </hbj:form>
  </hbj:page>
</hbj:content>
Regards,
sireesha.

Similar Messages

  • Client side eventing with HTMLB in a jsp file

    Hi All,
    Can u give me the solution to work with client side eventing with HTMLB with a jsp page but not with a dynpage.
    Regards,
    sireesha.

    Hi sireesha,
      Check this.
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <%@ page import="com.sapportals.htmlb.enum.EventTrigger,com.sapportals.htmlb.event.Event" %>
    <hbj:content id="myContext" >
    <hbj:page title="PageTitle">
    <script language="Javascript">
    function checkinput(){
         var funcName = htmlb_formid+"_getHtmlbElementId";
         func = window[funcName];
         var inputfield1 = eval(func("inf1"));
         var input1 = inputfield1.getValue();
         if (input1==""){
              alert("Enter mandatory fields");
    </script>
    <hbj:form>
    <hbj:textView id="tv1" text="Name"/>
    <hbj:inputField id="inf1"
    type="String"
    required="true"
    jsObjectNeeded="true">
    <% inf1.setClientEvent(EventTrigger.ON_BLUR, "checkinput()"); %>
    </hbj:inputField>
    <br>
    <hbj:textView id="tv2" text="City"/>
    <hbj:inputField id="inf2" type="String"/>
    <hbj:button id="b1" text ="submit" onClick="onSubmitclicked"/>
    </hbj:form>
    </hbj:page>
    </hbj:content>
    Regards,
    Harini S

  • Tab Strip Selection - Client Side Eventing

    Hello All,
    I have one tab strip with 5 tab strip item. Inside 1st tab strip I have one htmlb button and I want to trigger 2nd tab strip item while I am clicking the 1st tab strip buttonu2019s client side event.
    Is it Possible?
    I need Sample Code!
    Note: JspDynPage Client Side Event of Htmlb Button.

    Hi,
    Mainly tab strip utilized for random selection.
    So i Closed this Thread.
    Thank You,
    Devasarathy Pandi.

  • EPCF Client Side Eventing

    Hello,
    I have been working on some EPCF client side eventing examples. I found the example by Dr. Ron Hendrickx at the following URL.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/iview client side eventing with the epcf toolbox service
    So, I imported the .par to Eclipse, I then changed the code so that the sender is a tree holding URL's and the receiver displays them in an IsolatedHtmlContainer and got it working fine.
    My problem is this, when I start a new project in Eclipse and copy/paste the code, properties files, the .classpath and .project files (everything) the IClientEventReceiver isReceived() event is never triggered. The doProcessBeforeOutput() method in the receiver is called but the event is not triggered. Seriously, we have copy/pasted everything exactly, the .par file created is identical in structure to Dr. Hendrick's and yet if I create a new project and make all the files it doesn't work. Only when I work with the .par imported from Dr. Hendrickx's work will the example work. We're thinking maybe some environment variable somewhere is causing this but we've copied the .classpath file, everything is exactly the same but the event will not be received in a project we create ourselves.
    Really, any help with this will be well appreciated.
    David.

    Pumped isolation method is sort of a combination of embedded and URL isolated.  The portal server is used to fetch the content from the website/application.  When the data is ready, it is "pumped" into the browser using an IFRAME tag and an XML based data stream.  This give you the ability to cache the data on the portal server, but get the flexibility of isolated iViews.
    However, we will plan to drop this functionality in the future and "pumped" iviews will automatically be treated as "URL isolated" iviews.

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Steps to upgrade Client Side Xe with apex3.2.1

    Hi,
    I want to upgrade client side xe with apex3.2.1.Please help me to do this.
    can you send me any llink with step by step installation of apex3.2.1 over client xe.
    Thanks & Regards
    Manoj

    Hi manoj;
    Please follow below and see its helpful for your issue, i belive you will find your answer in those links
    http://blogs.oracle.com/SanthoshK/2008/09/oracle_xe_apex_3x_installation.html
    Installation of APEX 3.2 on Oracle 10G Database
    http://apps2fusion.com/at/kr/384-apex
    Regard
    Helios

  • Client Side Eventing

    Hi,
    I have 2 seperate iviews, iView1 and iView2. I would like to make a call to the backend database using JCO and pass the ResultSet to iView2. In iView2 format the data and display in a tableview.
    Is it possible to pass a Resultset using Clientside Eventing from iView1 to iView2.
    To achieve this would it be best to use Client Side Eventing or Session Beans.
    Any advice would be appreciated.
    Thank you
    NAC

    Hi NAC,
    I already answered your question in two iviews calling each other on a single page?
    If it isn't clear, please ask precise what you didn't understand...
    Best regards
    Detlev

  • How to implement a client side map with ObjectImage control?

    We need to implement a client side map with an ADF Faces ObjectImage control. In the code below, the JSF Faces GraphicImage contol does support a client side image map using the usemap property. However, it appears that the ADF Faces ObjectImage control does not support a client side map. Is there someway of implementing this functionality in an ObjectImage control?
    <h:graphicImage url="/images/map-usa.gif"
    usemap="#m_mapusa"
    binding="#{backing_map.graphicImage2}"
    id="graphicImage2"
    style="border-style:none;"/>
    <af:objectImage source="/images/map-usa.gif"
    binding="#{backing_map.objectImage2}"
    id="objectImage2" />
    We could use the Graphic Image control except we have a problem by mixing a JSF GraphicImage control in the same table with a variety of ADF Faces controls in that when a user clicks on the GraphicImage, then the browser windows scrolls down to center the GraphicImage control. A user then needs to scroll back up to see the rest of the page. If an ObjectImage control is used with an onClick action, then the page does not scroll, which is what we want. So if we can figure out how to add a client side map to an ObjectImage control we would get the desired results.
    An alternative might be to use a server side map with the ObjectImage control. But our question here is how to implement the existing client side image map in a backing bean. As the following map code shows, not all image map areas are rectangles - some are polygons.
    <area id="_state_05" href="#"
    shape="rect"
    coords="681,38,702,50"
    target="_self" value="VT" alt="Vermont"
    onclick="javascript:getDtl(this);"/>
    <area id="_state_06" href="#"
    shape="poly"
    coords="221,442,209,436,209,418,191,403,155,382,116,367,101,370,98,364,
    122,355,158,367,203,388,212,394,242,427"
    target="_self" value="HI" alt="Hawaii"
    onclick="javascript:getDtl(this);"/>

    Hi,
    Any news about that issue, we are also interested in any solution.
    Thanks
    Math

  • Client side certificates with OpenScript

    Hello there,
    Is there any information on using client side certificates with OpenScript?
    What types of certificates can it handle? .P12-files?
    Regards

    I run a serlvet using jsdk1.2 in a system........
    But clients who r accessing this site.. some are able to go through ..
    but some people who r in our LAN but at different places couldnt conect to serlvet.....
    and they get the followwing errror
    can yu help me in solving the problemmmmmmmm...(mail me to vijai_tata @ yahoo.com )
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at sun.servlet.http.HttpOutputStream.writeOut(HttpOutputStream.java:483)
    at sun.servlet.http.HttpOutputStream.flushBytes(HttpOutputStream.java:35
    7)
    at sun.servlet.http.HttpOutputStream.flush(HttpOutputStream.java:343)
    at sun.servlet.http.HttpOutputStream.finish(HttpOutputStream.java:181)
    at sun.servlet.http.HttpOutputStream.close(HttpOutputStream.java:421)
    at sun.servlet.http.HttpResponse.finish(HttpResponse.java:338)
    at sun.servlet.http.HttpServerHandler.handleConnection(HttpServerHandler
    .java:133)
    at sun.servlet.http.HttpServerHandler.run(HttpServerHandler.java:90)
    at java.lang.Thread.run(Thread.java:534)

  • Client side paging with jstl or xslt

    Is there any way to provide client side paging with jstl or xslt/xpath. I have a jsp page with a limited amount of data, say less than 30 rows of data. I want to display 10 rows at a time. The data is returned to the page in xml format and I am currently using xslt to display the data (currently displays all rows on the page). I am looking for a way to update my xpath variables so I can provide paging capabilities. Is there any way to get the information from the request from the jsp to the xpath variables? Or does anyone have any other suggestions for implementing client side paging using either xslst - xpath or jstl? Thanks Vic.

    I am loading the entire xml stream in the client and formatting using xslt. I only want to initially display 10 rows. I would like to implement client side paging. Is there any way to communicate with the xpath variables? Javascript?

  • Client side event for h:outputText... and other JSF component

    Hello friends...
    I need client side (to use Java script ) event for change in <h:outputText /> or <h:inputText...>.
    I want to open a popup window when there is a change in there. I donot want to use onblur() for this. Is there any thing for achiev it.
    Thanks.
    Regard
    Roshan Lal ( I don't know why there is "DOG" display in LIST )
    :-)

    Hi Jacek,
    Unfortunately I think you may be stuck extending Renderer. Another possibility is creating your component via a template, which will be available in JSF 2.0. However, as JSF 2.0 won't be out for a while... you can use JSFTemplating in the meantime:
    http://java.sun.com/developer/technicalArticles/J2EE/jsf_templating/
    http://www.theserverside.com/tt/articles/article.tss?l=JSFTemplateComponent
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • Client side playlist with dynamicaly streamed items possible?

    Hey,
    is there a way to define a client side playlist like this:
    ns.play(      "stream1",      0,      30              );
    ns.play(      "stream2",      10,    -1, false      );
    ns.play( "     stream3",      0,      -1, false      );
    ns.play(      "stream4",      30,    120, false    );
    but instead of a single videofiles for each playlistentry use dynamic streaming?
    I know how the DynamicStream class is working and how to set it up but i can't find any information if it is possible to combined those two techniques.
    Thanks for any suggestions.

    Yes upto a certain extent you can achieve it, see below approach if it suits you. You can have playlist as xml file and each video tag will represent single item in playlist. So suppose you have xml file with video tags as below:
    <videoList vodurl="rtmp://localhost/myapp">
    <video>
                      <label>flv:stream</label>
                       <data>stream1,stream2,stream3</data>
                       <bitrate>100,200,350</bitrate>
    </video>
    <video>
                       <label>mp4:stream</label>
                        <data>mp4:stream1.mp4,mp4:stream2.mp4,mp4:stream3.mp4</data>
                        <bitrate>100,200,350</bitrate>
    </video>
    </videoList>
    Then you need to create dynamic stream item("dsi") as below for each video tag and create array of "dsi".
    var dsi:DynamicStreamItem = new DynamicStreamItem();
    dsi.addStream( "mp4:stream1.mp4", 100);
    dsi.addStream( "mp4:stream2.mp4", 200 );
    dsi.addStream( "mp4:stream3.mp4", 350 );
    ds.startPlay( dsi );
    Then iterate each item of array, while you are playing first item of array then based on netstatus messages like "NetStream.Play.Complete" you can decide to move on to next item in array. So in this way you can create client side playlist.
    Regards,
    Amit

  • Client Side Event

    How can we achieve client side evemting in webdynpro applications?
    Regards
    DS.

    Refer to the thread below:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/08f43cf1da7646a2b210a16321c669/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d48eaa90-0201-0010-58a8-887fc8632c3c
    How to use EPCF eventing in Webdynpro
    Should be helpful.

  • Client side event between Java iView and BSP application

    Hi,
    I am developing a BSP iView which listen to event raised by standard SAP HR TeamViewer iView.  The TeamViewer iView raise a event when user click on the employee list. 
    EPCM.raiseEvent { "urn:com.sap.pct.hcm.orgmanagement:CurrentObject", "objectChanged", concatenatedKey);
    My BSP is subscribing to the event and perform the myreceiveEvent function.
    EPCM.subscribeEvent
    ( "urn:com.sap.pct.hcm.orgmanagement:CurrentObject", "objectChanged", myreceiveEvent );
    However, my BSP returns an error message saying that EPCM is undefined.  I know that I have to included the java script file.  I checked with my basis team guy and they said there is not any js file in ICF.  Can someone let me know which file I need to include in my BSP code and where is the file locate?
    Thanks,
    Eric

    Hi Eric,
    > the ICF where the BSP is stored
    > is in the Oracle database
    Eric... the place where the JS fragment - within the BSP - appears, is retrieved by some http request. The script=epcfproxy.js forces the browser to send a http request just to the same relative location the original page came from. Doesn't matter if something is within a database...
    > Do you know how to locate the
    > epcfproxy.js file in the WAS?
    I think:
    > and the epcfproxy.js file is in the zip file
    > that you suggested
    you have found it?! Put it to any place on the BSP server you can access, if you can't set it with relative url, use "/some/.../dir/epcfproxy.js" as location.
    > If I am only EPCM but not EPCMPROXY,
    > do I need to include the epcfproxy.js in my code?
    Have a look at epcfproxy.js. It's no magic at all, you have to call top or parent (just look) and do some minor things. For sure, you can live without the proxy file, you have just to put the neede scripts explicitely on your page, that's not that fine, but it works.
    Hope it helps
    Detlev

  • Benefits of Client Side Monitoring with SCOM 2012R2?

    I'm working on the architecture for adding SCOM 2012R2 to our Windows network.  Right now we use SCCM 2012R2 and SCEP.  I'm trying to determine whether I should include our workstation computers as part of this or only servers.  We won't
    be doing Application Performance Monitoring (APM).  So what would be the benefit of putting the SCOM agent on the workstations?
    # When I wrote this script only God and I knew what I was doing. # Now, only God Knows!

    Hi,
    As it was mentioned by Yan Li_ first thing to do is the proper planning and comparing all pros and cons of SCOM client monitoring, depending on numbers of agent\agentless servers\workstations to be monitored. With a large number of agentless monitored
    clients, it makes sense to have a separate SCOM infrastructure.
    As well, please look at this links:
    http://stefanroth.net/2013/05/27/scom-agentless-exception-monitoring-aem-faq/
    http://stefanroth.net/2013/05/14/scom-2012-custom-aem-reports/
    http://www.ms-opsmgr.eu/?p=332
    Natalya
    ### If my post helped you, please take a moment to Vote as Helpful and\or Mark as an Answer

Maybe you are looking for

  • Unable to save MS Word and Excel 2010 and 2013 onto the network share

    Hi, I have read similar cases, but did not work out on the problems we face. We are using Office 2010 and Windows 7 and it seems like only this combination will encounter saving problem on the networe share (but local / removable disks are fine) -  O

  • The OS is extremely slow/frozen

    So, out of nowhere my laptop just froze. I tried doing a hard restart, and it took about 30 minutes to get to the login window and another 20 to actually load the desktop and the dock. Then it completely hung up when I was trying to look in Library/C

  • Apple genius no help

    Took my ipad mini into the apple store . It has never worked well for imessage since I got it . My daughter has one and has never had an issue . Mine will only send about 2 out of 10 times . It will then start again maybe in a couple of days sync wit

  • How to make the inactive tabs silent?

    Когда открыто несколько вкладок с каждой вкладки идет звук, который мешает активной вкладке. Можно ли сделать чтобы звуки в неактивных вкладках отключались. translite: When you open multiple tabs, with each tab is a sound that prevents the active tab

  • Landscape keyboard in App Store

    Is there a hidden feature that lets you use a landscape keyboard when writing reviews in the App Store?