How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Paolo Di Tommaso
Dear Wicket gurus, Suppose I have two Wicket page, let's say page A and B, with the following simple navigation rule A -- B using something like A. setResponsePage( new B() ) At compiles time A know B , but B does not know A. It there a way to get - at runtime - from page B the reference to

Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Al Maw
Why do you want to avoid this? If you're going to be using the previous page in your new page (for example, to provide a link back to it) then you need a reference to it. You may as well pass this in the constructor. Alastair Paolo Di Tommaso wrote: Yes, but I would to avoid this,

Re: Feedback is not dispayled in ajax submit

2007-08-03 Thread Martijn Dashorst
and not forget to call feedback.setOutputMarkupId(true) On 8/3/07, Damian Mendez Romera [EMAIL PROTECTED] wrote: You must override the onError method and add a target.addComponent(feedback) :) Gohan wrote: I cannot seem to get the Feedback panel to be displayed on a Form submit. I have

DateField with a Calendar

2007-08-03 Thread Federico Fanton
Hi everyone! I just migrated to 1.3.0-beta2 from 1.2.6, and I'm trying to replace DatePicker's with DateField's, but I'm having a problem because the backbean of the CompoundPropertyModel of the containing form uses a Calendar field, not a Date one, so I'm receiving a conversion exception.. I

Opening ModalWindows

2007-08-03 Thread Michael Day
Users are able to open multiple ModalWindows by clicking a link more than once. To prevent this, the mask should be applied in the link's onclick. What's the easiest way for me to achieve that? Ideally, the entire ModalWindow should open before the server call. Then the server call

Re: Obfuscating URLs in 1.3 - Can it be done?

2007-08-03 Thread Doug Leeper
Thanks for the tip...learn something new every day. BTW...the doc is has been updated. -- View this message in context: http://www.nabble.com/Obfuscating-URLs-in-1.3---Can-it-be-done--tf4208915.html#a11985633 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Feedback is not dispayled in ajax submit

2007-08-03 Thread Damian Mendez Romera
You must override the onError method and add a target.addComponent(feedback) :) Gohan wrote: I cannot seem to get the Feedback panel to be displayed on a Form submit. I have a custom form component that extends Form to which I'm adding an AjaxSubmitButton using: add(new

Re: DropDown within ModalWindow does not work in Camino

2007-08-03 Thread Matej Knopp
In that case it's quite possible that it is camino's fault. Maybe the dropdowns just don't work if they are placed on something with position:absolute/fixed ? -Matej On 8/3/07, Michael Day [EMAIL PROTECTED] wrote: I am cross-posting this on the new list. I also found that Yahoo Mail has a

Re: Dynamically adding tree nodes upon selection

2007-08-03 Thread James McLaughlin
Hi Doug, First I would make sure your TreeNode implementation creates children lazily. You probably should only create children when children() is actually called and provide logic for isLeaf and getChildCount() that don't require creating the children. You can create the initial state for the

Re: DropDown within ModalWindow does not work in Camino

2007-08-03 Thread Michael Day
Yep, Camino is probably at fault. I will just use Safari instead, but I did want to document the problem just in case a workaround exists. On Aug 3, 2007, at 11:12 AM, Matej Knopp wrote: In that case it's quite possible that it is camino's fault. Maybe the dropdowns just don't work if they

slf4j Logger not serializable?

2007-08-03 Thread Peter Thomas
Hi, Seeing that Wicket depends on SLF4J got me interested - so I just tried to switch to it from commons-logging. My pages / panels extend from a base class that holds a org.slf4j.Logger instance. But now I get a whole lot of serialization problems in the log: = 2007-08-03

Re: slf4j Logger not serializable?

2007-08-03 Thread Al Maw
Peter Thomas wrote: Seeing that Wicket depends on SLF4J got me interested - so I just tried to switch to it from commons-logging. My pages / panels extend from a base class that holds a org.slf4j.Logger instance. But now I get a whole lot of serialization problems in the log: [...] Make your

Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Al Maw
Fabio Fioretti wrote: On 8/3/07, Al Maw [EMAIL PROTECTED] wrote: If you're going to be using the previous page in your new page (for example, to provide a link back to it) then you need a reference to it. You may as well pass this in the constructor. But is it the only way to do this really?

DateValidator message data customisation

2007-08-03 Thread Mael Sicsic
Hi, I have 2 problems with DateValidator' error messages. I understand how to configure the text message for validation error (eg : xxx must be between {min} and {max}), but my problems are with the value of dates minimum and maximum, that are allways displayed in the EN locale style and are

Re: slf4j Logger not serializable?

2007-08-03 Thread Peter Thomas
On 8/3/07, Al Maw [EMAIL PROTECTED] wrote: Peter Thomas wrote: Seeing that Wicket depends on SLF4J got me interested - so I just tried to switch to it from commons-logging. My pages / panels extend from a base class that holds a org.slf4j.Logger instance. But now I get a whole lot of

Re: DateField with a Calendar

2007-08-03 Thread Gerolf Seitz
a quick workaround, although maybe not a proper solution would be the following: ... // somewhere in constructor form.add(new DateField(myId, new PropertyModel(this, calendarDate))); ... } private void setCalendarDate(Date date) { myCalendar.setTime(date); } private Date getCalendarDate() {

Re: Opening ModalWindows

2007-08-03 Thread Michael Day
I just updated to 1.3 to test. Same problem persists. On Aug 3, 2007, at 11:15 AM, Matej Knopp wrote: This should be already fixed in current 1.3. -Mate On 8/3/07, Michael Day [EMAIL PROTECTED] wrote: Users are able to open multiple ModalWindows by clicking a link more than once. To

Re: Is this even possible...?

2007-08-03 Thread Igor Vaynberg
this is pretty simple, but there are a few things to consider a) the obvious: create a form and put the pageable listview into it. instead of adding labels add textfields for each row. b) call setreuseitems(true) on the pageable listview c) override links in the navigator with submit links i

Re: Link on one frame modifying component on another

2007-08-03 Thread Matej Knopp
Actually, you are overcomplicated things a bit i guess. For the top frame, you don't need wicket at all, you just put there regular link with javascript in onclick handler. That will invoke parent.nav.clickNextLink(), which will in turn invoke the onclick handler of wicket component (this is just

Re: wicket-event.js returning unreadable

2007-08-03 Thread hillj2
I'm still having trouble getting wicket-event.js to return anything but junk. Even though I thought it might have something to do with compression, I doubt that now, because I have my homegrown compression filter turned off. Does anyone know what this error means: DEBUG 2007-08-03 15:42:34,452

Re: wicket-event.js returning unreadable

2007-08-03 Thread Matej Knopp
Well, oracle app server doesn't have a good reputation exactly for messing the output. Try disabling the compression of wicket resources completely, Application.getResourceSettings.setDisableGZipCompression(true). -Matej On 8/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Seems like Oracle

Re: ListView + AjaxEditableLabel + move down and move up

2007-08-03 Thread Gerolf Seitz
maybe this is something for you: at http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView what you could also do is the following: + add two ajaxbuttons up and down (or images) + change the position of the row-data in the backing list in the onSubmit method of the

Re: ListView + AjaxEditableLabel + move down and move up

2007-08-03 Thread Gerolf Seitz
if the last suggestion is too costly (rendering the whole listview), you could just change the order of the backing list without redrawing it and add some javascript to the requesttarget (target.appendjavascript) which does the dom manipulation... On 8/4/07, Gerolf Seitz [EMAIL PROTECTED] wrote: