Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Mazhar Alam
Adding rating functionality to message boards -threads
3 gennaio 2013 4.04
Risposta

Mazhar Alam

Punteggio: Regular Member

Messaggi: 188

Data di Iscrizione: 25 novembre 2011

Messaggi recenti

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
6 gennaio 2013 14.59
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
12 aprile 2013 3.47
Risposta

Mazhar Alam

Punteggio: Regular Member

Messaggi: 188

Data di Iscrizione: 25 novembre 2011

Messaggi recenti

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...:-)