Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dynamic jsf execution & display order

843844Jan 13 2008 — edited Jan 13 2008
Hi to all,


I have a jsp page container, say default.jsp, with a dynamic area within it that loads according to certain parameters using a <jsp:include> statement (areaPage.jsp).

areaPage.jsp is not a standalone page, and is defined as follows:
<%-- jsf:pagecode language="java" location="/JavaSource/pagecode/areaPage.java" --%>
<%-- /jsf:pagecode --%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<table>
  <tr>
    <td><div align="center"><img src="a.jpg" /></div></td>
    <td><div align="center">
        <h:commandLink>
   	<h:graphicImage value="b.jpg"  id="a" />
	<f:param name="param1" value="x.jsp" />
        </h:commandLink>
    </div></td>
  </tr>
</table>
The problem is that when default.jsp is rendered, the jsf part of areaPage.jsp gets rendered before the other html tags, and <h:commandLink> gets translated to an <a> tag preceding the <table> that is supposed to contain it.
Can anyone help me on this?

Many thanks,
Mobal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2008
Added on Jan 13 2008
2 comments
248 views