Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiles 2.2.1 EL AttributeEvaluator not being setup correctly. EL doesn't work in Tiles definitions [SPR-7251] #11910

Closed
spring-projects-issues opened this issue Jun 1, 2010 · 3 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Steve Mosley opened SPR-7251 and commented

I'm trying to use EL in my tiles configuration. But the end result is after making sure the correct classes (JSP 2.1 and tiles-el) were on the classpath for Spring to attempt to setup an ELAttributeFactory for tiles the EL stuff isn't working. I can see it is still using the DirectAttributeEvaluator

To me it seems like the setup in org.springframework.web.servlet.view.tiles2.TilesConfigurer via the TilesElActivator is only calling setAttributeEvaluatorFactory on the BasicTilesContainer.
But it looks like it needs to be called at least on the BasicRendererFactory as well ... and probably on all the classes that implement AttributeEvaluatorFactoryAware.... all of which are setup through the BasicTilesContainerFactory

What I think may fix it
in TilesConfigurer$SpringTilesContainerFactory override the BasicTilesContainerFactory#createAttributeEvaluatorFactory method to create the ELAttributeEvaluator earlier in the process ... and just remove the TilesELActivator stuff ... but the comments in the code seem to indicate that it was a conscious decision not to set it up that way.

  • Steve

Affects: 3.0.2

Referenced from: commits 65655b9

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I've fixed this through a revision of TilesElActivator which should work fine against Tiles 2.2 now. However, this hasn't been integration-tested yet - would be great if you could give it a try! This will be included in tonight's 3.0.3 snapshot (CI build 705, to be available from http://static.springsource.org/downloads/nightly/snapshot-download.php?project=SPR).

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Quick reminder: The 3.0.3 release is just around the corner now - scheduled for public release tomorrow. If you get the chance, it would be really great to give this TilesConfigurer revision a try before the release so that we know that the issue is actually fixed.

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Steve Mosley commented

Sorry Juergen,
Had tried it, forgot to comment ... it worked fine. Thanks for fixing it.

Only issue was something I found with ROO and spring-aspects 3.0.3.BUILD-SNAPSHOT which I'll raise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants