[ANNOUNCE] Faces Console 1.0 Final

I'd like to announce the availability of Faces Console 1.0 Final. This new version supports JSF 1.0 Final and conrtains a few bug fixes and enhancements.
--- BIG ENHANCEMENT ---
The Faces Console Eclipse plugin now has an emdedded editor for users of Eclipse 3.0m7 and later. This is a huge improvement over the old plugin where Faces Console opened into a separate window.
--- BIG ENHANCEMENT ---
The Faces Console is a FREE standalone Java Swing application for managing JavaServer Faces-based applications. With the Faces Console you can visually edit JavaServer Faces configuration files as well as JSP Tag Library files.
The Faces Console also plugs into multiple, popular Java IDEs for seamless management of Faces applications from one central development tool.
Version 1.0 Final can be downloaded from my website at:
http://www.jamesholmes.com/JavaServerFaces/console/
Please give it a try and let me know if you have any problems.
Thanks,
-james
[email protected]
http://www.jamesholmes.com/JavaServerFaces/

Hi James,
Quick question: I've been trying to use Faces Console since the beta, and even with the final I'm having the same problem.
When I first open a faces-config.xml file with the Faces Console, it puts an empty:
xmlns=""
attribute in all of my top level tags. This makes the document invalid and Faces Console can't reload it next time. If it helps, my root tag looks like:
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN" "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
Any idea why this might be?
Ryan

