BEA WebLogic 9.2 cluster

2009-01-15 Thread Martin Bednář
Hi, I have problems with deploying wicket (wicket-1.4m1) application on WebLogic 9.2 server cluster (2 nodes). Application use spring 2.5.5 for service layer and is configured: web.xml: distributable/ filter filter-namewicket.call-centre/filter-name

Re: Where to process PageParameters

2009-01-15 Thread Jonas Hoepfner
Ok, I'll use the onBeforeRender() method. I just found the corresponding section in Wicket in Action. Thank you. Jonas - Original Message - From: Jeremy Thomerson [mailto:jer...@wickettraining.com] To: users@wicket.apache.org Sent: Wed, 14 Jan 2009 20:36:22 +0100 Subject: Re: Where to

Re: Ajax-Update MarkupContaining containing FormComponent without loosing user changes

2009-01-15 Thread Stefan Fußenegger
Thanks, I'll go for the suggested JS.Is there any documentation of the Wicket JavaScript library available somewhere? However, wouldn't be replacing borders (i.e. keeping parts of the hierarchy) be a nice feature? I'd add a ticket if you agree. Regards, Stefan igor.vaynberg wrote: the way

Re: Wicket stuff core, archetypes?

2009-01-15 Thread francisco treacy
wasn't this someone martijn? On Tue, Dec 16, 2008 at 8:55 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: For perusing the maven repository, one should contact the guys from nexus. They have an api for reading/indexing the repository. Don't crawl the repository-that will surely get you

Re: Where to process PageParameters

2009-01-15 Thread Michael Sparer
Jeremy, I used to do some business logic in the overriden isVisible() method too but changed that and used setVisible in onBeforeRender. Erik summed that issue up in his presentation on http://www.grons.nl/~erik/pub/20081112%20Effective%20Wicket.pdf (4MB) - slide 100 is the one containing the

Re: Where to process PageParameters

2009-01-15 Thread Martijn Dashorst
I don't agree with Erik that one shouldn't override isVisible. I haven't seen problems with it in my 4 years of Wicket development. The problem with these types of rules is that they tend to be taken at face value without even thinking about it. Having to maintain the state of the visible flag

Re: Where to process PageParameters

2009-01-15 Thread Michael Sparer
Yepp, I also didn't have problems with it as - you're right - I took it at face value without thinking about it too much. I thought to avoid problems when the traffic of our apps grows and/or explodes I'll do it the save way :-) wasn't much effort to change the stuff anyway. But now I'd be

Re: I also have the question

2009-01-15 Thread wch2001
thanks, UPBrandon I tried your code, for csv, public class CsvRequestTarget extends ByteDataRequestTarget { public CsvRequestTarget(byte[] data, String fileName) { super(text/plain, data, fileName+.csv); } } but it can not work with IE and ff.

Why you should not override isVisible

