Re: Is this right? Seems at odds with wicket philosophy

2008-08-14 Thread Matthijs Wensveen
the current list item index? thanks Wayne -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: generics

2008-07-09 Thread Matthijs Wensveen
Timo Rantalaiho wrote: On Mon, 07 Jul 2008, Matthijs Wensveen wrote: The thing is that when using Ajax you have to specifically add PersonViewer to the AjaxRequestTarget when 'some other component' modifies the Person object. The problem is that 'some other component' might not even know

Re: sneak peek - brix - wicket/jcr cms

2008-07-09 Thread Matthijs Wensveen
yet. for more info see the website. [1] http://brix-cms.googlecode.com -igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W

Re: generics

2008-07-08 Thread Matthijs Wensveen
a listener interface for example PropertyChangeListener (but you can make it more specific interface) Just make a base model that has add/removePropertyChangeListener and let your components listen to that johan On Mon, Jul 7, 2008 at 8:28 AM, Matthijs Wensveen [EMAIL PROTECTED] wrote: Timo

Re: generics

2008-07-07 Thread Matthijs Wensveen
Timo Rantalaiho wrote: On Fri, 04 Jul 2008, Matthijs Wensveen wrote: How do you cope with deeply nested model properties? For example: public class PersonViewer extends ComponentPerson { .. } some other component does: person.getOrders().get(0).setAmount(0); // first order for free

Re: generics

2008-07-04 Thread Matthijs Wensveen
different than thread content :) -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: generics

2008-07-04 Thread Matthijs Wensveen
its not a big problem. On 7/4/08, Matthijs Wensveen [EMAIL PROTECTED] wrote: Matej Knopp wrote: On Thu, Jul 3, 2008 at 9:51 AM, Matej Knopp [EMAIL PROTECTED] wrote: And there is some functionality in there that Wicket might be better without. For example, onModelChanged

Re: configuring wicket:id from Java code in TITLE in a page

