myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Bug in <t:div> tag??
Date Sat, 30 Jun 2007 23:13:06 GMT
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
> >
>
>

Mime
View raw message