2009-01-15 Thread Erik van Oosten
In the thread Where to process PageParameters I was requested to explain why I think you should not override isVisible, but rather should call setVisible in onBeforeRender (slide 100 in my presentation http://www.grons.nl/~erik/pub/20081112%20Effective%20Wicket.pdf). There are 2 reasons, but

Re: Why you should not override isVisible

2009-01-15 Thread Martin Makundi
-1- isVisible is called a lot. It is easily called ten times within 1 request If you need to optimize, you can use lazy initialization of a boolean variable here and reset it in onBeforeRender? -2- isVisible can make your model be reloaded multiple times within 1 request If you need to

Re: Back button + dataview problem

2009-01-15 Thread quizzical
There are three objects on the page which have injected properties. The first is an abstract superclass of all pages in the project, I have checked on other pages and there is no issue with the back button here so I don't think its the issue but here's the code. public class AbstractMain

Problem with dynamic insertion to Tree

2009-01-15 Thread PSkarthic
I have a problem in inserting/adding nodes dynamically to tree. When i inserted/added a node on click, the plus icon appears but it is not expanded, that is it is not showing the child node i have tried tree.update but not worked. My Code protected void

Re: Where to process PageParameters

2009-01-15 Thread behrica
I overwrote as well isVisible() and find this approach logical. I would have liked to overwrite setVisible() as well and throw a NotSupportedException to show clearly that setVisible might not work any longer as exspected for my component. But setVisible() is final, so I could not overwrite it.

Re: Where to process PageParameters

2009-01-15 Thread Erik van Oosten
Michael, I answered on another thread. Regards, Erik. Michael Sparer wrote: Yepp, I also didn't have problems with it as - you're right - I took it at face value without thinking about it too much. I thought to avoid problems when the traffic of our apps grows and/or explodes I'll

Re: Problem with dynamic insertion to Tree

2009-01-15 Thread Vitek Tajzich
what about call target.addComponent(this); ? you have updated tree but you didn't tell wicket to update this component visually... V. 2009/1/15 PSkarthic kart...@touchpointindia.com I have a problem in inserting/adding nodes dynamically to tree. When i inserted/added a node on click, the

Re: Problem with dynamic insertion to Tree

2009-01-15 Thread PSkarthic
Thanks for your reply i have been waiting for long time target.addComponent(this); also does not solved my problem. if i click a node the child is created under the node but doesn't expanded but when i click it second time then it expands but with two child. -- View this message in context:

Voucher for Wicket Training Courses 17-18 24-25 Jan

2009-01-15 Thread jWeekend
We had a last minute booking on this weekend's jWeekend 2 day Apache Wicket training course (17-18 Jan, London). If you or someone you know would like to attend at such short notice use voucher JW7062009JAN1725% (remove quotes) to book with 25% discount. There are several places available. It's

Re: Problem with dynamic insertion to Tree

2009-01-15 Thread PSkarthic
Is there anybody to solve this. I got Stuck here :working: I have a problem in inserting/adding nodes dynamically to tree. When i inserted/added a node on click, the plus icon appears but it is not expanded, that is it is not showing the child node i have tried tree.update but not worked. My

Javarebel wicket plugin

2009-01-15 Thread Jorge Falcão
Hello, I wrote a simple plugin to use wicket with javarebel and spring http://code.google.com/p/javarebel-wicket-plugin/ []'s Falcão

Re: Technologies to use with large scale Wicket application

2009-01-15 Thread nino martinez wael
Theres also Wicketopia, http://wicketopia.sourceforge.net/ But I think it's a little more incomplete than WWB, but theres couple of archetypes. And its easy to work with.. 2009/1/14 Tauren Mills tau...@tauren.com Thanks for the responses to my OT message, Daniel -- Thanks for your comments

Re: Wicket stuff core, archetypes?

2009-01-15 Thread Rodolfo Hansen
Yes, you should use the nexus index for the repository http://nexus.sonatype.org/ The indexer api is pretty straight forward: http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer#NexusIndexer-NexusIndexerAPIExample you could search for artifacts with the appropriate metadata, or search

Re: BEA WebLogic 9.2 cluster

2009-01-15 Thread Matej Knopp
Looks like this is causing problems in SerializedPagesCache static final Page NO_PAGE = new Page() { }; I wonder why the class is not loaded when the other node is initialized. Please create a JIRA issue. in the meanwhile, you can try load Class.forName(..) the

RE: Technologies to use with large scale Wicket application

2009-01-15 Thread Frank van Lankvelt
Brix Jackrabbit Our application will need some heavy duty CMS features, and this project looks powerful enough to do the job. Jackrabbit is used by Brix to store content. Alternatively, you could try Hippo CMS7. It's also built with Wicket on top of a JCR repository, but with some

Wicket and voiceXML?

2009-01-15 Thread Nino Martinez
Hi Guys Have any of you worked with wicket and outputting voice markup? Im just wanting to hear experiences and ideas etc.. Ps, it's no secret that I've switched from Jayway to Netdesign (nortel unit).. regards Nino - To

IBehaviors added to ComponentTag not detached

2009-01-15 Thread Jonas
While experimenting with MarkupFilters, I noticed that IBehaviors added to ComponentTag using ComponentTag#addBehavior(IBehavior behavior) are never detached. Is that a bug, or just not possible to do? As far as I can see you don't have ComponentTags available anymore when Components are

Re: Ajax-Update MarkupContaining containing FormComponent without loosing user changes

2009-01-15 Thread Igor Vaynberg
On Thu, Jan 15, 2009 at 12:53 AM, Stefan Fußenegger stefan_fusseneg...@gmx.at wrote: Thanks, I'll go for the suggested JS.Is there any documentation of the Wicket JavaScript library available somewhere? there is no wicket js library, what i gave you was pseudocode. However, wouldn't be

Re: IBehaviors added to ComponentTag not detached

2009-01-15 Thread Igor Vaynberg
behaviors added to componenttag are in turn added to components, so they are detached and managed by components no the componenttag they are added to. -igor On Thu, Jan 15, 2009 at 8:16 AM, Jonas barney...@gmail.com wrote: While experimenting with MarkupFilters, I noticed that IBehaviors added

Re: Wicket stuff core, archetypes?

2009-01-15 Thread Jonathan Locke
cool. this definitely looks like the right approach to me (assuming it indexes most of the big repos) jon Rodolfo Hansen wrote: Yes, you should use the nexus index for the repository http://nexus.sonatype.org/ The indexer api is pretty straight forward:

Re: Wicket stuff core, archetypes?

2009-01-15 Thread Jonathan Locke
btw, maybe this maven artifact searching thing should be integrated somehow with an existing wicket search engine? http://www.google.com/coop/cse?cx=00079654818618231%3Aenjwek-gxxg is that possible with google custom searches alastair? Jonathan Locke wrote: cool. this definitely

DropDownChoice with ModelString and ListT

2009-01-15 Thread Anton Veretennikov
Good {morning|day|evening}! I have a Model with String field code and list of objects ListT where t.getCode() must be returned to Model. Several hours I try to make it strict typed with Wicket 1.4. No success :( Please, help me!

Re: DropDownChoice with ModelString and ListT

2009-01-15 Thread Igor Vaynberg
if you have listt you must have imodelt that is how the ddc works. you can either create a model that translates string-t or one that translates listt - liststring -igor On Thu, Jan 15, 2009 at 8:52 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: Good {morning|day|evening}! I have

JavaScript and Wicket

2009-01-15 Thread Sniffer
Hi, I'm a beginner about Wicket and the main issue which I have is JavaScript and Wicket integration. My question is is it possible to pass JavaScript variable value to Wicket as Wicket link parameter? Here are some part of code which I have: // Set link on data cell Link callUpdateWindow =

Re: Ajax-Update MarkupContaining containing FormComponent without loosing user changes

2009-01-15 Thread Stefan Fußenegger
I knew it was pseudo code. With JS library I meant the stuff contained in wicket-ajax.js, wicket-event.js, wicket-ajax-debug.js. with replacing border, you meant the server-side concept of a Border, right? I was talking more of a html related concept (bad description, sorry), where a border is

Re: DropDownChoice with ModelString and ListT

2009-01-15 Thread Anton Veretennikov
The main difficulty in implementing DropDownChoiceT,V is translation of values? On 1/15/09, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you have listt you must have imodelt that is how the ddc works. you can either create a model that translates string-t or one that translates listt -

skip item in populateItem of ListView

2009-01-15 Thread Steve Swinsburg
Hi all, I have a situation whereby certain conditions mean I need to skip an item that is being rendered in a ListView. ie inside the populateItem() method I do some processing and if that item fails, it shouldn't be rendered so I'd like to skip to the next item. I know I *could* process

Re: DropDownChoice with ModelString and ListT

2009-01-15 Thread Igor Vaynberg
yep -igor On Thu, Jan 15, 2009 at 9:12 AM, Anton Veretennikov anton.veretenni...@gmail.com wrote: The main difficulty in implementing DropDownChoiceT,V is translation of values? On 1/15/09, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you have listt you must have imodelt that is how the

Re: skip item in populateItem of ListView

2009-01-15 Thread Martin Makundi
Sounds like bad design that's going to give you headaches later... nevertheless, did you try setting the listItem.setVisible(false)? ** Martin 2009/1/15 Steve Swinsburg s.swinsb...@lancaster.ac.uk: Hi all, I have a situation whereby certain conditions mean I need to skip an item that is

Re: Ajax-Update MarkupContaining containing FormComponent without loosing user changes

2009-01-15 Thread Igor Vaynberg
On Thu, Jan 15, 2009 at 9:11 AM, Stefan Fußenegger stefan_fusseneg...@gmx.at wrote: I knew it was pseudo code. With JS library I meant the stuff contained in wicket-ajax.js, wicket-event.js, wicket-ajax-debug.js. those are for wicket's internal use. dont touch :) with replacing border, you

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
We have done exact that -- a lot. Driving isVisible() from the state of the model is very clean, but the performance is potentially awful. I have wondered whether this should be the default implementation for Component.isVisible(). Is IVisitor.beforeRender() an appropriate place in the rendering

Re: Ajax-Update MarkupContaining containing FormComponent without loosing user changes

2009-01-15 Thread Stefan Fußenegger
Even if they are for wicket's internal use, documentation might be valuable, especially for (wicketstuff) developers who go deeper then regular users. Furthermore, having some basic JS utilities (with documented public API) coming with Wicket would make using Wicket even more fun. I'd bet that a

Re: Ajax-Update MarkupContaining containing FormComponent without loosing user changes

2009-01-15 Thread Igor Vaynberg
thats exactly the point. we do not maintain api compatibility of the js code, not even between minor versions, so you should not use them or depend on them. -igor On Thu, Jan 15, 2009 at 10:05 AM, Stefan Fußenegger stefan_fusseneg...@gmx.at wrote: Even if they are for wicket's internal use,

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
I would be careful not to throw the baby out with the bath water here. The design decision you're making is push versus pull and implementing isVisible is often going to be a better design decision because it may be more clear that visibility state stays consistent for a given problem. If the

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
Is there a reason why the default behavior is not to cache the result of isVisible()? Are there cases where the result of isVisible() is expected to change over the course of rendering? Would a JIRA w/ code be welcome, or is the current behavior required? Scott On Thu, Jan 15, 2009 at 10:23

Re: Ajax-Update MarkupContaining containing FormComponent without loosing user changes

2009-01-15 Thread Stefan Fußenegger
My suggestions was to actually maintain a minimal JS api in the future. I don't believe that the very basic utility functions are going to change between minor versions. So it might be worth thinking about making this API official. The users would definitely benefit from it - and nobody would

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
not sure. it /ought/ to make sense to cache during the render cycle. but i have the eerie sense that this came up before, so maybe there's some reason why it can't be cached? (although even if there are some odd cases where it can't be, it seems like you could make a workaround for those cases

DropDownChoice missing in IE6 when has AJAX

2009-01-15 Thread Alex . Borba
Hi everybody, I'm new on wicket and ajax, and now I'm having problems mixing both. In my page I have some simple DropDownChoice and not related to them but to a button I have a Modal Window. The problem is, testing my page on IE6, when I scroll the page down the dropdown

Load / Processing Messages

2009-01-15 Thread Alex . Borba
Hi all, Sorry to ask such newbie question, but how could I submit a request and while the server process it, which will be send a response to the same page, the application friendly locks/freezes the whole page (with a load/processing animated gif) so the user could not change anything

Re: skip item in populateItem of ListView

2009-01-15 Thread Stephen Swinsburg
I haven't tried that (yet) but once I do the checks I need it to stop rendering that item. So the rest of the stuff tahts meant to be rendered never gets processed. Nevermind I will do the checks before the data even reaches the LoadableDetachableModel feeding it. cheers. On

Re: Load / Processing Messages

2009-01-15 Thread Martin Makundi
See: * http://mail-archives.apache.org/mod_mbox/wicket-users/200901.mbox/%3c303141550901100017w3480b326vd1cf21e3efa18...@mail.gmail.com%3e * http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html ** Martin 2009/1/15 alex.bo...@souzacruz.com.br: Hi all,

Re: Why you should not override isVisible

2009-01-15 Thread Martin Makundi
Well... I would not build in the cache because different components could interact in a way that if someone prematurely calls the isVisible method, it freezes in the wrong state. It is known, that the isVisible is called multiple times for various reasons. ** Martin 2009/1/15 Jonathan Locke

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
well yes, it might break existing behavior, that's why i suggested having a workaround for that. although i would think that well-designed isVisible methods shouldn't generally have this problem. you could always work it the other way and have no caching by default but allow people who know

Re: Why you should not override isVisible

2009-01-15 Thread Martin Makundi
you could always work it the other way and have no caching by default but allow people who know what they're doing to enable it for an application with something like IRequestCycleSettings#setCacheComponentVisibility(boolean). This sounds more robust, so long as it can be controlled on a

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
yeah, for full flexibility, you might just link a method in Component to a default in IRequestCycleSettings: boolean getCacheComponentVisibility() { return getApplication().getRequestCycleSettings().getCacheComponentVisibility(); } then you can set a default and override for any individual

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
i think the next step is to see what the core team thinks about this. filing a ticket couldn't hurt. Jonathan Locke wrote: yeah, for full flexibility, you might just link a method in Component to a default in IRequestCycleSettings: boolean getCacheComponentVisibility() { return

Re: JavaScript and Wicket

2009-01-15 Thread Jeremy Thomerson
Do you mean that you want to call back to Wicket from client-side JS? If so, see any of the AbstractAjaxBehavior implementations - you'll see how they generate a callback to server-side. On Thu, Jan 15, 2009 at 11:04 AM, Sniffer cajic_aleksan...@yahoo.comwrote: Hi, I'm a beginner about

Re: skip item in populateItem of ListView

2009-01-15 Thread Jeremy Thomerson
ListItem.item.setVisibilityAllowed(false) - should work for you. On Thu, Jan 15, 2009 at 1:16 PM, Stephen Swinsburg s.swinsb...@lancaster.ac.uk wrote: I haven't tried that (yet) but once I do the checks I need it to stop rendering that item. So the rest of the stuff tahts meant to be

Re: Why you should not override isVisible

2009-01-15 Thread Erik van Oosten
Hi Pierre, I actually thought they were in English, but I now see that the first few are in Dutch. Not sure why I did that. They are not that important, so just read on... Regards, Erik. Pierre Goupil wrote: Good evening, I'm sorry to bug you, but I'be read the presentation you're

Re: Why you should not override isVisible

2009-01-15 Thread Martijn Dashorst
What is strange is that isvisible is being checked during detach (I seriously doubt that). That shouldn't be happening: *all* components should be detached regardless of their visibility. Martijn On Thu, Jan 15, 2009 at 9:29 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: i think the next

Re: Why you should not override isVisible

2009-01-15 Thread Erik van Oosten
Indeed. If this would no longer be the case, overriding isVisible would be no problem (though caching would be nice). Regards, Erik. Martijn Dashorst wrote: What is strange is that isvisible is being checked during detach (I seriously doubt that). That shouldn't be happening: *all*

Re: Why you should not override isVisible

2009-01-15 Thread Martijn Dashorst
On Thu, Jan 15, 2009 at 9:38 PM, Erik van Oosten e.vanoos...@grons.nl wrote: I actually thought they were in English, but I now see that the first few are in Dutch. Not sure why I did that. They are not that important, so just read on... You can probably have a good laugh at google translate

Re: Why you should not override isVisible

2009-01-15 Thread Igor Vaynberg
if we do this then as a reusable component developer you have to always be aware of this default and code with it in mind because it is outside your control yet impacts the behaviors of components. -1 from me. -igor On Thu, Jan 15, 2009 at 12:25 PM, Jonathan Locke jonathan.lo...@gmail.com wrote:

Re: skip item in populateItem of ListView

2009-01-15 Thread Erik van Oosten
Perhaps it would be more natural to use RepeatingView (or RefreshingView) in such cases. Regards, Erik. Steve Swinsburg wrote: Hi all, I have a situation whereby certain conditions mean I need to skip an item that is being rendered in a ListView. ie inside the populateItem() method I do

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
this is a really good point. i think i'm -1 on the idea too unless there's a good proposal for how to avoid that problem. igor.vaynberg wrote: if we do this then as a reusable component developer you have to always be aware of this default and code with it in mind because it is outside

lucene document property resolve with datatable?

2009-01-15 Thread Phillip Rhodes
Hi, I am trying to display a lucene document as a row in the datatable. Here is how I am defining my column: PropertyColumn col = new PropertyColumn(new Model(Name), get('NAME'), get('NAME')); The get('NAME') is a call to the document.get(String fieldName) method on the lucene document. I

Things I miss in Wicket

2009-01-15 Thread Tobias Marx
Hi there! There are some things in Wicket I am missing and I think they could improve the framework a lot. But just some small background first: In my opinion the most important things in a web application are: - as few lines of code as possible, as many as really necessary - separation

access ServletOutputStream in wicket

2009-01-15 Thread novotny
Hi, I'm learning Jasper to create/display a PDF when a link is clicked and the template code I have looks like: ServletOutputStream servletOutputStream = response.getOutputStream(); InputStream reportStream =

Re: Things I miss in Wicket

2009-01-15 Thread Igor Vaynberg
On Thu, Jan 15, 2009 at 1:44 PM, Tobias Marx superoverdr...@gmx.de wrote: Hi there! There are some things in Wicket I am missing and I think they could improve the framework a lot. But just some small background first: In my opinion the most important things in a web application are:

Re: Things I miss in Wicket

2009-01-15 Thread Sébastien Piller
Hi, 1) and 2) are already implemented, or something very close exists. 3) may be a good improvement, maybe with a new wicket tag (wicket:component type=com.me.MyCustomComp /). let's see what think core developpers 1) you have various way of altering tags and attributes: attributemodifiers,

