Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sajjad Khan
LR-6.1.1 changing layout at runtime
January 21, 2013 4:09 AM
Answer

Sajjad Khan

Rank: New Member

Posts: 12

Join Date: August 4, 2012

Recent Posts

Hi

plz advise me how can i change my layout at runtime in liferay 6.1.1ga2

when i submit my form i want to show the result on different(other) layout.

Regards
Moh'd Sajjad Khan
Kowbathullah Gnaniyar
RE: LR-6.1.1 changing layout at runtime
January 21, 2013 4:32 AM
Answer

Kowbathullah Gnaniyar

Rank: Liferay Master

Posts: 611

Join Date: December 19, 2007

Recent Posts

HI Sajjad,

Would be great if you correct the content clearly coz your query gives confusion..?

what do you mean by Layout..? Do you want to display the results in different page..?

//when i submit my form i want to show the result on different(other) layout.//

while submitting the form, you need to display the results in different portion of the same page..? Am i correct?

if so, you need to create 2 different portlets.
First portlet should contain the Form to add all your details
Second portlet should display the results from database.

and place them in different layout on same page.

HTH

- Gnaniyar Zubair
Sajjad Khan
RE: LR-6.1.1 changing layout at runtime
January 21, 2013 10:15 PM
Answer

Sajjad Khan

Rank: New Member

Posts: 12

Join Date: August 4, 2012

Recent Posts

Thanks zubair bhai,

But I need this query :-
" The result should be on same page but layout only change."
Kowbathullah Gnaniyar
RE: LR-6.1.1 changing layout at runtime
January 23, 2013 3:49 AM
Answer

Kowbathullah Gnaniyar

Rank: Liferay Master

Posts: 611

Join Date: December 19, 2007

Recent Posts

// The result should be on same page but layout only change." //

emoticon while displaying the results you can give maximized mode. why are you changing the layout...?

- Gnaniyar Zubair
Sajjad Khan
RE: LR-6.1.1 changing layout at runtime
January 25, 2013 4:39 AM
Answer

Sajjad Khan

Rank: New Member

Posts: 12

Join Date: August 4, 2012

Recent Posts

Thanks Zubair Bhai & Taha bhai for given me logic.
I will try.
Siby Mathew
RE: LR-6.1.1 changing layout at runtime
January 25, 2013 5:21 AM
Answer

Siby Mathew

Rank: Expert

Posts: 268

Join Date: March 4, 2011

Recent Posts

Hi Sajjad,
I dont know if I understood you correctly.
After submitting the details, if you want to navigate to another jsp in the same portlet, you can use :
1actionResponse.setRenderParameter("jspPage",  yourJspPage);


Hope that helps.

Thanks,
Siby