The $ is a convention used by Struts-2 (Shale). It reflects the directory 
path to your jsp. There are some features of Shale that require that 
convention ( I can't remember exactly what it was though ). Even though I 
am not currently using Shale, I have my project set up for its use just in 
case I need it. 

Marty




Christopher Cudennec <[EMAIL PROTECTED]>
07/01/2007 02:57 AM
Please respond to
"MyFaces Discussion" <[email protected]>


To
MyFaces Discussion <[email protected]>
cc

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





btw, I'm just curious ;) I haven't seen a '$' in an EL expression. what
is it used for? (I.e.'ras$jsf$interestRate' is your bean name)

Marty Bergerud schrieb:
>
> 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" <[EMAIL PROTECTED]>*
>
> 06/29/2007 10:19 PM
> Please respond to
> "MyFaces Discussion" <[email protected]>
>
>
>
> To
>       "MyFaces Discussion" <[email protected]>
> 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 <[EMAIL PROTECTED]> 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
> >
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.9.14/880 - Release Date: 
29.06.2007 14:15
>


Reply via email to