Forums de discussion

How to add new custom field in User Display Tag ?

thumbnail
Gaurang Sheladia, modifié il y a 14 années.

How to add new custom field in User Display Tag ?

Regular Member Publications: 159 Date d'inscription: 15/02/09 Publications récentes
Hi All,

I want to add one more filed in user "liferay-ui:user-display" tag library. So anyone has any idea i have tried through code but i got some error like

"Unable to find setter method for attribute: jobTitle"

Please share your thoughts.

Thanks in advance.

Thanks,
Gaurang
thumbnail
KK rajput, modifié il y a 14 années.

RE: How to add new custom field in User Display Tag ?

Expert Publications: 266 Date d'inscription: 10/04/08 Publications récentes
Hi Gaurav ,
you can easily do it by replicating tag lib into your environment. In your portal-src check file under util-taglib/src/com/liferay/taglib/ui/UserDisplayTag.java for the java src of this tag-lib.
Thanks
KK
thumbnail
Gaurang Sheladia, modifié il y a 14 années.

RE: How to add new custom field in User Display Tag ?

Regular Member Publications: 159 Date d'inscription: 15/02/09 Publications récentes
Hi KK,

I have already tried to put in the this class with my own fields also made entry that field into the tld file but error shows like for my custom field there is no setter method.

Would you please share your thoughts.

Thanks for your reply.

Thanks,
Gaurang
thumbnail
KK rajput, modifié il y a 14 années.

RE: How to add new custom field in User Display Tag ?

Expert Publications: 266 Date d'inscription: 10/04/08 Publications récentes
Hi Gaurang,
I am not clear what exactly you want , as per my understanding what you want is to show job title using tag-lib . In that case no need to do any thing in Java code only u need to change start.jsp in that u obtain conatct object corresponding to user and display the title.
Hope I am clear in my thoughts
Smile85 Always, modifié il y a 13 années.

RE: How to add new custom field in User Display Tag ?

Regular Member Publications: 160 Date d'inscription: 16/12/10 Publications récentes
can you please throw some more light on the same.

I also want to add a search for job title. get/set method for job title is not there in displayterms.

Can you help me in achieving this?

I am using a hook on top of liferay directory?


Smile