File Extention when using JFileChooser

I'm using the JFileChooser and a FileFilter with for extensions of .ses, and I can't get it to append .ses to a file name if the user doesn't do it at the time they are in the File choser.
What I've tried:
JFileChooser fc = new JFileChooser();
fc.setFileFilter(new SessionFileFilter());
int retVal = fc.showSaveDialog(null);
if(retVal == JFileChooser.APPROVE_OPTION){
     f = fc.getSelectedFile();
if(!f.getName().endsWith(".ses")){
               f=new File(f.getName()+".ses");
...SessionFileChooser...
public boolean accept(File f) {
          boolean retval = false;
          int pos = f.getName().indexOf(".");
          if(pos != -1){
               if(f.getName().substring(pos).equals(".ses")){
                    retval = true;
          return retval;
     public String getDescription() {
          return ".ses";
...any help would be appreciated, if you need source that compiles i'll get some worked out...
to clarify the problem, if you go to save this web page and a dialog appears, you don't have to type .htm, but it automatically adds it before saving, this is what i'm trying to achieve.

These two classes should do it. Let me know if there are any problems
You are welcome to use and modify this code, but please don't change the package or take credit for it as your own work
FileExtensionFilter
===============
package tjacobs.ui.fc;
import java.io.File;
import javax.swing.filechooser.FileFilter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
public class FileExtensionFilter extends FileFilter {
    private ArrayList<String> mExtensionList;
    private String mDesc;
    public FileExtensionFilter (String extension) {
        mExtensionList = new ArrayList<String>(1);
        mExtensionList.add(extension);
    public FileExtensionFilter(List<String> extensions) {
        mExtensionList = new ArrayList();
          mExtensionList.addAll(extensions);
    public FileExtensionFilter(String[] extensions) {
        mExtensionList = new ArrayList();
        for (int i =0; i < extensions.length; i++) {
            mExtensionList.add(extensions);
     public void addExtension(String extension) {
          mExtensionList.add(extension);
     public Iterator<String> getExtensions() {
          Iterator<String> i = Collections.unmodifiableList(mExtensionList).iterator();
          return i;
public boolean accept(File file) {
     if (file.isDirectory()) {
          return true;
String name = file.getName();
int idx = name.indexOf(".");
String type = "";
if (idx != -1) {
type = name.substring(idx + 1);
type = type.toLowerCase();
return mExtensionList.contains(type);
public void setDescription(String desc) {
mDesc = desc;
public String getDescription() {
if (mDesc == null) {
mDesc = "";
for (int i = 0; i < mExtensionList.size(); i++) {
mDesc += (i != 0 ? ", " : "") + "." + mExtensionList.get(0).toString();
mDesc+= " files";
return mDesc;
public String getType () {
return mExtensionList.get(0).toString();
public static class HTMLFilter extends FileExtensionFilter {
public HTMLFilter () {
super(new String[] {"html", "htm"});
setDescription("Web Page Files");
public static class RTFFilter extends FileExtensionFilter {
public RTFFilter () {
super("rtf");
setDescription("Rich Text Format Files");
public static class TextFilter extends FileExtensionFilter {
public static final String TYPES[] = new String[] {"txt", "text", "java"};
     public TextFilter () {
super(TYPES);
setDescription("Text Files");
FileChooser
==========
* Created on Jun 22, 2005 by @author Tom Jacobs
package tjacobs.ui.fc;
import java.awt.Component;
import java.io.File;
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileSystemView;
public class FileChooser extends JFileChooser {
     public FileChooser(FileExtensionFilter filter) {
          super();
          addChoosableFileFilter(filter);
     public FileChooser(String type) {
          this (new FileExtensionFilter(type));
     public FileChooser(List<String> types) {
          this (new FileExtensionFilter(types));
     public FileChooser(String path, FileExtensionFilter filter) {
          super(path);
          addChoosableFileFilter(filter);
          // TODO Auto-generated constructor stub
     public FileChooser(String path, String type) {
          this(path, new FileExtensionFilter(type));
          // TODO Auto-generated constructor stub
     public FileChooser(String path, List<String> types) {
          this(path, new FileExtensionFilter(types));
          // TODO Auto-generated constructor stub
     public FileChooser(File path, FileExtensionFilter filter) {
          super(path);
          addChoosableFileFilter(filter);
     public FileChooser(File path, String type) {
          this(path, new FileExtensionFilter(type));
          // TODO Auto-generated constructor stub
     public FileChooser(File path, List<String> types) {
          this(path, new FileExtensionFilter(types));
          // TODO Auto-generated constructor stub
     public FileChooser(FileSystemView arg0, FileExtensionFilter filter) {
          super(arg0);
          addChoosableFileFilter(filter);
     public FileChooser(FileSystemView arg0, String type) {
          this(arg0, new FileExtensionFilter(type));
          // TODO Auto-generated constructor stub
     public FileChooser(FileSystemView arg0, List<String> types) {
          this(arg0, new FileExtensionFilter(types));
          // TODO Auto-generated constructor stub
     public FileChooser(File path, FileSystemView arg1, FileExtensionFilter filter) {
          super(path, arg1);
          addChoosableFileFilter(filter);
     public FileChooser(File path, FileSystemView arg1, String type) {
          this(path, arg1, new FileExtensionFilter(type));
                    // TODO Auto-generated constructor stub
     public FileChooser(File path, FileSystemView arg1, List<String> types) {
          this(path, arg1, new FileExtensionFilter(types));
          // TODO Auto-generated constructor stub
     public FileChooser(String path, FileSystemView arg1, FileExtensionFilter filter) {
          super(path, arg1);
          addChoosableFileFilter(filter);
          // TODO Auto-generated constructor stub
     public FileChooser(String path, FileSystemView arg1, String type) {
          this(path, arg1, new FileExtensionFilter(type));
          // TODO Auto-generated constructor stub
     public FileChooser(String path, FileSystemView arg1, List<String> types) {
          this(path, arg1, new FileExtensionFilter(types));
          // TODO Auto-generated constructor stub
     public int showSaveDialog(Component c) {
          int ok = super.showSaveDialog(c);
          if (ok == JFileChooser.APPROVE_OPTION) {
               FileFilter filter = getFileFilter();
               if (filter instanceof FileExtensionFilter) {
                    File f = getSelectedFile();
                    if (!filter.accept(f)) {
                         setSelectedFile(new File(f.getAbsolutePath() + "." + ((FileExtensionFilter)filter).getType()));
          return ok;

Similar Messages

  • [svn] 674: LCDS-110: If you don' t specify file type when using DocumentReference, a java.lang. NullPointerException occurs.

    Revision: 674
    Author: [email protected]
    Date: 2008-02-27 09:41:30 -0800 (Wed, 27 Feb 2008)
    Log Message:
    LCDS-110: If you don't specify file type when using DocumentReference, a java.lang.NullPointerException occurs.
    qa: yes
    bug: LCDS-110
    doc: no
    checkintests: passed
    Details:
    modules/common/src/java/flex/messaging/errors.properties
    * new error message
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-110
    http://bugs.adobe.com/jira/browse/LCDS-110
    Modified Paths:
    blazeds/branches/3.0.x/modules/common/src/java/flex/messaging/errors.properties

    Yes I know that ;) and I fixed it myself too by initializing it like this: private GameObject[] apple = new GameObject[max_apples];But now I get this error instead:
    Exception in thread "Thread-4" java.lang.ArrayIndexOutOfBoundsException: 3
         at Main.run(Main.java:35)
         at java.lang.Thread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 3
         at Main.paint(Main.java:134)
         at sun.awt.RepaintArea.paintComponent(Unknown Source)
         at sun.awt.RepaintArea.paint(Unknown Source)
         at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)So now I need help on this... =D CHEERS! :P

  • Get the file directory/location using JFileChooser

    Dear,
    How to get the file directory and it location with using JFilechooser after select the indicate file?
    Thanks

    There is an example at the top of JFileChooser's doc.
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JFileChooser.html

  • Add Counter to File name when using Tran Protocol as FTP

    Hi There,
    Was wondering if there was any way to achive the same "Add Counter"  functionality used for File names in Reciever file adapter when we are using FTP as the transport protocol, this option is only provided in NFS,
    My requirement is ..
    Write files using counter on to ftp..
    say if three files already exists on the ftp server with names ...fname001, fname002 and fname003
    then the next time a file is written it should have a file name fname004 else fname001 if no file exists.
    Any help would be greatly appreciated

    No such standard functionality is available in communication channel...
    But you can try customizing ur scenario in one of the following ways...
    Case 1: If a field in source data carries the information regarding the sequence.
    You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
    Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a Ztable to store the sequence number , a function module to fetch the number , and then use a UDF in which you will implement the RFC call logic.Then the same process .... assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    BR,
    Sushil.

  • Issue with the sender file interfaces when using UTF-8 files

    Hello experts,
         We are having number of File to SAP interface scenarios in our business process. In the past, we are having the files coming to us in ASCII text format. Recently, because of the business process change(to handle multiple languages like Chinese), we are getting now the same files in UTF-8 format. So, we have changed the attribute File Type in the sender communication channel from Binary to Text and used encoding format as UTF-8.
    Now, when we see the processed files in PI, we are missing the Header record in the message. For example, we have the PO interface in the following format:
    Identifier     Information
    H     PO header information
    I     PO Item information
    I     PO Item information
    Once the file adapter picks this format kind of file and when we see the XML message in PI, it is just having only two Items information. The header part is not coming to PI at all and the message is trying to get processed inside SAP and therefore interface is failing.
    Additional observations made:
    u2022     We have checked the Document Offset field value too; it is initial for the interface.
    u2022     We added an empty line in the UTF-8 text file, it worked fine. But, this is not an ideal solution for us, because the system which generates these files, canu2019t handle it.
       Does any one has observed this kind of problem before? If so, can you please help me ...
    Thanks,
    Adithya K

    Thanks for all the information. Currently i've tried to use both modules (TextCodepageConversionBean and XMLAnonymizerBean) in my Sender File Adapter, but for now without any result...
    To describe the situation: i am using flatfiles which i am fetched from the file system (NFS) by the Sender File Adapter. To translate the characters to the XML strucutre, the File Content Conversion protocol is been used.
    The content conversion defines the structure base on the first two characters on each row in the flat file. This worked fine till one of our suppliers is delivering BOM characters like "EF BB BF" in the beginning of the file.The content conversion is not able to recognize my header characters in this situation, which will normally start with "01".
    Any suggestions?

  • Question about file size when using "Export for Web"

    Hi!
    I created a .mov file and worked to get a great balance between file size and quality so that I could deliver it via the web and make it easier for end users to see the video on a slower connection.
    My question: When I use "Export for Web," my .mov file is converted into a very large .m4v file--more than double the size of the original file. I know that this export option is to optimize the file for a wide variety of users/internet speeds. Am I correct in guessing that the end size is not an issue? I would post the .mov file instead, but I really like the option of embedding into a html page along with the "click to play" option.
    Bottom line--is it better to post the smaller .mov file that i originally started with or to go ahead and link to the bigger .m4v file that was created with the "Export for Web" option?

    "Export for Web" is a feature of QuickTime Pro and it makes 4 files and the html page code for easy copy/paste Web page editing.
    The very first file is called a "reference movie" and it links to the other 3 files (56kbps, 900kbps and 1.5Mbps). It, and the page code, "read" the connection speed of the viewing hardware and "serve up" the correct file based on that connection speed.
    In nearly all cases the "Desktop" version would still be smaller in file size than the original source. The times the file would "increase" in file size would be when an already compressed was used as the source file. You can find out more about your source file by opening it in QuickTime Player and viewing the Movie Inspector window information.
    There are dozens of other html "tricks" that could be used if your source file is already compressed but you want a different display size:
    Page code to show "aspect" or scale="tofit". This code allows values "outside" of those found in the actual QuickTime file be used for the Web page display. A 320X240 QuickTime .mov file looks pretty good at double size (640X480) but the file size would still be that of the source file.
    "Poster Movie" is another html trick that loads the Web based file directly in the QuickTime Player application (bypassing Web page layout restrictions). These files are also known as "Presentation Movies".
    Another method is the QuickTime Media Link file (.qtl). These are simple text based files that are used as a "direct link". These use simple XML (Extensible Markup Language) and are easily created in any text editing application. The simple syntax has amazing control over a simple QuickTime .mov file. You can launch (and quit) the QuickTime Player, display at other dimensions and even embed "links" inside the display.
    Some of my files as examples:
    http://homepage.mac.com/kkirkster/Lemon_Trees/ a "Poster Movie" style.
    http://homepage.mac.com/kkirkster/.Public/RedneckTexasChristmas.qtl
    A QuickTime Media Link file. A tiny file should download to the viewing machine, launch QuickTime Player, present the movie and it even includes a "link" to my Web page.
    Edit: It appears you must now double click the .qtl download to launch QuickTime.

  • White lines generateds in a File Adapter when using variable substitution.

    Hi all,
    I have been a problem in File generated by XI, my File Adapter is using variable substitution with reference to a field of my message type. Because it, the files generated has white lines in top of file.
    What can I do to not apears these lines ?
    Thanks

    Regis,
    Try to give a more detailed description of your problem otherwise I don't know who's gonna answer...
    Alexx

  • MS Project Very Slow and Project Files Large when Using Shared Resource Pool

    Hello,
    We are using MS Project 2010 Professional in our organization and using a shared resource pool so we can easily identify resource conflicts.  When we started this process many months ago the resource pool worked great.  Now that we have nearly
    all of our projects (~40) using the resource pool, it has become essentially unusable.  Each project file that is sharing the resource pool is 12 MB or greater in file size, and most of the project files contain less than 100 lines.  Saving any file
    takes ~4 minutes.  As a result, many of the resource managers and project managers are starting to avoid using MS Project which is undermining our original intent.
    Any thoughts on what we could try to regain the usability, make the file sizes smaller, improve save times, etc.?  Will MS Project Server fix all of these issues?
    Thanks,
    Josh

    If any of your PMs renamed, moved or over-wrote their project file whilst linked to the Resource Pool or a master, then the file may well have corrupted itself or the pool or both. With 40 files, you can guarantee one or more PMs will do one of the above,
    so file corruption is a when, not if (2days or 2 years or more).
    For 40 projects Project Server or any solution that copies data to a database so the resource data can be consolidated is needed. Project Server is not a simple application, it's a full server and requires proper training and processes to add value. And
    it needs configuring by someone who knows what they're doing!
    In the mean time try unattaching all project files from the pool, then create a new blank pool and re-attach.You will also need to File, Save as to repair each project file if needed. For bad corruption save as to a .xml format then re-import to a blank
    project.
    Or, create a new master each time by inserting all projects into a new blank project, but deselecting the Link option. All tasks are then copied and the resource data consolidated. Record a macro to make creating this very quick and easy (provided your network
    isn't too slow).
    <p>Rod Gill</p> <p><a href="http://www.project-systems.co.nz/project-vba-book/index.html/">The one and only Project VBA Book</a> <a href="http://www.project-systems.co.nz/"></p> <p>Rod
    Gill Project Management</a></p>

  • Exporting to PDF - How Can I Get A Small File Size When Using Lots of Vector Art?

    I am trying to create a small PDF file for e-book distribution purposes. My Indesign pages contain a variety of photographs, vector icons and vector maps.
    A publisher in Britain who does similar books on a Mac using Creative Suite was able to create a 22-page document very similar to mine (similar icons, graphics, density, etc) that is only 2.84 mb, a small fraction of the file size that I'm getting! I've included a sample page of his below, which is a low-res jpeg, but on the original PDF all of the text and images (except the jpeg cliff background) are super sharp - they look like vectors when you zoom in. I've also included screenshots of his PDF export settings.
    I don't know if he's exporting directly out of Indesign, but my best guess is that he is.
    My vector-based icons, numbers and maps are bloating my PDFs considerably. When I remove them, the Indesign and exported PDF file sizes drop dramatically. For the life of me, I can't figure out how he got such small PDF files sizes using so much vector art! The PDF graphic compression settings don't seem to include any options for vector art.
    My vector art graphics (numbering, icons, maps) are all saved as Illustrator AI files and then placed in Indesign as linked graphics. My best guess as to why I can't achieve smaller PDF files is I'm either doing something wrong with the vector graphics themselves or handling/exporting them improperly out of Indesign.
    I am using CS4 for PC and am on a Dell Machine running Windows 7.

    I am trying to create a small PDF file for e-book distribution purposes. My Indesign pages contain a variety of photographs, vector icons and vector maps.
    A publisher in Britain who does similar books on a Mac using Creative Suite was able to create a 22-page document very similar to mine (similar icons, graphics, density, etc) that is only 2.84 mb, a small fraction of the file size that I'm getting! I've included a sample page of his below, which is a low-res jpeg, but on the original PDF all of the text and images (except the jpeg cliff background) are super sharp - they look like vectors when you zoom in. I've also included screenshots of his PDF export settings.
    I don't know if he's exporting directly out of Indesign, but my best guess is that he is.
    My vector-based icons, numbers and maps are bloating my PDFs considerably. When I remove them, the Indesign and exported PDF file sizes drop dramatically. For the life of me, I can't figure out how he got such small PDF files sizes using so much vector art! The PDF graphic compression settings don't seem to include any options for vector art.
    My vector art graphics (numbering, icons, maps) are all saved as Illustrator AI files and then placed in Indesign as linked graphics. My best guess as to why I can't achieve smaller PDF files is I'm either doing something wrong with the vector graphics themselves or handling/exporting them improperly out of Indesign.
    I am using CS4 for PC and am on a Dell Machine running Windows 7.

  • How can I change the default "file type" in the open file dialog when using Firefox on certain web pages?

    I work for a bankruptcy attorney. We use the Court's file upload to file our documents. When I am on the Court's site and I have to pick a file to upload, the "open file" dialog box pops up. In Firefox, the default "file type" is always "image" files. I need it to be "all files". How can I change this setting?

    Two observations.
    First — "Tools-> ...." is specific to Acrobat X and XI. It did not exist prior to Acrobat X.
    Second — Acrobat 9 Pro / Standard (nor earlier release) does not support viewing a PDF page containing a scanned image and performing a right-click  ... Save Image As. 
    The context menu provided by Acrobat 9 Pro with a right-click on a scanned image is:
    The context menu,from a right-click with the TouchUp Object tool selected, for Acrobat 9 Pro is:
    So, to paraphrase what Paul Harvey used to say ... What's the rest of the story?
    Be well...

  • File Adapter: File name when using event

    I'm using the Bea file adapter 7.0 to retrieve ascii files from the file system
    and this triggers a business process in WLI. Is there any way that you can get
    the name of the file when doing this? And is there a way to dynamically name a
    file when you write it to the file system using the file adapter?

    Dear Prakasu,
    In reply to your help
    "Select the Time out tag.
    Fill the require time limit.Like if you want to process a file with in 10 min then maintain 10 min.
    If the file is not transfered with in 10 min then adapter consider an error and through the error.Use alert for adapter errors and send the alert."
    I didn't find Time Out in sender Adapter,Time Out Flag is visible in OS CMDS..
    Can you explain me in more details..
    Thanks
    Prabhakar

  • How do I retain the original file name when using Compressor?

    Hello,
    I am in the process of doing a batch export and would like to keep everything identical to the source material, including the name. There is quite a bit of footage so deleting the "-Apple ProRes 422 for Progressive material" addition can be time consuming.
    Any suggestions?
    I found this thread:
    http://discussions.info.apple.com/thread.jspa?threadID=2369070
    but even though I read it more than 10 times I could not set a "custom" path in my destination options.
    I only have the following options available from the pulldown:
    -Cluster Storage
    -Desktop
    -Source
    -Users movie folder
    Any help is greatly appreciated.
    Message was edited by: Ricardo Javier

    As was mentioned in the thread you linked to, the easiest way is to create a custom Destination. Here are some step-by-step instructions:
    1. Click the Destinations tab.
    2. Click the plus sign in the upper right and choose "Local..."
    http://dl.dropbox.com/u/19589/Compressor%20Custom%20Destination.png
    3. Navigate to or create your destination folder. Click "Open" to select the destination.
    At this point, you've created a new custom destination. To select it, click the disclosure triangle next to the "Custom" folder. This is where all of your custom destinations are located.
    4. Select the custom destination you want to use for your batch.
    5. In the inspector, you'll see a box where you can change the "Output Filename Template". By default, it'll just have "Source File Name". If that's all you want, then press return.
    http://dl.dropbox.com/u/19589/Compressor%20Destination%20Inspector.png
    Now, when you go back to your batch window and apply this custom destination to your job settings, Compressor will apply the Output Filename Template to your filenames. Basically, it will get rid of the setting name (as long as you only have "Source File Name" in the Filename Template.
    Hope this helps.

  • Change file name when using subversion

    Using CS6 / Windows 8.1.
    In our setup all files are checked into Subversion. This seems to cause problems when renaming files. I rename files from within Dreamweaver. All links on other pages get updated, but the file name doesn't change. This is not an issue if file hasn't been checked in yet, or for sites not using Subversion. Is this a bug? Is there a workaround?

    I see this was a problem in CS5. Is it still not fixed in CS6?
    Can't rename file under Subversion control.

  • Files Crash when using files on a PC server using a Mac

    I have a user that when working in InDesign for awhile the files will crash the app and they loose all the progress they made. the files are stored on a windows file server running 2008r2. the mac os version is 7.5 and the cs version is cs5.5.

    Is it a wireless mouse too? Do you have a wireless network? Bluetooth uses the same frequencies as Wi-Fi, if I recall.
    If that's the case, did you try a wired keyboard and mouse?

  • Best practices for ZFS file systems when using live upgrade?

    I would like feedback on how to layout the ZFS file system to deal with files that are constantly changing during the Live Upgrade process. For the rest of this post, lets assume I am building a very active FreeRadius server with log files that are constantly updating and must be preserved in any boot environment during the LU process.
    Here is the ZFS layout I have come up with (swap, home, etc omitted):
    NAME                                USED  AVAIL  REFER  MOUNTPOINT
    rpool                              11.0G  52.0G    94K  /rpool
    rpool/ROOT                         4.80G  52.0G    18K  legacy
    rpool/ROOT/boot1                   4.80G  52.0G  4.28G  /
    rpool/ROOT/boot1/zones-root         534M  52.0G    20K  /zones-root
    rpool/ROOT/boot1/zones-root/zone1   534M  52.0G   534M  /zones-root/zone1
    rpool/zone-data                      37K  52.0G    19K  /zones-data
    rpool/zone-data/zone1-runtime        18K  52.0G    18K  /zones-data/zone1-runtimeThere are 2 key components here:
    1) The ROOT file system - This stores the / file systems of the local and global zones.
    2) The zone-data file system - This stores the data that will be changing within the local zones.
    Here is the configuration for the zone itself:
    <zone name="zone1" zonepath="/zones-root/zone1" autoboot="true" bootargs="-m verbose">
      <inherited-pkg-dir directory="/lib"/>
      <inherited-pkg-dir directory="/platform"/>
      <inherited-pkg-dir directory="/sbin"/>
      <inherited-pkg-dir directory="/usr"/>
      <filesystem special="/zones-data/zone1-runtime" directory="/runtime" type="lofs"/>
      <network address="192.168.0.1" physical="e1000g0"/>
    </zone>The key components here are:
    1) The local zone / is shared in the same file system as global zone /
    2) The /runtime file system in the local zone is stored outside of the global rpool/ROOT file system in order to maintain data that changes across the live upgrade boot environments.
    The system (local and global zone) will operate like this:
    The global zone is used to manage zones only.
    Application software that has constantly changing data will be installed in the /runtime directory within the local zone. For example, FreeRadius will be installed in: /runtime/freeradius
    During a live upgrade the / file system in both the local and global zones will get updated, while /runtime is mounted untouched in whatever boot environment that is loaded.
    Does this make sense? Is there a better way to accomplish what I am looking for? This this setup going to cause any problems?
    What I would really like is to not have to worry about any of this and just install the application software where ever the software supplier sets it defaults to. It would be great if this system somehow magically knows to leave my changing data alone across boot environments.
    Thanks in advance for your feedback!
    --Jason                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hello "jemurray".
    Have you read this document? (page 198)
    http://docs.sun.com/app/docs/doc/820-7013?l=en
    Then the solution is:
    01.- Create an alternate boot enviroment
    a.- In a new rpool
    b.- In the same rpool
    02.- Upgrade this new enviroment
    03.- Then I've seen that you have the "radious-zone" in a sparse zone (it's that right??) so, when you update the alternate boot enviroment you will (at the same time) upgrading the "radious-zone".
    This maybe sound easy but you should be carefull, please try this in a development enviroment
    Good luck

Maybe you are looking for