Basic JSF Question

I've a really simple JSF question which I'm hoping someone can help me with...
In ASP.NET you have full access to the page tag components from inside the backing (code-behind) bean. Is this possible in JSF? If so, how?
On a related note, it does seem like the jsp pages have full access to access and write to the managed beans, but not the other way around. How could you change a UI tag component (say the text of an outputText) from inside the managed bean?
Thanx!
Max

First question:
IBM implementation provides the code behind concept (similar to ASP.net) out of the box with JSF. Or you need to do that yourself by creating a request scope backing bean per page with needed API. Basically backing bean will need to get a handle to root component in view. And then traverse the view to find component your are looking for by name. Really not that complex.
Second question:
This is a good thing about JSF. The flow of data is bi-directional between the page and backing bean. Unlike ASP.net where it is one directional. Please study the backing bean concept and how to use the value or binding attribute for a UIcomponent to establish the link between a backing bean and UIComponent properties. 90% of the cases, using value attribute will do. Very specific cases will require using binding attributes.
Try to do a JSF tutorial to get a better handle on what it provides. If you have an ASP.net background. It will be very easy for you to relate to quickly

Similar Messages

  • Please help me with this basic JSF question!

    Hi,
    I m creating a JSF website using Sun Studio Creator, i think the problem i have is quite basic, after a bit research, i still couldn't solve it, i hope someone can help me here, thanks.
    This is the scenario:
    There are 2 buttons on the page, B1 and B2, when the user clicks on the B1 button, a list box will show up, let's call it List1, say in a light box, but it really doesn't matter where the list box is. There are some options in the list box, when the user clicks on one of the options, another list box will be shown and filled up by an Ajax call to a Servlet, let's call this one List2. Now the user should select one of the options from List2, and click on the button B2, the server should then do something based on the options selected in List2
    My problem is how to get the selected value in List2. Normally, if the list box is created in Studio Creator, i can do this:
    // this is in the Java file
    private Listbox listBox = new Listbox();
    public void setListBox ...
    public Listbox getListBox ...
    public String B2_action() {
        Object selectedValue = listBox.getValue();
        getSessionBean1().setListBoxSelectedValue(selectedValue);
        // do something on the server
    ...this is what i normally do, but now the List Box is generated by Ajax, there is no such object in the Java file, how can i get the component and do the same thing as above sample does?
    Thanks for your help!
    best regards

    I guess you can first define a pointer to the listBox2, then create instance of it in the action method. After that it won't be problem to reach the selected item.
    // this is in the Java file
    private Listbox listBox1 = new Listbox();
    private Listbox listBox2; //Instance may be created here, I am not sure
    public void setListBox1 ...
    public Listbox getListBox1 ...
    public String B2_action() {
        private Listbox listBox2 = new Listbox(); //or instance may be created here
    }Edited by: mkahraman on Feb 19, 2008 4:09 AM

  • Basic iPhoto questions:

    I have some Basic iPhoto questions before I start using the program:
    - does iPhoto apply any compression or change images in any way when they
    are imported?
    - after images are imported, can the original source folder of images be deleted off of the mac?
    - can Quicktime files exported from iPhoto be viewed on a Windows computer?
    - can iPhoto handle large resolution images that might be as large as 8-15mb each? does it display them quick? are there any known file size issues?
    Thanks!!!!

    kat.
    Is there a way to use iPhoto on a network so other users can read and possibly write to an iPhoto library on a networked mac?
    iPhoto is a consumer level photo organiser, not a server. It's possible to share photos but libraries are very difficult and fraught with the danger of database corruption. Some have reported success.
    Is it possible to password protect or secure certain images in the library so they can not be seen by anyone?
    No. The best I can suggest there is to create a second library and store it in a secure area like a protected dmg. But remember, you can only have one library open at a time.
    After photos are deleted from iPhoto, are there any remaining traces or cached files anywhere other than the trash
    If you delete photos from iPhoto and empty the iPhoto trash then the pics are removed from the Finder as well. They remain as findable as any other deleted file from that point, which is, very, if the searcher in knowledgeable.
    Regards
    TD

  • Object class deployment - Basic form question

    OK, I subclass calendar object from Oracle provided standard
    object class. What do I need to deploy to use this form now
    apart from calendar.pll and my fmx. What about the object class
    from which I sub-class. Do I need to compile and deploy that
    also? How will form resolve this on run time the parent object
    class as I really did not copy, just sub class and we do not
    deploy original class? Basic form question. Thanks.

    You can set the "help" property on the field (which gives you the little "information" icon link beside the field).
    You could also try adding another field of another class above or below:
    <Display class='InlineAlert'/>
    <Display class='ErrorMessage'/>
    <Display class='HtmlPage'/>
    ..etc
    -Rob

  • StackOverflowError , Basic JSF Application

    Hi,
    i am new to JSF and running a basic JSF application but facing an exception, kindly see my code and sugguest me to ridof it, thanks :)
    import com.infotech.backingbean.LoginBackingBean;
    * AbstractManagedBean *
    public abstract class AbstractManagedBean {
         protected LoginBackingBean backingBean;
         public String execute(LoginBackingBean backingBean) {     
              return executeRequest(null, null, null, backingBean);
         public abstract String executeRequest(HttpServletRequest request,
                   HttpServletResponse response, HttpSession session, LoginBackingBean backingBean);
         public LoginBackingBean getBackingBean() {
              return backingBean;
         public abstract void setBackingBean(LoginBackingBean backingBean);
    * LoginManageBean *
    public class LoginManageBean extends AbstractManagedBean {
         public LoginManageBean() {
              setBackingBean(new LoginBackingBean());
         @Override
         public String executeRequest(HttpServletRequest request, HttpServletResponse response,
                   HttpSession session, LoginBackingBean backingBean) {
              LoginBackingBean loginBackingBean = (LoginBackingBean)backingBean;
              Boolean flag = (loginBackingBean.getUserName().equals("kb") && loginBackingBean.getUserPassword().equals("kb"));
              String page = flag ? "loginSuccess" : "loginFailed";
              System.out.println(flag);
              System.out.println(page);
              return page;
         @Override
         public void setBackingBean(LoginBackingBean backingBean) {
              this.backingBean = backingBean;          
    * JSP page *
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <head>
    <title>A Simple JavaServer Faces Application</title>
    </head>     
              <body>
              <f:view>          
              <h:form>
              <h3>Login</h3>
              <table>
              <tr>
              <td>Name:</td>
              <td><h:inputText value="#{loginManageBean.backingBean.userName}"/></td>
              </tr>          
              <tr>
              <td>Password:</td>
              <td><h:inputSecret value="#{loginManageBean.backingBean.userPassword}"/></td>
              </tr>          
              </table>
              <p>
              <h:commandButton value="Login" action="#{loginManageBean.execute}" />
              </p>
              </h:form>
              </f:view>
              </body>
    </html>
    * faces-config.xml *
    <faces-config>
         <navigation-rule>
         <from-view-id>/main.jsp</from-view-id>
         <navigation-case>
         <from-outcome>loginSuccess</from-outcome>
         <to-view-id>/welcome.jsp</to-view-id>
         </navigation-case>
         <navigation-case>
         <from-outcome>loginFailed</from-outcome>
         <to-view-id>/main.jsp</to-view-id>
         </navigation-case>
         </navigation-rule>
         <managed-bean>
              <managed-bean-name>loginManageBean</managed-bean-name>
              <managed-bean-class>com.infotech.managedbean.LoginManageBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
    </faces-config>
    * web.xml *
    <web-app version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.jsf</param-value>
    </context-param>
    <context-param>
         <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
         <listener>
              <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
         </listener>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    * Exception StackOverflowError *
    Exception in thread "http-8080-exec-1" java.lang.StackOverflowError
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:575)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:575)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:575)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:575)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:575)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:575)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
         at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:575)
         at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)

    yes, i fixed it by commeted
    <!--
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    -->

  • Adding Date/Time Field + X Number of Days - Basic Calculation Question

    I am assuming this is a basic calculation question. New to Adobe LiveCycle Forms.
    I have a simple form containing a table. The table appears as such:
    Text
    Formatted as Date/Time Fields
    Header 3
    Monday
    user wil choose the beginning date (Date/Time) this is DateTimeField1
    Tuesday
    this should calculate DateTimeField1 + 1
    Wednesday
    this should calculate DateTimeField1 + 2
    Thursday
    this should calculate DateTimeField1 + 3
    Friday
    this should calculate DateTimeField1 + 4
    Saturday
    this should calculate DateTimeField1 + 5
    Sunday
    this should calculate DateTimeField1 + 6
    Calculations are performed after the date is chosen for Monday. My mind tells me the simple calculation of DateTimeField1 + 1 is not going to work (and in fact doesn't!) as it needs to change Monday to a number first. I saw on another thread the following:
    Num2Date(Date2Num(Date(DateTimeField1), "DD.MM.YYYY")+7, "DD.MM.YYYY")
    Thought this was going to get me close. No cigars though!
    Any quick help is greatly appreciated. And since I am new to this, details about what needs to be changed would be great too!
    Thanks

    Here an addition for you date field.
    This FormCalc script in the exit:Event will check it the selected date is on a monday.
    If not it will go the days back until the last monday.
    var Selection = Date2Num($.formattedValue, DateFmt(2))
    var WeekDay = Num2Date(Selection, "E")
    var NewDate
    if (WeekDay eq 1) then
              NewDate = Selection - 6
    elseif (WeekDay eq 3) then
              NewDate = Selection - 1
    elseif (WeekDay eq 4) then
              NewDate = Selection - 2
    elseif (WeekDay eq 5) then
              NewDate = Selection - 3
    elseif (WeekDay eq 6) then
              NewDate = Selection - 4
    elseif (WeekDay eq 7) then
              NewDate = Selection - 5
    else
              NewDate = Selection
    endif
    $ = Num2Date(NewDate, "EEE DD.MM.YYYY")
    Hope this helps, too.

  • Basic Exporting Question

    My main question is a very basic exporting question, but here is a super-condensed explanation of my big-picture goal for context:
    Large (~450 MB) aiff on CD --> trim w/ Quicktime --> small (~16 MB) MP3 in iTunes
    I would like to take an audio file (aiff) that is approximately 450 MB and export it from Quicktime and in doing so, reduce the file size and convert it to MP3. When I simply try to export it, it doesn't ask me about what size I want, nor does it give the option of MP3 formatting.
    I have figured out how to reach my goal, but it's a mess. After I make my trims in QT, I have to:
    1. select "share" instead of "export".
    2. It asks me what size I want and I select small.
    3. The file is then exported as a Quicktime movie into Mail and the size is reduced from 450 MB to about 20 MB.
    4. I then have to "right-click" on the attachment in the email that is created,
    5. save the attachment,
    6. discard the email,
    7. import the file into iTunes, and
    8. create an MP3 in iTunes to finally arrive at my goal.
    This seems like a ridiculously convoluted process to change a large aiff to a small MP3 and put it in iTunes. Any suggestions?

    Thanks. I guess the basic answer to my question is that it can't be done in one or two fell swoops. The problem is that it starts on a burned disc, and I need to make edits to it before it ends up in iTunes (to be eventually used in iWeb). I was hoping to avoid juggling back and forth between iTunes and QT. I either would have to send it back to QT to do the edits after -->iTunes-->mp3, or import the large file from the CD to QT, make the edits, save changes, import large file to iTunes, convert to mp3.

  • Few basic SRM questions .......

    I recently completed the SRM training from SAP and I have few basic questions and need help. Full points will be rewarded.
    These are my questions and it is based on SRM 5.0 Classic Scenario with R/3 backend
    1. Invoice  & confirmation transferred to R/3 via  ALE ? .  All other documents are transferred to R/3 via RFC?
    2. Based on the configuration, if the material is available in the backend then reservation will be created. Other wise PO will be created.  For text items, PR will be created.
         a. Who (purchaser) will process the PR in R/3 and how it is processed?.
         b. Who (purchaser?) will process the reservation in R/3 and how it is
             processed?. Assume no sourcing is setup in this case and No MRP run.
    3. How the vendor is linked to the Material or product category in SRM?. During the vendor replication from R/3, vendor and material/prod category link is automatically maintained?
    4. How the vendor is linked to a specific purchasing org/group? Is it based on the prod category assigned in the org structure for each purchasing org or purchasing group?
    5. How to do delta prod category replication?
    6. How to do Delta Material Replication?.
    7. Contracts and vendor list:-
        In our SAP training we created these from the browser. But in the actual
        implementation how do we create this?. Is it always from the browser?
    8. Direct Material and Plan driven Procurement.
       Can we use catalog items as direct material?. Just for example - > What
       about ‘Car Batteries’ that  is directly used in production and has the inventory
       also. But we are using electronic catalog for procuring this item. Is it possible to
       order this as direct material?
    9. How to replicate Plant. How to use DNL_PLNT?. Is BBP_LOCATIONS_GET_ALL will replicate all the PLANT's and its locations from the R/3 backend?
    10. In the HR system, which transaction we can view the org structure?

    Hi
    Answers to your questions ->
    1. http://help.sap.com/saphelp_srm50/helpdata/en/e9/d0fc3729b5db48e10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/74/ec7b3c91c1eb1ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/55/d77c3c3fd53228e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/77/e97b3c91c1eb1ee10000000a114084/frameset.htm
    2.  Provided the necessary role is given to the Purchaser (Buyer) in the System.
    a) Yes
    b) Yes
    3. http://help.sap.com/saphelp_srm50/helpdata/en/e5/f5e938b4ece075e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/70/00c73a584611d6b21700508b5d5211/frameset.htm
    4. http://help.sap.com/saphelp_srm50/helpdata/en/2c/867d3ca2156c6ae10000000a114084/frameset.htm
    The vendor ORG has to be seperately created through trasaction PPOCV_BBP before replicating the Vendors from the R/3 System.
    http://help.sap.com/saphelp_srm50/helpdata/en/70/00c73a584611d6b21700508b5d5211/frameset.htm
    5. http://help.sap.com/saphelp_srm50/helpdata/en/42/d3b671ba67136fe10000000a1553f7/frameset.htm
    6.  http://help.sap.com/saphelp_srm50/helpdata/en/29/d586398dcfd74fe10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/05/9b8139437eac2ae10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/f5/b4bcdac7c40c4dba53e3695d18236c/frameset.htm
    7. Yes, from Browser it's quite easy and is quite user-friendly.
    8.
    http://help.sap.com/saphelp_srm50/helpdata/en/d3/4b9c3b122efc6ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/18/db183d30805c59e10000000a114084/frameset.htm
    9.
    You can use the following three routines to download locations from the backend system and store them as business partners in SAP Enterprise Buyer.
    BBP_LOCATIONS_GET_ALL
    To get all the location numbers from each backend system that is connected
    BBP_LOCATIONS_GET_FROM_SYSTEM
    To get all the location numbers from one particular backend system
    BBP_LOCATIONS_GET_SELECTED
    To get selected locations
    Previously, locations were not given business partner numbers in SAP Enterprise Buyer. If you are configuring an upgrade, you can use routines BBP_LOCATIONS_GET_FROM_SYSTEM and BBP_LOCATIONS_GET_SELECTED to check that the following conversions have been made:
    ·        Conversion of user favorites
    ·        Conversion of user attributes
    ·        Conversion of old documents
    Routine BBP_LOCATIONS_GET_ALL checks these automatically.
    Once you have run the routines, the location data is available in the SAP Enterprise Buyer system. Table BBP_LOCMAP contains the mapping information (in other words, which business partner number corresponds to which location in which backend system).
    For more information, see SAP Note 563180 Locations for EBP 4.0 – plant replication
    http://help.sap.com/saphelp_srm50/helpdata/en/62/fb7d3cb7f58910e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/77/e97b3c91c1eb1ee10000000a114084/frameset.htm
    10. PPOCA_BBP(Create) / PPOMA_BBP(Change) / PPOSA_BBP(Display).
    Regards
    - Atul

  • Java.lang.StackOverflowError Running BASIC JSF 2 example on Weblogic 12c

    *I followed the very basic tutorial found here  example and cannot seem to get past the following error:*
    Error 500--Internal Server Error
    java.lang.StackOverflowError
    at weblogic.servlet.internal.ServletResponseImpl.addHeader(ServletResponseImpl.java:567)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    Pressing shift + F5 a couple times I can generate a slightly different stacktrace as follows:
    Error 500--Internal Server Error
    java.lang.StackOverflowError
    at com.sun.faces.application.ViewHandlerResponseWrapper.setStatus(ViewHandlerResponseWrapper.java:88)
    at javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:224)
    at com.sun.faces.application.ViewHandlerResponseWrapper.setStatus(ViewHandlerResponseWrapper.java:88)
    at javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:224)
    Here is my web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5">
    <display-name>JavaServerFaces</display-name>
    <!-- JSF mapping -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Map these files with JSF -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>
    </web-app>
    Here is the pom.xml
    <project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.example</groupId>
    <artifactId>JavaServerFaces</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>JavaServerFaces Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <dependencies>
    <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>2.1.7</version>
    </dependency>
    <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>2.1.7</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    </dependency>
    </dependencies>
    <build>
    <finalName>JavaServerFaces</finalName>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.1</version>
    <configuration>
    <source>1.6</source>
    <target>1.6</target>
    </configuration>
    </plugin>
    </plugins>
    </build>
    </project>
    I have exhausted several hours searching the web and constructing new projects with no luck. I understand that the StackOverflowError is produced from bad recursion calls and infinite loops, however I can't see this as the case here.
    My current dev stack is eclipse juno (oepe-12.1.1.2.1-juno-distro-win32-x86_64.zip), m2e-wtp, weblogic 12c, Java EE 6 using JSF 2.1
    *If I export the war file using eclipse (Right click the project -> Export -> WAR file) then manually deploy it via the weblogic admin counsel the app works as expected. As soon as I add the project to the server inside eclipse and start the server I can no longer view the page. I noticed that in the autogenerated_ear_ folder per my domain that each project project folder is actually empty.*
    Any help would me MUCH appreciated!!
    UPDATE - Solved the problem! After adding JSF 2.1 in the pom.xml the JSF 2.1 checkbox was checked in project facets, however it did not add the faces-config.xml to the project. I simple created a new xml file named faces-config.xml under the webapp folder and added the following xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd" version="2.1">
    <application></application>
    </faces-config>
    I hope this helps others!
    Edited by: 1006228 on May 15, 2013 8:21 PM
    Edited by: 1006228 on May 16, 2013 6:39 PM

    Hi.
    Try this http://oracleradio.blogspot.com/2012/01/error-durante-el-deployment-de-un.html
    It is in spanish, but the important part is that u may correct the issue, installing 11.1.1.5 with the Feature Pack.
    It seems to be happening with processes that have loop formed with boundary event inside a gateway circuit.
    Hope this helps.
    best

  • Basic swing question

    I just started looking at swing yesterday because I want to provide a GUI to replace a command line utility we use. I've basically finished it but have a quick question about form - I will get some literature later but would like to get a feel from the people here. If you have a JFrame with a few JPanels each which contain some other components, what is the best practice for variable declaration? Should I just declare the variables locally or should I make them instance variables? The reason I ask is that I have a button that submits a message but that message is dependant on check boxes, etc. from from the frame. If I declare them at the method level I then have to start passing them around whereas if I declare them as instance variables I can access them very easily BUT this may not be good form.
    For example:
    my class is SendMessageToo so in the main method I have a line like:
    final SendMessageToo smt = new SendMessageToo();
    now all the instance variables that I have can be accessed my the methods simply using smt.methodOne(), etc. Does that seem OK or is it just pure crap? :-)

    Thanks, that was something that crossed my mind before I just made eveything an instance variable. It was during that process that I thought, do these all need to be instance variables? Then I thought, SHOULD they all be instance variables. At that point my brain imploded so I came here. :)

  • JSF question

    We have simple template, which have four �c:import� directive to dynamically include pages which present different areas on the screen.
    On one from the imported JSF pages, let�s say <c:import url="/pages/tiles/tree.jsp"/>
    we have a tree leaf selected listener attached to the tree element WGF.
    In listener code we need dynamically add elements to other JSF page, let�s say it�ll be
    <c:import url="/pages/index.jsp"/>
    The question is: how could we make it?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1251"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri='/WEB-INF/security.tld' prefix='security'%>
    <security:enforceLogin loginPage='/faces/pages/wrapper/registrationWR.jsp'
    errorPage='/faces/pages/wrapper/registrationWR.jsp'/>
    <f:view>
    <h:panelGrid columns="1" width="100%" border="1" frame="none">
    <f:facet name="header">
    <f:subview id="header">
    <c:import url="/pages/tiles/top.jsp"/>
    </f:subview>
    </f:facet>
    <f:facet name="footer">
    <h:panelGroup>
    <af:panelHorizontal halign="center">
    <f:subview id="footer">
    <c:import url="/pages/tiles/bottom.jsp"/>
    </f:subview>
    </af:panelHorizontal>
    </h:panelGroup>
    </f:facet>
    <afh:tableLayout width="100%" borderWidth="3" cellSpacing="10"
    halign="center">
    <afh:rowLayout>
    <afh:cellFormat height="100%" width="30%">
    <af:panelHorizontal halign="center">
    <f:subview id="tree">
    <c:import url="/pages/tiles/tree.jsp"/>
    </f:subview>
    </af:panelHorizontal>
    </afh:cellFormat>
    <afh:cellFormat width="70%">
    <af:panelHorizontal halign="center">
    <f:subview id="body">
    <c:import url="/pages/index.jsp"/>
    </f:subview>
    </af:panelHorizontal>
    </afh:cellFormat>
    </afh:rowLayout>
    </afh:tableLayout>
    </h:panelGrid>
    </f:view>
    Currently we could get access only elements inside template JSF page, using next simple code:
    try {
    ArrayList paramList = myObject.getparamlist();
    FacesContext context = FacesContext.getCurrentInstance();
    List list = context.getViewRoot().getChildren();
    Iterator itr = list.iterator();
    while (itr.hasNext()) {
    HtmlPanelGrid panel = (HtmlPanelGrid)itr.next();
    list = panel.getChildren();
    itr = list.iterator();
    while (itr.hasNext()) {
    Object object = itr.next();
    Class cl = object.getClass();
    System.out.println(cl.getName());
    } // while
    } // while
    Also it�ll be very nice if it�ll be possible not only add elements to the same screen but make navigation to other JSF template and add elements to one from JSF pages that template use.

    This guy seemed to have a rough solution:
    http://forum.java.sun.com/thread.jspa?forumID=427&threadID=558772
    Illu
    (And please don't pretend to be someone else - ie Dravid - to bump your posts up the forum. Thanks.)

  • Java Script and JSF question

    Hello,
    I have a JSF component like this that has a pageSize attribute. It shows a grid with 5 elements.
    <x:gridView id="#{tab}GridView" pageSize="5">
    </f:gridView>Then I have a drop down with 5 menu items where the user can select how many elements they want to see visible on the grid. My question is, how do i use Java Script to to change the pageSize attribute above with what the user selected in the menu below? I have been looking at java script code and online docs for an hour and cant come up with anything that seems to work. Any help will be appriciated. Thank you!!!
    <x:selectOneMenu id="myMenu" onclick="">
      <f:selectItem id="perPage1" itemValue="1" itemLabel="1" />
      <f:selectItem id="perPage2" itemValue="2" itemLabel="2" />
      <f:selectItem id="perPage3" itemValue="3" itemLabel="3" />
      <f:selectItem id="perPage4" itemValue="4" itemLabel="4" />
      <f:selectItem id="perPage5" itemValue="5" itemLabel="5" />
    </x:selectOneMenu>

    [...]how it was never designed to be used for
    such large applications[...]All I can say is that if this is true, then it doesn't show. Yes, I know it (oak) was originally designed for embedded systems, but Java and Oak aren't identical.
    My assembly teacher
    always makes fun of Java, saying java gives you far
    less control, it prevents you from making mistakes.
    No control over unsigned/ signed values, pointers
    etc. Yes. But broadly speaking that's the point. Java sacrifices control over such things. The return, however, is that programmers are able to be more productive because of the great swathes of problems that can no longer arise.
    The mistake is in assuming that Java is the best tool for everything. It isn't, and in fact no language us. As it turns out, Java is just great for building enterprise systems. It has a few other strengths, some of which (applets for example) have been more important in its original uptake but are now relatively minor features.
    You don't write an enterprise website in Intel assembly, and you don't write device drivers in Java.
    Not saying its not good but its good for
    smaller applications like cell phones and
    mini-computers.I think you mean something different by mini-computers to what I mean...
    Its portability is actually the main point in its favour for use in cell phones. If it weren't for that, I think C or C++ would probably have sole ownership of that space.
    Now i'm not saying any thing against it just
    confused on why a class like data-structures at my
    University [...] would be taught using java when C would
    probably be a lot better for Very Large ADTS.You and Joel Spolsky:
    http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html
    I disagree, because I don't think it much matters what language you learn - experience trumps any particular initial language choice. If you're still using Java in 15 years I'll be fairly surprised.

  • Switching to mac, basic noob questions

    Hi, I'm new to this. I have some xmas and bday money and i need a laptop. I have two desktop PC's (one XP and one Vista) and have had PC's all my life. I feel like switching it up and giving macs a try, it would make my purchase more fun. I've done some research and i think i want the black macbook with 2 gigs of ram. Here are some questions i need answered before going much further.
    1.) I notice that every 6 months new macbook models come out. I also noticed that the last three (at least) have been very similar in hardware. Is it common that the new macbook probably coming out in the summer will be unvieled at macworld? If there is a big difference i might wait, i don't want to get the last model in a product line. Id the difference is another slight processor speed increase i won't bother waiting. As far as i know this isn't available information yet, so i'm just looking for a 'usually they do/don't' type of response.
    2.) Is the apple care support really all it's cracked up to be? I'm not about to let my purchase go to waste on me, but at the same time if the support is rarely needed i might not bother. I'm a student and don't have too much money to blow if it's usually a waste. I generally like getting the warrenty for my things, i'm just looking for a more experienced opinion.
    3.) Are the Apple stores in the Best Buys independent from Best Buy, or are they the same? I would like to put the 900 or so dollars i can down on this and put the rest of my best buy card to pay off over the next few months.
    4.) If they're the same, does anyone know if the apple computers fall under best buy's "no interest for blank months of purchases over black?"
    thanks!

    Hi Thomes08!
    Welcome to Apple Discussions.
    It sounds like you're in the process of making an excellent decision to go with a 2.2GHz "BlackBook" and up your RAM to 2.0GB. I think you'll be extremely pleased with your purchase.
    1.) Unfortunately, these forums are not designed to be used as a means of product speculation. Matter of fact, it's against the Terms of Use (of these discussion pages) to speculate on upcoming product releases. We'll have to wait the 2-weeks for Mac World to see what comes out, there's no way to have any insight into the excitement that Steve's Keynote brings to technology.
    2.) I'm a big fan of AppleCare, mostly because it ensures peace of mind over the reliability of my product for the 3-years that it'll serve as my primary machine. While, I've had multiple Macs last beyond 3-years, I also typically swap it out for the "latest and greatest." Especially with a portable and your student discount. The cost of APP for a MacBook is a relatively "no brainer" especially if you consider the cost (for parts & labor) of even the most basic repairs if the machine falls out of warranty.
    3. I'm not entirely familiar with the logistics of the agreement that Apple has with Best Buy, so I'd rather not speculate. I do know that Apple also offers financing options through BML (Bill Me Later) and Juniper Bank, but I'm unfamiliar with the specifics of a split payment. Buying an Apple product through Best Buy still entitles you to all the same "benefits" of ownership, so there's no advantage (or disadvantage) to shop @ Best Buy.

  • 4 basic java questions..

    ok so I already learned Java last year (in grade 11), but my teacher didn't really teach anything, we learnt everything by ourselves from the API... so theres a lot of things I actually don't understand, but for now I want to ask 4 basic questions:
    1. What does static mean?
    2. Why would u "final" a constant variable? ie. If you have a variable called SIZE which is set to 5, so if u want it to be a constant, just never change its value. But what does the keyword final do to it?
    3. What's super? I see it sometimes, and my teacher showed us in the applet exampls to use super.paint(g) or somethign like that for the paint method, but I never use that because I noticed it works fine without it..
    4. Whats a question mark? I saw a game that was made in java and it had a lot of places where it had a question mark , which was part of the syntax. For example,
    int j1 = i != 0 ? i - 1 : 199;
    OR
    JUMPVEL = (fSuperSlime) ? 65 : 31;
    I really don't understand these lines...
    feel free to answer any of these questions...

    wow cool...thanks.. that question mark thing is nice
    saves a few lines..
    now, about super, so u mean u can access the parent
    class's variables?Variables, methods, constructors, if the access level is such that it's allowed.
    This will be covered in any tutorial or text though.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.

  • Basic interview questions in abap ddic

    can any one pls give me the link for basic ddic interview questions

    Check these threads.
    need real time interview questions on data dictionary
    The specified item was not found.
    data dictionanry

