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

2007-06-24 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

Re: [Wicket-user] [Fwd: Re: html wicket:id=html CSS]

2007-06-24 Thread Jan Kriesten
hi juergen, Solution: you simply must attach HeaderContributor.forCss to any other of your components (e.g. html in your code) hmm, that i can do for own components, it'll break components like the wicket tree, too! also, this doesn't make sense, as when there is _no_ wicket-id in the

Re: [Wicket-user] [Fwd: Re: html wicket:id=html CSS]

2007-06-24 Thread Juergen Donnerstag
I added my comment to the other thread obviously discussing the very same topic. Juergen On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote: 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:

[Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Peter Thomas
Hi, I'm trying to create a kind of expression builder UI, so I was thinking of a ListView and there is this add button on the page that will add an item to the List. I am able to do this over Ajax, and I am aware that to refresh a ListView over Ajax, you have to target a container of the

Re: [Wicket-user] [Fwd: Re: html wicket:id=html CSS]

2007-06-24 Thread Jan Kriesten
hi juergen, I added my comment to the other thread obviously discussing the very same topic. yes, have seen that. what i still don't understand is, why did it work when there was no wicket:id in the html? only the wicket:id broke header-contribution. regards, --- jan.

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

2007-06-24 Thread Juergen Donnerstag
All behaviors are invoked from Component.onComponentTag(). When a web page renders it does not call onComponentTag() for the page, as the page has no associated markup tag. That means, though you can do add(HeaderContributor.forCss()) (assume you are adding to a page) nothing will happen. The CSS

Re: [Wicket-user] [Fwd: Re: html wicket:id=html CSS]

2007-06-24 Thread Juergen Donnerstag
yes, this a valid comment. The html component is causing the problem. The header contribution code has obviously been designed in a way that it expects to be the very first contribution to the pages output markup. With the html component it no longer is, since the html tag must be rendered first

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

2007-06-24 Thread Juergen Donnerstag
Jan - in the other thread - quite rightly pointed out that HeaderContribution does work on pages. It only does not work if a component is attached to html. What makes html different is that it must partially be rendered befor the head section. Why exactly a component starts rendering before the

Re: [Wicket-user] html wicket:id=html CSS]

2007-06-24 Thread Jan Kriesten
hi juergen, yes, this a valid comment. The html component is causing the problem. The header contribution code has obviously been designed in a way that it expects to be the very first contribution to the pages output markup. With the html component it no longer is, since the html tag must

[Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread ZedroS Schwart
Hi all I'm using my brand new vista pc to extract Wicket and I've 8 files too long to be extracted, like for example AdminAnnotationsBookmarkablePage. I'm trying to extract them under d:\wicket, so the root path isn't that big. Do you have any clue on what to do ? thanks in advance

Re: [Wicket-user] html wicket:id=html CSS]

2007-06-24 Thread Juergen Donnerstag
On 6/24/07, Jan Kriesten [EMAIL PROTECTED] wrote: hi juergen, yes, this a valid comment. The html component is causing the problem. The header contribution code has obviously been designed in a way that it expects to be the very first contribution to the pages output markup. With the

Re: [Wicket-user] html wicket:id=html CSS]

2007-06-24 Thread Jan Kriesten
hi juergen, I've reverted the change to WebPage, so it should work. And I think a found the reason why HtmlHeaderContainer didn't work as expected. I changed that too, all junit tests are still fine. I'll committ it in a minute. yep, great job! seems to work fine now - thanks! :-) you've

Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread C. Bergström
ZedroS Schwart wrote: Hi all I'm using my brand new vista pc to extract Wicket and I've 8 files too long to be extracted, like for example AdminAnnotationsBookmarkablePage. I'm trying to extract them under d:\wicket, so the root path isn't that big. Do you have any clue on what to do ?

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Matej Knopp
You can create the DOM element using custom javascript (it's very simple, basic DOM manipulation) invoked from ajaxRequestTarget.prependJavascript(). Be sure that the id attribute of new DOM element is same as new list item id. Then just render the newly created item (target.addComponent) which

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

2007-06-24 Thread Matej Knopp
But add(HeaderContributor.forCss()) does not modify component tag. It affects header contribution. Header contribution and component tag modifications are two different things. page.add(HeaderContributor.forCss()) works as long as we don't have that check that throws exception when you add

Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread ZedroS Schwart
I'm planning to install ubuntu as well, but on a RAID + Wifi pc it's not that easy. For I'm trying to do, it's really simple : I've downloaded apache-wicket-1.3.0-incubating-beta1.zip and I just would like to unzip it. And then, after a long while but that's the Vista way isnit, I'm told that 8

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

2007-06-24 Thread Juergen Donnerstag
please see the other thread Juergen On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote: But add(HeaderContributor.forCss()) does not modify component tag. It affects header contribution. Header contribution and component tag modifications are two different things.

Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread Frank Bille
Have you tried other zip tools? Like 7-zip? www.7-zip.org Frank On 6/24/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I'm planning to install ubuntu as well, but on a RAID + Wifi pc it's not that easy. For I'm trying to do, it's really simple : I've downloaded

Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread C. Bergström
ZedroS Schwart wrote: On 6/24/07, C. Bergström [EMAIL PROTECTED] wrote: ZedroS Schwart wrote: Hi all I'm using my brand new vista pc to extract Wicket and I've 8 files too long to be extracted, like for example AdminAnnotationsBookmarkablePage. I'm trying to extract them under

Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread Thies Edeling
NTFS has a 255 character limit on the full path + filename. However the longest path in the 1.3 zip is under 200 characters long so when you extract to the root of a drive you shouldn't run into any problems, at least I didn't when extracting under XP. Check if the full path of the files you

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Timo Rantalaiho
On Sun, 24 Jun 2007, Peter Thomas wrote: I haven't used repeaters that much, but would newItem() be the right way to create a new Item? Anyway, I am now stuck because to ensure that the id of the DOM element is same as the newly created item, I have to call getMarkupId() on the item then I

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Peter Thomas
On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote: You can create the DOM element using custom javascript (it's very simple, basic DOM manipulation) invoked from ajaxRequestTarget.prependJavascript(). Be sure that the id attribute of new DOM element is same as new list item id. Then just render

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Timo Rantalaiho
On Sun, 24 Jun 2007, Timo Rantalaiho wrote: Maybe you can override getMarkupId() for your item components to return e.g. myId + domainObject.getdId() or something myId- + domainObject.getId() surely. - Timmo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Peter Thomas
On 6/24/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Sun, 24 Jun 2007, Peter Thomas wrote: I haven't used repeaters that much, but would newItem() be the right way to create a new Item? Anyway, I am now stuck because to ensure that the id of the DOM element is same as the newly created

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

2007-06-24 Thread Rüdiger Schulz
2007/6/23, Robert . [EMAIL PROTECTED]: this is better because if you use applications to hold non-proxied daos you have to be very careful not to leave a reference to it anywhere. because dependencies injected throgh @SpringBean are special proxies you dont have to worry about it because the

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Matej Knopp
There's nothing javascript heavy on this :) You add new item like this: String id = rv.newChildId(); Item item = rv.newItem(id, index, model); rv.populateItem(item); rv.add(item); (where rv is the refreshing view. Some of the methods might be protected, so you will need to subclass the view, but

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

2007-06-24 Thread Martijn Dashorst
And if you have about 100 DAO's, then your application class will get bloated. Martijn -- BREAKING NEWS: Wicket joins the Apache Software Foundation as Apache Wicket Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now!

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Peter Thomas
On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote: There's nothing javascript heavy on this :) You add new item like this: String id = rv.newChildId(); Item item = rv.newItem(id, index, model); rv.populateItem(item); rv.add(item); (where rv is the refreshing view. Some of the methods might be

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Matej Knopp
As far as I know id is a property of DOMElement, so there should be no need to call setAttribute. -Matej On 6/24/07, Peter Thomas [EMAIL PROTECTED] wrote: On 6/24/07, Peter Thomas [EMAIL PROTECTED] wrote: On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote: There's nothing javascript heavy

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Peter Thomas
On 6/24/07, Peter Thomas [EMAIL PROTECTED] wrote: On 6/24/07, Matej Knopp [EMAIL PROTECTED] wrote: There's nothing javascript heavy on this :) You add new item like this: String id = rv.newChildId(); Item item = rv.newItem(id, index, model); rv.populateItem(item); rv.add(item); (where

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

2007-06-24 Thread John Krasnay
OK, so WicketTester is the way to go. JBQ's response implied that there was a more direct way to do it, but I'll give WicketTester a try. Thanks, jk On Sat, Jun 23, 2007 at 08:05:58PM -0700, Igor Vaynberg wrote: see our tests. all the mock setup is done for you. our tests simply call a

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

2007-06-24 Thread Jean-Baptiste Quenot
* John Krasnay: OK, so WicketTester is the way to go. JBQ's response implied that there was a more direct way to do it, but I'll give WicketTester a try. Yes there is a more direct way. I'm sorry I made an error, I meant StringResponse, not StringRequestTarget. I spent a few minutes writing

Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread Gabor Szokoli
On 6/24/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I'm planning to install ubuntu as well, but on a RAID + Wifi pc it's not that easy. (sidenote: Wifi should not be a problem with Ubuntu. The install CD is a live CD as well, so you can verify device support without side effects) For I'm

Re: [Wicket-user] Updating link attributes from HeaderContributor

2007-06-24 Thread Igor Vaynberg
On 6/23/07, Tauren Mills [EMAIL PROTECTED] wrote: 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: link rel=alternate stylesheet type=text/css href=large.css

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

2007-06-24 Thread Robert .
Thanks for your replies everyone. I think I can make an informed decision now about what to do in each case. I like the flexibility of the @SpringBean and the simplicity of the application object, probably with seperate objects holding the DAOs and services, so not to bloat the application

Re: [Wicket-user] Updating link attributes from HeaderContributor

2007-06-24 Thread Tauren Mills
Igor, Thanks for the solution! I'll go that route for now. However, I'm not convinced that supporting alternate stylesheets is outside the scope of wicket core. Mozilla browsers support switching to alternate stylesheets from a menu option:

Re: [Wicket-user] Updating link attributes from HeaderContributor

2007-06-24 Thread Igor Vaynberg
On 6/24/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Thanks for the solution! I'll go that route for now. However, I'm not convinced that supporting alternate stylesheets is outside the scope of wicket core. Mozilla browsers support switching to alternate stylesheets from a menu option:

Re: [Wicket-user] Updating link attributes from HeaderContributor

2007-06-24 Thread Igor Vaynberg
On 6/24/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Thanks for the solution! I'll go that route for now. However, I'm not convinced that supporting alternate stylesheets is outside the scope of wicket core. Mozilla browsers support switching to alternate stylesheets from a menu option:

Re: [Wicket-user] Updating link attributes from HeaderContributor

2007-06-24 Thread Tauren Mills
OK, that makes more sense then. I wasn't considering the memory issue. And I already have things just about ready to go as a self contained component. My plan was to contribute it to wicket-stuff. I'll get the custom HeaderContributor finished, and then will do so. Thanks again for the help!

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-24 Thread Matej Knopp
Hi, I noticed that you get the field like this: String fieldName = propertyModel.getPropertyExpression(); Class type = propertyModel.getTarget().getClass(); ... Field field = type.getDeclaredField(fieldName); ... That means that the lookup is done on every configuration. Also will this work for

[Wicket-user] Security comparison

2007-06-24 Thread Maurice Marrink
All, I started a little comparison of Wicket security frameworks on the Wicket-Stuff wiki: http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison As the article states it is not about who's framework is better but about giving a summary of the facts. That being said, I

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-24 Thread Ryan Sonnek
Thanks for the advice Matej! The current implementation does *not* support OGNL type nested expressions. I even have a unit test for it right now. =) I'll gladly look into the IPropertyReflectionAwareModel interface to see if I can improve on this. I'm not too concerned about this lookup

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

2007-06-24 Thread John Krasnay
Ah, that makes more sense. Thanks for the clarification and example. jk On Sun, Jun 24, 2007 at 05:15:14PM +0200, Jean-Baptiste Quenot wrote: Yes there is a more direct way. I'm sorry I made an error, I meant StringResponse, not StringRequestTarget. I spent a few minutes writing the

[Wicket-user] dynamic component generation with no placeholder in markup/html

2007-06-24 Thread James Law
Hi, I am currently evaluating using wicket on my next project. So far I am really impressed with wicket! Quick question- After using it for a few days, it seems there must always be items in the markup(html) for each associated component in a webpage java file. In some screens we have built in

Re: [Wicket-user] dynamic component generation with no placeholder in markup/html

2007-06-24 Thread Igor Vaynberg
On 6/24/07, James Law [EMAIL PROTECTED] wrote: Hi, I am currently evaluating using wicket on my next project. So far I am really impressed with wicket! Quick question- After using it for a few days, it seems there must always be items in the markup(html) for each associated component in a