Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Karthik V S
Radio button selection in inbuilt portlet of create_account.jsp
September 26, 2012 2:49 AM
Answer

Karthik V S

Rank: Regular Member

Posts: 100

Join Date: December 21, 2011

Recent Posts

hi

I want to have radio button selection in create_account.jsp. When we select one option of radio button then a <div> should be displayed and when we select other option then <div> should not be displayed.

I ahve tried many options but not getting it in Liferay.

I am using Liferay 6.1 with MySQL database in Ubuntu operating system.

Thanks in advance.
Harish Kumar
RE: Radio button selection in inbuilt portlet of create_account.jsp
September 26, 2012 3:25 AM
Answer

Harish Kumar

Rank: Expert

Posts: 336

Join Date: July 31, 2010

Recent Posts

Hi Karthik

You can implement this using custom jsp hook for create_account.jsp
Karthik V S
RE: Radio button selection in inbuilt portlet of create_account.jsp
October 8, 2012 6:48 AM
Answer

Karthik V S

Rank: Regular Member

Posts: 100

Join Date: December 21, 2011

Recent Posts

Hi

Can u brief it please. I have used radio button selection, but it is not working. It is not able to do action based upon radio button selection. Only in custom portlet it is working but not in inbuilt portlet of liferay hook.
Bart Simpson
RE: Radio button selection in inbuilt portlet of create_account.jsp
October 8, 2012 9:31 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

What kind of error are you getting, could you provide the stacktrace / you jsp code that doesn't seem to work?
Karthik V S
RE: Radio button selection in inbuilt portlet of create_account.jsp
October 9, 2012 2:49 AM
Answer

Karthik V S

Rank: Regular Member

Posts: 100

Join Date: December 21, 2011

Recent Posts

Hi

I am getting error as follows:

<liferay-ui:custom-attribute
className="<%= User.class.getName() %>"
classPK="<%= 0 %>"
editable="<%= true %>"
label="<%= true %>"
name="Usertype" onClick="eventCheck()"/>
ERROR:->Attribute onClick invalid for tag custom-attribute according to TLD

When I put radio button, then we will get the above error when we click on radio button.

Thanks in Advance.