This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
1. Install NB IDE 6.1. 2. Install Portal Pack 2.0. 3. Install GlassFish V2 and Open Portal Portlet Container 2.0. 4. Add Portlet Container to NB's server list. 5. Create a new "Web Application" project called "HelloWorld": - Server: Portlet Container - Select Portlet Support - Create a portlet with JSPs: * Package: com.test * Portlet Class Name: HelloWorld * Portlet Name: HelloWorld 6. Open HelloWorld / Web Pages / WEB-INF / jsp / HelloWorld_view.jsp and remove the comments like this: 1: <%@page contentType="text/html"%> 2: <%@page pageEncoding="UTF-8"%> 3: 4: <%@ page import="javax.portlet.*"%> 5: <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%> 6: 7: <portlet:defineObjects /> 8: <%PortletPreferences prefs = renderRequest.getPreferences();%> 9: 10: <b> 11: HelloWorld - VIEW MODE 12: </b> 7. Now the IDE displays the error "Cannot find symbol renderRequest" for the line 8.
Created attachment 63395 [details] Screenshot
*** This issue has been marked as a duplicate of 121651 ***
Actually, this is not a duplicate of the bug #121651, which has something to do with finding taglibs.
Created attachment 63408 [details] Screenshot: NB handles request as a HttpServletRequest
The problem seems to be portlet version specific: - Portlet 1.0 => fails - Portlet 2.0 => ok
Hmm... this fails also for 2.0.
Version: NetBeans IDE Dev 200810181401 JDK: 1.6 update 7 OS: Windows XP Portal Pack: 3.06 (I think it was updated to this version, I installed 3.0 M1) I can not compile my portlet jsps because it still does not completely recognize renderRequest. If I put my currsor after the PortletPreferences prefs = renderRequest. and press Ctrl+Space it throws an exception. Also PortletURL headerURL = renderRequest.createRenderURL(); It is saying that the renderResponse is a SimplifiedJSPServlet.s
I checked with my local installation and it's working fine. The NB build with which I am trying Product Version = NetBeans IDE 6.5 RC1 (Build 200810171318) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05; Sun Microsystems Inc. Portal Pack 3.0 trunk build. I have attached the screenshot for the same. I still need to check it against the mentioned NB build in the previous comment. Thanks
Created attachment 72342 [details] RenderRequest
This is fixed on the NB 6.5 RC1 and PP 3.0 M2.