Htmlb help

hi sdn
i included all the jar files.but i get this error
Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/htmlb/page/PageProcessorComponent
Loader Info -
ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@1242f1e]
Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@6acabc]
References:
   not registered!
Resources:
   C:
usr
sap
J2E
JC01
j2ee
cluster
server0
apps
sap.com
irj
servlet_jsp
irj
root
WEB-INF
portal
portalapps
ScreenEventing
private
lib
ScreenEventingcore.jar
The error occurred while trying to load "com.sap.ScreenEventing".
            at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:219)
            at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
            ... 30 more

hi...
add the htmlb.jar, servlet.jar (what r all the jars required to ur project) by right click on ur project > properties>Java Build Path> add external jars> locate ur jars here...
hope it may help u... or else send ur code...
Include This in your JSP Pages
<%@ taglib uri= "tagLib" prefix="hbj" %>
regards,
Chinnadurai.R
Message was edited by:
        chinnadurai R

Similar Messages

  • HTMLB Code not working Please help.....

    Hello All,
    Ive new in HTMLB. Have written this code wherein a JSP page is called from a JSPDynPage file. But am <b>not getting any output. Its all blank.</b> Dunno if im going wrong .... Please help.
    Struggling with this since y'day.
    <b>CODE</b>:
    <u><b>UserInfoDynPage.java</b></u>
    package com.sap.sample;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    public class UserInfoDynPage extends PageProcessorComponent
    {     public DynPage getPage()
         {     return new UserInfoDynPageDynPage();
           public static class UserInfoDynPageDynPage extends JSPDynPage
           {     //private UserInfoBean UserInfoBean = null;
             public void doInitialization()
             {          IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
                       IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
                    /*Object o = componentSession.getValue("UserInfoBean");
                    if(o==null || !(o instanceof UserInfoBean))
                    {     UserInfoBean = new UserInfoBean();
                      componentSession.putValue("UserInfoBean",UserInfoBean);
                    else
                    {     UserInfoBean = (UserInfoBean) o;
                    // fill your bean with data here...
        public void doProcessAfterInput() throws PageException
        public void doProcessBeforeOutput() throws PageException
        {     this.setJspName("UserInfo.jsp");
    <u><b>UserInfo.jsp</b></u>
    <%@ taglib uri="tagLib" prefix="hjb" %>
    <hbj:content id="myContext" >
         <hbj:page title="UserInfo Page">
            <hbj:form id="myFormId" >
                 <hbj:textView id="title" text="Search Screen" design="STANDARD" />
                 <table>
                      <tr>
                           <td>
                                <hbj:label id:"lb_Search" text"Search For" labelFor="search" />
                           </td>
                           <td>
                                <hbj:inputField id="search" type="string" maxlength="25" />
                           </td>
                      </tr>
                      <tr>
                           <td>
                                <hbj:label id="lb_SearchType" text="Search Type" labelFor="searchType" />
                           </td>
                           <td>
                                <hbj:dropdownListBox id="SearchType" tooltip="UME Object  to search for" disabled="false">
                                     <hbj:listBoxItem key="user" value="User" />
                                     <hbj:listBoxItem key="group" value="Group" />
                                     <hbj:listBoxItem key="role" value="Role" />
                                </hbj:dropdownListBox>
                           </td>
                      </tr>
                 </table>
                 <br>
                 <hbj:button id="submit" text"search!" tooltip="Click me to search" disabled="false" design="emphasized" />
                 <br>
                 <br>
       </hbj:form>
      </hbj:page>
    </hbj:content>
    <u><b>Portalapp.xml</b></u>
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="UserInfoDynPage">
          <component-config>
            <property name="ClassName" value="com.sap.sample.UserInfoDynPage"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/UserInfo.jsp"/>
          </component-config>
          <component-profile>
               <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>     
        </component>
      </components>
      <services/>
    </application>
    =============
    Please help.
    Awaiting Reply.
    Thanks,
    Uday
    Message was edited by: Uday Hardikar

    Hi BHI,
    Thank you for your input.
    Had made silly mistake and got solved.
    And now, I have another problem which is related to this same program but the error seems to be a different one.
    Have posted another query:
    Error in HTMLB program..Please help..Urgent OR Error in HTMLB program..Please help..Urgent
    Please help me as its kinda urgent.
    Thanks in advance.
    Uday

  • Display Table contents using HTMLB...Urgent Help Plz...

    Hello All,
    Im working on EP SP14 and SQL Server 2000.
    I have successfully established database connection.
    I want to know <b>how can I display Table contents using TableViewModel in HTMLB</b>.
    Please help.
    Its urgent.
    Awaiting Reply.
    Thanks in advance,
    Uday<b></b>

    See /thread/80270 [original link is broken]
    (please stop crossposting every question into two forums; thanks in advance)

  • Problem in HTMLB :(  Very very very URGENT..Please help

    Hello All,
    I have a problem in HTMLB.
    <u>Scenario</u>:
    1. Am implementing a JSP DynPage Portal Component.
    2. Have a class called "BeanOrderDetails", which consists of an Object table and mapped fields like ModelNo, Qty, etc as the Column Names in this class.
    3. The class using JSPDynpage is called "NewOrder.java".
    This class instantiates the above bean class and calls a jsp file calls "NewOrder.jsp".
    4. NewOrder.jsp - uses HTMLB taglib style. consists of a form and set its layout to GridLayout. It further calls another JSP file which consists of all other GUI objects, called "i1_NewOrder.jsp".
    5. i1_NewOrder.jsp - creates instances of GUI Objects like InputField,etc and adds these instances to the GridLayoutCell.
    Question:
    i> I have to create a button called "Add NewLine" such that when the user clicks on it, an empty row should be automatically generated in the above table, which is created as in step 1.
    Where should I add this button and where would the event be handled?
    Please help. URGENT......
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu

    Hi Ritu,
    I had a very similar problem. The default TableViewModel does not support adding rows at runtime. You have to extend the TableViewModel for this - don't worry it is easier as it sounds.
    Look here for the solution which was given to me by Detlev Beutner:
    How to add a row in TableViewModel?
    I hope this helps.
    Best regards
    Francisco

  • REG: How to add elements onto htmlb table cell.. URGENT PLZ HELP

    Hi all,
    I have created a htmlb table. And the jsp code is as follows
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="myBean" scope="application" class="com.linde.myaccounts.util.TableBean" />
    <hbj:content id="myContext">
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
       <hbj:tableView id="myTableView1"
                          model="myBean.model"
                          design="ALTERNATING"
                          headerVisible="false"
                          footerVisible="false"
                          fillUpEmptyRows="true"
                          visibleFirstRow="1"
                          visibleRowCount="5"
    </hbj:form>
      </hbj:page>
    </hbj:content>
                          width="500 px" >
    </hbj:tableView>
    I have used a table bean by which I am getting the column header names. I have 5 columns, I have to add input field in the first column, checkbox in the second column, leave the third column blank, checkbox in the fourth column and again a input field in the fifth column. I am not understanding on how to add this elements onto the table. Will I add it from the JSP using <hbj:tableViewColumns> tag or I have add them in the bean or in the dynpage. Kindly someone give me the code for this...
    This is very urgent..Kindly help...
    Thanks in advance,
    Priyanka

    Hi,
    Have you tried looking at the examples that come with the PDK for all of the HTMLB elements?  From memory, there should be a small table example or 2 that have different types of columns shown similar to what you want - they have the full source code with them for you to look at.
    If you are working in a portal, go to the Java Developer tab and I "think" there should be a tab linking to HTMLB documentation and examples - sorry I can't be more specific but I don't have access to a portal at the moment so am trying to remember.
    Gareth.

  • Problem in HTMLB..Please Help...urgent....:(

    Hello All,
    Please refer to the below code:
    package com.sap.NewOrderAssignment;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Locale;
    import java.util.GregorianCalendar;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.TableColumnType;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    public class BeanOrderDetails implements Serializable
    {     public Date toDay, orderDate;
         public String toDayAsString;
         public IListModel deliveryAddress;
         public TextEdit address;
         public DefaultTableViewModel orderLines;
         public Locale locale;
         public String poNumber, model, qty;
         public Object colTitle[] = {"Model","Description","Qty (pcs)","AD Price","Net Price","Total amount","Indication ETA","12 NC","Part Del","GIM","# A-box","Pcd/A-box"};
         public BeanOrderDetails()
         {     Calendar cal = new GregorianCalendar();
              toDay = cal.getTime();
              String year = String.valueOf(cal.get(Calendar.YEAR));
              String month = String.valueOf(cal.get(Calendar.MONTH)+1);
              String day = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
              toDayAsString = year"-"month"-"day;
              deliveryAddress = new DefaultListModel();
              deliveryAddress.setSingleSelection(true);
              deliveryAddress.addItem("1", "Delivery Address1");
              deliveryAddress.addItem("2", "Delivery Address2");
              deliveryAddress.addItem("3", "Delivery Address3");
              //company address
              address = new TextEdit("Company Address");
              address.setRows(4);
              address.setCols(40);
              String line1 = "KPIT Cummins Infosystems Ltd.";
              String line2 = "MIDC, Hinjewadi";
              String line3 = "Pune, India";
              address.setText(line1line2line3);
              address.setEnabled(true);
              //Table creation
              Object data[][] = {{"HQ8894","Sensotec Dry Rota Shaver","500","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              orderLines = new DefaultTableViewModel(data, colTitle);     
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
         public void setLocale(Locale l)
         {     locale = l;
         public Locale getLocale()
         {     return locale;
         public void setOrderDate(Date od)
         {     orderDate = od;
         public Date getOrderDate()
         {     return orderDate;
         public void setOrderLines(DefaultTableViewModel mm)
         {     orderLines = mm;
         public DefaultTableViewModel getOrderLines()
         {     return orderLines;
         public void setAddress(String adr)
         {     address.setText(adr);
         public void setTextEditAddress(TextEdit adr)
         {     address = adr;
         public TextEdit getTextEditAddress()
         {     return address;
         public String getAddress()
         {     return address.getText();
         public void setDeliveryAdresses(IListModel model)
         {     deliveryAddress = model;
         public IListModel getdeliveryAddresses()
         {     return deliveryAddress;
         public void setPoNumber(String pon)
         {     this.poNumber = pon;
         public String getPoNumber()
         {     return this.poNumber;
         public void setModel(String m)
         {     this.model = m;
         public void setQty(String quantity)
         {     this.qty = quantity;
         public void getNewRow()
         {     Object data[][] = { {"","Sensotec Dry Rota Shaver ABC","","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              this.setQty("");
              this.setModel("");          
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
    The above code creates a table. It actually maps the various fields as the TableColumn.
    <b><u>Question:</u></b>
    I have added a button which appears below this table.
    Name of button = AddNewLine
    Now, when this button is clicked, a new empy row should appear in the table.
    <i><b>My stmts in method - getNewRow() are not working.</b></i>
    Please help me do so.
    Please help...its kinda urgent.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • Htmlb is undefined!  help me !

    Hi Guys,
    I met a issue in JspDynpro development.
    my code :
    <%@ taglib uri= "tagLib" prefix="hbj" %>
    <jsp:useBean id="acceptBean" scope="session" class="com.ddd.AcceptBean" />
    <% String inputFieldId=null; %>
    <hbj:content id="myContext"  >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
        <hbj:inputField id="returninput"
                        value="L"
                        type="STRING"
                        visible="false" jsObjectNeeded="true" >
                        <%  inputFieldId=myContext.getParamIdForComponent(returninput);%>
        </hbj:inputField>
               <script language="Javascript">
    var returnvalue = 'N';
    returnvalue = window.showModalDialog("<%=acceptBean.getUrl()%>","","dialogWidth:700px;dialogHeight:500px");
    document.all("<%=inputFieldId%>").value= returnvalue;
    alert("htmlbevent " +htmlbevent);
    htmlbevent.cancelSubmit=false;
    </script>     
       </hbj:form>
      </hbj:page>
    </hbj:content>
    the error is htmlbevent is undefined.
    Could you please tell me how to resolve that? Thank you!
    Best Regards,
    Hardy

    Hi Hardy,
    Check your portalapp.xml file to ensure you have the following in the right places:
    <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/> within the <application-config> and </application-config> tags
    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/> within the <component-profile> and </component-profile>
    and remove the following:
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/test.jsp"/>
    hope this helps...

  • HtmlB jsp help...

    Hi, I am studying how to build JSP iViews currently trying to convert some jsp's into iViews and currently studying the htmlb api.  I have provided some sample code and was wondering if someone can provide the direct htmlb translation of it.  Like for example, I know '<form id="myFormID">' is written as <hbj:form id="myFormId"> but the rest I'm not sure of. 
      Thanks so much in advance for looking at this question.
    Thanks again,
    Baggett.
    <b><html>
    <head><title>Welcome</title>     
         <link rel="stylesheet" TYPE="text/css" href="/testCss/style.css" />
        <script language="JavaScript" type="text/JavaScript">
          var myOptions = new Array("languages");
           function varLoaded() {
            alert("test");
        </script>  
    </head>
    <body class="testClass" onLoad="javascript:varLoaded();">
      <form action="/test/test.jsp" method="post" name="testForm">
           <input type="hidden" name="hiddenTest" value="">  
          <table cellpadding="2" cellspacing="15" style="position:relative;left:120px;top:20px;" >
            <tr><td class="tophead" nowrap><div id="testMenu"></div></td></tr>
          </table>  
      </form>
    </body>
    </html></b>

    Hello Baggett-
    To get more in-depth information about the HTMLB control library online please visit: http://www.sapdesignguild.org/resources/htmlb_guidance/index.html
    In the content under this link you will find extensive documentation about HTMLB as a class library for the Dynpage model and as a tag library for the JSP Dynpage model.
    Alternatively for offline reading you can download the file 'htmlb_guidance.zip' available at: http://www.sapdesignguild.org/resources/htmlb_guidance/htmlb_guidance.zip
    This is a very rich resource on HTMLB and should provide you all the information that you require starting out with this nice user interface control set.
    Hope this helps,
    - Vik.

  • Problem in HTMLB..setOnClientClick()..Urgent Help....:)

    Hello All,
    I have 2 jsp files named:
    1> NewOrder.jsp -> This file uses HTMLB Taglib style. includes form and set its layout to gridlayout. It further includes/calls another jsp called "i1_NewOrder.jsp"
    2> i1_NewOrder.jsp -> This includes all the GUI elements like inputfield, textview, etc. This forms a TableView.
    Question:
    I have added a button in i1_NewOrder.jsp and have fired an event using AddLine.setOnClientClick("javascript:AddLines()");
    Now, an alert is being executed (refer to the code below), which has been written in NewOrder.jsp file.
    What I want is that when I click on this button (say "AddNewLine"), a new row should be added in the TableView that is being built up using i1_NewOrder.jsp file.
    How can I get a reference of TableView from i1_NewOrder.jsp to NewOrder.jsp??
    If you se the code, I have tried to do this, but failed
    Code:
    1> NewOrder.jsp
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <%@ page import="com.sapportals.htmlb.*" %>
    <%@ page import="com.sapportals.htmlb.enum.*" %>
    <%@ page import="com.sapportals.htmlb.table.*" %>
    /*<script language="JavaScript">
    function AddLines()
    { var rowcnt;
    alert("Hi");
    rowcnt = tvOrderDetails.getRowCount();
    document.write(rowcnt);
    rowcnt++;
    </script> */
    <jsp:useBean id="beanOrderDetails" scope="session" class="com.sap.NewOrderAssignment.BeanOrderDetails" />
    <hbj:content
    id="contextNewOrder">
    <hbj:page
    title="New Order">
    <hbj:form
    id="formNewOrder">
    <hbj:gridLayout
    id="gridNewOrder"
    debugMode="False"
    width="100%"
    cellSpacing="2">
    <%@ include file="i1_NewOrder.jsp"%>
    </hbj:gridLayout>
    </hbj:form>
    </hbj:page>
    </hbj:content>
    2> i1_NewOrder.jsp
    <%
    //****** define the cells **********//
    GridLayoutCell cellEmpty = new GridLayoutCell(" ");
    GridLayoutCell cellLabelEmpty = new GridLayoutCell(" ");
    GridLayoutCell cellGeneralOrderInfo = new GridLayoutCell(" ");
    GridLayoutCell cellDetailsOrderInfo = new GridLayoutCell(" ");
    GridLayoutCell cellLabelYourOrderNo = new GridLayoutCell(" ");
    GridLayoutCell cellLabelCustomer = new GridLayoutCell(" ");
    GridLayoutCell cellLabelOrderDate = new GridLayoutCell(" ");
    GridLayoutCell cellLabelAddress = new GridLayoutCell(" ");
    cellLabelAddress.setVAlignment(CellVAlign.TOP);
    GridLayoutCell cellLabelRequestedDelDate = new GridLayoutCell(" ");
    GridLayoutCell cellLabelCompletedelivery = new GridLayoutCell(" ");
    GridLayoutCell cellLabelGIM = new GridLayoutCell(" ");
    GridLayoutCell cellLabelDeliveryAddress = new GridLayoutCell(" ");
    GridLayoutCell cellInputYourOrderNo = new GridLayoutCell(" ");
    GridLayoutCell cellinputRequestedDelDate = new GridLayoutCell(" ");
    GridLayoutCell cellTvCustomer = new GridLayoutCell(" ");
    GridLayoutCell cellTvOrderDate = new GridLayoutCell(" ");
    GridLayoutCell cellTvAddress = new GridLayoutCell(" ");
    GridLayoutCell cellTvDeliveryAddress = new GridLayoutCell(" ");
    GridLayoutCell cellCBCompleteDelivery = new GridLayoutCell(" ");
    GridLayoutCell cellCBGIM = new GridLayoutCell(" ");
    GridLayoutCell cellTVOrderLines = new GridLayoutCell(" ");
    GridLayoutCell cellButtonAddLine = new GridLayoutCell(" ");
    //****** define design values for cells **********//
    // Design values for labels
    //****** define the visible gui elements and assign to the cell **********//
    //order details
    TableView tvOrderDetails = new TableView("tvOrderDetails");
    tvOrderDetails.setModel(beanOrderDetails.getOrderLines());
    tvOrderDetails.setSelectionMode(TableSelectionMode.MULTISELECT);
    cellTVOrderLines.setColSpan(6);
    cellTVOrderLines.setContent(tvOrderDetails);
    //General order info: header>
    TextView tvGeneralOrderInfo = new TextView("General Order Information");
    cellGeneralOrderInfo.setColSpan(6);
    cellGeneralOrderInfo.setContent(tvGeneralOrderInfo);
    //General order details>
    TextView tvDetailsOrderInfo = new TextView("Order details");
    cellDetailsOrderInfo.setColSpan(6);
    cellDetailsOrderInfo.setContent(tvDetailsOrderInfo);
    //label Your order number
    TextView labelYourOrderNo = new TextView("Your order number");
    cellLabelYourOrderNo.setWidth("150");
    cellLabelYourOrderNo.setContent(labelYourOrderNo);
    //Input Your order number
    InputField inputYourOrderNo = new InputField("InputYourOrderNo");
    cellInputYourOrderNo.setWidth("200");
    cellInputYourOrderNo.setContent(inputYourOrderNo);
    //label Customer
    TextView labelCustomer = new TextView("Customer");
    cellLabelCustomer.setWidth("150");
    cellLabelCustomer.setContent(labelCustomer);
    //Textview customer
    TextView tvCustomer = new TextView("tvCustomer");
    cellTvCustomer.setContent(tvCustomer);
    //label Order date
    TextView labelOrderDate = new TextView("Order Date");
    cellLabelOrderDate.setContent(labelOrderDate);
    //Text view order date
    TextView tvOrderDate = new TextView("tvOrderDate");
    cellTvOrderDate.setContent(tvOrderDate);
    //last check
    //Label address
    TextView labelAddres = new TextView("Address");
    cellLabelAddress.setContent(labelAddres);
    //text view address
    TextView tvAddress = new TextView("Tjaskerlaan");
    cellTvAddress.setContent(tvAddress);
    //Label Requested delivery date
    TextView labelRequestedDelDate = new TextView("Requested Delivery Date");
    cellLabelRequestedDelDate.setContent(labelRequestedDelDate);
    //Label Complete delivery
    TextView labelCompleteDelivery = new TextView("Completed Date");
    cellLabelCompletedelivery.setContent(labelCompleteDelivery);
    //Checkbox Complete delivery
    Checkbox cbCompleteDelivery = new Checkbox("cbCompleteDelivery");
    cellCBCompleteDelivery.setContent(cbCompleteDelivery);
    //Label Complete GIM
    TextView labelGIM = new TextView("GIM");
    cellLabelGIM.setContent(labelGIM);
    //Checkbox GIM
    Checkbox cbGIM = new Checkbox("cbGIM");
    cellCBGIM.setContent(cbGIM);
    //Label delivery address
    TextView labelDeliveryAddres = new TextView("Delivery Address");
    cellLabelDeliveryAddress.setContent(labelDeliveryAddres);
    //text view address
    TextView tvDeliveryAddress = new TextView("Tjaskerlaan");
    cellTvDeliveryAddress.setContent(tvDeliveryAddress);
    // listbox delivery addresses
    ListBox lbDeliveryAddress = new ListBox("lbDeliveryAddress");
    cellTvDeliveryAddress.setContent(lbDeliveryAddress);
    Button AddLine = new Button("AddLine","Add New Line");
    cellButtonAddLine.setContent(AddLine);
    //AddLine.disabled=true;
    AddLine.setOnClientClick("javascript:AddLines()");
    //****** add cells to grid **********//
    gridNewOrder.addCell(1, 1, cellGeneralOrderInfo);
    gridNewOrder.addCell(2, 1, cellLabelYourOrderNo);
    gridNewOrder.addCell(2, 2, cellInputYourOrderNo);
    //gridNewOrder.addCell(2, 3, cellEmpty);
    gridNewOrder.addCell(2, 4, cellLabelCustomer);
    gridNewOrder.addCell(2, 5, cellInputYourOrderNo);
    gridNewOrder.addCell(2, 6, cellEmpty);
    gridNewOrder.addCell(3, 1, cellLabelOrderDate);
    gridNewOrder.addCell(3, 2, cellTvOrderDate);
    //gridNewOrder.addCell(3, 3, cellEmpty);
    gridNewOrder.addCell(3, 4, cellLabelAddress);
    gridNewOrder.addCell(3, 5, cellInputYourOrderNo);
    gridNewOrder.addCell(4, 1, cellLabelRequestedDelDate);
    gridNewOrder.addCell(4, 2, cellInputYourOrderNo);
    //gridNewOrder.addCell(4, 3, cellEmpty);
    gridNewOrder.addCell(4, 4, cellLabelEmpty);
    gridNewOrder.addCell(4, 5, cellInputYourOrderNo);
    gridNewOrder.addCell(5, 1, cellLabelCompletedelivery);
    gridNewOrder.addCell(5, 2, cellCBGIM);
    //gridNewOrder.addCell(5, 3, cellEmpty);
    gridNewOrder.addCell(5, 4, cellLabelDeliveryAddress);
    gridNewOrder.addCell(5, 5, cellTvDeliveryAddress);
    gridNewOrder.addCell(6, 1, cellLabelGIM);
    gridNewOrder.addCell(6, 2, cellCBGIM);
    gridNewOrder.addCell(6, 3, cellEmpty);
    gridNewOrder.addCell(6, 4, cellLabelEmpty);
    gridNewOrder.addCell(7, 4, cellLabelEmpty);
    gridNewOrder.addCell(6, 6, cellEmpty);
    gridNewOrder.addCell(8, 1, cellEmpty);
    gridNewOrder.addCell(9, 1,cellDetailsOrderInfo);
    gridNewOrder.addCell(10, 1,cellTVOrderLines);
    gridNewOrder.addCell(11,1,cellButtonAddLine);
    %>
    Awaiting Reply.
    Please help.
    Thanks and Warm Regards,
    Ritu

    >>AddLine.setOnClientClick("javascript:AddLines()");
    I guess AddLine.setOnClientClick("AddLines()"); this wud work!
    Regards,
    P.

  • Need help with htmlb:inputField and Currency format

    Hi all,
    i'm looking in vain for the possibility to prepare a field with currency.
    I have a local field in which an amount is available.
    Unfortunately, the amount is spent but not formatted for currency.
    current layout:  123456.78
    requestet layout: 123.456,78
    How do I get through it?
    Here is my code:
    DATA: ld_betrag         TYPE ZBETR.
    definition: the domain of "ZBETR"  = 'WRTV7'
    LOOP AT.....
      ADD wa-betrag TO ld_betrag.
    ENDLOOP.
    The amount will be added in a loop.
    <htmlb:inputField id = "betrag"
                disabled = "TRUE"
                value    = "<%= ld_betrag %>" />
    Output is via a htmlb:inputField
    I have the same definition for a amount field in a htmlb:tableView...
    in this tableView i get the correct layout for my amount. But I haven´t give a special formatting to the tableView...
    Why the BSP works differently at htmlb:inputField and htmlb:tableView
    Thanks 4 help.
    Regards
    Markus

    Hi,
    the Domain of ZBETR = WRTV7 (it´s SAP Standard)
    Data Type          CURR      'Currency field, stored as DEC'
    No. Characters       13
    Decimal Places        2
    Output Length        18
    Convers. Routine
    X Sign
    SBSPEXT_HTMLB Helps
    I forgot the attribute 'type'.
    Thank you...now it works!
    Regards
    Markus

  • Help in importing the package for htmlb

    Hi Friends,
    I'm pretty new a Portal developement in Java. Can you please help regarding this issue.
    1. i have installed C:\j2sdk1.4.2_09. I did settings for all classpath of jar files.
    2. In Netweaver Developer studio,  when i tried to import the following packages , it throws errors
    The packages are
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    can please let me know, what i have to do to overcome this problem. Appreciate your help

    For whatever reason, SAP requires that you add a reference to them within you application and project for that sake.
    On your project do the following:
    1) Right click on the project
    2) Select add/remove additional libraries
    3) Expand sap.com and put a check next to com.sapportals.htmlb
    4) click OK button
    It will give you a message window after you click OK which states something like you have to add the reference to the application. Follow the next steps to add the referece to you application.
    1) Expand you application
    2) double click on application-j2ee-engine.xml
    3) Select references and click add
    4) click on the "select library/interface/service" button
    5) Select the same package as above and click OK.
    Build both and deploy.

  • Prblm in HTMLB..onClientClick Eventing..Please help..urgent :|

    Hello All,
    I have 2 jsp files named:
    1> <b>NewOrder.jsp</b> -> This file uses HTMLB Taglib style. includes form and set its layout to gridlayout. It further includes/calls another jsp called "i1_NewOrder.jsp"
    2> <b>i1_NewOrder.j</b>sp -> This includes all the GUI elements like inputfield, textview, etc. This forms a TableView.
    <u>Question</u>:
    I have added a button in i1_NewOrder.jsp and have fired an event using <b>AddLine.setOnClientClick("javascript:AddLines()");</b>
    Now, an alert is being executed (refer to the code below), which has been written in NewOrder.jsp file.
    <i><b>What I want is that when I click on this button (say "AddNewLine"), a new row should be added in the TableView that is being built up using i1_NewOrder.jsp file.</b></i>
    <i><b>How can I get a reference of TableView from i1_NewOrder.jsp to NewOrder.jsp</b></i>??
    If you se the code, I have tried to do this, but failed
    <u>Code</u>:
    1> <u>NewOrder.jsp</u>
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <%@ page import="com.sapportals.htmlb.*" %>
    <%@ page import="com.sapportals.htmlb.enum.*" %>
    <%@ page import="com.sapportals.htmlb.table.*" %>
    /*<script language="JavaScript">
    function AddLines()
    {     var rowcnt;
         alert("Hi");
         rowcnt = tvOrderDetails.getRowCount();
         document.write(rowcnt);
         rowcnt++;     
    </script> */
    <jsp:useBean id="beanOrderDetails" scope="session" class="com.sap.NewOrderAssignment.BeanOrderDetails" />
    <hbj:content
         id="contextNewOrder">
         <hbj:page
              title="New Order">
              <hbj:form
                   id="formNewOrder">
                   <hbj:gridLayout
                        id="gridNewOrder"
                        debugMode="False"
                        width="100%"
                        cellSpacing="2">
                        <%@ include file="i1_NewOrder.jsp"%>
                   </hbj:gridLayout>
              </hbj:form>
         </hbj:page>
    </hbj:content>
    2> i1_NewOrder.jsp
    <%
    //****** define the cells **********//
    GridLayoutCell cellEmpty = new GridLayoutCell(" ");
    GridLayoutCell cellLabelEmpty = new GridLayoutCell(" ");
    GridLayoutCell cellGeneralOrderInfo = new GridLayoutCell(" ");
    GridLayoutCell cellDetailsOrderInfo = new GridLayoutCell(" ");
    GridLayoutCell cellLabelYourOrderNo = new GridLayoutCell(" ");
    GridLayoutCell cellLabelCustomer = new GridLayoutCell(" ");
    GridLayoutCell cellLabelOrderDate = new GridLayoutCell(" ");
    GridLayoutCell cellLabelAddress = new GridLayoutCell(" ");
    cellLabelAddress.setVAlignment(CellVAlign.TOP);
    GridLayoutCell cellLabelRequestedDelDate = new GridLayoutCell(" ");
    GridLayoutCell cellLabelCompletedelivery = new GridLayoutCell(" ");
    GridLayoutCell cellLabelGIM = new GridLayoutCell(" ");
    GridLayoutCell cellLabelDeliveryAddress = new GridLayoutCell(" ");
    GridLayoutCell cellInputYourOrderNo = new GridLayoutCell(" ");
    GridLayoutCell cellinputRequestedDelDate = new GridLayoutCell(" ");
    GridLayoutCell cellTvCustomer = new GridLayoutCell(" ");
    GridLayoutCell cellTvOrderDate = new GridLayoutCell(" ");
    GridLayoutCell cellTvAddress = new GridLayoutCell(" ");
    GridLayoutCell cellTvDeliveryAddress = new GridLayoutCell(" ");
    GridLayoutCell cellCBCompleteDelivery = new GridLayoutCell(" ");
    GridLayoutCell cellCBGIM = new GridLayoutCell(" ");
    GridLayoutCell cellTVOrderLines = new GridLayoutCell(" ");
    GridLayoutCell cellButtonAddLine = new GridLayoutCell(" ");
    //****** define design values for cells **********//
    // Design values for labels
    //****** define the visible gui elements and assign to the cell **********//
    //order details
    TableView tvOrderDetails = new TableView("tvOrderDetails");
    tvOrderDetails.setModel(beanOrderDetails.getOrderLines());
    tvOrderDetails.setSelectionMode(TableSelectionMode.MULTISELECT);
    cellTVOrderLines.setColSpan(6);
    cellTVOrderLines.setContent(tvOrderDetails);
    //General order info: header>
    TextView tvGeneralOrderInfo = new TextView("General Order Information");
    cellGeneralOrderInfo.setColSpan(6);
    cellGeneralOrderInfo.setContent(tvGeneralOrderInfo);
    //General order details>
    TextView tvDetailsOrderInfo = new TextView("Order details");
    cellDetailsOrderInfo.setColSpan(6);
    cellDetailsOrderInfo.setContent(tvDetailsOrderInfo);
    //label Your order number
    TextView labelYourOrderNo = new TextView("Your order number");
    cellLabelYourOrderNo.setWidth("150");
    cellLabelYourOrderNo.setContent(labelYourOrderNo);
    //Input Your order number
    InputField inputYourOrderNo = new InputField("InputYourOrderNo");
    cellInputYourOrderNo.setWidth("200");
    cellInputYourOrderNo.setContent(inputYourOrderNo);
    //label Customer
    TextView labelCustomer = new TextView("Customer");
    cellLabelCustomer.setWidth("150");
    cellLabelCustomer.setContent(labelCustomer);
    //Textview customer
    TextView tvCustomer = new TextView("tvCustomer");
    cellTvCustomer.setContent(tvCustomer);
    //label Order date
    TextView labelOrderDate = new TextView("Order Date");
    cellLabelOrderDate.setContent(labelOrderDate);
    //Text view order date
    TextView tvOrderDate = new TextView("tvOrderDate");
    cellTvOrderDate.setContent(tvOrderDate);
    //last check
    //Label address
    TextView labelAddres = new TextView("Address");
    cellLabelAddress.setContent(labelAddres);
    //text view address
    TextView tvAddress = new TextView("Tjaskerlaan");
    cellTvAddress.setContent(tvAddress);
    //Label Requested delivery date
    TextView labelRequestedDelDate = new TextView("Requested Delivery Date");
    cellLabelRequestedDelDate.setContent(labelRequestedDelDate);
    //Label Complete delivery
    TextView labelCompleteDelivery = new TextView("Completed Date");
    cellLabelCompletedelivery.setContent(labelCompleteDelivery);
    //Checkbox Complete delivery
    Checkbox cbCompleteDelivery = new Checkbox("cbCompleteDelivery");
    cellCBCompleteDelivery.setContent(cbCompleteDelivery);
    //Label Complete GIM
    TextView labelGIM = new TextView("GIM");
    cellLabelGIM.setContent(labelGIM);
    //Checkbox GIM
    Checkbox cbGIM = new Checkbox("cbGIM");
    cellCBGIM.setContent(cbGIM);
    //Label delivery address
    TextView labelDeliveryAddres = new TextView("Delivery Address");
    cellLabelDeliveryAddress.setContent(labelDeliveryAddres);
    //text view address
    TextView tvDeliveryAddress = new TextView("Tjaskerlaan");
    cellTvDeliveryAddress.setContent(tvDeliveryAddress);
    // listbox delivery addresses
    ListBox lbDeliveryAddress = new ListBox("lbDeliveryAddress");
    cellTvDeliveryAddress.setContent(lbDeliveryAddress);
    Button AddLine = new Button("AddLine","Add New Line");
    cellButtonAddLine.setContent(AddLine);
    //AddLine.disabled=true;
    <b>AddLine.setOnClientClick("javascript:AddLines()");</b>
    //****** add cells to grid **********//
    gridNewOrder.addCell(1, 1, cellGeneralOrderInfo);
    gridNewOrder.addCell(2, 1, cellLabelYourOrderNo);
    gridNewOrder.addCell(2, 2, cellInputYourOrderNo);
    //gridNewOrder.addCell(2, 3, cellEmpty);
    gridNewOrder.addCell(2, 4, cellLabelCustomer);
    gridNewOrder.addCell(2, 5, cellInputYourOrderNo);
    gridNewOrder.addCell(2, 6, cellEmpty);
    gridNewOrder.addCell(3, 1, cellLabelOrderDate);
    gridNewOrder.addCell(3, 2, cellTvOrderDate);
    //gridNewOrder.addCell(3, 3, cellEmpty);
    gridNewOrder.addCell(3, 4, cellLabelAddress);
    gridNewOrder.addCell(3, 5, cellInputYourOrderNo);
    gridNewOrder.addCell(4, 1, cellLabelRequestedDelDate);
    gridNewOrder.addCell(4, 2, cellInputYourOrderNo);
    //gridNewOrder.addCell(4, 3, cellEmpty);
    gridNewOrder.addCell(4, 4, cellLabelEmpty);
    gridNewOrder.addCell(4, 5, cellInputYourOrderNo);
    gridNewOrder.addCell(5, 1, cellLabelCompletedelivery);
    gridNewOrder.addCell(5, 2, cellCBGIM);
    //gridNewOrder.addCell(5, 3, cellEmpty);
    gridNewOrder.addCell(5, 4, cellLabelDeliveryAddress);
    gridNewOrder.addCell(5, 5, cellTvDeliveryAddress);
    gridNewOrder.addCell(6, 1, cellLabelGIM);
    gridNewOrder.addCell(6, 2, cellCBGIM);
    gridNewOrder.addCell(6, 3, cellEmpty);
    gridNewOrder.addCell(6, 4, cellLabelEmpty);
    gridNewOrder.addCell(7, 4, cellLabelEmpty);
    gridNewOrder.addCell(6, 6, cellEmpty);
    gridNewOrder.addCell(8, 1, cellEmpty);
    gridNewOrder.addCell(9, 1,cellDetailsOrderInfo);
    gridNewOrder.addCell(10, 1,cellTVOrderLines);
    gridNewOrder.addCell(11,1,cellButtonAddLine);
    %>

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • Help for HTMLB Tabstrip

    Hi,
    I have three tabs in my tabstrip control. The tab1 will display a few details as the page is generated.
    Now my problem is how to change the tab2 and tab3 with some more details when they are selected.
    Besides after clicking tab2 if I go back to tab1 there previous details are not there. How to overcome this?
    I am <b>not using MVC approach</b>. Any help and useful codes will be appreciated greatly.
    Thanks
    Kathirvel

    Hi,
    a possibility for you is to make your bsp app stateful and save the incomming data (form_fields of request object) in oninputprocessing to attributes of a application class.
    Search SDN for use of application class.
    Regards,
    Sebastian

  • Help on HTMLB Button

    I have two buttons.I want to display only first button during the first display.After clicking the first button, the second button should get activated.
    in JSP the second button's default value is being set by myBean.
    <b><hbj:button
                      id="button1"
                   text="Reset"
                   width="125px"
                   tooltip="Reset the First Button"
                   onClick="onReset"
                   disabled="<%=myBean.getFlag()%>"
                   design="STANDARD">
              </hbj:button></b>
    bean:
           private boolean flag =true;
         public void setFlag(boolean v){
              this.flag=v;
         public boolean getFlag(){
              return flag;
    In the Dynpage am setting the bean's value.
    Iam getting a runtime error as the <b>disbaled</b> attribute is not taking the value given by bean.
    I can print the bean value on JSP.It's giving the perfect value (<b>true</b>).
    But for some reason the attribute is not liking the value.
    Somebody?

    Hi Robert,
         Change flag to string.
    private String flag ="TRUE";
    public void setFlag(String v){
    this.flag=v;
    public String getFlag(){
    return flag;
    In you JSPDynpage, set the string value.
    Message was edited by: Prakash  Singh

  • Htmlb:get the values from bean n display it in textView

    Hi,
    I am doing one PDK application using jspdyn page. In jsp page I am using htmlb to display the table. In that I am using one text view element. There I need to get the values from bean class.And display it in a table.
    Can anyone help me how can use the textView inside htmlb to retrieve the values from bean.
    Thanks & Regards
    Vineela

    hi vineela,
    For the textView, in the text value write the code  <%=myBean.getStr()%>
    where myBean will be your bean class and getStr() is the method in the bean class whcih returns value which needs to be displayed on the screen.
    Thanks
    Harsimran

Maybe you are looking for