Problem wiht ObjectListDataProvider

Hi all,
I am using ObjectListDataProvider to map an ArrayList to a table component.
( I went through the exaple in winston Prakash's Weblog using ObjectListDataProvider )Problem is if I use an ArrayList return from a method (business mehtod ) nothing is displaying in the table.
Pls help me in doing this or suggest an alternative method to add ArrayList components to a table.
Also I need to know how to access components in Page1(UI) from a class in
the source package. Tried to do by creating a object from Page1. but didn't work.
kaushalya.

Take a look at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hibernate.html#object and http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hibernate.html#08
Although this tutorial fills up the ArrayList with the results from the query, you should be able to figure out how to fill the ArrayList with your own data.
Also take a look at the sample project at http://blogs.sun.com/divas/entry/table_component_sample_project which fills the table with a class in the source package.
Remember that you HAVE to do a build and then close and reopen the project in order to see your newly added custom data provider.

Similar Messages

  • I'm having some problems wiht Firefox, for example; Youtube isn't loading right, Facebook won't let me send messages, search up people, and this website i made wont load right also. I've re-installed and updated it but still the same problems. Any help?

    I'm having some problems wiht Firefox, for example; Youtube isn't loading right, Facebook won't let me send messages, search up people, and this website i made wont load right also. I've re-installed and updated it but still the same problems. Any help?

    Because I know enough to be dangerous...  I was trying to extend the two outside columns down....  Instead of just using faux columns which I have fixed since I posted the question.
    The other link problem is the left sidebar links.  When you go to the event photos page I have a repeat of the sidebar links that are on the newsletter page.  I used named anchors on the newsletter page to link to the particular article.  From the Event Photos page the links look like this:
    <a href="1112Visions_Iss1.html/#puzzle" target="_self">[Puzzle]</a>
    The problem I am having is that some of these go to the newsletter page and the anchor and some do not (I get an error message saying it  can't find the page).  To add to the problem is that when we choose say the President's Message, when it goes to the newsletter page and the correct anchor, the newsletter page is missing all the links to the graphics... the photos are missing the graphic for the faux columns is missing.  It makes no sense.  When I preview the newsletter page from Dreamweaver everything shows up fine.
    I do not know if all of this is being caused because I haven't posted this stuff to the site or what.  I've tried re-booting both the browser and Dreamweaver, dumping the cache and still the same nonsense.
    Got any ideas?

  • Problem wiht the parental accounts

    i have a problem wiht my parental setting i put a password but now i forgot and im using a guest account and i cant change the settings in the parental controls casue i dont know the password how do i fix it ???

    You can use the install DVD to reset the password, repair the disk and repair permissions. If you don't have the install DVD you could try the following.
    Print the following and then follow these instructions very carefully - at each stage wait for processes to complete - spaces are important:
    1 - shutdown
    2 - start in single user mode by holding command (Apple key) and S while it starts
    3 - type the following and hit the return key to repair the disk
    /sbin/fsck -fy
    4 - type the following and hit the return key
    /sbin/mount -uw /
    5 - type the following and hit the return key
    rm /var/db/.AppleSetupDone
    5 - type the following and hit the return key
    shutdown -h now
    6 - start the Mac
    7 - The above tricks the Mac into thinking it is starting for the first time. Follow the various processes as normal but DO NOT use a user-name that has been used on the Mac before - if you do it will erase the original account. It will set up a new admin account without removing existing accounts with different names.
    8 - Use the new admin account
    9 - If necessary enable the root user (see Mac help) to reset passwords on other accounts.

  • Problems wiht b/b connection

    taken from my router log file and pasted below this sort of thing happens several times a day and every time i loose connection it reports that its waiting for the line to become free, i take it that just like the last time this happened it measn the line card in the exchange i'm connected to has too many customers for the avilable ports, this in turn is locking my line profile down from 7.5 meg (which it maintained for most of the last 2 years) to below 4meg and due to the constant stream of problems which are either cabinet or exchange based (i tried the quiet line test and theres nothing there) i've had my internal wireing tested and still am having all thease problems which i dont understand, the only thing connected to the test socket is the adsl filter which is in turn connected ot the phone and the router, i tried useing 2 different routers with the same results last time this happened, and now i'm stuck wiht a broken connection which the call center in india are worse than useless at sorting out (i tried them 3 times in the last week, there "best solution" was " unplug your routerfor 20 minutes and then swithc it back on" it achieved the square root of sweet FA and its the answer they came up with all 3 times like its a new script option there trying out.
    Sep 26 08:23:37  syslog  -- MARK --
      Sep 26 09:23:37  syslog  -- MARK --
      Sep 26 09:43:57  user  kernel: Line 0: ADSL link down
      Sep 26 09:43:57  user  syslog: tc qdisc del dev ppp_0_0_38_1 root 2>/dev/null
      Sep 26 09:43:59  user  kernel: Line 0: xDSL G.994 training
      Sep 26 09:44:00  daemon  pppd[388]: Terminating connection due to link down.
      Sep 26 09:44:08  user  kernel: Line 0: ADSL G.992 started
      Sep 26 09:44:12  user  kernel: Line 0: ADSL G.992 channel analysis
      Sep 26 09:44:19  user  kernel: Line 0: ADSL link down
      Sep 26 09:44:24  user  kernel: Line 0: xDSL G.994 training
      Sep 26 09:44:33  user  kernel: Line 0: ADSL G.992 started
      Sep 26 09:44:37  user  kernel: Line 0: ADSL G.992 channel analysis
      Sep 26 09:44:44  user  kernel: Line 0: ADSL link up, Path 0, us=783, ds=3995
      Sep 26 09:44:45  daemon  pppd[388]: Clear IP addresses.  Connection DOWN.
      Sep 26 09:44:45  daemon  pppd[388]: Clear IP addresses.
      Sep 26 09:44:45  daemon  pppd[388]: Couldn't increase MTU to 1500.
      Sep 26 09:44:51  daemon  pppd[388]: Connection terminated.
      Sep 26 09:44:51  daemon  pppd[388]: Connect time 5383.1 minutes.
      Sep 26 09:44:51  daemon  pppd[388]: Sent 518305249 bytes, received 803617461 bytes.
      Sep 26 09:44:51  user  kernel: dev_shutdown, dec ppp device refcnt, dev->refcnt=3
      Sep 26 09:44:51  user  kernel: unregister_netdevice: waiting for ppp_0_0_38_1 to become free. Usage count = -1
      Sep 26 09:44:51  user  kernel: dev->name = ppp_0_0_38_1, dev->refcnt=-1
      Sep 26 09:44:51  user  kernel: after reset to 0, dev->refcnt=0
      Sep 26 09:44:51  daemon  pppd[388]: PPP: Start to connect ...
      Sep 26 09:44:53  daemon  pppd[388]: Using interface ppp0_0_38_1
      Sep 26 09:44:53  daemon  pppd[388]: Connect: ppp_0_0_38_1 <-->
      Sep 26 09:44:53  daemon  pppd[388]: Couldn't increase MTU to 1500.
      Sep 26 09:44:53  daemon  pppd[388]: PPP LCP UP.
      Sep 26 09:44:54  daemon  pppd[388]: Remote message: CHAP authentication success, unit 23731
      Sep 26 09:44:54  daemon  pppd[388]: local  IP address 109.145.231.179
      Sep 26 09:44:54  daemon  pppd[388]: remote IP address 217.32.147.104
      Sep 26 09:44:54  daemon  pppd[388]: primary   DNS address 213.120.234.58
      Sep 26 09:44:54  daemon  pppd[388]: secondary DNS address 213.120.234.26
      Sep 26 09:44:54  daemon  dnsmasq[64]: using nameserver 213.120.234.26#53
      Sep 26 09:44:54  daemon  dnsmasq[64]: using nameserver 213.120.234.58#53
      Sep 26 09:44:54  daemon  pppd[388]: Received valid IP address from server.  Connection UP.
      Sep 26 09:44:54  user  syslog: begin: interface: ppp_0_0_38_1 go to up
      Sep 26 09:44:55  daemon  dnsmasq[64]: using nameserver 213.120.234.26#53
      Sep 26 09:44:55  daemon  dnsmasq[64]: using nameserver 213.120.234.58#53
      Sep 26 09:44:55  daemon  UPNPD[4235]: uuidvalue=uuid:0004ed9f-54de-0004-ed9f-54de0000000
      Sep 26 09:44:55  daemon  UPNPD[4235]: Unable to open pidfile for writing /var/run/miniupnpd.pid: File exists
      Sep 26 09:44:55  daemon  UPNPD[4235]: HTTP listening on port 2800
      Sep 26 09:44:56  user  syslog: start Tr069
      Sep 26 09:44:58  daemon  user: Could not load verify locations
      Sep 26 09:44:59  user  syslog: end: interface: ppp_0_0_38_1 go to up
      Sep 26 09:44:59  daemon  user: tr69c: Unable to retrieve attributes in scratch PAD
      Sep 26 09:44:59  daemon  user: Stored Parameter Attribute data is corrupt or missing
      Sep 26 09:47:27  user  kernel: do_page_fault() #2: sending SIGSEGV to miniupnpd for invalid read access from
      Sep 26 09:47:27  user  kernel: 7fff8000 (epc == 0040c780, ra == 0040c7f8)
      Sep 26 10:14:01  user  kernel: Line 0: ADSL link down
      Sep 26 10:14:01  user  syslog: tc qdisc del dev ppp_0_0_38_1 root 2>/dev/null
      Sep 26 10:14:03  user  kernel: Line 0: xDSL G.994 training
      Sep 26 10:14:03  daemon  pppd[388]: Terminating connection due to link down.
      Sep 26 10:14:12  user  kernel: Line 0: ADSL G.992 started
      Sep 26 10:14:16  user  kernel: Line 0: ADSL G.992 channel analysis
      Sep 26 10:14:22  user  kernel: Line 0: ADSL G.992 message exchange
      Sep 26 10:14:23  user  kernel: Line 0: ADSL link down
      Sep 26 10:14:28  user  kernel: Line 0: xDSL G.994 training
      Sep 26 10:14:37  user  kernel: Line 0: ADSL G.992 started
      Sep 26 10:14:41  user  kernel: Line 0: ADSL G.992 channel analysis
      Sep 26 10:14:47  user  kernel: Line 0: ADSL link up, Path 0, us=775, ds=3975
      Sep 26 10:14:49  daemon  pppd[388]: Clear IP addresses.  Connection DOWN.
      Sep 26 10:14:49  daemon  pppd[388]: Clear IP addresses.
      Sep 26 10:14:49  daemon  pppd[388]: Couldn't increase MTU to 1500.
      Sep 26 10:14:55  daemon  pppd[388]: Connection terminated.
      Sep 26 10:14:55  daemon  pppd[388]: Connect time 30.0 minutes.
      Sep 26 10:14:55  daemon  pppd[388]: Sent 4989135 bytes, received 6403434 bytes.
      Sep 26 10:14:55  user  kernel: dev_shutdown, dec ppp device refcnt, dev->refcnt=3
      Sep 26 10:14:55  user  kernel: unregister_netdevice: waiting for ppp_0_0_38_1 to become free. Usage count = -1
      Sep 26 10:14:55  user  kernel: dev->name = ppp_0_0_38_1, dev->refcnt=-1
      Sep 26 10:14:55  user  kernel: after reset to 0, dev->refcnt=0
      Sep 26 10:14:55  daemon  pppd[388]: PPP: Start to connect ...
      Sep 26 10:14:57  daemon  pppd[388]: Using interface ppp0_0_38_1
      Sep 26 10:14:57  daemon  pppd[388]: Connect: ppp_0_0_38_1 <-->
      Sep 26 10:14:57  daemon  pppd[388]: Couldn't increase MTU to 1500.
      Sep 26 10:14:57  daemon  pppd[388]: PPP LCP UP.
      Sep 26 10:14:57  daemon  pppd[388]: Remote message: CHAP authentication success, unit 10632
      Sep 26 10:14:58  daemon  pppd[388]: local  IP address 31.52.3.74
      Sep 26 10:14:58  daemon  pppd[388]: remote IP address 217.32.147.104
      Sep 26 10:14:58  daemon  pppd[388]: primary   DNS address 213.120.234.58
      Sep 26 10:14:58  daemon  pppd[388]: secondary DNS address 213.120.234.26
      Sep 26 10:14:58  daemon  dnsmasq[64]: using nameserver 213.120.234.26#53
      Sep 26 10:14:58  daemon  dnsmasq[64]: using nameserver 213.120.234.58#53
      Sep 26 10:14:58  daemon  pppd[388]: Received valid IP address from server.  Connection UP.
      Sep 26 10:14:58  user  syslog: begin: interface: ppp_0_0_38_1 go to up
      Sep 26 10:14:58  daemon  dnsmasq[64]: using nameserver 213.120.234.26#53
      Sep 26 10:14:58  daemon  dnsmasq[64]: using nameserver 213.120.234.58#53
      Sep 26 10:14:58  daemon  UPNPD[5010]: uuidvalue=uuid:0004ed9f-54de-0004-ed9f-54de0000000
      Sep 26 10:14:58  daemon  UPNPD[5010]: Unable to open pidfile for writing /var/run/miniupnpd.pid: File exists
      Sep 26 10:14:58  daemon  UPNPD[5010]: HTTP listening on port 2800
      Sep 26 10:15:00  user  syslog: start Tr069
      Sep 26 10:15:02  daemon  user: Could not load verify locations
      Sep 26 10:15:03  user  syslog: end: interface: ppp_0_0_38_1 go to up
      Sep 26 10:15:03  daemon  user: tr69c: Unable to retrieve attributes in scratch PAD
      Sep 26 10:15:03  daemon  user: Stored Parameter Attribute data is corrupt or missing
      Sep 26 10:17:42  user  kernel: do_page_fault() #2: sending SIGSEGV to miniupnpd for invalid read access from
      Sep 26 10:17:42  user  kernel: 7fff8000 (epc == 0040c780, ra == 0040c7f8)
      Sep 26 10:23:37  syslog  -- MARK --
    i'd be interested ot here what a mod has to say on the matter, as i already am pretty sure of whats causing the problem (the exchange having too many lines plugged into the card, which is exactly what happened a year ago for 2 weeks) because the exchange is fitted wiht cards that have *10 extra line slots* than there capable of connecting at the same time (because they were cheaper for bt to bulk buy and install than the ones that line matched the DSLAM's the exchange is fitted with) but hey that shouldnt be causeing me problems

    and yet again and no doubt several more times during the night i will get this problem as well as a lot more again tomorrow untill bt stop putting too many lines onto the cards, or upgrade the DSLAM's so there able to cope with the line's (probably not going to happen)
      Sep 26 22:23:37  syslog  -- MARK --
      Sep 26 22:52:59  user  kernel: Line 0: ADSL link down
      Sep 26 22:52:59  user  syslog: tc qdisc del dev ppp_0_0_38_1 root 2>/dev/null
      Sep 26 22:53:01  daemon  pppd[388]: Terminating connection due to link down.
      Sep 26 22:53:01  user  kernel: Line 0: xDSL G.994 training
      Sep 26 22:53:09  user  kernel: Line 0: ADSL G.992 started
      Sep 26 22:53:14  user  kernel: Line 0: ADSL G.992 channel analysis
      Sep 26 22:53:20  user  kernel: Line 0: ADSL G.992 message exchange
      Sep 26 22:53:21  user  kernel: Line 0: ADSL link down
      Sep 26 22:53:24  user  syslog: web: 192.168.1.101 login
      Sep 26 22:53:26  user  kernel: Line 0: xDSL G.994 training
      Sep 26 22:53:35  user  kernel: Line 0: ADSL G.992 started
      Sep 26 22:53:39  user  kernel: Line 0: ADSL G.992 channel analysis
      Sep 26 22:53:46  user  kernel: Line 0: ADSL link up, Path 0, us=799, ds=3915
      Sep 26 22:53:48  daemon  pppd[388]: Clear IP addresses.  Connection DOWN.
      Sep 26 22:53:48  daemon  pppd[388]: Clear IP addresses.
      Sep 26 22:53:48  daemon  pppd[388]: Couldn't increase MTU to 1500.
      Sep 26 22:53:54  daemon  pppd[388]: Connection terminated.
      Sep 26 22:53:54  daemon  pppd[388]: Connect time 758.9 minutes.
      Sep 26 22:53:54  daemon  pppd[388]: Sent 91666850 bytes, received 262633189 bytes.
      Sep 26 22:53:54  user  kernel: dev_shutdown, dec ppp device refcnt, dev->refcnt=3
      Sep 26 22:53:54  user  kernel: unregister_netdevice: waiting for ppp_0_0_38_1 to become free. Usage count = -1
      Sep 26 22:53:54  user  kernel: dev->name = ppp_0_0_38_1, dev->refcnt=-1
      Sep 26 22:53:54  user  kernel: after reset to 0, dev->refcnt=0
      Sep 26 22:53:54  daemon  pppd[388]: PPP: Start to connect ...
      Sep 26 22:53:56  daemon  pppd[388]: Using interface ppp0_0_38_1
      Sep 26 22:53:56  daemon  pppd[388]: Connect: ppp_0_0_38_1 <-->
      Sep 26 22:53:56  daemon  pppd[388]: Couldn't increase MTU to 1500.
      Sep 26 22:53:56  daemon  pppd[388]: PPP LCP UP.
      Sep 26 22:53:57  daemon  pppd[388]: Remote message: CHAP authentication success, unit 12405
      Sep 26 22:53:57  daemon  pppd[388]: local  IP address 86.169.113.140
      Sep 26 22:53:57  daemon  pppd[388]: remote IP address 217.32.147.104
      Sep 26 22:53:57  daemon  pppd[388]: primary   DNS address 213.120.234.58
      Sep 26 22:53:57  daemon  pppd[388]: secondary DNS address 213.120.234.26
      Sep 26 22:53:57  daemon  dnsmasq[64]: using nameserver 213.120.234.26#53
      Sep 26 22:53:57  daemon  dnsmasq[64]: using nameserver 213.120.234.58#53
      Sep 26 22:53:57  daemon  pppd[388]: Received valid IP address from server.  Connection UP.
      Sep 26 22:53:57  user  syslog: begin: interface: ppp_0_0_38_1 go to up
      Sep 26 22:53:57  daemon  dnsmasq[64]: using nameserver 213.120.234.26#53
      Sep 26 22:53:57  daemon  dnsmasq[64]: using nameserver 213.120.234.58#53
      Sep 26 22:53:57  daemon  UPNPD[5787]: uuidvalue=uuid:0004ed9f-54de-0004-ed9f-54de0000000
      Sep 26 22:53:57  daemon  UPNPD[5787]: Unable to open pidfile for writing /var/run/miniupnpd.pid: File exists
      Sep 26 22:53:57  daemon  UPNPD[5787]: HTTP listening on port 2800
      Sep 26 22:53:59  user  syslog: start Tr069
      Sep 26 22:54:01  daemon  user: Could not load verify locations
      Sep 26 22:54:02  user  syslog: end: interface: ppp_0_0_38_1 go to up
      Sep 26 22:54:02  daemon  user: tr69c: Unable to retrieve attributes in scratch PAD
      Sep 26 22:54:02  daemon  user: Stored Parameter Attribute data is corrupt or missing
      Sep 26 22:54:56  user  kernel: do_page_fault() #2: sending SIGSEGV to miniupnpd for invalid read access from
      Sep 26 22:54:56  user  kernel: 7fff8000 (epc == 0040c780, ra == 0040c7f8)
    of course i just love the fact this problem is making my internet slower and slower, i cant even use it when my kids are doing homework, becuse the contention ratios are so bad locally at those "peak periods" guess i'm just lucky heh

  • Problem with ObjectListDataProvider

    Hi All,
    I found this wyrd bug with JSC 2.0 ObjectListDataProvider:
    1) JSC works fine with the project from Winston Prakash's Weblog Workaround for ObjectListDataProvider. Everything works like he said here:
    http://blogs.sun.com/roller/page/winston?entry=objectlistdp_sample_project
    2) I checked the example of virtual forms (also using ObjectListDataProvider for the movies example) also without any problems. Everything is working fine. See here:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/virtual_forms.html
    BUT, in my own project nothing is working... :-( I cannot get my own ObjectListDataProvider working, so that I can use it to bind to a table. I tried everything without any success. This is really annoying and I'm not a beginner... I hope to see an update for this ObjectListDataProvider bug.
    - I cannot see my own ObjectListDataProvider in my Session Object. I only can see it if I use a concrete implementation of ObjectListDataProvider. Really wyrd.
    - I cannot bind it to my JSF view components.
    - I need to have a better documentation on this ObjectListDataProvider
    Since if I want to work with multi-tier architecture, I don't want to access my database directly from my presentation layer. Instead I want to access my Value Objects through my services (business layer)... and therefore I need to have this ObjectListDataProvider to be able to bind my Value Objects.
    I hope to see a better support for this area.
    Thanks,
    Lofi.

    Hi I am actually going through Chapter 8 for the data providers and I am on page. 254 which gives an example of binding an objectListDataProvider with a table and setting it's list property in the properties window...the problem is that the text instructs to:
    2. In the Outline view, select the object list data provider. In the Properties win-
    dow, select the small editing box opposite property list.
    while Java Studio Creator 2 (Build 061020), which is what I am running on SuSE Linux 10.0 Pro, does not have a button with 3 dots that lets you do extra selection but a drop down list with no values...
    I tried setting the code in the constructor and clean and rebuilding the project, even restarting the IDE still no luck... I then finished the Page Navigation part of the example try to run it in the browser to see if it is going to work at least but got errors:
    Exception Handler
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: org.apache.jasper.JasperException
    com.sun.data.provider.impl.ObjectListDataProvider
    Possible Source of Error:
    Class Name: org.apache.jasper.servlet.JspServletWrapper
    File Name: JspServletWrapper.java
    Method Name: service
    Line Number: 384
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    sun.reflect.GeneratedMethodAccessor431.invoke( Unknown Source )
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
    org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
    org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
    org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Exception Details: javax.faces.FacesException
    org.apache.jasper.JasperException: com.sun.data.provider.impl.ObjectListDataProvider
    Possible Source of Error:
    Class Name: com.sun.faces.context.ExternalContextImpl
    File Name: ExternalContextImpl.java
    Method Name: dispatch
    Line Number: 327
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
    org.apache.jasper.JasperException: com.sun.data.provider.impl.ObjectListDataProvider
    Possible Source of Error:
    Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
    File Name: ViewHandlerImpl.java
    Method Name: destroy
    Line Number: 601
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    This is a little frustrating I hope someone can point me in the right direction, I performed an update of the IDE hoping for a fix no luck.
    Thanks in advance,
    George

  • Problem wiht sender mail adapter.

    Hello.
    I have a mail to RFC scenario.
    There sender mail adapter fails if the mails in the inbox is encoded in specific formats.
    I think the mail adapter does not understand this encoding.
    Below is the error i got.
    error occured: [2008-09-08T08:22:25Z] 5 new messages found; processing message 1exception caught during processing mail message[1]; java.io.UnsupportedEncodingException: utf-7; processing message 2exception caught during processing mail message[2]; java.io.UnsupportedEncodingException: utf-7; processing message 3exception caught during processing mail message[3]; java.io.UnsupportedEncodingException: utf-7; processing message 4exception caught during processing mail message[4]; java.io.UnsupportedEncodingException: utf-7; processing message 5exception caught during processing mail message[5]; java.io.UnsupportedEncodingException: utf-7; action[s] taken
    Is there a solution 2 overcome this problem.
    I tries to use a module called "TextCodepageConversionBean" but it was not of much use.
    Please help.
    Thanks,
    Vignesh

    HI
    Mail adapter does not understand "UTF-7" as shown in the error.
    Mail adapter supports only
    base64
    Quoted-Printable
    http://help.sap.com/saphelp_nw70/helpdata/EN/23/c093409c663228e10000000a1550b0/content.htm
    If you want to make your adapter more than this. Then create a custom module using open libraries that will allow you to read many Encoding standards.
    Thanks
    Gaurav

  • Problem wiht right click

    hello sorry for my poor english
    this morning without any change (no new program or cancelled program) the right click of my trackpad (*same problem when using a mouse*) opens SPACES (???)
    RIGHT CLICK is well configurated on Preferences
    i run ONYX to repair authorisations but the problem persists...
    the only way to use correctly the right click is to desactivate spaces (that i used normaly till today)
    thanks
    Philippe
    Message was edited by: sant69
    Message was edited by: sant69

    Hi sant69 & welcome
    1.)
    Try deleting the com.apple.systempreferences.plist
    ~/Library/Preferences.
    2.)
    Try resetting some of the hardware involved (PRAM~NVRAM). See this Apple KB for details, etc.:
    http://support.apple.com/kb/HT1379
    Can't hurt to try, and apparently this has helped others recently.
    Failing that, take it to an Apple Store and ask staff there for assistance.

  • Problem wiht added button on invoice form

    I have added a custom button on invoice form.
    Scenario 1:
    I open the invoice form then the custom button is added and the et_ITEM_PRESSED event on custom button in catched. All is ok!
    Scenario 2
    I open a custom form and after close it.
    After I open the invoice form then custom button is added but et_ITEM_PRESSED event on custom button in not catched!!
    Could somebody please help me?
    Thanks

    Hi Domenico,
    It could be that the custom form gets an exception and then no other events might be caught. Try and put try...catch clauses around all your code and show messages when an error is received. This might be the cause of the problem - an unhandled exception.
    Hope it helps,
    Adele

  • Problems wiht instanceManager.addInstance() and signature fields

    I have a subform that contains two signature fields which I have set to not lock any field during signing. This subform has the ability to appear in the PDF as may times as needed.  The problem is that as soon as I click the button to add an instance to the form. All signature fields in the original subform and the newly created subform dissappear from the form.
    What do I need to do to make sure that the signature fields are available when I create a new instance of the form? 
    Below is the code I am using to create the new instance:
    var subForm =xfa.resolveNode("Affidavites.Affidavit");
    if  (subForm != null){
         subForm.occur.max
    = "10"; 
         var newForm = subForm.instanceManager.addInstance(1);     newForm.presence
    = "visible";
    else     xfa.host.messageBox("Unable to create instance of Affidavit");

    You can have a signature field, or multiple signature fields on a dynamic form, but you cannot place the signature field(s) inside a repeatable subform.  This is nor supported and will not work.
    Regards
    Steve

  • Problem wiht DataSink

    I m facing problem while creating datasink with statement
    Datasink ds = manager.createDatasink(DataSource, MediaLOC);
    Exception is handeled as com.sun.media.multiplexer.baseMux$baseMuxDatasink.......
    Its is failed to create datasink where all parametres are perfectly allright..
    Thanx..... I m waiting for solutions...

    I changed two things.dest = new MediaLocator("file://c:/video1.mov");//changed to *.mov
    p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));//file type to QUICKTIMEthis gets rid of your error.
    so, your file type *.mpg is different coding than FileTypeDescriptor.MPEG.

  • New to Applets: Problems wiht writing to files and with scroll panes.

    Hi, I've recently graduated from university and so I have limited experience in java programming and I'm having some trouble with JApplets (this is the first time I've made one). I'm trying to make a simple program that will allow users to pick one of a few background images from a list (a list of jpanels within a scroll pane) then at the click of a button will output a CSS with the background tag set to the image location. This is for use on a microsoft sharepoint site where each user has a My-Sit area which I want to be customizable.
    So far I've been creating this program as an application rather than a JApplet and just having another class that extends the JApplet Class which then displays the JFrame from the GUI Class. This initially didnt work because I was trying to add a window to a container so I kept programming it as an application until I got it working before trying to convert it to a JApplet. I solved the previous problem by changing my GUI class to extend JPanel instead of JFrame and it now displays correctly but with a coupe of issues.
    Firstly the applet will not create/write to the CSS file. I read that applets couldnt read/write to the users file system but they could to their own. The file I wish to write to is kept on the same machine as the applet so I'm not sure why this isn't working.
    Secondly the scroll panel is no longer working properly. This worked fine when I was still running the program as an application when the GUI still extended JFrame instead of JPanel (incidentally the program no longer runs as an application in this state) but now the scroll bar does not appear. This is a problem since I want the applet to remain the same size on the page even if I decide to add more backgrounds to the list. I tried setting the applet height/width to smaller values in the html file to see if the scroll bar would appear if the area was smaller than the GUI should be, but this just meant the bottom off the applet was cut off.
    Could anyone offer any suggestion as to why these thigns arnt working and how to fix them? If necessary I can post my source code here. Thanks in advance.

    Ok, well my program is made up of 4 classes, I hope this isnt too much to be posting. If any explaination is needed then I'll post that next. Theres lots of print lines scattered aroudn due to me trying to fix this and theres some stuff commented out from when the program used to be an application isntead of an applet.
    GUI Class, this was the main class until I made a JApplet Class
    public class AppletGUI extends JPanel{
        *GUI Components*
        //JFrames
        JFrame mainGUIFrame = new JFrame();
        JFrame changeBackgroundFrame = new JFrame();
        //JPanels (Sub-panels are indented)
        JPanel changeBackgroundJP = new JPanel(new BorderLayout());
            JPanel changeBackgroundBottomJP = new JPanel(new GridLayout(1,2));
        JPanel backgroundJP = new JPanel(new GridLayout(1,2));
        JPanel selectBackground = new JPanel(new GridLayout(1,2));
        //Jbuttons
        JButton changeBackgroundJB = new JButton("Change Background");
        JButton defaultStyleJB = new JButton("Reset Style");
        //JLabels
        JLabel changeBackgroundJL = new JLabel("Choose a Background from the Menu");
        JLabel backgroundJL = new JLabel();
        //JScrollPane
        JScrollPane backgroundList = new JScrollPane();
            JPanel backgroundListPanel = new JPanel(new GridLayout());
        //Action Listeners
        ButtonListener bttnLstnr = new ButtonListener();
        //Controllers
        CSSGenerator cssGenerator = new CSSGenerator();
        Backgrounds backgroundsController = new Backgrounds();
        backgroundMouseListener bgMouseListener = new backgroundMouseListener();
        //Flags
        Component selectedComponent = null;
        *Colour Changer*
        //this method is used to change the colour of a selected JP
        //selected JPs have their background darkered and when a
        //different JP is selected the previously seleced JP has its
        //colour changed back to it's original.
        public void changeColour(JPanel theJPanel, boolean isDarker){
        //set selected JP to a different colour
        Color tempColor = theJPanel.getBackground();
            if(isDarker){
                tempColor = tempColor.darker();
            else{
                tempColor = tempColor.brighter();
            theJPanel.setBackground(tempColor);
         //also find any sub-JPs and change their colour to match
         int j = theJPanel.getComponents().length;
         for(int i = 0; i < j; i++){
                String componentType = theJPanel.getComponent(i).getClass().getSimpleName();
                if(componentType.equals("JPanel")){
                    theJPanel.getComponent(i).setBackground(tempColor);
        *Populating the GUI*
        //backgroundList.add();
        //Populating the Backgrounds List
        *Set Component Size Method*
        public void setComponentSize(Component component, int width, int height){
        Dimension tempSize = new Dimension(width, height);
        component.setSize(tempSize);
        component.setMinimumSize(tempSize);
        component.setPreferredSize(tempSize);
        component.setMaximumSize(tempSize);     
        *Constructor*
        public AppletGUI() {
            //REMOVED CODE
            //AppletGUI.setDefaultLookAndFeelDecorated(true);
            //Component Sizes
            //setComponentSize
            //Adding Action Listeners to Components
            System.out.println("adding actions listeners to components");
            changeBackgroundJB.addActionListener(bttnLstnr);
            defaultStyleJB.addActionListener(bttnLstnr);
            //Populating the Change Background Menu
            System.out.println("Populating the window");
            backgroundsController.populateBackgroundsData();
            backgroundsController.populateBackgroundsList();
            //loops to add background panels to the JSP
            ArrayList<JPanel> tempBackgroundsList = new ArrayList<JPanel>();
            JPanel tempBGJP = new JPanel();
            tempBackgroundsList = backgroundsController.getBackgroundsList();
            int j = tempBackgroundsList.size();
            JPanel backgroundListPanel = new JPanel(new GridLayout(j,1));
            for(int i = 0; i < j; i++){
                tempBGJP = tempBackgroundsList.get(i);
                System.out.println("Adding to the JSP: " + tempBGJP.getName());
                //Add Mouse Listener
                tempBGJP.addMouseListener(bgMouseListener);
                backgroundListPanel.add(tempBGJP, i);
            //set viewpoing
            backgroundList.setViewportView(backgroundListPanel);
            /*TESTING
            System.out.println("\n\n TESTING!\n Printing Content of SCROLL PANE \n");
            j = tempBackgroundsList.size();
            for(int i = 0; i < j; i++){
                System.out.println(backgroundList.getComponent(i).getName());
            changeBackgroundJP.add(changeBackgroundJL, BorderLayout.NORTH);
            changeBackgroundJP.add(backgroundList, BorderLayout.CENTER);
            //changeBackgroundJP.add(tempBGJP, BorderLayout.CENTER);
            changeBackgroundJP.add(changeBackgroundBottomJP, BorderLayout.SOUTH);
            changeBackgroundBottomJP.add(changeBackgroundJB);
            changeBackgroundBottomJP.add(defaultStyleJB);
            System.out.println("Finsihed populating");
            //REMOVED CODE
            //adding the Background Menu to the GUI and settign the GUI options
            //AppletGUI.setDefaultLookAndFeelDecorated(true);
            //this.setResizable(true);
            //this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setLocation(500,500);
            this.setSize(400,300);
            this.add(changeBackgroundJP);
        //REMOVED CODE
         *Main Method*
        public static void main(String[] args){
           System.out.println("Creating GUI");
           AppletGUI theGUI = new AppletGUI();
           theGUI.setVisible(true);
           System.out.println("GUI Displayed");
         *Button Listener Inner Class*
        public class ButtonListener implements ActionListener{
            //check which button is clicked
            public void actionPerformed(ActionEvent event) {
                AbstractButton theButton = (AbstractButton)event.getSource();
                //Default Style Button
                if(theButton == defaultStyleJB){
                    System.out.println("Default Style Button Clicked!");
                //Change Background Button
                if(theButton == changeBackgroundJB){
                    System.out.println("Change Background Button Clicked!");
                    String backgroundURL = cssGenerator.getBackground();
                    if(backgroundURL != ""){
                        cssGenerator.setBackgroundChanged(true);
                        cssGenerator.setBackground(backgroundURL);
                        cssGenerator.outputCSSFile();
                        System.out.println("Backgroudn Changed, CSS File Written");
                    else{
                        System.out.println("No Background Selected");
         *Mouse Listener Inner Class*
        public class backgroundMouseListener implements MouseListener{
            public void mouseClicked(MouseEvent e){
                //get component
                JPanel tempBackgroundJP = new JPanel();
                tempBackgroundJP = (JPanel)e.getComponent();
                System.out.println("Background Panel Clicked");
                //change component colour
                if(selectedComponent == null){
                    selectedComponent = tempBackgroundJP;
                else{
                    changeColour((JPanel)selectedComponent, false);
                    selectedComponent = tempBackgroundJP;
                changeColour((JPanel)selectedComponent, true);
                //set background URL
                cssGenerator.setBackground(tempBackgroundJP.getName());
            public void mousePressed(MouseEvent e){
            public void mouseReleased(MouseEvent e){
            public void mouseEntered(MouseEvent e){
            public void mouseExited(MouseEvent e){
    }JApplet Class, this is what I plugged the GUI into after I made the change from Application to JApplet.
    public class AppletTest extends JApplet{
        public void init() { 
            System.out.println("Creating GUI");
            AppletGUI theGUI = new AppletGUI();
            theGUI.setVisible(true);
            Container content = getContentPane();
            content.setBackground(Color.white);
            content.setLayout(new FlowLayout());
            content.add(theGUI);
            AppletGUI theGUI = new AppletGUI();
            theGUI.setVisible(true);
            setContentPane(theGUI);
            System.out.println("GUI Displayed");
        public static void main(String[] args){
            AppletTest at = new AppletTest();
            at.init();
            at.start();
    }The CSS Generator Class. This exists because once I have the basic program working I intend to expand upon it and add multiple tabs to the GUI, each one allowing the user to change different style options. Each style option to be changed will be changed wit ha different method in this class.
    public class CSSGenerator {
        //Variables
        String background = "";
        ArrayList<String> backgroundCSS;
        //Flags
        boolean backgroundChanged = false;
        //Sets and Gets
        //For Variables
        public void setBackground(String theBackground){
            background = theBackground;
        public String getBackground(){
            return background;
        //For Flags
        public void setBackgroundChanged(boolean isBackgroundChanged){
            backgroundChanged = isBackgroundChanged;
        public boolean getBackgroundChanged(){
            return backgroundChanged;
        //background generator
        public ArrayList<String> backgroundGenerator(String backgroundURL){
            //get the URL for the background
            backgroundURL = background;
            //creat a new array list of strings
            ArrayList<String> backgroundCSS = new ArrayList<String>();
            //add the strings for the background options to the array list
            backgroundCSS.add("body");
            backgroundCSS.add("{");
            backgroundCSS.add("background-image: url(" + backgroundURL + ");");
            backgroundCSS.add("background-color: #ff0000");
            backgroundCSS.add("}");
            return backgroundCSS;
        //Write CSS to File
        public void outputCSSFile(){
            try{
                //Create CSS file
                System.out.print("creating file");
                FileWriter cssWriter = new FileWriter("C:/Documents and Settings/Gwilym/My Documents/Applet Data/CustomStyle.css");
                System.out.print("file created");
                System.out.print("creating buffered writer");
                BufferedWriter out = new BufferedWriter(cssWriter);
                System.out.print("buffered writer created");
                //check which settings have been changed
                //check background flag
                if(getBackgroundChanged() == true){
                    System.out.print("retrieving arraylist");
                    ArrayList<String> tempBGOptions = backgroundGenerator(getBackground());
                    System.out.print("arraylist retrieved");
                    int j = tempBGOptions.size();
                    for(int i = 0; i < j ; i++){
                        System.out.print("writing to the file");
                        out.write(tempBGOptions.get(i));
                        out.newLine();
                        System.out.print("written to the file");
                out.close();
            }catch (Exception e){//Catch exception if any
                System.out.println("Error: Failed to write CSS file");
        /** Creates a new instance of CSSGenerator */
        public CSSGenerator() {
    }The Backgrounds Class. This class exists because I didnt want there to just be a hardcoded lsit of backgrounds, I wanted it to be possible to add new ones to the list without simply lettign users upload their own images (since the intended users are kids and this sharepoint site is used for educational purposes, I dont want them uplaoded inapropraite backgrounds) but I do want the site admin to be able to add more images to the list. for this reason the backgrounds are taken from a list in a text file that will be stored in the same location as the applet, the file specifies the background name, where it is stored, and where a thumbnail image is stored.
    public class Backgrounds {
        //Array Lists
        private ArrayList<JPanel> backgroundsList;
        private ArrayList<String> backgroundsData;
        //Set And Get Methods
        public ArrayList getBackgroundsList(){
            return backgroundsList;
        //ArrayList Population Methods
        public void populateBackgroundsData(){
            //decalre the input streams and create a new fiel hat points to the BackgroundsData file
            File backgroundsDataFile = new File("C:/Documents and Settings/Gwilym/My Documents/Applet Data/BackgroundsData.txt");
            FileInputStream backgroundsFIS = null;
            BufferedInputStream backgroundsBIS = null;
            DataInputStream backgroundsDIS = null;
            try {
                backgroundsFIS = new FileInputStream(backgroundsDataFile);
                backgroundsBIS = new BufferedInputStream(backgroundsFIS);
                backgroundsDIS = new DataInputStream(backgroundsBIS);
                backgroundsData = new ArrayList<String>();
                String inputtedData = null;
                //loops until it reaches the end of the file
                while (backgroundsDIS.available() != 0) {
                    //reads in the data to be stored in an array list
                    inputtedData = backgroundsDIS.readLine();
                    backgroundsData.add(inputtedData);
            //TESTING
            System.out.println("\n\nTESTING: populateBackgroundsData()");
            int j = backgroundsData.size();
            for(int i = 0; i < j; i++){
                System.out.println("Index " + i + " = " + backgroundsData.get(i));
            System.out.println("\n\n");
            //close all stremas
            backgroundsFIS.close();
            backgroundsBIS.close();
            backgroundsDIS.close();
            } catch (FileNotFoundException e) {
                System.out.println("Error: File Not Found");
            } catch (IOException e) {
                System.out.println("Error: IO Exception Thrown");
        public void populateBackgroundsList(){
            backgroundsList = new ArrayList<JPanel>();
            int j = backgroundsData.size();
            System.out.println("number of backgrounds = " + j);
            backgroundsList = new ArrayList<JPanel>();
            for(int i = 0; i < j; i++){
                String tempBackgroundData = backgroundsData.get(i);
                JPanel backgroundJP = new JPanel(new GridLayout(1,2));
                JLabel backgroundNameJL = new JLabel();               
                JLabel backgroundIconJL = new JLabel();
                //split the string string and egt the background name and URL
                String[] splitBGData = tempBackgroundData.split(",");
                String backgroundName = splitBGData[0];
                String backgroundURL = splitBGData[1];
                String backgroundIcon = splitBGData[2];
                System.out.println("\nbackgroundName = " + backgroundName);
                System.out.println("\nbackgroundURL = " + backgroundURL);
                System.out.println("\nbackgroundIcon = " + backgroundIcon + "\n");
                backgroundNameJL.setText(backgroundName);
                backgroundIconJL.setIcon(new javax.swing.ImageIcon(backgroundIcon));
                backgroundJP.add(backgroundNameJL);
                backgroundJP.add(backgroundIconJL);
                backgroundJP.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
                //Name the JP as the background URL so it can be found
                //May be useful sicne the data file may need to contain 3 fields in future
                //this is incase the preview image (icon) is different from the acctual background
                //most liekly in the case of more complex ppictures rather then repeating patterns
                backgroundJP.setName(backgroundURL);
                //Add the JP to the Array List
                backgroundsList.add(backgroundJP);
            //TESTING
            System.out.println("\n\nTESTING: populateBackgroundsList()");
            j = backgroundsList.size();
            for(int i = 0; i < j; i++){
                System.out.println("Index " + i + " = " + backgroundsList.get(i));
            System.out.println("\n\n");
    }So thats my program so far, if theres anythign that needs clarifying then please jsut ask. Thank you very much for the help!

  • Problem wiht upload customer (R/3 - CRM)

    Hi.
    Please somebody can help me.
    I have customers in R / 3 with a full field, but not in CRM.
    When I update the field specifically in R / 3 update the field in CRM.
    Because this? And how can I solve the problem en masse ?.
    thanks.

    Juan,
    If the field in R/3 is a standard field in CRM, then normally the data will flow over to CRM via the delta mechanism of the middleware.  If the field does not exist in CRM and not supported by the middleware, then you need to create a middleware exit to send the field over to CRM.
    Your exit can be written for both the initial load and delta load.  Then once written you can run another initial load of customer data from R/3 to CRM to send over those values in mass.
    The link below should give you a basic overview of how to do it.
    http://help.sap.com/saphelp_crm40/helpdata/en/c8/93ad3a9bfd664ee10000000a114084/frameset.htm
    Take care,
    Stephen

  • Problem wiht filtre in R3AC1

    Hi Guru.
    I added a KNVV-VKBUR field for to do a filter by customer_main object but this is not working properly.
    I have five Sales office, PP01, PP02, PP03, PP04, PP05.
    I need to filter by PP02 and PP05 only.
    In the tx R3AC1, I have next entry:
    1.-
    Table = KNVV.
    Field = VKBUR
    OP = EQ Equality (= Low)
    Low = PP02
    Incl/Excl = I.
    2.-
    Table = KNVV.
    Field = VKBUR
    OP = EQ Equality (= Low)
    Low = PP05
    Incl/Excl = I.
    But all BP is replicate to CRM system.
    Somebody Know, what I can to do?

    Ajay, do you mind explainig if LOEVM flag can help with this if set to X? I am currently working on some what similar but within OLTP, I would like to logically delete the Customer / Sales Area / Office assignment and recreate a new relationship effective from a specific date. I thought LOEVM flag will help to some extent but where can I force the effective date for the new record? Is that the entry date?
    We are still using R/3 4.6C release and seems to be limited options. Our business rules does not allow a customer under multiple sales areas. We have a ned to move a sales office to a different sales area and so the customers associated with that sales area. I am thinking setting LOEVM to 'X' will solve this problem partially but not sure on how to control the effective start date on the new sales area so that the history is intact. Ex: I want to report all my sales and financials under the old Sales Area until say 05/31 and the new sales area assignment will be used effective on 06/01. If we make the changes 05/31 after close of business thee may not be an issue but not sure if there is a better approach.
    Also, I am not sure if we can use the filter criteria to pick the right sales data for the customer when we create extracts for all the downstream applications. Some posts talked about User exits instead. Not knowing enough about user exits, couldn't tell.
    Thanks,
    Lakshmi

  • Problem wiht many itens on form

    Hi, I have many itens to display and I use one content and one stacked , but when I try to navigate,on content , for the penultimate to the last field on content , the stacked disappears and when I tab in the last to first field on stacked , it reappears, whats happen???
    I already , use go_item, force navigable in property pallete and nothing whorks.
    How do I do to set the canvas always visible???
    Thanks.

    Hi ,
    I have faced this kind of problem many times... but rearranging the position X , Y , length , width of canvases somehow ... according to my needs... solved the problem...
    I advise you to look at these canvas properties again ...or if mistakenly you have put an item on canvas A although on canvas B should be placed ....!!!!!!!
    Regards,
    Simon

  • Problem wiht Keynote

    After install actualization Quicktime 7.3, when there is a QT Movie inserted in a keynote, don't charge the slide and freeze it.

    yikes--I just had the same problem. Never update QT if it already works. I was giving an important keynote presentation with embedded video and nothing worked. The slide prior to the movie hangs, you hear the audio for the movie, but the movie will not play. Exiting Keynote does nothing; I had to play the movies manually outside of keynote. Embarrassing. Thanks, apple...

Maybe you are looking for

  • How do I install Windows XP on Macbook pro?

    Hi, I've a Macbook Pro 13-inch retina display with OS X 10.9.3. I want to install Windows XP, how do I install it? What kind of virtual machine do I need to have? If I install Windows XP, how would be the functionality of Macbook. Does it run same or

  • Is it possible to save the content of a form before click on the submit?

    Hi, I'd like to know if it's possible to save the content of a text field in a form in a String variable run-time before click on the submit botton? If this is not clear what i want to say,please tell me, and i'll try to say it better. Thanks a lot.

  • Cropped images in slideshow

    I have a 27" Imac w/ 1 tb hd, and 10 gig ram. I am running Aperture 3.1.3. When I create a slideshow with places or shatter, images are randomly cropped. I have tried this When I use Boinz Photo Presenter, My images are fine.

  • GPS Timestamp

    I'm a LabView and SignalExpress novice so I thought I'd try this forum before trying the LabView forum. I'm trying to acquire analog data with a GPS time stamp.  My application requires that I acquire approximately 10 hours of data at a rate of 500kS

  • Iview service I view area ? where can I see the difference ?

    Hi All, I worked in a previous verion of ESS/MSS where we had 2 iview for each application one with "area" in ID and the second is with "service" in ID. Now I'm working with ess/mss business package 1.41 and there is only one iview with area in ID fo