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

Reply via email to