Fórumok

Nyitólap » Liferay Portal » English » 3. Development

Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
Charu Babbar
Login jsp
2011. november 8. 9:27
Válasz

Charu Babbar

Rangsorolás: Regular Member

Hozzászólások: 148

Csatlakozás dátuma: 2011. szeptember 13.

Legújabb hozzászólások

Hi,


I wants to add some functionality in login.jsp.

What can i prefer ext or hook for adding some functionality.and why?

Thanks,
With Regards,
Charu
Daniel Wilmes
RE: Login jsp
2011. november 8. 9:46
Válasz

Daniel Wilmes

Rangsorolás: Regular Member

Hozzászólások: 158

Csatlakozás dátuma: 2011. május 23.

Legújabb hozzászólások

Hook if you are just going to create a new field. There is a hack that will allow you to validate a field and throw an exception if someone put invalid data in a field so you don't have to create an ext environment.

Object obj = null;
try {
obj = ObjectLocalServiceUtil.validateFieldValue(someValue);
} catch (NoSuchObjException nsce) {
RequiredFieldException rfe = new RequiredFieldException("invalidInput", "value-not-found-error");
throw rfe;
}
//Add new object after validation
Gnaniyar Zubair
RE: Login jsp
2011. november 8. 11:15
Válasz

Gnaniyar Zubair

Rangsorolás: Liferay Master

Hozzászólások: 558

Csatlakozás dátuma: 2007. december 19.

Legújabb hozzászólások

Charu Babbar:
Hi,


I wants to add some functionality in login.jsp.

What can i prefer ext or hook for adding some functionality.and why?

Thanks,
With Regards,
Charu



Hi Charu,

Intention of Ext plugin is to customize the huge changes of Liferay portal.

Hooks is for minor changes like Jsps ,properties , services and events.. also Action files cannot be changed through hooks.

Later version(6.1), Liferay has implemented to customize the hooks to change Action file too.

HTH

- Gnaniyar Zubair
Charu Babbar
RE: Login jsp
2011. november 9. 1:23
Válasz

Charu Babbar

Rangsorolás: Regular Member

Hozzászólások: 148

Csatlakozás dátuma: 2011. szeptember 13.

Legújabb hozzászólások

Thanks Gnaniyar Zubair .