Re: access ServletOutputStream in wicket

2009-01-15 Thread Igor Vaynberg
requestcycle.get().getresponse().getoutputstream() -igor On Thu, Jan 15, 2009 at 1:54 PM, novotny novo...@gridsphere.org wrote: Hi, I'm learning Jasper to create/display a PDF when a link is clicked and the template code I have looks like: ServletOutputStream servletOutputStream =

Re: access ServletOutputStream in wicket

2009-01-15 Thread Sébastien Piller
Hi, look at RequestCycle#setRequestTarget and ResourceStreamRequestTarget novotny wrote: Hi, I'm learning Jasper to create/display a PDF when a link is clicked and the template code I have looks like: ServletOutputStream servletOutputStream = response.getOutputStream(); InputStream

Re: Adding wicketstuff-scriptaculous dependency

2009-01-15 Thread rjohara
I am still having troubles adding the wicketstuff-scriptaculous dependency, even though I had no trouble adding wicketstuff-minis. After looking at http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-scriptaculous/1.4-SNAPSHOT/, I noticed that filenames contain a timestamp.

Re: Why you should not override isVisible

2009-01-15 Thread Martijn Dashorst
A short test didn't uncover any calls to isVisible during detach phase (1.4). Might need more extensive tests though... Martijn On Thu, Jan 15, 2009 at 10:12 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: this is a really good point. i think i'm -1 on the idea too unless there's a good

