Re: [Wicket-user] Fragment: optionally replace the tag

2007-04-09 Thread Thomas Singer
BTW, for what purpose the Fragment constructor with the MarkupStream parameter exists? Tom On Mon, 09 Apr 2007 20:14:36 +0200, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > This is very nasty code: creating a page upfront and not having it be > part of the request cycle. Constructing a page

[Wicket-user] Submit failure

2007-04-09 Thread Roman Mandeleil
Hi , What is the right way to identify that a submit was failed ( e.g. there is no connection to the server ) ? Best regards Mandeleil Roman -- View this message in context: http://www.nabble.com/Submit-failure-tf3551190.html#a9914206 Sent from the Wicket - User mailing list archive at Na

Re: [Wicket-user] Fragment: optionally replace the tag

2007-04-09 Thread Thomas Singer
OK, do so. Tom On Mon, 09 Apr 2007 20:14:36 +0200, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > This is very nasty code: creating a page upfront and not having it be > part of the request cycle. Constructing a page can be very costly in > terms of memory usage and performance (models pulling

Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Peter Thomas
created JIRA https://issues.apache.org/jira/browse/WICKET-456 And when I use HeaderContributor (instead of wicket:head in the markup) it works fine as expected. Thanks, Peter. On 4/9/07, Matej Knopp <[EMAIL PROTECTED]> wrote: We already do parse content of , but only to filter hader contribu

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Igor Vaynberg
looks good without actually running the code :) -igor On 4/9/07, Carlos Pita <[EMAIL PROTECTED]> wrote: Well, here is what I've done based on your suggestions. Please review this and tell me if it can be improved, if you are so kind: 1) An inherited model that looks into the passed model. I

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Carlos Pita
Well, here is what I've done based on your suggestions. Please review this and tell me if it can be improved, if you are so kind: 1) An inherited model that looks into the passed model. If it's not null it returns a propertymodel for the component id a la CompoundPropertyModel. If it's null it re

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Jonathan Locke
maybe have FormComponentFeedbackBorders for the individual components and then a global feedback panel to catch the general ones (install a filter to ignore reporters that have feedback borders) Carlos Pita-4 wrote: > > Hi all, > > suppose you have to implement some form input component that

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Igor Vaynberg
On 4/9/07, Carlos Pita <[EMAIL PROTECTED]> wrote: 1) How can I use a compound property model without naming the nested form components with their full path (ie. 'birthDate.year' instead of simply 'year'). use the model luke what is below is some pseudocode, it is not the best way to do this

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Eelco Hillenius
> 1) How can I use a compound property model without naming the nested > form components with their full path (ie. 'birthDate.year' instead of > simply 'year'). > > 2) If I add a validator to the form component panel (for panel level > validation), can I assume that the nested component models will

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Carlos Pita
Hi Eelco, I've looked at the examples. There are a couple of things that still troubles me: 1) How can I use a compound property model without naming the nested form components with their full path (ie. 'birthDate.year' instead of simply 'year'). 2) If I add a validator to the form component pan

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Matej Knopp
When nested form is submitted, the form components in surrounding models are given the user input, but they are not processed. So the input is "persisted" during request, but not validated and processed. The inner (nested) form, that is submitted is both validated and if validation succeeds, the mo

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Eelco Hillenius
> > as a formcomponent itself. and actually wicket does support embedded forms. > > Can you expand on this? Will nested forms be validated and bound > before their containers? Look at wicket.examples.forminput.Multiply and wicket.extensions.yui.calendar.(Date)TimeField for examples. Eelco --

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Carlos Pita
> there is a FormComponentPanel that can embed other form components, and act Great! Btw, is there something more like a border or fragment, to "inline" the markup? > as a formcomponent itself. and actually wicket does support embedded forms. Can you expand on this? Will nested forms be validate

Re: [Wicket-user] Form macro-component

2007-04-09 Thread Igor Vaynberg
there is a FormComponentPanel that can embed other form components, and act as a formcomponent itself. and actually wicket does support embedded forms. -igor On 4/9/07, Carlos Pita <[EMAIL PROTECTED]> wrote: Hi all, suppose you have to implement some form input component that is composed fro

[Wicket-user] Form macro-component

2007-04-09 Thread Carlos Pita
Hi all, suppose you have to implement some form input component that is composed from other simple FormComponents. These simple input fields will be ajax-validated individually, and they will be subject to some global (inter-field) validation too. An example could be three drop-downs for a date, w

