留言板

LR-6.1.1 changing layout at runtime

Sajjad Khan,修改在11 年前。

LR-6.1.1 changing layout at runtime

New Member 帖子: 12 加入日期: 12-8-4 最近的帖子
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
thumbnail
Gnaniyar Zubair,修改在11 年前。

RE: LR-6.1.1 changing layout at runtime

Liferay Master 帖子: 722 加入日期: 07-12-19 最近的帖子
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,修改在11 年前。

RE: LR-6.1.1 changing layout at runtime

New Member 帖子: 12 加入日期: 12-8-4 最近的帖子
Thanks zubair bhai,

But I need this query :-
" The result should be on same page but layout only change."
thumbnail
Gnaniyar Zubair,修改在11 年前。

RE: LR-6.1.1 changing layout at runtime

Liferay Master 帖子: 722 加入日期: 07-12-19 最近的帖子
// 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,修改在11 年前。

RE: LR-6.1.1 changing layout at runtime

New Member 帖子: 12 加入日期: 12-8-4 最近的帖子
Thanks Zubair Bhai & Taha bhai for given me logic.
I will try.
Siby Mathew,修改在11 年前。

RE: LR-6.1.1 changing layout at runtime

Expert 帖子: 268 加入日期: 11-3-4 最近的帖子
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 :
actionResponse.setRenderParameter("jspPage",  yourJspPage); 


Hope that helps.

Thanks,
Siby