留言板

Multiple pages in single portlet- Page Navigation

Priyanka Kolee,修改在11 年前。

Multiple pages in single portlet- Page Navigation

New Member 帖子: 4 加入日期: 12-12-31 最近的帖子
I have created a Liferay Porject with Vaadin, in init() have some label. Want to add a button so as to move to another page(created via Vaadin composite)
I have 4 pages in my portlet, how can I navigate to new page in vaadin. Using Liferay Portal to deploy it.

My aim is to create a multipage portlet and move back and forth amongst pages maintaining the state.
Please guide.

-Priyanka
thumbnail
Rewati Raman,修改在11 年前。

RE: Multiple pages in single portlet- Page Navigation

Junior Member 帖子: 97 加入日期: 12-2-24 最近的帖子
Hi Priyanka

I tried to create portlet using vaadin but i was not successful.
If possible give me steps how to create Vaadin portlet and if possible give me smaple vaadin portlet.

Thanks & Regards,
Rewati Raman
Priyanka Kolee,修改在11 年前。

RE: Multiple pages in single portlet- Page Navigation

New Member 帖子: 4 加入日期: 12-12-31 最近的帖子
Follow the steps in http://www.packtpub.com/article/vaadin-portlets-liferay-user-interface-development.
https://vaadin.com/book/-/page/intro.walkthrough.html will also help.
thumbnail
David H Nebinger,修改在11 年前。

RE: Multiple pages in single portlet- Page Navigation (答复)

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Vaadin doesn't really use a concept of a 'page'. Instead, they use components, and you control which components are displayed.

To switch 'pages', you're basically changing the root component (usually a layout). If you build composite components, it's pretty easy to swap one out for another.
Priyanka Kolee,修改在11 年前。

RE: Multiple pages in single portlet- Page Navigation

New Member 帖子: 4 加入日期: 12-12-31 最近的帖子
Thanks David.
I have created n layouts for n pages and setting the content of window to nth layout to display nth page.

Another question, I submitted my form on button click. I wish to do this AJAX way, without submitting the whole page. How to do this?
thumbnail
David H Nebinger,修改在11 年前。

RE: Multiple pages in single portlet- Page Navigation

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
If you're using Vaadin, then it automatically is submitted by ajax; that's the nature of vaadin.

Note that with the upcoming release of vaadin 7 there's a new navigation framework which may address having to change the content on the main page. Waiting for the final vaadin 7 (w/ tested liferay support) before I dive into that pool, though, so at this point all I have is general direction knowledge.