フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Mazhar Alam
Adding rating functionality to message boards -threads
2013/01/03 4:04
答え

Mazhar Alam

ランク: Regular Member

投稿: 188

参加年月日: 2011/11/25

最近の投稿

Hi all,
Im trying to add rating feature using-

<liferay-ui:ratings
className="<%= MBMessage.class.getName() %>"
classPK="<%= message.getMessageId() %>"
type="stars"
/>

But when i rate and suppose i gave 4 rating(stars) to any thread post..An error comes--

com.liferay.portlet.ratings.EntryScoreException
at com.liferay.portlet.ratings.service.impl.RatingsEntryLocalServiceImpl.validate(RatingsEntryLocalServiceImpl.java:266)
at com.liferay.portlet.ratings.service.impl.RatingsEntryLocalServiceImpl.updateEntry(RatingsEntryLocalServiceImpl.java:151)


Any ideas how to resolve this...
Hitoshi Ozawa
RE: Adding rating functionality to message boards -threads
2013/01/06 14:59
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7952

参加年月日: 2010/03/23

最近の投稿

If you look at the ratingsentry and ratingstats table (or related definition in service.xml), it seems you wont be able to use liferay's rating in message board posts.
Mazhar Alam
RE: Adding rating functionality to message boards -threads
2013/04/12 3:47
答え

Mazhar Alam

ランク: Regular Member

投稿: 188

参加年月日: 2011/11/25

最近の投稿

I checked my portal source, which wasn't updated one..so i was not able to resolve..now i ' ve resolved the issue..Thanks anyway for you help...:-)
Vitaliy Koshelenko
RE: Adding rating functionality to message boards -threads
2015/03/26 10:37
答え

Vitaliy Koshelenko

ランク: Regular Member

投稿: 240

参加年月日: 2011/03/25

最近の投稿

Add the following properties:

1ratings.max.score[com.liferay.portlet.messageboards.model.MBDiscussion]=5
2ratings.min.score[com.liferay.portlet.messageboards.model.MBDiscussion]=1
3
4ratings.max.score[com.liferay.portlet.messageboards.model.MBMessage]=5
5ratings.min.score[com.liferay.portlet.messageboards.model.MBMessage]=1