14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the radio button “Specify Host Name” and set the value to “localhost”. Usually the<br />

browser is then able to find the local machine.<br />

4.6.2. Dealing with Code Segment Too Large Error<br />

If you have generated large pages, with many groups on the same page, and/or groups<br />

with many items, compilation of such a page might fail with an error like this:<br />

Error: code segment of method _jspService(javax.servlet.http.HttpServletRequest,<br />

javax.servlet.http.HttpServletResponse) too large<br />

This error is caused by a limitation in the Java language. The content of a Java method<br />

cannot be larger than 64KB. With a very large JSF page, the compiled servlet might get a<br />

method (like _jspService) that is too big to be compiled.<br />

<strong>JHeadstart</strong> provides an easy work around for this error: you can move part of the content<br />

of the page to separate ADF Faces region files that are included in the orginal page at<br />

runtime, very similar to the concept of a JSP Include. The look and feel and behavior of<br />

the page remains unchanged, only the way the page is composed at runtime is different.<br />

You can use three properties in the Application Definition Editor to determine which<br />

part of the page is generated into a separate ADF Faces Region:<br />

• Group property Generate Group in Region File?<br />

• Group property Generate Search Area in Region File?<br />

• Item Group Region property Generate in Region File?<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Using the <strong>JHeadstart</strong> Addins 4 - 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!