留言板

Netbeans JSF portlet

lina kavvadia,修改在10 年前。

Netbeans JSF portlet

New Member 帖子: 2 加入日期: 13-9-18 最近的帖子
Hello everyone

I want to build a portlet that uses jsf with netbeans.
I created a project added the portlet and jsf framework.
After it was created I changed the default page to the index.xhtml and i wrote this in it :


        <h:form>
            <h:inputtext id="inputText" value="#{user.name}" />
            <h:commandbutton id="submit" value="Submit" action="home" />
        </h:form>


I have created a managed bean calles User and another JSF page home.xhtml

I then deployed my portlet and it is empty.

I read a post that said i must include liferay specific artifacts but i have no clue what that means exactly.
So what should I do?
thumbnail
Juan Gonzalez,修改在10 年前。

RE: Netbeans JSF portlet

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Just create the portlet using a Maven archetype. Then you should import the project into Netbeans.

Look at step 1 here:

https://www.liferay.com/es/community/wiki/-/wiki/Main/Clustering+JSF+Portlets+on+GlassFish