Re-formatting mystery...

Hi, I've been working on FCP recently to edit a number of sequences which I have then exported as 16:9 anamorphic .movs and played in iTunes (seems to give the best image quality for some reason). The look I am trying to achieve is such that when played in full screen mode, the entire screen is filled with the image but it isn't narrow-looking. (Please bear with my juvenile terminology)
Anyway, regardless of whether I had been exporting in the correct settings or not, it had mostly (give or take a few difficult re-formattings for animation sequences created in Photoshop) worked out fine, but now all of a sudden, none of my finalised clips are playing the way they used to. In full screen mode they appear as a reasonably small image in the centre of the frame. Any clues as to the cause of this sudden change? If anyone can offer a foolproof method for exporting all my sequences consistently I would be enormously grateful.

I always do a two step export method:
First, I export as a "self-contained" Quicktime Movie (same codec as the sequence), and then
Second, I open that file in Quicktime (Pro) and do the final export there. Using this method may help you because the QT export box is easier to use, in my opinion.

Similar Messages

  • External drive formatting mystery?

    I have an external hard drive that has worked fine for the last two years. I had it partitioned into two volumes and was a time machine back up on one partition. I have new mac now and wanted to set it up for the new mac. I decided to try and reformat the drive first before I pointed time machine to it and now it's almost doa. Disk utility will see the drive but can not erase it. I've tried to partition it also and that fails also. I've tried connecting via usb and fw/800 and fw/400. I think the drive is physically fine but am wondering if I corrupted it somehow with time machine? I don't need any info on it so I'm fine with a complete wipe but it keeps failing to erase.
    Any help would be greatly appreciated!
    Dave

    Dave Turner3 wrote:
    I really don't want to due an archive and instal of the os x but it's a possibility. Any ideas?
    There is no such thing any more. Snow Leopard has only one Install option, which replaces the old version with a new one, without touching anything else.
    Then download and install the 10.6.5 "combo" update. Info and download available at: http://support.apple.com/kb/DL1324 Be sure to do a +Repair Permissions+ via Disk Utility (in your Applications/Utilities folder) afterwards.

  • Mysterious formatting columns table

    Hi all,
    i don't post a problem, but a curiosity. I'm managing a Oracle BI environment developed by others, so many aspects are unknown for me. I've observed that if i make an Answers request dragging and dropping any columns from my subject area, any of them are still formatted. In detail, if i drag and drop a column that contains double values it is formatted, otherwise if (from same table) i drag and drop a column that contains integer values it isn't formatted. All columns have same class "TableHdg".
    I ask me, where is specified this behaviour? In css style? But how a css style can distinguish between a double and integer values to decide how formatting columns?
    Thanks
    Giancarlo
    Edited by: 832596 on 15-apr-2011 3.47

    Hi,
    thanks for your reply. I've formatted hundreds of tables but i've never noted these options. Incredible!!!!!!!!!. Can you tell me, when i click on "Save as the system-wide for this data type" (for example), where Oracle BI saves formatting options? In a css file? What?
    Thanks
    Giancarlo

  • How can I force Firefox to properly format all html pages to a pdf without losing top and right hand margins?

    Setting up page printout format for pdf on a Mac OS/X Snow Leopard Mac Pro. Printer is HP 8500A OfficeJet Pro Plus bought after July 14, 2011 serial number- CN141CK7QM
    When I print to file as a pdf I am getting the first page correctly but subsequent pages are getting clipped along the top and the right margins.
    I don't have this problem with my IBook 4.0
    The issue is formatting an html page to a pdf when the print request is asking for a pdf or when the print request is to the printer.
    The url to my HP Office jet Pro 8500A Plus is:
    mdns://Officejet%20Pro%208500%20A910%20%5B530E4F%5D._pdl-datastream._tcp.local./?bidi
    I have a IBook G4 and I do not have any of this problem.
    I have specified a default paper size of "USLetter".
    This printing issue is a new one that occurred since I started the Firefox updates after Firefox 6.0 series.
    I am checking with HP on this issue. Prior to the HP8500A (installed in July 2011) I did have a HP6180 Officejet for several years without encountering such a conflict.
    So my second question is; Are there Firefox printing conflicts with the HP 8500A printers?
    EHW 091211

    Joanna,
    It seems that Illy (still) moves in (ever new) mysterious ways.
    I was surprised to see that you got away with your French word, but the hat part must have hidden the first part from the nanny filter. The first part by itself would have become asterisks.

  • My WD 2TB External Drive can't be formatted.

    Hi there,
    Something really mysterious happened last night and it has completely stumped me.
    I have a WD 2TB External Drive that I use with my iMac and Macbook Pro, it's formatted FAT so that I can use it on Windows aswell. This setup has worked well until last night. I plugged the external into a Win PC and it didn't want to pick up. It showed the drive letter and drive but not the usual name. It gave it the generic windows name and when I clicked on the icon nothing happens. When I ran disk management on Win it shows the drive is healthy but that it has 2TB free space which is obviously not true since it had 1TB free space.
    I decided to safely remove it and plugged it into my macbook pro. It then also didn't pick up and only showed up in Disk Utility with the partion grey'd out. I tried for a couple of hours to verify the disk and repair the disk in Disk Utility and it would run and complete both but then when I tried to mount it in Disk Utlity it would say it can't.
    I then thought the drive is fried so I downloaded Drive Drill to see if I could access the content on it to restore my lost data. I ran it and it picked up the drive and restored 100% of my lost information. I then tried to format the drive but everytime I delete the partition and format it it gets stuck on a certain position and won't do anything for hours.
    I know the drive works fine because initially I left it and it eventually formatted the drive and it picked up on the dock. I then tried to copy information over to it and after 100GB it got stuck and wouldn't do a thing. I then decided to format again because I suspected some files that were corrupt might have been transferred over again when restoring the data on it.
    Now my problem is that it shows up in Disk Utility and I can run verify and recovery but as soon as I want to format it doesn't work and it stays stuck at the point of formatting the drive.
    I have already tried the following:
    - A different USB plug
    - Formatting in Windows
    - Different Formats (ex-FAT, NTFS etc)
    - Completely removing the partition and creating a new one
    Here are screen shots of what it says when I verify and recover the drive:

    Thanks for the feedback Linc,
    I have tried to repartition it and I also tried to delete and format, all of it takes time and finishes the process but then when I tried to mount it says it can't mount the drive and neither does it pick up on Windows. Very confused!

  • Format External Drive with Disk Utility, Make it Windows Compatible

    I have formatted my external drive using disk utility, and it works great on my Mac. But no Windows PC can read it, and I need to use it on Windows PCs. I tried formatting as MS-DOS FAT but that didn't work either. What can I do?
    Thanks so much in advance.

    I've run into the problem fairly regularly were I format a drive as FAT32 on the Mac, but Windows won't read it. I just reformat it from the Windows machine as FAT32. My Mac always reads and writes to it just fine, so it has never been a problem, just a minor mystery.
    Francine
    Francine
    Schwieder

  • Mystery Problem in Code...Please Help...

    Ok, here's the situation. I am a photographer, and have been writing code for some time now. I decided to write a java application that would write individual web pages for each jpeg present in two directories, bnw and color, making the job of writing as many as 300 virtually identical pages a lot less annoying. Unfortunately, this is even more so.
    The code is clean in nice, and it compiles without a hitch. When I run the application (w/ jdk 1.4.0) on Windows 98, it comes up with an invalid path error when it tries to create the first of these web pages, but after it writes the list of all the images it sees. (This list is created successfully.) I went back and double checked that there weren't any filenames that Windows would gripe about, and an error was found. I corrected the error, and now everything is kosher, but yet the same error still occurs. I've several different methods of doing the same thing, and every time, the same error occurs at the same spot. I have included the source code below. Please, any help would be appreciated!
    import java.io.*;
    import java.util.*;
    public class listDir {
         public static final String DEBUG = true;
         static {
              if (DEBUG)
                   System.err.println("----------- < DEBUGGING IS ON > -------------");
            public static void main(String[] args) {
              // DEBUG STATEMENT
              System.err.print("DEBUG: Declaring final Strings... ");
                    final String path1 = "E:\\Liam Conrad - Photographer\\800x600\\images\\html\\bnw";
                    final String path2 = "E:\\Liam Conrad - Photographer\\800x600\\images\\html\\color";
              final String line1 = "<html>\r\n<head>\r\n<title></title>\r\n<link href=\"../../master.css\" rel=\"stylesheet\">\r\n</head>\r\n";
              final String line2 = "<body>\r\n<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\r\n<tr>\r\n";
              final String line3 = "<td align=\"center\" valign=\"top\" colspan=\"1\" width=\"100%\">\r\n<p><img src=\"";
              final String line4 = "\" border=\"1\" width=\"432\" height=\"288\" alt=\"\"></p></td></tr></table></body></html>\r\n\r\n\r\n";
              // DEBUG STATEMENT (2)
              System.err.println("[ DONE ]");
              System.err.print("DEBUG: Declaring variables... ");
              String temps1;
              String temps2;
                    RandomAccessFile raf;
                    RandomAccessFile mfo;
                    File d1;
                    File d2;
                    String[] list1;
                    String[] list2;
                    String[] list3;
                    Vector svect = new Vector();
              // DEBUG STATEMENT (2)
              System.err.println("[ DONE ]");
              System.err.println("DEBUG: Beginning try statement.");
                    try {
                            d1 = new File(path1);
                            d2 = new File(path2);
                            raf = new RandomAccessFile("dirlist.txt", "rw");
                            list1 = d1.list();
                            list2 = d2.list();
                            for (int i = 0; i < list1.length; i++) {
                                    if (list1.endsWith(".jpg")) {
    svect.add("bnw_" + list1[i]);
    } else {
    for (int i = 0; i < list2.length; i++) {
    if (list2[i].endsWith(".jpg")) {
    svect.add("color_" + list2[i]);
    } else {
    for (int i = 0; i < svect.size(); i++) {
    raf.writeBytes((i+1) + ":\t" + svect.get(i) + "\r\n");
    raf.close();
                   for (int i = 0; i < svect.size(); i++) {
                        temps1 = svect.get(i) + "\b\b\bhtml";
                        temps2 = temps1;
                        System.out.println(temps2);
                        mfo = new RandomAccessFile(temps2, "rw"); // <--- Here is where the error is occuring every time.
                        mfo.writeBytes(line1);
                        mfo.writeBytes(line2);
                        mfo.writeBytes(line3);
                        mfo.writeBytes((String)svect.get(i));
                        mfo.writeBytes(line4);
                        mfo.close();
    } catch (Exception e) {
    e.printStackTrace();
                   System.err.println((char)7 + "\n");

    Hi buddy
    First of all, there is no mystery in this program. Everything is pretty clear...
    OK, Instead of pointing out the mistakes you have done, I thought why not may be I cam modify the program and then give u the code. Go thru the code and you will understand the mistakes you have done. You have to make a few changes to make this applicable to you. Firstly, change the directory names, secondly, change the GIFs to JPGs, thirdly, add the table formatting that you were looking for(i removed the formatting for simplicity)... and things like that.
    Lot of things to say about : Since you are creating a html file in the current directory and in that html file, you are refering to the images in two other directories, you wont be able to see the images unless you move the files to the current working directory. And you cannot move a file from one directory to another using Java IO(Only way is you can create exact replicas of the files in other directories). Or, One way to get around with this problem is : Use full path of the file instead of just the name of the GIF(or jpeg or whatever) file. That is what I have done in the following program.
    Cheers
    -Uday
    import java.io.*;
    import java.util.*;
    public class Picture {
         public static final boolean DEBUG = true;
         static {
              if (DEBUG)
                   System.err.println("----------- < DEBUGGING IS ON > -------------");
    public static void main(String[] args) {
              // DEBUG STATEMENT
              System.err.print("DEBUG: Declaring final Strings... ");
    final String path1 = "C:\\uday\\PIC\\one";
    final String path2 = "C:\\uday\\PIC\\two";
              final String line1 = "<html>\r\n<head>\r\n<title></title>\r\n</head>\r\n";
              final String line2 = "<body>\r\n<table>\r\n<tr>\r\n";
              final String line3 = "<td align=\"center\" valign=\"top\">\r\n<p><img src=\"";
              final String line4 = "\" alt=\"\"></p></td></tr></table></body></html>\r\n\r\n\r\n";
              // DEBUG STATEMENT (2)
              System.err.println("[ DONE ]");
              System.err.print("DEBUG: Declaring variables... ");
              String temps1;
              String temps2;
    RandomAccessFile raf;
    RandomAccessFile mfo;
    File d1;
    File d2;
    String[] list1;
    String[] list2;
    String[] list3;
    Vector svect = new Vector();
              Vector nvect = new Vector();
              // DEBUG STATEMENT (2)
              System.err.println("[ DONE ]");
              System.err.println("DEBUG: Beginning try statement.");
    try {
    d1 = new File(path1);
    d2 = new File(path2);
    raf = new RandomAccessFile("dirlist.txt", "rw");
    list1 = d1.list();
    list2 = d2.list();
    for (int i = 0; i < list1.length; i++) {
    if (list1.endsWith(".gif")) {
                             nvect.add(path1+"\\"+list1[i]);
                             String temp1 = "one_"+list1[i].substring(0,list1[i].lastIndexOf(".gif"));
    svect.add(temp1);
    } else {
    for (int i = 0; i < list2.length; i++) {
    if (list2[i].endsWith(".gif")) {
                             nvect.add(path2+"\\"+list2[i]);
                             String temp2 = "two_"+list2[i].substring(0,list2[i].lastIndexOf(".gif"));
    svect.add(temp2);
    } else {
    for (int i = 0; i < svect.size(); i++) {
    raf.writeBytes((i+1) + ":\t" + svect.get(i) + "\r\n");
    raf.close();
                   for (int i = 0; i < svect.size(); i++) {
                        temps1 = svect.get(i) + ".html";
                        temps2 = temps1;
                        System.out.println(temps2);
                        mfo = new RandomAccessFile(temps2, "rw"); // <--- Here is where the error is
    occuring every time.
                        mfo.writeBytes(line1);
                        mfo.writeBytes(line2);
                        mfo.writeBytes(line3);
                        mfo.writeBytes((String)nvect.get(i));
                        mfo.writeBytes(line4);
                        mfo.close();
    } catch (Exception e) {
    e.printStackTrace();
                   System.err.println((char)7 + "\n");

  • The Great iMac FireWire Mystery

    I'm stumped on this one and was wondering if anyone had any suggestions.
    A couple of months ago I replaced my mother's mirror door G4 (2x1GHz) with a 20" 2.16GHz Intel iMac (the last of the all-white iMacs). Her G4 had an 80GB and a 60GB internal hard drives, with the 80GB being the boot drive and the 60GB being accessed exclusively by Retrospect to do incremental backups on a nightly basis and a recycle backup once a month. This system worked quite well for the past couple of years.
    Her iMac has a 250GB internal drive. I added a Newer Tech miniStack v2 200GB hard drive which I have connected via FireWire. Using the same Retrospect-based system, backups are performed regularly. However, there's a fly in the ointment. Occasionally and for reasons unknown the computer will unmount the FireWire drive all by itself. This happens regardless of whether the computer is idle or in use. Power cycling the drive will remount it and all is well afterwards -- until the next time. It seems to happen about once every 2-3 days. The drive can be connected for 2-3 days at a time without any problems, but then it just disappears. Poof.
    Things to remove from the list right off the bat...
    1. The miniStack drive is fine, having performed its duties on several other computers in the past and operating flawlessly in the same capacity on other computers (including a MacBook Pro and an aluminum iMac).
    2. OS X is set to sleep the drive when it's not in use. Since the incremental backup process takes less than five minutes a day to complete, having the drive spun up 24/7/365 makes little sense. The drive happily spins up when Retrospect does its thing (assuming the drive is still on the desktop at that time, of course) and the drive happily spins down shortly after Retrospect finishes (again, assuming...). A suggestion of "turn drive sleep off" is not acceptable for this reason, and for the fact that the other computers that the drive was attached to also had drive sleep enabled and didn't have this problem.
    3. The OS X installation (10.4.10) is very clean, having been installed when the iMac was installed. There are no "haxies" or anything weird like that installed. The only "modification" to the system is enabling the DEBUG menu in Safari. When I put the iMac into target disk mode and boot my wife's MacBook Pro from the iMac's hard drive, the miniStack drive does not show this problem. If the OS X installation was to blame then the MacBook Pro should also have lost the drive.
    4. I've also gone the other way, booting the iMac from the MacBook Pro's OS (10.4.8 and 10.4.10) in target disk mode. The problem remains on the iMac.
    5. The iMac itself has been checked out by Tekserve and the Apple Store, both in Manhattan, and has been pronounced 100% without error or problem. The iMac also passes the hardware test provided on the Apple CD and the TechTool Pro diagnostic. All other aspects of the computer perform flawlessly.
    6. The FireWire cable has been replaced, and both the old and new cables are perfectly functional with all other drives and computers tested.
    7. With one exception, other FireWire devices on the iMac seem to work flawlessly in all other regards. I've tried two camcorders, an iSight webcam, a friend's FireWire-to-MIDI box, a DVD burner, and a FireWire CF card adapter. All perform perfectly. The one exception is a 60GB portable FireWire hard drive. This drive performs exactly the same way on the iMac; that is; you can connect it and use it without a problem, but if you keep it connected for 2-3 days it too disappears from the desktop just like the miniStack drive. (I had a 2GB CF card connected to a FireWire CD card adapter, and it was mounted on the desktop as a formatted Mac volume. This card stayed on the desktop for five days without a problem, so the problem seems to be localized to actual hard drives and not just mass storage devices.)
    8. The iMac performs perfectly in target disk mode. I had it in TDM connected to the MacBook Pro for several days and it never disappeared.
    So, I'm at a loss. My current "fix" is to connect the drive to the iMac via USB and that seems to be working. That seems to indicate that it's a FireWire problem but I've never heard of one so specific to one particular category of hardware before (e.g., hard drives). Regardless, that doesn't solve this mystery. Yes, the drive works under USB....but why not FireWire like it should?

    I have been having similar problems with a Mybook FW HD disappearing and remounting at random intervls. I am in the process of replacing it with a Fantom 1000.( I have a 300G Fantom with an Oxford chipsest that has been completley reliable for > 2yrs attached via FW400).
    The Fantom 1000 mounted immediately with FW800, but as it was Fat32 formatted I decided to erase and reformat with MacOS extended using disk utility. I haven't been able to mount the final product, although it is recognized and described by the System. Disk utility can't verify or repair due to a formatting error.. I should mention that disk utility never gave any indication that it had finished the formating.. the blue barber pole was still spinning after 12 hrs
    How long should it take to format a 1T disk?
    Anyway now I am trying using a FW400 port and am about 1 hr into it...... next I will try USB and if that fails I will try to return to FAT 32... I should have quit while I was ahead
    My question .... is this a FW problem, a Fantom problem or a formatting (Disk utility probem)

  • Wma files getting error message the media being played is of an unsupported format

    I have tried many methods of moving wma files from my pc to my 8310.  Some work and others trigger the error message "the media being played is of an unsupported format"  Why some work and other don't is mysterious to me.

    See this KB for supported media formats:
    KB05482 Media types supported on the BlackBerry smartphone
    Now, that is for the native BB media player...if you are using this app you say you installed, then your query needs to be addressed to the app developer...
    Hope that helps!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • MS Word 2004 print/save as pdf - mysterious blank page

    Hi,
    I'm using Microsoft Word 2004 with OS 10.4.6. When I use the Save as pdf feature under the Print dialog, I keep getting blank pages in the pdf that don't appear in the Word Doc itself.
    The Word document contains 30 pages. The first page is a jpeg graphic. I managed to get it to print fine the other day, but after my wife fixed a few spelling errors, I got a blank page as the second page in the pdf. Strangely enough, there is no blank page there in Word. I turned on invisible characters in Word and couldn't find any stray characters. The first page is a jpeg graphic that takes up 75% of the page.
    All of the pages are formatted the same, portrait 8 1/2 x 11 with standard margins. Anyone have any suggestions?
    Thanks!
    Michael
    Power Mac G5   Mac OS X (10.4.6)   MS Word 2004 for Mac

    Hi,
    I tried pulling out the margins all the way the the edge, but I'm still experiencing the problem. I also tried reducing the image size significantly with no success. Any suggestions?
    I also tried deleting the image. With the image gone, the extra page goes, too. The page with the section break is still there but mysterious page #2 is gone. When I import the image again, though, I re-create the problem.
    I just realized I didn't try the 'Use Printer metrics to layout document' that Paul suggested and might look into that.
    Any other suggestions? I hesitate to do it because the document is somewhat elabourate, but I might try rebuilding the first few pages in a new document to see if I add the image first and then add the text if it will solve the problem.
    One other question. When I reveal invisible formatting, it does show two paragraph marks in the footer. This is the same for all footers on every page in the entire document. Could that be causing the problem? If so, do you know if it is possible to delete only the footer on the first page?
    One other clue: I used to have a graphic on the back page and now that I think of it, there was a blank page after it, too. It sure sounds like your tiling description...
    Thanks again for your help.
    Michael

  • XML binary storage format impairs schema validation?

    I'm using Oracle 11g R1 on Windows Server 2003. I successfully registered schemas and created tables and indexes in the new binary storage format. However, when trying to load data, I'm running into problems. Schema validation behaves as if not the full feature set of XML Schema mysteriously isn't supported anymore.
    There is probably more but at least wildcard elements (xs:any) and element references (xs:element ref="STH") are simply ignored in the schema definition and data is rejected even when it conforms to the schema.
    Is there any solution for this or am I out of luck? I wanted to go back to CLOB storage as used in a previous installation but I'm running into problems when registering the schema. It complains about an empty SQL name although I don't have any defined. I'm pretty weirded out by all this.
    I created the schema and table in a straightforward way:
    begin
      dbms_xmlschema.registeruri(
        schemaurl => 'http://www.xxxhello.com/archive_tsd.xsd',
        schemadocuri => '/public/user/archive_tsd.xsd',
        gentypes => FALSE,
        options => DBMS_XMLSCHEMA.REGISTER_BINARYXML
    end;
    CREATE TABLE archive OF xmltype XMLTYPE STORE AS binary xml XMLSCHEMA
    "http://www.xxxhello.com/archive_tsd.xsd" ELEMENT "CompleteDocument";
    create index idx_lastmodified_archive on archive t
    (extractvalue(VALUE(t),'/CompleteDocument/DocContent/LastModified'));Because of xs:any or element references is ignored, I get errors like
    LSX-00213: only 0 occurrences of particle "REFDELEM", minimum is 1.
    Thanks for your help.

    The schema is very large (>200kb). Where should I upload it or can I send it to you? I'm bit concerned about confidentiality of company data. However, the instance is not valid yet. I'm in the process of modifying the schema to match all instances, but it breaks on places that should be already okay. No, I didn't use SchemaValidate ever.
    But I've made an example where at least xs:any doesn't work. Element references work, though.
    Sample schema:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <xs:schema
      xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition"
      xmlns:xs = "http://www.w3.org/2001/XMLSchema">
      <xs:annotation>
        <xs:appinfo>
          <tsd:schemaInfo name = "sbreak">
            <tsd:collection name = "sbreak"></tsd:collection>
            <tsd:doctype name = "CompleteDocument">
              <tsd:logical>
                <tsd:content>open</tsd:content>
                <tsd:systemGeneratedIdentity reuse = "false"></tsd:systemGeneratedIdentity>
              </tsd:logical>
            </tsd:doctype>
            <tsd:adminInfo>
              <tsd:server>4.4.1.1</tsd:server>
              <tsd:modified>2007-07-03T16:00:46.484+02:00</tsd:modified>
              <tsd:created>2007-07-03T15:29:04.968+02:00</tsd:created>
              <tsd:version>TSD4.4</tsd:version>
            </tsd:adminInfo>
          </tsd:schemaInfo>
        </xs:appinfo>
      </xs:annotation>
      <xs:element name = "CompleteDocument">
        <xs:complexType>
          <xs:choice minOccurs = "0" maxOccurs = "unbounded">
            <xs:element name = "ComplexNormal">
              <xs:complexType>
                <xs:choice minOccurs = "0" maxOccurs = "unbounded">
                  <xs:element name = "NormalElem1" type = "xs:string"></xs:element>
                  <xs:element name = "NormalElem2" type = "xs:string"></xs:element>
                </xs:choice>
              </xs:complexType>
            </xs:element>
            <xs:element name = "ComplexAny">
              <xs:complexType>
                <xs:choice minOccurs = "0" maxOccurs = "unbounded">
                  <xs:any minOccurs = "0" maxOccurs = "unbounded"></xs:any>
                </xs:choice>
              </xs:complexType>
            </xs:element>
            <xs:element name = "ComplexRef">
              <xs:complexType>
                <xs:choice minOccurs = "0" maxOccurs = "unbounded">
                  <xs:element ref = "RefdElem"></xs:element>
                </xs:choice>
              </xs:complexType>
            </xs:element>
            <xs:element name = "LastModified" type = "xs:string"></xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
      <xs:element name = "RefdElem">
        <xs:complexType>
          <xs:choice minOccurs = "0" maxOccurs = "unbounded">
            <xs:element name = "Elem1" type = "xs:string"></xs:element>
            <xs:element name = "Elem2" type = "xs:string"></xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:schema>Sample instance:
    <?xml version="1.0" encoding="UTF-8" ?>
    <CompleteDocument>
         <ComplexNormal>
              <NormalElem1>Test1</NormalElem1>
              <NormalElem2>Test2</NormalElem2>
         </ComplexNormal>
         <ComplexAny>
              <AnyElem>Test3</AnyElem>
         </ComplexAny>
         <ComplexRef>
              <RefdElem>
                   <Elem1>Test4</Elem1>
                   <Elem2>Test5</Elem2>
              </RefdElem>
         </ComplexRef>
    </CompleteDocument>Log of what I did. First I confirmed, that I could enter the instance using clob storage:
    SQL> begin
      2    dbms_xmlschema.registeruri(
      3      schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd',
      4      schemadocuri => '/public/sbreak_tsd.xsd'
      5    );
      6  end;
      7  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    SQL> CREATE TABLE sbreak OF xmltype XMLTYPE STORE AS clob XMLSCHEMA
    "http://www.xxxhello.com/sbreak_tsd.xsd" ELEMENT "CompleteDocument";
    Tabelle wurde erstellt.
    SQL> create index idx_lastmodified_sbreak on sbreak t (extractvalue(VALUE(t),
    '/CompleteDocument/LastModified'));
    Index wurde erstellt.
    SQL> insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
    NLS_CHARSET_ID('AL32UTF8')));
    1 Zeile wurde erstellt.Then I deleted table and schema again:
    SQL> drop index idx_lastmodified_sbreak;
    Index wurde gelöscht.
    SQL> drop table sbreak;
    Tabelle wurde gelöscht.
    SQL> begin
      2    dbms_xmlschema.deleteschema(
      3      schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd'
      4     ,delete_option => dbms_xmlschema.delete_cascade_force
      5    );
      6  end;
      7  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.After that I created schema and table with binary XML storage and tried to insert the same instance again:
    SQL> begin
      2    dbms_xmlschema.registeruri(
      3      schemaurl => 'http://www.xxxhello.com/sbreak_tsd.xsd',
      4      schemadocuri => '/public/sbreak_tsd.xsd',
      5      gentypes => FALSE,
      6      options => DBMS_XMLSCHEMA.REGISTER_BINARYXML
      7    );
      8  end;
      9  /
    PL/SQL-Prozedur erfolgreich abgeschlossen.
    SQL> CREATE TABLE sbreak OF xmltype XMLTYPE STORE AS binary xml XMLSCHEMA
    "http://www.xxxhello.com/sbreak_tsd.xsd" ELEMENT "CompleteDocument";
    Tabelle wurde erstellt.
    SQL> create index idx_lastmodified_sbreak on sbreak t (extractvalue(VALUE(t),
    '/CompleteDocument/LastModified'));
    Index wurde erstellt.
    SQL> insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
    NLS_CHARSET_ID('AL32UTF8')));
    insert into sbreak values(xmltype(bfilename('DATA', 'sbreak/sbreakinstance.xml'),
    NLS_CHARSET_ID('AL32UTF8')))
    FEHLER in Zeile 1:
    ORA-31011: XML-Parsing nicht erfolgreich
    ORA-19202: Fehler bei XML-Verarbeitung
    LSX-00021: undefined element "AnyElem"
    aufgetretenSorry about the non-english text, but I think it can be guessed easily what's going on. Next I'll try a modifed schema without the tsd namespace added by the schema editor I use (the original large schema has been migrated from the Tamino XML database).

  • Pdftotext extracting from image files mystery

    hello all, just had a bit of a shock when I ran pdftotext (accidentally) on an unocr'd pdf file, and it extracted all the text. Running pdftohtml (as I'd intended) produced the expected output - i.e. png dumps. Curious, I then tried running it on a bunch of other downloaded files, and with the exception of one, pdftotext extracted the text from ALL of them. The mystery then is that it isnt using any ocr (no tesseract dependency, plus it's way too quick), so clearly it must be pulling it directly from the files. But if the text really is there in the original, then presumably the people who scanned them didn't know, else they'd have left it there. The only thing I can think is that some common piece of pdf software (probably acrobat) has ocr built in, so it's scanning them automatically and then encoding the hidden text in the pdf.
    take for example (legal):
    http://www.cd3wd.com/cd3wd_40/JF/JF_VE/SMALL/27-714.pdf
    open up in a normal pdfreader - very clearly a (poorly) scanned document. Now run 'pdftotext -layout'  on it and you get a pretty impressive text file, considering the source. Sure, some of the formatting is messed up, but I'm sure anyone with sed knowledge could quickly sort most of that out. Besides, that's one of the worst documents -  on most others it was perfect, maintaining columns (even tesseract can't do that) and everything.
    It makes for a fantastic command line pdf reader that works on almost all the files I've thrown at it, and since pdf's are almost the only reason I ever have to load up X, consider me tickled pink.
    Just thought I'd mention it here, as a google search brings up nothing on the issue. hope someone finds it useful

    Yes, Adobe Acrobat has a feature that allows you OCR the text and insert the text as a separate layer behind the image. Such PDFs are called "Searchable image PDFs". There are no doubt some other commercial software options that can do this too. The copier/scanner/multifunction device in my office actually does this automatically when you scan in a text PDF.
    Theoretically, it is even possible to create PDFs like this using free software on linux (a combination of ExactImage and Cuneiform; or WatchOCR).
    See, e.g., this blog post:
    Searchable PDFs with linux
    and this slashdot story:
    Open Source OCR that makes Searchable PDFs
    My own experiments with trying to get something like this to work have not been very successful--at least the quality of the result is nowhere near what I'm getting with our work printer.
    If you like pdftohtml, you should also know about pdfreflow, which takes the XML output of pdftohtml with the -xml flag and creates an html file that can be reflowed (I.e., is smart about paragraph breaks, removes page numbers and recombines words broken through hyphenation and so on).
    pdfreflow
    Last edited by frabjous (2010-10-15 13:03:00)

  • Problem Printing Templates -- Formatting is Jagged, Blocky

    This is such a mystery. On the screen the Template looks great. When I go to the print menu and make a pdf it looks great. But when I print -- whether I print from Pages, or print the pdf -- the quality of the edges of the template is awful.
    To be specific, the images and text look great in the prints. What is off is the formatting. For example, sometimes images are on a tilt and there is a border around them. This tilted border is jagged and pixelated, not smooth as it is in Pages and in the pdf.
    I've never had such a problem with this printer. The driver seems updated. Also Pages is updated.
    Can anyone help?!

    Have you installed the latest [drivers?|http://www.usa.canon.com/cusa/support/office/colorimagerunner_copiers/color_imagerunner_c2550_c2880_c2880i_c3380_c3380i_c3080_c348 0/color_imagerunnerc3480#DriversAndSoftware]
    To be frank this looks like problems I used to encounter with digital printers several years ago from Indesign files. It came down to the printer's postscript emulation not being able to handle transparency.
    Peter

  • Mysterious FM- RH style mapping override with span tag

    I have been working in a super clean FM and RH project that is has one to one mappings for all my styles in the FM to same named styles in RH, just to be sure I do not mess up. Still, though, I seem to get a mystery mapping.  For my bullets and lists, RH is adding a span tag with font set to Times Roman.  I cannot find *any* css that has Times Roman. I've checked things like my character tags, my cross reference tags, etc and cannot find a correlation.  Where would this be added if it's not in my FM Format definitions and not in my RH Style definitions. I tried reimporting the book to see if it needed a tickle of the project mappings template but that didn't help.
    I'm attaching some images in hopes someone has ideas. The example does not appear to be times roman in Design view, but in more complex topics it's pretty obvious.
    I have so many hacks for single sourcing now, about ready to give up.
    Got help?
    FM 10
    RH 11

    Thanks for the fast reply Arnis,
    I did not even notice that the span tag ended on the spaces, so it can't be what's causing the odd previews I'm seeing.  So it seems my original question is not well thought out, so I'm going to retest with some other style changes.
    Still, though I'm wanting to follow up on getting rid of the Times tag anyway.  The bullets are always defined as Verdana. Bullet is set to use "Default Font" while BulletLevel2 uses "Bold" (the char def for Bold is also Verdana).  Is there some place I have to map "tabs" to not be Times? I dont think it's the Default Font issue because bullet 2 uses Bold.
    Here are some screenshots.

  • MYSTERY!.. action not invoked on encoded commandLink...  WHY?

    Hi All !!!
    QUESTION: How are the navigation definition (in faces-config.xml) is "wired" to a "HtmlCommandButton" I encode in my custom renderer... or any other encoded UICommand?...
    This is a mystery to me at the moment. I have not been able to find any clear explanation as to how this works -- so I've not been able to debug the issue below.
    The issue: I encode an HtmlCommandButton in my custom renderer, and add an "action" attribute bound to a backing bean method "doAction()"...
    ---But, the action method is never invoked!!!
    Again, this is primarily due to the fact that I cannot tell what "wires" the navigation definitions (in faces-config.xml) to the "action" attribute in the command button and the "doAction()" method in the backing bean.
    Please let me know what I am missing or omitting from this code to allow the "action" mechanism to work properly!! :-).
    Below is the entire test application (custom component).... The idea is to have the user click on a div tag which popluates a hidden input tag and clicks a hidden HtmlCommandButton to submit the request. The application should navigate to the same page or another page based on the value of the clicked div tag.
    ***gorm.jsp***
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://mycomponents" prefix="my"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
            <link rel="stylesheet" type="text/css" href="./stylesheet.css" title="Style">
        </head>
        <body>
            <f:view>
                <h:form id="form01">
                    <h:messages/>
                    <f:verbatim><h1>Testing custom JSF component: XYZTag:  Click on a div tag...</h1></f:verbatim>
                    <my:xyz id="xyz01" divdata="#{caveBean.divdata}" valueclicked="#{caveBean.valueclicked}" />
                </h:form>
            </f:view>
        </body>
    </html>
    ***blidge.jsp***
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://mycomponents" prefix="my"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
            <link rel="stylesheet" type="text/css" href="./stylesheet.css" title="Style">
        </head>
        <body>
            <f:view>
                <h:form id="form01">
                    <h:messages/>
                    <f:verbatim><h1>show value of the div tag that was picked...</h1></f:verbatim>
                    <h:outputText value="#{caveBean.valueclicked}" />
                    <f:verbatim><br/></f:verbatim>
                    <h:commandButton value="goback" type="submit" action="#{caveBean.doAction}"/>
                </h:form>
            </f:view>
        </body>
    </html>
    ***CaveBean.java*** (backing bean)
    package xyz;
    import java.util.*;
    public class CaveBean
        private List divdata;
        private String valueclicked;
        public CaveBean()
        public void setDivdata(List divdata)
            this.divdata = divdata;
        public List getDivdata()
            List list = new ArrayList();
            list.add("blidge");
            list.add("gorm");
            list.add("glargle");
            return list;
        public String getValueclicked()
            System.out.println("valueclicked was:" + this.valueclicked + "!");
            return this.valueclicked;
        public void setValueclicked(String valueclicked)
            this.valueclicked = valueclicked;
            System.out.println("valueclicked set to:" + this.valueclicked + "!");
        public String doAction()
            System.out.println("doAction() invoked!");
            if (valueclicked.equals("gorm"))
                return "gorm";
            else
                return "blidge";
    ***taglib (tld)***
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
      <tlib-version>0.03</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name>mycomponents</short-name>
      <uri>http://mycomponents</uri>
      <description>mycomponent tags</description>
      <tag>
        <name>xyz</name>
        <tag-class>mycomponents.XYZTag</tag-class>
        <attribute>
          <name>id</name>
          <description>this component's id</description>
        </attribute>
        <attribute>
          <name>rendered</name>
          <description>is this component rendered?</description>
        </attribute>
        <attribute>
          <name>divdata</name>
          <description>div label strings</description>
        </attribute>
        <attribute>
          <name>valueclicked</name>
          <description>value of leaf node that was clicked</description>
        </attribute>
      </tag>
    </taglib>
    ***XYZTag***
    package mycomponents;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentBodyTag;
    import javax.faces.el.ValueBinding;
    import javax.faces.context.FacesContext;
    public class XYZTag extends UIComponentBodyTag
        private String divdata;
        private String valueclicked;
        public String getComponentType ()
            return "XYZComponent";
        public String getRendererType ()
            return "XYZRenderer";
        @Override
            protected void setProperties (UIComponent component)
            super.setProperties (component);
            if( divdata != null )
                if (isValueReference (divdata))
                    FacesContext context = FacesContext.getCurrentInstance ();
                    Application app = context.getApplication ();
                    ValueBinding vb = app.createValueBinding (divdata);
                    component.setValueBinding ("divdata", vb);
                else
                    component.getAttributes ().put ("divdata", divdata);
            if( valueclicked != null )
                if (isValueReference (valueclicked))
                    FacesContext context = FacesContext.getCurrentInstance ();
                    Application app = context.getApplication ();
                    ValueBinding vb = app.createValueBinding (valueclicked);
                    component.setValueBinding ("valueclicked", vb);
                else
                    component.getAttributes ().put ("valueclicked", valueclicked);
        //setting "#{}" stuff...
        public String getDivdata ()
            return this.divdata;
        public void setDivdata (String divdata)
            this.divdata = divdata;
        public String getValueclicked ()
            return this.valueclicked;
        public void setValueclicked (String valueclicked)
            this.valueclicked = valueclicked;
        public void release ()
            super.release ();
            divdata = null;
            valueclicked = null;
    ***XYZComponent***
    package mycomponents;
    import javax.faces.component.UIComponentBase;
    import javax.faces.component.UICommand;
    import javax.faces.context.FacesContext;
    import java.util.List;
    import javax.faces.el.ValueBinding;
    public class XYZComponent extends UICommand
        private List divdata;
        private String valueclicked;
        public XYZComponent()
            setRendererType("XYZRenderer");
        public void setDivdata(List divdata)
            this.divdata = divdata;
        public List getDivdata()
            if(null != divdata)
                return divdata;
            ValueBinding _vb = getValueBinding("divdata");
            if(_vb != null)
                return (List)_vb.getValue(getFacesContext());
            else
                return null;
        // setting "#{}" stuff
        public void setValueclicked(String valueclicked, FacesContext facesContext)
            this.valueclicked = valueclicked;
            ValueBinding _vb = getValueBinding("valueclicked");
            _vb.setValue(facesContext,valueclicked);
        public String getValueclicked()
            if(null != valueclicked)
                return valueclicked;
            ValueBinding _vb = getValueBinding("valueclicked");
            if(_vb != null)
                return (String)_vb.getValue(getFacesContext());
            else
                return null;
        @Override
            public Object saveState(FacesContext context)
            Object values[] = new Object[2];
            values[0] = super.saveState(context);
            values[1] = divdata;
            values[2] = valueclicked;
            return ((Object) (values));
        @Override
            public void restoreState(FacesContext context, Object state)
            Object values[] = (Object[])state;
            super.restoreState(context, values[0]);
            divdata = (List) values[1];
            valueclicked   = (String)  values[2];
        @Override
            public String getFamily()
            return "XYZ";
    ***XYZRenderer***
    package mycomponents;
    import javax.faces.component.UIComponent;
    import javax.faces.render.Renderer;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    import javax.faces.application.Application;
    import javax.faces.application.ApplicationFactory;
    import javax.faces.FactoryFinder;
    import javax.faces.component.UICommand;
    import javax.faces.component.html.HtmlCommandButton;
    import javax.faces.el.MethodBinding;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.Iterator;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Document;
    public class XYZRenderer extends Renderer
        List divdata;
        String valueclicked;
        // is there a way to derive this, rather than hardcoding???
        String divaction = "#{" + "caveBean" + ".doAction}";
        public XYZRenderer()
        @Override
            public void decode(FacesContext context, UIComponent component)
            Map requestMap = context.getExternalContext().getRequestParameterMap();
            String clientId = component.getClientId(context);
            String value = (String) requestMap.get(clientId);
            XYZComponent xYZComponent = (XYZComponent)component;
            xYZComponent.setValueclicked((String)requestMap.get(clientId + ":valueclicked"),context);
        @Override
            public void encodeEnd(FacesContext context, UIComponent component) throws java.io.IOException
            XYZComponent xYZComponent = (XYZComponent)component;
            ResponseWriter writer = context.getResponseWriter();
            String clientId  = component.getClientId(context);
            Map test = component.getAttributes();
            divdata         = (List)   component.getAttributes().get("divdata");
            valueclicked    = (String) component.getAttributes().get("valueclicked");
            Map requestMap = context.getExternalContext().getRequestParameterMap();
            //build clickable div tags
            Iterator iterator = divdata.iterator();
            while (iterator.hasNext())
                String divlabel = String.valueOf(iterator.next());
                writer.startElement("div",component);
                writer.writeAttribute("onclick", "javascript: var thisform=this; while (thisform.nodeName != 'FORM') thisform = thisform.parentNode; var valueclicked=document.getElementById('"+ clientId +":valueclicked'); valueclicked.value='" + divlabel + "'; alert('you clicked the " + divlabel + " div tag'); document.getElementById('" + (clientId +"hiddenbutton").replaceAll(":","") +  "').click();", null);
                writer.writeText(String.valueOf(divlabel) ,null);
                writer.endElement("div");
            //build hidden input field that will be populated by the value of the clicked div tag
            writer.startElement("input", component);
            writer.writeAttribute("type", "hidden", null);
            writer.writeAttribute("id", clientId + ":valueclicked", null);
            writer.writeAttribute("name", clientId + ":valueclicked", null);
            writer.writeAttribute("value", "", null);
            writer.endElement("input");
            //build hidden button, whose dom "click" method will be invoked when div tags are clicked
            writer.startElement("div",component);
            encodeHiddenButton(context, clientId, divaction);
            writer.endElement("div");
        private HtmlCommandButton createHiddenButton(FacesContext context, String clientId, String divaction)
            Application application = context.getApplication();
            HtmlCommandButton hiddenButton = (HtmlCommandButton) context.getApplication().createComponent(HtmlCommandButton.COMPONENT_TYPE);
            ApplicationFactory factory = (ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
            MethodBinding binding = factory.getApplication().createMethodBinding(divaction,null);
            hiddenButton.setId((clientId +"hiddenbutton").replaceAll(":",""));
            hiddenButton.setType("button");
            hiddenButton.setAction(binding);
            hiddenButton.setOnclick("javascript: alert('youve clicked the new HtmlCommandButton - invisible submit button!...'); var thisform=this; while (thisform.nodeName != 'FORM') thisform = thisform.parentNode;thisform.submit();");
            hiddenButton.setValue("hiddenbutton");
            return hiddenButton;
        private void encodeHiddenButton(FacesContext context, String clientId, String divaction)
        throws IOException
            HtmlCommandButton hiddenButton = createHiddenButton(context, clientId, divaction);
            hiddenButton.encodeBegin(context);
            hiddenButton.encodeChildren(context);
            hiddenButton.encodeEnd(context);
    ***web.xml***
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
          version="2.4">
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.faces</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>30</session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>gorm.jsp</welcome-file>
        </welcome-file-list>
        <jsp-config>
            <taglib>
                <taglib-uri>/mycomponents</taglib-uri>
                <taglib-location>/WEB-INF/tlds/mycomponents.tld</taglib-location>
            </taglib>
        </jsp-config>
    </web-app>
    *** faces-config.xml***
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
       <navigation-rule>
          <from-view-id>/gorm.jsp</from-view-id>
          <navigation-case>
             <from-outcome>gorm</from-outcome>
             <to-view-id>/gorm.jsp</to-view-id>
          </navigation-case>
          <navigation-case>
             <from-outcome>blidge</from-outcome>
             <to-view-id>/blidge.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <navigation-rule>
          <from-view-id>/blidge.jsp</from-view-id>
          <navigation-case>
             <from-outcome>submit</from-outcome>
             <to-view-id>/gorm.jsp</to-view-id>
          </navigation-case>
       </navigation-rule>
       <managed-bean>
          <managed-bean-name>caveBean</managed-bean-name>
          <managed-bean-class>xyz.CaveBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
       </managed-bean>
        <component>
            <component-type>XYZComponent</component-type>
            <component-class>mycomponents.XYZComponent</component-class>
        </component>
        <render-kit>
            <renderer>
                <component-family>XYZ</component-family>
                <renderer-type>XYZRenderer</renderer-type>
                <renderer-class>mycomponents.XYZRenderer</renderer-class>
            </renderer>
        </render-kit>
    </faces-config>--thanks again for any help!!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

    Hi,
    I THINK this is what you are after. You firstly shoudl add a new attribute to your component which can take a value binding expression to your bean method, this function can take any format is likes in your backing bean as long as it is public. In you tag you will then need some code similar to this:
    if(divaction != null){
             if(isValueReference(divaction )){
                    //This line here is if your function takes a single Integer arguement,
                   //you should replace it with whatever is correct for your function.
              Class[] defineParams = {Integer.class};
              MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding(divaction , defineParams);
              ((YourComponent)component).setDivaction(mb);
             else{
              MethodBinding mb = Util.createConstantMethodBinding(divaction );
              ((RelationshipsComponent)component).setDivaction(mb);
         }And in your component you will need to add a MethodBinding variable with teh relevent getter/setter. One thing that I had a problem with here is that you must now implement the save/restore state functions or between phases the component will forget all about your methodbinding.
    private MethodBinding divaction;
    //getter/setter
    //save/restore state
    public Object saveState(FacesContext fc) {
         Object values[] = new Object[2];
         values[0] = super.saveState(fc);
         values[1] = saveAttachedState(fc, divation);
         return (values);
        public void restoreState(FacesContext fc, Object state) {
         Object values[] = (Object[]) state;
         super.restoreState(fc, values[0]);
         divaction= (MethodBinding) restoreAttachedState(fc,values[1]);
        } That saiid and done, you can move on to the renderer. I have not tried to adda button in the way in which you are, I have encoded markup directly using:
    public static void encodeButton(ResponseWriter writer, String szName, String szValue, UIComponent component) throws IOException{
         writer.startElement("input", component);
         writer.writeAttribute("type", "submit", null);
         writer.writeAttribute("name", szName, null);
         writer.writeAttribute("value", szValue, "value");
         writer.endElement("input");
        }The name element is important as it is used in the decode phase, it is the value that is stored in the requestMap if the button has been pressed.
    The decode method in your rendere is wher eyou will fire your method off, you must first check to see if your button was pressed by looking for its name in the requestMap:
    Map requestMap = fc.getExternalContext().getRequestParameterMap();
    if (requestMap.containsKey(yourButtonName)){
         //react to the button being pressed
    }You should have a method bound to your control now through the code added to your tag (and obviously on the .jsp page), all you need to do is fire it which is accomplished using the following code:
    MethodBinding mb = ((yourComponent)component).getDivaction();
              if(mb!= null){
                       //this stuff here with val is again related to your method arguements, if your method takes none, you can pass null. If you pass the wrong arguments you will get an exception telling you the function does not exist.
                  Object val[] = new Object[1];
                  Integer n = new Integer((int)rvo.getId());
                  val[0] = n;
                  mb.invoke(fc, val);
              }I know this is a different approach to that which you are using, and I daresay its not quite perfect, but it works for me!

Maybe you are looking for