You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:48 UTC

[jira] Moved: (SHALE-9) LoadBundle basename property is not set

     [ http://issues.apache.org/struts/browse/SHALE-9?page=all ]

Craig McClanahan moved STR-2784 to SHALE-9:
-------------------------------------------

      Project: Shale  (was: Struts Action 1)
          Key: SHALE-9  (was: STR-2784)
    Component:     (was: Shale)
      Version:     (was: Nightly Build)
    Assign To:     (was: Struts Developer Mailing List)

> LoadBundle basename property is not set
> ---------------------------------------
>
>          Key: SHALE-9
>          URL: http://issues.apache.org/struts/browse/SHALE-9
>      Project: Shale
>         Type: Bug

>  Environment: Operating System: other
> Platform: Other
>     Reporter: Christopher Hlubek

>
> If the utility class LoadBundle is used with Myfaces (1.1.1) the basename
> property will not be setted before a call to LoadBundle.getMap() which causes a
> IllegalStateException.
> The problem might be in the ShalePropertyResolver code below, which gets called
> during the initialization(!) of the managed bean, before the basename property
> gets set:
> ----------------------------------------------
> public Class getType(Object base, Object property)
> ...
> else if (base instanceof LoadBundle) {
>             LoadBundle lb = (LoadBundle) base;
>             if ("map".equals(property)) {
>                 return Map.class;
>             } else if (Beans.isDesignTime()) {
>                 return Object.class;
>             } else {
>                 Object value = lb.getMap().get(property);  <--------
>                 if (value != null) {
>                     return value.getClass();
>                 } else {
>                     return null;
>                 }
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org