You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Julian Wood (JIRA)" <de...@tapestry.apache.org> on 2007/04/14 00:34:15 UTC

[jira] Commented: (TAPESTRY-1256) IllegalStateException if you try to access an ASO with OGNL, before accessing it in code

    [ https://issues.apache.org/jira/browse/TAPESTRY-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488807 ] 

Julian Wood commented on TAPESTRY-1256:
---------------------------------------

Sorry, that dependency wasn't required at all. I've removed it and it should build with maven now (as I've just come across the same issue again while working on a new project, and wanted to see what had become of it).

There's not really a lot to it - it's one of those things which is easy to work around, but it bugs you because it is not clean (as it was previously). All you need to do is make an ASO, say a session object, and then access it from ognl. You'll get an illegal state exception unless you go and access it in, say a PageBeginRender method.

The code provided will throw the exception when you hit the home page. If you uncomment the pagebeginrender, it will be fine.

> IllegalStateException if you try to access an ASO with OGNL, before accessing it in code
> ----------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1256
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1256
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>         Environment: java 1.5_06, tomcat 5.5
>            Reporter: Julian Wood
>            Priority: Minor
>             Fix For: 4.1.2
>
>
> This appears to be a regression, as it didn't happen with 4.1.1 or 4.1. With 4.1.2-SNAPSHOT, if you make an ASO and try to use it in an html template with OGNL, you will get an IllegalAccessException, unless you first access it in code, within a pageBeginRender method, for instance.
> There's a demo app here:
> http://jwoodchip.blogspot.com/2007/02/application-state-objects-in-tapestry.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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