cancel
Showing results for 
Search instead for 
Did you mean: 

htmlb UI not displaying

lakshmikanthaiah_s
Participant
0 Kudos
181

Dear friends

I am working on HTMLB, but my initial program itself failed.

I am try to display htmlb Button for testing, but no htmlb UI is able to display.

My program is

<%@ taglib uri="tagLib" prefix="hbj" %>

<jsp:useBean id="TableViewBean" scope="application" class="TVBean.TableViewBean" />

<hbj:content id="myContext" >

<hbj:page title="HTMLB Example Programs">

<hbj:form id="f1" name="f1" >

<hbj:button

text="hi button"

id="clickbtn"

design="STANDARD"

tooltip="hi click me"

width="100px">Button</hbj:button>

<hbj:label text="Zip code" design="LABEL" id="lbl" required="true"/>

</hbj:form>

</hbj:page>

</hbj:content>

Updated in portalapp.xml as

<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>

And when i do iView preview, getting following error.

Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library..

Exception id: 11:34_22/04/05_0039

See the details for the exception ID in the log file

can anybody tell me what would be the problem.

If in case about htmlb service, how can i test whether htmlb service is running without anyproblem on the given path.

Please reply me

thank in advance

kantha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Just check for re-confirmation:


....
<application-config>
        <property name="SharingReference" value="htmlb"/>
</application-config>
....
<component-profile>
   <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
      <property name="inheritance" value="final"/>
    </property>
</component-profile>
....

Walter

lakshmikanthaiah_s
Participant
0 Kudos

hi walter,

thanx for reply,

i tried ur instructions.

but still same problem

can u tell me what would be the problem?

kantha

Former Member
0 Kudos

please post your portalapp.xml

lakshmikanthaiah_s
Participant
0 Kudos

<?xml version="1.0" encoding="utf-8"?>

<application>

<application-config>

<property name="SharingReference" value="htmlb"/>

</application-config>

<components>

<component name="tableView">

<component-config>

<property name="ClassName" value="tableView"/>

<property name="SecurityZone" value="tableView/high_safety"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/tableView.jsp"/>

<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">

<property name="inheritance" value="final"/>

</property>

</component-config>

<component-profile/>

</component>

</components>

<services/>

</application>

Former Member
0 Kudos

Try changing to:



<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="htmlb"/>
</application-config>
<components>
<component name="tableView">
<component-config>
<property name="ClassName" value="tableView"/>
<property name="SecurityZone" value="tableView/high_safety"/>
<!--<property name="ComponentType" value="jspnative"/>-->
<!--<property name="JSP" value="pagelet/tableView.jsp"/>-->
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
<property name="inheritance" value="final"/>
</property>
</component-config>
<component-profile/>
</component>
</components>
<services/>
</application> 

I think You are using JSPDynpage so this should work.

Walter

Former Member
0 Kudos

<property name="ClassName" value="tableView"/>

...maybe there is missing the package path for the class ?

...where have you implemented the class ? In src.api or src.core ?

lakshmikanthaiah_s
Participant
0 Kudos

Hi man,

thanx for putting effort

but my problem is not solved

i am getting

Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

Error in parsing taglib '/SERVICE/htmlb/taglib/htmlb.tld' tag in web.xml or .tld file of the taglib library..

Exception id: 03:38_22/04/05_0012

See the details for the exception ID in the log file

any solution

lakshmikanthaiah_s
Participant
0 Kudos

the class is there in src.core

and property already exists.

it is giving parsing error for htmlb.tld file as below

Error in parsing taglib '/SERVICE/htmlb/taglib/htmlb.tld'

that means, the .tld file not available in its path

that is the Service is not available.

is not it?

Message was edited by: Lakshmikantha S

Former Member
0 Kudos

Put the TagLib definition in the component-profile as shown a few postings above or here :


<component-profile>
   <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
       <property name="inheritance" value="final"/>
   </property>
</component-profile>

According to Your XML snippet the tagLib definition is in the component-config which is supposed to be wrong.

Wrong:


