Object Spacing Help

Okay, I'll bet this question has been asked, but I can't think of the correct search term, apparently.
Here's the problem page:
http://web.mac.com/bcargill/iWeb/Talitha/Main.html
On the left, there are links to other photo pages. The template comes with 3. I added a fourth {Ballet}, but can't get the spacing right. I've done it before but can't remember how. How do I make it identical to what's already there?
Thanks,
Brooke

Brooke,
Here's what you need to do. Simply select one of the photo thumbnails and type Apple-c to copy it. Now place your cursor below the last thumbnail and type Apple-v to paste a new thumbnail perfectly spaced. You do the same thing with the caption part....copy and paste. You can then match the spacing and text exactly.
Try to resist the urge to double click or drag the thumbnails around. Use the cursor to place the thumbnail location and then use the return and delete key to space it up and down and still keep it in line with the others.

Similar Messages

  • Is there an Object Repository Helper in XI 3.1?

    Is there an Object Repository Helper administrative tool in 3.1? What about some of the other XI R2 administrative tools like instance manager, etc? I could only find Query Builder.
    I can't see how one can refresh all CMC reports with updated repository objects without the Object Repository Helper? It will be painful to refresh each report one by one in the CMC.
    Thanks.

    Anybody facing similar need to update all reports with updated repository object and would not want to do it one report at a time via CMC?  Any tools in XI 3.1 similar to Object Repository Helper?
    Thanks.

  • Adjust object spacing

    Is there a way I can adjust the spacing of objects like I can adjust the tracking of text. just a simple slider that adjust the distrobution of them. the objects are all different hights so there isn't anything in the align window that helps me. I'm looking for something that I can say "space 20px apart" or "space 12px apart." and dont have to deal with moving each object individually.

    If you don't already have the Align Panel's options showing, choose "Show options" from the Align Panel menu. That adds the Distribute portion of the panel, where the Distribute Spacing: function lives.
    Select all your objects,  then click on one to make it the "key" object. Doing that enables the Distribute Spacing function. Enter a (distance) value in the Distribute Spacing field, then click the appropriate Distribute button to put the distance you entered into each gap between your objects. You can adjust, but it won't react in a "live" sense, you must re-click the Distribute button each time to make the change.

  • How to (make best) use external js library from html object (need help from dev)

    Ok, on another discussion about rotating full screen backgrounds slideshows, i was orientated to try a small lib named "backstrech"
    I throw myself in, and i really like what we can do with it.
    To use it simply, just make an html object and paste this in :
    <script src="http://musecdn2.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="assets/jquery.backstretch.min.js" type="text/javascript"></script>
    <script>
      $.backstretch([
          "http://dl.dropbox.com/u/515046/www/outside.jpg"
        , "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
        , "http://dl.dropbox.com/u/515046/www/cheers.jpg"
      ], {duration: 3000, fade: 750});
    </script>
    then add the jquery.backstretch.min.js to your "downloaded files" (file menu > files to download)
    And you’re done.
    Now, i need some help from better developers.
    As you can see, my first line is a call to jquery, the same that we find later in Muse exported code.
    Reason 1 : without this line, jquery is not defined and the plugin won’t work.
    This raises 2 issues :
    - We load twice the same ressource which is useless (100k)
    - loading js is all about having the page hangs while it loads, hence, they are put at the end of the body.
    Does anybody know a way to load this particular html script AFTER we are sure the muse scripts (esp. jquery) have been loaded ?
    (in the Edge Animate world, i’d go for the yepnope, and put it at the right place in the code, though, here i have no access to page load structure except head)
    PS : in addition to that, i made an exported page/excluded from navigation where i put all the images i wanted for the background, i could then simply change the images lines :
    , "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
    to
    , "images/my_image_name_as_in_ressources.jpg"

    Got it, there was a bug in my code. Here is what you do:
    1. Download the js file https://raw.github.com/srobbin/jquery-backstretch/master/jquery.backstretch.min.js
    2. In Muse: Go to File -> Add Files for Upload and add the script file
    3. Open Page Properties -> Metadata -> HTML for <Head>
    Paste this code in:
    <script>
    window.onload = function() {
    var loaded = function() {
      $.backstretch([
          "http://dl.dropbox.com/u/515046/www/outside.jpg"
        , "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
        , "http://dl.dropbox.com/u/515046/www/cheers.jpg"
      ], {duration: 3000, fade: 750});
    //Load the plugin:
    var head= document.getElementsByTagName('head')[0];
    var script= document.createElement('script');
    script.type= 'text/javascript';
    script.onreadystatechange = loaded;
    script.onload = loaded;
    script.src= 'assets/jquery.backstretch.min.js';
    head.appendChild(script);
    }; //Window OnLoad
    </script>
    4. Preview or Publish = Done!
    Example: http://musebackstretch.businesscatalyst.com/index.html

  • Cannot resize CS2 objects, please help!

    Hello,
    I'm new to this forum, hopefully someone here can help me.  I have worked with every other version of Photoshop and have never had this issue.  I just installed (and updated) Photoshop CS2 for Windows.  When I attempt to do a simple resize of an image object, it doesn't work.  The diagonal arrow handler shows up and the bounding box changes as if it will transform, but dragging by the corners do nothing.  I've tried doing it manually, through the toolbar (Transform -> Scale, and Transform -> Free Transform), via CTL+T...nothing.  A couple of times it did allow me to resize but didn't want to let me when I held Shift to keep the ratio intact...but now it won't let me at all.
    The other thing it's doing is when I drag the image object to move it to the corner of the canvas, the image follows my mouse but when I let go to place it pops right back over to where it was, as if there is some hidden anchor.
    As a side note some days I have to open Photoshop several times before I can create a new image or open one, because when I try to nothing happens at all.  So I don't know if the image resizing & moving issues are part of this bugginess or if it's a result of some setting Photoshop employed in CS2.  I have all the Snap to options turned off and have looked all over for a setting that might be causing this, to no avail.

    Thanks, Bart - Yes, I did reset the preferences per FAQ's.  This morning I tried repairing the installation but the problems still existed.  I then completely uninstalled the program and reinstalled it fresh, ran all of the updates again, and tried to play around with the tools I was formerly unable to use.  Everything appears to now be working correctly (although I'm not 100% convinced yet!)  When I installed it the FIRST time, I walked away from my computer while it was installing the Adobe updates, and Windows rebooted on me due to automatic Windows updates.  I'm wondering if that somehow corrupted the installation, as I was having all of the following problems:
    -crop wouldn't work
    -clipboard wouldn't import things to paste most of the time, errors
    -transform and resize didn't work
    -problems creating new files or opening files (no response)
    -lasso would reset in the middle of tracing
    -paintbrush strokes would work and then disappear
    -clone stamp would start working then disappear
    -flatten image didn't work
    There was other random bugginess here and there.
    I will be using the program frequently today and will update this post at the end of the day with whether or not the problems seem to be gone for good after this morning's reinstall.

  • Server hangs up when tryin to read object Urgent Help Plz

    Hi,
    I've been working on a client-server model for a while, I've tested my applicaction a thousand of times locally (I mean, server and serveral clients running on the same machine) and it's ok, now I finally run server in a remote host and I find it rarely works fine, most of the times server hangs up when tryin to read objects I dont know why.
    this is the part of the server-code where the problem begins:
    public int EscucharSocket(){
            Socket cliente = null;
            System.out.println("Servidor en escucha...\n");
            while(true){
                try{
                    cliente = SocketS.accept();
                    //I get client's ip and port
                    String ip = cliente.getInetAddress().getHostAddress();
                    int puerto = cliente.getPort();
                    //After the conexion is made, server reads a signature to
                    //identify the client
                   //in function process I check if the signature is valid
                   //SignedData is a class where I wrap the signiture (obviously
                   //it implements Serializable interface
                   process((SignedData)le.LeerObject(cliente));
                   //Other things done here
                catch (Exception e) { }
    }le is a class I use to read,write data to the socket, this is the code of the LeerObject function
    public Object LeerObject(Socket c) throws Exception {
           //Here Is where the server hangs up
            ObjectInputStream b = new ObjectInputStream(c.getInputStream());
            return b.readObject();
    }As I wrote when running locally, there is no problem, but when I have a remote host, that happens
    Any help or idea?

    Hi again, thnx for your help
    I modified my LE class so I just create a couple of Input/Output Streams per client (on server n client program), this is now the complete code of the class:
    import java.net.*;
    import java.io.*;
    public class LE {
        DataOutputStream     dos;
        ObjectOutputStream  oos;
        DataInputStream        dis;
        ObjectInputStream     ois;
        //Streams are created just once in the constructor
        public LE (Socket s) throws Exception {
            dos = new DataOutputStream(s.getOutputStream());
             //I'm not sure if this flush has any sense
            dos.flush();
            oos = new ObjectOutputStream (s.getOutputStream());
            oos.flush();
            dis = new DataInputStream(s.getInputStream());
            ois = new ObjectInputStream (s.getInputStream());
        public void EscribirByte(byte datos[],int len) throws Exception {
            dos.write(datos,0,len);
            dos.flush();
        public void EscribirString(String dato) throws Exception {
            dos.writeUTF(dato);
            dos.flush();
        public void EscribirChar(char dato) throws Exception {
            dos.writeChar(dato);
            dos.flush();       
        public void EscribirInt(int dato) throws Exception {
            dos.writeInt(dato);
            dos.flush();
        public void EscribirLong(long dato) throws Exception {
            dos.writeLong(dato);
            dos.flush();
        public void EscribirObject(Object dato) throws Exception {
            oos.writeObject(dato);
            oos.flush();
        public String LeerString() throws Exception {       
            return dis.readUTF();
        public int LeerInt() throws Exception {       
            return dis.readInt();
        public char LeerChar() throws Exception {       
            return dis.readChar();
        public long LeerLong() throws Exception {       
            return dis.readLong();
        public Object LeerObject() throws Exception {       
            return ois.readObject();
    }part of code of server and client, where the conexion is made and the LE object is created
    Server:
    try{
           cliente = SocketS.accept();               
           //After accepting the conexion the LE object is created
            le = new LE(cliente);
            //I get client's ip and port
            String ip = cliente.getInetAddress().getHostAddress();
            int puerto = cliente.getPort();
            //Object wraping signature is read        
            process((SignedData)le.LeerObject());
            //other control operations doing here
            //A thread is created to receive requests from client
            //(reference to LE object is passed to the thread
           ConexionCliente c = new ConexionCliente (cliente,id_persona,id_grupo,tipo_usuario,backup,le);                               
            //thread is started
            c.start();
    catch (Exception e) {
        try {
            cliente.close();
        catch(Exception e2){}
    }Cliente code:
    try{
       //it connects to the server
       c=new Socket(host,puerto);
       //After accepting the conexion the LE object is created         
       le = new LE(c);
       //other things made here to genarate SignedData Object
      //It sends signed data object
      le.EscribirObject(Data);          
      //A thread is created and started to receive messages from server
      //reference to object LE is sent to the thread to avoid the need of
      //creating another
      new ConexionServidorClient(c,id_persona,ci,le).start();
      return 1;
    catch(Exception e) {
       return -1;
    }after the change, itworks a little better, but still most of the times server hangs up, I can't make server operational yet and I dont have any idea for solving this issue

  • A dynamic table based on run-time created view object -- please help!

    Hello!
    I'm trying to create a dynamic table based on an run-time created view object. All go ok, but table binding component take the first view/iterator state and don't reflect changes they have. Please, take a look:
    1. At run-time the view is being replaced by new red-only one based on query in application module:
    getQueryView().remove();
    createViewObjectFromQueryStmt("QueryView", statement);
    2. Page definition file contains an iterator (using iterator or methodIterator - doesn't matter) binding and table, which binds to the iterator, like:
    <methodIterator id="distributeQuery1Iter" Binds="distributeQuery1.result"
    DataControl="QueryServiceDataControl" RangeSize="10"/>
    <table id="distributeQuery11" IterBinding="distributeQuery1Iter"/>
    3. The page code uses <af:table>. But, if I use table binding (it's right) like this:
    <af:table var="row" value="#{bindings.distributeQuery11.collectionModel}">
    <af:forEach items="#{bindings.distributeQuery11.attributeDefs}" var="def">
    the table will never changed (i.e. still show the first view instance).
    When I tried to use iterator binding directly (it's bad and cannot provide all needed features unlike CollectionModel from table binding) I saw that table works!
    (Code is somehing like:
    <af:table var="row" value="#{bindings.myIterator.allRowsInRange}">
    <af:forEach items="#{bindings.myIterator.attributeDefs}" var="def">
    Why the table binding do not reflect changes in iterator? Or should I use different approach?
    Thanks in advance!
    Ilya.

    I got it to work! I used a hybrid approach comprised of some of your code and some of Steve Muench's AcceessAppModuleInBackingBean example.
    In the setBindings method, I execute an app module method that redefines the query, then I used your code to delete and recreate bindings and iterator:
    public void setBindingContainer(DCBindingContainer bc) {
    this.bindingContainer = bc;
    rebuildVO();
    The rebuildVO() method looks like the code you provided in your example:
    private void rebuildVO() {
    DCDataControl dc;
    DispatchAppModule dApp;
    DCBindingContainer bc;
    DCIteratorBinding it;
    OperationBinding operationBinding;
    ViewObject vo;
    DCControlBinding cb;
    try {
    bc = getBindingContainer();
    dc = bc.findDataControl(DATACONTROL);
    dApp = (DispatchAppModule)dc.getDataProvider();
    // Execute App Module Method to rebuild VO based upon new SQL Statement.
    dApp.setDispatchViewSQL();
    vo = dApp.findViewObject(DYNAMIC_VIEW_NAME);
    it = bc.findIteratorBinding(DYNAMIC_VO_ITER_NAME);
    it.bindRowSetIterator(vo, true);
    // logger.info("Remove value binding...");
    cb = bc.findCtrlBinding(DYNAMIC_VIEW_NAME);
    cb.getDCIteratorBinding().removeValueBinding(cb);
    bc.removeControlBinding(cb);
    // logger.info("Creating new value binding...");
    FacesCtrlRangeBinding dynamicRangeBinding =
    new FacesCtrlRangeBinding(null,
    bc.findIteratorBinding(DYNAMIC_VO_ITER_NAME), null);
    // logger.info("Add control binding...");
    bc.addControlBinding(DYNAMIC_VIEW_NAME, dynamicRangeBinding);
    } catch (Exception e) {
    e.printStackTrace();
    And my App Module method that redefines the view object looks like this:
    public void setDispatchViewSQL() {
    String SQL =
    "begin ? := PK_BUsiNESS.F_GETDISPATCHVIEWSQL();end;";
    CallableStatement st = null;
    String ViewSQL = null;
    try {
    st = getDBTransaction().createCallableStatement(SQL,
    DBTransaction.DEFAULT);
    * Register the first bind parameter as our return value of type LONGVARCHAR
    st.registerOutParameter(1, OracleTypes.LONGVARCHAR);
    st.execute();
    ViewSQL = ((OracleCallableStatement) st).getString(1);
    findViewObject(DYNAMIC_VO_NAME).remove();
    ViewObject vo = createViewObjectFromQueryStmt(DYNAMIC_VO_NAME, ViewSQL);
    vo.executeQuery();
    } catch (SQLException s) {
    throw new JboException(s);
    } finally {
    try {
    st.close();
    } catch (SQLException s) {
    s.printStackTrace();
    When I run it I get my desired results. One thing I don't quite understand is why when the page is first rendered it shows the last set of records rather than the first. Now I have to figure out how to put navigation URLS in each of the table cells.
    Thanks for your help; I would not have gotten this far without it,
    Jeff

  • Exception in finding the Home object Please Help

    Hi All,
    I am learning EJB. I wrote a bean called Hello Bean(from examples) which just prints out Hello. I tried calling it from the client program and I get this exception
    javax.naming.NameNotFoundException: Unable to resolve HelloLocalHome. Resolved:
    '' Unresolved:'HelloLocalHome' ; remaining name ''
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundR
    equest.java:85)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:255)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:222)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    at $Proxy0.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at examples.HelloClient.main(HelloClient.java:21)
    The HelloClient code at line 21 where it threw me this exception is
    Object obj=ctx.lookup("HelloLocalHome");
    Can someone help me out with this.
    In the web logic server console I saw the bean deployed. I understand from that the bean is deployed. Please someone help me out in this.

    Hello Sir,
    Thanks for the reply.When I saw the web logic server console , in the EJB list I had my enterprise bean there. Infact I uploaded my bean from the console. Will you please clarify this .
    Thanks a lot
    shyam

  • Servlet session objects shariing same session objects? Help!

    Hi all,
              Is it possible for two different HttpSessions to share the same session objects.
              We have a java class that we store in the session. This class calls a stateless Session EJB to do quoting for an insurance policy. It seems that two different clients are sharing the same instance of the EJB because they are each modifying the other's quotes.
              I have checked the session id for each client and have found that they are different. I then changed the EJB to be stateful but I received the same results.
              I'm not sure where to go from here.
              Any help would be greatly appreciated.
              Thanks in advance.
              Greg

    The session object is declared through a useBean-directive and has session-scope. We are using WLS sp 4

  • How to properly create path art object, please help

    Hello there,
    I have a vector of AIRealPoint , each point is actual X, Y coordinate of the stroke. I need to create path art object out of this vector.
    I'm  somehow confused how to correctly construct segments array form the given AIRealPoints, my goal is to have single path object where count of segments is equal to count of AIrealPoints first and last points are anchors. SDK documenation is not really helping here...
    Please, take a look at the code snippet, it seems I'm doing something wrong with in and out params of segment , in any case I fail to create simple path object ....
    ASErr CretaeVectorPathTest2(vector<AIRealPoint>& stroke)
    AIArtHandle artHandle;
    ASErr result = kNoErr;
    try {
      AIRealPoint start;
      long lngStrokeLength = stroke.size()-1;
      AIArtHandle lineHandle = NULL;
      AIErr error = sAIArt->NewArt( kPathArt, kPlaceAboveAll, NULL, &lineHandle );
      if ( error ) throw( error );
      error = sAIPath->SetPathSegmentCount( lineHandle, lngStrokeLength );
      if ( error ) throw( error );
      AIPathSegment *segment = new AIPathSegment[lngStrokeLength];
      // This is a first point of the path
      segment[0].p.h = stroke[0].h;
      segment[0].p.v = stroke[0].v;
      segment[0].in = segment[0].out = segment[0].p;
      segment[0].corner = true;
      for(inti=1 ;i< lngStrokeLength-1;i++)
       segment[i].p.h = stroke[i].h ;
       segment[i].p.v = stroke[i].h ;
       // NOT GOOD!!!
       segment[i].in.h  = stroke[i-1].h ;
       segment[i].in.v  = stroke[i-1].v ;
       segment[i].out.h  = stroke[i+1].h;
       segment[i].out.v  = stroke[i+1].v;
       segment[i].corner = false;
    // NOT GOOD!!!
      // This is a last point of the path
      segment[lngStrokeLength].p.h = stroke[lngStrokeLength].h;
      segment[lngStrokeLength].p.v = stroke[lngStrokeLength].v;
      segment[lngStrokeLength].in = segment[lngStrokeLength].out = segment[lngStrokeLength].p;
      segment[lngStrokeLength].corner = true;
      error = sAIPath->SetPathSegments( lineHandle, 0, lngStrokeLength, segment );
      if ( error ) throw( error );
      error = sAIPath->SetPathClosed( lineHandle, false );
      if ( error ) throw( error );
    // apply color width etc.
      AIPathStyle style;
      error = sAIPathStyle->GetPathStyle( lineHandle, &style );
      if ( error ) throw( error );
      style.strokePaint = true;
      style.stroke.color.kind = kFourColor;
      style.stroke.color.c.f.cyan = 0;
      style.stroke.color.c.f.magenta = 0;
      style.stroke.color.c.f.yellow = 0;
      style.stroke.color.c.f.black = 100;
      style.stroke.width = 0.75;
      style.stroke.dash.length = 0;
      delete[] segment;
      error = sAIPathStyle->SetPathStyle( lineHandle, &style );
      if ( error ) throw( error );
    catch (ai::Error& ex) {
      result = ex;
    return result;
    Thanks,
    David

    As for beziers, Illustrator uses cubic beziers which are fairly straight forward (thank goodness!). Here's a lift from Wikipedia's Bezier entry:
    This image is pretty good at demonstrating how AI's bezier segments work. In the animation, the moving point has two lines sticking off it, ending with two points. If P3 was an AISegment, the left-hand blue point would be in and the right-hand point would be out. If we were to translate the state of the animation in its last frame into AI code, you'd basically have something like this:
    AISegment segment1, segment2;
    segment1.p = p0;
    segment1.in = p0;
    segment1.out = p1;
    segment2.in = p2;
    segment2.p = p3;
    segment.out = p3;
    Note that this would imply any line that continues beyond either end point isn't a smooth beizer curve (i.e. the curve is limited to between these points). That effectively makes them corner points (I think). Also, the line formed by linking in & p or out & p is the tangent to the curve at p, which I think you can make out from from the animation.
    Another way to get a feel for this is to use the pen tool to draw a line with a few segments. If you then pick the sub-select tool (white selection arrow, not black selection arrow) and select individual points on the curve, you'll see when you do that two 'anchors' jut out from each point. Those are the in & out for that point on the curve.
    Its all a little confusing because technically, a bezier segment between p & q would be p, p.out, q.in & q. (four vertices). To avoid repeating information, and keep it simple for non-beziers, AI's segments are still the vertices. So if you wanted to make the nth segment a beizer, you'd need n & n+1 from AI's path, and you'd modify two-thirds of each AISegment (p, out from n & in, p from n+1).
    I hope that helps, but if you have any further questions, feel free to ask! If you need to do anything fancy with beziers, there are some helpful utilites in AIRealBezier.h.

  • Tree component children displays [Object, Object] need help displaying the names :)

    hey guys... i've run into yet another problem...
    i have a tree component that gets its data from a httpservice.. xml file.
    i then pasrse thru the recieved xml to create a dataprovider for the tree component. the code for that is below...
    <mx:Tree id="tree" dataProvider="{treeData2}" showRoot="false" width="50%" height="100%" />
    [Bindable] public var treeData2:ArrayCollection = new ArrayCollection;
    [Bindable] public var treeData:Object;
    public var resultArr:Object;
    public function initNavTab():void{
        var navService:HTTPService = new HTTPService();
        navService.url = "http://www.apxalarm.com/pages/getnav";
        navService.method = "POST";
        navService.useProxy = false;
        navService.resultFormat = "e4x";
        //navService.resultFormat = "array";
        navService.addEventListener(ResultEvent.RESULT, returnNavData);
        navService.addEventListener(FaultEvent.FAULT, navDataFault);
        navService.send();
    public function returnNavData(event:ResultEvent):void{
        navData = event.result;
        //resultArr = event.result;
        Alert.show("load complete");
        tree_labelFunc(navData);
    public function navDataFault(event:FaultEvent):void{
        Alert.show(event.fault.faultDetail);
    public function tree_labelFunc(item:Object):void{
        var node:XML = XML(item);
        var nav:XMLList = new XMLList();
        nav = node.sections;
        var i:Number = 0;
        for each (var section:XML in nav.section){
            var obj:Object = new Object();
            obj.label = section.name;
            obj.urlName = section.urlName;
            obj.children = new ArrayCollection;
                for each(var nav1:XML in section.navs.nav){
                    obj.children.addItem([{label: nav1.name}]);
            treeData2.addItem(obj);
    the tree_labelFunc parces thru the xml and creates the appropriate structure i need to be displayed in the tree component... but unfortunately the children of the tree component only shows [Object, Object]
    can someone show me how to display the labels instead of the Object???
    thank you soo much in advace guys!!! i really appretiate it!!!
    oh and this is part of the xml that it is pulling
    <siteMap>
      <sections>
        <section>
          <name>About APX</name>
          <urlName>about</urlName>
          <position>1</position>
          <defaultaction>/about/mission</defaultaction>
          <navs>
            <nav>
              <name>Our Mission</name>
              <urlName>mission</urlName>
              <position>1</position>
              <defaultaction>13</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Links</name>
              <urlName>links</urlName>
              <position>4</position>
              <subNavs>
                <nav>
                  <name>iamapx.com</name>
                  <urlName>iamapx</urlName>
                  <position>1</position>
                  <defaultaction>http://www.iamapx.com</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>apxgivesback.com</name>
                  <urlName>agb</urlName>
                  <position>2</position>
                  <defaultaction>http://www.apxgivesback.com</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Newsletter</name>
              <urlName>newsletter</urlName>
              <position>3</position>
              <defaultaction>37</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
      </sections>
    </siteMap>
    i need the name tags in the xml to be displayed in the tree component....
    again thank you soo much in advace for your help!!

    thank you soo much for your quick responce alex!!
    the toXMLString is exactly like the xml
    <siteMap>
      <sections>
        <section>
          <name>About APX</name>
          <urlName>about</urlName>
          <position>1</position>
          <defaultaction>/about/mission</defaultaction>
          <navs>
            <nav>
              <name>Our Mission</name>
              <urlName>mission</urlName>
              <position>1</position>
              <defaultaction>13</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Links</name>
              <urlName>links</urlName>
              <position>4</position>
              <subNavs>
                <nav>
                  <name>iamapx.com</name>
                  <urlName>iamapx</urlName>
                  <position>1</position>
                  <defaultaction>http://www.iamapx.com</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>apxgivesback.com</name>
                  <urlName>agb</urlName>
                  <position>2</position>
                  <defaultaction>http://www.apxgivesback.com</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Newsletter</name>
              <urlName>newsletter</urlName>
              <position>3</position>
              <defaultaction>37</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>APX Security Systems</name>
          <urlName>apxsystems</urlName>
          <position>2</position>
          <defaultaction>/apxsystems/systems/products</defaultaction>
          <navs>
            <nav>
              <name>Service Areas</name>
              <urlName>serviceareas</urlName>
              <position>1</position>
              <defaultaction>25</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Systems</name>
              <urlName>systems</urlName>
              <position>2</position>
              <defaultaction>27</defaultaction>
              <subNavs>
                <nav>
                  <name>Get A System</name>
                  <urlName>get</urlName>
                  <position>2</position>
                  <defaultaction>27</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>Browse Products</name>
                  <urlName>products</urlName>
                  <position>1</position>
                  <defaultaction>28</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>Refer A Friend</name>
                  <urlName>refer</urlName>
                  <position>3</position>
                  <defaultaction>38</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
          </navs>
        </section>
        <section>
          <name>Customer Support</name>
          <urlName>support</urlName>
          <position>3</position>
          <defaultaction>/support/specialist</defaultaction>
          <navs>
            <nav>
              <name>Technical Support</name>
              <urlName>tech</urlName>
              <position>2</position>
              <defaultaction>32</defaultaction>
              <subNavs>
                <nav>
                  <name>Troubleshooting</name>
                  <urlName>troubleshooting</urlName>
                  <position>2</position>
                  <defaultaction>32</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Speak To A Specialist</name>
              <urlName>specialist</urlName>
              <position>1</position>
              <defaultaction>30</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Move Options</name>
              <urlName>moves</urlName>
              <position>3</position>
              <defaultaction>35</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Home Safety</name>
          <urlName>safety</urlName>
          <position>4</position>
          <defaultaction>/safety/outside</defaultaction>
          <navs>
            <nav>
              <name>Indoor Tips</name>
              <urlName>inside</urlName>
              <position>1</position>
              <defaultaction>17</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Outdoor Tips</name>
              <urlName>outside</urlName>
              <position>2</position>
              <defaultaction>18</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Customer Stories</name>
          <urlName>stories</urlName>
          <position>5</position>
          <defaultaction>/stories/videos</defaultaction>
          <navs>
            <nav>
              <name>Videos</name>
              <urlName>videos</urlName>
              <position>3</position>
              <defaultaction>15</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Read Stories</name>
              <urlName>read</urlName>
              <position>1</position>
              <defaultaction>19</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Tell Your Story</name>
              <urlName>tell</urlName>
              <position>2</position>
              <defaultaction>20</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Newsroom</name>
          <urlName>press</urlName>
          <position>6</position>
          <defaultaction>/press/compprofile</defaultaction>
          <navs>
            <nav>
              <name>Press Releases</name>
              <urlName>pr</urlName>
              <position>2</position>
              <defaultaction>21</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Media Kit</name>
              <urlName>media</urlName>
              <position>3</position>
              <defaultaction>22</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Company Profile</name>
              <urlName>compprofile</urlName>
              <position>1</position>
              <defaultaction>34</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Contact Us</name>
              <urlName>contact</urlName>
              <position>4</position>
              <defaultaction>39</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
      </sections>
    </siteMap>
    i need to subNavs to be available within the tree dropdown...

  • JS CS5.5-Moving Selected Objects-Please Help!!

    Hello,
    I have a scritpt that will apply a certain object style to the selected items in the document. I am trying to add a "move" to this scirpt. I would like every item selected in the document to move down .125 inches. I know this is much simpler than I think it is, I've always had trouble with bounds in scripts. If anyone could please help me with this, I'd greatly appreciate it.
    Thanks for your time,
    Danny

    I suppose if I was going to be picky, I should have provided my code initially, rather than waiting for csm_phil and then posting something else. Anyhow, I think it is better to use:
    var
        i,
      savedUnits = app.scriptPreferences.measurementUnit;
    try {
      app.scriptPreferences.measurementUnit =
          MeasurementUnits.INCHES;
      for (i = 0; i < app.selection.length; i++){
          app.selection[i].move(undefined, [0, +.125]);
    } finally {
      app.scriptPreference.measurementUnit = savedUnits;
    This changes the scriptPreferences, not the viewPreferences, which means that even if you screw up and don't set it back, it does not affect the user. It also means it is one variable to change and not two. We take care to save the units and set them back, so other scripts and users are not affected.  We even use a try/finally block so that if an error condition is thrown by the move, we reset the measurement unit afterwards anyhow.
    Lastly, unlike csm_phil, I don't cancel the selection at the end. I didn't see Danny asking for that and I don't think it's what you would want.

  • Object Deserialization help?

    Hi all,
    Once again I am forced to offer up my programming efforts for professional advice. :) I'm doing object serialization / deserialization. I have a very simple class called Person which looks like this: -
    public class Person implements Serializable {
        private String sName;
        private String sAddress;
        public Person(String sName, String sAddress) {
            this.sName = sName;
            this.sAddress = sAddress;
        public String toString() {
            return sName + " lives at: " + sAddress;
    }All this does is store a name and address String for the object and return it via its toString() method. All well and good. I've made sure it implements the Serializable interface too.
    The following program asks for as many names and addresses as you like (until you type 'exit' as a name) and creates a Person instance from this. It then outputs the data from the object and creates ObjectOutputStream (set to append) to the file and writes the Person instance to the file. It then resets and closes the file.
    This happens for each Person object instance you create. After you've typed 'exit', you are given the option to read back the data from the file you created. This always gives me a "StreamCorruptedException" at this line: -
    aPerson = (Person)objectIn.readObject();My book states that "...this is thrown when objects are written to the stream. When the object is written to the output stream, additional control data is written so that the object data can be validated when it is read back. This exception is thrown when the control information in the stream is inconsistent."
    ....which doesn't really help me track down why its happening. :)
    Anyway, here is the code for the main program.....sorry its a little on the long side, but its mostly println()'s anyway. :) Don't worry about the Input class, thats just my encapsulated BufferedReader class.
    import java.io.*;
    public class PersonTest {
        public static void main(String[] args) {
            Input keyboard = new Input();
            final String sFilePath = "C:/Beg Java Stuff/PersonObjects.bin";
            Person aPerson = null;
            String nameInput = new String();
            String addressInput = new String();
            ObjectOutputStream objectOut = null;
            ObjectInputStream objectIn = null;
            String sAnswer = null;
            int iCount = 0;
            System.out.println("Program started\n");
            while (!nameInput.equals("exit")) {
                System.out.print("Enter Person name: ");
                nameInput = keyboard.readString();
                if (!nameInput.equals("exit")) {
                    System.out.print("Enter Person address: ");
                    addressInput = keyboard.readString();
                    aPerson = new Person(nameInput, addressInput);
                    System.out.println("Person object created.");
                    System.out.println("Person data: " + aPerson);
                    try {
                        objectOut = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(sFilePath, true)));
                        objectOut.writeObject(aPerson);
                        objectOut.reset();
                        objectOut.close();
                        System.out.println("Person object successfully written to file.");
                    } catch (IOException e) {
                        System.out.println("Could not add Person object to file.");
                        e.printStackTrace(System.err);
                        System.exit(1);
            System.out.println("Do you want to list the contents of the file (Y/N)?");
            sAnswer = keyboard.readString();
            if (sAnswer.toUpperCase().equals("Y")) {
                System.out.println("Attempting to load Person file...");
                try {
                    objectIn = new ObjectInputStream(new BufferedInputStream(new FileInputStream(sFilePath)));
                    while(true) {
                        aPerson = (Person)objectIn.readObject();
                        iCount++;
                        System.out.println(aPerson);
                } catch (ClassNotFoundException e) {
                    System.out.println("Could not load Person file.");
                    e.printStackTrace(System.err);
                    System.exit(1);
                } catch (EOFException e) {
                    System.out.println("Finished loading Person file. Loaded " + iCount + " Person object(s).");
                } catch (IOException e) {
                    System.out.println("Could not load Person file.");
                    e.printStackTrace(System.err);
                    System.exit(1);
                try {
                    objectIn.close();
                } catch (IOException e) {
                    System.out.println("Failed to close Person file properly.");
                    e.printStackTrace(System.err);
                    System.exit(1);
            System.out.println("\nProgram ended\n");
            System.exit(0);
    }Many thanks to anyone who can shed light on this. Mucho (well......seven) Duke Dollars for the clever yet compassionate coder who can help me out :)
    Thanks.

    Odd, making that change doesn't alter the output or prevent the exception for me (using 1.4.1 on NT4).
    The reason there is an error is that the file contains repeated class header information.
    Reset is used to force the header information for the subsequent objects to be written. Not calling reset will not change the output in this case, as nothing is written after reset is called.
    It is better to write each object to the file, then close it once, eg:    objectOut = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(sFilePath)));
        while (true) {
          System.out.print("Enter Person name: ");
          nameInput = keyboard.readLine();
          boolean validName = (!nameInput.equals("exit"));
          objectOut.writeBoolean(validName);
          if (validName) {
            System.out.print("Enter Person address: ");
            addressInput = keyboard.readLine();
            aPerson = new Person(nameInput, addressInput);
            System.out.println("Person object created.");
            System.out.println("Person data: " + aPerson);
            try {
              objectOut.writeObject(aPerson);
              System.out.println("Person object successfully written to file.");
            } catch (IOException e) {
              System.out.println("Could not add Person object to file.");
              e.printStackTrace(System.err);
              System.exit(1);
          } else {
            break;
        objectOut.close();
        System.out.println("Do you want to list the contents of the file (Y/N)?");
        sAnswer = keyboard.readLine();
        if (sAnswer.toUpperCase().equals("Y")) {
          System.out.println("Attempting to load Person file...");
          try {
            objectIn = new ObjectInputStream(new BufferedInputStream(new FileInputStream(sFilePath)));
            while(objectIn.readBoolean()) {
              aPerson = (Person)objectIn.readObject();
              iCount++;
              System.out.println(aPerson);
            System.out.println("Finished loading Person file. Loaded " + iCount + " Person object(s).");
          } catch (ClassNotFoundException e) {
            System.out.println("Could not load Person file.");
            e.printStackTrace(System.err);
            System.exit(1);
          } catch (EOFException e) {
            System.out.println("Unexpected end of file-data corrupt.");
            e.printStackTrace(System.err);
            System.exit(1);
          } catch (IOException e) {
            System.out.println("Could not load Person file.");
            e.printStackTrace(System.err);
            System.exit(1);
          }It's generally a bad idea to use exceptions for normal program control flow- I've added a boolean continuation marker instead.
    Pete

  • Object variable help - Note 1131320

    Good Morning experts!
    I've had a situation where an install was done and when modifying an application in the admin console, we get an error with object variable or object not set.  While searching the notes, I found note 1131320 that states that you should replace the admin templates under webfolders.
    I did that.  However, there's a step that it asks you to do that I'm not very familiar with.  Step 5 states to publish all reports.  Anyone know how to do that off the top of their head?  I could figure it out over the weekend, but we have some deliverables that are being held up!
    Your help is greatly appreciated!
    Barton

    The note you reference was posted for updgrades from versions 5.X to 5.1 SP1 and I wondered if you had upgraded to version SP3 instead of 1.  The process that the team suggests should have included the following:
    You have to go through the Web Admin interface to Publish All Reports.
    1. Enter the BPC Admin Web interface
    2. Under Web Admin Task Click Publish Reports
    3. Select all of the reports and click the green check mark to publish the reports.
    This then pushes the new templates for use in the web interface. Hope this helps.
    Edited by: Petar Daniel on Oct 6, 2008 10:50 PM

  • How to convert Property files into Java Objects.. help needed asap....

    Hi..
    I am currently working on Internationalization. I have created property files for the textual content and using PropertyResourceBundles. Now I want to use ListResourceBundles. So what I want to know is..
    How to convert Property files into Java Objects.. I think Orielly(in their book on Internationalization) has given an utitlity for doing this. But I did not get a chance to look into that. If anyone has come across this same issue, can you please help me and send the code sample on how to do this..
    TIA,
    CK

    Hi Mlk...
    Thanks for all your help and suggestions. I am currently working on a Utility Class that has to convert a properties file into an Object[][].
    This will be used in ListResourceBundle.
    wtfamidoing<i>[0] = currentKey ;
    wtfamidoing<i>[1] = currentValue ;I am getting a compilation error at these lines..(Syntax error)
    If you can help me.. I really appreciate that..
    TIA,
    CK

Maybe you are looking for