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.

Bug 138162 - Cannot find symbol renderRequest
Summary: Cannot find symbol renderRequest
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Portalpack (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Satyaranjan D
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 23:23 UTC by haba7
Modified: 2009-03-17 07:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (48.69 KB, image/png)
2008-06-25 08:50 UTC, haba7
Details
Screenshot: NB handles request as a HttpServletRequest (87.51 KB, image/png)
2008-06-25 10:47 UTC, haba7
Details
RenderRequest (105.62 KB, image/png)
2008-10-21 07:04 UTC, Satyaranjan D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description haba7 2008-06-24 23:23:06 UTC
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.
Comment 1 haba7 2008-06-25 08:50:47 UTC
Created attachment 63395 [details]
Screenshot
Comment 2 haba7 2008-06-25 09:11:26 UTC

*** This issue has been marked as a duplicate of 121651 ***
Comment 3 haba7 2008-06-25 09:21:29 UTC
Actually, this is not a duplicate of the bug #121651, which has something to do with finding taglibs.
Comment 4 haba7 2008-06-25 10:47:33 UTC
Created attachment 63408 [details]
Screenshot: NB handles request as a HttpServletRequest
Comment 5 haba7 2008-06-25 13:10:01 UTC
The problem seems to be portlet version specific:
- Portlet 1.0 => fails
- Portlet 2.0 => ok
Comment 6 haba7 2008-06-25 13:47:11 UTC
Hmm... this fails also for 2.0.
Comment 7 thepriz 2008-10-21 00:48:06 UTC
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
Comment 8 Satyaranjan D 2008-10-21 07:03:37 UTC
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
Comment 9 Satyaranjan D 2008-10-21 07:04:57 UTC
Created attachment 72342 [details]
RenderRequest
Comment 10 Satyaranjan D 2008-11-13 07:16:13 UTC
This is fixed on the NB 6.5 RC1 and PP 3.0 M2.