Code Completion on portal jsps & htmlb

Hello,
what I have to do to use the code completion within a portal JSP file ?
The htmlb taglib is referenced in te portalapp.xml as follows:
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
Are there other settings needed for the project in the NDS ? The help is only referencing the standard web.xml
Thanks.

Hi Christian,
    You have to add a reference in JSP as well. Here is a sample portalapp.xml and a .jsp page.
<b>Portalapp.xml</b>
<?xml version="1.0" encoding="utf-8"?>
<application>
  <application-config>
    <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
    </application-config>
  <components>
    <component name="display">
      <component-config>
        <property name="ClassName" value="nasa.ifmp.testjsp.display"/>
        <property name="SecurityZone" value="nasa.ifmp.testjsp/high_safety"/>
      </component-config>
      <component-profile>
        <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
      </component-profile>
    </component>
  </components>
  <services/>
</application>
<b>
JSP Page</b>
<%@ taglib uri="tagLib" prefix="hbj" %>
<hbj:content
     id="myContext">
<script LANGUAGE="JavaScript" TYPE="text/JavaScript">      
function alertSelectedRadio(){
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
alert(func);
var radiobutton = eval(func(htmlb_radiobuttonmodifier+"radiobutton"));
alert(radiobutton);
</script>
     <hbj:document>
          <hbj:documentHead
               title="test">
          </hbj:documentHead>
          <hbj:documentBody>
               <hbj:form
                    id="simpleForm">
                    <hbj:radioButtonGroup
                         id="TestRadioGroup"
                         columnCount="2"
                         selection="rb_fem">
                         <hbj:radioButton
                              id="TestRadioButton1"
                              text="female"
                              key="rb_fem"
                              tooltip="I am female"
                              jsObjectNeeded="TRUE"
                              disabled="false"
                              />
                         <hbj:radioButton
                              id="TestRadioButton2"
                              text="male"
                              key="rb_male"
                              tooltip="I am male"
                              jsObjectNeeded="TRUE"
                              disabled="false"
                              />
                    </hbj:radioButtonGroup>
                    <br>
                    <hbj:button
                         id="SubButton"
                         text="Submit"
                         tooltip="Sends your info"
                        onClientClick="alertSelectedRadio()"
                         width="30px"
                         design="EMPHASIZED"
                         jsObjectNeeded="true">
                    </hbj:button>
               </hbj:form>
          </hbj:documentBody>
     </hbj:document>
</hbj:content>

Similar Messages

  • Jdeveloper11gR2 Cannot get code Completion Insight in *.jsp files

    I am not getting code completion insight when pressing Ctrl + Space in *.jsp files. But it works in *.java files. My version of Jdeveloper is Jdeveloper 11g Release 2 version 11.1.2.2.0 .
    Edited by: Smitha Bhatt on Jun 7, 2012 5:40 PM

    I filed bug 14169588 for this.

  • JSP Code completion DOES NOT WORK in JDev 9.0.3.1

    Does anyone know when the next release of JDev will be? We are seriously considering dropping the use of JDev due to the bugs it has. In particular, the code completion for JSP authoring simply FAILS! This is a very very VERY nasty bug, and we are pleading!!!
    Thanks,
    -Sean

    Works for me.
    What OS/JDK etc are you using?

  • How to create a complete custom portal logon page.

    Hi Frndz,
    I want to create a new logon page i.e completely customized(not to customize com.sap.portal.runtime.logon.par), this is to make my portal as  a EFP(Xternal facing portal).
    Regards
    Rajesh

    Hi,
    Yes i agree with that i have to use PAR for logon.
    Let assume that i have created PAR file called "MyLogon.par" in this i have JSP file "Welcome.jsp" .
    In this JSP when we click on Logon Button it should lunch the portal screen, which action i should place in FORM of JSP action.
    If u go to SAPs  "umLogPage.jsp" in the FORM attribute
    can i use same piece of code in my custom jsp , to logon to portal.
    Is there any another way to logon to portal.
    Regrds
    Rajesh.

  • Retrieve data from MSSQL via JDBC in a Portal JSP

    I'm trying to get a connection to my local MSSQL database in a Portal JSP page, but without success.
    Is there somebody who could post a simple and complete code sample for a Portal-JSP, which returns a recordset from a table in MSSQL, which is on the same server as the Portal.
    I was able to create a JDBC connector in the VA but this didn't really help me.
    You input is appreciated.
    Thanks.

    Hi,
    I tried a code which actually inserts a record into a database(in same server as portal)and also displays the records of the DataBase in a TableViewModel.I used datasource.
    here is the code snippet for displaying records in a tableviewmodel-
    public TableViewModelBean() {
                    ResultSet rs = null;
              rs=getMyConnection();
              createNewDBTable(rs);
    private ResultSet  getMyConnection()
    ResultSet rs = null;
    Connection con;
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/SAPJ2EDB");
    con = ds.getConnection();
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery("SELECT ASSOCIATE_ID,FIRST_NAME FROM TABLE_A");
    return rs;
    /* populate the resultsets in a tableviewmodel */
    private void createNewDBTable(ResultSet rs) {
    Vector data = createData(rs);
    Vector colName = new Vector();
    colName.addElement("<b><center>Associate id</center></b>");
    colName.addElement("<b><center>First Name</center></b>");
    model = new DefaultTableViewModel(data,colName);
    private Vector createData(ResultSet rs) {
                        Vector returnVector = new Vector();
                        Vector dataVecs = null;
                        try {
                             while (rs.next()) {
                                       dataVecs = new Vector();
                                  dataVecs.addElement(rs.getString("ASSOCIATE_ID"));
                                  dataVecs.addElement(rs.getString("FIRST_NAME"));
                                            returnVector.addElement(dataVecs);
                                                 } catch (Exception e1) {
                             e1.printStackTrace();
                        return returnVector;
    /* getter setter for model */
    public void setModel(DefaultTableViewModel model) {
                        this.model = model;
                   public DefaultTableViewModel getModel() {
                        return model;
    hope it helps!
    Regards
    SwarnaDeepika.
    Message was edited by: SwarnaDeepika

  • Portal : JSP : Output in an Excel File.

    Hi,
    I am unable to get the output on a JSP Page in Microsoft Excel
    I am trying to generate an Excel Report from my Portlet. I am picking up the data for the Report from Oracle Internet Directory.
    I have created a simple JSP file ( as a Portlet ) and deployed it on Oracle App Server. I then registered a new Provider for the deployed JSP Page and added the JSP as a Portlet in a new Portal Page.
    I am trying the following code snippet in the JSP :
    <%@ page contentType="application/vnd.ms-excel"%>
    I get this weird error :
    AbstractResourceRenderer.renderBody - received IOException
    java.io.UnsupportedEncodingException: Media Type of a TextResponseWrapper must start with "text/"
    If I am correct, Portal should support this feature. I must be able to publish reports to an Excel File.
    I am new to Oracle Portal and I find this strange. The JSP page works fine in JDeveloper, but when I access it via Oracle Portal, I get the " UnsupportedEncodingException ".
    I posted my question on Metalink and was told to post my question in this forum.
    I am not sure if I need to post any other information or Configuration Settings - please do let me know if any other information is necessary.
    Thanks,
    Sandeep.

    Ok,
    After many sleepless nights and a long struggle, we were able to arrive at a workaround - simple & something that works.
    We created a Servlet ( not a Portlet ) that generates the Excel File. The Servlet is not a Portlet and as such is not restricted in the content-types that it can use. We let the user arrive at this Servlet via a simple HTML link.
    Well, that's about it ! I just wanted to post this so that anyone else tearing their hair apart with the same issue can find some solutions.
    Still, I strongly feel that a superb product like Oracle Portal should support the various content types.........
    Regards,
    Sandeep

  • Re: bug in html:link code completion

    You are right, code completion does not work in this case. But, the
    html:link Smart Editor (in the Link Parameter group) allows you to select a
    bean name/property for the paramName/paramProperty attributes.
    M7 Support
    "Michael Mok" <[email protected]> wrote in message
    news:418d8f37$[email protected]..
    Hi thereI have a form containing an object eg
    StudentForm
    Student student;
    public Student getStudent();
    public void setStudent();
    In the JSP page, I type in
    html:link action="/editStudent" paramName="" paramProperty=""
    Edit
    /html:link
    Nitrox does not display any thing when I "Cntrl-Space" on paramName=""
    neither on paramProperty=""
    Hoepe this bug can be fixed in 2.0.
    Regards
    Michael Mok

    Please send a test case. I'm unable to reproduce this in a simple project in 9.0.3.1 or 9.0.3.2.
    Is there entity inheritance involved?
    Do your entity XML files mention _superAttr anywhere in them? If so, you might be hitting a known issue with 9.0.3 relating to entity inheritance at design time and the accessor attributes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Code Completions

    Hi all, I am using Eclipse and I am trying to figure out how to get code compleation when accessing tags to beans. Getting code completion on my beans would help spead up my JSP editing, however the JSP editor does not understand the object type to give code completion. The main parts I would love this for are loops...
    giz
    [www.classfinance.co.uk|http://www.classfinance.co.uk/Cameleon/News/]

    Gizard wrote:
    Hi all, I am using Eclipse and I am trying to figure out how to get code compleation when accessing tags to beans. Getting code completion on my beans would help spead up my JSP editing, however the JSP editor does not understand the object type to give code completion. The main parts I would love this for are loops...Ask in an Eclipse forum. This is not a JSP/JSTL problem.
    As far I can only tell that it works fine here in the latest Eclipse Java EE release.

  • JSP HTMLB tags/Taglib

    Hi all,
    Are there any JSP HTMLB tags like there are in the portals environment? i.e., tableview, button, tray, etc.?
    I know there's a mobilehtmlb.jar, but I couldn't find anything about htmlb tags for MI.
    If you have any idea/info, please let me know.
    Thx,
    mike

    Jelle,
    I found the jars, but I am awaiting a response from the product manager.   Through a NoClassDefFound error, I found out I also had to add logging.jar.
    Now this is what I'm getting:
    java.lang.NullPointerException
         at com.sapportals.htmlb.util.Log.getLoggingProperties(Log.java:22)
         at com.sapportals.htmlb.util.Log.getLogLocation(Log.java:44)
         at com.sapportals.htmlb.rendering.RendererManager.createUIBrowserRenderer(RendererManager.java:416)
         at com.sapportals.htmlb.rendering.RendererManager.initialize(RendererManager.java:446)
         at com.sapportals.htmlb.rendering.RendererManager.getJavascriptFileName(RendererManager.java:493)
         at com.sapportals.htmlb.rendering.PageContext.getJavascriptUrl(PageContext.java:996)
         at com.sapportals.htmlb.rendering.PageContext.createDocument(PageContext.java:1015)
         at com.sapportals.htmlb.taglib.PageTag.doStartTag(PageTag.java:53)
         at jsp._0002fjsp_0002fmenu_0002ejspmenu_jsp_30._jspService(_0002fjsp_0002fmenu_0002ejspmenu_jsp_30.java:107)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    ..etc., etc...
    Let me know if you have any ideas.
    Thanks,
    mike

  • Is there any way to fix the slow code completion in Netbeans 5.5+

    Netbeans 5.5 or Netbeans 5.5.1
    Is there any possible fix for the slow code completion within the editor? I've googled this issue and haven't found much of anything relevant.
    While, not used all the time - a faster than what it is now code completion would be helpful.
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    helloWorld
    Thanks for the response and useful response.
    :P
    I'm not a decent machine now and I guess I'll just keep on typing.
    --Todd                                                                                                                                                                                                                                                                                       

  • Code completion particular not working

    Hello,
    in my program there are serveral internal classes. Each class has its own include file. Code completion seems not working for internal classes in other include files.
    example:
    lcl_class1 in includec01   (first included)
         class-methods static1_1
         methods method1_1
    lcl_class2 in includec02   (second included)
         class-methods static1_1
         methods method1_1
    problem:
    While development in lcl_class2 there are no code completion for lcl_class1.
    No code completation for lcl_class1=>static1_1
    but if you declarate "data lo_myclass type ref to lcl_class1." code completion is working fine for public member methods and attributes in the same file.
    In Functiongroups all working fine.
    Best Regards
    Markus Bauernschmitt
    Und da hier eh die meisten deutschsprachig sind und mein Englisch grausam ist, nachfolgend die Erklärung nochmal auf deutsch.... ;-)
    In meinen Programmen findet die Codevervollständigung keine interne Klassen aus vorangegangenen include Dateien. Dadurch werden weder die Klassen selbst noch die statischen Methoden angezeigt. Gebe ich eine statische Methode ein und möchte die Hilfe anzeigen (F2) erscheint die Fehlermeldung "Codeinformationen sind nicht verfügbar".
    Dieses Problem tritt nicht auf, falls die Deklaration einer Variablen in der gleichen Include Datei erfolgt.
    Deklaration einer Variablen in der aktuellen Include Datei -> Dokumentation der öffentlichen (nicht statische) Methoden und Attribute funktioniert
    Zugriff auf öffentliche (statische oder nicht statische) Methoden und Attribute von globalen Variablen (deklariert in einer anderen Datei) funktioniert dagegen nicht.
    Es sind nur anscheinend nur Programme betroffen. Bei Funktionsgruppen (getestet am Beispiel "ldemo_cr_car_rental_screen") trat der Fehler nicht auf.

    Hi Dominik,
    thank you for your answer. The internal classes are already simple and lightweight. In my understanding of OO I keep classes private as possible and so I create this specific "one program helper classes" in the smallest reasonable scope.
    However, this is a architektur decission. But the pivotal question is: Why working this kind of code completion in function groups but not in programs.
    Some additional information.
    - Code completion working in "START-OF-SELECTION."
    - In Functiongroup includes (Testcase lcl_class1 show as public type and lcl_class2 show as local public class.
    Best regards
    Markus

  • Code completion(insight) not working in SQL Developer Version 2.1.1.64

    I recently downloaded SQL developer Version 2.1.1.64. However the code completion feature is not working automatically. I have checked the Automatically complete code in SQL worsheet checkbox under Tools->Preferences-> Code Editor-> Completion Insight.
    Strangely, I get the code completion pop up window when I explicitly press the completion insight shortcut(Ctrl + Space).
    Please help.
    Thanks and Regards.

    Hi, I am getting the following logs :
    Code completion time = 1015
    *...?aux tok2?, parse time = 63
    InsightableOracleDatabase.fetch() time = 360
    Code completion time = 844
    Finished parsing = 0
    *...?aux tok2?, parse time = 62
    InsightableOracleDatabase.fetch() time = 344
    Code completion time = 812
    Finished parsing = 0
    *...?aux tok2?, parse time = 63
    InsightableOracleDatabase.fetch() time = 359
    Code completion time = 891
    Finished parsing = 0
    Thanks

  • Pass Parameters to T.Code  in the portal from aTransaction Iview.

    Good Morning.
    I published a T.code in the portal as a Transaction Iview. This work fine.
    I want pass a parameter to this t.code and that the program ABAP can get this value .
    I check a suggestion in the post following :
    From Portal transaction iView
    I did the steps , but this not work. I don't can get the value passed in the field Applications Parameters.
    Attach screenshot with the steps that I did.
    [Screenshot|http://www.freeimagehosting.net/uploads/3d4dd249ad.jpg]
    I want know how can solve this issue?
    Thank in advance.
    Regards

    Hi Carmen,
    The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
    You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
    ~okcode=/nSU01
    And you can pass parameters in the same way:
    ~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
    By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
    Regards, Rory

  • How can hide the command line of a t.code in the portal

    Dear Experts.
    I have the following doubt:
    How can hide the Command Line of a Report that is called with a T.Code in the portal?
    Attach Image:
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    When I created a service using the T.Code SICF for the T.Code , I can hide buttons and the filed command line  using
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    With notes 1010519, "SAP GUI for HTML: Simplified Title Area Without Menu and OK Code" and 959417.
    But the problem is that when I create the service in the T.Code SICF, I also have that create an Iview IAC in the portal.
    The Question is : How can hide this fields and buttons if I want Publish the T.code using an Iview Transaction in the portal?
    In this moment I have used the two options:
    1 option) I created a service using the t.Code SICF for my Transaction and I also created an Iview IAC in the portal for call the service.
    RESULT:
    SAP Web Application Server
             500 Connection timed out
            Error: -5
           Version: 7000
           Component: ICM
           Date/Time: Sat Jun 12 20:26:39 2010 
           Module: icxxthr_mt.c
           Line: 2698
           Server: xyxab...
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    2)  created an Iview Transaction  in the portal and  call my transaction.
    RESULT.
    [Image T.Code|http://www.freeimagehosting.net/uploads/eab3b6a03c.jpg]
    But not can hide the field Command Line and other buttons.
    I think that the command :
    ~webgui_simple_toolbar
    ~singletransaction
    ~NOHEADEROKCODE
    Only can be used if I create a service using the T.Code SICF .
    Best Regards
    Carmen.

    Hi Carmen,
    The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
    You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
    ~okcode=/nSU01
    And you can pass parameters in the same way:
    ~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
    By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
    Regards, Rory

  • Auto code completion settings for new ABAP Editor

    Dear all,
    I am working in New ABAP editor but i am unable to set auto code completion,
    please tell about customising of new ABAP editor for Auto code completion.
    Thanks and regards,
    Gaurav Sood

    Hello,
           1.      Choose Utilities ® Settings.
    The User-Specific Settings dialog box appears.
           2.      Choose ABAP Editor. 
           3.      Set the new editor mode.
    From:
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/29dee414483fe1e10000000a11466f/frameset.htm
    Regards,
    Jorge Diogo

Maybe you are looking for

  • Publishing iWeb site using MobileMe

    I created a new website using iWeb, set up the CNAME alias, and published it using MobileMe. iWeb indicates the website has been published. When I go to the website, I get an error message: Directory Listing Denied This virtual directory does not all

  • Linking flash buttons

    I am new to this. I have followed several tutorials with no luck. I am using action code 3. I want to link an invisible button to an url. I placed the code in the layer with the button. The following code I have used, but then follows the error messa

  • What is BPM

    Hi I am new to BPM. I have ADF background..How to start with BPM? what is the relation between ADF and BPM ? I have to work on ADF with BPM..have to do some poc with both..can anybody help me how to start it? Thanks

  • How to extract xml having namespaces

    Hi all, Below is the XML i have : <?xml version="1.0" encoding="UTF-8" ?> - <Transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.test.com/Support/Services/test1/2012" xsi:schemaLocation="http://schemas.test.com/Sup

  • HT4847 How to make enough iCloud storage

    How to make enough iCloud storage? What would I need to delete?