在Liferay 6.2中,我可以看到以下所有选项基本上都是可折叠的.

我想在我的portlet中列出相同的列表.我的样本数据是
<ul> Header 1
    <li> Sub Header 1</li>
    <li> Sub Header 2</li>
</ul>
<ul> Header 2
    <li> Sub header 1</li>
    <li> Sub header 2</li>
</ul>
任何人都可以发布一个例子或如何实现这一目标?
我正在考虑使用portlet将我们的一个内部应用程序实现为门户,因为它具有许多功能,并非所有用户都需要它们.
我看着Apache protals网站,我看到有两个项目--Jetspeed 2和Pluto.
虽然Jetspeed被描述为门户网站而Pluto被描述为portlet容器,但它也提供了自己的门户网站.它们与它们的功能之间有什么真正的区别?你能推荐哪些我应该开始"玩"吗?
我在Liferay 6中使用了像feed.jspf这样的开箱即用portlet的jsp:
String articleId =null;
HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest));
articleId = httpReq.getParameter("articleId");
无论是在自定义portlet还是在.jsp文件中,它都给出一个空值,但它应该有一个值.
如何将portlet添加到plone搜索或搜索结果页面?使用@@ manage-portlets不起作用(www.mysite.com/search/@@manage-portlets),我得到一个空的搜索结果.我想在那些页面上显示根文件夹的portlet,在我的例子中,搜索列使用整个页面宽度.
我正在使用plone 4.0.1.
我查看了five.grok,发现没有提到Portlets.可以吗?
这是我的第一个Portlet.我没有在servlet中获取值.请看节目.在我的自定义portlet Java类doView()方法中,我展示了一个JSP页面
public void doView(RenderRequest renderRequest, RenderResponse renderResponse)
throws IOException, PortletException {            
    include(viewJSP, renderRequest, renderResponse);
}
在view.jsp页面内部,我引用一个servlet来接收值:
<form action="formServlet" method="post">
    <h1>Please Login</h1>
    Login:    <input type="text" name="login"><br>
    Password: <input type="password" name="password"><br>
    <input type=submit value="Login">
</form>
内部web.xml文件:
<servlet>
    <servlet-name>formServlet</servlet-name>
    <servlet-class>FormServlet</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>formServlet</servlet-name>
    <url-pattern>formServlet</url-pattern>
</servlet-mapping>
在我的servlet里面
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {  
    String name = (String)request.getParameter("login");
    System.out.println("The Name is "+name);    
}
但我不知道为什么没有调用servlet.
是否有可能ServletContext从MyPortlet extends MVCPortletLiferay 获得?我知道SC可以从伴侣JSP获得,但我想知道是否可以从portlet类本身访问这个对象?
编辑
有PortalUtil.getServletContext()方法,但是奇怪,因为它不仅返回SC,而且还接受它.
我正在尝试设置portlet首选项,而不触及portlet.xml.
这是我的portlet:
-myportletclass
-myportletjsp
-myconclass
-myconfjsp
当我点击偏好时,我可以看到confjsp,它会显示我喜欢的表单.并且,当我提交它时,将首选项设置为表单中的值.
但是我没有任何默认值,没有修改portlet.xml.
我应该添加什么?
我看到有些人在配置类的渲染中这样做,但它不起作用.
问候.谢谢.
编辑:我设置我的偏好的方式:
首先,我有一个简单的形式我的conf jsp,基本的,不需要添加它; 然后,我有ConfController:
@Controller
@RequestMapping("EDIT")
public class ConfigurationController {
    @ModelAttribute("validatePref")
    public ValidatePrefForm getValidatePrefForm() {
        ValidatePrefForm form = new ValidatePrefForm();
        return form;
    }
    @ActionMapping(params = "action=validatePref")
    public void processAction(@ModelAttribute("validatePref") ValidatePrefForm form,
            PortletPreferences portletPreferences, ActionResponse response)
            throws Exception {
        String mylink = form.getMylink();
        if (null != mylink && !mylink .equals("")) {
            portletPreferences.setValue("mylink ", mylink );
        }
        portletPreferences.store();
    }
    @RenderMapping
    public String render() throws Exception {
        return "myportletjsp.jsp";
    }
}
然后,在我的portlet中我得到了这个值: …
我想用Eclipse JUNO for Liferay 创建我自己的Portlet .我已经google了很多,但这只是为了让我使用netbeans所以任何人都可以指导我或者给我链接在eclipse中从头开始创建portlet的教程.
我试过以下内容
ADD->新的Liferay项目
然后它没有在liferay中显示我创建的portlet
我已经成功地在我的windows7中安装了liferay,并且我还集成了现成的书籍portlet,但只是创建了我自己的简单的hello world portlet
甚至在我甚至关注此链接http://www.youtube.com/watch?v=-EbyIbMWrCI之前, 但它在管理员帐户中的更新管理器选项中显示我的portlet状态为"UNKNOWN"
我的门户网站中有一个对话框,该对话框打开一个Portlet。当我单击链接并打开对话框时,对话框显示
您没有访问此portlet所需的角色。
但是,如果我在页面上添加相同的portlet,则该portlet会在页面和对话框上打开而没有任何障碍。我在这里想念什么?有人知道吗?
我的代码是:
#set ($profile_url = $portletURLFactory.create($request, "profile_WAR_profileportlet", $getterUtil.getLong($plid), "RENDER_PHASE"))
 $profile_url.setParameter("p_p_state", "exclusive")
<a href="#" id="profile" onclick="openDialog('$profile_url','preferences-dialog',500,500)"> Profile </a> 
window,
        'openDialog', //function name
        function(url, popupID, wd, ht) { // parameters to the function
            var A = AUI();
            popupDialog = new A.Dialog({
                    id: popupID, // popupId passed so that it would be easy to close it through events other than the close button
                    centered: false, // all the different parameters function you can check in the Alloy API
                    draggable: true,
                    resizable: …