Call DB Procedure then pop-up page: problems with reload of pop-up page.

The Scenario
In Apex 2.0 I have page 1 which has a report. The user clicks on a value in the first column of the report (ID#) which is the table's primary key value. The ID# is a link which calls Javascript that displays custom pop-up page 2. Page 2 has a PL/SQL "On-Load - After Regions" process which calls a database procedure. Page 2 presents a "Congratulations you just submitted report ..." mesage. The user clicks on an "Ok" button on page 2 which does a Javascript close to close out the pop-up page and return the user back to page 1.
The Problem
All works well except if the user clicks the "Reload current page" browser button while in page 2, he submits the report a second time.
My Attempts:
I have tried the following with little success:
1) I defined an item P2_SUBMIT on the pop-up page 2 into which which I pass in the value of 'YES' from page 1. The "On-Load" process checks its value. If P2_SUBMIT = 'YES' it calls the DB procedure and then sets the value of P2_SUBMIT to 'NO'. My intention is to disable the call to the DB procedure. Well when I press the "Reload current page" for some reason P2_SUBMIT in the On-Load process still evaluates to 'YES' and the DB procedure fires even though when I check the session value for P2_SUBMIT it says 'NO'. The screen value of P2_SUBMIT says 'YES'. I think for some reason that value in the HTML variable is not in sync with what is in the session???
When I press the "reload current page" button in the browser, the session state values appear to revert back to what they were when the page was first rendered even when their values are changed in a PL/SQL On-Load process. If I change the value of a page item in a PL/SQL On-Load process, the session value changes but the value in the HTML page variable does not match the session value. When I press the reload page the value used in the On-Load process is not the session value, but the value of the HTML variable. It appears to revert back to when the page was first rendered. What am I missing?
2) I created an On-Demand process. I modified my javascript code which opens the pop-up page to invoke the On-Demand process which in turn called the DB procedure before opening the pop-up page. This "kind of" worked. What I mean is it called the DB procedure, but was so slow when calling that I had actually clicked three times on the link before anything popped up and ended up with three pop-up pages and three calls to the DB procedure.
Are there any other options that I can try? I prefer option #1 if I could get the P2_SUBMIT to evaluate correctly.
I will put together a working example tomorrow on Oracle's apex.oracle.com site and post a link.
Thanks,
Mike

1) I defined an item P2_SUBMIT on the pop-up page 2
into which which I pass in the value of 'YES' from
page 1.If you're passing it in the URL, it will still be in the URL on reload, yes? It would then get reset to YES every time the reload button is pushed.
Since you can access session variables from another page, try setting the value of P2_SUBMIT from page 1 using a process or whatever when you do the submit. Don't pass it in the URL. If you do that, then I think it will work.

