Re: conditional markup change

2007-08-24 Thread Igor Vaynberg
there are a few ways to do this one is to add both and override isvisible() on them to conditionally hide one or the other another way would be for that link to replace one with the other -igor On 8/23/07, Konstantin Ignatyev [EMAIL PROTECTED] wrote: I need to change presentation

Re: Can Panel replace itself ?

2007-08-24 Thread Artur W.
igor.vaynberg wrote: does it do that in all browsers? also call view.setreuseitems(true); I've checked it with ff2 and ie7. Also with Wicket1.3beta2 and beta3. I've set view.setreuseitems(true); The problem is that the wicket generate span tags for panels after body tag and before the

Re: DownloadLink hanging

2007-08-24 Thread Thomas Singer
Done: https://issues.apache.org/jira/browse/WICKET-878 Tom Igor Vaynberg wrote: yep -igor On 8/23/07, Thomas Singer [EMAIL PROTECTED] wrote: Should I report a bug in JIRA? -- Best regards, Thomas Singer _ SyntEvo GmbH Brunnfeld 11 83404 Ainring Germany www.syntevo.com Igor

conditional markup change

2007-08-24 Thread Konstantin Ignatyev
I need to change presentation dynamically depending on object status and I can do it with conditionally using different panels like this: if( getWSSession().getVisit().isSaved( v.getId() ) ){ add( new VehicleUncompareControl( compareControl, new Model( v ), new Component[]{ ajaxTarget,

Re: Add a choice to a DropDownChoice

2007-08-24 Thread Nino Saturnino Martinez Vazquez Wael
Argh sorry for the quick answer.. Instead of using a list to supply options for the dropdown you'll need to use a model, and then add the option by adding it to the modelobject.. This is how I've done it. Afterwards you can either poke model.changed or model.setobject with the list. regards

Re: Add a choice to a DropDownChoice

2007-08-24 Thread Nino Saturnino Martinez Vazquez Wael
Sure just add it to the model/bean:) andrea pantaleoni wrote: Hi, I'm creating a DropDownChoice in this way: DropDownChoice dropDownChoice = new DropDownChoice(id,PropertyModel(beanName,propertyName),List,renderer) Now I want to add a choice with key 0 and Value (empty string) I was looking

Add a choice to a DropDownChoice

2007-08-24 Thread andrea pantaleoni
Hi, I'm creating a DropDownChoice in this way: DropDownChoice dropDownChoice = new DropDownChoice(id,PropertyModel(beanName,propertyName),List,renderer) Now I want to add a choice with key 0 and Value (empty string) I was looking for the API and I expected to find something like

Re: DownloadLink hanging

2007-08-24 Thread Jean-Baptiste Quenot
* Igor Vaynberg: yep, DownloadLinks will block because requests to the same page are serialized. Igor, that's a good point. Thomas, did you try to follow the approach shown in the static pages examples? See http://wicketstuff.org/wicket13/staticpages/ -- Jean-Baptiste Quenot aka

Re: keyboard shortcuts in wicket ?

2007-08-24 Thread Nino Saturnino Martinez Vazquez Wael
Sorry for the readme i've fixed it. I used the gmap2 project as template, as I remember it. I belive that the test failing are because some of the stuff are not done yet, so it should continue to do so until its working. regards Nino Jean-Baptiste Quenot wrote: * Nino Saturnino Martinez

Re: creating RSS feeds with Wicket

2007-08-24 Thread Jean-Baptiste Quenot
* Ryan Sonnek: http://www.jroller.com/wireframe/entry/wicket_and_rss_feeds Just wanted to post an announcement that there's a new wicket stuff project (wicketstuff-rome) to allow for creation of RSS (or Atom) feeds from within Wicket. I've been using it for the past several weeks and it's

Re: Component Factory and code against interface

2007-08-24 Thread Johan Compagner
We can do that because all our components implement specific interfaces which changes the state of the component. For example interface ILabelMethods { setBackground(Color color) setForeground(Color color) // and so on } and all those implementations do record the change johan On

Re: Wicket and Spring MVC compared.

2007-08-24 Thread Nino Saturnino Martinez Vazquez Wael
I think it's looking okay, did you pick up the thing mentioned on the wiki? You are not using ajax in Spring MVC? It would be wrong to just plain compare non ajax to ajax.. Also you could write to the Jmeter list, to get a broader view of your test plan. Also you'll post results here ?

Re: Component Factory and code against interface

2007-08-24 Thread Sam Hough
Thanks Johan, Glad it wasn't a totally silly idea. Any top tips or problems you can share? Nice that Igor's approach by its very nature avoids sending the same component more than once. Trees are great ;) Johan Compagner wrote: this is how we also do it. Have a changes recorder per

Re: Wicket and Spring MVC compared.

2007-08-24 Thread Vincenzo Vitale
Hi Nino, at the moment I don't want to compare Ajax so in the applications I wrote for testing it's not used. Sure, I will post the results here... probably the next week... Attached the JMeter scripts I wrote (it would be better only one script but at the moment the urls used are different). I

Re: Wicket and Spring MVC compared.

2007-08-24 Thread Matej Knopp
There is not much point in comparing Wicket to Spring MVC. Spring MVC is a very simple action based framework with very little functionality (and probably minimal overhead). So what you would really be comparing is Wicket to JSP (assuming you use JSP as your view layer). Now again, Wicket is a

AjaxEditableLabel onEdit

2007-08-24 Thread fhagen
Hi, in my testapp i'm trying to use an AjaxEditableLabel. When I put some data in, it works fine but now comes my Problem. My label is as Subclass of AjaxEditableLabel and so I tried to implement the onEdit() function. The thing is, that the displayed values might calculated by a formula in

Re: Wicket and Spring MVC compared.

2007-08-24 Thread Vincenzo Vitale
Yes I see your point and you are absolutely right but please consider that a lot of companies (included mine) have been using Spring MVC for a long time and there are a lot of projects already in production using that technology and working fine with the IT infrastructure now available. Of course

Re: conditional markup change

2007-08-24 Thread Oleg Taranenko
Hello Konstantin, Your code snippet is from panel constructor, is not it? So far it executed only first time, by creating page! Your need explicitly use in the link handler replaceWith() method. See Component's javadoc. Cheers, Oleg. Friday, August 24, 2007, 8:46:01 AM, you wrote: I need to

Re[2]: [Wicket-user] Wicket in Action now available through Manning Early Access Program

2007-08-24 Thread Oleg Taranenko
moreover the payment through a paypal account, that withdraws money from card emitted by a russian bank, failed too! :| Friday, August 24, 2007, 1:36:25 PM, you wrote: Well, i had the same bad luck as India is not in the choice. They asked me to get a paypal account -swaroop On

Re: Alternative to Wicket data binding

2007-08-24 Thread Matej Knopp
Hi, there's nothing wrong with yor approach, actually, it's more solid than using (Compound)PropertyModel because you get full refactoring support. The downside is of course code verbosity. Unless java get property expression there's not much we can do about it though :-/ -Matej On 8/24/07, Sam

Re: Constructor of Component not DRY?

2007-08-24 Thread Johan Maasing
I't really does not matter much but I'm with Eelco and Johan on this. I prefer not to allow null values in the constructor. At least not if there is a constructor with fewer parameters that can be used instead. So I prefer to chain towards the simpler constructor if possible. On 8/24/07, Martin

Re: creating RSS feeds with Wicket

2007-08-24 Thread Ryan Sonnek
That's a really good question. If you look at the source for my solution, it's a very lightweight wrapper around the ROME RSS library. I don't have any code that's setting response headers. If you have a solution, I'd be happy to incorporate it into the FeedPage. On 8/24/07, thijs [EMAIL

Re: replace Panel inside a Form

2007-08-24 Thread Florian Sperber
Hi Benjamin, where is the Panel einsatzPanel defined? Maybe it helps defining it as a Class property? Kind regards Florian Sperber Benjamin Ernst wrote: Hi, I am trying to replace a Panel, which is inside a Form, which is inside a Page, which is inside a ModalWindow. The first time it works

Re: setEnabled() and complex components

2007-08-24 Thread Federico Fanton
On Fri, 24 Aug 2007 12:24:46 +0200 Federico Fanton [EMAIL PROTECTED] wrote: I was wondering, is there a way to cleanly enable/disable complex components such as DateFields and Palettes? I see that Component.setEnabled() is final so it cannot be overridden to handle special cases..

Re: Alternative to Wicket data binding

2007-08-24 Thread Sam Hough
Thanks Matej, Is this http://wicketstuff.org/wicket13doc/org/apache/wicket/model/PropertyModel.html PropertyModel javadoc out of date where it says that Note that the property resolver by default provides access to private members and methods. If guaranteeing encapsulation of the target

replace Panel inside a Form

2007-08-24 Thread Benjamin Ernst
Hi, I am trying to replace a Panel, which is inside a Form, which is inside a Page, which is inside a ModalWindow. The first time it works fine, but when I want to replace it a second time, the Panel has no parent. Here is the code: listItem.add(new AjaxButton(pflege, MitarbeiterForm.this) {

Re: Re[2]: [Wicket-user] Wicket in Action now available through Manning Early Access Program

2007-08-24 Thread Gabor Szokoli
On 8/24/07, Oleg Taranenko [EMAIL PROTECTED] wrote: moreover the payment through a paypal account, that withdraws money from card emitted by a russian bank, failed too! :| They seem to accept visa, mastercard and AMEX, you don't have to use paypal. Gabor Szokoli

Re: Alternative to Wicket data binding

2007-08-24 Thread Matej Knopp
It's not out of date. PropertyModel provides access to privdate properties and it is completely intetional. The reason is actually to provide better encapsulation, because if you e.g. bind your component to a property of that component, you don't have to provide public setters and getters for that

Re: Alternative to Wicket data binding

2007-08-24 Thread Matej Knopp
Well, the private acessing functionality was mostly build with situation like private String myField; new PropertyModel(this, myField); i.e. without the setters and getters functionality. But I don't see reason why should getters and setters be ignored, even if they are private. Johan? -Matej

Re: creating RSS feeds with Wicket

2007-08-24 Thread Jean-Baptiste Quenot
* Ryan Sonnek: I'm not familiar with IResourceStream and using a WebPage approach has allowed for me to have great control over several aspects including: * url mount points * url parameter strategies * possibly configuring the response Expires/Cache headers? Do you have any examples of

Re: Add a choice to a DropDownChoice

2007-08-24 Thread Igor Vaynberg
class mypanel extends panel { private List options; mypanel () { add(new dropdownchoice(id,model, new PropertyModel(this, options),...);} now that it is using a property model to retrieve its choices just add/remove items from the options list -igor On 8/24/07, andrea pantaleoni [EMAIL

Re: Can Panel replace itself ?

2007-08-24 Thread Igor Vaynberg
its happening because you are creating invalid html you cannot have a span between a tr and td, so you just need to adjust how you are outputting the markup. change testpage.html to use the following and it will work: body table style=border-collapse: collapse; empty-cells: show;

Re: Wicket and Spring MVC compared.

2007-08-24 Thread Igor Vaynberg
who cares, he says he has a database in there so the tests should be pretty even. for all we know wicket might be five times slower then spring mvc! and it may very well be because spring mvc is so simple in comparison. but who cares? a five fold improvement of something that is only five percent

Re: Wicket and Spring MVC compared.

2007-08-24 Thread Matej Knopp
You should also make sure that you are using DiskPageStore as pagestore. -Matej On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: who cares, he says he has a database in there so the tests should be pretty even. for all we know wicket might be five times slower then spring mvc! and it may

Newbie questions

2007-08-24 Thread Alex Shneyderman
I wonder if there is any documentation as to how the rendering process works How do I go from Component graph - html associated with the page? And what is the model's role there. I have been reading and re-reading the getting started manual, unfortunately it is an extremely incomplete document,

Re: Component Factory and code against interface

2007-08-24 Thread Igor Vaynberg
the ui layer is generally not portable. if you start building your own abstraction to make it portable you will end up with a pretty big mess because you will be working against whatever framework you are using and eventually that abstraction will turn into a framework itself. -igor On 8/24/07,

Re: {wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-24 Thread Nino Saturnino Martinez Vazquez Wael
Now available from badongo to avoid cheesy IE problems http://www.badongo.com/file/4142529 Nino Saturnino Martinez Vazquez Wael wrote: Argh had made an error in the previous quickstart that made the dropdown to be broken.. This version however displays the problem as it are.

Re: Newbie questions

2007-08-24 Thread Igor Vaynberg
On 8/24/07, Alex Shneyderman [EMAIL PROTECTED] wrote: I wonder if there is any documentation as to how the rendering process works How do I go from Component graph - html associated with the page? the basic answer is that wicket traverses the component graph and calls various render methods

Re: [Wicket-user] Wicket in Action now available through Manning Early Access Program

2007-08-24 Thread Eelco Hillenius
On 8/24/07, Swaroop Belur [EMAIL PROTECTED] wrote: Well, i had the same bad luck as India is not in the choice. They asked me to get a paypal account Great. Largest software country in the world by now? So does it work with paypal then? For all countries? Eelco

Re: Component Factory and code against interface

2007-08-24 Thread Eelco Hillenius
On 8/24/07, Johan Compagner [EMAIL PROTECTED] wrote: We can do that because all our components implement specific interfaces which changes the state of the component. For example interface ILabelMethods { setBackground(Color color) setForeground(Color color) // and so on }

Re: Component Factory and code against interface

2007-08-24 Thread Sam Hough
Igor, We are not really trying to make it portable or our own abstraction. The aim would be a subset of the non-ajax Wicket API. In my comfortable ignorance it is a nice way to keep track of dirty components, hide details of ajax/non-ajax and let our tech lead keep firm control over which bits

AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Patrick Angeles
I noticed this in the examples: http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.AjaxDataTablePage Changing the sort order does not seem to take you to the first page... I stepped through the code, and it looks like it should

Re: DataView and onComponentTag

2007-08-24 Thread Eelco Hillenius
On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: dataview doesnt have its own markup, it delegates it to its direct children. so you want to put that oncomponenttag into the item the dataview creates. override dataview.newitem() and override oncomponenttag on the returned item. It would

Re: DataView and onComponentTag

2007-08-24 Thread Igor Vaynberg
or we can forward the call to the repeatermore intuitive for newbies less intuitive for the rest :) -igor On 8/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: dataview doesnt have its own markup, it delegates it to its direct children.

Re: DataView and onComponentTag

2007-08-24 Thread Eelco Hillenius
On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: or we can forward the call to the repeatermore intuitive for newbies less intuitive for the rest :) The items would forward the calls? Hmmm. Sounds a bit dangerous/ confusing. Eelco

DataView and onComponentTag

2007-08-24 Thread Johannes Schneider
Hi, I use a DataView to create a list (ulli). The DataView is used to render the li-tags. Now I try to add a custom id value to the li tag if some circumstances are fulfilled: @Override protected void onComponentTag( @NotNull ComponentTag tag ) { super.onComponentTag( tag );

Re: AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Igor Vaynberg
oh, and btw http://wicketstuff.org/wicket13 is where the live examples are. wicket-library isnt maintained and hasnt been for a while, not sure why its still up and running. -igor On 8/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: thanks, fixed in trunk -igor On 8/24/07, Patrick Angeles

Re: DataView and onComponentTag

2007-08-24 Thread Johannes Schneider
Thanks, I will try that. And please make those methods final... Regardy, Johannes Schneider Igor Vaynberg wrote: dataview doesnt have its own markup, it delegates it to its direct children. so you want to put that oncomponenttag into the item the dataview creates. override

Ajax version of DropDownChice/Select

2007-08-24 Thread Oleg Taranenko
Hi * *, I can not find subj neither in wicket nor in extensions codabases. Must I write it or there is a workaround (AjaxLink?) Cheers, Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Ajax version of DropDownChice/Select

2007-08-24 Thread Igor Vaynberg
you didnt look very hard than http://wicketstuff.org/wicket13/ajax/choice.1 -igor On 8/24/07, Oleg Taranenko [EMAIL PROTECTED] wrote: Hi * *, I can not find subj neither in wicket nor in extensions codabases. Must I write it or there is a workaround (AjaxLink?) Cheers, Oleg

Re: AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Igor Vaynberg
i think it has been fixed since then. at least snapshots at wicketstuff.org/wicket13 appear to be working fine. -igor On 8/24/07, Patrick Angeles [EMAIL PROTECTED] wrote: 1.3-beta2 igor.vaynberg wrote: i believe this was fixed a long time ago, what version are you seeing this with?

Re: AjaxFallbackDefaultDataTable... changing sort does not setCurrentPage to 0

2007-08-24 Thread Patrick Angeles
I'm not that intrepid so I think I'll just wait until beta3 to get those fixes. The extensions AjaxFallbackDefaultDataTable and related classes are extremely nice, btw. It's allowed me to quickly set up list paging and sorting in a way that would have taken me days using any other web framework.