Similar Messages

  • Announcement: Picasa web albums exporter finally updated for iPhoto 7

    Whew, it sure took long enough!
    Google's Picasa Web Albums Exporter for iPhoto is finally updated to be compatible with iPhoto 7 (iLife '08). I tested it quickly and it worked like a champ. I only see 1 new feature: an option to convert iPhoto keywords into Picasa Web Albums tags.
    Download it here:
    http://picasa.google.com/intl/enus/web/mactools.html
    - Steve -
    ps, sorry if this doesn't really belong in this discussion, but I know lots of us have been waiting patiently for this update.

    I want to use Picasa Web Albums to share photos with friends and let them pick out, download and print a decent resolution photo. I use the Picasa (plug in I think) / Export to upload the photos from iPhoto. It lets me pick quality to upload, but I notice that when downloaded from the web album, the highest comes in at 180dpi with a 3264px x 2448 px pixel dimension - is this sufficient for a 5 x 7 print or possibly a 8 x 10 print?
    What resolution do you want to print at? Decide and multiply
    5x7 at 300 dpi = 1500x2100 needed -- at 150 dpi = 750x1050
    8x10 at 300 dpi = 2400x3000 etc
    If possible I want to save bandwith and storage space by uploading at a lower resolution, the smallest they offer (when downloaded from the site) is 72dpi at 1000px x 750 px and the medium is 72 dpi at 1600 x 1200 px.
    Note that dpi is meaningless for a digital file - dpi is Dots Per Inch so until you set inches (print size) dpi is just a meaningless number and can be totally ignored
    see the Myth of DPI for more information - http://www.rideau-info.com/photos/mythdpi.html
    LN

  • NVIDIA announces support for hybrid graphics (finally)

    http://www.h-online.com/open/news/item/ … 97756.html
    I don't know if anyone else has had to deal with the torture that is hybrid graphics but this is pretty big news to me

    cybertorture wrote:..now we can be happy ... or can we ? Oo
    followup to "can we?":
    http://www.h-online.com/open/news/item/ … 29053.html

  • Face to cam script

    hello all,
    i m starting using javascript and i would like to create a script that always shows an image face to cam, around Z axis (like in Sketchup).
    see example : http://olce07vsvy.1fichier.com/
    i type this one :
    myMouseHandlerAvant= new MouseEventHandler();
    myMouseHandlerAvant.onMouseDown= true;
    myMouseHandlerAvant.onEvent= function( event )
    var VecteurCameraXAvant =((scene.cameras.getByIndex(0).targetPosition.x)-(scene.cameras.getByIndex(0).position.x) );
    var VecteurCameraYAvant =((scene.cameras.getByIndex(0).targetPosition.y)-(scene.cameras.getByIndex(0).position.y) );
    var VecteurCameraZAvant =((scene.cameras.getByIndex(0).targetPosition.z)-(scene.cameras.getByIndex(0).position.z) );
    AngleCamAvant=Math.atan(VecteurCameraYAvant/VecteurCameraXAvant);
    //console.println();
    //console.println("AngleCamAvant "+AngleCamAvant);
    //this.a=AngleCamAvant;
    myMouseHandler= new MouseEventHandler();
    myMouseHandler.onMouseUp= true;
    myMouseHandler.onEvent= function( event )
    var VecteurCameraX =((scene.cameras.getByIndex(0).targetPosition.x)-(scene.cameras.getByIndex(0).position.x) );
    var VecteurCameraY =((scene.cameras.getByIndex(0).targetPosition.y)-(scene.cameras.getByIndex(0).position.y) );
    var VecteurCameraZ=((scene.cameras.getByIndex(0).targetPosition.z)-(scene.cameras.getByIndex( 0).position.z));
    AngleCam=Math.atan(VecteurCameraY/VecteurCameraX);
    //console.println();
    //console.println("AngleCam "+AngleCam);
    for (var i=0; i < scene.meshes.count; i++)
    var result = scene.meshes.getByIndex(i).name.indexOf("tree");
    //~ var Bbox=scene.meshes.getByIndex(i).computeBoundingBox();
    //console.println();
    //console.println(Bbox.center.x);
    //~ BboxX=Bbox.center.x;
    //~ BboxY=Bbox.center.y;
    //~ var Start = new Vector3(BboxX,BboxY,0);
    //~ var End = new Vector3(BboxX,BboxY,1);
    //console.println("result = "+result);
    if (result>-1)
    //~ console.println("matrice de base = "+scene.meshes.getByIndex(i).transform);
    //var matriceRot = new Matrix4x4().rotateAboutZInPlace(AngleCam-AngleCamAvant);//.scene.meshes.getByIndex(i).tra nsform.rotateAboutZ((AngleCam-AngleCamAvant));/*, Start, End);*/
    console.println(AngleCam+" "+AngleCamAvant);
    //if ((Math.abs(AngleCam-AngleCamAvant)>0.01)
              scene.meshes.getByIndex(i).transform.rotateAboutZInPlace((AngleCam-AngleCamAvant));
              scene.meshes.getByIndex(i).renderMode = ("solid");//(matriceRot);
    //~ console.println("matrice de rot = "+matriceRot);
    //~ console.println("matrice finale = "+scene.meshes.getByIndex(i).transform(matriceRot));
    else scene.meshes.getByIndex(i).renderMode = ("solid");
    runtime.addEventHandler( myMouseHandlerAvant );
    runtime.addEventHandler( myMouseHandler );
    but you have to set cam orientation and images orientation at start.
    I would like to create one that update images orientation during the cam moves . not only at mouseUp.
    i know i have to inform myself on 4x4 matrix, any link or else to help me ?
    Thx for help

    dtm-1979 wrote:
    Not sure if this will help, but there's a similar function in the media9 documentation and examples for LaTeX.  It does it on RenderEvenHandler, not a MouseEventHandler.  It might help a little.
    http://ctan.unsw.edu.au/macros/latex/contrib/media9/javascript/asylabe ls.js
    Thank you for sharing this interessing site, i will try it.
    but in my script i found the mistake , it s du to ambigu of Math.atan that returned value of the angle (modulo PI) so i change my code :
    [code]
    runtime.setCurrentTool(runtime.TOOL_NAME_SPIN);
    myMouseHandlerPositonCam= new MouseEventHandler();
    myMouseHandlerPositonCam.onMouseMove= true;
    myMouseHandlerPositonCam.onEvent= function( event )
    var VecteurCameraXPositonCam =((scene.cameras.getByIndex(0).targetPosition.x)-(scene.cameras.getByIndex(0).position.x) );
    var VecteurCameraYPositonCam =((scene.cameras.getByIndex(0).targetPosition.y)-(scene.cameras.getByIndex(0).position.y) );
    var VecteurCameraZPositonCam =((scene.cameras.getByIndex(0).targetPosition.z)-(scene.cameras.getByIndex(0).position.z) );
    if ((VecteurCameraYPositonCam>0 & VecteurCameraXPositonCam>0) | (VecteurCameraYPositonCam<0 & VecteurCameraXPositonCam>0))
              AngleCamPositonCam=Math.atan((VecteurCameraYPositonCam/VecteurCameraXPositonCam));
    else AngleCamPositonCam=Math.atan((VecteurCameraYPositonCam/VecteurCameraXPositonCam))+Math.PI ;
    for (var i=0; i < scene.meshes.count; i++)
    var result = scene.meshes.getByIndex(i).name.indexOf("tree");
    if (result>-1)
              m1 = new Matrix4x4().rotateAboutZ(Math.abs(AngleCamPositonCam+Math.PI/2))
              scene.meshes.getByIndex(i).transform.set(m1);
    runtime.addEventHandler( myMouseHandlerPositonCam );
    [/code]
    sample here :
    http://7boo2xgsv3.1fichier.com/

  • Struts-faces LifeCycle

    I am studying Struts-Faces to conclude how we can use Struts-faces to prepare the migration from struts to JSF. When a request is sent by user, is it handle by ActionServlet or Faces servlet or another servlet ? I am trying to constitute the LifeCycle for an application done by Struts-faces.
    Can anyone help me ?
    Thanks.

    when you say " the requests will be handled by the
    JavaServer Faces controller servlet " you want mean
    that any http request will first be handled by
    "javax.faces.webapp.FacesServlet" anf after will be
    redirected depending on the type of request (struts or
    JSF) ? Technically, it's not a redirect, or even a forward ... in struts-faces the default ActionListener supplied by JavaServer Faces is replaced by one that invokes the Struts request processor if this is a form submit.
    who invoke the "FacesRequestProcessor" ? what is the
    role of this class ? it is invoked by ActionServlet
    instead of RequestProcessor ?
    In the current struts-faces code, ActionServlet does not ever process any requests, but you still need it to set up the overall environment, which is done in it's init() method.
    As I said before I try to constitute the life cycle of
    Struts-faces application, What I have understand of
    you answer is that the Http request is handle by a
    front controller ( Web Container ?????) and then
    redirected to :
    ---Lifecycle of JSF if it is an immediate action, or
    we are NOT nested in a Struts form
    -- FacesRequestProcessor if wa are processing a form
    submit.
    Yes, but the JavaServer Faces runtime still handles all incoming requests (unless you are intermixing non-Faces-based use of Struts in the same webapp) -- it just calls the FacesRequestProcessor when appropriate.
    I read the article of IBM "integrating Struts, Tiles
    and JavaServerFaces and I don 't understand clearly
    how we use the class "FormComponent" and "FormRag".
    Can you give me more explanation please ?
    Thanks Craig .I can't speak for the authors of that article, or what they did to integrate Tiles support into the EA4 release of struts-faces. I can tell you that such measures will not be needed when the version of struts-faces compatible with the final version of JavaServer Faces 1.0. Until then, you are looking at code that is bleeding edge, not released, not documented, and not thoroughly tested. When released, it will be documented and tested.
    Craig

  • Questions for ADF Faces

    I have been following this forum for about a year now and thought I should raise some questions regarding current ADF Faces state.
    With the recent donation to Apache, is Oracle going to continue roll out enhancements and is there going to be an ADF.Next?
    A good place to demonstrate commitment is by having a dedicated ADF Faces and BC forum (preferable built using it too!).
    There are several third party vendors that offer key JSF based UI components (AJAX based table, input, menus, drag and drop, etc.. ), are there any plans to incorporate these into the ADF Faces component library?
    Finally, has anyone deployed ADF based application in production? If you have a success story you would like to share, I have a case of beer with your name on it. Shoot me a hello at [email protected] See you at OOW.
    -Wes

    Oracle is still developing ADF Faces - but now we are doing it together with Apache on the trinidad project.
    In addition Oracle is building an AJAX based rendering kit on top of the components - you can see a demo of these new components if you'll check the replay of Thomas's Kurian keynote at this year's Javaone.
    http://webcast-west.sun.com/ramgen/archives/06D00627/06D00627_03_300.rm
    If you want an ADF Faces forum - you can use the apache forum.
    We rather keep a unified forum for all things related to JDeveloper and ADF, since there are many questions that cross the boundries between topics, and since it makes it easier for us to only need to monitor a single forum.
    And yes there are ADF Faces based applications out there in production, and some of them are even on the Internet.
    https://wwws.gen.lacapitale.com/CoteWebAuto/faces/pages/webepIntr.jspx
    and
    http://at.sparinvest.com/sparinvest/faces/portal/home/start.jsp
    For example.

  • "Media start" Button/quick key in final cut

    I have a very silly question - the anwswer is probably right in front on my face! When in Final cut on my MacPro Laptop - when do I hit fro "media start" and "media end?" O n regular keyboard - it's "home" and "end." In the drop down menus at the top - the quick kys are refered to as these thin arrows...not sure whaere that is on my laptop key board...anybody know? thanks!

    Media start = FN + Arrow left
    Media End = FN + Arrow Right

  • Workflow including final cut,boom recorder & titan

    hello,
    i got an urgent question:
    on a film shooting, audio will be recorded on 4-8 tracks
    (broadcast wave format), among a stereo-mixdown for the cutter. the movie will be cut on "final cut pro 5" only in stereo and afterwards we want to reconform the cut stereo-mixdown to the original 2-6 tracks (24 bit),
    using "titan" by synchroarts.
    now we face the problem that "final cut" can't directly import broadcast wave format files including metadata, but we need the metadata, so it must be extracted to an xml-file by sebsky tools or bwf2xml or similar. but both programs also have to convert the
    stereo-mixdown to a mov-file that titan can't edit!
    so our dilemma is that on the one hand we don't get audio with timecode in final cut without converting it to mov+xml, but on the other hand, titan needs an edl with wav-files!
    does anybody know this problem and -the better - knows a solution? is there a software that works like bwf2xml, but
    doesn't have to convert the WAV to MOV?
    We're deeply grateful for any kind of help!
    thanks,
    ina

    can't you just give titan the edl + original bwf files?
    if that won't work, then you should talk to the developer, Andreas Kiel, at [email protected] ... he is a very helpful guy.
    it might also be worth a look at the products at http://www.gallery.co.uk, such as XMLPro
    cheers
    Andy

  • Final Stereo Mix Resolution

    I am using Logic Pro and really liking it but am mixing through a premium 24 channel console to my final stereo mix is analog. If I simply bounce this back to the session I have my final stereo mix at the same resolution at my original tracks (I want to avoid dithering). I am thinking, that I should print my final analog stereo mix to the highest resolution possible, that is higher than I am willing to use for my tracking.
    In order to do this I would have to buy a couple of premium converters and strap them on to my TASCAM DVRA 1000.
    Do any of folks have any opinions or have you worked with a similar work flow?

    I am using Logic Pro and really liking it but am mixing through a premium 24 channel console to my final stereo mix is analog. If I simply bounce this back to the session I have my final stereo mix at the same resolution at my original tracks (I want to avoid dithering). I am thinking, that I should print my final analog stereo mix to the highest resolution possible, that is higher than I am willing to use for my tracking.
    In order to do this I would have to buy a couple of premium converters and strap them on to my TASCAM DVRA 1000.
    Do any of folks have any opinions or have you worked with a similar work flow?

  • Can't ever get "Faces"

    I've never gotten faces to work, I finally opened up the library and deleted the faces.db and faces files.
    I then restart iPhoto and wtch it cruise through almost 80% fo my faces and then suddenly it just stops and there are 0 faces in the faces area. I have no way to selct an event and just identify faces one by one cause as soon as I start iPhoto it cruises through my whole library until it crashes for good.
    Anyone got any ideas on how to fix this ? The first trick of deleting the 2 faces files in the library was awesome and has potential to get me close but then it just blows up totally.
    I have over 2500 files and i wonder if the # of photos is the problem???
    TIA,
    Peter

    All,
    Thanks for the responses, I should have been more clear in my first post, first of all, iPhoto doesn't actually crash, the "faces" process appears to just stop running that's all but with "0" faces in the faces link on the left hand side bar.
    Secondly as far as identifying any faces, the initial process never completes so I can't select any faces to "name" as a start. It just appears to start up, once it got as far as past 75% on the progress bar but then just stopped.
    I typically go into in the library contents and delete the two faces files and then restart iPhoto, it immediately start to identify faces before I have a chance to select only a few to start with and maybe do a bunch at a time. It doesn't allow me to select only a few "events' or photos it just appears to start identifying faces right away.
    I was hoping that I might be able to select only a few faces and start slowly but apparently it's an al or noting deal.
    TIA,
    Peter

  • Re: Fwd: Wlnav tool

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
    </head>
    <body bgcolor="#ffffff" text="#000000">
    replying to <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> so other users can
    also benefit from this discussion<br>
    <br>
    Satya Ghattu wrote:
    <blockquote
    cite="[email protected]"
    type="cite"><br>
    <br>
    ---------- Forwarded message ----------<br>
    <span class="gmail_quote">From: <b class="gmail_sendername">Ben Ames</b>
    <[email protected]
    ><br>
    Date: Sep 1, 2006 5:24 PM<br>
    Subject: Wlnav tool<br>
    To: [email protected]<br>
    <br>
    </span>
    <div>
    <div>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">Hello,</font></span></p>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">We
    recently upgraded to WebLogic 9.2 and have started using the wlnav tool
    to help us monitor our systems. It has been really helpful to us in
    understanding what
    </font></span><span lang="en-us"><font face="Arial" size="2">'</font></span><span
    lang="en-us"><font face="Arial" size="2">s going on with our servers.</font></span><span
    lang="en-us"></span>
    <span lang="en-us"> <font face="Arial" size="2">I have some
    questions, though, about some things we would like to do with the tool.</font></span><span
    lang="en-us"></span></p>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">The first
    is that I know that the data harvested from WebLogic is stored in the
    server logs. </font></span></p>
    </div>
    </div>
    </blockquote>
    Data is stored by WLDF in a file store which is optimized for storage
    and retrieval of information.<br>
    <blockquote
    cite="[email protected]"
    type="cite">
    <div>
    <div>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">I</font></span><span
    lang="en-us"><font face="Arial" size="2">'</font>
    </span><span lang="en-us"><font face="Arial" size="2">ve read that
    the WLDF framework can log this data to a database but is it possible
    for wlnav to connect to a database to get the information logged to it?</font></span></p>
    </div>
    </div>
    </blockquote>
    WlNav uses WLDF accessor to access all the data. Once WLDF is
    configured to persist data to DB, I think accessor should seamlessly be
    able to read data from DB. I'm CC'ing this mail to diagnostics
    newsgroup so someone from Diagnostics team can confirm this behavior
    and provide more pointers.<br>
    <br>
    <blockquote
    cite="[email protected]"
    type="cite">
    <div>
    <div>
    <p dir="ltr"><span lang="en-us"></span></p>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">I also
    like using the summary tab to get all the graphs into one web page that
    I can look at and compare without having to tab through multiple
    screens. However, since graphs
    </font></span><span lang="en-us"> <font face="Arial" size="2">are
    grouped by mBean, it makes it difficult to separate some of the data or
    see data at all. A good example would be UsedHeap and JVMProcessorUsage
    for the Jrockit mbean.
    </font></span><span lang="en-us"><font face="Arial" size="2"> Is
    there a way to separate these graphs on the summary or would this have
    to be added?</font></span></p>
    </div>
    </div>
    </blockquote>
    Currently in summary view it's only possible to use grouping by MBean.
    Can you save one of your summary page (images too) and provide it as a
    zip file, so I can easily visualize the problem.<br>
    <br>
    When we wrote WlNav we wanted to show the power of WLST and WLDF, since
    then Diagnostics team have provided a console UI extension which should
    be able to support your customization need. For more info see
    <a class="moz-txt-link-freetext" href="http://e-docs.bea.com/wls/docs92/wldf_console_ext/index.html">http://e-docs.bea.com/wls/docs92/wldf_console_ext/index.html</a><br>
    <br>
    <blockquote
    cite="[email protected]"
    type="cite">
    <div>
    <div>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">For our
    production systems, we</font></span><span lang="en-us"><font
    face="Arial" size="2">'</font></span><span lang="en-us"><font
    face="Arial" size="2">ve noticed that generating graphs can take five
    to ten minutes depending on the duration and number of servers we
    </font></span><span lang="en-us"><font face="Arial" size="2">'</font></span><span
    lang="en-us"><font face="Arial" size="2">re graphing. A one hour
    duration over eleven servers has taken</font></span><span lang="en-us">
    <font face="Arial" size="2">
    at least five minutes before. Is this normal?</font></span></p>
    </div>
    </div>
    </blockquote>
    The time taken will depend upon your duration and the frequency at
    which the data is being harvested by WLDF.  I've a feeling that the #
    of datapoint in each graph is large. What's fequency have you
    configured your harvester with.<br>
    <br>
    WLDF console extension
    (<a class="moz-txt-link-freetext" href="http://e-docs.bea.com/wls/docs92/wldf_console_ext/index.html">http://e-docs.bea.com/wls/docs92/wldf_console_ext/index.html</a>) provides
    a nice mix of mbean and WLDF monitoring, so for you real time
    monitoring needs it should be able to get data directly from MBeans.<br>
    <br>
    <blockquote
    cite="[email protected]"
    type="cite">
    <div>
    <div>
    <p dir="ltr"><span lang="en-us"></span></p>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">Finally,
    is the logging of the data asynchronous? We would like to poll our
    production servers more frequently than five minutes but we</font></span><span
    lang="en-us">
    <font face="Arial" size="2">'</font></span><span lang="en-us"><font
    face="Arial" size="2">re afraid it</font></span><span lang="en-us"><font
    face="Arial" size="2">'</font></span><span lang="en-us"><font
    face="Arial" size="2">
    ll have ill effects on our system. Right now we</font></span><span
    lang="en-us"><font face="Arial" size="2">'</font></span><span
    lang="en-us"><font face="Arial" size="2">re polling every five minutes
    on eight points of data over eleven servers.</font></span></p>
    </div>
    </div>
    </blockquote>
    WLFD harvester captures data in a very efficient manner and is done in
    a different thread. Thus polling by WlNav (using accessor) and logging
    of data are independent.<br>
    <br>
    --Vishal<br>
    <blockquote
    cite="[email protected]"
    type="cite">
    <div>
    <div>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2"></font></span></p>
    <p dir="ltr"><span lang="en-us"></span></p>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">Thanks,</font></span></p>
    <p dir="ltr"><span lang="en-us"><font face="Arial" size="2">Ben</font></span><span
    lang="en-us"></span></p>
    <p dir="ltr"><span lang="en-us"></span><span lang="en-us"></span><a
    name="10d6b44e26acbbea_"><span lang="en-us"><font color="#008080"
    face="Arial" size="2">Ben Ames</font></span></a></p>
    <p dir="ltr"><span lang="en-us"></span><i><span lang="en-us"><font
    color="#008080" face="Arial" size="2">Operations Engineer</font></span></i></p>
    <p dir="ltr"><span lang="en-us"></span><span lang="en-us"><font
    color="#008080" face="Arial" size="2"><a href="http://Benefitfocus.com
    target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Benefitfocus.com
    </a>, Inc.</font></span></p>
    <p dir="ltr"><span lang="en-us"><font color="#008080" face="Arial"
    size="2">843-849-7476 ext. 240</font></span></p>
    <p dir="ltr"><span lang="en-us"><font color="#008080" face="Arial"
    size="2">843-849-9485 (fax)</font></span><span lang="en-us"></span><span
    lang="en-us"></span></p>
    <p dir="ltr"><span lang="en-us"></span></p>
    <font size="1">
    <p>***************************************************************************************<br>
    <a href="http://BENEFITFOCUS.COM target="_blank"
    onclick="return top.js.OpenExtLink(window,event,this)">BENEFITFOCUS.COM</a>
    CONFIDENTIALITY NOTICE: This electronic message is intended only for
    the individual or entity to which it is addressed and may contain
    information that is confidential and protected by law. Unauthorized
    review, use, disclosure, or dissemination of this communication or its
    contents in any way is prohibited and may be unlawful. If you are not
    the intended recipient or a person responsible for delivering this
    message to an intended recipient, please notify the original sender
    immediately by e-mail or telephone, return the original message to the
    original sender or to <a href="mailto:[email protected]
    target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">[email protected]</a>,
    and destroy all copies or derivations of the original message. Thank
    you. (BFeComNote Rev. 08/01/2005)
    <br>
    ***************************************************************************************</p>
    </font></div>
    </div>
    <br clear="all">
    <br>
    -- <br>
    Satya Ghattu<br>
    978-851-3098
    </blockquote>
    <br>
    </body>
    </html>

    By default, WLDF stores harvester and instrumentation data in the file store. WLDF can be configured to use a data source to store this data in a database. This is transparent to clients such as wlnav, which access the data through the accessor interface.

  • NullPointerException when using Scanner

    Hey people,
    I've made this little class for interacting with the user via the console:
    package dyreleg;
    import java.util.Scanner;
    * Communicates with the user via the command line
    * @author majs
    public class ConsoleUI implements UserInteraction {
        private Scanner input;
        public void ConsoleUI() {
            this.input = new Scanner(System.in);
         * Asks the user a given question and returns the answer as a string
         * @param question     the question to ask the user
         * @return          the users full answer
        public String getAnswer(String question) {
            System.out.println(question);
            String answer = this.input.next("\n");
            input.nextLine();
            return answer;
         * Asks the user a given question and forces him/her to answer with either y
         * for yes or n for no.
         * @param question     question the question to ask the user
         * @return          the users answer, true for yes and false for no
        public boolean getAnswerYesNo(String question) {
            System.out.println(question+" (y or n");
            while (true) {
                String answer = this.input.next();
                answer = answer.toLowerCase();
                if (answer.equals("y")) {
                    return true;
                } else if (answer.equals("n")) {
                    return false;
                } else {
                    System.out.println("You must answer y for yes or n for no to the given question");
    }My problem is that when i try to use any of the member functions, (getAnswer and getAnswerYesNo) i get a NullPointerException, and i can't understand why. I know that NullPointerExceptions indicate that the variable isn't set to an object, but as far as i can see that does'nt seem to be the problem here. I've used the Scanner class without problems in the rest of my application before making this class without problems.
    Any kind of help is appreciated.

    Meinertz,
    I've been using / extending this one for a while... I find it's handy for console based user interfaces... which are (lets face it) just soooo seventies.
    package krc.utilz.io;
    // usage:
    // import krc.utilz.io.Console;
    // String name = Console.readLine("Enter your name : ");
    // while ( (score=Console.readInteger("Enter a score between 0 and 100 (enter to quit) : ", 0, 100, -1)) != -1) { ... }
    import java.util.Date;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    public abstract class Console
      private static final java.io.Console theConsole = System.console();
      private static final DateFormat dateFormatter = new SimpleDateFormat("dd/MM/yyyy");
      public static String readLine(String prompt) {
        while(true) {
          try {
            System.out.print(prompt);
            return theConsole.readLine();
          } catch (Exception e) {
            System.out.println("Oops: "+e);
      public static Date readDate(String prompt) {
        while(true) {
          try {
            String response = readWord(prompt+" (dd/mm/yyyy) : ");
            return dateFormatter.parse(response);
          } catch (Exception e) {
            System.out.println("Oops: "+e);
      public static String readWord(String prompt) {
        String response = null;
        while(true) {
          try {
            response = readLine(prompt);
            if( response!=null && response.length()>0 && response.indexOf(' ')<0 ) break;
            System.out.println("Oops: A single word is required. No spaces.");
          } catch (Exception e) {
            System.out.println("Oops: "+e);
        return(response);
      public static char readLetter(String prompt) {
        char result = '\0';
        while(true) {
          try {
            String response = readLine(prompt);
            if ( response!=null && response.length()==1 ) {
              result = response.charAt(0);
              if(Character.isLetter(result)) break;
            System.out.println("Oops: A single letter is required!");
          } catch (Exception e) {
            System.out.println("Oops: "+e);
        return(result);
      public static int readInteger(String prompt) {
        int result = 0;
        String response = null;
        while(true) {
          try {
            response = readLine(prompt);
            if ( response!=null && response.length()>0 ) {
              result = Integer.parseInt(response);
              break;
            System.out.println("An integer is required.");
          } catch (NumberFormatException e) {
            System.out.println("Oops \""+response+"\" is not an integer!");
          } catch (Exception e) {
            System.out.println("Oops: "+e);
        return(result);
      public static int readInteger(String prompt, int lowerBound, int upperBound) {
        int result = 0;
        while(true) {
          result = readInteger(prompt);
          if ( result>=lowerBound && result<=upperBound ) break;
          System.out.println("An integer between "+lowerBound+" and "+upperBound+" (inclusive) is required.");
        return(result);
      public static int readInteger(String prompt, int defualt) {
        String response = null;
        while(true) {
          try {
            response = readLine(prompt);
            return (response!=null && response.trim().length()>0
              ? Integer.parseInt(response)
              : defualt
          } catch (NumberFormatException e) {
            System.out.println("Oops: \""+response+"\" is not an integer!");
          } catch (Exception e) {
            System.out.println("Oops: "+e);
      public static int readInteger(String prompt, int lowerBound, int upperBound, int defualt) {
        int result = 0;
        while(true) {
          result = readInteger(prompt, defualt);
          if ( result==defualt || result>=lowerBound && result<=upperBound ) break;
          System.out.println("An integer between "+lowerBound+" and "+upperBound+" (inclusive) is required.");
        return(result);
      public static double readDouble(String prompt) {
        double result = 0;
        String response = null;
        while(true) {
          try {
            response = readLine(prompt);
            if ( response!=null && response.length()>0 ) {
              result = Double.parseDouble(response);
              break;
            System.out.println("A number is required.");
          } catch (NumberFormatException e) {
            System.out.println("\""+response+"\" cannot be interpreted as a number!");
          } catch (Exception e) {
            System.out.println("Oops: "+e);
        return(result);
      public static double readDouble(String prompt, double lowerBound, double upperBound) {
        while(true) {
          double result = readDouble(prompt);
          if ( result>=lowerBound && result<=upperBound ) return(result);
          System.out.println("A number between "+lowerBound+" and "+upperBound+" (inclusive) is required.");
      public static boolean readBoolean(String prompt) {
        while(true) {
          try {
            String response = readWord(prompt+" (Y/N) : ");
            return response.trim().equalsIgnoreCase("Y");
          } catch (Exception e) {
            System.out.println("Oops: "+e);
    }This software is provided, as is, where is. Feel free to use/abuse/improve it however you wish, unless you are Military or a military contractor, or a manufacturer of guns/bombs/any-other-impliment-of-murder; in which case please go f&#117;ck yourself. If you are George Bush then please consider suicide.
    Cheers. Keith.

  • Problem with binding in h:dataTable

    Hi
    I have a problem with h:dataTable, where the table rows are bound to objects (Bean$Line) nested within a backing bean (Bean).
    JSP:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
      <f:view>
        <head>
          <link href="styles.css" rel="stylesheet" type="text/css"/>
          <title>Sandbox</title>
        </head>
        <body>
          <h:form>
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <!-- using value = line.lineSelected here works (assuming boolean property Line.lineSelected) --/>
                <h:selectBooleanCheckbox binding="#{line.lineSelected}"/>
              </h:column>
            </h:dataTable>
          </h:form>
        </body>
      </f:view>
    </html>Bean:
    package com.test;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.UISelectBoolean;
    public final class Bean {
      private final List<Line> lines;
      public Bean() {
        lines = new ArrayList<Line>();
        lines.add(new Line("one"));
        lines.add(new Line("two"));
        lines.add(new Line("three"));
      public List<Line> getLines() {
        return lines;
       * Nested class in order to access containing class
       * properties etc.
      public static class Line {
        //private boolean lineSelected = false;
        private UISelectBoolean lineSelected;
        private String id;
        public Line(String id) {
          this.id = id;
        /*public boolean isLineSelected() {
          return lineSelected;
        public void setLineSelected(boolean lineSelected) {
          this.lineSelected = lineSelected;
        public UISelectBoolean getLineSelected() {
          return lineSelected;
        public void setLineSelected(UISelectBoolean lineSelected) {
          this.lineSelected = lineSelected;
        public String getId() {
          return id;
        public void setId(String id) {
          this.id = id;
      } // Line
    }The setup works when I use value="#{line.lineSelected}" (assuming the property is defined as boolean in Bean$Line) but as soon as I use a binding, I get the following exception:
    com.sun.rave.web.ui.appbase.ApplicationException: javax.servlet.ServletException: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'line' resolved to null
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:594)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:325)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    faces_config:
    <faces-config version="1.2"
                  xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
      <application>
        <locale-config>
          <default-locale>en_GB</default-locale>
          <supported-locale>en_GB</supported-locale>     
        </locale-config>
      </application>
      <managed-bean>
        <managed-bean-name>bean</managed-bean-name>
        <managed-bean-class>com.test.Bean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    </faces-config>What am I missing here?
    Help much appreciated
    Lance

    Guys
    Thanks a lot, both of your replies are immensely instructive. Maybe a little background on what I'm trying to do. In the table, I have header rows with dependent line rows. When a check box is ticked in the header, I want the corresponding check boxes in the dependent lines to be checked automatically (in slave fashion and ideally without using JavaScript). My idea was to update the bound components (for the lines) from within the Bean (in response to change on the header). However, given there's only a single component for each column in the table, this of course doesn't make sense.
    I'm trying to get to the typical MVC workflow of a) user updates a View component, b) Controller detects the change and updates the Model, c) The Model fires a property change event, which the View detects and updates appropriately. What's the way to achieve this in JSF (by design)?
    Here's a simple fragment (which does not work):
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <!-- (1) This is the master and (2) should refresh on update here --/>
                <h:selectBooleanCheckbox onchange="submit()" value="#{line.lineSelected}"/>
              </h:column>
              <h:column>
                <!-- (2) This is the slave and I want this to update in response to a change of (1) above --/>
                <h:selectBooleanCheckbox value="#{line.slaveSelected}"/>
              </h:column>
            </h:dataTable>In the setter method for lineSelected, I'm setting slaveSelected to the new value but the View is not refreshing based on this. How do I get the View to update (each dependent line) based on the new values for slaveSelected?
    Thanks again
    Lance

  • Issue regarding open word file and read only mode using c# & MS-word interop

    i am programmatically open a word file for search and highlight keyword. my routine is working fine. the problem is when i am opening the file programmatically then a dialog come and ask me to open file in read only mode. the dialog look like below one
    actually i do not want to open the file in read only mode because people can open and like to change and save. so guide me what i can do to not to open the file in read only mode.
    here is my full code. just have a look and tell me what is wrong in my code or tell me any trick as a result i can open the file not in read only mode. here is my code.
    private void button1_Click(object sender, EventArgs e)
                object fileName = "";
                string filePath = "";
                string strSaveasPath = "";
                DialogResult result = openFileDialog1.ShowDialog();
                if (result == DialogResult.OK)
                    fileName = openFileDialog1.FileName;
                    //strSaveasPath = Path.GetDirectoryName(path.ToString());
                //fileName = "Z:\\C0000000003.doc";
                List<string> _list = new List<string>();
                _list.Add("tridip");
                _list.Add("arijit");
                //object fileName = "D:\\CVArchievePath\\C0000000001.doc";
                object textToFind = "test";
                object readOnly = false;
                Word.Application word = new Word.Application();
                Word.Document doc = new Word.Document();
                object missing = Type.Missing;
                try
                    doc = word.Documents.Open(ref fileName, ref missing, ref readOnly,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing);
                    doc.Activate();
                    object matchPhrase = false;
                    object matchCase = false;
                    object matchPrefix = false;
                    object matchSuffix = false;
                    object matchWholeWord = false;
                    object matchWildcards = false;
                    object matchSoundsLike = false;
                    object matchAllWordForms = false;
                    object matchByte = false;
                    object ignoreSpace = false;
                    object ignorePunct = false;
                    object highlightedColor = Word.WdColor.wdColorGreen;
                    object textColor = Word.WdColor.wdColorLightOrange;
                    object missingp = false;
                    Word.Range range = doc.Range();
                    foreach (string line in _list)
                        textToFind = line;
                        bool highlighted = range.Find.HitHighlight(ref textToFind,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing);
                    System.Diagnostics.Process.Start(fileName.ToString());
                catch (Exception ex)
                    Console.WriteLine("Error : " + ex.Message);
                    //Console.ReadKey(true);
                finally
                    //doc.Close(missing, missing, missing);
                    if(doc!=null)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(doc);
                    if (word != null)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(word);
                    word = null;
                    doc = null;
                    GC.Collect();
                    GC.WaitForPendingFinalizers();

    I know it's a very old issue and I reached to this page looking for a solution. Finally, I have found a fix to this problem.
    The problem is that we create an instance of Word and do not close it correctly. This makes program believe that the file is already open and hence you're getting the respective message of file being locked by you.
    Set the visibility of your application to true and then when you close it both file and instance should close and you will not get the problem again.

  • The Worst Customer Service of My Life and Why I Will Never Shop at Best Buy Again

    This afternoon I decided I wanted to buy a Playstation 4. I discovered, while browsing Best Buy's website, an offer to trade in a PS3 Slim and controllers for $100 +$10 per controller. I took in the console, three controllers, and two games valued at $12 and $5 respectively for a total of $147 in trade in value. I knew what I was supposed to be getting when I walked in the door.
    So I enter store #1155 (Charlotte-Northlake) with the intention of trading in my PS3 and accessories, for a PS4 Destiny bundle. A very simple transaction, that could have easily been handled quickly (and was later handled quickly and painlessly by GameStop). I approach the desk and encounter this lethargic looking automaton named Ashlyn. Or something like that. I explain to her what I want to do, and how much I expect to get out of the trade in. She says "Well, you'll get whatever comes up on the thingy". So I set my console, 3 controllers, 3 cords (HDMI, power, controller), and two games on the counter next to the thingy (computer) and she proceeds to test to see if the console works. She incompetently moves the device and power cord over to the plug in station/screen to see if it works. After much confusion over which plug goes in what hole (I literally watched her try to plug the power cord into the HDMI slot), they stand around trying to turn on the controllers and connect them to the console. She finally discovers she needs the controller cord and asks me for it. I look on the counter to discover that it is no longer there. So I run out to the car to see if it's there, and it isn't. I come back in, and ask her if maybe she dropped it when she picked up the power cord, and she looks at someone else and says in her best impression of an incredibly rude person, "He only brought in two cords". I told her to look on the floor, and of course she found it. So they plug everything in, everything works, great. Now punch in whatever it is you punch in on the thingy and give me my PS4. Nope. Now she has to spend 20 minutes sighing and shaking her head at the computer while repeatedly asking me if my PS3 slim "is 500 GB" to which I respond, literally every time, yes. Eventually she gets help from a distracted eastern european co-worker who asks me "How much is it?" and I say "100" to which Ashlyn replies in another fantastic impression of a terrible customer service worker "He told me it was 500". I clarified that I meant $100 and 500 GB and they proceed to shake their heads and sigh at the screen as they fail to understand what I can only assume were heiroglyphics. So at this point Ashlyn has called me a liar twice, and has not once made eye contact with me, or attempted even the most basic customer service. She finally comes to the price of $117 dollars which I say "That's not right, did you get the controllers?" Naturally she did not. But also neither of them knew how to use the heiroglyphic thingy in front of them, so finally they said "Well, we can't do it in our system, so you'll have to take $117". I said no, took my stuff, and walked out. Ashlyn is a terrible customer service "specialist" and should be quickly fired.
    Part 2:
    So shaking and fuming I walk out the door to my car with my console and accessories in tow, and decide to call the other Best Buy near me at Concord Mills (Store #268). So I call, explain what I went through, and the girl on the other end of the line says "Oh, some people just don't know where to find the the right thing to do it" and said I could come down there and get it taken care of. So I head down to Concord Mills with hopes of finally making my simple transaction. I get there, tell the girl at the desk what happened, she more or less ignored me, and said she had to take it in the back and test it. Fine, do your thing. She comes back, and says "Where did you see the hundred dollar thing?" so I look it up, and WHILE I'm looking it up she says "I know what deal you're talking about, but I can only give you $40 dollars because this is in poor condition" once again in what I can only assume is corporate standard "Terrible Customer Service Rep Tone". I told her that a console is still in good condition if nothing is broken and it works perfectly, and that a few scratches don't mean "poor condition", this isn't a disc. She says "I'm not marking this as good condition, all I'll give you is $40." so I angrily picked up my stuff, and walked over to the GameStop in the nearby mall. Told him what happened, he took the console, checked that it worked, gave me $140 for everything, I paid the difference for a PS4 and they sent me on my way. 15 minutes. 2 hours of rude customer service reps at Best Buy sent me to GameStop, and I will honestly never set foot in Best Buy again.
    So that's my story.
    {Removed per Forum Guidelines}
    Charlotte, NC Resident and Former Best Buy Customer

    Hello puckettsd,
    My younger brother got his hands on his own PlayStation 4 a few months ago, and ever since then, I don’t think he’s talked about anything else. In fact, whenever I go to my parents’ house for a visit, I can always hear him discussing game strategy with his friends through his headset.  While I’m not much of a gamer myself, I certainly understand the PS4’s appeal, so I can see why you were excited to take advantage of our Sony PS3 Slim Trade-In offer and trade up to the new console.  It’s disappointing to hear that your visit didn’t go as smoothly as planned though, and I’m sorry for any frustration this caused while you tried to figure this out on your own.
    With any trade-in offer, we should always be assessing the item in question to determine its condition. This is done to make sure you are getting the best offer possible. An item may fall under in four categories - Good, Fair, Poor and Substantially Impaired/Not Working (see here for descriptions). As Ashlyn wanted to figure out which category your PS3 Slim fell under, she took the time to see if your console powered on and made sure your controllers worked properly. This doesn’t explain why she may have had difficulties adding on your controllers to the promotion though. If an associate isn’t sure about how to do something within our systems, they should be asking a member of leadership for guidance.  I’m sorry if oversight caused you to leave the store unsatisfied.  
    Having said this, I appreciate it that you were willing to provide us a second chance and visited our Concord Mills store.  I can understand your frustration though if this store didn’t feel that your console met the terms of the promotion and therefore didn’t meet minimum $100.00 offer. In the terms and conditions of the trade-in offer, we do state that the console must be in good condition to qualify. I truly apologize for this discrepancy. Regardless, I’m glad to hear that you were able to trade in your PS3 Slim for a new PS4 console, even if it wasn’t through us.  
    Experiences like the one you describe are never ones we like to hear, but thank you for taking the time out of your busy day to let us know about it. As a company, we realize there may be areas in need of improvement, and without feedback like yours, we wouldn’t be able to identify them properly to promote better service. Please know that I have documented your concerns as this a great opportunity for the store to learn from, and it is my hope that you give us a second chance in the near future.
    Respectfully,
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

Maybe you are looking for