You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Altuğ B. Altıntaş" <al...@gmail.com> on 2009/04/10 12:42:23 UTC

Just showing rating results

Hi;
How can i just show rating results of my ratings in the page.

I know RatingPanel component but i need just to show rating in stars (ex :
as an image), i don't want Ajax or clickable component.

When you visit youtube homepage, you see the stars about ratings but they
are not clickable, just image, i want that feature.

Do you know any components in wicket that statfiy this feature.

Thanks.

-- 
Altuğ.

Re: Just showing rating results

Posted by Linda van der Pal <lv...@heritageagenturen.nl>.
It shouldn't be too hard to write one. It would just be a component that 
shows an image then. The html would be something like this:

<html>
<body>
<wicket:panel>
<img wicket:id="rating"/>
</wicket:panel>
</body>
</html>

And the java file would be something like this:

public class RatingPanel extends Panel {
public RatingPanel (final String id) {
super(id);
String imageName;
// get rating
int rating = ...;
imageName = "rating"+rating+".png";
add(new Image("rating", imageName));
}
}

Mind you, I didn't test this or anything and it could be done a whole 
lot prettier.

Regards,
Linda

Altuğ B. Altıntaş wrote:
> Hi;
> How can i just show rating results of my ratings in the page.
>
> I know RatingPanel component but i need just to show rating in stars (ex :
> as an image), i don't want Ajax or clickable component.
>
> When you visit youtube homepage, you see the stars about ratings but they
> are not clickable, just image, i want that feature.
>
> Do you know any components in wicket that statfiy this feature.
>
> Thanks.
>
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.287 / Virus Database: 270.11.51/2052 - Release Date: 04/10/09 06:39:00
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Just showing rating results

Posted by Alex Objelean <al...@yahoo.com>.
Or, you could use jquery rating plugin, take a look here: 
http://www.fyneworks.com/jquery/star-rating/
http://www.fyneworks.com/jquery/star-rating/ 

Alex.


Altuğ B. Altıntaş wrote:
> 
> Hi;
> How can i just show rating results of my ratings in the page.
> 
> I know RatingPanel component but i need just to show rating in stars (ex :
> as an image), i don't want Ajax or clickable component.
> 
> When you visit youtube homepage, you see the stars about ratings but they
> are not clickable, just image, i want that feature.
> 
> Do you know any components in wicket that statfiy this feature.
> 
> Thanks.
> 
> -- 
> Altuğ.
> 
> 

-- 
View this message in context: http://www.nabble.com/Just-showing-rating-results-tp22986194p22987283.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Just showing rating results

Posted by "Altuğ B. Altıntaş" <al...@gmail.com>.
Yes; it worked !
Thanks.

10 Nisan 2009 Cuma 13:52 tarihinde Martin Makundi <
martin.makundi@koodaripalvelut.com> yazdı:

> You could use RatingPanel as it does have the feature isEnabled() =
> !hasVoted.getObject();
>
> This means that a 'voted' element cannot be clicked.
>
> **
> Martin
>
> 2009/4/10 Altuğ B. Altıntaş <al...@gmail.com>:
> > Hi;
> > How can i just show rating results of my ratings in the page.
> >
> > I know RatingPanel component but i need just to show rating in stars (ex
> :
> > as an image), i don't want Ajax or clickable component.
> >
> > When you visit youtube homepage, you see the stars about ratings but they
> > are not clickable, just image, i want that feature.
> >
> > Do you know any components in wicket that statfiy this feature.
> >
> > Thanks.
> >
> > --
> > Altuğ.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Altuğ.

Re: Just showing rating results

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
You could use RatingPanel as it does have the feature isEnabled() =
!hasVoted.getObject();

This means that a 'voted' element cannot be clicked.

**
Martin

2009/4/10 Altuğ B. Altıntaş <al...@gmail.com>:
> Hi;
> How can i just show rating results of my ratings in the page.
>
> I know RatingPanel component but i need just to show rating in stars (ex :
> as an image), i don't want Ajax or clickable component.
>
> When you visit youtube homepage, you see the stars about ratings but they
> are not clickable, just image, i want that feature.
>
> Do you know any components in wicket that statfiy this feature.
>
> Thanks.
>
> --
> Altuğ.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org