on 2005 Apr 22 7:39 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<?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>
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
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
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
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
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>
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
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
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
User | Count |
---|---|
82 | |
12 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.