Re: DropDownChoice missing in IE6 when has AJAX

2009-01-15 Thread Alex . Borba
Sorry I mentioned the AJAX but o didn't tell exactly what is the relation with the problem The same page with no AJAX function the problem do not occur. thank you 01/15/2009 04:59 PM alex.bo...@souzacruz.com.br Please respond to users@wicket.apache.org To

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
well, one simple design that would avoid the reuse problem is: Boolean Component#isCachedVisible() { return null; } then override to use visibility caching and return true or false. if you don't override you get the current functionality. of course you need two more bits in Component to

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
My idea what an inversion of that one: Add a method to Component, such as isVisibleInternal() [no I don't love the name] that would cache the results of isVisible(). Then all code that currently calls isVisible() would be changed to call isVisibleInternal() instead. Someone who really wanted

building extensible components

2009-01-15 Thread Loren Cole
I'm building an app that will have *lots* of panels that all follow a very similar pattern: They have a form and a static view whose visibility gets toggled when when you click edit/cancel|save|delete They display a warning if their model is empty They pop up a warning when you delete them They

Re: addComponentInstantiationListener method

2009-01-15 Thread mooli
wicket-spring also requires the wicket-ioc binaries on your classpath - sounds like you're missing that? rjilani wrote: Hi: I am using the following code from wicket wiki to add a Springcomponent injector to addComponentInstantiationListener to hook spring application context, but the

Re: building extensible components

2009-01-15 Thread Thomas Mäder
As I understand it, you have a generic container component, which may contain different subpanels. You do know that Panels can actually have their own markup and also markup inheritance (?), so you'd end up with three classes: the main panel (container) and you add an instance of (sub)classes 2

Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing

2009-01-15 Thread Tauren Mills
Are there any wicket/eclipse/maven/m2eclipse users out there? I'm trying to get my development environment working properly and need your help. Up until now, I've been developing WIcket applications in Eclipse and have not been using maven. As long as my web.xml is set to development rather

Re: Technologies to use with large scale Wicket application

2009-01-15 Thread Tauren Mills
Theres also Wicketopia, http://wicketopia.sourceforge.net/ Nino -- Good to know, I will check it out. Alternatively, you could try Hippo CMS7. It's also built with Wicket on top of a JCR repository, but with some extensions that you might like. (workflow, authorization, virtual trees based

Re: building extensible components

2009-01-15 Thread Loren Cole
No that is pretty much what I meant. The composition solution would involve and abstract superclass and then for each kind of widget a fairly trivial implementation of the superclass, a static panel, and a dynamic panel. It's just that all that class proliferation gives me a nasty feeling and

Re: building extensible components

2009-01-15 Thread Igor Vaynberg
by class proliferation you mean having to extend a base class? -igor On Thu, Jan 15, 2009 at 3:40 PM, Loren Cole loren.c...@gmail.com wrote: No that is pretty much what I meant. The composition solution would involve and abstract superclass and then for each kind of widget a fairly trivial

Re: Technologies to use with large scale Wicket application

2009-01-15 Thread Tauren Mills
Francisco, Thanks for your 2c. i personally think hibernate is... the least worse we've got for orms. otherwise pretty standard stack that should work fine and has a huge userbase. you may also want to check out google guice I'm pretty sure I'll go with hibernate because of my experience

Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing

2009-01-15 Thread Martijn Dashorst
iirc you have to turn off eclipse's filtering of html files (which is turned off default because of javadoc html which usually doesn't want to be packaged inside your war/jar) Martijn On Fri, Jan 16, 2009 at 12:31 AM, Tauren Mills tau...@tauren.com wrote: Are there any

