You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Alf Felis <Al...@gmx.de> on 2010/03/18 09:26:46 UTC

[Tobago] Problem using JSP tags with attributes

Hi all,

I have a problem using jsp tags with attributes in tobago.

Tobago version: 1.0.24-SNAPSHOT
Myfaces version: 1.1.6
Tomcat version: 6.0.18

I'm using a tag with the attribute "<%@ attribute name="dataBean" %>".
If I try to access this attribute inside the tag I get a ParseException.

Access:
-------
<tc:sheet value="#{${dataBean}.errors}" ...

Exception:
----------
org.apache.commons.el.parser.ParseException: Encountered "{" at line 1, column 4.
Was expecting one of:
    "}" ...
    "." ...
    ">" ...
    "gt" ...


Is there a problem with the EL parser? Do I have to use a different one?


Best regards,

Alf

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

Re: [Tobago] Problem using JSP tags with attributes

Posted by Udo Schnurpfeil <ud...@schnurpfeil.de>.
Hi Alf,

The expression #{${dataBean}.errors} works in older Servlet APIs with 
Tobago.
It should work until Tomcat 5.5, but doen't work with Tomcat 6.0.
It also doesn't work with Facelets, but in Facelets you may use 
#{dataBean.errors} instead.

For JSPs #{dataBean.errors} will work, when dataBean is in some context, 
it depends on your application, what is the best way to put in in the 
context.

Regards,

Udo

Am 18.03.10 09:26, schrieb Alf Felis:
> Hi all,
>
> I have a problem using jsp tags with attributes in tobago.
>
> Tobago version: 1.0.24-SNAPSHOT
> Myfaces version: 1.1.6
> Tomcat version: 6.0.18
>
> I'm using a tag with the attribute "<%@ attribute name="dataBean" %>".
> If I try to access this attribute inside the tag I get a ParseException.
>
> Access:
> -------
> <tc:sheet value="#{${dataBean}.errors}" ...
>
> Exception:
> ----------
> org.apache.commons.el.parser.ParseException: Encountered "{" at line 1, column 4.
> Was expecting one of:
>      "}" ...
>      "." ...
>      ">" ...
>      "gt" ...
>
>
> Is there a problem with the EL parser? Do I have to use a different one?
>
>
> Best regards,
>
> Alf
>
>