Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 90050 invoked from network); 7 Apr 2010 12:07:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Apr 2010 12:07:00 -0000 Received: (qmail 61941 invoked by uid 500); 7 Apr 2010 12:06:59 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 61913 invoked by uid 500); 7 Apr 2010 12:06:59 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 61905 invoked by uid 99); 7 Apr 2010 12:06:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 12:06:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sethfromaustria@gmail.com designates 209.85.220.228 as permitted sender) Received: from [209.85.220.228] (HELO mail-fx0-f228.google.com) (209.85.220.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 12:06:51 +0000 Received: by fxm28 with SMTP id 28so1296801fxm.36 for ; Wed, 07 Apr 2010 05:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:received:message-id:subject :from:to:content-type; bh=Z2GAvbr+RQNObVi5GtaiOQlBSIHJ8u1X2KbOBke68ss=; b=Kdc58yu2VxyxvSOqBMy8n3z9GuWT6Qy3OHje841BEEa44k4CXubIZ28Q58TggS7hY2 qvo6EOhfZ/Zu0KpCZHZQgnsl83jXNbR9oP2LGEdBUUqQyPJY4H27AZgcLOQYjbi8K2xg bRnH/+UyjIyzP3Ne3cIrgXv3+6rqTQWOmasxw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=pHeMzuQ+6idjmydZCATINudUantbEX79kTS/lWJAX44R+UWcV+sZfY1yxtC/GX5ZOE 6ZAwPOND7aw5F4ZGm9ShxlMOgQili9hYX0YdTIoro3JKG723Ye8QXUg7eK7vZT58VFFM sKGjzqTWcNza9upnfUzDD35+VVreuGtGHswIs= MIME-Version: 1.0 Sender: sethfromaustria@gmail.com Received: by 10.103.250.19 with HTTP; Wed, 7 Apr 2010 05:06:30 -0700 (PDT) In-Reply-To: <20100407115603.82650@gmx.net> References: <20100401085159.256680@gmx.net> <20100401114041.279750@gmx.net> <20100401124824.253970@gmx.net> <20100407061430.245730@gmx.net> <20100407115603.82650@gmx.net> Date: Wed, 7 Apr 2010 14:06:30 +0200 X-Google-Sender-Auth: a66f79d7e5f4f90f Received: by 10.102.174.2 with SMTP id w2mr4678128mue.116.1270641990976; Wed, 07 Apr 2010 05:06:30 -0700 (PDT) Message-ID: Subject: Re: javascript error "jsf is not defined" From: Jakob Korherr To: MyFaces Discussion Content-Type: multipart/alternative; boundary=0016364d25b18246d50483a464f6 X-Virus-Checked: Checked by ClamAV on apache.org --0016364d25b18246d50483a464f6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, In JSF 2.0 you don't have to configure a view handler. It will decide whether to use the new Facelets- or the JSP-ViewDeclarationLanguage in the default ViewHandlerImpl. Regards, Jakob 2010/4/7 Matthias Leis > You are right about the view handler. I forgot that JSF2 doesn't need > afaces-config anymore. But I need it anyway for registering a phase > listener. Anyway, if I remove the view handler from the faces-config, all= I > get from my webapp is a blank page and no errors. Do I have to define a > view-handler if I use a faces-config file or does JSF just use the dafaul= t > view handler? > -------- Original-Nachricht -------- > > Datum: Wed, 07 Apr 2010 08:54:02 +0200 > > Von: Werner Punz > > An: users@myfaces.apache.org > > Betreff: Re: javascript error "jsf is not defined" > > > Am 07.04.10 08:14, schrieb Matthias Leis: > > > Hi Jakob, > > > > > > I guess I use the built-in facelets. At least this is the code from > > faces-config: > > > > > > com.sun.facelets.FaceletViewHandler > > > > > Wrong view handler... the jsf2 one is not under com.sun, but under > > javax.faces.view.facelets and it is initialized automatically if you us= e > > myfaces and the jsf2 facelets (no further configuration is needed) > > Com sun is the old Facelet 1.x stuff and the new tags cannot work under > > it due to the extensions in the jsf2 lifecycle and view handler api. > > So it is either old facelets or the jsf2 one but not a mix of both, sor= t > > of a hard break introduced by the namespace change from com.sun into > > javax.facelets and due to the api changes, but better once a hard break > > from old habits than having endless pain :-) > > > > Basically if you run in a pure jsf2 environment you can start to use > > facelets without additional configuration on the faces-config side. > > > > Werner > > > > -- > GRATIS f=C3=BCr alle GMX-Mitglieder: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > --0016364d25b18246d50483a464f6--