Re: [Wicket-user] Multible Panel Markup inside the page

2006-01-11 Thread Laurent PETIT
If I understand well, what you want is, say, starting from a big Page, made of only 1 html markup file and 1 java class, and first start to decompose the big java class into smaller units (1 Page and 0..n Panels), but still not decompose the html markup at that time. And so being able to

Re: [Wicket-user] Multible Panel Markup inside the page

2006-01-11 Thread Laurent PETIT
that for clarity. maybe a better way might be to create an InlinePanel class that does not extend from Panel if we decide to do anything about this. -Igor On 1/11/06, Laurent PETIT [EMAIL PROTECTED] wrote: If I understand well, what you want is, say, starting from a big Page, made

Re: [Wicket-user] Multible Panel Markup inside the page

2006-01-11 Thread Laurent PETIT
what he expected). On 1/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: because border is meant to /wrap/ things not replace them. -Igor On 1/11/06, Laurent PETIT [EMAIL PROTECTED] wrote: Euuuhh, and why not just subclass Border ? On 1/11/06, Igor Vaynberg [EMAIL PROTECTED

Re: [Wicket-user] beginner: Retain state when navigating using paging navigator

2006-01-11 Thread Laurent PETIT
); } } } public void detach() { } } -Igor On 1/11/06, Laurent PETIT [EMAIL PROTECTED] wrote: Yes, you're on your own for this use case : you need to manage a presentation model that encapsulate your pure domain model. Or, you could try to subclass

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-28 Thread Laurent PETIT
What about something like an internalRemove() that does everything needed when the component is removed, but NOT versioning stuff. And a remove() method, that does call internalRemove() and do the versioning stuff. Then the internalRemove() of MarkupContainer could call each internalRemove() of

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-27 Thread Laurent PETIT
catch errors in certain situtations, but obviously caused problems in others. i changed it so now the component is removed from its previous parent before it is added to its new one instead of throwing an error if a parent was already set. -Igor On 12/27/05, Laurent PETIT [EMAIL

Re: [Wicket-user] Help required for defining where wicket-strutsnested demo should be put in wicket-stuff

2005-12-19 Thread Laurent PETIT
it to the examples. -Igor On 12/15/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, Would you prefer that I create a module named something like wicket-contrib-example-strutsnested or wicket-contrib-strutsnested-demo in wicket-stuff, or would you like me to add

[Wicket-user] Help required for defining where wicket-strutsnested demo should be put in wicket-stuff

2005-12-15 Thread Laurent PETIT
Hello, Would you prefer that I create a module named something like wicket-contrib-example-strutsnested or wicket-contrib-strutsnested-demo in wicket-stuff, or would you like me to add this example to the wicket-contrib-examples existing project ? The former is one more module at the root, but

Re: [Wicket-user] wicket-strutsnested demo availability question

2005-12-13 Thread Laurent PETIT
Hello Igor, On 12/13/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I did not put this strategy [ReuseIfModelObjectsEqualStrategy] in extensions on purpose. The reason being is that this can really get you in trouble when dealing with detachable models. Imagine changing a page and having all

Re: [Wicket-user] wicket-strutsnested demo availability question

2005-12-13 Thread Laurent PETIT
Igor, thanks for your answer. On 12/14/05, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as the models go, maybe what you can do is make a detachable model that instead of the identity keeps the index of the list. so when you call getobject() on it it will retrieve that object from the list

[Wicket-user] Link LinkListener

2005-12-08 Thread Laurent PETIT
Hello, Is it possible to set a different LinkListener to a Link component, than the Link component itself ? Indeed, i can see the Listener interface, but the Link component registers itself as the Listener. Thanks in advance, -- Laurent ---

Re: [Wicket-user] Link LinkListener

2005-12-08 Thread Laurent PETIT
Hello Johan, make youre own link implementation No, sorry, that does not respond to my question. I see an interface with an onLinkClick(). I wondered if there was a way to give an implementation of this interface to the Link component instance, instead of doing subclassing. I imagine Wicket

Re: [Wicket-user] Link LinkListener

2005-12-08 Thread Laurent PETIT
Oh I'm sorry, I didn't read Johan's answer well. On 12/8/05, Christian Essl [EMAIL PROTECTED] wrote: The ILinkListener which Link implements is an IRequestListener which means that the Link will receive events from the wicket-servlet (quite indirectly) when the a href/ is clicked in the

Re: [Wicket-user] Link LinkListener

2005-12-08 Thread Laurent PETIT
On 12/8/05, Johan Compagner [EMAIL PROTECTED] wrote: The standard way of wicket is to subclass and implement the onClick or onSubmit method But if you want to do it through seperate listeners then yes you need to subclass link once so that you can add listeners on it. Just as i subscribed

Re: [Wicket-user] Link LinkListener

2005-12-08 Thread Laurent PETIT
e) { // do youre stuff } }); against wicket.Link = new Link() { onClick() { // do youre stuff } } johan On 12/8/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 12/8/05, Johan Compagner [EMAIL PROTECTED] wrote: The standard way of wicket is to subclass

[Wicket-user] Problem with ListView embedded in a Form

2005-11-29 Thread Laurent PETIT
Hello, In order to list and display editable fields for childrens of a bean, I use a ListView. An in order to keep track of validation error messages and user inputs, I carefully call ListView.setOptimizeRemoval(true) on the ListView instance. This works well, as long as I don't try to add or

Re: [Wicket-user] Problem with ListView embedded in a Form

2005-11-29 Thread Laurent PETIT
, Igor Vaynberg [EMAIL PROTECTED] wrote: you might want to try dataview with ListDataProvider along with ReuseIfModelsEqualStrategy or your own IItemReuseStrategy. I think it will make this particular problem easier. -Igor On 11/29/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello

Re: [Wicket-user] Problem with ListView embedded in a Form

2005-11-29 Thread Laurent PETIT
with ListDataProvider along with ReuseIfModelsEqualStrategy or your own IItemReuseStrategy. I think it will make this particular problem easier. -Igor On 11/29/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, In order to list and display editable fields for childrens of a bean, I use

Re: [Wicket-user] Problem with ListView embedded in a Form

2005-11-29 Thread Laurent PETIT
IItemReuseStrategy. I think it will make this particular problem easier. -Igor On 11/29/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, In order to list and display editable fields for childrens of a bean, I use a ListView. An in order to keep track of validation error messages and user

Re: [Wicket-user] [OT] Ideas for Java webapps free hosting ?

2005-11-27 Thread Laurent PETIT
/26/05, Laurent PETIT [EMAIL PROTECTED] wrote: thanks for the info -- Laurent On 11/26/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: We ask one the java servlet hosts if they would support our open source project by providing there service to us for free. They did and ask only

[Wicket-user] [OT] Ideas for Java webapps free hosting ?

2005-11-26 Thread Laurent PETIT
Hello, This is completely Off Topic, but I know that wicket examples are hosted somewhere, and the question I was asking to me is : is it hosted at some kind of free hosting company ? Such as the plenty PHP hosting we can find in the web ? One of my friends started a java project in sourceforge,

Re: [Wicket-user] [OT] Ideas for Java webapps free hosting ?

2005-11-26 Thread Laurent PETIT
, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, This is completely Off Topic, but I know that wicket examples are hosted somewhere, and the question I was asking to me is : is it hosted at some kind of free hosting company ? Such as the plenty PHP hosting we can find in the web ? One

Re: [Wicket-user] Security hole?

2005-11-25 Thread Laurent PETIT
On 11/25/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote: Well, I also had a share in pointing it out :) Yeah, with you pointing the bugs and me suggesting implementation fixes, that's a good team indeed ;-) By the way, it seems that the fix has already been submitted in cvs, thanks to Johan.

Re: [Wicket-user] Preserve form state

2005-11-25 Thread Laurent PETIT
will still get the value of the model (and not re-render the value of the user input ...). For Custom Components Developer : just call in your own onRenderTag() method the FormComponent.getValue(), just as before. HTH -- Laurent On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: Whoops

Re: [Wicket-user] Security hole?

2005-11-24 Thread Laurent PETIT
This problem is not only a security problem, but also a bug : Indeed, please go to the Wicket Examples, and try this: (http://www.wicket-library.com/wicket-examples/index.html ) -enter this in the first textfield of the forminput example : My team's name is Wicket's team - Then erase the value

Re: [Wicket-user] Security hole?

2005-11-24 Thread Laurent PETIT
, Laurent PETIT [EMAIL PROTECTED] wrote: This problem is not only a security problem, but also a bug : Indeed, please go to the Wicket Examples, and try this: (http://www.wicket-library.com/wicket-examples/index.html ) -enter this in the first textfield of the forminput example : My team's name

[Wicket-user] Solution proposal for Form aware things

2005-11-22 Thread Laurent PETIT
Hello the list, I think this post is more intended to Johan, as I think I have identified him as the one working on the Form aware things stuff. I wasbit disappointed that nobody replied to the patches attempts I've submitted on the list. Now I think this is because my post was lost at the end

Re: [Wicket-user] Solution proposal for Form aware things

2005-11-22 Thread Laurent PETIT
the time yet! I will get back to you and others who also where sending patches for these things And then try to find the best possible solution.johan On 11/22/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello the list, I think this post is more intended to Johan, as I think I have identified him

Re: [Wicket-user] new method RadioChoice.getInputValue() ?

2005-11-19 Thread Laurent PETIT
On 11/19/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: BTW: when I did the 'custom form processing' I also wanted to call Form.persistFormComponentData() but this is private. Should this be called when Button.defaultFormProcessing = false. use formComponent.setPersistent(true) instead. Wicket

Re: [Wicket-user] PasswordField special getModelValue() method question

2005-11-19 Thread Laurent PETIT
/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello,yet another question concerning PasswordField ?the getModelValue() returns and encrypted version, and the setModelValue() decrypts it, why ?The idea: prevent access to the plain password by accident. An attemptto make wicket apps secure without any

Re: [Wicket-user] new method RadioChoice.getInputValue() ?

2005-11-19 Thread Laurent PETIT
Please take a look at the patches / new versions of Form FormComponent that I sent to the list early this week ( see the Preserve form state thread). It is what I consider a pretty well formed hack that shows how I supposed form handling could work by default. It could maybe be done

[Wicket-user] Strange PasswordTextField behaviour

2005-11-18 Thread Laurent PETIT
Hello, When delving into the code, I found something weird with PasswordTextField (at least I am founding it weird :-) Indeed, in the case of the form marked as invalid, when the form is resubmitted, all the form components show the last user input (and not the model value), but the password

[Wicket-user] Re: Strange PasswordTextField behaviour

2005-11-18 Thread Laurent PETIT
The password text field, when resetPassword=false, is always re-rendered with the value of the model ... On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, When delving into the code, I found something weird with PasswordTextField (at least I am founding it weird :-) Indeed

Re: [Wicket-user] Re: Strange PasswordTextField behaviour

2005-11-18 Thread Laurent PETIT
On 11/18/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah. It was a feature. I don't see the value of that feature, could you explain ? My point of view : A user account page, with ability to modify name, address, and password. All the values of the database are prefilled (including password,

[Wicket-user] PasswordField special getModelValue() method question

2005-11-18 Thread Laurent PETIT
Hello, yet another question concerning PasswordField ? the getModelValue() returns and encrypted version, and the setModelValue() decrypts it, why ? Because it is still possible to get the real value by using getModelAsString() for example, which is not overriden, so I think it has not been

Re: [Wicket-user] Re: Strange PasswordTextField behaviour

2005-11-18 Thread Laurent PETIT
); } // No validation errors tag.put(value, getValue()); // Default handling for component tag super.onComponentTag(tag); } You can see here the call to the getValue() method, which will return invalidInput or getModelObjectAsString() as needed. --AndrewOn 11/18/05, Laurent PETIT [EMAIL

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Laurent PETIT
Thanks a lot for having sent the source code. I'll check it ASAP (but not before next week, I fear), because I'm *very* interested in encapsulating the behaviour you're talking about in a reusable package. I already have some ideas under the cover, but I'm far to having good knowledges of Wicket

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Laurent PETIT
On 11/17/05, Johan Compagner [EMAIL PROTECTED] wrote: youre SmartForms are just what i described as and Array/List inside a button so that a button knows what to valdate when it gets pressed. Certainly, it is an attempt to generalize this solution. But you're not fair when you say that it is

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Laurent PETIT
On 11/17/05, Johan Compagner [EMAIL PROTECTED] wrote: do you really want that seperating also in the html? (with all those spans?) No, not sure it's what I definitely want, I'm still in the brainstorming process, as I said. Looking at youre example and guessing what the smartform (and the

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Laurent PETIT
OK, now I have a first attempt to submit. It is what could be considered as a cleaner way to address Matej's initial problem. But it is a hack to the core, so it's normal that I've come up with something cleaner I think. And as it's a modification to the core, it's also more error-prone. It is

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Laurent PETIT
Whoops, the missing test files in attachment ... :-) On 11/18/05, Laurent PETIT [EMAIL PROTECTED] wrote: OK, now I have a first attempt to submit. It is what could be considered as a cleaner way to address Matej's initial problem. But it is a hack to the core, so it's normal that I've come

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Laurent PETIT
Hello, I had some same interrogations as Matej has ... I'm currently trying to fully reimplement a complex form made in struts in wicket, and some buttons of the form are there only to dynamically add elements to a list (doing a roundtrip with the server), but don't have to trigger the

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Laurent PETIT
Hello, I personally say. Do that with an in between model. And don't do youre validation in form-model but in inbetween model-real model I may be wrong, but this really makes me think we are reinventing Struts Forms-like beans with this in between model. Indeed, all input type=text fields

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Laurent PETIT
On 11/16/05, Johan Compagner [EMAIL PROTECTED] wrote: this also can be completely build into form itself. But then i think a separation looks/smells better.. But i am open to any idea's ! For me, the problem arises when you have a hierarchical model, and when you can edit in the same time

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Laurent PETIT
Hello, I think youre usecases can be build now with the current code base. uc1: that new button should be an immediant button (this is a property) then the model values are not processed. By the time, I don't really understand the immediant term, doesn't seem to be an english term at all

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Laurent PETIT
On 11/16/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. The problem is, that I don't want to validate the form, unless user clicks 'OK'. The model is updated after validation only. But the 'choose' button should NOT validate the form. I don't think it's a good thing storing the temporary

Re: [Wicket-user] Re: Preserve form state

2005-11-16 Thread Laurent PETIT
Hello, One option is to override Form.process() and compare findSubmittingButton() against your various buttons, then bypass the super method if you don't want it to update your model (just return true). Until wicket has some better way to bypass the model update, this works just fine. I

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Laurent PETIT
Hello Eelco, First of all, let's agree that your use case is not a typical one. We shouldn't make core adjustements that would make things easier for 5% but harder for 95% of the cases. Not sure if you're talking about Matej's or mines (a drawback of the GMail's view ...) ;-) I still do

Re: [Wicket-user] where do I put controller/dispatcher logic?

2005-11-09 Thread Laurent PETIT
Hello, On 11/7/05, Steven McNeel [EMAIL PROTECTED] wrote: I consider this sort of thing as analogous to MVC Front Controller (aka Dispatcher) logic. I'm basically unclear as to where that logic belongs in a Wicket app. The fact is, while I'm still new in the area of Components based web

Re: [Wicket-user] i18n messages in HTML

2005-11-09 Thread Laurent PETIT
Hello, What about something like that: Use one of the two forms (both could be allowed): wicket:label key=my.msg.keyA text to render/wicket:label or wicket:labelmy.msg.key/wicket:label Of course, this introduces a new element in the wicket namespace ... Or something like that: span

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Laurent PETIT
Yes, that's simple and that works, indeed. Thanks for the idea. On 11/4/05, Martijn Dashorst [EMAIL PROTECTED] wrote: I use wicket:remove around relative paths to the CSS in the webapp directory. So this looks like: html head style type=text/css src=style/style.css / wicket:remove

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Laurent PETIT
a web server means that java code it is mandatory. Do you think this is a drawback to Wicket (as well as Tapestry) that claims that designers and coders can work almost independently? 2005/11/3, Laurent PETIT [EMAIL PROTECTED]: On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: in order

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-04 Thread Laurent PETIT
On 11/4/05, Nathan Hamblen [EMAIL PROTECTED] wrote: But anyway, you can preview a component (in isolation) just fine in the component template without a web server. You can also preview the fake version in the page template without a server, though it's easy for that to get out of synch with

[Wicket-user] Previewing html only, including nested components html

2005-11-03 Thread Laurent PETIT
Hello, I don't know how to correctly preview a markup html only when it refers to css, javascript files, that are meant to be relative to the webapp context. I think this should be done by viewing the html markup from a running instance of the webapp only ? And also, I'd like to have this

[Wicket-user] Mutable form component ?

2005-11-03 Thread Laurent PETIT
Hello, I wonder if it is possible to create mutable form components, e.g. for my application the same administration page is shown but depending on the rights of the user, an element : - may be editable ( e.g. rendered as a textarea / TextArea ) - may be read-only ( e.g. rendered as a div /

Re: [Wicket-user] Mutable form component ?

2005-11-03 Thread Laurent PETIT
Great news! What would you suggest as a temporary solution, as long as 1.2 isn't out ? On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: That is part of 1.2 and currently under development Juergen On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I wonder

Re: [Wicket-user] Mutable form component ?

2005-11-03 Thread Laurent PETIT
with an text area and one with just a label And switch between those panels. On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Great news! What would you suggest as a temporary solution, as long as 1.2 isn't out ? On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote

[Wicket-user] Re: Previewing html only, including nested components html

2005-11-03 Thread Laurent PETIT
nobody for this one ? ;-) On 11/3/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello, I don't know how to correctly preview a markup html only when it refers to css, javascript files, that are meant to be relative to the webapp context. I think this should be done by viewing the html markup

Re: [Wicket-user] Re: Previewing html only, including nested components html

2005-11-03 Thread Laurent PETIT
On 11/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: in order to be pre-viewable the html editor must be able to find the css file without the help of wicket. The easiest way to accomplish it is to put the css into your source path and by means of wicket:link (autolinks) wicket is able to

[Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
Hello, I wonder if it is easily feasible to have functionality like struts-nested, the struts extension made by the keyboardmonkey team ( http://www.keyboardmonkey.com/pilotlight/next/Tutorial_partTwo.jsp?content=yesplease ) This allows to create forms with nested elements : a monkey having

Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote: That's easy to do in Wicket. You can nest anyway you want in your forms, including using listviews (though don't forget to set the optimizeItemRemoval property to true). I'll try to redo the struts monkey example in wicket, in order to

Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
/2/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Did you take a look at wicket-examples already? Compared to what is explained on the page you pointed to, it is very easy in Wicket and IMO much more flexibel. Juergen On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 11/2/05, Eelco

Re: [Wicket-user] How to do struts-nested like form element nesting in Wicket

2005-11-02 Thread Laurent PETIT
postpone any markup/ subcomponent decission until you actually need it, so this gives you max flexibility (though less previewability). Eelco On 11/2/05, Laurent PETIT [EMAIL PROTECTED] wrote: Yes I did, but maybe not too deeply I assume. I'll try and do what I'm thinking of using Wicket

Re: [Wicket-user] replace ognl.

2005-10-28 Thread Laurent PETIT
On 10/28/05, Johan Compagner [EMAIL PROTECTED] wrote: Does Wicket also check for direct public property of the same name ? not yet, but that is easy to build. That would be great. Same remark concerning maps vs beans. If find it great if we don't know if the property is contained in

Re: [Wicket-user] replace ognl.

2005-10-28 Thread Laurent PETIT
that i can first check for the expression as a property then if not found it is map value (doesn't matter if the key isn't there or not) johan On 10/28/05, Laurent PETIT [EMAIL PROTECTED] wrote: On 10/28/05, Johan Compagner [EMAIL PROTECTED] wrote: Does Wicket also check for direct

Re: [Wicket-user] replace ognl.

2005-10-27 Thread Laurent PETIT
have already been thrown by somebody. My 0.02 EUROS :-) -- Laurent Petit --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through

Re: [Wicket-user] replace ognl.

2005-10-27 Thread Laurent PETIT
Hello, On 10/27/05, Eelco Hillenius [EMAIL PROTECTED] wrote: AbstractPropertyModel could work with something like a propertyresolver/ delegate (one more indirection :)) for getting and setting values based on a expression, and it might even be a good idea to have the option of having the