Dynamic first page - newbie question

Here is the setup,
My application is invoked from a third party (single sign-on) where the request contains a verified user id. The request will ask for the default index.jsp which will then be forwarded to a faces page.
I have a backingBean userBean in session scope. In its initialization, it will read the user profile from the databse and find the default first page for a user.
Is there anyway I can do in the index.jsp to forward to different default first page for different users?
I'm coming from the servlet background and I know it can easily be done from a servlet (dispatch to different pages after reading the user info). I just don't know how to accomplish that with jsf. I guess if anywhere I reference #{userBean} in faces jsp, the userBean initialization will be executed so I know who the user is. But I don't know if there is anyway I can re-direct a dynamic page based on a property in userBean.
Thanks in advance.

After reading user profile in your userBean
execute this code:
ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
externalContext.redirect(externalContext                         .encodeResourceURL(externalContext                                        .getRequestContextPath()+ userPage));
userPage is a full path to jsp page.
Hope it helps.
Martin

Similar Messages

  • Setting up a cluster for the first time: newbie questions

    Any help appreciated with this situation:
              I'm trying to set up a cluster for the first time and running into
              issues (no big surprise). I'll outline my situation and pose questions
              as they arise. If/when I get things to work I'll post a step-by-step
              summary of what it took to get a simple cluster going.
              Here's what I have:
              machines:
              1 Windows 2000 machines with WL 6.1
              2 RedHat Linux machines with WL 6.1
              All machines are on the same Home LAN, can see each other, etc.
              IP addresses are:
              Windows box: 192.168.1.100
              Linux box 1: 192.168.1.102
              Linux box 2: 192.168.1.103
              servers:
              I've set up the Windows machine as my admin server, and set up
              a managed server on each Linux machine. I created a cluster that consists
              of the 2 Linux machines and deployed the web app and EJB to the cluster.
              The Windows machine is acting as a Proxy using ClusterServlet.
              The web application has been set as the Default Web Application on the
              two Linux machines. All 3 machines are listening on ports 80/443. I also
              set up session memory replication through the console.
              Application:
              I have an application that I package as an EAR file. I'm using it as a
              "reference" application designed to mimic a real world app as much as possible.
              The EAR file contains a web application that uses Struts. It also consists
              of a single Stateless Session Bean. The WAR file and EJB Jar are all
              packaged up into the EAR file. I've been able to run this application just
              fine on a single managed server on all 3 machines.
              The web application works fine, and it can invoke the EJB. I can also
              invoke the EJB from Java stand-alone clients. Struts works great. All is
              well with the world. Now I'm trying to "cluster-ize" this app using
              the environment described above and encountering issues.
              I've read the docs and followed the instructions according to the
              "Weblogic Bible" book. I can bring up all 3 servers and the Linux
              managed servers connect to the cluster just fine. I can also
              see the Struts messages in their logs which normally happens and tells me
              the webapp is initialized properly. The console tells me that the managed
              servers are running. I get no error messages starting up any of the serves.
              Here are the problems I am encountering.
              When I try to access the Web Application (through a browser on the
              Windows machine using http://localhost) I get the following error message:
              <Nov 19, 2002 6:44:33 AM EST> <Error> <HTTP> <HttpServer(1754841,null default ct
              x,admin) found no context for "/". This request does not match the context path
              for any installed web applications and there is no default web application confi
              gured.>
              Also, when I try to invoke the EJB through a stand-alone Java client,
              I get a JNDI lookup error on the EJB's home interface.
              Questions:
              Question1: I noticed when setting up the machines that console lets you
              define a "Machine" or a "Unix Machine". What's the difference? Should I
              define the Linux machines as Unix machines or machines, and what are the
              consequences of either choice?
              Question2:
              I'm not totally clear on how my web.xml should look to set up Struts,
              the ClusterServlet, and a servlet filter I'm using to test Servlet filters.
              Here is what I had before I tried to cluster and which works fine:
              <filter>
              <filter-name>MainFilter</filter-name>
              <filter-class>com.refapp.servlets.MainFilter</filter-class>
              <init-param>
              <param-name>myAttribute</param-name>
              <param-value>Foo</param-value>
              </init-param>
              </filter>
              <filter-mapping>
              <filter-name>MainFilter</filter-name>
              <url-pattern>/*</url-pattern>
              </filter-mapping
              <!-- Struts ActionServlet Configuration -->
              <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
              <param-name>application</param-name>
              <param-value>refappstruts</param-value>
              </init-param>
              <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <init-param>
              <param-name>debug</param-name>
              <param-value>2</param-value>
              </init-param>
              <init-param>
              <param-name>mapping</param-name>
              <param-value>org.apache.struts.action.RequestActionMapping</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
              </servlet>
              <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              <welcome-file-list>
              <welcome-file>index.do</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>index.html</welcome-file>
              </welcome-file-list>
              (I have set up a "dummy" 0-length file called index.do that triggers
              Struts to go into its ActionServlet when first accessing the web site).
              Here is how I added ClusterServlet to web.xml:
              servlet>
              <servlet-name>ClusterServlet</servlet-name>
              <servlet-class>weblogic.servlet.internal.HttpClusterServlet</servlet-class>
              <load-on-startup>0</load-on-startup>
              <init-param>
              <param-name>defaultServers</param-name>
              <param-value>192.168.1.102:80:443|192.168.1.103:80:443</param-value>
              </init-param>
              <init-param>
              <param-name>DebugConfigInfo</param-name>
              <param-value>ON</param-value>
              </init-param>
              </servlet>
              <servlet-mapping>
              <servlet-name>InitServlet</servlet-name>
              <url-pattern>/servlet/InitServlet</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>/</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>*.html</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>*.jsp</url-pattern>
              </servlet-mapping>
              <servlet-mapping>
              <servlet-name>ClusterServlet</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              Clearly there is a problem with the Default Web application not being
              seen/mapped properly. Any chances my URL mappings for the filter servlet,
              Struts, and ClusterServlet are stepping on each other?
              With respect to the EJB, here is what my weblogic-ejb-jar looks like:
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>Hello</ejb-name>
              <stateless-session-descriptor>
              <pool>
                   <max-beans-in-free-pool>100</max-beans-in-free-pool>
              </pool>
              <stateless-clustering>
              <stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
              <stateless-bean-load-algorithm>
              round-robin
              </stateless-bean-load-algorithm>
              <stateless-bean-methods-are-idempotent>
              true
              </stateless-bean-methods-are-idempotent>
              </stateless-clustering>
              </stateless-session-descriptor>
              <jndi-name>Hello.Home</jndi-name>
              </weblogic-enterprise-bean>
              I run this through ejbc and package everything up into the EAR file.
              However, I get a JNDI lookup failure when I try to access the Bean from
              a standalone Java client running on the Windows machine.
              Here is the jndi.properties file that I am using:
              java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
              java.naming.provider.url=t3://localhost:80
              Any ideas what I'm doing wrong here? I can post config.xml also if needed.
              Thanks in advance!
              

    Let me try to answer :)....
              A1> No need to name diff machines by default weblogic
              considers the servers are physically located in diff boxes.
              The names are used to differtiate the mang servers which are in
              multihomed
              Some things to chk
              1> Did u targeted the ear file Target as cluster.
              2> Can u see on the Admin console that both the man servers
              are participated in the cluster( u can see by clicking the monitoring
              tab on the Cluster node).
              3>Is the URL:PORT for the default web app correct?
              the reason: is I dont see the port# on the link u mentioned
              4> probably ur ejb might not been deployed on the target thats the
              reason u cant access thru java client. If u correct the targets that
              will probably fix it.
              Hope this helps
              Please post the result
              Thanks
              Sudhir
              [email protected] (Chris) wrote in message news:<[email protected]>...
              > Any help appreciated with this situation:
              > I'm trying to set up a cluster for the first time and running into
              > issues (no big surprise). I'll outline my situation and pose questions
              > as they arise. If/when I get things to work I'll post a step-by-step
              > summary of what it took to get a simple cluster going.
              > Here's what I have:
              >
              > machines:
              > 1 Windows 2000 machines with WL 6.1
              > 2 RedHat Linux machines with WL 6.1
              > All machines are on the same Home LAN, can see each other, etc.
              > IP addresses are:
              > Windows box: 192.168.1.100
              > Linux box 1: 192.168.1.102
              > Linux box 2: 192.168.1.103
              >
              > servers:
              > I've set up the Windows machine as my admin server, and set up
              > a managed server on each Linux machine. I created a cluster that consists
              > of the 2 Linux machines and deployed the web app and EJB to the cluster.
              > The Windows machine is acting as a Proxy using ClusterServlet.
              > The web application has been set as the Default Web Application on the
              > two Linux machines. All 3 machines are listening on ports 80/443. I also
              > set up session memory replication through the console.
              >
              > Application:
              > I have an application that I package as an EAR file. I'm using it as a
              > "reference" application designed to mimic a real world app as much as possible.
              > The EAR file contains a web application that uses Struts. It also consists
              > of a single Stateless Session Bean. The WAR file and EJB Jar are all
              > packaged up into the EAR file. I've been able to run this application just
              > fine on a single managed server on all 3 machines.
              > The web application works fine, and it can invoke the EJB. I can also
              > invoke the EJB from Java stand-alone clients. Struts works great. All is
              > well with the world. Now I'm trying to "cluster-ize" this app using
              > the environment described above and encountering issues.
              >
              > I've read the docs and followed the instructions according to the
              > "Weblogic Bible" book. I can bring up all 3 servers and the Linux
              > managed servers connect to the cluster just fine. I can also
              > see the Struts messages in their logs which normally happens and tells me
              > the webapp is initialized properly. The console tells me that the managed
              > servers are running. I get no error messages starting up any of the serves.
              >
              > Here are the problems I am encountering.
              >
              > When I try to access the Web Application (through a browser on the
              > Windows machine using http://localhost) I get the following error message:
              >
              > <Nov 19, 2002 6:44:33 AM EST> <Error> <HTTP> <HttpServer(1754841,null default ct
              > x,admin) found no context for "/". This request does not match the context path
              > for any installed web applications and there is no default web application confi
              > gured.>
              >
              > Also, when I try to invoke the EJB through a stand-alone Java client,
              > I get a JNDI lookup error on the EJB's home interface.
              >
              > Questions:
              > Question1: I noticed when setting up the machines that console lets you
              > define a "Machine" or a "Unix Machine". What's the difference? Should I
              > define the Linux machines as Unix machines or machines, and what are the
              > consequences of either choice?
              >
              > Question2:
              > I'm not totally clear on how my web.xml should look to set up Struts,
              > the ClusterServlet, and a servlet filter I'm using to test Servlet filters.
              > Here is what I had before I tried to cluster and which works fine:
              >
              > <filter>
              > <filter-name>MainFilter</filter-name>
              > <filter-class>com.refapp.servlets.MainFilter</filter-class>
              > <init-param>
              > <param-name>myAttribute</param-name>
              > <param-value>Foo</param-value>
              > </init-param>
              > </filter>
              >
              > <filter-mapping>
              > <filter-name>MainFilter</filter-name>
              > <url-pattern>/*</url-pattern>
              > </filter-mapping
              >
              >
              > <!-- Struts ActionServlet Configuration -->
              > <servlet>
              > <servlet-name>action</servlet-name>
              > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              >
              > <init-param>
              > <param-name>application</param-name>
              > <param-value>refappstruts</param-value>
              > </init-param>
              >
              > <init-param>
              > <param-name>config</param-name>
              > <param-value>/WEB-INF/struts-config.xml</param-value>
              > </init-param>
              >
              > <init-param>
              > <param-name>debug</param-name>
              > <param-value>2</param-value>
              > </init-param>
              >
              > <init-param>
              > <param-name>mapping</param-name>
              > <param-value>org.apache.struts.action.RequestActionMapping</param-value>
              > </init-param>
              > <load-on-startup>2</load-on-startup>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>action</servlet-name>
              > <url-pattern>*.do</url-pattern>
              > </servlet-mapping>
              >
              > <welcome-file-list>
              > <welcome-file>index.do</welcome-file>
              > <welcome-file>index.jsp</welcome-file>
              > <welcome-file>index.html</welcome-file>
              > </welcome-file-list>
              >
              > (I have set up a "dummy" 0-length file called index.do that triggers
              > Struts to go into its ActionServlet when first accessing the web site).
              >
              > Here is how I added ClusterServlet to web.xml:
              >
              > servlet>
              > <servlet-name>ClusterServlet</servlet-name>
              > <servlet-class>weblogic.servlet.internal.HttpClusterServlet</servlet-class>
              > <load-on-startup>0</load-on-startup>
              > <init-param>
              > <param-name>defaultServers</param-name>
              > <param-value>192.168.1.102:80:443|192.168.1.103:80:443</param-value>
              > </init-param>
              > <init-param>
              > <param-name>DebugConfigInfo</param-name>
              > <param-value>ON</param-value>
              > </init-param>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>InitServlet</servlet-name>
              > <url-pattern>/servlet/InitServlet</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>action</servlet-name>
              > <url-pattern>*.do</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>/</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>*.html</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>*.jsp</url-pattern>
              > </servlet-mapping>
              >
              > <servlet-mapping>
              > <servlet-name>ClusterServlet</servlet-name>
              > <url-pattern>*.do</url-pattern>
              > </servlet-mapping>
              >
              >
              > Clearly there is a problem with the Default Web application not being
              > seen/mapped properly. Any chances my URL mappings for the filter servlet,
              > Struts, and ClusterServlet are stepping on each other?
              >
              > With respect to the EJB, here is what my weblogic-ejb-jar looks like:
              >
              > <weblogic-ejb-jar>
              > <weblogic-enterprise-bean>
              > <ejb-name>Hello</ejb-name>
              > <stateless-session-descriptor>
              > <pool>
              >      <max-beans-in-free-pool>100</max-beans-in-free-pool>
              > </pool>
              > <stateless-clustering>
              > <stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
              > <stateless-bean-load-algorithm>
              > round-robin
              > </stateless-bean-load-algorithm>
              > <stateless-bean-methods-are-idempotent>
              > true
              > </stateless-bean-methods-are-idempotent>
              > </stateless-clustering>
              > </stateless-session-descriptor>
              > <jndi-name>Hello.Home</jndi-name>
              > </weblogic-enterprise-bean>
              >
              > I run this through ejbc and package everything up into the EAR file.
              > However, I get a JNDI lookup failure when I try to access the Bean from
              > a standalone Java client running on the Windows machine.
              > Here is the jndi.properties file that I am using:
              >
              > java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
              > java.naming.provider.url=t3://localhost:80
              >
              > Any ideas what I'm doing wrong here? I can post config.xml also if needed.
              >
              > Thanks in advance!
              

  • First Map - Newbie Question

    I am trying to create my first map. I thought I had what should be the most basic one to try but I cannot get it to work as I would like.  I am trying to display potentially 2 data points for a location and I don't want it to show as a pie chart. 
    I would like 2 different bubbles if a city has both.  My data currently has 2 columns - CityState & Category. I'm assuming there is just some trick I am missing to get it to display the way I want.  Can someone tell me what I am doing wrong? 
    Thank you so much.

    After reading user profile in your userBean
    execute this code:
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    externalContext.redirect(externalContext                         .encodeResourceURL(externalContext                                        .getRequestContextPath()+ userPage));
    userPage is a full path to jsp page.
    Hope it helps.
    Martin

  • Dynamic Table row breaks only on the first page (not on second)

    Hello,
    I biuld a dynamic table with Livecycle.
    If the text in the last field is to long, the table grows automatically.
    If the end of the first page is reached, the row breaks over from the first to the second page(= 1st break)
    This works correctly.
    But if the text is longer, and the field have to break from the second to the third page, the field does not break!!
    Please see the attached file.
    The settings should be correct, because the break ( from 1st to the 2nd page) works.
    But why, is the "dynamic behaviour " limited to only ONE page ?
    Can you help me please ?
    Thanks....

    @radzmar
    GERMAN
    Danke für die korrigierte Datei.
    Jep, bei deiner Datei funktionierts.
    Ich habe alle Einstellungen genauso angeklickt wie Du, aber trotzdem funktionierts nicht in meiner Tabelle.
    Kannst du Dich erinnern, was genau Du geändert hast ?
    Ich lade eine Datei hoch, in der ich eine neue Tabelle in die bereits existierende Tabelle ( von Dir korrigiert und funktionierend) einfgefügt habe.
    In dieser zweiten Tabelle habe ich die gleichen Einstellungen wie in deiner Tabelle. Meine Tabelle funktioniert aber nicht.
    Wo ist mein Fehler ?
    Danke für deine Hilfe.
    Ich hatte es aber als dynamisches Formular gespeichert. Die Felder verändern sich ja, nur nicht mit dem richtigen Umbruch.
    https://acrobat.com/#d=kBUbNEdmNNLTXmKuCUo84w
    Ist es womöglich ein Versionsproblem ?
    Teillösung:
    Mit 1 Spalte anstelle von 2 Spalten funktionierts auch bei mir.
    Mit 2 Spalten nicht.
    Weiss jemend Rat ?
    ENGLISH
    thanks for the correction of the file.
    It works fine in your doc.
    I copied all settings from your pdf-file, but still it doesn`t work in my doc.
    Do you remember, what you changed ?
    I will upload a flie, where I paste a new table in the existing one. Can you tell me where the failure is ?
    Thanks for your help.
    I saved the origin file as a dynamic form. The fields were growing automatically (when the text is long). The problem was the overflow.
    https://acrobat.com/#d=kBUbNEdmNNLTXmKuCUo84w
    Is it possibly a bug within my LCD Version ?
    Greetings
    Dilaver
    UPDATE
    It works fine, when I delete 1 column.
    With 2 columns -> overflow problem
    With 1 column -> no problem..
    Does anybody knwo why ?

  • Newbie question: ""dynamic"" casting

    Hello all,
    <br>
    I have a quite newbie question. I have this class hierarcy:
    <br>
    A
    |_A1
    |_A2
    |_A3
    |_A4
    |_A5
    |_.....
    <br>
    in some part of my code I have this:
    <br><br>
    if (object1 instanceof A){
    if (object1 instanceof A1)      {A1   object2 = (A1) e;}
              if (object1 instanceof A2)      {A2   object2 = (A2) e;}
              if (object1 instanceof A3)      {A3   object2 = (A3) e;}
              if (object1 instanceof A4)      {A4   object2 = (A4) e;}
              if (object1 instanceof A5)      {A5   object2 = (A5) e;}
    object2.callMethod();
    <br><br>
    Is there any way to do this type of casting just in one line? I mean, I just want to cast object1 to the class it is instanceof. If it is instance of A1, I want to be casted to A1, if it is A2 to A2, etc...
    <br><br>
    Thanks you in advance.

    kamikaze04 wrote:
    In fact I know what object1 is on execution time,Which doesn't help your compiler at all, when it's task to link and verify method calls.
    because the code posted at the top is working well, i just want to avoid repeating that if's for all the new classes Ax I will create. Big "code smell" here.
    In other words if i had from A1 to A200 i dont want to have 200 if's to cast it to the class it is and then execute it's method.You could call the method "doMagic()" and make it abstract in A. Then you can implement it in all Ax classes and would never have to worry about casting in the first place, because A.doMagic() would automagically do the right thing. Polymorphism.

  • First full Time Capsule Backup Newbie Question

    I'm most likely going to get a lot of crap for this newbie question but here it goes. When I setup my time capsule for the first time I want to backup it up hardwired to my IMac how do i do that. What are the steps involved I'm sure it's pretty simple plug the power cable in and connect the ethernet cable but then what. Thanks for your help all that reply

    Depends on how you want to setup your future wireless network. Just follow the TC Setup Guide. If there is a problem during setup, repost.
    Here are some links to get you started:
    [http://manuals.info.apple.com/en/TimeCapsule_SetupGuide.pdf]
    [http://support.apple.com/kb/HT1178]
    [http://support.apple.com/kb/HT1175]

  • An image comes on my screen, but I can only see the first page.  When I try to print, I get a blue question mark and can't print.

    Recently when I pull up a multi-page document from an internet site, I can only see the first page.  I can't scroll through it.  When I try to print, I get a big blue questionmark.  What's the solution to this, please?

    Thank you so much!! So simple, yet so effective! Am happy!

  • Newbie Questions - Page 6 loads before page 1?

    I'm pretty new to Flash.  I'm trying to help out the company I work for by updating the Flash website that was built in 2008.  Unfortuantly, the person who built it has exactly nothing documented or even labeled, so it's been rough and again, I'm pretty new.  I'm more used to creating new sites than picking through ones that are already up and running.
    The problem I'm having is this:
    The site is entirely in flash.  I was asked to add a page to the existing site that would contain images of our company's certifications.  Through a lot of trial and error, I was able to add this new page, but now the images on that page show up first when the website is loaded.  To explain it another way, the images on the new page (page 6) show up and then "fade out" when the site is first loaded.  The same problem does not occur one the site has been completeld loaded.  For instance, if I load the site and then click a link to the About Us page and then back to the first page, the images from the new page don't show up like they do when the website is first loaded.
    I know that's not much to go on, but has anyone run into this problem before?
    What additional information can I post that would make this issue easier for people to help diagnose?
    Thank you for your input!

    Thank you for the reply!  I'm pretty sure it's something I'm doing wrong, I just don't know what that is. 
    As for my process, I copied an existing button and updated it new information.  Same with creating the page itself - I copied an existing one and then edited it with new content.
    So the original menu had
    Home | Services | Gallery | About Us | Contact Us
    I added a 6th page to the end: Certifications
    My menu action script looks like this (I bolded the stuff that I added):
    //includes
    #include "mc_tween_2_28_29.as"
    #include "rollOvers.as"
    midBox_mc.Img1_mc.words_mc.titleText = "Company Tagline";
    midBox_mc.Img1_mc.words_mc.subText = "Description of our Company.";
    var btnPos:Number = 1;
    var secNumber:Number = 0;
    intro();
    otherHome_mc.home_btn.onPress = function() {
                btnPos = 1;
                moveBtns();
                secNumber = 0;
                fatNumber = 0;
                looseWeight();
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    nav_mc.home_btn.onPress = function() {
                btnPos = 1;
                moveBtns();
                secNumber = 0;
                fatNumber = 0;
                looseWeight();
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    nav_mc.services_btn.onPress = function() {
                btnPos = 2;
                moveBtns();
                btn2beBlocked = 0;
                btnBlocker();
                secNumber = 1;
                fatNumber = 0;
                looseWeight();
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
                midBox_mc.Img2_mc.serviceText_mc.gotoAndStop(1);
    nav_mc.hserv_btn.onPress = function() {
                btn2beBlocked = 0;
                btnBlocker();
                servNumber = 0;
                fatNumber = 0;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.gsub1_btn.onPress = function() {
                btn2beBlocked = 1;
                btnBlocker();
                servNumber = 1;
                fatNumber = 1;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.gsub2_btn.onPress = function() {
                btn2beBlocked = 2;
                btnBlocker();
                servNumber = 2;
                fatNumber = 2;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.gsub3_btn.onPress = function() {
                btn2beBlocked = 3;
                btnBlocker();
                servNumber = 3;
                fatNumber = 3;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.gsub4_btn.onPress = function() {
                btn2beBlocked = 4;
                btnBlocker();
                servNumber = 4;
                fatNumber = 4;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.gsub5_btn.onPress = function() {
                btn2beBlocked = 5;
                btnBlocker();
                servNumber = 5;
                fatNumber = 5;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.gsub6_btn.onPress = function() {
                btn2beBlocked = 6;
                btnBlocker();
                servNumber = 6;
                fatNumber = 6;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.gsub7_btn.onPress = function() {
                btn2beBlocked = 7;
                btnBlocker();
                servNumber = 7;
                fatNumber = 7;
                looseWeight();
                midBox_mc.Img2_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, servFill);
    sub_mc.asub1_btn.onPress = function() {
                btn2beBlocked = 8;
                btnBlocker();
                aboutNumber = 1;
                fatNumber = 8
                looseWeight();
                midBox_mc.Img4_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, aboutFill);
    sub_mc.asub2_btn.onPress = function() {
                btn2beBlocked = 9;
                btnBlocker();
                aboutNumber = 2;
                fatNumber = 9;
                looseWeight();
                midBox_mc.Img4_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, aboutFill);
    sub_mc.asub3_btn.onPress = function() {
                btn2beBlocked = 10;
                btnBlocker();
                aboutNumber = 3;
                fatNumber = 10;
                looseWeight();
                midBox_mc.Img4_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, aboutFill);
    nav_mc.habout_btn.onPress = function() {
                btn2beBlocked = 0;
                btnBlocker();
                aboutNumber = 0;
                fatNumber = 0;
                looseWeight();
                midBox_mc.Img4_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, aboutFill);
    function looseWeight () {
                sub_mc.gsub1_btn.btn_text.gotoAndStop(1);
                sub_mc.gsub2_btn.btn_text.gotoAndStop(1);
                sub_mc.gsub3_btn.btn_text.gotoAndStop(1);
                sub_mc.gsub4_btn.btn_text.gotoAndStop(1);
                sub_mc.gsub5_btn.btn_text.gotoAndStop(1);
                sub_mc.gsub6_btn.btn_text.gotoAndStop(1);
                sub_mc.gsub7_btn.btn_text.gotoAndStop(1);
                sub_mc.asub1_btn.btn_text.gotoAndStop(1);
                sub_mc.asub2_btn.btn_text.gotoAndStop(1);
                sub_mc.asub3_btn.btn_text.gotoAndStop(1);
                switch(fatNumber){
                                        case 0:
                                                    break;
                                        case 1:
                                                    sub_mc.gsub1_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 2:
                                                    sub_mc.gsub2_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 3:
                                                    sub_mc.gsub3_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 4:
                                                    sub_mc.gsub4_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 5:
                                                    sub_mc.gsub5_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 6:
                                                    sub_mc.gsub6_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 7:
                                                    sub_mc.gsub7_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 8:
                                                    sub_mc.asub1_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 9:
                                                    sub_mc.asub2_btn.btn_text.gotoAndStop(10);
                                                    break;
                                        case 10:
                                                    sub_mc.asub3_btn.btn_text.gotoAndStop(10);
                                                    break;
    //gallery btn
    nav_mc.gallery_btn.onPress = function() {
                btn2beBlocked2 = 0;
                btnBlocker2();
                secNumber = 2;
                btnPos = 3;
                moveBtns();
                fatNumber = 0;
                looseWeight();
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    //gallery sub nav
    nav_mc.hgallery_btn.onPress = function() {
                btn2beBlocked2 = 0;
                btnBlocker2();
                galleryNumber = 0;
                midBox_mc.Img3_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, galleryFill);
    nav_mc.about_btn.onPress = function() {
                btnPos = 4;
                moveBtns();
                btn2beBlocked = 0;
                btnBlocker();
                secNumber = 3;
                fatNumber = 0;
                looseWeight();
                midBox_mc.Img4_mc.play_btn.gotoAndPlay(2);
                midBox_mc.Img4_mc.aboutText_mc.gotoAndStop(1);
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    nav_mc.contact_btn.onPress = function() {
                btnPos = 5;
                moveBtns();
                secNumber = 4;
                fatNumber = 0;
                looseWeight();
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    nav_mc.certs_btn.onPress = function() {
                btnPos = 6;
                moveBtns();
                secNumber = 5;
                fatNumber = 0;
                looseWeight();
                midBox_mc.Img6_mc.certsText_mc.gotoAndStop(1);
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    bottom_nav.bigS_btn.onPress = function() {
                btnPos = 2;
                moveBtns();
                btn2beBlocked = 0;
                btnBlocker();
                secNumber = 1;
                midBox_mc.Img2_mc.serviceText_mc.gotoAndStop(1);
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    bottom_nav.bigG_btn.onPress = function() {
                btnPos = 3;
                moveBtns();
                btn2beBlocked2 = 0;
                btnBlocker2();
                secNumber = 2;
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
                midBox_mc.Img3_mc.galleryText = "";
    bottom_nav.bigA_btn.onPress = function() {
                btnPos = 4;
                moveBtns();
                btn2beBlocked = 0;
                btnBlocker();
                secNumber = 3;
                midBox_mc.Img4_mc.aboutText_mc.gotoAndStop(1);
                midBox_mc.white_mc.alphaTo(100, .5, "easeinSine", 0, sectionSwitch);
    midBox_mc.Img2_mc.dl_btn.onPress = function() {
                getURL("servDownloads/Equipment_List.pdf","_blank");
    function moveBtns() {
                otherHome_mc._y = 75;
                nav_mc.home_btn._y = 0;
                nav_mc.picked1_mc._y = -50;
                nav_mc.services_btn._y = 0;
                nav_mc.picked2_mc._y = -50;
                nav_mc.gallery_btn._y = 0;
                nav_mc.picked3_mc._y = -50;
                nav_mc.about_btn._y = 0;
                nav_mc.picked4_mc._y = -50;
                nav_mc.contact_btn._y = 0;
                nav_mc.picked5_mc._y = -50;
                nav_mc.certs_btn._y = 0;
                nav_mc.picked6_mc._y = -50;
                nav_mc.hserv_btn._y = -85;
                nav_mc.hgallery_btn._y = -85;
                nav_mc.habout_btn._y = -85;
                midBox_mc.Img4_mc.play_btn._x = 657.8;
                midBox_mc.Img4_mc.movieHolder_mc.unloadMovie();
                midBox_mc.Img3_mc.gotoAndPlay(2);
                bottom_nav.bigS_btn.ySlideTo(120, .3, "easeoutSine");
                bottom_nav.bigG_btn.ySlideTo(120, .3, "easeoutSine", .1);
                bottom_nav.bigA_btn.ySlideTo(120, .3, "easeoutSine", .2);
                sub_mc.gsub1_btn.ySlideTo(-28, .3, "easeoutSine", .35);
                sub_mc.gsub2_btn.ySlideTo(-28, .3, "easeoutSine", .3);
                sub_mc.gsub3_btn.ySlideTo(-28, .3, "easeoutSine", .25);
                sub_mc.gsub4_btn.ySlideTo(-28, .3, "easeoutSine", .15);
                sub_mc.gsub5_btn.ySlideTo(-28, .3, "easeoutSine", .1);
                sub_mc.gsub6_btn.ySlideTo(-28, .3, "easeoutSine");
                sub_mc.gsub7_btn.ySlideTo(-28, .3, "easeoutSine", .2);
                sub_mc.asub1_btn.ySlideTo(-28, .3, "easeoutSine", .15);
                sub_mc.asub2_btn.ySlideTo(-28, .3, "easeoutSine", .1);
                sub_mc.asub3_btn.ySlideTo(-28, .3, "easeoutSine");
                switch (btnPos) {
                            case 0 :
                                        nav_mc.home_btn._y = 0;
                                        nav_mc.picked1_mc._y = -50;
                                        break;
                            case 1 :
                                        nav_mc.home_btn._y = -50;
                                        nav_mc.picked1_mc._y = 0;
                                        otherHome_mc._y = -175;
                                        bottom_nav.bigS_btn.ySlideTo(0, .3, "easeinSine");
                                        bottom_nav.bigG_btn.ySlideTo(0, .3, "easeinSine", .1);
                                        bottom_nav.bigA_btn.ySlideTo(0, .3, "easeinSine", .2);
                                        break;
                            case 2 :
                                        nav_mc.services_btn._y = -50;
                                        nav_mc.picked2_mc._y = 0;
                                        sub_mc.gsub1_btn.ySlideTo(0, .3, "easeinSine");
                                        sub_mc.gsub2_btn.ySlideTo(0, .3, "easeinSine", .1);
                                        sub_mc.gsub3_btn.ySlideTo(0, .3, "easeinSine", .2);
                                        sub_mc.gsub7_btn.ySlideTo(0, .3, "easeinSine", .3);
                                        sub_mc.gsub4_btn.ySlideTo(0, .3, "easeinSine", .4);
                                        sub_mc.gsub5_btn.ySlideTo(0, .3, "easeinSine", .5);
                                        sub_mc.gsub6_btn.ySlideTo(0, .3, "easeinSine", .6);
                                        break;
                            case 3 :
                                        nav_mc.gallery_btn._y = -50;
                                        nav_mc.picked3_mc._y = 0;
                                        midBox_mc.Img3_mc.gotoAndStop(1);
                                        break;
                            case 4 :
                                        nav_mc.about_btn._y = -50;
                                        nav_mc.picked4_mc._y = 0;
                                        sub_mc.asub1_btn.ySlideTo(0, .3, "easeinSine");
                                        sub_mc.asub2_btn.ySlideTo(0, .3, "easeinSine", .1);
                                        sub_mc.asub3_btn.ySlideTo(0, .3, "easeinSine", .15);
                                        break;
                            case 5 :
                                        nav_mc.contact_btn._y = -50;
                                        nav_mc.picked5_mc._y = 0;
                                        midBox_mc.Img5_mc.sender_mc.gotoAndStop(1);
                                        break;
                            case 6 :
                                        nav_mc.certs_btn._y = -50;
                                        nav_mc.picked6_mc._y = 0;
                                        midBox_mc.Img6_mc.gotoAndStop(1);
                                        break;
    function btnBlocker() {
                sub_mc.bb1_mc._y = -33;
                sub_mc.bb2_mc._y = -33;
                sub_mc.bb3_mc._y = -33;
                sub_mc.bb4_mc._y = -33;
                sub_mc.bb5_mc._y = -33;
                sub_mc.bb6_mc._y = -33;
                sub_mc.bb7_mc._y = -33;
                sub_mc.bb8_mc._y = -33;
                sub_mc.bb9_mc._y = -33;
                sub_mc.bb10_mc._y = -33;
                nav_mc.hserv_btn._y = -85;
                sub_mc.gsub1_btn.btn_text.colorTo(0x7E95A3, .3, "easeinSine");
                sub_mc.gsub2_btn.btn_text.colorTo(0x7E95A3, .3, "easeinSine");
                sub_mc.gsub3_btn.btn_text.colorTo(0x7E95A3, .3, "easeinSine");
                sub_mc.gsub4_btn.btn_text.colorTo(0x7E95A3, .3, "easeinSine");
                sub_mc.gsub5_btn.btn_text.colorTo(0x7E95A3, .3, "easeinSine");
                sub_mc.gsub6_btn.btn_text.colorTo(0x7E95A3, .3, "easeinSine");
                sub_mc.gsub7_btn.btn_text.colorTo(0x7E95A3, .3, "easeinSine");
                sub_mc.asub1_btn.btn_text.colorTo(0x4F6877, .3, "easeinSine");
                sub_mc.asub2_btn.btn_text.colorTo(0x4F6877, .3, "easeinSine");
                sub_mc.asub3_btn.btn_text.colorTo(0x4F6877, .3, "easeinSine");
                switch(btn2beBlocked){
                            case 0:
                                        nav_mc.hserv_btn._y = -85;
                                     

  • Stupid question but how do I get my mac web page to extend the first page?

    sorry about the ignorance... i'm sure it will be simple. but I want to have a long page rather than many seperate ones on my opening web page, and I don't seem to be able to extend one.... it just goes to the end of the first page and stops. and I want to be able to just navigate down for a 'longer page' if you see what I mean. is there a trick?

    Hi,
    The length of the page adjusts itself to the length of the main textbox on that page. Thus while you write the page the length will adjust itself.
    However it's not recommended to make such a long page due to loading times especially if there is a big amount of graphics.
    Regards,
    Cédric

  • Hi Experts, a questions concerning next page of first page in smartform?

    Hi Experts,
    I have a smartform layout and it has only first page, can I make the next page empty for the first page? I want to print one page.
    Kind regards
    Dawson

    Hi George,
    there is no loop or table node in main window and I specify the next page of the first page to be "blank", can it only print one page(first page)?
    Kind regards
    Dawson
    Edited by: dawson wang on May 7, 2009 11:27 AM
    Edited by: dawson wang on May 7, 2009 11:28 AM

  • Newbie Question: Adding New Recto Page?

    When I imported my novel from MS Word file, I placed it starting on page one of the InDesign document.
    I just noticed that, at least as seen in the InDesign window, page one appears to be a verso (left-hand page) rather than a recto (right-hand page).
    Here's a screen shot:
    Since this is a novel, the first page should be on a recto, rather than on a verso.
    How can I correct this?  (I've tried Insert Page and Add page, but it doesn't seem to have the intended result. Perhaps I'm not using these function the right way yet.)
    Thanks very much in advance to all for any info!

    Thanks very much in advance for your advice. A screen shot is attached.
    I have the front matter in it's own separate story. Each chapter is in its own separate story as well.

  • How do I get Started with Dynamic Web Pages?

    I am presently following Janine Warner's Dreamweaver CS3  video series.  I noted that the Advanced part of this tutorial series focuses on Dynamic Web Pages, but only uses Cold Fusion.  From what I can gather, CF costs around $1000, while PHP is free!  My question is really this: in going from static to dynamic web design I'M A COMPLETE NEWBIE, so what do I need?   I am doing some planning here -- I know it won't happen overnight.
    (BTW:  I was surprised to discover that CF is NOT included in my CS3 Master Collection).  It might appear then that support for PHP is better than for CF?
    Apparently, I need a server -- well, OK I have PCs to spare.  Fast internet, I also have: Comcast standard -- 12MP
    Now, I think I also need Apache -- which apparently runs on the server and does something.
    So then I DL PHP, figure out how it works, and it will integrate with DW CS3 in some way.
    Now, what have I missed?  Is there some really basic, first-time-with-using-a-server place or tut I should go to or read?  Before you ask: No, I'm doing all this myself on a shoestring budget.
    Are there expensive hosting fees for dynamic web sites or other items I will run into?  Can I just use a PC over my Comcast cable as the server run from my home?  (Really high traffic is not anticipated)
    All recommendations appreciated, thanks.
    Thom

    Many of these questions have already been answered in your thread in the Dreamweaver General Discussion forum, so I'll just stick to a few basics.
    You need a server whichever server-side technology you choose, but "server" is not a physical machine, but a piece of software that you install on your development computer. You'll find details of how to install a PHP environment in the following article: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.
    Similar instructions are available for setting up a ColdFusion server at http://www.adobe.com/devnet/dreamweaver/articles/setting_up_coldfusion.html. The article is for ColdFusion 8, but ColdFusion 9 is installed in exactly the same way.
    Hosting for PHP/MySQL is plentiful and relatively cheap. However, make sure the hosting company offers a minimum of PHP 5.2 and MySQL 5.1. Hosting for CF is harder to find and tends to be a bit more expensive, but not prohibitively so.

  • How to make my dynamic form pages flow correctly?

    I have created a dynamic form which has multiple questions with expandable text fields that will take multiple pages once completed.  I do not know how to make the form flow correctly past the first page.  I can attach the form if I knew how to do that.

    Thank you Paul.  Your editing assistance was greatly appreciated. I think I now understand that there should be only one page subform that is flowed, regardless of how many text box objects I have in my questionnaire. This did the trick.

  • Dynamic web pages and Access

    I am starting to work on some dynamic web pages to upload
    information to an Access 2003 database using ASP. What I would like
    to do is to give the user a chance to review their information
    before it actually gets sent to the database. That is to say, after
    they fill out the form on the dynamic web page, and click a submit
    button, I would like to bring up a new page with their info
    summarized and give them the chance to review it and/or go back and
    make changes before it actually gets written to the database. Any
    suggestions would be appreciated!

    I'm not sure what the question is. It sounds like you already
    know what you want.
    Have the form post to an asp page that retrieves the form
    values and displays them in the format you want. Give them the
    choice to go back and make changes or submit. The second page can
    also be a form that you dynamically populate from the first page
    values.
    I'm not really sure what the benefit of this is. Why do the
    users need a different page to review what they input from the
    original page? What added value will there be?

  • Unable to hide the first page in the form

    Hi ,
    I am trying to design a dynamic form that has three pages. The form is being used in a LiveCycle process and during the process initiation, only the second page should be visible and the first and third pages should be hidden. I am trying to hide the first and the third pages using JavaScript. I noticed that the third page is being hidden but the first page gets displayed as an empty page. Based on this behavior here are couple of questions I need guidance with
    Can we hide the first page within a form? If so why am I seeing this inconsistent behavior when hiding the first and third pages?
    If the first page can not be hidden then is there a workaround to achieve my goal of re-arranging the pages so that I can add content to the first page dynamically and shift the previous content on the first page to the second page?
    Any suggestions will be appreciated.
    Thanks,
    Samanthapudi

    Hi,
    You've originally said.
    in the first page i don't want data in main window...
    yet using a command node to trigger the next page means you have to include a (presumably) empty main window in the first page.
    Your main window has to contain some output (a table usually) and it's contents are the same on every page (only it's height can change).  So, you can't have a blank main window on page 1 and a main window with data on pages 2 and 3.
    Remove the main window from page 1, set page2 as the next page for page 1.
    As for how to trigger page 3 you'll need to provide more detail on what the condition is.  Do you want multiple copies of page 2 to hold all of the main window data, or just one?  Do you want one copy of page 2 then the rest of the data on multiple copies of page 3.  Be specific.
    Regards,
    Nick

Maybe you are looking for

  • Transaction F-03 requiring trading partner

    Hello guys, I am trying to clear some items in transaction F-03 which are amounting to zero. But when i try to clear i am getting a message that trading partner is required since this is an inter-comapny posting. I have checked the field status for t

  • Select column in Flash datagrid?

    When someone is using a datagrid, is there a default way (not involving extra coding) to select just one entire column? Currently when I click the header, it changes the order. Is there a Ctrl key + click combo that does this? Cheers

  • Updated Examples, Tutorials and Documentation

    hello community and tlf-team, are there anywhere updated tutorials, examples, documentation on using the TLF? with classes like IContainerController removed, TextFilter renamed etc. it's quite hard to find your way into the framework. I use flex buil

  • I have os x version on an imac but want to upgrade to mountian lion how would oi do this?

    I have os x version 10.5.8 on an imac but want to upgrade to mountian lion how would i do this? this is in my about this mac section (if this helps) Hardware Overview:   Model Name:          iMac   Model Identifier:          iMac7,1   Processor Name:

  • Question about the example hfm sdk project HfmEAExtractSample

    I am trying to open the hfm sdk sample project hfmeaextractsample,which is a vb.net project to call the extended analytic functions in vb. it referenced several hfm dll, including Hsvmetadata.dll,Hsvsession.dll,Hsvstarschemaacm.dll and hsxserver.exe,