Re: [Wicket-user] Adding Support for optgroup

2005-11-04 Thread Johan Compagner
For the other choice objects (The singleselectchoice, dropdownchoice) we could have a list of optgroups and the optgroup has a list of its choices So you are just makeing one line with choices and optgroups (with again a list of choices) johan On 11/4/05, Igor Vaynberg [EMAIL PROTECTED] wrote:

[Wicket-user] Unexpected behaviour when using AjaxHandler's getBodyOnloadContribution()

2005-11-04 Thread Marco van de Haar
I encountered somewhat unexpected behavior when I tried using getBodyOnloadContribution(). When adding custom Ajaxhandlers to components I noticed that the getBodyOnloadContribution() is not called when I added the handler to an Image or a Label. It was however called upon loading the page when

Re: [Wicket-user] Adding Support for optgroup

2005-11-04 Thread Andrew Berman
Igor, why wouldn't the model be attached to the OptGroup object? Each OptGroup takes a model which is used for the for attribute.On 11/4/05, Johan Compagner [EMAIL PROTECTED] wrote: For the other choice objects (The singleselectchoice, dropdownchoice) we could have a list of optgroups and the

Re: [Wicket-user] Unexpected behaviour when using AjaxHandler's getBodyOnloadContribution()

2005-11-04 Thread Eelco Hillenius
That should work. Might be a bug. Could you pls try to step into it? Eelco On 11/4/05, Marco van de Haar [EMAIL PROTECTED] wrote: I encountered somewhat unexpected behavior when I tried using getBodyOnloadContribution(). When adding custom Ajaxhandlers to components I noticed that the

Re: [Wicket-user] Adding Support for optgroup

2005-11-04 Thread Igor Vaynberg
you mean for the label attribute? Optgroup in this case wouldnt be a component so the IModel provided needs to be attached to some component so that it is detached properly, so the user needs to worry about attaching it somewhere, and the more optgroups you have the trickier that gets. -Igor On

Re: [Wicket-user] Adding Support for optgroup

2005-11-04 Thread Igor Vaynberg
unless of course we just pass in a string instead of imodel and leave i18n to the user... -Igor On 11/4/05, Igor Vaynberg [EMAIL PROTECTED] wrote: you mean for the label attribute? Optgroup in this case wouldnt be a component so the IModel provided needs to be attached to some component so that

[Wicket-user] simple bookmarkable url

