Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 19094 invoked from network); 30 Jun 2007 23:13:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jun 2007 23:13:31 -0000 Received: (qmail 58415 invoked by uid 500); 30 Jun 2007 23:13:31 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 58376 invoked by uid 500); 30 Jun 2007 23:13:31 -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 58365 invoked by uid 99); 30 Jun 2007 23:13:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jun 2007 16:13:31 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=HTML_MESSAGE,HTML_TAG_EXIST_TBODY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of andrew.rw.robinson@gmail.com designates 209.85.132.242 as permitted sender) Received: from [209.85.132.242] (HELO an-out-0708.google.com) (209.85.132.242) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jun 2007 16:13:27 -0700 Received: by an-out-0708.google.com with SMTP id c3so321452ana for ; Sat, 30 Jun 2007 16:13:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jIHZSVuZG520iVcjuEWOhRkHwHLaIFPiV1oLpta3Y6mVV5/UV/9eVX1QUGd46txbcFzSHkBXiCFV/z5sBd7efJqyGk/T8QzsFw4jbWye3UkVhdyl7SR9TAD5nEGpI5rPPP6GkTmKAkDCmoeN9COukBWeaRzlyhmw8YEIMWCp/RI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DDUM1rZldE1MK5yKDXwQ32cz882fIfDA+8MNTah9IGvn4io/0XoQaKXqfTCr0hFFCFIOzXsD6FylJiz2CrBZQJBAjZgd2WiN08OZypWg9aniRm3hLb0/oeNuYiIV6wnJazugiBPixJuG0rCpQGlaJvTu39XjqopwbU0nyaA8Bdc= Received: by 10.100.194.7 with SMTP id r7mr2907116anf.1183245186283; Sat, 30 Jun 2007 16:13:06 -0700 (PDT) Received: by 10.100.191.6 with HTTP; Sat, 30 Jun 2007 16:13:06 -0700 (PDT) Message-ID: Date: Sat, 30 Jun 2007 17:13:06 -0600 From: "Andrew Robinson" To: "MyFaces Discussion" Subject: Re: Bug in tag?? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_82916_694668.1183245186258" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_82916_694668.1183245186258 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry, just had a kid, barely any time to just read my email :-) On 6/30/07, Marty Bergerud wrote: > > > Andrew, > I ran the test successfully, the jsp contained... > > 123 > > > The resultant browser "view source" correctly yeilded... >
> 123 >
> > This shows that the faces back end is properly parsing the #{'tmsHidden'}expression. > > now if I replace the jsf code with... > > 123 > > Note: the interestRate backing bean is being successfully used thruout the > page. Here is the source for the method.. > private String searchClosedClass = "tmsHidden"; > ... > public String getSearchClosedClass() { > System.out.println("getSearchClosedClass called"); > return searchClosedClass; > } > > The method does not get called. > > The resultant browser "view source" yeilds... >
> 123 >
> > Would it be possible for you to try a similiar test? > > Thanks, Marty > > > > *"Andrew Robinson" * > > 06/29/2007 10:19 PM Please respond to > "MyFaces Discussion" > > To > "MyFaces Discussion" cc > > Subject > Re: Bug in tag?? > > > > > > Is your bean returning null? > > Try this to ensure that the tag/component is working: > > > 123 > > > If that works, then you know it is the code. > > As for not throwing an error, I'm not sure of the situations where > "Base is null" is thrown, or null is used. I know that most of the > time #{blah} will return null for me if blah doesn't exist. > > On 6/29/07, Marty Bergerud wrote: > > > > I am experiencing a problem with the tag, I cannot load the > > styleClass attribute from a backing bean. (The styleClass works fine > when it > > is a static entry) The funny thing is that I can pass a completely wrong > > backing bean expression and Faces does not detect the error. Can someone > > please try to reproduce this, It should be easy, just copy this code > into > > any jsf page and run it. > > > > > styleClass="#{doesNotExistBB.searchClosedClass}" > > > 123 > > > > > > I am using MyFaces 1.1.5 > > Thanks, > > Marty > > > > ------=_Part_82916_694668.1183245186258 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry, just had a kid, barely any time to just read my email :-)

On 6/30/07, Marty Bergerud <Marty_Bergerud@notes.ntrs.com > wrote:

Andrew,
I ran the test successfully, the jsp contained...
<t:div forceId="true" id="searchClosed1" styleClass="#{'tmsHidden'} " >
123
</t:div>

The resultant browser "view source" correctly yeilded...
<div id="searchClosed1" class="tmsHidden">
123
</div>

This shows that the faces back end is properly parsing the #{'tmsHidden'} expression.

now if I replace the jsf code with...
<t:div forceId="true" id="searchClosed1" styleClass="#{ras$jsf$interestRate.searchClosedClass} " >
123
</t:div>
Note: the interestRate backing bean is being successfully used thruout the page.  Here is the source for the method..
        private String searchClosedClass = "tmsHidden";
         ...
        public String getSearchClosedClass() {
                System.out.println("getSearchClosedClass called");
                return searchClosedClass;
        }

The method does not get called.

The resultant browser "view source" yeilds...
<div id="searchClosed1" >
123
</div>

Would it be possible for you to try a similiar test?

Thanks, Marty



"Andrew Robinson" <andrew.rw.robinson@gmail.com>

06/29/2007 10:19 PM
Please respond to
"MyFaces Discussion" <users@myfaces.apache.org>

To
"MyFaces Discussion" <users@myfaces.apache.org>
cc

Subject
Re: Bug in <t:div> tag??






Is your bean returning null?

Try this to ensure that the tag/component is working:

<t:div forceId="true" id="searchClosed" styleClass="#{'abcd'}" >
123
</t:div>

If that works, then you know it is the code.

As for not throwing an error, I'm not sure of the situations where
"Base is null" is thrown, or null is used. I know that most of the
time #{blah} will return null for me if blah doesn't exist.

On 6/29/07, Marty Bergerud <Marty_Bergerud@notes.ntrs.com> wrote:
>
> I am experiencing a problem with the <t:div> tag, I cannot load the
> styleClass attribute from a backing bean. (The styleClass works fine when it
> is a static entry) The funny thing is that I can pass a completely wrong
> backing bean expression and Faces does not detect the error. Can someone
> please try to reproduce this, It should be easy, just copy this code into
> any jsf page and run it.
>
> <t:div forceId="true" id="searchClosed"
> styleClass="#{doesNotExistBB.searchClosedClass}" >
> 123
> </t:div>
>
> I am using MyFaces 1.1.5
> Thanks,
> Marty
>



------=_Part_82916_694668.1183245186258--