JSP Editor does not understand <p:defineObjects /> completely

Hi,

Calling the JSR-168's <p:defineObjects /> tag creates a few implicit objects such as renderRequest, actionRequest, and portletConfig that can be used to do different portlet related activities.

However, after calling <p:defineObjects /> in a JSP page in IDEA 6.0 Beta, IDEA underlines all calls to renderRequest, etc. as errors.

However in other taglibs such as the displaytag's table tag, IDEA recognizes all the variables that the tag creates.

Is this (recognition of variables created by calling a JSP custom tag in request, page, and other scopes) a feature that is going to be supported in the IDEA 6.0 final release? If so, can someone confirm this bug?

BTW, I'm using Liferay 4.0's taglib DTD and my web.xml looks like this:


    Human Resource Portlet
    
        http://java.sun.com/portlet
        /WEB-INF/tld/liferay-portlet.tld
    

]]>


Here's the JSP page in which the aformentioned portlet objects are not recognized:




]]>


Regards,
Behi

2 comments
Comment actions Permalink

Hi,
Implicit objects are created from TagExtraInfo referenced in TLD file.
So it is likely your tld description does not reference TagExraInfo for
'defineObject' tag or the TEI class is not in the class path.

Behrang Saeedzadeh wrote:

Hi,

Calling the JSR-168's <p:defineObjects /> tag creates a few implicit objects such as renderRequest, actionRequest, and portletConfig that can be used to do different portlet related activities.

However, after calling <p:defineObjects /> in a JSP page in IDEA 6.0 Beta, IDEA underlines all calls to renderRequest, etc. as errors.

However in other taglibs such as the displaytag's table tag, IDEA recognizes all the variables that the tag creates.

Is this (recognition of variables created by calling a JSP custom tag in request, page, and other scopes) a feature that is going to be supported in the IDEA 6.0 final release? If so, can someone confirm this bug?

BTW, I'm using Liferay 4.0's taglib DTD and my web.xml looks like this:

 
> 
> 
>     Human Resource Portlet
>     
>         http://java.sun.com/portlet
>         /WEB-INF/tld/liferay-portlet.tld
>     
> 
> ]]>


Here's the JSP page in which the aformentioned portlet objects are not recognized:

 
> 
> 
> 
>    renderRequest.
> %>
> ]]>


Regards,
Behi



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.