Re: nested divs, ajax css inheritance

2012-05-15 Thread Martin Grigorov
Hi, Replace with in YourPage.html. The same can be achieved by calling myPanel.setRenderBodyOnly(true) in Java On Tue, May 15, 2012 at 10:01 PM, mlabs wrote: > 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 pan

Re: How to use setMarkup

2012-05-15 Thread Martin Grigorov
On Wed, May 16, 2012 at 7:33 AM, kjarbr wrote: > 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,

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, val

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 > 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 o

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 panel

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 Ja

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: Single page wicket app

2012-05-15 Thread Martin Grigorov
On Tue, May 15, 2012 at 9:03 PM, W Mazur 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 > > 2012/5/15 Jürgen

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 : > 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 nee

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 m

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: myLink.setAnchor("#8765"

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 M

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 wrote: > We are creating a large single page wicket based application using tabs and > ajax to replace portions of the page when needed. > > Does anyone

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: http://apache-wicket.1842946.

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 'com.lingo24.orderingsystem.customer.web.wicket.wos.estima

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 wrote: > Hi, > > I have a really big problem with FileUploadFields. I am trying to create a > panel that  uses a ListView . Each row conta

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 number

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 s

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: users-u

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 wrote: > Hi, > > See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources > Instead of serving images you can serve whatever you need. > > On T

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 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]: >> Thanks. >> Send it

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] > > wrote: > > >

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: http://apache-wicket.1842946.n4.nabble.com/Wizard-clear-all-formfields-tp4634057p4634

Re: How to use setMarkup

2012-05-15 Thread Martijn Dashorst
Why? Martijn On Tue, May 15, 2012 at 10:36 AM, kjarbr 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"); > MarkupResourceStream m

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 > Yes you are correct. I forgot

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, t

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 wrote: > I'm trying to use setMarkup with a panel. This is from my panel's > constructor: > > String panelMarkup = StringBuilder... > StringResourceStream stream = new

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 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 with an error message. >

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: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-6-duplicates-segments-in-absolute-URLs

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 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, traverse the entire

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 any

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 mo

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 wrote: > Hi Martin, > > On Tue, May 15, 2012 at 8:44 AM, Martin Grigorov 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 use

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 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 expired > then depending