Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 26403 invoked from network); 21 Jul 2010 10:17:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jul 2010 10:17:09 -0000 Received: (qmail 79052 invoked by uid 500); 21 Jul 2010 10:17:08 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 78742 invoked by uid 500); 21 Jul 2010 10:17:06 -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 78734 invoked by uid 99); 21 Jul 2010 10:17:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 10:17:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sethfromaustria@gmail.com designates 209.85.161.53 as permitted sender) Received: from [209.85.161.53] (HELO mail-fx0-f53.google.com) (209.85.161.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 10:16:58 +0000 Received: by fxm19 with SMTP id 19so3454501fxm.12 for ; Wed, 21 Jul 2010 03:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=D98otq5N8TGZEQx811mwLWFnz/qgNbuZza72N4HweHI=; b=pkaOWV9tBIMILXAFrVbYkf5snICa6KPv6KIYSgZBotomAZ4zvn464HI24/dHCEIWSR 0E+egtgzgqKe/eGWqlBomaePOfgXc2B2hXcUK5fudR7liHs0rZ0lcVIjOrrxYdORBgx4 McYRca/suwKUiVZbWv2ABO0S6BF6XLvVx2DUc= 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=sLG6EYpLaOeDKVoFF0nQp0a9EoKgsgIzqi4GaDbE/gfC3l69FrjGBBTR8vR99i7e2Z a5/3or6hxvj5f6jrZPFbqXX4SseYbRPcps1zdtqAvNwwHJpNMCzUeUV7NO8d04d1qcMj SAjIRsyxaF2yNvSHPd0SRhH31RaOlRB2AYG5A= MIME-Version: 1.0 Received: by 10.103.165.2 with SMTP id s2mr717352muo.30.1279707335411; Wed, 21 Jul 2010 03:15:35 -0700 (PDT) Sender: sethfromaustria@gmail.com Received: by 10.103.212.19 with HTTP; Wed, 21 Jul 2010 03:15:35 -0700 (PDT) In-Reply-To: <4C46B64B.4010201@googlemail.com> References: <4C45BD3E.50306@googlemail.com> <4C46B64B.4010201@googlemail.com> Date: Wed, 21 Jul 2010 12:15:35 +0200 X-Google-Sender-Auth: ZY76UEBcoi2B8HgntkPWzftTVz4 Message-ID: Subject: Re: ui:param value accessible in backing bean? From: Jakob Korherr To: MyFaces Discussion Content-Type: multipart/alternative; boundary=001636b431dc24cf57048be315f2 X-Virus-Checked: Checked by ClamAV on apache.org --001636b431dc24cf57048be315f2 Content-Type: text/plain; charset=UTF-8 Hi Michael, "I migrated my app from jsp/tiles to xhtml/facelets successfully in the last 2-3 days." That's great :) Hm, yes. Unfortunately I digged deeper into it and found out that is equal to on facelets-1.x, thus the suggested code only works for JSF 2.0. I am sorry, but this means that you will have to find some other tag which accomplishes this or you will have to write your own one (which should not be too hard, because you can take the code from MyFaces core 2.0 SetHandler --> org.apache.myfaces.view.facelets.tag.jstl.core.SetHandler and just register it in your facelets taglib). I hope this helps! Regards, Jakob 2010/7/21 Michael Heinen > Hi Jakob, > > I migrated my app from jsp/tiles to xhtml/facelets successfully in the last > 2-3 days. > But your hint is unfortunately not working for me. > > namespace in xhtml file for core tags is: xmlns:c=" > http://java.sun.com/jsp/jstl/core" > Is this the right one or do I have to use xmlns:c=" > http://java.sun.com/jstl/core" (without jsp)? > > jstl-1.2.jar is in the lib folder of my webApp. > > EL in the getter of my bean. > > My current code: > xmlns:ui="http://java.sun.com/jsf/facelets" > > xmlns:c="http://java.sun.com/jsp/jstl/core"> > > > > > > > > > > > > > I try to access foo and foo2 in navigation.xhtml and in a getter called > from navigation.xhtml. > Any Idea what's going wrong here ? > > Greetz, > Michael > > Am 20.07.2010 23:20, schrieb Jakob Korherr: > > Hi Michael, >> >> You can use from the JSTL to put the value into the request scope. >> Then you can access it in the facelet and also later in the action method. >> >> Namespace: xmlns:c="http://java.sun.com/jsp/jstl/core" >> >> >> >> Regards, >> Jakob >> >> 2010/7/20 Leonardo Uribe >> >> >> >>> Hi >>> >>> I checked in deep some days ago ui:param, and it only define the >>> expression >>> when the view is build, but its context is not preserved on other phases. >>> FaceletContext extends from ELContext and override its VariableMapper and >>> FunctionMapper. So in practice, ui:param just add a variable on the >>> variable >>> mapper. but after ui:composition and ui:include ends its processing the >>> variable is just discarded, because the whole VariableMapper wrapper >>> created >>> by this two tags is removed too. >>> >>> regards, >>> >>> Leonardo Uribe >>> >>> 2010/7/20 Michael Heinen >>> >>> >>> >>>> Is it possible to access the value of a facelets ui:param tag in phase >>>> render response in a backing bean? >>>> I tried to resolve #{activeTab} in MyController.getOnlick() without >>>> success. >>>> >>>> Sample: >>>> 1) Template >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> 2) navigation.xhtml >>>> ... >>>> >>> ... >>>> >>>> I use myFaces 1.2.9 and facelets 1.1.15. >>>> >>>> Thanks, >>>> Michael >>>> >>>> >>>> >>>> >>> >>> >> >> >> >> > > -- Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at --001636b431dc24cf57048be315f2--