Similar Messages

  • Problems with Apex4.2, SkillBuilders Modal Page plugin, IE9 and HTML5 theme

    Hello everyone.
    Please Help.
    Again problems with Apex4.2, SkillBuilders Modal Page plugin, IE9 and HTML5 theme (Blue Respensive).
    1. The problem is that all the popup windows display 100% of the width
    2. After opens a popup window change the width of the parent window forms.
    This happens only in IE9 browser.
    In other browsers, the popup window only much larger than the form that is opened.
    I can not change the size of the window.
    Thanks.

    Milk,
    I changed the component level settings to use a fixed height and width (I adjusted edit, you still need to adjust create). You can try adjusting this some because the modal page should adjust a bit.
    Then I added this CSS to the Inline CSS of the modal page:
    section.uMessageRegion{position: static; !important;}
    Let me know how this works for you.
    Regards,
    Dan
    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/

  • I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding"

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

  • Problem with printing more than one page (ghostscript broken?)

    Hello,
    since one of the last package updates I have problems with printing more than one page. The print problems occurs as well with pdf files as well with printing websites. I use an actual KDE system with commercial turboprint printer driver. The first page always prints fine, but all consecutive pages are corrupted.  As from a similar problem some months ago, I assume a broken ghostscript package. I tried to downgrade ghostscript to check that, but I get depency problems:
    root@arch32 dieter]# ls -l /var/cache/pacman/pkg/ghostscript-*
    -rw-r--r-- 1 root root  9906288 21. Mär 2010  /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
    -rw-r--r-- 1 root root 11402624  8. Okt 22:44 /var/cache/pacman/pkg/ghostscript-9.00-1-i686.pkg.tar.xz
    [root@arch32 dieter]# pacman -U /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
    Löse Abhängigkeiten auf...
    Suche nach Zwischen-Konflikten...
    Fehler: Konnte den Vorgang (Kann Abhängigkeiten nicht erfüllen) nicht vorbereiten
    :: libspectre: benötigt ghostscript>=9.00
    [root@arch32 dieter]#
    Anyone else having printing problems or a solution for my problem?
    Thanks, Dieter

    This may not be related but I had a problem printing a pdf today whereby the second page got corrupted. The same pdf had printed fine several months ago. I realised that (long story) for some reason I had switched drivers (HP printer) from hpijs to hpcups. I installed the printer again as a "new" printer using the hpijs driver and it printed properly this time.
    So it may be that the bug causes issues with some drivers. You could try an alternative driver for the printer as temporary workaround?

  • Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts.    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly i

    Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts. 
    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly in this view.
    It's always the second search that is problematic.
    I've tried typing over and all it seems to do is confine the search to the the entries that have come up for the previous search.
    I've tried to use the x to clear the previous entry and then type the next search, same problem.  The only way seems to be to move from "All Contacts" to "Groups".  Then the searched name appears and I can return to All Contacts to see full details.
    Surely three key press' are not the way it's supposed to work?
    FYI
    Processor  2.7 GHz Intel Core i7
    Memory  8 GB 1333 MHz DDR3
    Graphics  Intel HD Graphics 3000 512 MB
    Software  Mac OS X Lion 10.7.3 (11D50d)
    Address book Version 6.1 (1083)
    MacBook Pro, Mac OS X (10.7.1), 8Mb RAM 2.7Ghz i7

    AddressBook experts are here:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion#/?tagSet=1386

  • Problem with exporting and printing from pages to PDF

    I have a problem with my Pages
    My font will not be embeded in my pdf files.
    I have saved as a ps file and in to the destiller and my fonts are missing.
    I need to send my file to the print shop but they will not accept my file and i now understand why.
    fonts are missing...
    Is there a workaround.
    I have no problem in Indesign or quark but pages.....
    I need help
    thanks a zillion

    The font is coming from a notation software Sibelius 4 and is namned opus
    Hmmm ... Sibelius is a music notation software and notations are marked up in MusicXML. Presumably the font file is an SFNT with TrueType splines, but it is probably not installed in OS X system folders - rather in an internal Sibelius application font folder. So presumably you do not see the font in FontBook and OS X font auditing does not apply to the font.
    Sibelius exports EPS files, right? If memory serves, an EPS is still legal even if the font resource is not embedded. And in any case, we know from the behaviour that the font resource is not embedded for some reason. So how do you get Sibelius to put the font resource inside the graphic ... normally there is a button in the EPS export procedure that gives you the option to Embed All Fonts.
    You do not seem to get this button, though. Or why else would you not have checked it already and the problem would have gone away already.
    The next point in troubleshooting this is that you are not following the path that would let OS X detect that an external font resource is not embedded.
    I go from pages-print-printer- acrobat Pro 8-save as Pdf-x
    What you are doing here is telling Pages to tell OS X to generate a PostScript program within which is nested your Encapsulated PostScript program with the call to an unresolved external font resource.
    So why does Acrobat Pro not detect the unresolved external font resource? Hmm ... did you try the Preflight option in Acrobat 8 Pro? It should provide information on unresolved embeddings.
    I have also tried pages-print-printer- acrobat Pro 8 and save pdf as postscript and put the postscript file in destiller 8 pro with defalt setting high quality print
    The whole problem with EPS and PS is that this sort of situation is possible in the first place (plus, what is worse, the PS program can include custom additions to the graphics model that then fail in the PS interpreter whence Apple GX normalizing, Adobe Distiller normalizing, and Apple Quartz normalizing). You want to get as far away from EPS and PS as possible, believe me.
    So, you have not done what I posted that you should do in the first place. If I were you, I would first get rid of the problem that the EPS is making a call to an external font and then get rid of the problem that the PostScript is preserving the external call.
    To get rid of the problem that the EPS is preserving an external call, simply open the EPS in Apple Preview which includes a NORMALIZER for EPS/PS, and then save out the graphic as PDF. Alternatively, if you don't trust Quartz for some reason, set up a hotfolder for Distiller, make sure the option to embed all fonts is enabled, and convert the EPS to PDF.
    Now replace your EPS in Pages with PDF in Pages, and don't save PostScript to disk but save PDF to disk through the proper procedure which is File > Print > PDF > Save as PDF/X [for your custom configuration of the PDF/X-3 filter considering that no sane person in North Europe prints lowend US SWOP, we use ISO].
    If you begin by telling OS X that you want PDF within which fonts are supposed to be embedded ALWAYS, then you have started the right way. Otherwise, you have not told the operating system what you want to do, and this then leads you into places where you are unlikely to have the expertise to troubleshoot problems.
    So, forget placing EPS in the first place, place PDF. And forget saving PostScript to disk, save PDF to disk. If that does not sort your problem, here is the dirty solution for professional prepress.
    Adobe Photoshop has an EPS rasterizer that has wide tolerances for poor PostScript programming (so does Adobe Illustrator 6 and higher by the way).
    Therefore, if an EPS is posing problems, one workaround is to rasterize the EPS at high resolution in Photoshop and place that high resolution PDF in your layout.
    Take care that you rasterize as 1 bit at the required resolution of the print provider, probably 2450 dpi. When you save the 1 bit as PDF, Photoshop automatically compresses to a very, very small file (don't be surprised if 15Mb compresses to something like 0.5Mb).
    Rasterizing in Photoshop should not be necessary if you simply start by telling the operating system what it is you are trying to do. Then the operating system should be able to take the right decisions for you, and tell if you if finds problems it cannot resolve without turning to you.
    Good luck,
    Henrik
    would-be technical writer

  • Problems with blu-ray pop-up menus

    I made the mistake of tacking this question/problem onto another similar post, so here it is again for some:
    I got this error message near the end of the disc build:
    Blu-ray Error: "fatal error". Code: "6", Note: "Graphics buffer underflows.
- Failed to multiplex with maximum IG PTS: 54900000 (in 90kHz).
    The blu-ray project I am working on is an 87 min live concert with about 8 other much shorter timelines.  The main menu has 6 buttons with a motion background.  There are few submenus as well, but the problem came when I started making pop-up menus for the various timelines.
    This is the first project where I really had to explore the possibliltes and limitations of Encore's pop-up menus.  I burned a test disc with just a basic pop-up menu to see how the menu's opacity would look over the final video.  All the video assets were set to to transcode "Automatically".  All audio assets are blu-ray compliant Surround ac3's or 16-bit stereo WAV's so could be left as "Don't Transcode".  This disc burned perfectly.
    I then went through the pretty involved process of making a final version of the main pop-up menus.  The main concert's pop-up menu has 5 pages (including page 0).  There are specific pop-up menus for other timelines, but those have no more than 2 pages.  None of the menus have more than 10 buttons.
    I tried to burn the disc, and it came back with the error above.  After reading some other posts, I thought it was worth a try to delete the AuthorScriptHDMVSessions folder before starting a new burn since it was already filled with files from my test burn.  That didn't help.
    Any insight or recommendations would be greatly appreciated.
    Thanks.

    After countless tests and research, I finally have a successfully burned blu-ray with WORKING multi-page pop-up menus (that I am happy with).  Thank you to all the people who gave theoretical guidance and suggestions in emails and other posts.  There has been no shortage of oddities and obstacles to overcome when just trying to make a simple blu-ray.  Unfortunately,  I did not have the time to accurately pinpoint what was causing the original error message.  The project just needed to get done.
    The main pop-up menu has 4 pages, with 13 buttons on each page.  Only about 5 - 9 of the "buttons" on each page are actual buttons that link anywhere.  The other buttons on each page only serve as the remaining pieces of the menu's background and cannot be accessed on the final disc.  Totally ridiculous way to make the backgrounds for pop-up menus, but it works.
    Some of the other things I learned regarding pop-up menus + Encore misc:
    1.  If at all possible, totally create a menu .psd BEFORE bringing it into an Encore project.  Make the button order in the .psd what you want it to end up being in the end (bottom layer is button 1).  If you start editing and saving order after it has been brought in, Encore will almost always revert it back to some strange (possibly original) button order.  You will spend all your time re-routing button navigation and changing their numbers, only to find out later that Encore has changed it all back without notice.
    2.  As many people state, it is best to have Encore do as little thinking as possible.  All of my button groups originally had Text Layers within them with some fx applied.  I merged each text layer down into that button's background layer to essentially rasterize the text with the fx applied.  Each (+) button group therefore only had a higlight layer and a background layer.  After doing this for all the buttons, the .psd file size was greatly reduced.  Naturally I saved a copy before going through the merging process in case I ever had to go back and edit the text.
    3.  Originally the background for the pop-up menus were made from a rectangle cut-out of the background of the main menu.  This was the width of the frame and around 1/5 of the height.  I had changed the opacity to around 60%, and cut up the pieces to go with their respective buttons.  For the final disc, I just made a shape with the Rounded Rectangle Tool, and filled it with a solid colour.  It is probably only about half the size of the original pop-up menu's background.  I changed its opacity as well, but then merged it with a blank layer so Encore didn't have to think about the opacity setting.
    4.  I encoded all the video elements BEFORE they were brought into the project.  There are some issues with the way the file sizes are interpretted by Encore, but I won't trust it to encode anything again.
    5.  For some reason Encore wants to transcode 16-bit, 48.0 kHz .aiff files when making a blu-ray, but 16-bit, 48.0 kHz .wav files do NOT need trancoding (for both dvds and blu-rays).

  • Switching Mirroring On, Then Off Still A Problem With 10.5.2 Update

    I installed the latest system update and found that the problem with Keynote and mirroring still hasn't been fixed. This issue was introduced with Leopard.
    Turning on mirroring during a presentation . . . then turning it off, the Keynote window is thrown onto the secondary display (the video projector screen). That means, during the process of changing the mirroring, the projector can't be blackened, because you have to be able to "fish" the Keynote window off from the secondary display back onto the computer screen. What a pain.
    Steve

    I'm sorry, but the way you write your sentences is very hard to understand.
    Space each sentence with two spaces, and start each sentence with a capital letter on the first letter of the first word.
    I'm going to try to tackle it, but if I misunderstand what you are saying, just please clarify, and don't take it personally.
    No one here is aware of what Apple is "aware of" since this is a user to user forum. Thus to answer your question Apple may be aware of many things, but only by calling AppleCare:
    http://www.apple.com/contact/phone_contacts.html
    Will they truly be made aware by their users as long as you start a case number with them and keep track of it.
    The fact your machine's hard disk is recognized by the installer, but not on the desktop suggests that your Finder preferences are not showing the hard disk or other mounted discs.
    Also I strongly recommend figuring out a way to backup your data*:
    http://www.macmaps.com/backup.html
    Whether by adding a second hard drive to your MacPro and installing an operating system on it to see if it can recognize the first hard drive, or putting your Mac Pro in Target Disk Mode and connecting it to another Intel Mac.
    Once your data is backed up, we can explore other options for why your hard disk is not appearing in the Finder. Are there any other places it is invisible?
    - * Links to my pages may give me compensation.

  • Problem with opening/saving files in Pages/Numbers/Keynote

    Hello, First of all: sorry for my bad english.
    I had this problem already several months ago and already contact with the Apple hotline.
    The only thing that was said then and was helped "new user account" - well done.
    But:
    I can not do this every 3 months.
    The problem: I can not open a Pages / Numbers / Keynote files anymore.
    From iCloud / iCloud Drive it goes, locally stored open still.
    I'll get the error: "File can not be opened."
    Newly created files I can not save - no matter which hard disk - it will show "missing access rights"
    Of course, I've already deleted preferences, reset NV-RAM and repaired permissions (access rights) - via terminal "reset password" also.
    Anyone here knows this problem and knows a solution?
    Thanks in advance.
    configuration:
    MacPro (2009)
    2x2,93 GHz
    24 GB RAM
    SSD + HDD
    OS 10.10.2

    I have solved the problem.
    It occurred in connection with my scripture library „Font Explorer X Pro“.

  • HT1390 I got a hulu plus, I was able to see tv shows but now is not loading up any. Call hullu but they say is a problem with apple not them can u help. I also try to go to the apple store but is saying that I need iOS 5 to up date, I have the first IPad.

    I am having problems with hullu plus, to wach tv shows or any, I call them but they say the problem is with my iPad, bur I used to wach with no problems do you have any suggestion. On wath to do?

    Update your iPad to iOS 5.1.1. Connect your iPad to your computer, launch iTunes then click on the Check for Update button.

  • Problem with opening doc. files in pages '09

    Hello, can anybody help me, ever since i installed " snow leopard" v10.6.2, pages '09 doesn't open doc. files ( word ) anymore.
    Even documents produced in pages en ""saved as" a word document can't be opened again.
    Keep receiving pop up whit message " can not be opened"
    Yves
    Message was edited by: deschutter

    You need to manually install the 10.6.2 "Combo" version, there were problems with just using the regular update.
    See:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=153&mforum=iworktips ntrick
    Peter

  • Interactive PDF Form in Landscaped Page; Problems with Additional Pages

    Please see the attached screenshot.
    I created a form (in Word) which has 10 pages of the exact same fields except for the side number (the 10 pages number from 1 to 200) which numbers each line to be filled out by the end user.
    I have created each field for page 1 (no easy feat as Acrobat 11 did not recognize most of the necessary fields) and all of the checkboxes must be grouped so that only one checkbox is able to be picked.  When I try to distribute each of the fields to the other 9 pages, or even if I copy and paste the fields to page 2, then the fields turn portrait rather than landscaped and I am unable to rotate them.
    I have tried extracting page 1, rename it to page 2, update the numbering scheme (which throws everything out of alignment), and then reinsert it behind page 1, and again, it rotates the landscaped fields to portrait.
    Is there any way possible for me to EASILY recreate this page nine more times (I have already spent approximately 10 hours working on this one page getting everything created and lined up correctly)? 
    In doing some research yesterday, I saw that this was a software limitation issue and that Acrobat does not allow fields in landscaped pages to be recreated as landscaped fields (I do not have this problem with the same type of form created in portrait pages and can distribute fields all day long through pages and pages of PDFs.
    Does anyone have any suggestions or guidance that I can draw upon other than having to create each page separately (I just do not have the time as the one page took me about 10 hours)? 
    Thank you so much!

    That's very disappointing ...
    Thanks Bernd, for your answer!

  • Problem with some actions of a page in the ie

    the page is built on Studio Creator 2.1 in Fedora 4, when i run in ff work's fine. But, in the ie, some actions doesn't work well: what happens is that all the actions are redirected to another page's application!
    i think that it could be javascript incopatibility, for example i have a table component in the page, and when i click on the button(header table) for order rowgroup, i'm redirected to another page.
    ie version - 6.0
    windows 2000 server
    i don't know what to do.

    JSP Code
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{tarefa.page1}" id="page1">
                <ui:html binding="#{tarefa.html1}" id="html1">
                    <ui:head binding="#{tarefa.head1}" id="head1">
                        <ui:link binding="#{tarefa.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{tarefa.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{tarefa.form1}" id="form1" target="_self">
                            <div style="height: 126px; left: 72px; top: 24px; position: absolute; width: 702px">
                                <jsp:directive.include file="cabecalho.jspf"/>
                            </div>
                            <div style="left: 72px; top: 558px; position: absolute">
                                <jsp:directive.include file="rodape.jspf"/>
                            </div>
                            <div style="height: 306px; left: 72px; top: 144px; position: absolute; width: 144px">
                                <jsp:directive.include file="menu1.jspf"/>
                            </div>
                            <ui:label binding="#{tarefa.label1}" id="label1" style="left: 220px; top: 150px; position: absolute" text="Cadastro/Manutencao de Tarefas"/>
                            <ui:staticText binding="#{tarefa.staticText1}" id="staticText1" style="left: 240px; top: 170px; position: absolute" text="Data:"/>
                            <ui:staticText binding="#{tarefa.staticText2}" id="staticText2" style="left: 240px; top: 210px; position: absolute" text="S�rie:"/>
                            <ui:staticText binding="#{tarefa.staticText3}" id="staticText3" style="left: 240px; top: 230px; position: absolute" text="Disciplina:"/>
                            <ui:staticText binding="#{tarefa.staticText4}" id="staticText4" style="left: 240px; top: 250px; position: absolute" text="Descricao:"/>
                            <ui:calendar binding="#{tarefa.dtTarefa}" dateFormatPattern="yyyy-MM-dd" id="dtTarefa" style="height: 18px; left: 300px; top: 170px; position: absolute; width: 108px"/>
                            <ui:dropDown binding="#{tarefa.cmbSerie}" converter="#{tarefa.integerConverter1}" id="cmbSerie"
                                items="#{tarefa.serieDataProvider.options['serie.id,serie.serie']}" style="height: 18px; left: 300px; top: 210px; position: absolute; width: 198px"/>
                            <ui:dropDown binding="#{tarefa.cmbDisciplina}" converter="#{tarefa.integerConverter2}" id="cmbDisciplina"
                                items="#{tarefa.disciplinaDataProvider.options['disciplina.id,disciplina.disciplina']}" style="height: 18px; left: 300px; top: 230px; position: absolute; width: 198px"/>
                            <ui:textArea binding="#{tarefa.txtDesc}" id="txtDesc" style="height: 36px; left: 300px; top: 250px; position: absolute; width: 200px"/>
                            <ui:button action="#{tarefa.btnNovo_action}" binding="#{tarefa.btnNovo}" id="btnNovo"
                                style="left: 239px; top: 290px; position: absolute" text="Novo"/>
                            <ui:button action="#{tarefa.btnEditar_action}" binding="#{tarefa.btnEditar}" id="btnEditar"
                                style="left: 299px; top: 290px; position: absolute" text="Editar"/>
                            <ui:button action="#{tarefa.btnAtualizar_action}" binding="#{tarefa.btnAtualizar}" id="btnAtualizar"
                                style="left: 359px; top: 290px; position: absolute" text="Atualizar"/>
                            <ui:button action="#{tarefa.btnCancelar_action}" binding="#{tarefa.btnCancelar}" id="btnCancelar"
                                style="left: 439px; top: 290px; position: absolute" text="Cancelar"/>
                            <ui:messageGroup binding="#{tarefa.messageGroup1}" id="messageGroup1" style="height: 88px; left: 522px; top: 180px; position: absolute; width: 250px"/>
                            <ui:hiddenField binding="#{tarefa.op}" id="op"/>
                            <ui:hiddenField binding="#{tarefa.id}" id="id"/>
                            <ui:table augmentTitle="false" binding="#{tarefa.table1}" id="table1" lite="true" paginationControls="true"
                                style="height: 126px; left: 234px; top: 324px; position: absolute" width="540">
                                <script language="javascript1.2" type="text/javascript"><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table1");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table1");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table1");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table1");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table1");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table1");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{tarefa.tableRowGroup1}" id="tableRowGroup1" rows="3" sourceData="#{tarefa.tarefaDataProvider1}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{tarefa.tableColumn1}" id="tableColumn1" width="53">
                                        <ui:button action="#{tarefa.button1_action}" binding="#{tarefa.button1}" id="button1" text="#{currentRow.value['tarefa.id']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn2}" headerText="Data" id="tableColumn2" sort="tarefa.data" width="177">
                                        <ui:staticText binding="#{tarefa.staticText6}" id="staticText6" text="#{currentRow.value['tarefa.data']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn5}" headerText="Descricao" id="tableColumn5" sort="tarefa.descricao" width="189">
                                        <ui:staticText binding="#{tarefa.staticText9}" id="staticText9" text="#{currentRow.value['tarefa.descricao']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn6}" headerText="Serie" id="tableColumn6" sort="serie.serie">
                                        <ui:staticText binding="#{tarefa.staticText10}" id="staticText10" text="#{currentRow.value['serie.serie']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn7}" headerText="Disciplina" id="tableColumn7" sort="disciplina.disciplina">
                                        <ui:staticText binding="#{tarefa.staticText11}" id="staticText11" text="#{currentRow.value['disciplina.disciplina']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn8}" id="tableColumn8">
                                        <ui:button action="#{tarefa.button2_action}" binding="#{tarefa.button2}" id="button2" text="Delete"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>java code
    package cmsgeracao;
    import com.sun.data.provider.RowKey;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.rave.web.ui.component.Body;
    import com.sun.rave.web.ui.component.Form;
    import com.sun.rave.web.ui.component.Head;
    import com.sun.rave.web.ui.component.Html;
    import com.sun.rave.web.ui.component.Link;
    import com.sun.rave.web.ui.component.Page;
    import javax.faces.FacesException;
    import com.sun.rave.web.ui.component.Label;
    import com.sun.rave.web.ui.component.StaticText;
    import com.sun.rave.web.ui.component.Calendar;
    import com.sun.rave.web.ui.component.DropDown;
    import com.sun.rave.web.ui.component.TextArea;
    import com.sun.rave.web.ui.component.Button;
    import com.sun.rave.web.ui.component.Table;
    import com.sun.rave.web.ui.component.TableRowGroup;
    import com.sun.rave.web.ui.component.TableColumn;
    import com.sun.data.provider.impl.CachedRowSetDataProvider;
    import javax.faces.convert.IntegerConverter;
    import com.sun.rave.web.ui.component.MessageGroup;
    import com.sun.rave.web.ui.component.HiddenField;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import com.sun.rave.web.ui.model.DefaultTableDataProvider;
    * <p>Page bean that corresponds to a similarly named JSP page.  This
    * class contains component definitions (and initialization code) for
    * all components that you have defined on this page, as well as
    * lifecycle methods and event handlers where you may add behavior
    * to respond to incoming events.</p>
    public class tarefa extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
         * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
         * This method is automatically generated, so any user-specified code inserted
         * here is subject to being replaced.</p>
        private void _init() throws Exception {
            disciplinaDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.disciplinaRowSet}"));
            serieDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.serieRowSet}"));
            tarefaDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.tarefaRowSet}"));
            tarefaDataProvider1.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.tarefaRowSet}"));
        private Page page1 = new Page();
        public Page getPage1() {
            return page1;
        public void setPage1(Page p) {
            this.page1 = p;
        private Html html1 = new Html();
        public Html getHtml1() {
            return html1;
        public void setHtml1(Html h) {
            this.html1 = h;
        private Head head1 = new Head();
        public Head getHead1() {
            return head1;
        public void setHead1(Head h) {
            this.head1 = h;
        private Link link1 = new Link();
        public Link getLink1() {
            return link1;
        public void setLink1(Link l) {
            this.link1 = l;
        private Body body1 = new Body();
        public Body getBody1() {
            return body1;
        public void setBody1(Body b) {
            this.body1 = b;
        private Form form1 = new Form();
        public Form getForm1() {
            return form1;
        public void setForm1(Form f) {
            this.form1 = f;
        private Label label1 = new Label();
        public Label getLabel1() {
            return label1;
        public void setLabel1(Label l) {
            this.label1 = l;
        private StaticText staticText1 = new StaticText();
        public StaticText getStaticText1() {
            return staticText1;
        public void setStaticText1(StaticText st) {
            this.staticText1 = st;
        private StaticText staticText2 = new StaticText();
        public StaticText getStaticText2() {
            return staticText2;
        public void setStaticText2(StaticText st) {
            this.staticText2 = st;
        private StaticText staticText3 = new StaticText();
        public StaticText getStaticText3() {
            return staticText3;
        public void setStaticText3(StaticText st) {
            this.staticText3 = st;
        private StaticText staticText4 = new StaticText();
        public StaticText getStaticText4() {
            return staticText4;
        public void setStaticText4(StaticText st) {
            this.staticText4 = st;
        private Calendar dtTarefa = new Calendar();
        public Calendar getDtTarefa() {
            return dtTarefa;
        public void setDtTarefa(Calendar c) {
            this.dtTarefa = c;
        private DropDown cmbSerie = new DropDown();
        public DropDown getCmbSerie() {
            return cmbSerie;
        public void setCmbSerie(DropDown dd) {
            this.cmbSerie = dd;
        private DropDown cmbDisciplina = new DropDown();
        public DropDown getCmbDisciplina() {
            return cmbDisciplina;
        public void setCmbDisciplina(DropDown dd) {
            this.cmbDisciplina = dd;
        private TextArea txtDesc = new TextArea();
        public TextArea getTxtDesc() {
            return txtDesc;
        public void setTxtDesc(TextArea ta) {
            this.txtDesc = ta;
        private Button btnNovo = new Button();
        public Button getBtnNovo() {
            return btnNovo;
        public void setBtnNovo(Button b) {
            this.btnNovo = b;
        private Button btnEditar = new Button();
        public Button getBtnEditar() {
            return btnEditar;
        public void setBtnEditar(Button b) {
            this.btnEditar = b;
        private Button btnAtualizar = new Button();
        public Button getBtnAtualizar() {
            return btnAtualizar;
        public void setBtnAtualizar(Button b) {
            this.btnAtualizar = b;
        private Button btnCancelar = new Button();
        public Button getBtnCancelar() {
            return btnCancelar;
        public void setBtnCancelar(Button b) {
            this.btnCancelar = b;
        private CachedRowSetDataProvider disciplinaDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getDisciplinaDataProvider() {
            return disciplinaDataProvider;
        public void setDisciplinaDataProvider(CachedRowSetDataProvider crsdp) {
            this.disciplinaDataProvider = crsdp;
        private IntegerConverter cmbDisciplinaConverter = new IntegerConverter();
        public IntegerConverter getCmbDisciplinaConverter() {
            return cmbDisciplinaConverter;
        public void setCmbDisciplinaConverter(IntegerConverter ic) {
            this.cmbDisciplinaConverter = ic;
        private CachedRowSetDataProvider serieDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getSerieDataProvider() {
            return serieDataProvider;
        public void setSerieDataProvider(CachedRowSetDataProvider crsdp) {
            this.serieDataProvider = crsdp;
        private IntegerConverter cmbSerieConverter = new IntegerConverter();
        public IntegerConverter getCmbSerieConverter() {
            return cmbSerieConverter;
        public void setCmbSerieConverter(IntegerConverter ic) {
            this.cmbSerieConverter = ic;
        private IntegerConverter integerConverter2 = new IntegerConverter();
        public IntegerConverter getIntegerConverter2() {
            return integerConverter2;
        public void setIntegerConverter2(IntegerConverter ic) {
            this.integerConverter2 = ic;
        private CachedRowSetDataProvider tarefaDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getTarefaDataProvider() {
            return tarefaDataProvider;
        public void setTarefaDataProvider(CachedRowSetDataProvider crsdp) {
            this.tarefaDataProvider = crsdp;
        private MessageGroup messageGroup1 = new MessageGroup();
        public MessageGroup getMessageGroup1() {
            return messageGroup1;
        public void setMessageGroup1(MessageGroup mg) {
            this.messageGroup1 = mg;
        private IntegerConverter integerConverter1 = new IntegerConverter();
        public IntegerConverter getIntegerConverter1() {
            return integerConverter1;
        public void setIntegerConverter1(IntegerConverter ic) {
            this.integerConverter1 = ic;
        private HiddenField op = new HiddenField();
        public HiddenField getOp() {
            return op;
        public void setOp(HiddenField hf) {
            this.op = hf;
        private HiddenField id = new HiddenField();
        public HiddenField getId() {
            return id;
        public void setId(HiddenField hf) {
            this.id = hf;
        private Table table1 = new Table();
        public Table getTable1() {
            return table1;
        public void setTable1(Table t) {
            this.table1 = t;
        private TableRowGroup tableRowGroup1 = new TableRowGroup();
        public TableRowGroup getTableRowGroup1() {
            return tableRowGroup1;
        public void setTableRowGroup1(TableRowGroup trg) {
            this.tableRowGroup1 = trg;
        private CachedRowSetDataProvider tarefaDataProvider1 = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getTarefaDataProvider1() {
            return tarefaDataProvider1;
        public void setTarefaDataProvider1(CachedRowSetDataProvider crsdp) {
            this.tarefaDataProvider1 = crsdp;
        private TableColumn tableColumn1 = new TableColumn();
        public TableColumn getTableColumn1() {
            return tableColumn1;
        public void setTableColumn1(TableColumn tc) {
            this.tableColumn1 = tc;
        private TableColumn tableColumn2 = new TableColumn();
        public TableColumn getTableColumn2() {
            return tableColumn2;
        public void setTableColumn2(TableColumn tc) {
            this.tableColumn2 = tc;
        private StaticText staticText6 = new StaticText();
        public StaticText getStaticText6() {
            return staticText6;
        public void setStaticText6(StaticText st) {
            this.staticText6 = st;
        private TableColumn tableColumn5 = new TableColumn();
        public TableColumn getTableColumn5() {
            return tableColumn5;
        public void setTableColumn5(TableColumn tc) {
            this.tableColumn5 = tc;
        private StaticText staticText9 = new StaticText();
        public StaticText getStaticText9() {
            return staticText9;
        public void setStaticText9(StaticText st) {
            this.staticText9 = st;
        private TableColumn tableColumn6 = new TableColumn();
        public TableColumn getTableColumn6() {
            return tableColumn6;
        public void setTableColumn6(TableColumn tc) {
            this.tableColumn6 = tc;
        private StaticText staticText10 = new StaticText();
        public StaticText getStaticText10() {
            return staticText10;
        public void setStaticText10(StaticText st) {
            this.staticText10 = st;
        private TableColumn tableColumn7 = new TableColumn();
        public TableColumn getTableColumn7() {
            return tableColumn7;
        public void setTableColumn7(TableColumn tc) {
            this.tableColumn7 = tc;
        private StaticText staticText11 = new StaticText();
        public StaticText getStaticText11() {
            return staticText11;
        public void setStaticText11(StaticText st) {
            this.staticText11 = st;
        private Button button1 = new Button();
        public Button getButton1() {
            return button1;
        public void setButton1(Button b) {
            this.button1 = b;
        private TableColumn tableColumn8 = new TableColumn();
        public TableColumn getTableColumn8() {
            return tableColumn8;
        public void setTableColumn8(TableColumn tc) {
            this.tableColumn8 = tc;
        private Button button2 = new Button();
        public Button getButton2() {
            return button2;
        public void setButton2(Button b) {
            this.button2 = b;
        // </editor-fold>
         * <p>Construct a new Page bean instance.</p>
        public tarefa() {
         * <p>Return a reference to the scoped data bean.</p>
        protected SessionBean1 getSessionBean1() {
            return (SessionBean1)getBean("SessionBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected ApplicationBean1 getApplicationBean1() {
            return (ApplicationBean1)getBean("ApplicationBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected RequestBean1 getRequestBean1() {
            return (RequestBean1)getBean("RequestBean1");
         * <p>Callback method that is called whenever a page is navigated to,
         * either directly via a URL, or indirectly via page navigation.
         * Customize this method to acquire resources that will be needed
         * for event handlers and lifecycle methods, whether or not this
         * page is performing post back processing.</p>
         * <p>Note that, if the current request is a postback, the property
         * values of the components do <strong>not</strong> represent any
         * values submitted with this request.  Instead, they represent the
         * property values that were saved for this view when it was rendered.</p>
        public void init() {
            // Perform initializations inherited from our superclass
            super.init();
            // Perform application initialization that must complete
            // *before* managed components are initialized
            // TODO - add your own initialiation code here
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            // Initialize automatically managed components
            // *Note* - this logic should NOT be modified
            try {
                _init();
            } catch (Exception e) {
                log("tarefa Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Perform application initialization that must complete
            // *after* managed components are initialized
            // TODO - add your own initialization code here
            initialForm();
         * <p>Callback method that is called after the component tree has been
         * restored, but before any event processing takes place.  This method
         * will <strong>only</strong> be called on a postback request that
         * is processing a form submit.  Customize this method to allocate
         * resources that will be required in your event handlers.</p>
        public void preprocess() {
         * <p>Callback method that is called just before rendering takes place.
         * This method will <strong>only</strong> be called for the page that
         * will actually be rendered (and not, for example, on a page that
         * handled a postback and then navigated to a different page).  Customize
         * this method to allocate resources that will be required for rendering
         * this page.</p>
        public void prerender() {
         * <p>Callback method that is called after rendering is completed for
         * this request, if <code>init()</code> was called (regardless of whether
         * or not this was the page that was actually rendered).  Customize this
         * method to release resources acquired in the <code>init()</code>,
         * <code>preprocess()</code>, or <code>prerender()</code> methods (or
         * acquired during execution of an event handler).</p>
        public void destroy() {
            tarefaDataProvider1.close();
            tarefaDataProvider.close();
            serieDataProvider.close();
            disciplinaDataProvider.close();
         public void lockForm(){
            dtTarefa.setDisabled(true);
            cmbSerie.setDisabled(true);
            cmbDisciplina.setDisabled(true);
            txtDesc.setDisabled(true);       
        public void unlockForm(){
            dtTarefa.setDisabled(false);
            cmbSerie.setDisabled(false);
            cmbDisciplina.setDisabled(false);
            txtDesc.setDisabled(false);    
        public void initialForm(){
            lockForm();
            java.util.Calendar cal = new GregorianCalendar(2006,1,1);
            Date dt = new Date();
            dt.setTime(cal.getTimeInMillis());
            dtTarefa.setMinDate(dt);
            btnNovo.setDisabled(false);
            btnEditar.setDisabled(true);
            btnAtualizar.setDisabled(true);
            btnCancelar.setDisabled(true);     
        public void novoTarefa(){
            unlockForm();
            btnAtualizar.setDisabled(false);
            btnNovo.setDisabled(true);
            btnEditar.setDisabled(true);
            btnCancelar.setDisabled(false);               
        public String button1_action() {
            try{
                RowKey rk = tableRowGroup1.getRowKey();
                if(rk!=null){
                    tarefaDataProvider.removeRow(rk);
                    tarefaDataProvider.commitChanges();
                    tarefaDataProvider.refresh();
            }catch(Exception e){
                log("Erro ao deletar", e);
                error(e.getMessage());
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao deletar");
            return null;
        public String btnNovo_action() {
            op.setText("1");  
            novaTarefa();
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao clicar em NOVO");
            return null;
         public void novaTarefa(){
            unlockForm();
            btnAtualizar.setDisabled(false);
            btnNovo.setDisabled(true);
            btnEditar.setDisabled(true);
            btnCancelar.setDisabled(false);       
        public String btnEditar_action() {
            unlockForm();
            op.setText("2");
            btnEditar.setDisabled(true);
            btnAtualizar.setDisabled(false);
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao clicar em NOVO");
            return null;
        public String button2_action() {
            try{
                RowKey rk = tableRowGroup1.getRowKey();
                if(rk!=null){
                    tarefaDataProvider.setCursorRow(rk);
                    id.setText(tarefaDataProvider.getValue("tarefa.id"));
                    dtTarefa.setValue(tarefaDataProvider.getValue("tarefa.data"));
                    cmbSerie.setSelected(tarefaDataProvider.getValue("tarefa.idserie"));
                    cmbDisciplina.setSelected(tarefaDataProvider.getValue("tarefa.iddisciplina"));
                    txtDesc.setText(tarefaDataProvider.getValue("tarefa.descricao"));
                    lockForm();
                    btnEditar.setDisabled(false);
                    btnNovo.setDisabled(true);
                    btnAtualizar.setDisabled(true);
            }catch(Exception e){
                log("Erro ao deletar", e);
                error(e.getMessage());
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao setar FORM");
            return null;
        public void novoRegistro(){
            Integer id=new Integer(0);
            try {
                RowKey rk = tarefaDataProvider.appendRow();
                tarefaDataProvider.setCursorRow(rk);
                tarefaDataProvider.setValue("tarefa.data",dtTarefa.getSelectedDate());
                tarefaDataProvider.setValue("tarefa.idserie",cmbSerie.getSelected());
                tarefaDataProvider.setValue("tarefa.iddisciplina",cmbDisciplina.getSelected());
                tarefaDataProvider.setValue("tarefa.descricao",txtDesc.getText());
                tarefaDataProvider.commitChanges();
                tarefaDataProvider.refresh();
            } catch (Exception ex) {
                log("Error Description", ex);
                error(ex.getMessage());
        public void atualizaRegistro(){
            try{
                RowKey rk = tarefaDataProvider.findFirst("tarefa.id",id.getText());
                tarefaDataProvider.setCursorRow(rk);
                tarefaDataProvider.setValue("tarefa.data",dtTarefa.getSelectedDate());
                tarefaDataProvider.setValue("tarefa.idserie",cmbSerie.getSelected());
                tarefaDataProvider.setValue("tarefa.iddisciplina",cmbDisciplina.getSelected());
                tarefaDataProvider.setValue("tarefa.descricao",txtDesc.getText());
                tarefaDataProvider.commitChanges();
                tarefaDataProvider.refresh();
            }catch(Exception ex){
                log("Error ao atualizar Noticia",ex);
                error(ex.getMessage());
        public String btnAtualizar_action() {
            if(op.get                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • Having problems with View All Versions in Pages '09 version 4.1

    When I click View All Versions in Pages it displays a pop-up that reads:
    There was a problem connecting to the server.
    URLs with the type "file:" are not supported.
    On the first try it always brings me out of the View All Versions menu, but if I try it again I can look at and edit the version – however, the pop-up remains displayed (and is hard to work around..).
    If anyone knows what's going on, please help me out! I've looked into it, and from what I've read it has something to do with TimeMachine but I don't use TimeMachine. I've tried my best to explain the problem, if more details would be helpful I can provide them.
    Thanks.

    Hi Volantiad,
    Delete Pages will delete the whole document if it has only one section.
    Did you start your document from a Word Processor template? If so, the blank page may be there because there is an invisible character such as a paragraph mark, space, tab...
    Menu > View > Show Invisibles. Click after the offending character(s) and press the delete key.
    Or did you start your document from a Page Layout template?
    Please reply with more information.
    The Pages'09 User Guide is available from the Help Menu in Pages. A good read.
    Regards,
    Ian.

  • Problem with printing selection of web page

    Print selection function from webpage don't print correctly. If text is marked then first line of text is printed not correct (printed only lower part of line). If text is longer than one page there is similar problem at the end of first page and begining of second. The problem occurs on HP LaserJet 4015 printer, and PDF creator too. Firefox 18.0.2 and firefox 19.0 , Windows 7 64bit

    Hi mrbcl1, unfortunately the answer is that Firefox has some bugs when it comes to printing selections!
    Typically, where the top of the selection is cut off, it means that Firefox is applying some style rules meant to position that part of the page on screen -- even though they are irrelevant when printing a selection. There's no built-in way to get Firefox to ignore those rules. You can try a different selection (keep more stuff above) or other interventions, but it can be a waste of time in many cases.
    Here are two workarounds. In both cases, the idea is to isolate the selected part of the page (hide everything else) so you can print it ''normally'', bypassing the limitations of the Print Selection feature.
    (1) Use the [https://addons.mozilla.org/en-US/firefox/addon/nuke-anything-enhanced/ Nuke Anything Enhanced extension]
    See: [https://support.mozilla.org/questions/927457#answer-333518 When using print selection in Firefox 12.0, it prints wherever the selection is on the page (on paper) instead of at the top of the page (of paper).]
    (2) Use a bookmarklet (snippet of JavaScript saved as a button on your bookmarks toolbar) to isolate the selection for printing.
    This is the technique I generally use due to force of habit. The details are in [https://support.mozilla.org/en-US/questions/943039#answer-384875 this post].

Maybe you are looking for