Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Narmada V
transfer one page content to another page
11 de Junho de 2012 04:54
Resposta

Narmada V

Ranking: Junior Member

Mensagens: 37

Data de entrada: 13 de Maio de 2012

Mensagens recentes

Hi all,

I have a form in one page of liferay. On clicking submit, i want the data entered by the user to be displayed in another page.

Can anyone tell me how this can be done without using java coding. Specifically, i want the logic to be implemented from the liferay portal itselt instead of doing any code changes in the files existing.

Can this be possible using javascript option provided in the page? If yes, how can it be implemented ?

Can anyone please help me on this?
Roderick Van den Heuvel
RE: transfer one page content to another page
11 de Junho de 2012 07:02
Resposta

Roderick Van den Heuvel

Ranking: New Member

Mensagens: 2

Data de entrada: 11 de Junho de 2012

Mensagens recentes

Hi Narmada,

Please provide more details. What is this one page form you use to submit the data? Is it a liferay portlet, like the Web Form, or Web Content Display?

I'm also not sure what you're trying to accomplish. Could you describe the use case in further detail? Is it only one web content, which you plan to update frequently, or are there more web contents that share a common purpose?
Narmada V
RE: transfer one page content to another page
11 de Junho de 2012 21:16
Resposta

Narmada V

Ranking: Junior Member

Mensagens: 37

Data de entrada: 13 de Maio de 2012

Mensagens recentes

Hi Heuvel,

I am using Web content display portlet to display the content on the page. I have an Login form in first page. When the user fills the login details and click submit, i want to display a message "Welcome (username)" where the username is the Login id given while logging in. i.e., i want to capture the data entered in one page and display them on the other page.
Can you please tell me how can this be achieved.
Roderick Van den Heuvel
RE: transfer one page content to another page
12 de Junho de 2012 02:33
Resposta

Roderick Van den Heuvel

Ranking: New Member

Mensagens: 2

Data de entrada: 11 de Junho de 2012

Mensagens recentes

Specifically for the welcome message after logging in, there are solutions, like the ones discussed in this thread :

http://www.liferay.com/community/forums/-/message_boards/message/11019492

The web content display portlet has no shared functionality with the Login portlet (that I know of), so I'm not sure you should try to accomplish your use case with the Web Content Display portlet ... Unless, you really want to try to display a welcome message on a seperate page of your choosing. In that case you might have to get familiar with Web Content and Templates, with probably some use of Velocity or Freemarker. There are countless links about this, so I would kindly advise you to look it up ... Knowing about this would enable you to make your content somewhat dynamic.

Although it's not necessary to use java coding, I would recommend you to learn as much as you can about the portlets already included, because just configuring them could already fulfill the best part of your use case.

I'm still not sure what direction you're willing to take, but I hope this bit of information helps you decide,

Best regards,
Roderick.
Narmada V
RE: transfer one page content to another page
12 de Junho de 2012 03:02
Resposta

Narmada V

Ranking: Junior Member

Mensagens: 37

Data de entrada: 13 de Maio de 2012

Mensagens recentes

hi,

i think you didnot get what i am trying to do. Please have a look at the screenshots.

In the result page, i am displaying "welcome". Instead i want to display it as "welcome Test". Can you tell me how this can be done
Anexo

Anexo

Anexos: loginpage.JPG (18,5k), resultpage.JPG (14,1k)
Roderick Van den Heuvel
RE: transfer one page content to another page
12 de Junho de 2012 06:04
Resposta

Roderick Van den Heuvel

Ranking: New Member

Mensagens: 7

Data de entrada: 21 de Março de 2012

Mensagens recentes

Hi Narmada,

Sorry, but your screenshots don't tell me enough to see what you're actually doing. When signed in, you should turn on 'Edit Controls', located in the doc-bar. That tells us at least what portlets you are displaying.

If its just the standard sign-in portlet, then I suggest you follow the instructions provided in the link I gave you in the previous post.

Best regards,
Roderick.
Mohanapriya v
RE: transfer one page content to another page
18 de Junho de 2012 00:04
Resposta

Mohanapriya v

Ranking: New Member

Mensagens: 1

Data de entrada: 17 de Junho de 2012

Mensagens recentes

Narmada V:
hi,

i think you didnot get what i am trying to do. Please have a look at the screenshots.

In the result page, i am displaying "welcome". Instead i want to display it as "welcome Test". Can you tell me how this can be done



Hi Narmada,

Have u found the solution for this issue.if so pls let me know.

Thanks in advance.
Muzakir Khan
RE: transfer one page content to another page
18 de Junho de 2012 00:49
Resposta

Muzakir Khan

Ranking: Regular Member

Mensagens: 112

Data de entrada: 14 de Março de 2012

Mensagens recentes

Hi Narmada.

I hope so, your task is whenever you signin as any user say "test", after signin you need to get a message as Welcome "test" in other page, were test is the user name. Assuming this is your requirement let me give the solution for this.

For this, you are already having an inbuilt "signin portlet". Just goto Add option and type "signin" in search option, and then just drop it in the page where you need to display it. In your case you have to just drag and drop this inbuilt portlet in your "testpage".. After that goto control panel -> Portal Settings, here you will find the option called Default landing Page, in this you give the URL path of your "testpage", then save it. By this once you login you will be automatically landing into testpage along with signin portlet displaying as "you are signed in as Test", now if you want to change the message from "you are signed in as Test: to "Welcome Test" you need to just customize the inbuilt signin portlet.