组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
lina kavvadia
Netbeans JSF portlet
2013年9月21日 下午2:54
答复

lina kavvadia

等级: New Member

帖子: 2

加入日期: 2013年9月17日

最近的帖子

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 :

1
2        <h:form>
3            <h:inputText id="inputText" value="#{user.name}" />
4            <h:commandButton id="submit" value="Submit" action="home" />
5        </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?
Juan Gonzalez
RE: Netbeans JSF portlet
2013年9月22日 上午12:28
答复

Juan Gonzalez

LIFERAY STAFF

等级: Liferay Legend

帖子: 1852

加入日期: 2008年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