Re: [Wicket-user] Help Me Improve Wicket Quickstart

2007-04-09 Thread Martin Funk
> Well, isn't that just what "mvn jetty:run" gives you? :-) > talking about quickstart and mvn jetty:run: https://issues.apache.org/jira/browse/WICKET-455 Martin - Take Surveys. Earn Cash. Influence the Future of IT Join So

Re: [Wicket-user] Fragment: optionally replace the tag

2007-04-09 Thread Igor Vaynberg
yes +1, just revert to version 3 -igor On 4/9/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: This is very nasty code: creating a page upfront and not having it be part of the request cycle. Constructing a page can be very costly in terms of memory usage and performance (models pulling data).

Re: [Wicket-user] Fragment: optionally replace the tag

2007-04-09 Thread Martijn Dashorst
This is very nasty code: creating a page upfront and not having it be part of the request cycle. Constructing a page can be very costly in terms of memory usage and performance (models pulling data). I highly recommend pulling this example from confluence, as it is unnecessary (use panels instead)

Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Matej Knopp
We already do parse content of , but only to filter hader contribution contributed by ajax (in javascript). -Matej On 4/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > we are talking about two different panel classes contributing the same > , that means we need to break the head down into indivi

Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Igor Vaynberg
we are talking about two different panel classes contributing the same , that means we need to break the head down into individual tags and process them that way. this isnt the case where we filter contributions from two instances of the same panel class. -igor On 4/9/07, Eelco Hillenius <[EMA

Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Eelco Hillenius
> it shouldn't be to hard i guess to send that blob through the header > contributor? > Because then it will be filtered because the head part is always the same > for a static script I would have sworn we already did that. Calls for a JIRA issue. Eelco --

Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Johan Compagner
it shouldn't be to hard i guess to send that blob through the header contributor? Because then it will be filtered because the head part is always the same for a static script johan On 4/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: use IHeaderContributor, contributions through that are filt

Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Peter Thomas
Thanks Igor I'll use IHeaderContributor for now. On 4/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: use IHeaderContributor, contributions through that are filtered. i dont think we currently parse what exactly is in wicket:head, we just blob it in. it might be nice to parse it, i dont know, b

[Wicket-user] failure notice

2007-04-09 Thread MAILER-DAEMON
Hi. This is the qmail-send program at cenia.net. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : 66.35.250.206 does not like recipient. Remote host said: 451-Could not complete sender verify callout

Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Igor Vaynberg
use IHeaderContributor, contributions through that are filtered. i dont think we currently parse what exactly is in wicket:head, we just blob it in. it might be nice to parse it, i dont know, but it is a lot of work. you can add an rfe if you want, but it will not get a high priority imho -igor

[Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page

2007-04-09 Thread Peter Thomas
Hi, I'm trying to use some Yahoo UI widgets and currently things work fine when the required javascript files are contributed using But when I have two different panels appearing within the same page - and both contributing the same common *.js files, - the page HTML has duplicate

Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-09 Thread Nathan Hamblen
I'm just going to echo what Eelco originally said: HTML is quite good for defining forms. I'm glad people have found ways to generate them from XML or whatever (and for some purposes I'm sure that's best), but I would encourage new users to keep an open mind about plain HTML templates for forms

Re: [Wicket-user] Internationalization and DropDownChoice

2007-04-09 Thread Timo Rantalaiho
On Thu, 05 Apr 2007, Toscano wrote: > The getCountries() method outputs the list of countries depending on the > language stored in session. > But if I create the DropDownChoice as you said: > > countries = new DropDownChoice("country", > new Model() { > publi

Re: [Wicket-user] Wicket "gui building"

2007-04-09 Thread Eelco Hillenius
Check out how panels, fragments and borders work. That will let you break things up in smaller pieces and defer the decission of which actual markup will be used. if (x) { add(new TextFieldPanel("editor"); } else { add(new ListEditor("editor); } ... ... ... etc. Just play with it a

Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-09 Thread Igor Vaynberg
search the list and wiki for bean panels. there is also a bean panel project in wicket-stuff although i dont know how usable it is. -igor On 4/8/07, Philip Weaver <[EMAIL PROTECTED]> wrote: I am interested in creating a complex form in Java code without needing to manually configure any html

Re: [Wicket-user] TopToolbar in datatable dispeared when ajax modal window closed

2007-04-09 Thread Matej Knopp
Yes, this is a known issue with refreshing dataview with toolbars using ajax. The problem is that toolbars use non-invalid markup which works fine with regular requests, but doesn't work using ajax. -Matej On 4/9/07, tooy li(Gmail) <[EMAIL PROTECTED]> wrote: > hi > i used a defaultdatatable to sh

[Wicket-user] TopToolbar in datatable dispeared when ajax modal window closed

2007-04-09 Thread tooy li(Gmail)
hi i used a defaultdatatable to show the data list , and add some ajax link in it to open some modal window to show detail. the toptoolbar will dispeared when these modal window closed, it's only happen in firefox, work well in IE 6. so ,is there any one can help me ? the below is my code. ps.

Re: [Wicket-user] XSD / Validation

2007-04-09 Thread Dmitry Kandalov
ali-13 wrote: > > I link your xsd to external resources of IDEA and add wicket:id to custom > html tags/attributes, and now it know wicket'tags > , but after validate following xhtml file : > Sorry, but it's just a workaround for IDEA inspection, it's not a real schema for wicket. -- View

[Wicket-user] Wicket "gui building"

2007-04-09 Thread Pieter Laeremans
Hi, I'm just getting started with wicket and I like. (I have a strong Swing background :-)) . Bat it looks to me that I sort of have to "design" each gui, i.e. I have to write markup files. In some cases I would like to be able to generate a form based on a database table. And I wouldn't

Re: [Wicket-user] having a (newbie) Ajax problem

2007-04-09 Thread Robbert Vergeten
great link thank you. can't believe I missed that... On 4/9/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html And Igor was correct, just not the general faq :-P http://cwiki.apache.org/WICKET/listview.html#ListView-FAQ On

Re: [Wicket-user] Creating Entire Forms in Java Code Only?

2007-04-09 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Actually I just did this at work but I used fragments rather than panels. We just need a simpler datatype->html widget look up so I just went with fragments so that I don't need to build a bunch of java class and html files. The fragments are na

Re: [Wicket-user] No Page found for component after selecting TreeNode

2007-04-09 Thread Isaac Weng
Thanks for the quick replay. After some digging, I found that I forgot to check that TreeItem is also a WebMarkupContainer which is rebuilt. A wrong way to re-implement my requirement in the Tree component let me think it worked on the Tree component in wicket-extension, which is obvious not af

Re: [Wicket-user] having a (newbie) Ajax problem

2007-04-09 Thread Martijn Dashorst
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html And Igor was correct, just not the general faq :-P http://cwiki.apache.org/WICKET/listview.html#ListView-FAQ On 4/9/07, Robbert Vergeten <[EMAIL PROTECTED]> wrote: > Thanks for the quick response i'll try that. I can't seem t

Re: [Wicket-user] having a (newbie) Ajax problem

2007-04-09 Thread Robbert Vergeten
Thanks for the quick response i'll try that. I can't seem to find it in the FAQ though. On 4/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: you cannot update a listview with ajax, i think its in the faq. wrap it in a webmarkupcontainer and update that instead. -igor On 4/8/07, Robbert Verge

Re: [Wicket-user] localized resource property file - fallback to default?

2007-04-09 Thread Wilko Hische
Thanks Jurgen & Eelco, I understand you would not want this as default behaviour & I suppose I can figure it out. Cheers, Wilko Eelco Hillenius wrote: > > I see what you mean, and understand this use case may be good for some > occasions. There is a big danger however, of Wicket 'silently' f

Re: [Wicket-user] Fragment: optionally replace the tag

2007-04-09 Thread Martijn Dashorst
Why not just use a panel instead? Martijn On 4/9/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > I meant, when I don't use the -tags (like in the example at > http://cwiki.apache.org/confluence/display/WICKET/Fragment#Fragment-Fragmentsfromotherpages > ). > > Tom > > Igor Vaynberg schrieb: > > fra

Re: [Wicket-user] Fragment: optionally replace the tag

2007-04-09 Thread Thomas Singer
I meant, when I don't use the -tags (like in the example at http://cwiki.apache.org/confluence/display/WICKET/Fragment#Fragment-Fragmentsfromotherpages ). Tom Igor Vaynberg schrieb: > fragment doesnt own wicket:fragment, only whatever is inside the > tags > > -igor > > > On 4/8/07, *Thoma