Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Priyanka Kolee
Multiple pages in single portlet- Page Navigation
January 15, 2013 12:45 AM
Answer

Priyanka Kolee

Rank: New Member

Posts: 4

Join Date: December 31, 2012

Recent Posts

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
Rewati Raman
RE: Multiple pages in single portlet- Page Navigation
January 15, 2013 1:10 AM
Answer

Rewati Raman

Rank: Junior Member

Posts: 97

Join Date: February 24, 2012

Recent Posts

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
RE: Multiple pages in single portlet- Page Navigation
January 15, 2013 1:20 AM
Answer

Priyanka Kolee

Rank: New Member

Posts: 4

Join Date: December 31, 2012

Recent Posts

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.
David H Nebinger
RE: Multiple pages in single portlet- Page Navigation
January 15, 2013 5:18 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11793

Join Date: September 1, 2006

Recent Posts

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
RE: Multiple pages in single portlet- Page Navigation
January 17, 2013 9:21 PM
Answer

Priyanka Kolee

Rank: New Member

Posts: 4

Join Date: December 31, 2012

Recent Posts

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?
David H Nebinger
RE: Multiple pages in single portlet- Page Navigation
January 19, 2013 9:16 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11793

Join Date: September 1, 2006

Recent Posts

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.