<component-config>
...
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"><property name="inheritance" value="final"/>
</property>
...
</component-config>

Greetings

Walter

Former Member
0 Kudos

Walter is correct but you don't need the following line.

<property name="inheritance" value="final"/>

By putting the taglib in component-profile would make j2ee to process your JSP.

<component-profile>
   <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
    </property>
</component-profile>

lakshmikanthaiah_s
Participant
0 Kudos

Dear friends,

I am following all your instruction in my R&D

but still same error on iview

Portal Runtime Error

An exception occurred while processing a request for :

iView : pcd:portal_content/Kemwell/Roles/CR/Reports/Reports/tview_htmlbtest

Component Name : tview.htmlbtest

Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library..

Exception id: 10:55_23/04/05_0034

See the details for the exception ID in the log file

and in error log file, i found the below error

Caused by: com.sapportals.portal.prt.servlets_jsp.server.jsp.ParseException: Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library.

at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspTaglibDirective.verifyAttributes(JspTaglibDirective.java:181)

at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspDirective.parse0(JspDirective.java:162)

at com.sapportals.portal.prt.servlets_jsp.server.jsp.syntax.JspDirective.parse(JspDirective.java:117)

well, i am sending the whole code

htmlbtext.jsp

<%@ taglib uri="tagLib" prefix="hbj" %>

<hbj:content id="myContext" >

<hbj:page title="PageTitle">

<hbj:form id="myFormId" >

<hbj:button

id="btn"

text="HTMLB Button Test"

width="100px"

tootip="Click me here"

design="STANDARD">

</hbj:button>

</hbj:form>

</hbj:page>

</hbj:content>

portal.xml code

<?xml version="1.0" encoding="utf-8"?>

<application>

<application-config>

<property name="SharingReference" value="com.sap.portal.htmlb"/>

</application-config>

<components>

<component name="tableview">

<component-config>

<property name="ClassName" value="tableview"/>

<property name="SecurityZone" value="tableview/high_safety"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/tableview.jsp"/>

</component-config>

<component-profile/>

</component>

<component name="htmlbtest">

<component-config>

<property name="ClassName" value="htmlbtest"/>

<property name="SecurityZone" value="htmlbtest/high_safety"/>

<!-- <property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/htmlbtest.jsp"/> -->

<component-profile>

<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">

</property>

</component-profile>

</component-config>

<component-profile/>

</component>

</components>

<services/>

</application>

please tell me the problem and solution.

Is it any problem with server installation?

I am using SAP EP 6.0 SP2 with Patch 27

Actually i need work on ProtalTableView or TableView,

but the basic control itself is not displaying

hope we will find some solution for it

cheers

Kantha

Former Member
0 Kudos

Hi,

why u put component-profile in component-config tag? component-profile shoud be children of <component>:

<component name="htmlbtest">

<component-config>

<property name="ClassName" value="htmlbtest"/>

<property name="SecurityZone" value="htmlbtest/high_safety"/>

</component-config>

<component-profile>

<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"> </property>

</component-profile>

</component>

JJ

Former Member
0 Kudos

Change Your portalapp.xml to:


<?xml version="1.0" encoding="utf-8"?>
<application>
    <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
    </application-config>
    <components>
        <component name="tableview">
            <component-config>
                <property name="ClassName" value="tableview"/>
                <property name="SecurityZone" value="tableview/high_safety"/>
                <property name="ComponentType" value="jspnative"/>
                <property name="JSP" value="pagelet/tableview.jsp"/>
            </component-config>
            <component-profile/>
        </component>
        <component name="htmlbtest">
            <component-config>
                <property name="ClassName" value="htmlbtest"/>
                <property name="SecurityZone" value="htmlbtest/high_safety"/>
                <!-- <property name="ComponentType" value="jspnative"/>-->
                <!--<property name="JSP" value="pagelet/htmlbtest.jsp"/> -->
            </component-config>
            <component-profile>
                <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
            </component-profile>
            <component-profile/>
        </component>
    </components>
    <services/>
</application>

Walter