DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38784>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38784 Summary: LoadBundle basename property is not set Product: Struts Version: Nightly Build Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Shale AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] 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; } } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
