JAI - problem displaying additional pages from multi-page image

Hi,
I have 10 page multipage tiff images. And i would like to show the images one-by-one on a ScrollingImagePanel.
I have a Main frame with two panels. Panel1 which shows the ScrollingImagePanel.
And Panel2 has two buttons. LOAD Button show the 1st page on the ScrollingImagePanel.
And NEXT button is suppose to show the 2nd page and continue until the end of the multipage images.
I am having problem with the NEXT button. I wrote a program that show the page number and page height
on the output screen. It shows the page# and different heights. But it would not show the images on the ScrollingImagePanel.
It just shows the 1st page. I would appreciate if you can help me out with this problom.
Please find the code which is written in JBuilder.
// Main class
package untitled1;
import java.awt.*;
import javax.swing.UIManager;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.awt.Frame;
import java.awt.image.RenderedImage;
import javax.media.jai.widget.ScrollingImagePanel;
import javax.media.jai.NullOpImage;
import javax.media.jai.OpImage;
import com.sun.media.jai.codec.SeekableStream;
import com.sun.media.jai.codec.FileSeekableStream;
import com.sun.media.jai.codec.TIFFDecodeParam;
import com.sun.media.jai.codec.ImageDecoder;
import com.sun.media.jai.codec.ImageCodec;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
public class Application1 {
boolean packFrame = false;
//Construct the application
public Application1() {
Frame2 frame = new Frame2();
frame.setSize(820,700);
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their layout
if (packFrame) {
frame.pack();
else {
frame.validate();
//Center the window
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frame.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
frame.setVisible(true);
//Main method
public static void main(String[] args) {
new Application1();
// Frame2 Class
package untitled1;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.UIManager;
import java.io.File;
import java.io.IOException;
import java.awt.Frame;
import java.awt.image.RenderedImage;
import javax.media.jai.widget.ScrollingImagePanel;
import javax.media.jai.NullOpImage;
import javax.media.jai.OpImage;
import com.sun.media.jai.codec.SeekableStream;
import com.sun.media.jai.codec.FileSeekableStream;
import com.sun.media.jai.codec.TIFFDecodeParam;
import com.sun.media.jai.codec.ImageDecoder;
import com.sun.media.jai.codec.ImageCodec;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.*;
import java.awt.image.renderable.ParameterBlock;
import javax.media.jai.*;
import javax.media.jai.widget.*;
import com.sun.media.jai.codec.*;
import java.util.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
public class Frame2 extends Frame {
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
JButton loadButton = new JButton();
public static ScrollingImagePanel panel, panels;
JButton nextButton = new JButton();
public String filename= "144.tif";
public File file;
public SeekableStream s;
public ImageDecoder dec;
protected int imageWidth, imageHeight;
public int nextpage = 1;
public RenderedOp image2 = null;
public RenderedImage op = null;
//Frame Constructor
public Frame2() {
try {
jbInit();
catch(IOException e) {
e.printStackTrace();
private void jbInit() throws IOException {
this.setLayout(null);
this.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(WindowEvent e) {
this_windowClosing(e);
jPanel1.setBackground(Color.white);
jPanel1.setBorder(BorderFactory.createLineBorder(Color.black));
jPanel1.setBounds(new Rectangle(1, 7, 816, 648));
jPanel1.setLayout(null);
jPanel2.setBackground(Color.lightGray);
jPanel2.setBorder(BorderFactory.createLineBorder(Color.black));
jPanel2.setBounds(new Rectangle(1, 657, 816, 42));
loadButton.setText("Load");
loadButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
try{                          
loadButton_actionPerformed(e);
catch(IOException IOE){
System.out.println(IOE);
nextButton.setText("Next");
nextButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
nextButton_actionPerformed(e);
catch(IOException IOE){
System.out.println(IOE);
this.setResizable(false);
this.add(jPanel1, null);
this.add(jPanel2, null);
jPanel2.add(loadButton, null);
jPanel2.add(nextButton, null);
void this_windowClosing(WindowEvent e) {
System.exit(0);
//Load Image Button
void loadButton_actionPerformed(ActionEvent e) throws IOException { 
file = new File(filename);
s = new FileSeekableStream(file);
dec = ImageCodec.createImageDecoder("tiff", s, null);
RenderedImage op =
new NullOpImage(dec.decodeAsRenderedImage(),
null,
OpImage.OP_IO_BOUND,
null);
Interpolation interp = Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
ParameterBlock params = new ParameterBlock();
params.addSource(op);
params.add(0.55F); // x scale factor
params.add(0.335F); // y scale factor
params.add(0.00F); // x translate
params.add(0.00F); // y translate
params.add(interp); // interpolation method
image2 = JAI.create("scale", params);
int width = (int)(image2.getWidth() * .73);
int height = (int)(image2.getHeight() * .73);
panel = new ScrollingImagePanel(image2, 819, 648);
jPanel1.add(panel);
this.setVisible(true);
//Next Image Button
void nextButton_actionPerformed(ActionEvent e) throws IOException {
TIFFDecodeParam param = null;
file = new File(filename);
s = new FileSeekableStream(file);
dec = ImageCodec.createImageDecoder("tiff", s, param);
nextpage++;
System.out.println(nextpage);
RenderedImage op1 =
new NullOpImage(dec.decodeAsRenderedImage(nextpage),
null,
OpImage.OP_IO_BOUND,
null);
Interpolation interp = Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
ParameterBlock params = new ParameterBlock();
params.addSource(op1);
params.add(0.55F); // x scale factor
params.add(0.335F); // y scale factor
params.add(0.00F); // x translate
params.add(0.00F); // y translate
params.add(interp); // interpolation method
image2 = JAI.create("scale", params);
int width = (int)(image2.getWidth() * .73); //1.03);
int height = (int)(image2.getHeight() * .73); //1.03);
panels = new ScrollingImagePanel(image2, width, height);
System.out.println(op1.getHeight());
jPanel1.add(panels);
this.setVisible(true);
thanks in advance

Take a look at this code.
//Search the Policynumber
void searchButton_actionPerformed(ActionEvent e) {
try{
nextButton.setEnabled(false);
previousButton.setEnabled(false);
String query = "SELECT * FROM PINFO WHERE POLICYNUMBER = '" +
searchTextfield.getText().toUpperCase() + "'";
ResultSet rs = Application1.stmt.executeQuery(query);
while(rs.next()){
pid = (rs.getInt("PID"));
policynumber = rs.getString("POLICYNUMBER");
firstName = rs.getString("FIRSTNAME");
lastName = rs.getString("LASTNAME");
jLabel2.setText(policynumber);
jLabel3.setText(firstName);
jLabel4.setText(lastName);
catch(SQLException ex){
System.err.println("SQLException: " + ex.getMessage());
try{
String query = "SELECT * FROM (UNMATCH U LEFT JOIN DOCUMENTTYPE D ON U.DOCUMENTTYPE=D.DOCNUMBER) WHERE PID = '" + pid + "' ORDER BY D.DOCUMENTCODE";
ResultSet rs1 = Application1.stmt.executeQuery(query);
clearJList();
v.removeAllElements();
jList1.setListData(v);
v1.clear();
while(rs1.next()){
documentcode = rs1.getString("DOCUMENTCODE");
uindex = rs1.getString("UINDEX");
v.add(documentcode);
v1.add(uindex);
jList1.setListData(v);
clearTextfield();
catch(SQLException s){
System.err.println("SQLException: " + s.getMessage());
public void clearJList(){
jList1.setListData(v);
public void clearTextfield(){
searchTextfield.setText("");
// ****** Loads the selected Image
void jList1_mouseClicked(MouseEvent e){
try{
vector.clear();
nextpage = 1;
currentpage = 1;
nextButton.setEnabled(true);
previousButton.setEnabled(false);
if (spane != null)
jPanel1.removeAll();
seek = null;
String query1 = "SELECT * FROM UNMATCH WHERE UINDEX = '" + v1.get(jList1.getSelectedIndex()).toString() + "'";
rs2 = Application1.stmt.executeQuery(query1);
while (rs2.next()){
stream = rs2.getBinaryStream("IMAGE");
seek = new MemoryCacheSeekableStream(stream);
TIFFDecodeParam param = null;
dec = ImageCodec.createImageDecoder("tiff", seek, param);
try{
totalPages = dec.getNumPages();
jLabel1.setText("Page 1 of "+totalPages);
if (nextpage==totalPages)
nextButton.setEnabled(false);
op1 =
new NullOpImage(dec.decodeAsRenderedImage(nextpage-1),
null,
OpImage.OP_IO_BOUND,
null);
vector.addElement(op1);
// ParameterBlock params = new ParameterBlock();
// params.addSource(op1);
// panel = new DisplayJAI(op1);
panel = new DisplayJAI((RenderedImage)vector.elementAt(0));
spane = new JScrollPane(panel);
jPanel1.add(spane);
jPanel1.validate();
this.setVisible(true);
catch(IOException dfs){
} // while
} // try
catch(SQLException s){
System.err.println("SQLException: " + s.getMessage());
// Next Image
void nextButton_actionPerformed(ActionEvent e) {
try{
if (spane != null)
jPanel1.removeAll();
++nextpage;
if (nextpage==totalPages)
nextButton.setEnabled(false);
previousButton.setEnabled(true);
jLabel1.setText("Page " + nextpage +" of "+totalPages);
TIFFDecodeParam param = null;
dec = ImageCodec.createImageDecoder("tiff", seek, param);
currentpage = nextpage;
ParameterBlock paramblock = new ParameterBlock();
paramblock.addSource(op1);
vector.addElement(new NullOpImage(dec.decodeAsRenderedImage(nextpage-1),
null,
OpImage.OP_IO_BOUND,
null));
panel = new DisplayJAI((RenderedImage)vector.elementAt(currentpage-1));
// panel = new DisplayJAI(op1);
spane = new JScrollPane(panel);
jPanel1.add(spane);
setVisible(true);
catch(IOException o){
System.out.println(o);
finally{
// PreviousButton
void previousButton_actionPerformed(ActionEvent e) {
try{
if (spane != null)
jPanel1.removeAll();
--nextpage;
if (nextpage==1)
previousButton.setEnabled(false);
nextButton.setEnabled(true);
jLabel1.setText("Page " + nextpage +" of "+totalPages);
TIFFDecodeParam param = null;
dec = ImageCodec.createImageDecoder("tiff", seek, param);
currentpage = nextpage;
vector.addElement(new NullOpImage(dec.decodeAsRenderedImage(nextpage-1),
null,
OpImage.OP_IO_BOUND,
null));
panel = new DisplayJAI((RenderedImage)vector.elementAt(currentpage-1));
spane = new JScrollPane(panel);
jPanel1.add(spane);
setVisible(true);
catch(IOException o){
System.out.println(o);
// Zoom ComboBox Item Select
void jComboBox1_itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.DESELECTED)
if (spane != null)
jPanel1.removeAll();
Interpolation interp = Interpolation.getInstance(Interpolation.INTERP_BICUBIC);
ParameterBlock params = new ParameterBlock();
params.addSource(op1);
params.add(Float.valueOf(jComboBox1.getSelectedItem().toString()).floatValue()/100.0f);
params.add(Float.valueOf(jComboBox1.getSelectedItem().toString()).floatValue()/100.0f);
params.add(0.0F);
params.add(0.0F);
params.add(interp);
// image2 = JAI.create("scale",params);
vector.add(currentpage-1,JAI.create("scale",params));
panel = new DisplayJAI((RenderedOp)vector.elementAt(currentpage-1));
spane = new JScrollPane(panel);
jPanel1.add(spane);
jPanel1.validate();
this.setVisible(true);
repaint();
// Rotate ComboBox Item Select
void jComboBox2_itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.DESELECTED)
if (spane != null)
jPanel1.removeAll();
type =null;
type = transposeTypes[jComboBox2.getSelectedIndex()];
ParameterBlock pb = new ParameterBlock();
pb.addSource((RenderedImage)vector.elementAt(currentpage-1));
pb.add(type);
PlanarImage im2 = JAI.create("transpose", pb, renderHints);
vector.add(currentpage-1,im2);
panel = new DisplayJAI((RenderedOp)vector.elementAt(currentpage-1));
spane = new JScrollPane(panel);
jPanel1.add(spane);
jPanel1.validate();
this.setVisible(true);
void printButton_actionPerformed(ActionEvent e) {
print();
protected void print() {
PrinterJob pj = PrinterJob.getPrinterJob();
pj.setPrintable(this);
// PageFormat format = pj.pageDialog(pj.defaultPage());
// Book bk = new Book();
// bk.append(this,pj.defaultPage());
// pj.setPageable(bk);
if(pj.printDialog()){
try{
pj.print();
catch(Exception e){
System.out.println(e);
else{
System.out.println("Did Not Print Any Pages");
public int print(Graphics g, PageFormat f, int pageIndex){
if(pageIndex >= 1){
return Printable.NO_SUCH_PAGE;
Graphics2D g2d = (Graphics2D) g;
g2d.translate(f.getImageableX(), f.getImageableY());
if(op1 != null){
double scales = Math.min(f.getImageableWidth()/ op1.getWidth(), f.getImageableHeight()/ op1.getHeight());
g2d.scale(scales,scales);
printImage(g2d, op1);
return Printable.PAGE_EXISTS;
else{
return Printable.NO_SUCH_PAGE;
public void printImage(Graphics2D g2d, RenderedImage image){
if((image == null)|| (g2d == null)) return;
int x = printLoc.x;
int y = printLoc.y;
AffineTransform at = new AffineTransform();
at.translate(x,y);
g2d.drawRenderedImage(image,at);
public void setPrintLocation(Point d) {
printLoc = d;
public Point getPrintLocation() {
return printLoc;

Similar Messages

  • Problem while passing parameter from standard page to custome page

    Hi,
    We are calling a custom page from standard page.
    Standard page Extended CO
    PR
    String wcHeader = pageContext.getParameter("WcHeaderId");
    pageContext.putTransactionTransientValue("WcHeaderId",wcHeader);
    PFR
    String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
    pageContext.putTransactionTransientValue("WcHeaderId",wcHeader);
    Till here we are able to put the Parmeter in Tranasction
    After calling the custom page from standard page while we are using the Transaction value it is returning null.
    Custom page CO
    PR
    String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
    we are getting nulll here.
    Please provide the solution for this
    Thanks,
    Narayana

    Hi Meher Irk,
    i got WcHeaderid value in Custom CO. but i want to set value Custome page to Standard page in custom page i have a total value this value i want to set to Standard page.
    Custom CO code
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package xxbb.oracle.apps.pos.xxwc.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import xxbb.oracle.apps.pos.xxwc.server.WithholdAMImpl;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.cabo.ui.validate.Formatter;
    import oracle.apps.fnd.framework.webui.OADecimalValidater;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.*;
    import oracle.apps.fnd.framework.webui.*;
    import oracle.apps.fnd.framework.webui.beans.table.OATableFooterBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.server.OAViewRowImpl;
    import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
    import oracle.jbo.domain.Number;
    import java.util.Enumeration;
    import oracle.apps.pos.wc.webui.WcRespondCO;
    //import oracle.apps.pos.wc.webui.*;
    * Controller for ...
    public class WithholdCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String wcHeader=new String();
    Formatter formatter=new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    OAColumnBean columnBean=(OAColumnBean)webBean.findIndexedChildRecursive("Amountcol");
    columnBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR,formatter);
    //String wcHeader=(String)pageContext.getTransactionTransientValue("WcHeaderId");
    pageContext.writeDiagnostics(this,"zzzzzz"+wcHeader,1);
    if(pageContext.getSessionValue("WcHeaderId") != null&& !pageContext.getSessionValue("WcHeaderId").equals(""))
    wcHeader=pageContext.getSessionValue("WcHeaderId").toString();
    pageContext.writeDiagnostics(this,"If get session condition "+wcHeader,1);
    /* OAMessageTextInputBean item=(OAMessageTextInputBean)webBean.findIndexedChildRecursive("item3");
    item.setValue(pageContext,"10");*/
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if("AdvancedRN".equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    am.invokeMethod("xxInsertRow");
    // am.xxInsertRow();
    if(pageContext.getParameter("Save")!=null)
    am.invokeMethod("xxSaveTransaction");
    am.invokeMethod("xxUnitotal");
    OAViewObject vo = (OAViewObject)am.findViewObject("TotalVO1");
    vo.reset();
    vo.next();
    OARow totRow = (OARow)vo.getCurrentRow();
    Number total = (Number)totRow.getAttribute("Total");
    throw new OAException("Records Saved Successfully",OAException.CONFIRMATION);
    if(pageContext.getParameter("Delete")!=null)
    am.invokeMethod("xxDeleteRow");
    am.invokeMethod("xxSaveTransaction");
    //am.xxDeleteRow();
    // am.xxSaveTransaction();
    throw new OAException("Records Deleted Successfully",OAException.CONFIRMATION);
    if(pageContext.getParameter("Close")!=null)
    pageContext.setForwardURL("OA.jsp?page=/oracle/apps/pos/wc/webui/WcRespondPG&param=FrmWithHoldPG"
    ,null
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,null
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    Thanks,
    Narayana

  • How do I copy a page from one Pages document to another using Pages 5.0?

    I posted this question on another page, and haven't recieved an answer to it yet. However I have found a temporary solution, so I am posting this here in case anyone else has a similar problem.
    The issue here is that I have just upgraded from Snow Leopard to Maverick (10.9.1), and my Pages also upgraded (to 5.0.1), altering my Pages documents. This is the issue, as as far as I can see the new Pages does not offer some of the basic needs that the old Pages did! In other words it is worse than the previous version.
    Using the upgraded new Pages 5.0.1 seems to result in some major editing problems for me. If you upgrade, make sure you KEEP the old version of Pages 09 (v 4.3). That is what has saved me!  If you have the same problems I have had - explained below, you will still be able to close the new version and open your Pages document in the old version, provided it is not a new Pages document. If it is, it will be possible to export it as a Pages 09 document and edit properly.
    After upgrading to the new Pages 5.0.1, when I open documents in Pages and try and copy a section from one document to another (easy before using the thumbnails) many of the Menu items previously available are visible but appear faded and are not possible, including Insert>Section Break/Page Break/Page Number and Edit>Cut/Copy/Delete/Undo/Redo
    This even happens if I duplicate the Pages document and try and do any of these from the Duplicate (which should be an easily editable copy).
    My solution has been to simply open all Pages documents that Iwant to edit (or may want to edit in future) in the old Pages app (v 4.3), which I never got rid of. That has meant I can continue editing and copying a section (of 1 or more pages) from one Pages document to another.
    If anyone reading this has figured out a way to edit Pages documents using the new version 5.0.1 please post an explanation, and I will try it!

    And there are those who don't like me repeating the same message over and over again in this forum!
    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • Giving Error while forwarding a page from another page

    Hi I am getting below error while forwarding a page from another page.
    Please reply as i am new to OA frame work.
    oracle.apps.fnd.framework.OAException: No data found for region (/mhe/oracle/apps/ak/susanta/webui/EmployeeUpdatePG).
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:519)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3782)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3459)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /mhe/oracle/apps/ak/susanta/webui/EmployeeUpdatePG, XML Path = C:\Soumya\JDeveloper9\jdevhome\jdev\myclasses\JRADXML;C:\Soumya\JDeveloper9\jdevhome\jdev\myprojects;C:\Soumya\JDeveloper9\jdevbin\jdev\oamdsxml\fwk. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1343)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:493)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3782)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3459)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Exception:
    oracle.adf.mds.MetadataDefException: Unable to find component with absolute reference = /mhe/oracle/apps/ak/susanta/webui/EmployeeUpdatePG, XML Path = C:\Soumya\JDeveloper9\jdevhome\jdev\myclasses\JRADXML;C:\Soumya\JDeveloper9\jdevhome\jdev\myprojects;C:\Soumya\JDeveloper9\jdevbin\jdev\oamdsxml\fwk. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1343)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:493)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3782)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3459)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    refer http://prasanna-adf.blogspot.com/2008/02/deploying-oafwk.html
    to know about how to import the PG into the instance..
    --Prasanna                                                                                                                                                                                                                                                                                       

  • Copy a page from one page group to another

    Hi
    Is it possible to copy a page from one page group to another?
    Regards,
    Lene

    Hi ,
    Through Portal it is not possible to copy a page from one page group to another .
    There is a feature in Portal WebDav .
    Through a DAV client you can copy page to your local system as a folder and then drag the page to the pagegroup you want to copy .
    Regards
    Medini

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • Controlling order/frequency of pages in multi page report.

    I'm rewording my question and subject so hopefully it will draw in the right person to help me.
    I have a PO report that needs to have a 'Terms and Conditions' page print after each PO number. That means if I print a one page PO or a five page PO, the 'Terms and Conditions' should print after the last page of each, before the next PO is generated. I don't remember how to control pages like this. I did a report once that would generate up to 9 different pages, depending on how many lines printed in different parts of the first page. I was using format triggers then, but unfortunately don't have a copy of that report to remind me how I did it. So how do I tell the reports, ok, you've come to the last page of this PO, generate the Terms page now before beginning the next PO.
    Thanks for any help you may be able to give.
    Kurt

    Andrew,
    That would work great except I need to maintain the margin around the main part of the report that tracks the totals. If I place the 'T&C' of the report in the frame, I'll end up with the page totals printing at the bottom of the 'T&C'. In other instances like this, I'd move the totals from the margin into the main part of the report. Due to the nature of this report, it would be a huge undertaking for me to try to reconfigure things. I know there are ways to force pages from other pages. Any other ideas come to mind?
    Thanks.
    Kurt

  • How to call & pass values to custom page from seeded page table region

    Hi All,
    can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
    it is urgent. plssss
    Regards,
    purna

    Hi,
    Yes, we do this by extending controller, but you can also try this without extending controller.
    1. Create Submit Button on TableRN using personalization.
    2. Set "Destination URI" property to like below
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
    Give your custom page path instead of EmpDetailsPG.
    EmployeeId and EmployeeName are VO attributes(Table Region)
    If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
    In this case, only personalization will do our job. Hope it helps.
    Thanks,
    Venkat Y.

  • In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    I attached a .doc file to the message and it appeared as an icon, so I did not have to convert it. I attached a .jpg image — it appeared as a full image, but when I Command+clicked the image, the view as icon window did not appear on the screen. Likewise, I again checked the Mail Menu Bar, and did see 'View as icon.' Side note: I routinely use Mavericks Mail in Classic Mode, so I decided to try both modes. Same results in both modes. I checked my Mail Preferences, but couldn't find anything there, either. I'll continue to look around, but this has me stumped. Thanks for your assistance.  

  • Page length problem in PDFs generated from HTML pages in Acrobat

    I just spent an exhausting 2-1/2 hours on the phone with Adobe tech support (offshore) in order to get a 5 minute fix. I figured that I'd document it here in case another user has the same problem. (I'd checked the forums and a few e-mail lists and hadn't found a solution.)
    When generating PDFs from HTML (Web) pages, Acrobat squeezed all of the text into the middle of a single page (with just the last inch or so of text on page 2). This resulted in pages that Acrobat identified as being 30", 40", even 60" long, and the printed results were unusable. I haven't been able to identify an event or a system change that caused this to happen; Acrobat had been generating PDFs properly before this trouble started.
    THE FIX:
    1. Start Acrobat and run the Repair Installation option from the Help menu.
    2. Go to C:\Documents and Settings\user\Application Data\Adobe\Acrobat\8.0
    and rename the Preferences file to PreferencesOld. A PC restart will be
    required after this change.
    3. Restart Acrobat. This creates a fresh Preferences folder.
    4. Test creating PDFs from a single HTML page and from multiple pages.

    Thanks, Bernd, but where are these settings?  While I'm writing, is there a setting to make an html file fit on one page in Acrobat?

  • Is the PSD created from Multi-page PDF to PSD different from one created using File- Open?

    My printer is telling me that a PSD created using the Automate->Multi-page PDF to PSD is different from one created by using File->Open. Does anyone know if this is true? If so, why?

    CMD I on the .ai file
    Change open with to AICS6
    Click Change All

  • Problem with return link from html page back to css page

    Here is the site..almost ready for publication
    http://www.matriley.com/glensite/index.html
    1) Go to properties for sale
    2)Choose a suberb
    3)click on a property with a video
    4) watch the crazy video if you like
    5) Click go back to properties
    ^) Yes the page is there but the property page is now
    inactive...why?
    8)The whole thing works fine on Firefox but we do have this
    Glitch on IE
    PLEAASSE Can someone help
    Regards Matthew [email protected]
    Everything works well but for the problem return link to the
    properties page after you have gone to the video.The property page
    becomes inactive

    Your page is a monster -
    Empty Cache
    10.6K 1 HTML/Text
    1.5K 1 Stylesheet File
    985.4K 25 Images
    997.7K Total size
    27 HTTP requests
    25 images with aggregate weight of ~1MB is much too large,
    you know?
    Anyhow, I cannot reproduce your problem in IE7. Are you
    referring to IE6,
    instead?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "fredbillmatt" <[email protected]> wrote in
    message
    news:fv0m9k$a7a$[email protected]..
    > Here is the site..almost ready for publication
    >
    http://www.matriley.com/glensite/index.html
    >
    > 1) Go to properties for sale
    > 2)Choose a suberb
    > 3)click on a property with a video
    > 4) watch the crazy video if you like
    > 5) Click go back to properties
    > ^) Yes the page is there but the property page is now
    inactive...why?
    > 8)The whole thing works fine on Firefox but we do have
    this Glitch on IE
    > PLEAASSE Can someone help
    > Regards Matthew [email protected]
    > Everything works well but for the problem return link to
    the properties
    > page
    > after you have gone to the video.The property page
    becomes inactive
    >

  • Problems when copying item from a page to another one

    I am copying a value of an item, from a page to another one in branch, and it cuts the value to me in ' : '
    ej: item a = 08:00 Hs
    item b = 08
    thanks
    Juan Pablo

    I had to deal with the same thing and I know at least two solutions - one is "dirty" and the other one is a "clean":
    1. dirty - replace ':' (colon) with ';' (semicolon) and pass that value using URL. On the page, where your item(s) is, create a computation using REPLACE(P1_ITEM, ';', ':') on load and before header.
    2. clean - as Scott says and it works in many cases - pass only a primary key and a request to your target page and create there a procedure to fetch the values you need and populate the items
    If you use the documentation and search on keywords "COMPUTATION" and "REQUEST", you will find a lot of usefull information.
    Denes Kubicek

  • Problems calling Java Servlets from HTML pages Online

    Hello
    I have created a Web site using Java Servlets, and have acquired some servlet enabled web-space however i am having some difficulty in calling the actual servlets from the HTML pages i was using the line of code as follows
    http://localhost:8080/servlet/....
    followed by the name eg.
    http://localhost:8080/servlet/Login
    however this doesn't seem to be working i have also tried using the exact address of the servlet but this didn't work either
    i.e ..servlet/Login.java
    I was wondering would anyone have any idea as in how the servlets should be called
    Thanks very much

    Once you write the Servlet code, you have to compile and put the classes in the server classpath. To refer these servlets from your pages, you have to configure them in the server configuration(typical a xml file). There you define how you are going to refer to the servlet(/servlet/Logon) and the correponding class.
    -Mak

  • Create contact sheet from multi-page PDF

    I have a multi-page PDF (A brochure with 1 image on each page). I would like to create a contact sheet of the pages. Can I?

    I would like to create a contact sheet of the pages. Can I?
    Bridge Output Module creates a multipage PDF with options to choose on size, orientation and amount of files per page but can't read all pages separately, it only uses the first page of a PDF.
    You can however extract the pages in PS itself. Open the PDF file using right mouse click in Bridge and choose Open With; Photoshop.
    Then you will see an option window with small thumbs of each pages. Select all the thumbs and set the options as you wish. Then hit Open and you have all the pages as separate files. Use Save as (or create an action to batch save the files if it are many) and then open the folder with the new files in Bridge. Now you can use the option for more files per page in the Output Module.
    Or use the Contactsheet II script that has returned in CS6 and choose to use the open files.

Maybe you are looking for

  • QuickTime does not work

    I have QuickTime 7.4.1 running on my G3 OS Panther and on my iMac OS Tiger. Whenever it plays a movie on the Ge all I get is the sound and no picture. On my iMac OS Tiger it runs ok. I once installed Flip for Mac but deleted it. I searched for Flip f

  • AME CS6 won't load Premiere sequence

    Hello, I recently started having issues with Media Encoder.  I can export a sequence out of Premiere, one sequence at a time. However, when I click "Queue" to load the sequence into ME, then the message appears "Preparing data for export...", then Me

  • T500 Best Upgrade Choice

    I am thinking about getting an upgrade on my T500 my budget is $40 I am thinking about upgrading my 4GB RAM to 8GB RAM or I can keep my 4GB RAM and get a 4GB Turbo Boost (which one would you choose) ThinkPad Twist S230U- OS-Windows 8.1 Pro 64-bit CPU

  • Crystal Reports Plugin Issue with MyEclipse Blue 8.6

    Dear All, I am trying to integrate Crystal Reports Plugin with MyEclipse Blue 8.6 As i add the update site and i say Apply Changes to Profile, it calculates the requirements and in the middle hangs. Please advice, is this version not compatible with

  • Response table

    cannot save response table to excel or csv