• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JSF subview problem

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.
I am using JSF 1.0 final and tomcat 5.0
I have two jsp file
first jsp file "testform.jsp" contains:

<HTML>
<HEAD>
<title>Test Form</title>
<STYLE TYPE="text/css">
</HEAD>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<body bgcolor="white">
<f:view>
<h:form>
<jsp:include page="QA_AEC_form.jsp"/>
</h:form>
</f:view>
</body>
</HTML>


the second jsp file "QA_AEC_form.jsp" contains:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<f:subview id="QA_AEC_FORM">
<table>
<tr>
<td align="right">Tube room</td>
<td align="left">
<h:selectOneMenu id="tuberoom" value="">
</h:selectOneMenu>
</td>
</tr>
<tr>
<td align="right">tube name</td> <td align="left">some tube name</td>
</tr>
<tr>
<td align="right">tube model</td> <td align="left">some tube model</td>
</tr>
<tr>
<td align="right">processor name</td>
<td align="left">
<h:selectOneMenu id="processorname" value="">
</h:selectOneMenu>
</td>
</tr>
</table>
</f:subview>

when i call testform.jsp on internet explorer

this is th sourc of the rendered page:

<HTML>
<HEAD>
<title>Test Form</title>
<STYLE TYPE="text/css">
</HEAD>



<body bgcolor="white">

<form id="_id0" method="post" action="/qaddsv2/faces/testform.jsp" enctype="application/x-www-form-urlencoded">

<select id="_id0:QA_AEC_FORM:tuberoom" name="_id0:QA_AEC_FORM:tuberoom" size="1"></select><select id="_id0:QA_AEC_FORM rocessorname" name="_id0:QA_AEC_FORM rocessorname" size="1"></select>



<table>
<tr>
<td align="right">Tube room</td>
<td align="left">


</td>
</tr>
<tr>
<td align="right">tube name</td> <td align="left">some tube name</td>
</tr>
<tr>
<td align="right">tube model</td> <td align="left">some tube model</td>
</tr>
<tr>
<td align="right">processor name</td>
<td align="left">


</td>
</tr>
</table>

<input type="hidden" name="_id0" value="_id0" /></form>

</body>
</HTML>

My question is why is this happening and how can i fix it?
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Struts and Other Frameworks forum where frameworks such as JSF are discussed.
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic