留言板

custom entity as Asset in liferay 6.2

Michele tarantino,修改在10 年前。

custom entity as Asset in liferay 6.2

New Member 帖子: 13 加入日期: 12-2-7 最近的帖子
Hello
I have a problem
I can not see my custom entity as Asset in liferay 6.2
In my view ProgettoRenderFactory that produces Asset does not call AssetRenderer getAssetRenderer
Can anyone tell me how to do
thanks
Michele
thumbnail
meera prince,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
Hi

Ge the following portlet and look into source code .you can find what exactly you asked.

https://github.com/liferay-labs/jukebox-portlet

Regards,
Meera Prince
Michele tarantino,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

New Member 帖子: 13 加入日期: 12-2-7 最近的帖子
Hello
thanks for the reply
I checked the code
I do the same thing that you do, but I did not view the results, it fits into the db shows me the page to add new entries but to submit the form I close the pop-up in the Asset Publisher portlet does not show me anything.
can you tell me some other thing?
thanks
thumbnail
meera prince,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
HI
Got through following developer guide about asset frame work.
https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/asset-framework-liferay-portal-6-2-dev-guide-06-en
i am not sure what happen your side but the thing is when we implement asset framework to entity then for each entry in entity we need to add some entry in assetentry table.
in the jukebox portlet you can see all that.. you try to deploy jukebox portlet and observe the concept.
there we have song ,album so take any one entity and see and also we need to configure asset related implementation classes in liferay-portlet.xml file

Regards,
Meera Prince
Michele tarantino,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

New Member 帖子: 13 加入日期: 12-2-7 最近的帖子
Hello
I also have started from the link of the documentation LIFERAY 6.2.
I am attaching my project so that you can give it a sgardo and tell me where he is the error
thank you very much
Michele
Michele tarantino,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

New Member 帖子: 13 加入日期: 12-2-7 最近的帖子
Hello
you've got to see my portlet?
I have a sense of urgency
thank you very much
thumbnail
meera prince,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
Hi

Observe following line i think its not able to render because of path as for my guess and search how to call jsp pages which are inside WEB-INF directory i think direct path might not work. please search the way how to call jsps inside WEB-INF and this is project private directory.
String path = "/WEB-INF/jsp/asset/"+template+".jsp";

we need to use some specific path pattern to call jsps i think and i am not sure because i know spring but i did not work more on liferay spring extensively.
for test case place one of the jsp page out side WEB-INF directory and test , some thing like docroot/hthm/jsps/asset/some.jsp
String template="some";
String path = "/html/jsps/asset/"+template+".jsp";


Regards,
Meera Prince
Michele tarantino,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

New Member 帖子: 13 加入日期: 12-2-7 最近的帖子
Hello
I have a problem
Let me explain
Using Liferay 6.2
I have created a custom entity with Asset Publisher.
The insertion is done correctly, but when he goes to retrieve the list of ASSET my kind I do not see them does
I printed the result of the query in view_dynamic_list.jspf ago, I noticed that my assets will not be recovered.
Also in my ContestAssetRenderFactory not call AssetRenderer getAssetRenderer
Could someone help me I have a sense of urgency
thanks
Michele
thumbnail
Juan Gonzalez,修改在10 年前。

RE: custom entity as Asset in liferay 6.2

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Michele,

you can get your custom entities (with asset support) using this project:

http://xmlportletfactory.org/

so you don't have to worry about created source code.