You can't. If it's private OGNL can't access it. On Mon, Feb 6, 2012 at 11:11 AM, tgupta1419 <tgu...@yahoo.com> wrote: > I’m in a such a situation : > > > > Public abstract class TopLevel{ > > > > Private static class NestedLevel { > > Public String getMethod1() { > > } > > } > > } > > > > How do I call the nested static class method ‘getMethod1’ in ognl in the > html template? > > > > I asked this because If I just use something like in java: > > public abstract NestedLevel getnestedLevel(); > > > And in the html template - > > ognl: nestedLevel.getMethod1 > > > > Then it gives java.lang.IllegalAccessError > > My question is how do i access the method in the inner private nested class. > > [ +/- ] Exception: tried to access class > com.digitalmountain.tapestry.pages.datacollections.FilterForm$EmailBooleanBean > from class $ASTChain_135407e3d4f > java.lang.IllegalAccessError > Stack Trace: > $ASTChain_135407e3d4f.get($ASTChain_135407e3d4f.java) > org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.read(ExpressionEvaluatorImpl.java:141) > org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:139) > org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125) > org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:84) > org.apache.tapestry.form.TextField.renderFormComponent(TextField.java:51) > org.apache.tapestry.form.AbstractFormComponent.renderComponent(AbstractFormComponent.java:104) > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Calling-nested-class-method-in-ognl-tp5460991p5460991.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >
-- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org