Controlling page setup properties from JSF page

Hi there :)
How to control print properties like size,margins on left,right,top,bottom,header,footer etc in page setup through jsf page?
Thanks in advance.
Cheers.

Not.

Similar Messages

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • Can i call signed applet from jsf page in sun studio creator

    Hello javites,
    I want to know whether i can call signed applet from jsf page in sun studio creator. If possible, how do i go about it.
    Thanks.

    This tutorial may help:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/applet.html?feed=DSC

  • Calling a method in the Custom ADF component from JSF page

    HI.
    I have created some custom compoents by extending the core ADF Components. Like i have a ComboBoxDefault component with it's ComboBoxDefaultTag.java and Controls.tld file.
    Now my requirement is i want to bind my label to this component from the JSF page. like
    <fwcontrols:label binding="#{listComponents.comboBoxDefaultLabel}" id="label1"/>
    <fwcontrols:comboBoxDefault binding="#{listComponents.cmbLocales}"
    value="en_GB" id="comboBoxDefault" autoSubmit="true" label="label1">
    <f:selectItems value="#{listComponents.locales}"/>
    </fwcontrols:comboBoxDefault>
    In my JSF page the label will have an id, and that id will be specified in the label tag of the component.
    In Tag.java file i have overrided the setProperty(FacesBean facesBean). In this method i have bind all my properties. In core JSF the setProperty method is provided with the UIComponent parameter, so i can call my method in component also. Which is not in case of ADF Faces.
    My main point is how i can call my method setLabel() which is in ComboBoxDefault.java so that i can set the label.
    Thanks in Advance.

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

  • Problem with opening PDF files from JSF page using SDO

    Hi all,
    I'm new with JSF and was attempting to read a PDF file from a Database using SDO and JSF. The code below throws an exception when casting from DataObject to Blob. The getLcDoc() method was created by WSAD when I dragged an SDO relational record onto the JSF page. This method returns an DataObject type which I tried casting to a Blob type before using it further. However, an exception is thrown.
    Any feedback is appreciated.
    Arv
    try {
                   FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   Blob file= (Blob)getLcDoc().get("ATTACH");
                   int iLength = (int)(file.length());
                   response.setHeader("Content-type", "application/pdf");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   response.setContentLength(iLength);
                   ServletOutputStream os = response.getOutputStream();
                   InputStream in = null;
                   in = file.getBinaryStream();
                   byte buff[] = new byte[1024];
                   while (true) {
                   int i = in.read(buff);
                   if (i<0) break;
                   os.write(buff,0,i);
                   os.flush();
                   os.close();
         } catch(Exception ex){
              System.out.println("Error while reading file : " + ex.getMessage());
         }

    Hi...I found out that there is actually no need to use a Blob object at all. You can simply call the OutputStreams write() method and pass the DataObject.getBytes() method that returns a byte[] array. The revised code is shown at the end of this posting.
    However, a few other teething problems exist:
    1. This works well only if I specify the content type in response.setHeader() method. What if my users upload different types of files, is there a way that the browser opens according to the file type without setting the content type?
    2. I still have a problem opening PDF files, even if I specify - response.setHeader("Content-type", "application/pdf");
    I get the message - The file is damaged and could not be repaired
    3. I would also like this to open the attachment in a new window and using target="_blank" doesn't seem to work as seen below:
    <h:commandLink
                                                 styleClass="commandLink" id="link1" action="#{pc_DocumentDetailsRead.doLink1Action}" target="_blank">
                                                 <h:outputText id="text5" styleClass="outputText"
                                                      value="Click Here"></h:outputText>
                                            </h:commandLink>
    ------------------------Revised code-----------------------------------------
    FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   response.setHeader("Content-type", "application/msword");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   ServletOutputStream os = response.getOutputStream();
                   os.write(getLcDoc().getBytes("ATTACH"));
                   os.flush();
                   os.close();

  • Using workflow from jsf pages...

    We have built a simple JSF page on OC4J app server..
    We want to call our workflow program from this page.
    How should I use the CREATE PROCESS() AND START PROCESS() inside the JSF page?
    We are using 10.1.2. application server. And We SSO connection between
    OC4J 10 1. 3.2
    we deploy our java application to this OC4J..
    But we when we call workflow functions we get get_remote_user error.
    Can we call direct PL/SQL API over JDBC connection without using OWF Java API.
    Or we need (must) use Java aPI to supply this.
    Thanks...

    We see that we can call CREATE PROCESS() OR START PROCESS() inside the JSF page..
    But the problem are about notifications which needs authentication now
    How can we use notifications from java...
    Can we call direct PL/SQL API over JDBC connection without using OWF Java API.
    Or we need (must) use Java aPI to supply this.
    Thanks...

  • Capture generated html output from jsf page in bean

    Hi Member,
    I have need to capture the html output coming form jsf page. means aftr rendering what html is displayed before user, we have need to get it in programm.
    like if we use:
    <h:dataTable......>
    <h:colum>heloo</h:column>
    </h:dataTable>
    then their ouput will be:
    <table>
    <tr><td>heloo</td></tr>
    </table>
    and i have need of these complete line with <table> ......</table>
    Please help me...
    Thanks
    Shailendra Kumar

    Thnx for quick reply.
    But i want to capture it in render response phase. May it will be possible??? Is render response phase is responsible for generation of HTML format?? If yes then how can we capture output coming from this phase.
    URLConnection if fine but it still hit server once. I don't want that. I want to store page html format during its view preparation for html.
    Thanks
    Shailendra Kumar

  • Update OneToMany collection from jsf page

    Hello,
    I have a problem updating a OneToMany relationship from a jsf page.
    I get an parent object via the local interface from the ejb, then I remove a child from the onetomany relationship and call my save method on the stateless bean which just merges the parent object back to the entitymanager.
    But the child I've removed gets not deleted from the database (so its in the collection again after refresh).
    So whats the preferred way to do this?
    thanks
    Dirk

    Thanks for the reply.
    I have (actually had) two problems. The first one I've solved since my initial post (stupid error on my part).
    The other unsolved problem is JSF pages displaying stale data. User navigates to first page, navigates to second page, at this point the database changes, and then the user navigates back to first page. Navigating back to the first page shows the data how it was, not how it is, because it's from the session bean and not the database. If I could kill the session bean when the user navigates from the page the problem would be solved because I build the inital display in the constructor (BTW, please advise if this is a bad approach).
    Frank, your reply raised a question. Is there a way to specify a refresh frequency? If so, how?
    Thanks,
    Al Malin

  • Creating a pdf file of datatable from Jsf page

    Hi ,
    I want to prepare a pdf file of a data table and store at some system loaction from a Jsf page. How can this be acheived? Any example would be a great help.
    Thanks,

    hi here this adress http://displaytag.homeip.net/displaytag-examples-1.1/example-export.jsp with display tag you can export import your datatable to excel or pdf format.

  • Missing stylesheet classes from JSF page

    I'm not sure this is JHeadstart related and I will post on the JDeveloper forum as well but since all our applications are built using JHeadstart I thought I would post this hear in case other people had seen similar behaviour.
    We're using JDeveloper 10.1.3.4 and JHeadstart 10.1.3.3.81, developing JSF pages.
    Ocassionally when a page loads, the stylesheet classes are missing - I presume, as all the graphic rendering is not done, only text is shown on the screen - which then means that most of the user interaction is gone ! This is an intermittent problem. I was wondering if this is related to caching of page content at all and whether there is anything that can be done to help avoid the problem.
    Any feedback greatly appreciated !
    Cheers,
    Brent

    Hi Steven,
    This managed to resolve itself by undeploying the application, bouncing the server and redploying. It's happened more than once but it's not giving us too much grief ! We also noticed that if the application is viewed on IE8, a generic oracle-desktop ie css file is used (rather than the more specific oracle-desktop-ie7 one) which causes some delays when loading parts of the page.
    Cheers,
    Brent

  • Switching Page Setup window from Metric to Imperial

    Hi,
    Might anyone know how to change the metric measurements (cm) to imperial ones (inch) -seen below the Paper Size dropdown menu- in the Page Setup dialog box of any given program?
    I've tried everything I can think of, including switching keyboard layouts and Time Zone setting to make the computer think I live somewhere other than Canada, but nothing will make a US Letter sized paged show as "8.5 in x 11 in".
    Thanks!
    -Neil
    OS 10.4.3

    Go to International Preferences in System Preferences and switch to the Formats panel. There is a drop down menu at the bottom called "Measurement Units" - that should do it.
    Hope this helps.

  • Page Setup -- printing on tabloid pages

    This simple problem in Acrobat X (10.1.0) is causing me to go back to Acrobat 9:
    When I need to print to a tabloid-size page (my printer contains both sizes of paper), I cannot find "page setup" anywhere except in the print dialog box. When I click that button then the following message comes up:
         "The Page Setup dialog box is provided by the operating system. To ensure that you can use the full print capabilities of Acrobat, please set all print options from the Application print dialog box. Do you want to continue?"
    Oh yeah? Where IS the Application print dialog box? Isn't that what I was just in?
    In Acrobat 9, if I wanted to change the printing paper size, I could go to File>Page Setup and change the size and IT WOULD REMAIN AT THAT SIZE UNTIL I CHANGED IT AGAIN.
    But in Acrobat X, I must click this button EACH TIME I print to get a size other than the default [which is governed by my Mac's setting for Print/Fax (OS X, 10.5.8)].
    Can someone tell me what I'm missing? It should be simple... (like it is in Acrobat 9).

    After selecting Page Setup in the Print Dialog box (going through the warning), I then chose "Paper Size: Tabloid", and BEFORE I exited THAT page setup dialog box, I switched from "Settings: Page Attributes" to "Settings: Default". (Note that the "Settings: Default" attribute immediately bounced back to "Settings: Page Attributes".)
    But it seems to work! The page size stays Tabloid (or A4 or whatever) until I change it again -- no matter whether I open a different document or quit Acrobat X and start it again.
    It's not intuitive... and I was not having any success in finding an answer or a workaround.
    So thank you so much for your response!
    Hope that someone else having the same problem will find this thread.

  • Editable text box on each page, but generated from Master Page?

    I want to create a blank text box that lives on the Master Page so that it shows up on each page in the document, but I then would enter custom text into the field on each page ( or just leave it blank).
    I know, I know, I can do simply copy a text box from one page, and paste in place on all subsequent pages... or set it up once on a page, then just keep duplicating that page... or some other work around. But simple as those work arounds are, I'd just like a blank text box show up automatically on each page as a master page item, then I can enter text as a see fit and not have to do any duplicating tricks. I've looked up a few tutorials, but none solve for my need.
    So I guess the real question is, does InDesign allow the content of a master page text field to be individually edited on the pages of the document itself?

    It's bet to NEVER use the override master page items command since it overrides ALL master items. That's like using a wrecking ball as a flyswatter. And you don't need to put random text in the frame either (especially since you said you don't want to use it on some pages, though it might be best for those if you create another master without the frame). To override any master object hold Cmd (Mac) or Ctrl (Windows) + Shift and click on it with the selection tool.

  • Code to call another Page Flow URL from one page flow URL

    Can anyone send me the code to call another pageflow url from one page flow URL.

    thanks...
    In my appication there is no Form page. Only based on Canvas in that ,
    i implemented Text box, Text Field And Drop down list etc..by own coding without using any abstract methods.
    I did every thing with in single Midlet file.While developng goes on i got the problem ,
    Like "your application exceeds the memorylimit you cant
    use more than 32Kb of byte code in Canvas"...
    So the application is not opened.
    I tried to call the next file in same package to proceed, i got it. codition goes to next file, but its not return back to the Main(MIDlet) file, throws the excepton as "Security exception".
    How to solve this problem,is any other way? please...

  • JSF Page -- Backing Bean -- Non-JSF Page ...

    Hi
    I have a JSF page where the user enters data and submits by clicking on the Submit button. My backing bean then takes the data and processes it. After successful processing, I want to direct the user to a non-JSF page.
    What is the best way of achieving this?
    Thanks

    I am doing the following to get the desired effect now:
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExternalContext ectx = ctx.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    String nextUrl = "....";
    response.sendRedirect(nextUrl);
    Is there a better way?

Maybe you are looking for