Re: How to customize RatingPanel markup
You named the panel "rating" in your java but did not define "rating" in your html Sent from my iPhone On Jan 23, 2012, at 12:18 PM, Daniel Watrous wrote: > I've been trying to override the default RatingPanel markup, but I'm > having trouble. I found this: > http://apache-wicket.1842946.n4.nabble.com/How-to-override-RatingPanel-default-CSS-td1873783.html > > I create the subclass: > > public abstract class MovieRatingPanel extends RatingPanel { >public MovieRatingPanel(String id, IModel model, int > numberOfStars, boolean defaultCss) { >super(id, model, numberOfStars, defaultCss); >} > } > > I then change the RatingPanel to MovieRatingPanel in my markup: > >movieItem.add(new MovieRatingPanel ("rating", new > PropertyModel(rating, "rating"), 5, false) { >@Override >public boolean onIsStarActive(int star) { >return rating.isActive(star); >} >@Override >public void onRated(int newRating, > AjaxRequestTarget target) { >movieItem.getModelObject().setRating(newRating); >rating.updateRating(newRating); > >Session session = > HibernateUtil.getSessionFactory().getCurrentSession(); >session.beginTransaction(); >session.update(movieItem.getModelObject()); >session.getTransaction().commit(); > >movieList.detach(); >} >}); > > The markup is > > http://wicket.apache.org";> > > > > > > href="#" wicket:id="link"> > > > > > > I am getting the Exception: > Last cause: The component(s) below failed to render. A common problem > is that you have added a component in code but forgot to reference it > in the markup (thus the component will never be rendered). > > 1. [Component id = rating] > > I'm not sure how to extend this so that I can simply replace the > default markup with my own. Any pointers? > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket webshere 7
Filters work just fine. Did you set com.ibm.ws.webcontainer.invokefilterscompatibility= true In your web containers custom properties? Application servers -> server -> web container settings -> web container -> custom properties Sent from my iPhone On Jan 23, 2012, at 11:23 AM, matteus wrote: > > Yes, my application is running with the filter Wicket Filter. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-websphere-7-tp4310810p4321364.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >
RE: spring 3.1 wicket auth integration
Thanks Moez, I guess my issue is really with my Kerberos spring implementation. I'll have to investigate further. -Original Message- From: Moez BR [mailto:benrhouma.m...@gmail.com] Sent: Wednesday, March 02, 2011 10:41 AM To: users@wicket.apache.org Subject: Re: spring 3.1 wicket auth integration See this link: http://www.dzone.com/links/spring_security_3_and_wicket_14.html Le 2 mars 2011 à 01:05, "Geoff Lancaster" a écrit : > I've seen that wiki but it's for spring 3.0 and wicket 1.3. I need a > solution for spring 3.1 and wicket 1.4+ > > -Original Message- > From: moèz ben rhouma [mailto:benrhouma.m...@gmail.com] > Sent: Tuesday, March 01, 2011 2:04 AM > To: users@wicket.apache.org; wic...@geofflancaster.com > Subject: Re: spring 3.1 wicket auth integration > > https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles. > html > > 2011/2/28 wic...@geofflancaster.com > >> Can anyone point me to a tutorial or example on getting spring 3.x >> setup and working with wicket-auth-roles for an > AuthenticatedWebApplication? >> >> Thanks in advance. >> >> >> mail2web.com – Enhanced email for the mobile individual based on >> Microsoft® Exchange - http://link.mail2web.com/Personal/EnhancedEmail >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: spring 3.1 wicket auth integration
I've seen that wiki but it's for spring 3.0 and wicket 1.3. I need a solution for spring 3.1 and wicket 1.4+ -Original Message- From: moèz ben rhouma [mailto:benrhouma.m...@gmail.com] Sent: Tuesday, March 01, 2011 2:04 AM To: users@wicket.apache.org; wic...@geofflancaster.com Subject: Re: spring 3.1 wicket auth integration https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html 2011/2/28 wic...@geofflancaster.com > Can anyone point me to a tutorial or example on getting spring 3.x > setup and working with wicket-auth-roles for an AuthenticatedWebApplication? > > Thanks in advance. > > > mail2web.com Enhanced email for the mobile individual based on > Microsoft® Exchange - http://link.mail2web.com/Personal/EnhancedEmail > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org