Hi, I misunderstood your question. I was think you are asking about session style.
On Fri, Jul 9, 2010 at 5:30 AM, Peter Miklosko <peter_b...@yahoo.com> wrote: > I'm sort of dubious about your suggestion as I don't see any direct > connection > between this DropDownChoice and TinyMCE editor from wicket-contrib-tinymce. > Would you care to explain little more about integration? > > Peter > > > > > > ________________________________ > From: Pedro Santos <pedros...@gmail.com> > To: users@wicket.apache.org > Sent: Thu, July 8, 2010 5:09:08 PM > Subject: Re: Wicket wicket-contrib-tinymce populate Styles drop-down > > Hi, you can use an DropDownChoice to present the available styles for > your > app, and allow user to select one. > Example: > > public class StyleSelect extends DropDownChoice { > public StyleSelect(String id, List options) { > super(id, options); > setModel(new IModel() { > public Object getObject() { > return getSession().getStyle(); > } > > public void setObject(Object object) { > getSession().setStyle(object == null ? null : object.toString()); > } > > public void detach() {} > }); > } > @Override > protected boolean wantOnSelectionChangedNotifications() { > return true; > } > } > > On Thu, Jul 8, 2010 at 11:53 AM, Peter Miklosko <peter_b...@yahoo.com > >wrote: > > > Can somebody please help me populate drop down menu for Styles? > > Customer decided to use this option and I have difficulties to figure > out > > how > > to do it. > > Even in the wicket-contrib-tinymce examples this is not active. > > > > Peter > > > > > > > > > > > > > -- > Pedro Henrique Oliveira dos Santos > > > > > -- Pedro Henrique Oliveira dos Santos