Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-23 Thread rc.china
yehh, that's excellent! I know now, thank you, igor.vaynberg. igor.vaynberg wrote: > > no they do not, all that is taken care off by wicket markup inheritance. > for > example: > > class basepage extends webpage { > abstract componentwithassociatedmarkup newarea1(string id); > abstract co

[Wicket-user] Updating link attributes from HeaderContributor

2007-06-23 Thread Tauren Mills
I am creating an application that utilizes alternate stylesheets. A javascript library also needs each stylesheet to have a title. The output format should be something like this: Using HeaderContributor, I can get this output: Note that I need to add "alternate" to the "rel" attribute and

Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Iman Rahmatizadeh
On 6/23/07, Johan Compagner <[EMAIL PROTECTED]> wrote: with the current 1.3 if you hold page references in other pages the the main pag is not serialized as a whole. Every page reference we come across is saved by itself in its own file. So pages are not saved twice or multiply in more then one

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-06-23 Thread Igor Vaynberg
On 6/23/07, John Krasnay <[EMAIL PROTECTED]> wrote: Thanks for the tip, but could you give us a little more of a clue? For example, from where should we get the RequestCycle? Using RequestCycle.get() doesn't sound right, since that's for the response we're sending to the browser, not for the HTM

[Wicket-user] Suscribe

2007-06-23 Thread Fabricio Tuosto
-- Saludos. Fabricio Tuosto - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.n

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-06-23 Thread John Krasnay
Thanks for the tip, but could you give us a little more of a clue? For example, from where should we get the RequestCycle? Using RequestCycle.get() doesn't sound right, since that's for the response we're sending to the browser, not for the HTML we want to render into the email. I looked into the

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
I also think this would be a good solution. -Matej On 6/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 6/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Modifying the tag (onComponentTag) and rendering header contribution > > (renderHead) are two different thing. While onComponentTag on a

Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Matej Knopp
Two weeks? No, we started doing that on apache con :) -Matej On 6/23/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On 6/23/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > no, also normal serialization. > > 1 page instance (id/version) is never saved in more then 1 file > > Oh. See, I go on

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote: Modifying the tag (onComponentTag) and rendering header contribution (renderHead) are two different thing. While onComponentTag on a behavior attached to page won't work (for reasons as you stated), there is no reason why renderHead shouldn't wo

Re: [Wicket-user] cannot add CSS to web page?

2007-06-23 Thread Matej Knopp
Arrgh. Discard my previous reply. This is wrong. Why shouldn't I be able to do header contribution on behavior attached to a page? This doesn't make sense! I know onComponentTag doesn't make sense, but that's IMHO not valid reason to forbid header contribution as well. -Matej On 6/24/07, Jonath

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
Modifying the tag (onComponentTag) and rendering header contribution (renderHead) are two different thing. While onComponentTag on a behavior attached to page won't work (for reasons as you stated), there is no reason why renderHead shouldn't work as well. -Matej On 6/23/07, Juergen Donnerstag <[

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
Why? Component.renderHead renders the attached behaviors and it's not overriden for Page, so i does what components do. HtmlHeaderContainer#renderHeaderSection calls page.renderHead(). So why this shouldn't work? -Matej On 6/24/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > not anymore. >

Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-23 Thread Igor Vaynberg
On 6/23/07, rc.china <[EMAIL PROTECTED]> wrote: igor.vaynberg wrote: > >> This solution has some limitations while multiple has not: >> 1)We have to repeat the common parts of BasePage.html in all of its >> descendants (such as DerivedPage1.html, DerivedPage2.html ...). >> ==> If we have mu

Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-23 Thread rc.china
igor.vaynberg wrote: > >> This solution has some limitations while multiple has not: >> 1)We have to repeat the common parts of BasePage.html in all of its >> descendants (such as DerivedPage1.html, DerivedPage2.html ...). >> ==> If we have multiple , we have no need to do this. >> 2)If we ch

Re: [Wicket-user] cannot add CSS to web page?

