[jboss-user] [JBoss Seam] - Seems some kind of config error with BEANs, please help
Alpha1251
do-not-reply at jboss.com
Mon Jul 9 03:58:40 EDT 2007
The following test (after applying http://jira.jboss.com/jira/browse/JBSEAM-1494, other way the error message could not be found for locale)
@Test
public void test() throws Exception {
new FacesRequest() {
@Override
protected void invokeApplication() {
invokeMethod("#{Dumper.dump}");
}
@Override
protected void renderResponse() throws Exception {
Object facesMessages = getValue ("#{Dumper.report}");
// FacesMessages facesMessages = (FacesMessages) getValue ("#{Dumper.facesMessages}");
// List msgs = facesMessages.getCurrentGlobalMessages();
// boolean found = false;
// for (FacesMessage message: msgs) {
// String detail = message.getSummary();
// System.out.println ("Detail - "+detail);
// if (detail.indexOf("Finished in")>-1) {
// found = true;
// }
// }
// assert found;
}
}.run();
}
Successfully calls the method, but cannot getValue with exception
javax.el.PropertyNotFoundException: Property 'report' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_0
at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:199)
at javax.el.BeanELResolver.property(BeanELResolver.java:273)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at org.jboss.seam.jsf.SeamApplication.evaluateExpressionGet(SeamApplication.java:324)
at org.jboss.seam.mock.BaseSeamTest$Request.getValue(BaseSeamTest.java:412)
Property declared as
@Out
private Map<String, DataUpdateReport> report;
(the same with the others,
@In @Out
private FacesMessages facesMessages;
for example.
Adding getters\setters doesn't help)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061836#4061836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061836
More information about the jboss-user
mailing list