Problem with JSF Tutorial in CE Tutorial Center
Hi,
I am referring to the tutorial "[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30016ca9-f786-2b10-1fa4-8dffb880d2a3|How to Call an Enterprise Service from JSF]" from the CE Tutorial Center.
After generating theJava Proxy Client and write the code in my search method - I get design time errors because the compiler does not recognize the following Classes in the code:
EmployeeID
EmployeeBasicDataSelectionByEmployee
EmployeeBasicDataByEmployeeQueryMessage
...and a few more.
My search() code is:
EmployeeID employeeID = new EmployeeID();
employeeID.setValue(this.employeeID);
EmployeeBasicDataSelectionByEmployee employeeByEmployee = new EmployeeBasicDataSelectionByEmployee();
employeeByEmployee.setEmployeeID(employeeID);
EmployeeBasicDataByEmployeeQueryMessage input = new EmployeeBasicDataByEmployeeQueryMessage();
input.setEmployeeBasicDataSelectionByEmployee(employeeByEmployee);
// Invoke the business methods
EmployeeBasicDataByEmployeeResponseMessage output = port.employeeBasicDataByEmployeeQueryResponseIn(input);
Employee employee = output.getEmployee();
Please help.
Thanks.
p256960
Edited by: p256960 on Feb 2, 2009 11:04 AM
Hi,
The problem seems to be that the "Generate Client" wizard is not generating classes like EmployeeID, etc.
How do I get these classes in my Project?
Please help.
Thanks.
p256960.
Similar Messages
-
Very big problem with JSF about FORM and "id=" for HTML form's elements and
I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
Suppose you have something like this, to render some datas form a Java Beans :
<h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
</h:column>
</h:dataTable>
Everything works fine...
Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
<td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
You think you can use the java instructions :
Enumeration NamesParam = request.getParameterNames();
while (NomsParam.hasMoreElements()) {
String NameParam = (String) NamesParam.nextElement();
out.println("<h4>"++NameParam+ "+</h4>);
YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
Edited by: ungars on Jul 18, 2010 12:43 AM
Edited by: ungars on Jul 18, 2010 12:45 AMWhile I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
"Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
Ed -
Problems with JSF and included subviews
Hi everybody,
I' ve got a problem with JSF and included subviews which makes me going
crazy. I've got no clue why my web-pages are represent wrongly. The only
tip I've got is that it must be connected with the kind I do include my JSF-pages.
When I use <%@file="sub.jsp"%> my pages are are represent right. When I use <jsp:include page="Sub.jsp" /> or <c:import url="Sub.jsp" /> ( mark: the usage of flush="true" or flush="false" doesn't matter )
my pages are represent wrongly.
The usage of tags like f:facet or f:verbatim were also included but didn't point to an solution.
I searched the whole Sun Developer Forum and some other web-sites for any solution for my problem but the given hints and clues didn't help. Now I'm trying to post my problem directly in Sun's Forum in hope to get help.
My environment is the following:
JAVA JDK 1.5 Update 4
Tomcat 5.5.9
JSLT 1.1
Sun JSF 1.1
Win 2K
Here's my code:
Main.jsp
<%@ page language="java"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName()
+ ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="stil.jsp" type="text/css" />
</head>
<body>
<f:view>
<h:form>
<div class="table">
<div class="tr">
<h:outputText styleClass="tdleft" value="value 1"/>
<h:outputText styleClass="tdinfo" value="value 2"/>
</div>
<div class="tr">
<h:outputText styleClass="tdleft" value="value 3"/>
<h:outputText styleClass="tdinfo" value="value 4"/>
</div>
</div>
</h:form>
<jsp:include page="Sub.jsp" />
</f:view>
</body>
</html>Sub.jsp
<%@ page language="java"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<f:subview id="subview">
<h:form>
<div class="table">
<div class="tr">
<h:outputText styleClass="tdleft" value="value 11"/>
<h:outputText styleClass="tdinfo" value="value 22"/>
</div>
<div class="tr">
<h:outputText styleClass="tdleft" value="value 33"/>
<h:outputText styleClass="tdinfo" value="value 44"/>
</div>
</div>
</h:form>
</f:subview>stil.jsp
<%@page contentType="text/css"%>
<%
String schwarz = "#000000",
grau1 = "#707070",
grau2 = "#c0c0c0",
grau3 = "#e0e0e0",
grau4 = "#e8e8e8",
grau5 = "#fdfdfd",
blau = "#0000dd",
tuerkis = "#00cfff";
String liniendicke = "1px",
linienart = "solid";
String allgemeineTextFarbe = schwarz;
String allgemeineHintergrundFarbe = grau3;
String infoTextFarbe = blau;
String fieldsetRandFarbe = blau;
String fieldsetRandDicke = liniendicke;
String fieldsetRandArt = linienart;
String hrLinienFarbe = blau;
String hrLinienDicke = liniendicke;
String hrLinienArt = linienart;
String inputAktivHintergrundFarbe = grau5;
String inputReadonlyHintergrundFarbe = grau4;
String inputPassivHintergrundFarbe = grau4;
String inputPassivFarbe = schwarz;
String inputRandFarbe1 = grau1;
String inputRandFarbe2 = grau5;
String inputRandDicke = liniendicke;
String inputRandArt = linienart;
String inputButtonHintergrundFarbe = grau3;
String legendenFarbe = blau;
String linkFarbe = blau;
String linkAktivFarbe = tuerkis;
String linkBesuchtFarbe = blau;
String linkFocusFarbe = tuerkis;
String objectGitterFarbe = grau5;
String objectGitterDicke = liniendicke;
String objectGitterArt = linienart;
String tabellenGitterFarbe = grau5;
String tabellenGitterDicke = liniendicke;
String tabellenGitterArt = linienart;
%>
<%-- ----------------------------------------------- --%>
<%-- Textdarstellung mittels der Display-Eigenschaft --%>
<%-- in den Tags div und span --%>
<%-- ----------------------------------------------- --%>
*.table {
display:table;
border-collapse:collapse;
*.tbody {
display:table-row-group;
*.tr {
display:table-row;
*.td,*.tdright,*.tdleft,*.tdinfo,*.th {
display:table-cell;
padding:3px;
vertical-align:middle;
*.td,*.th {
text-align:center;
*.tdright {
text-align:right;
*.tdleft {
text-align:left;
*.tdinfo {
color:<%=infoTextFarbe%>;
text-align:right;
*.th {
color:<%=infoTextFarbe%>;
font-weight:bold;
}thanks in advance
benjaminHello Zhong Li,
many thanks for your post, but it didn't work.
My problem is that the JSF-Components im my included or imported
JSP-Pages does not accept any kind of style or styleClass for
designing. The components take over the informations for colors
but not for alignment.
When I take a look at the generated JAVA-Source in $TOMCAT/WORK/WEBAPP for my sub.jsp ( sub.java )
it seems that the resulting HTML-page would be presented correctly.
But later when I start the application via Firefox or Mozilla the html-sourcecode is totally wrong.
In my example I create a simple grid with 2 rows and 2 columns.
Both columns contains JSF-Outtext-Components and are included with div-tags.
The generated Sub.java shows that the text would be setted in the div-tags. Unfortunately the html-sourcecode represented by my browser shows that jsf-text is not setted in the tags but in the <h:form> tags. The div-tags are neither rounded by <h:form> nor containing the JSF-OutText-Components.
Any clue?
Many thanks Benjamin
Here is the html-code from Firefox:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="http://polaris21:8080/webtest/">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="stil.jsp" type="text/css" />
</head>
<body>
<form id="_id0" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
<div class="table">
<div class="tr">
<span class="tdleft">value 1</span>
<span class="tdinfo">value 2</span>
</div>
<div class="tr">
<span class="tdleft">value 3</span>
<span class="tdinfo">value 4</span>
</div>
</div>
<input type="hidden" name="_id0" value="_id0" />
</form>
<form id="SUB:_id5" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
<span class="tdleft">value 11</span>
<span class="tdinfo">value 22</span>
<span class="tdleft">value 33</span>
<span class="tdinfo">value 44</span>
<input type="hidden" name="SUB:_id5" value="SUB:_id5" />
</form>
<div class="table">
<div class="tr">
</div>
<div class="tr">
</div>
</div>
</body>
</html> -
when data is fetch using user criteria:
i have a problem with jsf DataTable. I use e request bean to populate the datatable and i insert a commandButton column. The data dispay successfully into the datatable, but when a push the button on the row...the page simply refresh and notinhg else
when data is fetch using constants:
The data dispay successfully into the datatable, when a push the button on the row...the action execute OKHi,
I don't think that with this description only anybody on this list is able to help you.
I use e request bean to populate the datatable and i insert a commandButton column
What is a command button column and what does it do ?
but when a push the button on the row...the page simply refresh and notinhg else
What did you do to debug the problem ?
when data is fetch using constants
What does this mean ?
Frank -
How to solve problem with JSF table's border (style) ??
Hi, I would like to create table in JSF like this
<table align="center"
width="250"
style="border-collapse: collapse; border: 1px black solid;" >
<tr>
<td align="center"
colspan="2"
style="border: 1px black solid;">
Header A
</td>
</tr>
<tr>
<td> a1 </td>
<td> a2 </td>
</tr>
<tr>
<td> b1 </td>
<td> b2 </td>
</tr>
<tr>
<td align="center"
colspan="2"
style="border: 1px black solid;" >
<BUTTON value="12" > button1 </BUTTON>
<BUTTON value="12"> button2 </BUTTON>
</td>
</tr>
</table>I don't know how to create borders like this with JSF's components.
I know how to create table and collspan, but I have a problem with
border and style.
below is example that I creat it, but borders are not OK
IF ANYONE FIND SOLUTION I WILL BE TANKFUL
JSF:
<hx:panelBox id="box1"
layout="pageDirection"
bgcolor="silver"
align="center"
style="border: 1px red solid;"
border="0">
<hx:panelBox id="box2" layout="pageDirection" width="100%" bgcolor="#aec74e" height="100%" align="center" style="border: 1px black solid;">
<center>
<h:outputText styleClass="outputText" id="text9" value="Prazniki"></h:outputText>
</center>
</hx:panelBox>
<h:panelGrid styleClass="panelGrid" id="grid1" columns="3">
<h:outputText styleClass="outputText" id="text4" value="#{msgs.planDan}">
</h:outputText>
<h:inputText styleClass="inputText" id="text3" value="#{pc_Koledar.praznikBean.dan}">
</h:inputText>
<f:verbatim></f:verbatim>
<h:outputText styleClass="outputText" id="text5" value="#{msgs.planMesec}">
</h:outputText>
<h:selectOneMenu styleClass="selectOneMenu" id="menu1" value="#{pc_Koledar.praznikBean.selectedMesec}">
<f:selectItems value="#{pc_Koledar.praznikBean.meseci}" />
</h:selectOneMenu>
<f:verbatim></f:verbatim>
<h:outputText styleClass="outputText" id="text6" value="#{msgs.planLeto}">
</h:outputText>
<h:inputText styleClass="inputText" id="text2" value="#{pc_Koledar.praznikBean.leto}">
</h:inputText>
<f:verbatim></f:verbatim>
<h:outputText styleClass="outputText" id="text7" value="#{msgs.nazivPraznika}">
</h:outputText>
<h:inputText styleClass="inputText" id="text1" value="#{pc_Koledar.praznikBean.nazivPraznika}">
</h:inputText>
<f:verbatim></f:verbatim>
</h:panelGrid>
<hx:panelBox id="box3"
align="center"
layout="lineDirection"
width="100%"
style="border: 1px black solid;" bgcolor="#aec74e">
<center>
<hx:commandExButton type="submit" value="Dodaj" id="button1" action="#{pc_Koledar.doButton1Action}" lang="CP1250">
</hx:commandExButton>
<hx:commandExButton type="submit" id="button3" action="#{pc_Koledar.doButton3Action}" value="Prika�">
</hx:commandExButton>
</center>
</hx:panelBox>
</hx:panelBox>Couldn't you use styleClass or id for CSS?
-
I am having problem with myfaces tomhawk components in a portal environment
They work fine as a standalone web application
When we make it a portlet, they render properly, but the pagination and links in the calendar components are not working
They submit the page to the server, but does nothingHi,
WLP 9.2 will be using the Sun RI for JSF portlets. We are going to certify with Apache MyFaces post GA.
The Beta drop of WLP 9.2 is coming soon and you will be able to do more around development.
We appreciate you taking the time to review the product and provide feedback.
Regards,
--alex -
Hello,
I have a problem with finishing my project which is based on JSF, Hibernate and EJB technologies. The matter is that I�ve built the application which manages a group of reports and assign sections and reports to the single user. I have two types of users, simple users and administrators. Simple user log in to the system and is able to generate reports which were assigned to him by admin. In the system can be more than just a one administrator. The problem is when one administrator is on-line and another log in to the system. Then both of them are working on the same instances of classes. In JSF files I�m working on created session beans which are defined in faces-config file. I�m new in JSF so maybe my attitude to this technology is not correct. If anyone know how to solve my problem please help me �
Regards
krabuAkash_Ganga wrote:
The same instance of LoginBean.class is used by both of administrators and this is the problem ...The above statement is wrong. There are two different sessions for the two users. You are probably seeing data because its persisted in the database by one user and when the next user logs in, the application fetches data from the DB and displays it. Its more of a design problem if you do not want the second user to see the data which the first user has entered.Akash,
I think we do not understand each other. My application is really simple. Simple user is able to see some links to reports when log in to the system or not. It depends on administrator which is able, in the form I've mentioned before, to assign the right to see a report by a user or not. I don't know what do you mean by saying "There are two different sessions for the two users".
To explain you what the problem is try to follow such a situation. Let say we have two classes : LoginBean.class and EditForm.class. Based on that classes we create two session beans : loginBean and editForm in faces-config file as follows:
<managed-bean>
<managed-bean-name>
loginBean</managed-bean-name>
<managed-bean-class>
log.LoginBean</managed-bean-class>
<managed-bean-scope>
session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>
editForm</managed-bean-name>
<managed-bean-class>
log.EditForm</managed-bean-class>
<managed-bean-scope>
session</managed-bean-scope>
</managed-bean> We have also created two JSF files, one login.jsf which include authorization component based on loginBean and second: editForm.jsf which include a SelectOneMenu component to choose a user and a form to assign selected user a report based on editForm bean.
We log in to the system as a administration. We are after authorization and enter the editForm.jsf file. We choose a user from SelectOneMenu component and make some changes in the form. But we do not submit anything and do NOT send it to the database. In this moment another administrator log-in, go to the editForm.jsf file and after that he sees that in his selectOneMenu component a user is chosen and the form is filled with data entered by prevoius administrator.
I'm new in JSF but I've thought that when I create a session bean a new instance of bean ( new instance of class ) is created for all users which try to use it, or maybe I'm doing something wrong or should write some additional code to achieve such a function ... -
Problem with JSF nad sessionid in URL
Hello,
I'm useing NetBeans with Tomcat (JSF), and I have a problem with URL. I don't know how to remove the following part of ULR: ";sessionid=#ED..." form my browser. It is a big problem with security.
Thanks for Your answersare you using the GET method? try using POST
-
CPU utilization problem with JSF
Hi,
I am using MyFaces 1.1.4 and tomahawk 1.1.3.
I am using EJB 2.0 and weblogic server 9.2
I have a problem with the performance of my application. The response time for 500 concurrent users is arnd 10sec. However, the CPU utilization normally hits *95-97%.*
I have disabled all the logging to reduce the file IO. Also, all the code has been optimised. Still the problem exists. Now, I cannot think of any way to overcome this. My project is getting delayed because of this.
Request you all to pls help.
Regards,
Milan.What type of server or servers are you using. I am assuming which I hate to do is that your EJB's are for CRUD and you a connection pool. Have tried to optimize the DB connection pool's ?.
-
Problem with JSF AJAX portlets
I am seeing the following issues with JSF portlets
1) When you AJAX enable the portlet, they will not work. There are some javascript errors on the component we are using. They work fine if we don't AJAX enable them
2) I had 2 portlets. 1 JSF and 1 pageflow portlet. If I click on a link in pageflow portlet and after the page gets refreshed, nothing will work in JSF potlet. Again javacript errors
If we had only 1 portlet on the page, JSF portlet works fine
Do you think the prototype javacript library used in the portal causing any issues?I tried with <naming:namingContainer> immediatly after the f:view tag , but still getting same errors
I am psoting the generated html and javascript error
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>New Portal Desktop</title><meta name="bea-portal-meta-skeleton" content="/framework/skeletons/default"><meta name="bea-portal-meta-skin" content="/framework/skins/default"><meta name="bea-portal-meta-skin-images" content="/framework/skins/default/images"><link rel="stylesheet" type="text/css" href="/sampleWeb/framework/skins/default/css/body.css"><link type="text/css" href="/sampleWeb/framework/skins/default/css/button.css" rel="stylesheet"><link href="/sampleWeb/framework/skins/default/alert/css/window-alert.css" rel="stylesheet" type="text/css"><link href="/sampleWeb/framework/skins/default/css/window.css" rel="stylesheet" type="text/css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/plain/css/window-plain.css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/css/portlet.css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/css/book.css"><link type="text/css" rel="stylesheet" href="/sampleWeb/framework/skins/default/css/layout.css"><link href="/sampleWeb/framework/skins/default/css/form.css" rel="stylesheet" type="text/css"><script src="/sampleWeb/framework/skins/shared/js/console.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/shared/js/cookies.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/shared/js/state.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/default/js/util.js" type="text/javascript"></script><script type="text/javascript" src="/sampleWeb/framework/skins/default/js/skin.js"></script><script src="/sampleWeb/framework/skins/default/js/menu.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/default/js/delete.js" type="text/javascript"></script><script src="/sampleWeb/framework/skins/default/js/float.js" type="text/javascript"></script><script type="text/javascript" src="/sampleWeb/framework/skins/default/js/menufx.js"></script>
</head>
<body
class="bea-portal-body"
onload="initSkin();"
><div class="bea-portal-body-content">
<div
class="bea-portal-body-header"
>
</div>
<div
class="bea-portal-book-primary"
>
<div class="bea-portal-ie-table-buffer-div">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="bea-portal-book-primary-menu-single-container" align="left" nowrap="nowrap">
<ul
class="bea-portal-book-primary-menu-single"
><li class="bea-portal-book-primary-menu-single-item">Page 1</li><li class="bea-portal-book-primary-menu-single-item">New Book</li><li class="bea-portal-book-primary-menu-single-item-active"><span>New Book</span></li></ul>
</td>
</tr>
</table>
</div>
<div
class="bea-portal-book-primary-content"
>
<div
class="bea-portal-book-invisible"
>
<div class="bea-portal-ie-table-buffer-div">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="bea-portal-book-menu-single-container" align="left" nowrap="nowrap">
<ul
class="bea-portal-book-menu-single"
><li class="bea-portal-book-menu-single-item-active"><span>New Page</span></li></ul>
</td>
</tr>
</table>
</div>
<div
class="bea-portal-book-content"
>
<div
class="bea-portal-book-page"
>
<table
class="bea-portal-layout-grid"
cellspacing="0"
>
<tr>
<td class="bea-portal-layout-placeholder-container"
width="30%"
>
<div
class="bea-portal-layout-placeholder"
>
<div
class="bea-portal-window"
width="100%"
>
<div
class="bea-portal-window-titlebar"
>
<div class="bea-portal-ie-table-buffer-div">
<table class="bea-portal-window-titlebar-container" cellspacing="0">
<tr>
<td class="bea-portal-window-titlebar-title" nowrap="nowrap">Untitled</td>
<td class="bea-portal-window-titlebar-buttons" nowrap="nowrap">
</td>
</tr>
</table>
</div>
</div>
<div
class="bea-portal-window-content"
>
<html>
<head>
</head>
<body>
<p>Beehive NetUI-JavaServer Faces Page - /sampleWeb/sample1/index.faces</p>
<form id="portletInstance_6:_id1" method="post" action="http://localhost:7001/sampleWeb/sample.portal?_nfpb=true&_windowLabel=portletInstance_6&_nffvid=%2FsampleWeb%2Fsample1%2Findex.faces&_pageLabel=defaultDesktopLabel_page_2" enctype="application/x-www-form-urlencoded">
<a href="# onclick="document.forms['portletInstance_6:_id1'['portletInstance_6:_id1:_idcl'].value='portletInstance_6:_id1:_id2'; document.forms['portletInstance_6:_id1'].submit(); return false;">sample</a>
<input type="hidden" name="portletInstance_6:_id1" value="portletInstance_6:_id1" /></form>
</body>
</html>
</div>
</div>
</div>
</td>
<td class="bea-portal-layout-placeholder-container"
width="70%"
>
<div
class="bea-portal-layout-placeholder"
>
<div
class="bea-portal-window"
width="100%"
>
<div
class="bea-portal-window-titlebar"
>
<div class="bea-portal-ie-table-buffer-div">
<table class="bea-portal-window-titlebar-container" cellspacing="0">
<tr>
<td class="bea-portal-window-titlebar-title" nowrap="nowrap">Untitled</td>
<td class="bea-portal-window-titlebar-buttons" nowrap="nowrap">
</td>
</tr>
</table>
</div>
</div>
<div
class="bea-portal-window-content"
>
<html>
<head>
</head>
<body>
<p>Beehive NetUI-JavaServer Faces Page - /sampleWeb/sample1/index.faces</p>
<form id="portletInstance_5:_id1" method="post" action="http://localhost:7001/sampleWeb/sample.portal?_nfpb=true&_windowLabel=portletInstance_5&_nffvid=%2FsampleWeb%2Fsample1%2Findex.faces&_pageLabel=defaultDesktopLabel_page_2" enctype="application/x-www-form-urlencoded">
<a href="#" onclick="document.forms['portletInstance_5:_id1']['portletInstance_5:_id1:_idcl'].value='portletInstance_5:_id1:_id2'; document.forms['portletInstance_5:_id1'].submit(); return false;">sample</a>
<input type="hidden" name="portletInstance_5:_id1" value="portletInstance_5:_id1" /><input type="hidden" name="portletInstance_5:_id1:_idcl" /></form>
</body>
</html>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div
class="bea-portal-body-footer"
>
</div>
</div></body>
</html>
Javascript error
Line: 292
Char: 1
Error: 'portletinstance_6_id1:_idcl' is null or not an object
Code: 0
URL: http://localhost:7001/sampleWeb/sample.portal?_nfpb=true&_windowLabel=
portletInstance_5&_nffvid=%2FsampleWeb%2Fsample1%2Findex.faces&_pageLabel=
defaultDesktopLabel_page_2 -
Problem with hello2 in the J2ee tutorial
Hi all:
I faced this problem when iam running the hello2 application I have followed the tutorial instructions and when i write the url in my browser http://localhost:8080/hello2/greeting but this error occur:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class servlets.GreetingServlet or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
java.lang.Thread.run(Thread.java:595)
root cause
java.lang.ClassNotFoundException: servlets.GreetingServlet
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1437)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
java.security.AccessController.doPrivileged(Native Method)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:272)
com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
java.lang.Thread.run(Thread.java:595)
note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs.
If any one can help i will be pleased..
Thanks all.Hello,
Are you sure that you performed all of step 5 in the instructions for packaging the example with deploytool?
Instead of using deploytool, you can also build, package, and deploy the example by running the following commands:
asant build
asant create-war
asant deploy-war
Try this method and see it works. This will be documented in the next version of the tutorial.
Jennifer -
Problem with policy file in Activatable tutorial
hi all,
i am just playing with the classes that comes with the RMITutorial.
i am actually trying to execute the code that comes with the 'Creating an Activatable Object' tutorial, but i am having a lot of problems due to the policy file.
First of all, i must say that i extracted all the classes in the directory d:\FalcoDevelopment;
all the files has been put in the following directory:
d:\FalcoDevelopment\examples\activation
In hte Setup.java class there is the following line of code:
props.put("java.security.policy", "examples/activation/policy");
when i have to run the Setup.class, i have to enter the following command
java -Djava.security.policy=/home/rmi_tutorial/activation/policy
-Djava.rmi.server.codebase=file:/home/rmi_tutorial/activation/ examples.activation.Setup
so, since i have to change to my own path,and since i am in the d:\FalcoDevelopment directory, i entered
java -Djava.security.policy=/examples/activation/policy -Djava.rmi.server.codebase=file:/d:/FalcoDevelopment/examples/activation/ examples.activation.Setup
when i then run the Client with the following command
java -Djava.security.policy=/examples/activation/policy
examples.activation.Client myhostname
it always return me a Security exception..
can anyone tell me what is the CORRECT path that i have to put for the above -D properties??
thanx in advance and regards
marcoHello,
I am having the same problem but to start with you are mixing up NT and UNIX things, like file paths
Other thing is you are using the tutorial given file paths. You must use your own file paths, as you have installed the classes.
I know its not much help, but still :0)
Kudos
ravi -
Problem with End to End JHeadstart Tutorial ( Error: No XMLProvider found )
Good day,
When executing the step-by-step tutorial as listed at:
http://www.oracle.com/technology/consulting/9iServices/jheadstart.html
, I am following the "End to End JHeadstart Tutorial" ( http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html ):
I am getting an error "Error: No XMLProvider found" for C:\MyDemo\ViewController\public_html\WEB-INF\page\Employees5Table.uix at step 1d when I try to run the application at point 1d of the tutorial.
The particular file Employees5Table.uix has been generated in step 1c by doing a Run JHeadstart Application Generator for the ' Application Structure File' .
Can anybody provide me more information?
Regards,
MikeProblem solved by using release 1!
I was using JDeveloper 10.1.2.1.0.1913 (JDeveloper 10.1.2 release 2, build 1913) instead of system10.1.2.0.0.1811 (JDeveloper 10.1.2 release 1, build 1811).
When I did it againg with the release 1 version, build 1811 the problem did not occure. The JHeadstart version was the same.
Looks like a bug to me in in release 2. -
Problem with Master-Detail web page tutorial
My student asked me about this problem:
I just completed the following Master-Detail tutorial...
http://www.oracle.com/technology/products/jdev/collateral/4gl/HO_Workshop/hos1_1/HOS1_1_ADF_Forms_Designer.pdf
... The problem here is that when I try to define Order By CUSTOMER_ID in CustomersView the App Module test and the application both fail...
JBO-30003: The application pool (model.OrderEntryAMLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.domain.DataCreationException, msg=JBO-25029: Data class (a domain?) String not found at oracle.jbo.JboException.<init>(JboException.java:343) at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1772) at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2611)
(etc...)
Note that I can define Order By ORDER_ID in OrdersView without problems.Thanks Frank... I had entered just CUSTOMER_ID as you said. After trying this, the App Module is "permanently" broken. It will not work again even if I remove the Order By entry. I was able to use Order By ORDER_ID successfully in the OrdersView. The Order By is not part of the tutorial, but I wanted to use it because I would if this was a real application.
Message was edited by:
user463505 -
Problem with 10.13 web services tutorial
I have just tried to complete the following oracle tutorial Developing, Deploying and Managing Web Services Using JDeveloper and Oracle Application Server that is available here http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm.
I have successfully completed the first 10 steps without any problems and the class compiles, but when I reach step 5 of the second section entitled Creating a Web Service on the Java Class I can not progress any further.
Step 5 states:
On the methods page of the wizard, select the check boxes next to both methods from teh available methods and click finish.I can not do this because both of the check boxes are greyed out and not active. The only thing I can select is the why not? button. Upon pressing this I get the following message The class datapackage.GetDates contains compilation errors which means the validity of the methods could not be determined .
I can not understand why I am getting this message as I have followed the tutorial through up until this point exactly.
I am using JDeveloper 10.1.3.0.4 (SU4) Build JDEVADF_10.1.3_NT_060125.0900.3673
A colleague of mine has also tried to complete the tutorial and is having the same problem as me.
I'd appreciate your thoughts and suggestions in fixing this problem.
Thanks in advance
DavidHi Sunil,
I am not experiencing any compilation errors - that is why I am confused.
the class compiles without any problems as per the instructions
Compiling...
C:\JDev1013\jdk\jre\bin\java.exe -jar C:\JDev1013\jdev\lib\ojc.jar -noquiet -warn -nowarn:320 -nowarn:486 -nowarn:487 -deprecation:self -nowarn:560 -nowarn:704 -nowarn:489 -nowarn:415 -nowarn:909 -nowarn:412 -nowarn:414 -nowarn:561 -nowarn:376 -nowarn:371 -nowarn:558 -nowarn:375 -nowarn:413 -nowarn:377 -nowarn:372 -nowarn:557 -nowarn:556 -nowarn:559 -source 1.5 -target 1.5 -encoding Cp1252 -g -d C:\dev\java\1013\JavaWebService\GetDates\classes -make C:\dev\java\1013\JavaWebService\GetDates\classes\GetDates.cdi -classpath C:\JDev1013\jdk\jre\lib\rt.jar;C:\JDev1013\jdk\jre\lib\i18n.jar;C:\JDev1013\jdk\jre\lib\sunrsasign.jar;C:\JDev1013\jdk\jre\lib\jsse.jar;C:\JDev1013\jdk\jre\lib\jce.jar;C:\JDev1013\jdk\jre\lib\charsets.jar;C:\JDev1013\jdk\jre\classes;C:\dev\java\1013\JavaWebService\GetDates\classes -sourcepath C:\dev\java\1013\JavaWebService\GetDates\src;C:\JDev1013\jdk\src.zip C:\dev\java\1013\JavaWebService\GetDates\src\datespackage\GetDates.java
[13:00:49] Successful compilation: 0 errors, 0 warnings.The problem I am getting is that tick boxes which the instructions state to tick in step 5 of the second section entitled creating a web service on the java class are greyed out and not active.
Any ideas???
Thanks
David
Maybe you are looking for
-
I have reinstalled Itunes 10.4 .1 10. windows says drivers are not installed. I have followed all trouble shooting advice, fixes and updates for windows 7
-
Replacing download with gui_download
Hi, as part of upgradation i am trying to replace Download fm with Gui_download but the problem is in download function i have exp parameter filemask_mask but its not available in gui_download. Is there any way to down load? Please help me out!
-
Hi everyone, I am using an Indesign CS5.5 and I'm creating interactive layouts for iPad and what I want to create is the transition fading effect that requires two pictures / objects. When using an iPad, after I tap the 1st picture it will go to the
-
AVI to QT movie conversion size difference
I was trying to convert an AVI that is 33MB large into a QT file using the h.264 codec. I was suprised when the resulting video was 108.6mb large. Is this normal? Is the QT file supposed to be that much larger than the original source AVI? I viewed t
-
How to run Enlightenment 19 with Wayland?
Sorry for being such a terrible n00b, but I would like to try running E19 through wayland rather than X since it has full wayland support now, just to see whether or not my laptop will explode. I'm running the radeon open source driver, I've installe