JavaScriptReference with TextTemplate only returns the first retrieved value

2009-01-15 Thread Trent Larson
Some time ago, I wrote the following code to generate a javascript resource with values that are unique to each user. I would have sworn that it worked, and that it would return a different value depending on which user was logged in. However, I've just found that it is now always returning the

Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing

2009-01-15 Thread Tauren Mills
Martijn, Thanks. But any clue how or where I do that? I've been poking around the preferences in eclipse and haven't found it. Tauren On Thu, Jan 15, 2009 at 3:51 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: iirc you have to turn off eclipse's filtering of html files (which is

Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing

2009-01-15 Thread Igor Vaynberg
open the preferences window in the search box type filter this will show you java/compiler/building panel with FilteredREsources: textbox, remove *.html -igor On Thu, Jan 15, 2009 at 4:03 PM, Tauren Mills tau...@tauren.com wrote: Martijn, Thanks. But any clue how or where I do that? I've

Re: Wicket/Eclipse/Maven/m2eclipse - HTML files not refreshing

2009-01-15 Thread Tauren Mills
Thanks Igor, but I already looked there and the only thing listed in filtered resources is *.launch. Any other ideas? Tauren On Thu, Jan 15, 2009 at 4:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: open the preferences window in the search box type filter this will show you

Re: JavaScriptReference with TextTemplate only returns the first retrieved value