2005-11-04 Thread Jeff Miller
Is there a way to create bookmarkable page without embedding any of the Wicket implementation details in the url? For example, the template example page 2 url is: http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Eduardo Rocha
The fact that one cannot preview html only using panels without running a web server means that java code it is mandatory. Do you think this is a drawback to Wicket (as well as Tapestry) that claims that designers and coders can work almost independently? 2005/11/3, Laurent PETIT [EMAIL

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Martijn Dashorst
I use wicket:remove around relative paths to the CSS in the webapp directory. So this looks like: html head style type=text/css src=style/style.css / wicket:remove style type=text/css src=../../../../../../webapp/style/style.css / /wicket:remove The same can be done for JavaScript libraries

[Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Nathan Hamblen
It wouldn't be a drawback, since nobody does it better. But anyway, you can preview a component (in isolation) just fine in the component template without a web server. You can also preview the fake version in the page template without a server, though it's easy for that to get out of synch

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Laurent PETIT
Yes, that's simple and that works, indeed. Thanks for the idea. On 11/4/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I use wicket:remove around relative paths to the CSS in the webapp directory. So this looks like: html head style type=text/css src=style/style.css / wicket:remove

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Laurent PETIT
The problem at hand was : how to still have an html preview -before having all the logic implemented- for a complex page, when the page is technically separated into multiple parts/panels. But now I see this question has no answers, and that is normal, due to the fact that the real types of the

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Laurent PETIT
On 11/4/05, Nathan Hamblen [EMAIL PROTECTED] wrote: But anyway, you can preview a component (in isolation) just fine in the component template without a web server. You can also preview the fake version in the page template without a server, though it's easy for that to get out of synch with

Re: [Wicket-user] wicket:link always throws me an class not found exception

2005-11-04 Thread Igor Vaynberg
Is the class in the same package? -Igor On 11/4/05, Manuel Corrales [EMAIL PROTECTED] wrote: I have a link like this on a page, but it keeps telling me that Bienvenido class does not exists. pwicket:linka href=""> The class Bienvenido exists and the page too (in fact, it was the page i came

[Wicket-user] wicket:link always throws me an class not found exception

2005-11-04 Thread Manuel Corrales
I have a link like this on a page, but it keeps telling me that Bienvenido class does not exists. pwicket:linka href=""> The class Bienvenido exists and the page too (in fact, it was the page i came from) should i implement something special on this class or in the html?? Thanks.

Re: [Wicket-user] Help understanding component creation

2005-11-04 Thread Martijn Dashorst
To quote from the discussion (not the exact wording, but the basic idea): First we introduce markup parameters (which then need to be parsed, could become any OGNL expression), then we want conditional markup, loops in your markup, and finally we end up with Wicket Server Pages: JSP in another

Re: [Wicket-user] Help understanding component creation

2005-11-04 Thread Eelco Hillenius
I know the danger. I agree with the danger, and I agree with /not/ implementing it when other people are against. It is just that /I/ think it is powerful to be able to create high level components that you can add with a single line in your java code, and then configure the rest in your markup.

Re: Re: [Wicket-user] Re: Wicket 1.1 line endings bug?

2005-11-04 Thread Martijn Dashorst
And a very good one at that :) Envy isn't that one of the seven deadly sins? Martijn On 11/4/05, David Leangen [EMAIL PROTECTED] wrote: Sounds to me like envy. Admit it, you all wish you had a Mac and are jealous of those of us who do! (My one and only useful(??) contribution to

Re: [Wicket-user] Wicket 1.1 line endings bug?

2005-11-04 Thread Martijn Dashorst
Anyhow, now I'm confused. Should I make the next (1.1.x) release with my Mac or with my laptop? Doing it on my mac gives you consistent results comparing with 1.1. Doing it on my laptop gives you PC line endings. Martijn On 11/3/05, jan_bar [EMAIL PROTECTED] wrote: Hi, I compared results of

[Wicket-user] The Wicktor Situation (AJAX DropDownChoice)

2005-11-04 Thread Ralf Ebert
Hi, for porting an existing web application to Wicket I needed to refresh the contents of DropDownChoice without a new request (for speedy selection). As this is a common technique for selecting categories (things like Computer - Hardware - RAM - DDR or Branch / Company / Person) I

Re: [Wicket-user] Adding Support for optgroup

2005-11-04 Thread Andrew Berman
Yes my bad, I meant the label attribute, I got it confused with the label tag's for attribute. I'm not sure what the best solution is either. Passing a string in definitely works, but it's not really consistent with the rest of the Wicket components (except Label which just takes the string and

Re: [Wicket-user] wicket:link always throws me an class not found exception

2005-11-04 Thread Manuel Corrales
Yes, the class is on the same package. As soon as i can i post some code and the error description. Any other idea of what can be?? I've tried the examples and work perfect. Have no clue. Thanks.On 11/4/05, Igor Vaynberg [EMAIL PROTECTED] wrote:Is the class in the same package? -Igor On 11/4/05,

Re: [Wicket-user] wicket:link always throws me an class not found exception

2005-11-04 Thread Juergen Donnerstag
May we have the stack trace and may be the (stripped down) sources as well. Thanks Juergen On 11/5/05, Manuel Corrales [EMAIL PROTECTED] wrote: Yes, the class is on the same package. As soon as i can i post some code and the error description. Any other idea of what can be?? I've tried the