Re: Aggregating JavaScript

2012-05-15 Thread Martin Grigorov
On Mon, May 14, 2012 at 11:57 PM, kamiseq kami...@gmail.com wrote: I was thinking about creating custom behaviour that will connect to other behaviour and render all scripts needed at the bottom of the page (If this is possible), It is possible. See the source of

Re: wicket 6 global services

2012-05-15 Thread Martin Grigorov
Hi, See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources Instead of serving images you can serve whatever you need. On Tue, May 15, 2012 at 1:19 AM, kamiseq kami...@gmail.com wrote: hej, I have few questions about how to do few things in wicket, right now I m focusing on 6th

Re: Passing query string data from an expired page to the expiry page

2012-05-15 Thread vineet semwal
you can create a requestcyclelistener which on exception checks if it's a pageexpiredexception if it's you can get client url or requestparameters there from the request which you can pass to your errorpage ,just create an appropriate pagerquesthandler at that time . On Tue, May 15, 2012 at 10:22

Re: Wicket 1.5.6, Ajax and expired page

2012-05-15 Thread Martin Grigorov
Hi, Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1) Wicket is able to handle automatically page expiration for mounted pages. I.e. if the user clicks a link and the page is already expired then depending on

Re: wicket 6 dynamic form parts generated in JS

2012-05-15 Thread Martin Grigorov
Hi, On Tue, May 15, 2012 at 1:50 AM, kamiseq kami...@gmail.com wrote: hej, I would like to dynamically add same part to form, let say I have a form that has a section with 3 inputs : start, end and name. those section can occur many times depending on model. this is very easy when depending

Re: wicket 6 using external session