2008-07-02 Thread Matthijs Wensveen
You might want to use wicket:message in cases like this. See: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html Matthijs Rakesh Sinha wrote: Thanks Igor. That works. Thanks Apache Wicket team once again for a wonderful framework. On Wed, Jul 2, 2008 at 12:37 AM, Igor Vaynberg [EMAIL

Re: redirect page in the constructor

2008-06-29 Thread Matthijs Wensveen
System.exit(0); Igor Vaynberg wrote: if you can find another way to abort creation of a class instance in java feel free to let us know. -igor On Thu, Jun 26, 2008 at 4:29 AM, Eyal Golan [EMAIL PROTECTED] wrote: Igor, That is what we used before. Then I looked on the links above, tried

Re: Client side validation

2008-06-29 Thread Matthijs Wensveen
that on the serverside On 6/26/08, Matthijs Wensveen [EMAIL PROTECTED] wrote: I know ASP.Net has this too, and falls back to the server when client side validation is not possible (or is hacked by a smarter than average user). Something could be done. I think would be worth the time when you

Re: Client side validation

2008-06-27 Thread Matthijs Wensveen
tf.enableClientSideValidation(); my approach would be to borrow the T5 code to generate the required javascript. Is this idea worth the time? Best regards. Manuel. -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500

Re: Setting HiddenField name attrribute value

2008-06-22 Thread Matthijs Wensveen
find any documentation on using templates for javascript - will appreciate any pointers. Thanks Matthijs Wensveen-2 wrote: Is there any specific reason you don't want to do this server side? Not using javascript would make the application more accessible, and probable also more robust

Re: Setting HiddenField name attrribute value

2008-06-21 Thread Matthijs Wensveen
Is there any specific reason you don't want to do this server side? Not using javascript would make the application more accessible, and probable also more robust and secure. Unless you're targeting some very specific user group, I always try not to depend on javascrip / ajax (that's why I

Re: Generic component placeholder

2008-06-19 Thread Matthijs Wensveen
commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Modal Window question

2008-06-19 Thread Matthijs Wensveen
. Matthijs Wensveen-2 wrote: What do you mean by submitted in a new window? The modal window itself? Matthijs mfs wrote: Guys, I am posting this question yet again, hoping to get some feedback... The problem is regarding modal windows, as to how close it, when a form (within

Re: Modal Window question

2008-06-19 Thread Matthijs Wensveen
which does the modal-close.. mfs wrote: Guys, I am posting this question yet again, hoping to get some feedback... The problem is regarding modal windows, as to how close it, when a form (within it) is submitted in a new window. Any suggestions Thanks in advance -- Matthijs

Re: Modal Window question

2008-06-18 Thread Matthijs Wensveen
suggestions Thanks in advance -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: isVisible vs. setVisible

2008-06-17 Thread Matthijs Wensveen
Never underestimate the power of the Dark Side! :) Jonathan Locke wrote: i imagine setVisible came from me. just because setters are evil and you should avoid them when you can does not mean you should not use them when you need them. Matthijs Wensveen-2 wrote: Of course I have a few

Re: isVisible vs. setVisible

2008-06-17 Thread Matthijs Wensveen
() are working fine. (and we can test other stuff like isVisibleInHierarchy and so on. johan On Mon, Jun 16, 2008 at 11:52 PM, Matthijs Wensveen [EMAIL PROTECTED] wrote: Of course I have a few things to learn, and I hope I never stop learning. The article you provide is interesting. My

Re: Chaining components

2008-06-16 Thread Matthijs Wensveen
. This would be especially useful with AJAX, because then all components that get onModelChanged can add themselves to the AjaxRequestTarget. By the way, the jira patch Igor mentioned: https://issues.apache.org/jira/browse/WICKET-1312. I really like it. Matthijs. -- Matthijs Wensveen Func. Internet

Re: Chaining components

2008-06-16 Thread Matthijs Wensveen
with AjaxRequestTarget. Matthijs ** Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31

Re: Chaining components

2008-06-16 Thread Matthijs Wensveen
commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: isVisible vs. setVisible

2008-06-16 Thread Matthijs Wensveen
, the state can get stale. -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: isVisible vs. setVisible

2008-06-16 Thread Matthijs Wensveen
Martijn Dashorst wrote: On Mon, Jun 16, 2008 at 3:48 PM, Matthijs Wensveen [EMAIL PROTECTED] wrote: A little off-topic: It scares me a little when core developer make bold statements like: setters are evil and I wouldn't mind final was the default in java. Maybe I'm just being paranoid here

Re: isVisible vs. setVisible

2008-06-16 Thread Matthijs Wensveen
: http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-toolbox.html Matthijs Wensveen-2 wrote: Jonathan Locke wrote: true. in the isVisible impl you could lazy-init cache a transient Boolean until end request where you set it null. setters are evil. ..but it's good

Re: Making Component easier to Generify

2008-06-14 Thread Matthijs Wensveen
Ah, you beat me to that. I should've read the thread entirely before posting :) Martijn Dashorst wrote: Or with qi4j (http://qi4j.org) Martijn On Sat, Jun 14, 2008 at 5:37 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: It's good to know that when you reach the same conclusion it is a

Re: Making Component easier to Generify

2008-06-14 Thread Matthijs Wensveen
Eelco Hillenius wrote: It's good to know that when you reach the same conclusion it is a deliberate one. BTW, interfaces are useful for this, but not a necessity. Or am I the only one thinking that No, I agree with you mostly. However, I was trying (back then) to define separate

Re: Making Component easier to Generify

2008-06-13 Thread Matthijs Wensveen
, Matthijs Wensveen [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: look at the java example. notice Window is an interface. Yeah, but that's just because it's good practice to use the interface when there is one. Notice that the actually decorated class is a new SimpleWindow

Re: Making Component easier to Generify

2008-06-13 Thread Matthijs Wensveen
Igor Vaynberg wrote: On Fri, Jun 13, 2008 at 2:44 PM, Matthijs Wensveen [EMAIL PROTECTED] wrote: By the way, the article I supplied and the article on wikipedia do just the same thing. If you look at VerticalScrollBarDecorator.draw you'll see that it delegates the method to the wrapped

Re: Making Component easier to Generify

2008-06-13 Thread Matthijs Wensveen
Eelco Hillenius wrote: True, it's been weighing the disadvantages vs the advantages, and so far, ensuring that we wouldn't paint ourselves in the corner too quickly won over flexibility. To make this 'painless' though, we'd probably need a whole bunch of interfaces. We've looked into

Re: Making Component easier to Generify

2008-06-12 Thread Matthijs Wensveen
Some useful design patterns like Decorator don't work with final methods. Wicket components sometimes have overridable factory methods for child components. The decorator pattern could be very useful here, because you'd be able to decorate the original component with some extra functionality

Re: Making Component easier to Generify

2008-06-12 Thread Matthijs Wensveen
with interfaces, component class is not. This is part of the reason why we have behaviors -igor On 6/12/08, Matthijs Wensveen [EMAIL PROTECTED] wrote: Some useful design patterns like Decorator don't work with final methods. Wicket components sometimes have overridable factory methods for child

Re: Making Component easier to Generify

2008-06-12 Thread Matthijs Wensveen
can't override so you can't delegate to them (that whas my point), but not because you can't decorate a class. Matthijs. PS. If you insist on that you can only decorate an interface, I'll call it wrap-extend or something :) -igor On Thu, Jun 12, 2008 at 5:05 PM, Matthijs Wensveen [EMAIL

Re: ComponentPropertyModel

2008-06-11 Thread Matthijs Wensveen
)); add(new Label(name)); } } Maurice On Tue, Jun 10, 2008 at 2:49 PM, Matthijs Wensveen [EMAIL PROTECTED] wrote: Hi, I'm trying to use ComponentPropertyModel as a replacement of PropertyModel in some cases. The javadoc leads me to beleave I can do: public class MyPanel extends Panel

enclosure around listview

2008-06-11 Thread Matthijs Wensveen
-- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: enclosure around listview

2008-06-11 Thread Matthijs Wensveen
Gwyn Evans wrote: On Wed, Jun 11, 2008 at 10:34 AM, Matthijs Wensveen [EMAIL PROTECTED] wrote: Is there a way to hide a listview with an enclosure when there are no items to display? One way to get it working is to toggle the visibility of the listview based on wheter or not the list

ComponentPropertyModel

2008-06-10 Thread Matthijs Wensveen
, but myPanel.setModelObject, so the reference to the component's model is preserved. That way PropertyModel can be safely used. Thanks, Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500

Re: wicket-extensions javadoc

2008-05-09 Thread Matthijs Wensveen
/ -Doug Matthijs Wensveen-2 wrote: Hi, I'm not sure this is the right place, but anyway. The online javadoc of wicket-extensions at http://wicketframework.org/wicket-extensions/apidocs/index.html is of version 1.2-SNAPSHOT, but the latest release is 1.3.3. The javadoc that maven pulls

wicket-extensions javadoc

2008-05-07 Thread Matthijs Wensveen
javadocs be updated please? Thanks, Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-06 Thread Matthijs Wensveen
Doug Donohoe wrote: I am pleased to announce the 1.0 release of wicketstuff-annotation. Nice. But the name 'wicketstuff-annotation' does not say anything about what it does, just 'something with annotations'. IMO 'wicketstuff-mount-annotations' or somesuch would be better. Just my 2c.

Re: Block second click

2008-02-11 Thread Matthijs Wensveen
, Matthijs Wensveen wrote: I have a Link (not Ajax) on a component that does some heavyweight processing in onClick. During this processing I want to block other clicks from the same user. Is there a generic way to block multiple requests on the same link? I would prefer a solution without Ajax

Re: Block second click

2008-02-09 Thread Matthijs Wensveen
Martijn Dashorst wrote: On 2/7/08, Matthijs Wensveen [EMAIL PROTECTED] wrote: The if(!isEnabled()) will happen though, because the link is not really disabled on the client side, but it does prevent doSomeHeavyWeightProcessing to be called the second time which is what I need

Re: Block second click

2008-02-07 Thread Matthijs Wensveen
variable)? Thanks, Matthijs Timo Rantalaiho wrote: On Wed, 06 Feb 2008, Matthijs Wensveen wrote: I have a Link (not Ajax) on a component that does some heavyweight processing in onClick. During this processing I want to block other clicks from the same user. Is there a generic way to block

Block second click

2008-02-06 Thread Matthijs Wensveen
, but if that's impossible then that's okay. Thanks, Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: can auto fire the ajaxLink onClick function without click on the link?

2008-01-29 Thread Matthijs Wensveen
alike (if it doesn't work, maybe add the behavior to the container or something) Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail

Re: How to read the properties file in wicket?

2008-01-17 Thread Matthijs Wensveen
Rama-o-Rama wrote: Hello, I am trying to read the property file like test.properties in the wicket. I have done previously like servletcontext.getresouceasstream(). what is the wicket way of reading the file. ~Rama If the properties file 'belongs' to a Component, like

Re: How to dynamically generate HTML page?

2007-12-06 Thread Matthijs Wensveen
Matthijs, I got a chance to look at Wouter Huijnink slides. This is what exactly I am looking. Can you please forward the AutoComponentPanel code. That would be great. ~Praveen Matthijs Wensveen-2 wrote: Hello Praveen, Wouter Huijnink presented something similar to what you need

IComponentResolver question

2007-12-05 Thread Matthijs Wensveen
with Application.getPageSettings().addComponentResolver(resolver)? Thanks, Matthijs Wensveen -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED

IComponentResolver question. Was: How to dynamically generate HTML page?

2007-12-04 Thread Matthijs Wensveen
with Application.getPageSettings().addComponentResolver(resolver)? Thanks, Matthijs Wensveen Matthijs Wensveen wrote: Hello Praveen, Wouter Huijnink presented something similar to what you need at the wicket meetup in Amsterdam. We generate html dynamically from xml, using xslt. A component

Re: Changing IDEs to eclipse

2007-10-26 Thread Matthijs Wensveen
Double-click the server, click the modules tab, uncheck 'enable reloading' on the module that is the project you are working on. BTW, I use Eclipse and Maven and it just works great together. Unfortunately there is no support for WTP 2.0 yet for the maven eclipse (or should I say eclipse

Re: enable / disable MarkupContainer and all children

2007-10-16 Thread Matthijs Wensveen
children when it itself is disabled or enabled. Matthijs PS. The onBeforeRender implementation I have (uses IVisitor to disable children) works well enough. This mail is just because I'm curious how this should be done. Matthijs Wensveen wrote: Hi, I have a Panel (myPanel) containing some child

enable / disable MarkupContainer and all children

2007-10-10 Thread Matthijs Wensveen
? -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: new class reloading solution JavaRebel

2007-10-09 Thread Matthijs Wensveen
=AFQjCNGZ2m5UshrHFf0T40HjEF0nOCE8iAsig2=0oAqqHaBEuy2rC256-8t_Q - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20

Re: how to forward request to an external URL

2007-10-09 Thread Matthijs Wensveen
: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A button that does NOT submit form?

2007-10-08 Thread Matthijs Wensveen
model is not updated. I think this is a better solution because it doesn't require javascript (a Link on a input element generates onclick), and thus more accessible. Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500

Re: A button that does NOT submit form?

2007-10-08 Thread Matthijs Wensveen
On 10/7/07, Matthijs Wensveen [EMAIL PROTECTED] wrote: Al Maw wrote: Stanczak Group wrote: I don't want the cancel button to submit the form, is this the best method? I'm not sure I see how to do this. Is there examples? @Override protected void delegateSubmit

Re: Changing html-template programmatically?

2007-09-27 Thread Matthijs Wensveen
wfaler wrote: Hi, Is it possible to change the default html-template file loaded for a class programmatically (for instance, changing from a classpath file, to a file in another file-directory)? For instance, if I want to change the underlying html-template on the fly, but keeping the same

Re: how to add dynamically typed form components?

2007-09-26 Thread Matthijs Wensveen
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500

Re: how to add dynamically typed form components?

2007-09-26 Thread Matthijs Wensveen
Huijnink Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Matthijs Wensveen Func

Re: how to add dynamically typed form components?

2007-09-26 Thread Matthijs Wensveen
wrong'. I said in another mail in this thread (parallel to this mail) that parsing the xml in java code is harder than using xslt. If I understand the factory suggestion correctly, this would problem would still remain. Thanks and regards (to all), Matthijs -- Matthijs Wensveen Func

Re: How to get a list of the connected users ?

2007-09-11 Thread Matthijs Wensveen
something with WebApplication.sessionDestroyed or ISessionStore.unbind. Although I'm not exactly sure when they are called (just browsing javadoc, that's all). Matthijs -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500

Form.updateFormComponentModels bug?

2007-09-10 Thread Matthijs Wensveen
deeply nested (fetch the component, register a listener), which is almost impossible now. -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL

Re: Form.updateFormComponentModels bug?

2007-09-10 Thread Matthijs Wensveen
Johan Compagner wrote: On 9/10/07, Matthijs Wensveen [EMAIL PROTECTED] wrote: Hi, According to the javadoc Form.updateFormComponentModels should update all the models of all FormComponents in a form (without validation presumably?). This sets all the model objects to the convertedInput

Re: why final?

2007-09-10 Thread Matthijs Wensveen
Martijn Dashorst wrote: On 9/10/07, Matthijs Wensveen [EMAIL PROTECTED] wrote: Off-topic: Why are so much methods marked final? This might prevent API-misuse but also prevents innovative _use_! I can understand you want framework users to do it the wicket way, because they will probably only

Re: Form.updateFormComponentModels bug?

2007-09-10 Thread Matthijs Wensveen
that such a choice should not only be made on the basis of memory usage. But since the choice is already made, I'll go with it until I can find a more convincing argument (although the link I supplied has some quite convincing ones). Matthijs -- Matthijs Wensveen Func. Internet Integration W http

Re: AjaxFallbackButton really require Form in constructor?

2007-09-03 Thread Matthijs Wensveen
Ah yes, you're right. Sorry 'bout that. Matej Knopp wrote: This would be wrong, as during constructor the component is not yet added to any parent. -Matej On 9/3/07, Matthijs Wensveen [EMAIL PROTECTED] wrote: Or maybe: public AjaxButton(String id) { this(id, getForm

Re: wantOnSelectionChangedNotifications causing table redraw

2007-09-02 Thread Matthijs Wensveen
in other instances so that the table redraw is smooth. Is there any way I can catch the selection changed event and have the table not redraw? I can redraw it myself with an AJAX target after I set the value in the textfield. -- Matthijs Wensveen Func. Internet Integration W http://www.func.nl T

Re: Wicket vs. ZK

2007-08-19 Thread Matthijs Wensveen
support it, we could drop HTML altogether :) I suppose one could write XUL components with wicket and have a servlet filter translate it to XHTML. The challenge would be wiring the events from the generated HTML to the wicket framework. It's an interesting idea though (I think). -- Matthijs