Maybe you are looking for

  • Error Deploying from NWDS

    Hello, I am attempting to deploy a DC that was built with Visual Composer in the NWDS and I am getting the following error: "The user can not be authorized, because doesn't own the (com.sap.engine.interfaces.security.ServiceAccessPermissiondc) permis

  • Killing thread

    hi all i am trying to stop thread by callling stop() method on Thread object but it is deprecated it is saying. can u tell me what is the method in 1.4 for killing a thread class ThreadDemo public static void main (String [] args) MyThread mt = new M

  • My iTunes is corrupted. Where are my music files located?

    Hello! My iTunes in Win8 has become corrputed and won't start. I get an error msg which says that "iTunes Library.itf cannot be read by a newer version". What do I do? Worse yet, I cannot find any of my music files. I have a lot. perhaps 2,500 differ

  • Issues in Processing the Master-Detail Form values

    We have a requirement in Oracle Internet Expenses (11.5.10) to fetch the form values from the Expense Allocations Screen. This page is based on Multiple VOs with Master Detail relationship. The data from the VOs mentioned are displayed in the Hgrid r

  • Project at a holt

    I just got done editing the last clip of my project. When I went to play it back it the time line I got error message -Codec not found you may be using a compression type without the coresponding hardware card- No new clips were being imported. Iv be