Re: Setting the RadioChoice with selected value -

2010-07-12 Thread sander v F
in this case 'autoGenerateSubjectKey' should contain "Yes" or "No" to be selected. You could change the property type of 'autoGenerateSubjectKey' from Boolean to String, but i think it is better to change the type of the choices to Boolean: List list = new ArrayList(); list.add(Boolean.TRUE); li

Re: Wicket wicket-contrib-tinymce populate Styles drop-down

2010-07-09 Thread sander v F
I think you could do that like this: TinyMCESettings settings = new TinyMCESettings(); settings.register(new Plugin("style_formats") { @Override protected void definePluginSettings(StringBuffer buffer) { define(buffer, "style_formats", "[" + "{title : 'Bold text', inline : 'b'}," + "{title : 'Red

Re: Regarding datepicker popup when inputfield pressed

2009-08-21 Thread sander v F
There is a JQuery plugin capable of doing this, see: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerClickInput.html You should have a look at WiQuery ( http://code.google.com/p/wiquery/ ), a Wicket JQuery component. I don't know if they already implemented this datepicker, bu

Re: How to show ModalWindow in menuě onClick event?

2009-07-13 Thread sander v F
I don't know YUI menu2, but if it is an AjaxClick, you could use AjaxRequestTarget.get() to get the current AjaxRequestTarget. 2009/7/13 Petr Fejfar > Hi all, > > originally I had a row of AjaxLinks and on some clicks > I opened a modal window by calling: > > dialog.show(target); > > Late

Re: AjaxSubmitLink

2009-06-19 Thread sander v F
Like the error says: "Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update." That would be the component with id: 'verifyPanelWmc'. Your code: final WebMarkupContainer parent = new WebMarkupContainer("verifyPanelWmc"); //pare

Re: checking for required fields

2009-06-04 Thread sander v F
you could use a visitor: form.visitChildren(new Component.IVisitor() { public Object component(Component component) { if (component instanceof FormComponent) { FormComponent form

Re: lazily loaded table structure?

2009-05-18 Thread sander v F
for client-side ordering of the items you should take a look at JQuery. There is a tablesorter plugin (http://tablesorter.com/docs/) that looks easy and helpful. 2009/5/15 Jan Torben Heuer > Hi, > > I want to display a table structure, however the data retrieving takes a > certain time. Curre

Re: tinymce ajax submit

2008-08-11 Thread sander v F
For a project I also needed a AjaxSubmitLink to submit the tinyMce data, so i've searched for a solution and found it at http://dwairi.blogspot.com/2006/12/tinymce-ajax.html The solution is to add "tinyMCE.triggerSave(true,true);" to the onclick of the ajax button/link before the wicket code is cal

Re: modify an arbitrary dom element

2008-08-07 Thread sander v F
If you want to do in serverside (with wicked), you should add a wicket tag to the 'li'. Home the java/wicket code should look something like: WebMarkupContainer listItem=new WebMarkupContainer("listItem"); listItem.add(new AttributeModifier("class", new Model("notSelecte

Re: Notification on session destroyed?

2008-04-16 Thread sander v F
(se.getSession().getId()); if(object != null) { // Do what you want here with the object } } public static void registerPojo(String sessionId,Object object) { pojos.put(sessionId,object); } } 2008/4/16, sander v F <[EMAIL PROTECTED]>: &

Re: Notification on session destroyed?

2008-04-16 Thread sander v F
You could also use a HttpSessionListener for knowing when a session is destroyed. The problem is indeed that you can't get the attributes when the session is invalidated, but you can get the sessionId. So you could use a Map to register the session id with the Pojo you would like to update. So when

Re: AJAX mouseover popup

2008-02-07 Thread sander v F
WicketStuff-Dojo (tooltips) http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.tooltip.TooltipTestPage I havent worked with WicketStuff-Dojo yet, so I can't help you with it, but i hope this is what you're looking for. 2008/2/6, Niels Bo <[EMAIL PR