2012-05-15 Thread Martin Grigorov
Hi, If the legacy app is again Servlet based then you can just add the new Wicket app in the web.xml and serve anything that comes to /new/*, for example. If the app uses another technology then you will have to use shared DB as you described. On Tue, May 15, 2012 at 1:59 AM, kamiseq

Re: Wicket 1.5.6, Ajax and expired page

2012-05-15 Thread Guillaume Smet
Hi Martin, On Tue, May 15, 2012 at 8:44 AM, Martin Grigorov mgrigo...@apache.org wrote: Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1) Wicket is able to handle automatically page expiration for mounted pages. I.e. if the user clicks a link and the page is already

Re: Wicket 1.5.6, Ajax and expired page

2012-05-15 Thread Martin Grigorov
On Tue, May 15, 2012 at 9:10 AM, Guillaume Smet guillaume.s...@gmail.com wrote: Hi Martin, On Tue, May 15, 2012 at 8:44 AM, Martin Grigorov mgrigo...@apache.org wrote: Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1) Wicket is able to handle automatically page expiration

Wizard clear all formfields

2012-05-15 Thread jensiator
Hi everyone. I got a problem. Anyone ever had a first step contain for example a dropdown that will load default data to the other formcomponents in the wizard? The dropdown has got a ajaxformcomponentupdatingbehavior. We call our server in the ajax request and update a lot of properties in the

Re: Wizard clear all formfields

2012-05-15 Thread Alexander Cherednichenko
Hi! If the question is correctly understood by me, all u need is to traverse the form for all the components and clear input -- then just use form component visitor, traverse the entire form and clear components' input. however itd be good if someone else on the list told if such a solution is

Re: Wizard clear all formfields

2012-05-15 Thread Martin Grigorov
Form.clearInput() does exactly that. On Tue, May 15, 2012 at 10:01 AM, Alexander Cherednichenko lex...@gmail.com wrote: Hi! If the question is correctly understood by me, all u need is to traverse the form for all the components and clear input -- then just use form component visitor,

Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Dirk Forchel
I've created issue https://issues.apache.org/jira/browse/WICKET-4561. Unfortunately I can't attach the quickstart since the JIRA server does respond with an error message. -- View this message in context:

Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Martin Grigorov
Thanks. Send it directly to me. I'll attach it when Jira is OK. On Tue, May 15, 2012 at 10:34 AM, Dirk Forchel dirk.forc...@exedio.com wrote: I've created issue https://issues.apache.org/jira/browse/WICKET-4561. Unfortunately I can't attach the quickstart since the JIRA server does respond

Re: How to use setMarkup

2012-05-15 Thread Martin Grigorov
See the examples at http://www.wicket-library.com/wicket-examples/customresourceloading/ On Tue, May 15, 2012 at 10:36 AM, kjarbr kja...@gmail.com wrote: I'm trying to use setMarkup with a panel. This is from my panel's constructor: String panelMarkup = StringBuilder... StringResourceStream

Re: Wizard clear all formfields

2012-05-15 Thread jensiator
Yes you are correct. I forgot to mention that I have already tried it. It does not work because Step2 formcomponents is not a part of the wizard form when step1 is. I think its done here in Wizard class public void onActiveStepChanged(IWizardStep newStep) { form.replace(newStep.getView(VIEW_ID,

Re: Wizard clear all formfields

2012-05-15 Thread Alexander Cherednichenko
Then, manual traversal of the components of the newStep.getView(VIEW_ID, this, this) with the form component visitor and clearing input for every form component would work. Surely, if it is the same object returned every time from getView(...) 2012/5/15 jensiator jens.alen...@gmail.com Yes you

Re: How to use setMarkup

2012-05-15 Thread Martijn Dashorst
Why? Martijn On Tue, May 15, 2012 at 10:36 AM, kjarbr kja...@gmail.com wrote: I'm trying to use setMarkup with a panel. This is from my panel's constructor: String panelMarkup = StringBuilder... StringResourceStream stream = new StringResourceStream(panelMarkup, text/html);

Re: Wizard clear all formfields

2012-05-15 Thread jensiator
Good Idea. I will try it. The only drawback is that it will be done everytime. Even if I go back to step1 and don't do anything. But I might be able to live with that Thanks -- View this message in context:

Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Dirk Forchel
Hi Martin, attached you can find the quickstart application. Thanks, Dirk Am 15.05.2012 10:39, schrieb Martin Grigorov-4 [via Apache Wicket]: Thanks. Send it directly to me. I'll attach it when Jira is OK. On Tue, May 15, 2012 at 10:34 AM, Dirk Forchel [hidden email]

Re: Wicket 1.5.6 duplicates segments in absolute URLs

2012-05-15 Thread Martin Grigorov
The attachment didn't make it. Send it to mgrigorov at apache org On Tue, May 15, 2012 at 11:55 AM, Dirk Forchel dirk.forc...@exedio.com wrote: Hi Martin, attached you can find the quickstart application. Thanks,   Dirk Am 15.05.2012 10:39, schrieb Martin Grigorov-4 [via Apache Wicket]:

Re: wicket 6 global services

2012-05-15 Thread kamiseq
ok, thanks pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ On 15 May 2012 08:43, Martin Grigorov mgrigo...@apache.org wrote: Hi, See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources Instead of serving images you can serve whatever

Re: wicket 6 dynamic form parts generated in JS

2012-05-15 Thread kamiseq
ok, great. this is what I thought so I dont want to reinvent things again, many thanks for quick replay pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail:

Re: wicket 6 using external session

2012-05-15 Thread kamiseq
the other technology is WebObjects and it uses its own server, I have no idea if it can be easily ported to servlet container, anyway right now it is not using one (as far I can tell). Wicket stores only the last used page instance in the http session. One instance! And only if the page is

Add or removed FileUploadFields dynamically

2012-05-15 Thread xe0nre
Hi, I have a really big problem with FileUploadFields. I am trying to create a panel that uses a ListView . Each row contains a Label, a FileUploadField and two AjaxSubmitLinks styled as plus and minus buttons. The purpose of this panel is very simple: *Initialise the panel with a certain

Re: Add or removed FileUploadFields dynamically

2012-05-15 Thread Martin Grigorov
Hi, See whether http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ is in help. On Tue, May 15, 2012 at 4:03 PM, xe0nre mvlupan.s...@gmail.com wrote: Hi, I have a really big problem with FileUploadFields. I am trying to create a panel that  uses a

Re: AW: how to debug MarkupNotFoundException

2012-05-15 Thread cosmindumy
So, I haven't solved the MarkupNotFoundException. The error occurs after I refresh the parent of repeater using Ajax. Actually I use a ListView. Here is the error in the log: RequestCycle.java | 1531 | Markup of type 'html' for component

Single page wicket app

2012-05-15 Thread bobj
We are creating a large single page wicket based application using tabs and ajax to replace portions of the page when needed. Does anyone know of any large single page wicket apps out there, or any issues we need to address? thanks! -- View this message in context:

Re: Single page wicket app

2012-05-15 Thread Martin Grigorov
Hi, I think the biggest concern here is the back button support. What are your requirements about this ? On Tue, May 15, 2012 at 6:06 PM, bobj bob.jen...@yahoo.com wrote: We are creating a large single page wicket based application using tabs and ajax to replace portions of the page when

Re: Single page wicket app

2012-05-15 Thread Jürgen Lind
What do you mean by large? Many users or many dialogs/components? I have developed three more or less (which means that a new page was only needed when basically the entire structure changed - which occured seldomly) single page apps with wicket and I have not run into real problems. But as

Bookmarkablepagelink with anchor

2012-05-15 Thread Gaetan Zoritchak
Hi all, I wanted to make a link on a Bookmarkablepage with an anchor. I didn't find how to do it. The link has a setAnchor(Component) method but it can't be that because the targeted anchor does not exist yet. My hope was that the method would take a String as parameter:

Re: Bookmarkablepagelink with anchor

2012-05-15 Thread Alexander Cherednichenko
Hi! For this case we have subclassed protected CharSequence getURL() which is in BookmarkablePageLink. And - we just append anchor to it while passing it in the constructor or even model to the BookmarkablePageLink. In the override we call super.getURL() and then append an anchor. I see pretty

Re: Single page wicket app

2012-05-15 Thread W Mazur
I would add Wicket Session size. See: http://www.small-improvements.com/blog/technical/tuning-wicket-session-size Regards 2012/5/15 Jürgen Lind juergen.l...@iteratec.de: What do you mean by large? Many users or many dialogs/components? I have developed three more or less (which means that a

Re: Single page wicket app

2012-05-15 Thread Martin Grigorov
On Tue, May 15, 2012 at 9:03 PM, W Mazur wlodekma...@gmail.com wrote: I would add Wicket Session size. See: http://www.small-improvements.com/blog/technical/tuning-wicket-session-size Can you be more specific ? How single-page app is different in this respect to a normal app ? Regards

Changing values by reference in child components... is it possible?

2012-05-15 Thread nunofaria11
Hi everyone, I am fairly new to Wicket, and probably my question has more to do with Java than with Wicket, but still I'd like to get some feedback if thats ok. Lets say that I have a Panel B inside a Panel A; panel B receives a parameter from A PanelA(id){ ... add(new PanelB(B,

Re: Changing values by reference in child components... is it possible?

2012-05-15 Thread Sven Meier
Use Wicket's models: PanelA(id) { ... add(new PanelB(B, someVarModel)) ... } PanelB(id, someVarModel) { ... someVarModel.setObject(anotherValue) ... } Sven On 05/15/2012 07:57 PM, nunofaria11 wrote: Hi everyone, I am fairly new to Wicket, and probably my question has more to do with

nested divs, ajax css inheritance

2012-05-15 Thread mlabs
I set html,body to height:100%; in my css file. I have a page rendered and i'm ajaxing in a sub panel. Because i'm ajaxing the panel in, I have to use setOutputMarkupId() .. which results in wicket inserting a div with a generated ID in between the outer containing div and the inner div of my

Re: Bookmarkablepagelink with anchor

2012-05-15 Thread Gaetan Zoritchak
Thanks for the tip. It was simple... I must be very tired. Regards, Gaetan, 2012/5/15 Alexander Cherednichenko lex...@gmail.com Hi! For this case we have subclassed protected CharSequence getURL() which is in BookmarkablePageLink. And - we just append anchor to it while passing it in the

Re: How to use setMarkup

2012-05-15 Thread kjarbr
Thanks Martin, IMarkupResourceStreamProvider and IMarkupCacheKeyProvider did the trick. I'm trying to reduce form boilerplate code. So I've made a general form component which, based on constructor values, pojo annotations and reflection, can create any html5 input field with or without label,