Re: Frozen error form object

2009-01-27 Thread Igor Vaynberg
you need to wire your events. listpanel can have an abstract onclicked(); editpanel can have a method called inputchanged() which calls form.clearinput() your listpanel can then look like this: add(new listpanel() { onclicked() { editpanel.inputchanged(); }}): that way everything is still nicely

Re: Frozen error form object

2009-01-27 Thread Anton Veretennikov
Thank you very much, Igor This really works. I think that it will be nice not to keep reference to a form by the way. So I tried to make override of onBeforeRender() but... Seems that getModelObject() every time returns just clicked object not the one "editing-continued". Is there any method to k

Re: WicketTester - Problem submitting a form

2009-01-27 Thread Per Newgro
Hi Stephan Koch, i can't help you on the exception. But all i can see is that you don't call submit. FormTester loginFormTester = tester.newFormTester("form"); loginFormTester.setValue("loginName", testUser.getUsername()); loginFormTester.setValue("password", "test"); loginFormTester.submit();

set mountPath for BookmarkablePageLink

2009-01-27 Thread Sean Brookes
I am working on some RESTful navigation and have run across an issue with ver 1.3.x. I would like to specify multiple mountPath names to the same Page class eg: mount(new IndexedParamUrlCodingStrategy( "internal",Class.forName("com.xyz.unittest.framework.layout.LandingPage"))); mount(new Indexed

Re: Example for presenting pdf in modal window

2009-01-27 Thread Per Newgro
And how should i add the pdf? Page.add(InlineFrame.add(???)); That is exactly hte problem i can't get over. Thanks for helping me Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: Frozen error form object

2009-01-27 Thread Igor Vaynberg
if the form is in invalid state and you want to reuse the same instance of it you have to call Form#clearInput() -igor On Tue, Jan 27, 2009 at 8:06 PM, Anton Veretennikov wrote: > I'm still with this problem... and created Test App for this. > > When required field is empty and error message is

Re: Convert a null Model to a custom string rather than ""

2009-01-27 Thread Anton Veretennikov
Not very nice but works (Jeremy Thomerson's variant with setObject changes): public class DefaultWhenNullModel implements IModel { private static final long serialVersionUID = 1L; private final IModel mNestedModel; private final T mDefaultValue; public DefaultWhenNullModel(IModel nestedM

How to bookmark an form with file upload input

2009-01-27 Thread Trevor Campbell
I have a wicket application that has a simple form with a file upload capability. I would now like to allow to extend the application by allowing an application on a device to send me the form and the application to return some XML. I have easily built a page to return the XML and if I invoke

Re: How can FeedbackPanel show error message of AjaxEditablePanel ?

2009-01-27 Thread Igor Vaynberg
call error("foo") on any component and add the feedbackpanel to the ajax request target -igor On Tue, Jan 27, 2009 at 4:34 PM, Philipp Daumke wrote: > Hi all, > > I try to show the error message of an AjaxEditablePanel in a > FeedbackPanel, but it doesn't work. On the web I only find examples

How can FeedbackPanel show error message of AjaxEditablePanel ?

2009-01-27 Thread Philipp Daumke
Hi all, I try to show the error message of an AjaxEditablePanel in a FeedbackPanel, but it doesn't work. On the web I only find examples where FormComponents are validated. My AjaxEditablePanel is not part of a form? Any idea or example? Thank you Philipp -- Averbis GmbH c/o Klinikum der

WicketTester - Problem submitting a form

2009-01-27 Thread Stephan Koch
Hi all, I ran into a problem with WicketTester. I am doing a very simple test of the login form of my application: .. setup stuff ... tester.startPage(LoginPage.class); tester.assertComponent("form:loginName", TextField.class); FormTester loginFormTester = tester.newFormTester("form"); loginFor

Re: Convert a null Model to a custom string rather than ""

2009-01-27 Thread nate roe
Actually, I don't think that this will work for me. The behavior that I want is to display a special string when the model is null. However, I still want the model to be null. My custom converter converts a special keyword to a null model. I want also to convert a new model to a special keyword

Re: Convert a null Model to a custom string rather than ""

2009-01-27 Thread nate roe
Excellent, thanks for writing that one up! On Tue, Jan 27, 2009 at 11:41 AM, Jeremy Thomerson < jer...@wickettraining.com> wrote: > This has come up quite a bit here on the user list. > > See the first example on this page: > > http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-ne

Re: Convert a null Model to a custom string rather than ""

2009-01-27 Thread Jeremy Thomerson
This has come up quite a bit here on the user list. See the first example on this page: http://www.jeremythomerson.com/blog/2008/11/06/wicket-the-power-of-nested-models/ -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jan 27, 2009 at 1:38 PM, nate roe wrote: > I'm using Wicket v1.3

Convert a null Model to a custom string rather than ""

2009-01-27 Thread nate roe
I'm using Wicket v1.3.4. I would like to create a kind of TextField that converts a null model value to a custom string rather than an empty string. Unfortunately, the converter is not run when the model object is null, and it looks like Component.getModelObjectAsString(...) is hard-coded to retu

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne
Yes, I found this issue https://issues.apache.org/jira/browse/WICKET-1478. I'm using wicket 1.3.5 which is supposed to solve it. However, my issue remains. Michael Sparer wrote: > > which version are you using? for me it sounds like this problem, see the > (solved) jira issue: https://issues.ap

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread Michael Sparer
which version are you using? for me it sounds like this problem, see the (solved) jira issue: https://issues.apache.org/jira/browse/WICKET-1478 but I'm sure you don't mean that behaviour as you certainly searched the list and the jira before posting, am I right? ;-) regards Michael ckuehne wro

applet web.xml mapping

2009-01-27 Thread rmattler
Sorry my day to ask questions.:-D If my WicketFilter is setup as: WicketFilter /* My Applet works fine. If I change it to: WicketFilter /app/* I can't seem to figure a way to access the applet. archive="applet/jumploader_z.jar" archiv

Re: Getting data from applet

2009-01-27 Thread Ryan Gravener
Here is how I accept files from my flex applications: http://pastie.org/372242 java http://pastie.org/372243 html

Re: Getting data from applet

2009-01-27 Thread Igor Vaynberg
the question is: how does the uploader send the upload? does it send the data as part of the form submit or in the background independently of the form data? since it can do things like pause/resume i am going to assume the latter which is why you are not seeing that data as part of the form submit

Re: Getting data from applet

2009-01-27 Thread rmattler
List items = upload.parseRequest(request); items is still empty try form.setmultipart(true) -igor -- View this message in context: http://www.nabble.com/Getting-data-from-applet-tp21686123p21688568.html Sent from the Wicket - User mailing list archive at Nabble.com. --

Re: Getting data from applet

2009-01-27 Thread Igor Vaynberg
try form.setmultipart(true) -igor On Tue, Jan 27, 2009 at 6:15 AM, rmattler wrote: > > I'm using an applet (http://www.jumploader.com) to upload files. Normally I > would use a servlet to parse the data with apache commons fileupload. With > Wicket I trying to parse the data in the onSubmit me

AjaxFallbackDefaultDataTable and AjaxLink

2009-01-27 Thread Mathias P.W Nilsson
Hi, I have override the newRowItem for the AjaxFallbackDefaultDataTable to make the entire row clickable. ( return new ClickableItem ). Can anyone help me with some pointers in how to make the row open a model window for editing. // Mathias -- View this message in context: http://www.nabble.c

Re: Redirect to a new window

2009-01-27 Thread Martin Makundi
You can use xx or WIcket's popupsettings, if you want it to be a real separate window. Example of "setPopupSettings": http://www.wicket-library.com/wicket-examples/linkomatic/;jsessionid=F3CEC57A34EE838B0FC348E2AC909C5A?wicket:bookmarkablePage=sources:org.apache.wicket.examples.source.SourcesPage&

Redirect to a new window

2009-01-27 Thread nitinkc
I have a requirement to redirect to a new window. Basically, I have a link in a column of a datagrid and I am redirecting to the URL using RedirectRequestTarget as follows: @Override protected void onClick(Object param) { getRequestCycle() .setRequestTarget(

RE: Observation and page (map) eviction

2009-01-27 Thread Frank van Lankvelt
After working things through once more, I opted for a simple model where I maintain a global registry of (jcr) event listeners using weak references. Events are queued to be processed later during a request cycle. So, in fact I managed to evade the page eviction problem; at the cost of additional

Re: Render other components

2009-01-27 Thread Philipp Daumke
Hi Jonas, hi Cemal, I think both of you mean similar things. So I need to attributes in my custom panel, one for the referring instance (in my case an instance of Class Index) and one for the component that I want to render (in my case AjaxFallbackDefaultDataTable). So my new custom panel look

Getting data from applet

2009-01-27 Thread rmattler
I'm using an applet (http://www.jumploader.com) to upload files. Normally I would use a servlet to parse the data with apache commons fileupload. With Wicket I trying to parse the data in the onSubmit method of the Form with no luck. HttpServletRequest request = ((ServletWebRequest) getRequest(

Re: Render other components

2009-01-27 Thread Jonas
Hi, I somehow doubt this is considered good practice to let one component know where in the component tree another component is situated. The code you propose breaks very easily e.g. if you introduce another container around the ADDT. Why don't you just pass the ADDT instance into the AjaxLink? s

Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread francisco treacy
thank you for the links, cemal. i'll definitely try to come next time if i'm not too far away from london! daan > Not only "real world" apps, but also "hello world" apps... sure, all is good. (i actually don't know why i put "real world" -- and with quotes... i guess we should include this one

Re: Render other components

2009-01-27 Thread jWeekend
Philipp, I expect your page's constructor creates and adds your custom panel. So, either make the whole panel invisible, or, if the panel hosts other widgets that need to be shown before your AjaxLink is clicked, you can provide an API on your panel to make the ADDT invisble/visible. This would b

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne
Pills wrote: > > iirc, onBeforeRender must always call super.onBeforeRender. > > so put super.onBeforeRender on the first line. > > Thanks for the quick reply. Unfortunately the super.onBeforeRender call does not solve the issue. -- View this message in context: http://www.nabble.com/U

Re: Render other components

2009-01-27 Thread Philipp Daumke
Hi all, I finally my error and post the working solution. I need to use a colon ":" to find children. AjaxLink link = new AjaxLink("link", new PropertyModel(obj, "id")) { public void onClick(AjaxRequestTarget target) { Page page = target.getPage(); AjaxFallbackDef

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread Piller Sébastien
iirc, onBeforeRender must always call super.onBeforeRender. so put super.onBeforeRender on the first line ckuehne a écrit : I have the following use case: I go from Page A to Page B passing an instance of A as return page to B. In B I click a link which brings me back to the (cached(?)) inst

Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-01-27 Thread ckuehne
I have the following use case: I go from Page A to Page B passing an instance of A as return page to B. In B I click a link which brings me back to the (cached(?)) instance of A. In the onBeforeRender-method of a child component of A I want to redirect if some condition is prot

Re: Render other components

2009-01-27 Thread Philipp Daumke
Dear Cemal, thanks for your fast help. You understood what I meant but I still have the problem, that I don't know how to get the instance myADDT. I tried Page page = target.getPage(); AjaxFallbackDefaultDataTable myADDT= (AjaxFallbackDefaultDataTable) page.get("relTable"); but get "myADDT=n

Re: Render other components

2009-01-27 Thread jWeekend
Philipp, I'm not sure I have fully understood what you are after but it may be that something as straight forward as making the component to be added (ADDT) invisible - setVisible(false) - when first added to its parent (eg the page) and making it visible in your AjaxLink (AL) onClick implementat

Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread jWeekend
Francisco, Thanks, I hope you can find a good excuse to come and participate in one of our events in the future, I'm sure you'd enjoy the experience. We have had people come over, sometimes just for the evening, from several countries. We are often able to publish slides on one or more of the h

YUI menu and wicker border problem

2009-01-27 Thread Michal Hybler
Hi all! I want to combine YUI menu( from yui examples) with wicket border "system" to reach that menu will be displayed on each page. I have 2 problems: - menu lost its functionality (sub menu doesnt work) if i use it in hard coded page its all right. - in spite of I added menu in table it is outs

Re: Modal window position - always centred, even on long page

2009-01-27 Thread Steve Swinsburg
Thanks German, Adding this to the HTML of my ModalWindow is working nicely. I'm now in the process of working out some code that will put the modal window in the vertical centre of the actual viewport, even when scrolled, rather than the overall iframe height. If anyone has done this, feel

Render other components

2009-01-27 Thread Philipp Daumke
Dear all, I look for an example how to render Wicket-Components (in my case an AjaxDefaultDataTable) triggered by other Components (in my case AjaxLink). In my case the two components are defined in different Java-Classes. I looked for a while in the examples and in the wiki, but coudln't fin

Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread Daan van Etten
Hi, My code samples and presentation will be available online, on my own site and probably also on the London Wicket User group site. Not only "real world" apps, but also "hello world" apps... Regards, Daan Op 27 jan 2009, om 11:39 heeft francisco treacy het volgende geschreven: hi cemal,

Re: London Wicket Event - 4th February @ Google

2009-01-27 Thread francisco treacy
hi cemal, i am actually very interested in wicket and scala "real world" apps. unfortunately i can't make it to london, but i would like to ask you if the presentation slides will be available for download after the event. or should i ask daan, jan, al, ... ? thanks francisco On Mon, Jan 26,

Re: Example for presenting pdf in modal window

2009-01-27 Thread Ernesto Reinaldo Barreiro
Why not use an iframe as the content of the modal window and display there your PDF? I do not use modal-windows myself but showing the PDF inside an iframe on a Panel is not difficult to achieve with Wicket... So, I do not see why that wouldn't work with modal windows. Best, Ernesto On Mon, Ja

RE: Wicket placeholder for component causing invalid markup

2009-01-27 Thread the_adam
Phooey wrote: > > I'm unclear of what you actually want here... > Actually what I want has been already provided as stated in my previous post :) Phooey wrote: > > Surely if you use the wicket:enclosure around a tr (something I have > done in the past) then surely all you need is a little aj

Refreshing Datview with pageNavigator

2009-01-27 Thread newbie_to_wicket
Hi All, I am using DataView with PageNavigator, when ever i click on page numbers the URL is changing I'd like to implemnet Navigator with Ajax, so that the URL cannot be change, why because my requirement is " I am putting the DATA view in element when ever the url is changed then is clo

RE: Wicket placeholder for component causing invalid markup

2009-01-27 Thread Harrison, Andy
I'm unclear of what you actually want here... In the thread you state: "I know the benefits of wicket:enclosure. What I need, however is a placeholder, which is what wicket:enclosure doesn't provide (instead it removes it's entire body along with self when the specified child is not visible). Thi

Re: Wicket placeholder for component causing invalid markup

2009-01-27 Thread the_adam
Hi, Jeremy Thomerson-5 wrote: > > I agree 100% - that's the only clean solution I see. > To let you all know - Igor has provided a quick solution and committed it to a trunk. Now there is overridible Component#renderPlaceholderTag method. Regards, Adam -- View this message in context: http

Re: tinymce settings

2009-01-27 Thread Swanthe Lindgren
Ok, so things like mceSettings.addCustomSetting("skin : \"o2k7\"") work, but the readonly setting is in a newer version (3.1.1) when wicket tinymce is only 3.1.0. //Swanthe Hello to you all Im trying to use the tinymce behavior to get a nice editor. On one page I want a read-only tinymce, but

Re: QuickStart not finding Wicket classes

2009-01-27 Thread Michael Sparer
nope, http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.4-SNAPSHOT/ Anton Veretennikov wrote: > > There is no 1.4-SNAPSHOT in central repository so it must be > downloaded first and installed in local repository. > Am I right? > > On Tue, Jan 27, 2009 at 1:18 PM, Igor Vaynberg