2007-06-23 Thread Eelco Hillenius
> can we make webpage attach to tag? That sounds like a better solution. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Jonathan Locke
not anymore. Matej Knopp-2 wrote: > > Err, I believe that you can do add(HeaderContributor.forCss(...)) in > page constructor. > > -Matej > > On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: >> Jan, >> >> the problem is that though you can attach attribute modifier (that is >> what

Re: [Wicket-user] cannot add CSS to web page?

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: my code which does this: add(HeaderContributor.forCss(CSS)); now throws the following exception. my web page needs to contribute CSS to the header. i'm wondering, why can't i do it this way anymore (it seems like WebPage is a

Re: [Wicket-user] London Wicket Users Group, July 3rd - interested?

2007-06-23 Thread jweekend
Now that we have confirmed the venue (1 Alie Street, near Aldgate tube - thanks to Matt Dudbridge who is also going to talk about the development of the zoomf.com site), we know that there are still a few places left for July 3rd, so let us know if you'd like to come along. Are people interested

[Wicket-user] cannot add CSS to web page?

2007-06-23 Thread Jonathan Locke
my code which does this: add(HeaderContributor.forCss(CSS)); now throws the following exception. my web page needs to contribute CSS to the header. i'm wondering, why can't i do it this way anymore (it seems like WebPage is a component like any other and my code did work fine befor

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
Err, I believe that you can do add(HeaderContributor.forCss(...)) in page constructor. -Matej On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > Jan, > > the problem is that though you can attach attribute modifier (that is > what HeaderContributor is as well) to a Page (or WebPage), it'

Re: [Wicket-user] A trivial problem with tables that i can't manage

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Landry Soules <[EMAIL PROTECTED]> wrote: Hello, I have a very simple problem: i just want to display a table of customers, with some infos on each entry. No problem to achieve that when you deal with one record per line. The problem is that i want to display 4 customers on each row,

Re: [Wicket-user] setBorderBodyContainer in 1.3

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: please keep the jdonnerstag for wicket. thanks Juergen done, looks like it worked. now only one of you shows up when you try to assign an issue. -igor On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 6/23/07, Juergen Don

Re: [Wicket-user] Forms with Panels question

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Erik Dreyer <[EMAIL PROTECTED]> wrote: Hi, I'm loving Wicket, but still have a bit to learn. I didn't find any answers when searching for an answer to my questions, so here they are. BTW, I'm using Wicket 1.3 as built from SVN (up to date as of 6/23). I have a panel that I'd like

Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Eelco Hillenius
On 6/23/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > no, also normal serialization. > 1 page instance (id/version) is never saved in more then 1 file Oh. See, I go on vacation for two weeks and I miss the serialization magic you've put into Page :) Nice job though! Eelco ---

Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Johan Compagner
no, also normal serialization. 1 page instance (id/version) is never saved in more then 1 file johan On 6/23/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > with the current 1.3 if you hold page references in other pages the > the main pag is not serialized as a whole. Every page reference w

Re: [Wicket-user] A trivial problem with tables that i can't manage

2007-06-23 Thread Johannes Schneider
Hi, I am a Wicket Newbie - so I'm sure this isn't he best solution I have... I see two easy solutions: 1: Convert your data into some sort of row model. You could create some sort of "strategy" that is used as model for the item. Each strategy resolves one value of the customer. Instead of ite

Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Eelco Hillenius
> with the current 1.3 if you hold page references in other pages the > the main pag is not serialized as a whole. Every page reference we > come across is saved by itself in its own file. So pages are not saved > twice or multiply in more then one file. The only thing i dont know > currenlty is if

Re: [Wicket-user] setBorderBodyContainer in 1.3

2007-06-23 Thread Juergen Donnerstag
please keep the jdonnerstag for wicket. thanks Juergen On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > I asked the infrastructure group already. Unfortunately without > > success. The reason being that both are "in use" (even if

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Juergen Donnerstag
Jan, the problem is that though you can attach attribute modifier (that is what HeaderContributor is as well) to a Page (or WebPage), it'll not work. WebPage doesn't have a tag. Since there is no tag, the attribute modifier are not invoked, hence the nothing gets added to the header section. Solu

[Wicket-user] Forms with Panels question

2007-06-23 Thread Erik Dreyer
Hi, I'm loving Wicket, but still have a bit to learn. I didn't find any answers when searching for an answer to my questions, so here they are. BTW, I'm using Wicket 1.3 as built from SVN (up to date as of 6/23). I have a panel that I'd like to include in multiple _different_ forms. The panel

[Wicket-user] A trivial problem with tables that i can't manage

2007-06-23 Thread Landry Soules
Hello, I have a very simple problem: i just want to display a table of customers, with some infos on each entry. No problem to achieve that when you deal with one record per line. The problem is that i want to display 4 customers on each row, as this : = Custo

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > class PersonModel extends LoadableDetachableModel { > >@SpringBean > >private PersonDao dao; > >private final long id; > >public PersonModel(long id) { > > this.id=id; > > InjectorHolder.getInjector().inject(thi

Re: [Wicket-user] AjaxFallackDataTables with fixed columns width

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Christian Alejandro Marquez Grabia <[EMAIL PROTECTED]> wrote: Hi everyone, I'm kinda new to wicket and I'm trying to get closer to it =) here comes the question... I was wondering if there is a way to set the width of the columns for the DataTable when it's constructed as defining t

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: > > > > > > > > On 6/23/07, Flemming Boller < [EMAIL PROTECTED]> wrote: > > > > > > On 6/23/07, Robert . < [EMAIL PROTECTED] > wrote: > > > >

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Ryan Sonnek
I don't want to sound like a databinder basher, but I want to make this solution very *non-invasive*. I don't want to have to implement specific interfaces or use specific components for this to work. My solution works with "standard" wicket components and property models. No need to change you

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Ryan Sonnek
this might be nice too onbeforerender(component c) { if (c.hasbeenrednered()) return; ... } Good catch! I'm still relatively new to wicket's rendering lifecycle. Thanks for the help and let me know if you see other "optimizations". ---

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Ryan Sonnek
I've looked at databinder in the past, and although it may be useful, I think it's a bit heavyweight for what I'm trying to achieve. In my opinion, database access should be abstracted away from the UI layer altogether, which leaves the goals of databinder questionable. Does anyone remember the

[Wicket-user] AjaxFallackDataTables with fixed columns width

2007-06-23 Thread Christian Alejandro Marquez Grabia
Hi everyone, I'm kinda new to wicket and I'm trying to get closer to it =) here comes the question... I was wondering if there is a way to set the width of the columns for the DataTable when it's constructed as defining the columns element, I've seen the possibility of doing this with one of the

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: > > > > On 6/23/07, Flemming Boller < [EMAIL PROTECTED]> wrote: > > > > On 6/23/07, Robert . < [EMAIL PROTECTED] > wrote: > > > > There is no silverbullet here. Each solution has its drawbacks. >

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: Just sending out a quick "release announcement" for a new Hibernate/Wicket integration in the wicketstuff project. The HibernateAnnotationComponentConfigurator automatically configures a wicket component based on the POJO's Hibernate annotation

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: Just sending out a quick "release announcement" for a new Hibernate/Wicket integration in the wicketstuff project. The HibernateAnnotationComponentConfigurator automatically configures a wicket component based on the POJO's Hibernate annotation

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: On 6/23/07, Flemming Boller <[EMAIL PROTECTED]> wrote: > > On 6/23/07, Robert . <[EMAIL PROTECTED] > wrote: > > > One thing I am struggling with is where I should put my DAO's and data > > > > services. I know about the @SpringBean annotation for

Re: [Wicket-user] Wicket Fields with HTML Fields

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Edi <[EMAIL PROTECTED]> wrote: Hello, I have one wicket page. It contains two text boxes (I have mentioned wicket:id). If I create text box in wicket page, wicket:id should be mentioned in Java file also. Right? In this wicket page, I have created 2 html text box also. But here no

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
On 6/23/07, Flemming Boller <[EMAIL PROTECTED]> wrote: On 6/23/07, Robert . <[EMAIL PROTECTED] > wrote: > One thing I am struggling with is where I should put my DAO's and data > services. I know about the @SpringBean annotation for components, but > how should I use those in classes such as De

Re: [Wicket-user] setBorderBodyContainer in 1.3

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: I asked the infrastructure group already. Unfortunately without success. The reason being that both are "in use" (even if it is some very old issue I raised in other project some years ago and which is closed already). But I give it anoth

Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-23 Thread Igor Vaynberg
On 6/22/07, rc.china <[EMAIL PROTECTED]> wrote: Scott Swank wrote: > > I've often seen folk want what I see as "abstract" tags that can then > be implemented by subclasses. The way I've handled that for our > application is by creating an abstract component (say it's a page) > with div tags

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Ryan Sonnek
The current implementation uses: * NotNull annotation automatically sets the component to be required (setRequired(true)) * Length annotation automatically adds a MaxLength validator *and* adds html "maxlength" attribute to the markup. If there are other annotations that would be useful, let me k

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Paolo Di Tommaso
This sounds very cool! Does it work with Hibernate Validator Annotations also ? Thanks, Paolo On 6/23/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: Just sending out a quick "release announcement" for a new Hibernate/Wicket integration in the wicketstuff project. The HibernateAnnotationComponentC

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Flemming Boller
Hi I have put my answer in below you mail /Flemming On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: Hi, I'm trying to make a project using Hibernate, Spring and Wicket. I am have some conceptual difficulties. Would love if someone could share their knowledge or point me in the right direction

[Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
Hi, I'm trying to make a project using Hibernate, Spring and Wicket. I am have some conceptual difficulties. Would love if someone could share their knowledge or point me in the right direction. One thing I am struggling with is where I should put my DAO's and data services. I know about the @Spr

Re: [Wicket-user] Running Wicket application in Batch mode

2007-06-23 Thread Jean-Baptiste Quenot
* Srinu Sunkara: > I just getting started with wicket and working on building a web > application. So far so good. However, now we needed to build > some nightly scripts and send an email with some data in a web > page format. > > Can you tell me if we can run a java class in batch mode

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-06-23 Thread Jean-Baptiste Quenot
* Srinu Sunkara: > Hi - I am trying to get the HTML source code of a web page with > in the program (so that I can send this in an email). Can some > one tell me how can I get the HTML source. Sure. Processing a Wicket page and sending the result to a buffer can be achieved through StringReq

Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)

2007-06-23 Thread Jean-Baptiste Quenot
* Peter Thomas: > Sure Eelco, JIRA logged: WICKET-685 > > On 6/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > >Could you describe the problems in a JIRA issue? Thanks. Please avoid to reply on top! I commented on the issue, and finally marked it as invalid. Here is the comment, in case

Re: [Wicket-user] How can we change a component dynamically in Wicket ?

2007-06-23 Thread Jean-Baptiste Quenot
* rc.china: > > It seems that Lable use < s p a n > tag while TextField use < i n p u t > tag > and that they conflict. I have changed the code like this and it still does > not work properly. Does anyone have any workaround ? Thank you! > > public class Login extends WebPage { > private

[Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Ryan Sonnek
Just sending out a quick "release announcement" for a new Hibernate/Wicket integration in the wicketstuff project. The HibernateAnnotationComponentConfigurator automatically configures a wicket component based on the POJO's Hibernate annotations. one especially cool feature is that you can regis

Re: [Wicket-user] modifying component from IComponentOnBeforeRenderListener

2007-06-23 Thread Ryan Sonnek
Looks like I got the problem resolved. I was trying to attach a Behavior from the IComponentOnBeforeRenderListener in order to setRequired which throws an exception. When I just setRequired from within the listener it works fine. Thanks for the help. Ryan On 6/22/07, Ryan Sonnek <[EMAIL PROTEC

Re: [Wicket-user] Unit testing - updating a DropDownChoice with Ajax

2007-06-23 Thread Jean-Baptiste Quenot
* glr: > I tried using WicketTester with FormTester but I cannot have the > model of the first DropDownChoice updated as a response to > making a selection in it. As a result, when the OnEvent handler > of the AjaxFormComponentUpdatingBehavior fires, it looks as if > there was no selectio

Re: [Wicket-user] Running Wicket application in Batch mode

2007-06-23 Thread Xavier Hanin
Hi, I haven't tried it myself so far, but I asked quite the same question some time ago and people suggested using the WicketTester class to render a page outside an HTTP request. HTH, Xavier On 6/23/07, Srinu Sunkara <[EMAIL PROTECTED]> wrote: Hi - I don't know if this is a dummy question.

[Wicket-user] Running Wicket application in Batch mode

2007-06-23 Thread Srinu Sunkara
Hi - I don't know if this is a dummy question. Sorry for being so. I just getting started with wicket and working on building a web application. So far so good. However, now we needed to build some nightly scripts and send an email with some data in a web page format. Can you tell me if we can

[Wicket-user] Wicket Fields with HTML Fields

2007-06-23 Thread Edi
Hello, I have one wicket page. It contains two text boxes (I have mentioned wicket:id). If I create text box in wicket page, wicket:id should be mentioned in Java file also. Right? In this wicket page, I have created 2 html text box also. But here no need to mention text name to java file. Corr

[Wicket-user] How to get HTML source code from a wicket page

2007-06-23 Thread Srinu Sunkara
Hi - I am trying to get the HTML source code of a web page with in the program (so that I can send this in an email). Can some one tell me how can I get the HTML source. Thank you, -Srini - Choose the right car based on your needs. Check out Yahoo! Aut

Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Johan Compagner
with the current 1.3 if you hold page references in other pages the the main pag is not serialized as a whole. Every page reference we come across is saved by itself in its own file. So pages are not saved twice or multiply in more then one file. The only thing i dont know currenlty is if PageX is

Re: [Wicket-user] setBorderBodyContainer in 1.3

2007-06-23 Thread Juergen Donnerstag
I asked the infrastructure group already. Unfortunately without success. The reason being that both are "in use" (even if it is some very old issue I raised in other project some years ago and which is closed already). But I give it another try. Juergen On 6/22/07, Igor Vaynberg <[EMAIL PROTECTED