Re: onclick AjaxEventBehaviour on feedback messages broken in 1.4?

2009-08-27 Thread Igor Vaynberg
well, its either removing components or an outofmemoryexception. which one do you prefer? :) we need to find another way to fix the OOME. can you see one? -igor On Wed, Aug 26, 2009 at 10:48 PM, Ian MacLartyian.macla...@gmail.com wrote: Here is an example of some less trivial behaviour that is

Re: onclick AjaxEventBehaviour on feedback messages broken in 1.4?

2009-08-27 Thread Ian MacLarty
I tried the fix to populateItem proposed by the original bug reporter (http://issues.apache.org/jira/browse/WICKET-2384) and that seems to work. On Thu, Aug 27, 2009 at 4:32 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: well, its either removing components or an outofmemoryexception. which

Re: onclick AjaxEventBehaviour on feedback messages broken in 1.4?

2009-08-27 Thread Ian MacLarty
BTW I've logged bug 2438. On Thu, Aug 27, 2009 at 5:01 PM, Ian MacLartyian.macla...@gmail.com wrote: I tried the fix to populateItem proposed by the original bug reporter (http://issues.apache.org/jira/browse/WICKET-2384) and that seems to work. On Thu, Aug 27, 2009 at 4:32 PM, Igor

Re: AjaxLink/Behaviour with shortcut

2009-08-27 Thread danisevsky
look at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/input-events-parent/ 2009/8/26 Johannes Schneider maili...@cedarsoft.com Hi, I have here several AjaxLinks that should be triggered using a shortcut (e.g. PageDown or Delete). Does anybody have some

Re: How to get Dynamic value of TextField

2009-08-27 Thread Dipu
take a look at the user guide at http://cwiki.apache.org/WICKET/newuserguide.html take a look at the example http://wicketstuff.org/wicket13/forminput/ click on the source code link on the right of the page to see the source code if possible buy the book wicket in action regards On Thu,

Re: How to detect model leakage into session

2009-08-27 Thread Eelco Hillenius
One 'hack' of a way to check whether you have stuff in your session that shouldn't be, is to make sure that the objects you don't want sticking around are not serializable, and you'll see stacktraces soon enough. If that's an options, it's a useful hack... Eelco On Wed, Aug 26, 2009 at 12:29 PM,

Re: How to detect model leakage into session

2009-08-27 Thread Bas Gooren
Eelco, Thanks for your tip. Bas - Original Message - From: Eelco Hillenius eelco.hillen...@gmail.com To: users@wicket.apache.org Sent: Thursday, August 27, 2009 10:09 AM Subject: Re: How to detect model leakage into session One 'hack' of a way to check whether you have stuff in

Re: How to detect model leakage into session

2009-08-27 Thread Martijn Dashorst
Or check your pages for references to your entities at the end of the request: private void testDetachedObjects(final Page page) { Page responsePage = getResponsePage(); if (page == null || page.isErrorPage() || (responsePage

Subclass of base page class not rendered

2009-08-27 Thread Bergmann Manfred
Hi there. I've run into an issue and don't know how to solve it. My experience with Wicket is still low. I have a BasePage, subclass of WebPage. This page has some links, including links to change the language. This BasePage is not a page that is rendered directly. Only though subclasses.

calendar or room/time reservation components?

2009-08-27 Thread Troy Cauble
Are there any components or extensions that would help me give a calendar based rendering of something like a room reservation system. Multiple rooms vs time, visual blocks like meetings on google calendar, easy to spot openings. I've seen references to calendarviews and ddcalendar in

Re: calendar or room/time reservation components?

2009-08-27 Thread Tomasz Dziurko
If you need some calendar-like component with time duration and multi-events presentation I suggest http://www.simile-widgets.org/timeline/ and it's Wicket child (didn't use it, but functionality should is similar to your needs):

using behaviors as borders - how to?

2009-08-27 Thread Joe Hudson
Hello, I would like to add a behavior to a component which alters the HTML output related to that component. I know that you can use setComponentBorder but I saw a posting that mentioned behaviors were the more appropriate way to do this as explicit component borders might become deprecated.

Re: using behaviors as borders - how to?

2009-08-27 Thread Peter Thomas
On Thu, Aug 27, 2009 at 5:31 PM, Joe Hudson joe.hud...@clear2pay.comwrote: Hello, I would like to add a behavior to a component which alters the HTML output related to that component. I know that you can use setComponentBorder but I saw a posting that mentioned behaviors were the more

Choose one

2009-08-27 Thread Gatos
After I choose something in DropDownChoice then 'Choose one' item is removed from the list. If I will try to use setNullValid(true) then 'Choose one' string is replaced with '' (emptry string). How is it possible to display 'Choose one' if another item has been selected?

Re: Choose one

2009-08-27 Thread Gatos
Is it possible to reuse existing translation - I like 'Choose one'? If my app has 32 languages, then I should create 32 records in each file? On Thu, Aug 27, 2009 at 3:58 PM, Dipu dipu@googlemail.com wrote: add this in your .properties file yourForm.yourDropDownId.nullValid = Choose One

Re: Choose one

2009-08-27 Thread Matthias Keller
Hi The implementation tries these keys: getId() + .nullValid nullValid So you could also have a global 'nullValid' entry somewhere in your resources which would be the default for ALL AbstractSingleSelectChoices such as DropDownChoice and RadioChoice Matt Gatos wrote: Is it possible to

Re: Choose one

2009-08-27 Thread Gatos
Thank you. The case is solved. Maybe it would be a good idea to add nullValid to Wicket global translation files, then it won't be needed to create a new record in my file. nullValid could be used if I wan't something to override. It's something similar to Convention over Configuration. On

Re: Subclass of base page class not rendered

2009-08-27 Thread Pedro Santos
To force re-instantiate of an unknow subclass you can use reflection like: setResponsePage(getPage().getClass().getConstructors()[0].newInstance()); but a simple setResponsePage(getPage()) should work to update resources used by wicket:message for example On Thu, Aug 27, 2009 at 6:47 AM,

Dump wicket rendered html

2009-08-27 Thread Martin Makundi
Hi! I need to dump a HTML page rendered by wicket into a file INSTEAD of rendering it to HTTPServletResponse. How can this be done? The reason why I need to do this is that the user wants to download the page as PDF. I want to dump it into file, convert html-pdf and then redirect the user to a

Re: Dump wicket rendered html

2009-08-27 Thread Jeremy Thomerson
search nabble for email wicket page - or something similar. you should be able to find a thread that answers your question. There have been quite a few about dumping a Wicket page to a stream or string to email. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Aug 27, 2009 at 8:57

Re: Subclass of base page class not rendered

2009-08-27 Thread Jeremy Thomerson
You're going about this the wrong way. You shouldn't force a re-instantiation. The real problem here is that your components are not shown as localized because apparently you are pushing the strings into your components in the constructors. Instead, you should use a model that always pulls the

Re: calendar or room/time reservation components?

2009-08-27 Thread Jeremy Thomerson
There's a calendarviews project in Wicket Stuff that I have written and used here: http://www.texashuntfish.com/app/calendar -- Jeremy Thomerson http://www.wickettraining.com On Thu, Aug 27, 2009 at 4:57 AM, Troy Caubletroycau...@gmail.com wrote: Are there any components or extensions that

Re: Dump wicket rendered html

2009-08-27 Thread Martin Makundi
Tnx http://www.nabble.com/Generating-email-body-with-wicket-td14042459.html#a14042459 http://www.danwalmsley.com/2008/10/23/sending-html-email-with-wicket-part-ii-converting-links/ t. Martin 2009/8/27 Jeremy Thomerson jer...@wickettraining.com: search nabble for email wicket page - or

Re: Dump wicket rendered html

2009-08-27 Thread Martin Makundi
Which one is the right answer? http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ 2009/8/27 Martin Makundi martin.maku...@koodaripalvelut.com: Tnx http://www.nabble.com/Generating-email-body-with-wicket-td14042459.html#a14042459

RE: Choose one

2009-08-27 Thread Warren Bell
I needed to do the same thing. I saw this on another post and it works fine. Override getDefaultChoice: protected CharSequence getDefaultChoice(Object selected) { return option selected=\selected\ value=\\Choose One/option; } You can use

Re: Quick model/user/session question

2009-08-27 Thread Dane Laverty
Thanks for the suggestion. I've actually already got OpenSessionInViewFilter in my web.xml, like so: filter filter-namewicket.filter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param

Re: Wicketstuff releases?

2009-08-27 Thread Johannes Schneider
Any news here? I want to use input-events which has not been released yet. Any timeline for that module? Thanks, Johannes Erik van Oosten wrote: Hello, Now that Wicket 1.4.0 is out, I wonder which wicketstuff core version is compatible. There is no 1.4.0 version of wicketstuff core

Male/Female messages

2009-08-27 Thread Arie Fishler
Hi, Assuming that I am localizing to a language that has different text required for male and female is there a generic way for hadling that. This is of course based on the fact that I can provide a user object that contains that property (if the user is a male or female) I can think of a

Re: Male/Female messages

2009-08-27 Thread Cserep Janos
use setStyle() and different styles for property files. That means you should have 2 files: MyApplication_male.properties MyApplication_female.properties j On Thu, Aug 27, 2009 at 5:32 PM, Arie Fishlerarie@gmail.com wrote: Hi, Assuming that I am localizing to a language that has

Re: users Digest 27 Aug 2009 15:08:59 -0000 Issue 2060

2009-08-27 Thread Bergmann Manfred
Thanks for that pointer. I've looked over the model and got it working with overriding getObject() in PropertyModel. Manfred Von: Jeremy Thomerson jer...@wickettraining.com Datum: 27. August 2009 15:17:49 GMT+01:00 An: users@wicket.apache.org Betreff: Re: Subclass of base page class not

Re: Wicketstuff releases?

2009-08-27 Thread Johannes Schneider
By the way: Wicketstuff contains an old repository definition that should be removed (in input-events). Thanks, Johannes Johannes Schneider wrote: Any news here? I want to use input-events which has not been released yet. Any timeline for that module? Thanks, Johannes Erik van

Re: AbstractAjaxTimerBehavior on Modal Window causes PageExpiredException

2009-08-27 Thread Mathias Nilsson
Does all your models and obejcts implement Serializable? -- View this message in context: http://www.nabble.com/AbstractAjaxTimerBehavior-on-Modal-Window-causes-PageExpiredException-tp25159539p25178263.html Sent from the Wicket - User mailing list archive at Nabble.com.

label fails serializable check when i override model().getObject (wicket 1.3.6)

2009-08-27 Thread james o'brien
I'm trying to change the text of label based on whether a flag is set for graph or not graph. graphLink.add(new Label(graphLinkLabel, new Model() { @Override public Object getObject() { return isGraph ? List : Graph; } })); When

Re: Choose one

2009-08-27 Thread Erik van Oosten
Call setRequired(false) on the dropdownchoice. Regards, Erik. Gatos wrote: After I choose something in DropDownChoice then 'Choose one' item is removed from the list. If I will try to use setNullValid(true) then 'Choose one' string is replaced with '' (emptry string). How is it possible

Re: AjaxLink/Behaviour with shortcut

2009-08-27 Thread Johannes Schneider
That thing works great with normal links. But I have a problem with Ajax(Fallback)Links. The created JavaScript looks good but it does not work. Since I really don't understand JavaScript I don't have a clue what to do next. I have modified the example to reproduce the problem: Add to

DataTable NavigationToolbar visibility problem

2009-08-27 Thread Aaron Hiniker
I have a DefaultDataTable that is sourcing data from a custom SortableDataTable. My size() and iterator() implementations are not cached, but are executing each on each call (I have confirmed that size() is getting called on each page render). My problem is: When I add a filter to my query that

RE: AbstractAjaxTimerBehavior on Modal Window causes PageExpiredException

2009-08-27 Thread Warren Bell
Yes all my objects that need to be serialized are being serialized. I put together a workaround. In the onClick() that closes the Modal Window. I called AbstractAjaxTimerBehavior#stop() then waited for a period longer than the Duration of the AbstractAjaxTimerBehavior and then closed the Modal

Re: DataTable NavigationToolbar visibility problem

2009-08-27 Thread Maarten Bosteels
Hi, Can't really tell you what the solution is. But the wicket devs might be interested to know that I noticed the same problem in the wicket phonebook example. So at least reproducing the problem should be easy :-) http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook/ regards,

Re: AjaxLink/Behaviour with shortcut

2009-08-27 Thread Johannes Schneider
I made some progress: When using the (newly created) EventType onclick the behvious seems to be improved. The first time it works great, but if I add the link to the AjaxRequestTarget (so that the link is updated), the event is executed multiple times... Regards, Johannes Johannes Schneider

RE: TinyMCE in an Ajax loaded panel

2009-08-27 Thread Martin Heras
Sverre, Could you paste the code in a formatted way? I tried to use that code, but its syntax is not right... I don't understand the fragment where you use AjaxCallDecorator... The fragment just says return new AjaxCallDecorator but that is not inside any method... Please I need this as soon as

how to format DateField

2009-08-27 Thread Sadhna Ahuja
Hi, I am using a DateField and in my css I am trying to make the font size smaller for this component. I notice that the DatePicker calendar font has become smaller, but the DateTextField does not get that style. How should I make the DateTextField get the same style? Here's the

rendering dom in modal window

2009-08-27 Thread Fernando Wermus
Hi all, Nino has commented that it could be some problem in a modal window with another javascript library. For instance, I tried adding SWFObject to the modal window without success. Nico has said that this could be related to a DOM issue. Could anyone explain this point in more detail?

Re: [announce] wicket 1.4.x branched

2009-08-27 Thread Jörn Zaefferer
Is this the right place to look for planned features for 1.5? http://cwiki.apache.org/WICKET/wicket-15-wish-list.html Jörn On Thu, Aug 20, 2009 at 5:10 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: Wicket 1.4.x has been branched and now lives in

Re: FileUploadField bug in Chrome with ajax?

2009-08-27 Thread Tauren Mills
Peter, Thanks for pointing out the other thread. I'll try the quickstart attached to the JIRA issue and see if I can replicate the problem I'm having. Tauren 2009/8/26 Major Péter majorpe...@sch.bme.hu: Hi, I was experiencing the same thing, but it was in FF (3.5.2) for me. See details:

RE: using behaviors as borders - how to?

2009-08-27 Thread Joe Hudson
Thank you Peter. That link was extremely helpful! Joe -Original Message- From: Peter Thomas [mailto:ptrtho...@gmail.com] Sent: Thursday, August 27, 2009 8:12 AM To: users@wicket.apache.org Subject: Re: using behaviors as borders - how to? On Thu, Aug 27, 2009 at 5:31 PM, Joe Hudson

Page redirect after POST

2009-08-27 Thread bht
Hi, With forms on Wicket pages, it appears that on submit which is HTTP POST, Wicket redirects to the same page (the page from where the data was sent) ad this is how we show feedback on the form page. How is it possible to send the rendered form page back to the broser as a direct response to

Re: Page redirect after POST

2009-08-27 Thread Jeremy Thomerson
http://cwiki.apache.org/WICKET/render-strategies.html -- Jeremy Thomerson http://www.wickettraining.com On Thu, Aug 27, 2009 at 11:01 PM, b...@actrix.gen.nz wrote: Hi, With forms on Wicket pages, it appears that on submit which is HTTP POST, Wicket redirects to the same page (the page

How to use session

2009-08-27 Thread Gerald Fernando
Hello Friends, I have page in which textField and button . when submit a form (onClick ) i need to call same page and pass argument to that page. so that page will take argument from session variable.How to store and how to get that value *for loading same page*,Shall i call the page using

Re: How to use session

2009-08-27 Thread Jeremy Thomerson
Why put the variable in the session at all? Do this in your onSubmit: onSubmit() { setResponsePage(new SomePage(this.someVariable)); } -- Jeremy Thomerson http://www.wickettraining.com On Fri, Aug 28, 2009 at 12:17 AM, Gerald Fernandogerald.anto.ferna...@gmail.com wrote: Hello Friends, I