2009-01-15 Thread Igor Vaynberg
sounds like your browser is caching it. try this: hit the page check the value empty browser cache refresh the page see if the value changed... other then that i hope you know that storing a password in cleartext inside a js file might not be the best idea :) -igor On Thu, Jan 15, 2009 at

modify domain object but stay on the same page?

2009-01-15 Thread Phillip Rhodes
I have been searching, but all the examples that I come across use a standalone page for editing an object. For example, clicking this link will take the user to a PersonEdit page. add(new Link(editPerson) { public void onClick() {

Re: modify domain object but stay on the same page?

2009-01-15 Thread Igor Vaynberg
if you dont call setresponsepage() the same page is redrawn. -igor On Thu, Jan 15, 2009 at 4:22 PM, Phillip Rhodes spamsu...@rhoderunner.com wrote: I have been searching, but all the examples that I come across use a standalone page for editing an object. For example, clicking this link will

Re: building extensible components

2009-01-15 Thread Jonathan Locke
no, no, you're on the right track with composition. more simpler classes is the ideal because it breaks the problem down. if you start to feel like you have too many classes, you probably need to grow (or maybe refactor) your package hierarchy. Loren Cole wrote: No that is pretty much what

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
sure, that's the clean way to do it, but it comes at the expense of possibly breaking user code by surprise. i'm not sure how big of a deal this is. i've heard people talk about it, but i'd be interested in some examples of how performance of this method has been a problem for people. i've

Re: Why you should not override isVisible

2009-01-15 Thread Jonathan Locke
oh i suppose you also need to reset the value in onBeforeRender(). it's a small pain, but how often does this really become a quantifiable problem and not just a worry? Jonathan Locke wrote: sure, that's the clean way to do it, but it comes at the expense of possibly breaking user code

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
We have implemented this, perhaps a dozen times or more across our application. For example, there are several payment options whose relevance is determined by whether the customer owes any money on their purchase (e.g. as opposed to using a gift card). These total the order and determine

Re: modify domain object but stay on the same page?

2009-01-15 Thread Jeremy Thomerson
If you have properly coded all of your models and subcomponents on the page, you should be able to do something like: add(new Link(editPerson, theModelOfThePersonThisLinkWouldEdit) { public void onClick() { // replace the page's model with the model given to this link

Re: lucene document property resolve with datatable?

2009-01-15 Thread James Carman
What I would probably do is write a LucenePropertyColumn that extends AbstractColumn. On Thu, Jan 15, 2009 at 4:14 PM, Phillip Rhodes spamsu...@rhoderunner.com wrote: Hi, I am trying to display a lucene document as a row in the datatable. Here is how I am defining my column: PropertyColumn

Re: access ServletOutputStream in wicket

2009-01-15 Thread novotny
Hi, Ok I found in wicketstuff, a JRPdfResource class that does the jasper to pdf conversion for me and I added code to do this: InputStream is = getClass().getResourceAsStream(/test.jasper); JRResource pdfResource = new JRPdfResource(is); pdfResource.setReportParameters(new

I'm intersted in design

2009-01-15 Thread Anton Veretennikov
Hello all wicket users! Does anybody know why id is added to component, not to list of children, like: add(someId, childComponent); Thank you very much. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: I'm intersted in design

2009-01-15 Thread Jeremy Thomerson
Because it is imperative in many ways that the component knows it's own ID. Look through the code to see how many times it uses it's ID. Hope this helps. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jan 15, 2009 at 9:40 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote:

  1   2   >