Parameters to tag/include files using facelets
Hello,
I am using 6.0.1 (build 5784) to manage a facelets project. I created a tag file and mapped it to a custom tag. I also am using the same file as an include file uisng <ui:include>. I pass a parameter to the custom tag as an attribute or the include file using <ui:param>. So far so good, everything works when I deploy and run the application.
The problem occurs when editing the tag/include file. IntelliJ doesn't know about the parameter (since it is not registered as a backing bean) so I get the dreaded red squiggle and "Cannot resolve variable xyzzy" whenever I reference the parameter in EL expressions.
Any suggestions?
Thanks,
Ray
Please sign in to leave a comment.
Nobody has any suggestions? I guess I should submit a bug.
Yeah, I'm coming across this too. I wouldn't expect idea to magically figure out the types of the imported variables, but I thought something could be done with the ui:composition tag. If I could re-declared variables and their types in some tag outside the ui:composition block, then IDEA would be happy, and facelets would be happy to (it would remove everything outside the ui:composition when rendering the page as an include).
But I haven't found a jsf, facelet, or jstl tag like this. Something akin to jsp:useBean or a jsp declaration...
There is an intention for declaring jsp var in comment
Russell Egan wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Does this work with facelets and XHTML? If so, you need to give me a little more guidance. The only option I get when I invoke Alt+Enter at the offending line is "Inspection 'EL Validation in JSP' Options".
Thanks,
Ray
The intention does not show up for me, can you describe the format of the comment so I could include it manually? That would be very helpful.
Oh, I figured it out. I downloaded 7.0m1a, and it works there. Looks like it's an upcoming Intellij 7 feature.