Tiles works with jsf but....

Hi guys,
i've a jsf application and i've tried to improve its layout with Tiles of Struts and everythings work,infact each page has its layout fixed.
I've used one header,one footer,one left menu(for quickly navigation and language selection and personal content of each page.
My question is:
if i navigate throught my application it's ok,when i use quickly navigation on left menu it's ok.
The problem is when i click on buttons that performs not only navigation,but also java logic,i've this exception (but the operation requested,as insert in database,delete etc...are done!!!!)
GRAVE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
     at giu.NavigationManager.handleNavigation(NavigationManager.java:23)
     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:89)
     at javax.faces.component.UICommand.broadcast(UICommand.java:312)
     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
     at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at giu.AuthorizationFilter.doFilter(AuthorizationFilter.java:61)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Unknown Source)i've used this NavigationManager
package giu;
import javax.faces.application.NavigationHandler;
import javax.faces.context.FacesContext;
public class NavigationManager extends NavigationHandler {
     final String menuId ="@mainMenu";
     NavigationHandler _base;
     public NavigationManager (NavigationHandler base) {
          super();
          _base = base;
     public void handleNavigation(FacesContext fc, String actionMethod, String action) {
          int atPosition = action.indexOf(menuId);
          if (atPosition < 0) {
               _base.handleNavigation(fc, actionMethod, action);
          } else {
               String viewId = fc.getViewRoot().getViewId();
               fc.getViewRoot().setViewId(menuId);
               String newAction = action.substring(0, atPosition);
               _base.handleNavigation(fc, actionMethod, newAction);
}that comes from a jsf-tiles example downloaded from core Java server faces book..i'vent understood too well this navigation,can someone help me to understand it and solve my exception??
Thanks very much....(i use exadel studio pro 4,jsf 1.1.0.1,servlet 2.3 and tiles from struts 1.1)

giubat: I've stuggled with getting Tiles to work correctly with JSF.
If your not to far into your project, I strongly recommend Facelets, it is very simple to include other JSF files and the syntax is XML formatted which allows Exadel Studio 4.0 to check your pages.
You'll need to change you actual page extension to .xhtml, which Exadel Studio handles nicely...
Tiles is just a waste of time when combined with JSF...

Similar Messages

  • I upgraded for Firefox 4 and now my simplePass identity protection (biometric scanner) on my laptop will not work. WHY? It still works with IE but I don't use IE.

    I upgraded for Firefox 4 and now my HP SimplePass Identity Protection (biometric scanner) on my laptop will not work. WHY? It still works with IE but I don't use IE. It worked with the previous Firefox version but now when I use the internet, it doesn't even acknowledge I have the scanner. When I run my finger over it, it opens the settings panel but does not allow use of the already saved information or allow new information to be entered. I need this corrected. Any suggestions?

    I asked this same question, and just received a response:
    "Thank you for contacting DigitalPersona. There will be no update releases
    for DigitalPersona Personal in the future. There will be no updates for
    Firefox 4 nor Internet Explorer 9. IF they work they work, if they do
    not work with DPPersonal, then you will have to decide to either keep
    DPPersonal and forgo Firefox 4 or IE 9, or vice versa. DigitalPersona
    is leaving the consumer market and is focusing on business applications.
    In fact, DigitalPersona Personal will not longer be supported after
    Mid-April of this year.
    We apologize for any inconvenience this might cause. Sincerely, Tech Team "
    In other words, there will be NO update.

  • The "new" hotmail no longer works with safari, but works with firefox. Hmm.

    The "new" hotmail no longer works with safari, but works with firefox. Hmm. i find this very convenient being a microsoft product. anybody else wonder why this new version happens to not be safari compatible? does anybody know if it works on the PC version of safari? if not, i find this to be a blatant move on microsofts part to bias the safari browser (especially since its basicly new on the window platform). forcing safari/hotmail users to "have" to use another browser to access their hotmail accounts.

    I have been successfully using Hotmail and Gmail with Safari for a long time. For roughly the past month, that relationship is rocky at best. At times, one of the following actions suddenly opens Hotmail, but it is a short-lived solution:
    (a) Hotmail directly
    (b) Hotmail Home>Hotmail
    (c) Sign up to Windows Hotmail
    (d) Deletion of prescribed cookies, resetting, etc. - made no difference
    Both Firefox and Opera work fine with Hotmail - especially Opera is very fast.
    In addition, Safari and Gmail does not work with Attachments, but otherwise Gmail is OK.
    I suspect I have to wait for a Safari fix because in my case I do not wish to abandon Hotmail, and Safari is a given. I would think that Safari would want to stay competitive with the two biggies, Hotmail and Gmail, which must have large numbers of users.
    I certainly would appreciate any other suggested fixes.

  • My i message seems that is working with everyone but with a particular phone is not?, My i message seems that is working with everyone but with a particular phone is not?

    My I message is working with everyone BUT with one phone, Same thong happen with this other phone i message works with everyone else but with me What did i did?

    Actually she does,  her i message is working with everyine else but me, and viceversa

  • Strange on - Wake on LAN (WOL) works with Win2K3, but not Windows 7

    Hi,
    I have a PC that I originally had Windows 2003 on.  With Win2K3, I can send a wakeonlan (magic) packet (WOL) and get it to power on remotely from my home network/LAN.
    I just installed Windows 7 Ultimate 64-bit, in a dual-boot configuration, i.e., so I can boot the machine to either Windows 7 Ultimate 64-bit or Win2K3.
    As mentioned, I can power the machine up remotely (from my home network/LAN), but if I've LAST booted into Win7, then shutdown, it doesn't respond to the WOL packet.
    I've confirmed that if I boot into Win2K3, then shutdown, the WOL works fine.
    I have another PC that has both Win2K3 and Windows 7 (also dual boot), and that works fine with WOL.
    One difference between the one that doesn't work vs. the one that works is that the one that works is a machine that I just built a couple of weeks ago, which uses an MSI 880gm-E43 motherboard.
    The one that doesn't work also has an MSI motherboard, but it's an older one, an MSI K9NBPM2-FID.
    I've cross-checked the various Windows power management settings between the one that works, and the one that doesn't work, but I just can't get WOL to work with Win7 on that older machine.  I've even turned the Windows Firewall off completely on the machine where WOL isn't working, but no matter what I've tried thus far, no joy :(...
    The only thing that I can think of is that the network card driver (it's the MS one, from the Win7 distribution) might not work with WOL, but I've checked, and it's the latest driver from MS (Nvidia Nforce Networking Controller - 10/17/2008 - 1.0.1.211), and MSI doesn't have a specific Win7 64-bit driver for this motherboard.
    So, I was wondering if anyone has any ideas about this?
    Is there some registry setting or something that might allow WOL to work?
    Thanks in advance,
    Jim

    Hi,
    Unbelievable!
    Just for the record, I got WOL working with the older machine, JUST after I posted the original msg.
    Here's what I did:
    - I was in Device Manager, and did Update Driver, but
    - I selected to let me choose, and then I checked the "Show Compatible devices" checkbox
    Then, a 2nd, older (10/6/2006 - 6.2.0.127) driver appeared, so I figured, "what the heck?" and tried that.  I then shut the machine down, and sent a WOL packet to it, and kind of forgot about it (machines in a different room), but a few minutes later "bing!", the machine had powered up and booted into Win7!!
    Anyway, as I said, for the record, and hope that this helps someone in the future.
    Jim

  • My bank id works with IE but not in Firefox, even if I run without extensions. What is the problem?

    My bank id works with IE but not in Firefox, even if I run without extensions. What is the problem?

    Make sure you are using the correct user name / password.
    https://support.mozilla.org/en-US/kb/firefox-cant-load-websites-other-browsers-can
    https://support.mozilla.org/en-US/kb/secure-connection-failed-error-message

  • XPath query works with CLOB but not with object relational

    hi all
    i have the following queries,the XQuery work with all, but XPath queries work with XMLType CLOB and Binary XML, but they do not work with XMLType as Object relational,
    select extract (object_value,'movies/directorfilms/films/film [studios/studio = "Gaumont"]')
    from xorm;
    select extract (object_value,'movies/directorfilms[director/dirname = "L.Cohen"]/films/film[position()=2]/t')
    from xorm;
    they shows this message
    ORA-00932: inconsistent datatypes: expectd SYSTEM.name683_COLL got CHAR
    thanks

    Hi Marco
    fisrt here is my RO
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL=>'http://......../ORMovies.xsd',
    SCHEMADOC=>bfilename('DB','Movies.xsd'),
    LOCAL =>false,
    GENTYPES=>true,
    GENTABLES=>FALSE,
    CSID=>nls_charset_id('AL32UTF8'));
    END;
    create table XORM of xmltype
    xmltype store as object relational
    XMLSCHEMA "http://......../ORMovies.xsd"
    ELEMENT "movies";
    INSERT INTO XORM
    VALUES(XMLType(BFILENAME('DB','ORMovies.xml'),nls_charset_id('AL32UTF8')));
    here the XQuery format that work fine with the OR
    A/D
    select XMLQuery ('for $a in movies/directorfilms/films/film
              where $a/studios/studio = "Gaumont"
              return $a'
         passing object_value
         returning CONTENT)"TitleX"
    from xorm;
    child element query
    select XMLQuery ('for $a in movies/directorfilms/director[dirname = "Feyder"]
              let $b:=$a/../films/film[position()=2]
              return $b/t'
         passing object_value
         returning CONTENT)"TitleX"
    from xorm;
    here is the XPath format which doesn't work
    select extract (object_value,'movies/directorfilms/films/film [studios/studio = "Gaumont"]')
    from xorm;
    select extract (object_value,'movies/directorfilms[director/dirname = "Feyder"]/films/film[position()=2]/t')
    from xorm;
    by the way all queries work fine with the CLOB or Binary XML
    many thanx Marco

  • Apple says  Reminders works with Outlook, but I can't find where the lists are displayed in Office or Outlook  once they are synced.

    Apple says  Reminders works with Outlook, but I can't find where the lists are displayed in Office or Outlook  once they are synced. Any suggestions?

    I'll guess you've already discovered the answer to this, but just in case:
    Reminders works with Outlook tasks by syncing with iCloud, or through Exchange. You can't sync iOS Reminders with Outlook Tasks via USB/iTunes (like you can do with Notes, Calendar, Contacts).
    So the marketing material on Reminders is a little misleading in that it's not specific enough -- there is no syncing without one of those intermediary systems mentioned above.
    On a side note, syncing Tasks/Reminders via iCloud is not very good in my opinion:
    Requires that you sync to the cloud, even if you have no other use for storing personal data in the cloud.
    Requires that the iCloud Control Panel be installed on your PC (not sure about Mac).
    After syncing, you'll find new Calendar and Task groups called "iCloud" have been created in Outlook. The calendar groups appear to be created even if you're only syncing Tasks/Remminders (not sure why).
    Reminders are stored in the new group (noted above) called "iCloud" rather than in your default Tasks group. This seems to me to be a sort of "parallel" sync, rather than a true sync with Outlook. There are oter implications of your synced tasks being in the new group that I won't go into here, but you can search the interwebs to learn more.
    In my own case, I tried iCloud syncing, decided that I didn't like it for the reasons stated above, and then uninstalled (Control Panel and new Outlook groups) with no apparent ill effects.
    Though I don't guarantee you'll have the same results, it might be worth a try to see if it suits your purposes.

  • Airplay works with Remote but cuts out for every other App

    Remote works perfectly fine but whenever I try another AirPlay app it cuts in and out.  Driving me crazy. I have att wifi with an airport express.  Any ideas?  Why would AirPlay work with Remote but fail with every other app?

    Remote does not use AirPlay.

  • I bought the external DVD player/burner for my Macbook.  I tried using it with my Dell laptop but it will not work.  Is it not configured to work with anything but apple operating systems?

    I bought the external DVD player/burner for my Macbook.  I tried using it with my Dell laptop but it will not work.  Is it not configured to work with anything but apple operating systems?

    If you purchased the Apple USB SuperDrive, it will only work with select Apple devices. It won't work, for example, on my Late 2011 model that has a SuperDrive built-in, but it will work with an Air, Retina model, new 'drive-less' iMacs, etc.
    As far as I know, though, you can only hack the drive to work with some other Apple devices, but not with Windows PCs. Which is a shame as other, less expensive DVD/CD devices will work with just about any machine.
    Sorry,
    Clinton

  • Adobe flash player 10 works with Chrome but will not work with Int. explorer

    Adobe Flash playaer 10 works with Chrome but when I try to use it in Internet Explorer it
    says I do not have it installed but I do.

    I'm sorry but I couldn't find publish settings under file in explorer.  Is file in another place.  I did input file in my search  and found change temporary internet  file settings.  Under programs, manage add ons.  Scrolled to "shock wave flash object under Adobe  and found it was disabled.  Changed to enabled and now it works fine.  Thanks for your help.  
    Dan Simonelli

  • HT204023 I was working with it but suddenly after a while i couldnt even see the icon

    I was working with it but after a while I couldnt even see the icon .. Funny ha???

    1)  Try this First...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    If no joy...
    NEXT:
    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download
    2)  Connect to iTunes on the computer you usually Sync with and Restore
    http://support.apple.com/kb/HT1414
    3)  If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/ht4097
    Note on Recovery Mode.
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    Once you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • My Telus wireless only works with WEP, but if I switch to WEP the wireless goes down on the other Windows computer being used in the same house.  Is there a way for both of us to get wireless internet or do one of us have to be connected by the ethernet?

    My Telus wireless only works with WEP, but if I switch to WEP, the wireless on the other computers in the house (which is Windows and WPA) stops working. My computer works with the ethernet cord but I want to be wireless too!  Do one of us have to sacrifice our wireless?

    For assistance in getting your MacBook to connect to a WEP-protected wireless network, please check out this Apple Support article: AirPort: Joining an encrypted WEP or WPA Wi-Fi network

  • I use an online application that doesn't work with FF, but I had been able to use an IE plugin within FF and it worked fine. After the last update (3.6.12), it says plugin is not compatable with version. Help?

    I use an online application that doesn't work with FF, but I had been able to use an IE plugin within FF and it worked fine. After the last update (3.6.12), it says plugin is not compatable with version. Help

    go to '''TOOLS '''then '''OPTIONS''' then '''ADVANCED''' then '''NETWORK tab''' then '''SETTINGS tab''' and select the options '''NO PROXY''' click '''OK''' and '''OK '''again in the next screen. With that you have disabled the proxy settings.
    ''if you like to not disable the proxy settings choose'' : '''Auto-detect proxy settings for this network''' (it is in the same session)
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Microphone of my iphone is not working when i call anyone nobody can listen but me, its working with headphone but its also working with videocam recording, please help me to solve this probelm.

    microphone of my iphone is not working when i call anyone nobody can listen me its working with headphone. but it is working with videocam recording, please help me to solve this probelm.

    Try this:
    1. Reset the iPhone by pressing and holding the sleep/wake and home buttons and releasing them, when the Apple logo appears on the display. Now test again.
    2. If the issue persists: Restore the iPhone without any of your own content, using this description from Apple: http://support.apple.com/kb/HT4137
    3. If the issue persists, Your iPhone need repair.

Maybe you are looking for