Re: [Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-20 Thread Matej Knopp
Again, I didn't express correctly. I don't call this on label. AjaxRequestTarget does. -Matej Johan Compagner wrote: but if you use setRenderBodyOnly(true) on a label how can you target it for a ajax update at the first place? On 3/20/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL

[Wicket-user] HeadersToolbar span's break layout

2006-03-19 Thread Matej Knopp
Hi, I noticed that HeadersToolbar from wicket-extensions breaks layout of certain tables because it renders html like tr span th../th /span span th../th /span /tr The layout breaks when the table (resp. the container holding it) is replaced by ajax. The solution is to do

[Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-19 Thread Matej Knopp
Hi, there seems to be a serious problem with beta 2. Javascript replaces components with outerHtml, but they are rendered with setStripWicketTags(true), which causes severe problems. Or am I missing something? -Matej --- This SF.Net email

Re: [Wicket-user] HeadersToolbar span's break layout

2006-03-19 Thread Matej Knopp
thanks Igor Vaynberg wrote: done -Igor On 3/19/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I noticed that HeadersToolbar from wicket-extensions breaks layout of certain tables because it renders html like tr span th../th

Re: [Wicket-user] Re: Common Pitfall for Ajax Users in Wicket

2006-03-17 Thread Matej Knopp
-1 As well. Even span can break layout very easily. And one more question. What's wrong with forms? List views can't be replaced without containers, that's fine, but what's the problem with forms? -Matej Martijn Dashorst wrote: I'm -1 on this one. This will break layout for web pages. Most

Re: [Wicket-user] Ajax tree view

2006-03-13 Thread Matej Knopp
Well, few months ago I took wicket tree view and converted it to ajax tree view in basicaly in couple of minutes, just replacing links with ajaxfallbacklinks. But since then the wicket ajax implementation change a bit so it wouldn't work now (even if it had i would have hard time finding the

Re: [Wicket-user] wicket and ognl

2006-02-24 Thread Matej Knopp
20%? Maybe on simple properties, but I've been using ognl compound property model for list items, and with 20 list items on certain page the rendering took almost 300 milliseconds. Replacing it with new implementation the page was rendered in 30-50 milliseconds. So in some cases, the ognl

Re: [Wicket-user] TextField in ListView in Form, PLEASE!

2006-02-19 Thread Matej Knopp
Do you mean that the values you enter to the form aren't preserved? Well, you reload the list of items on every request (onBeginRequest()). So they can't be preserved. Instead, try to lead the list only once (in page constructor). That might help. -Matej On 2/19/06, Ali Zaid [EMAIL PROTECTED]

Re: [Wicket-user] VOTE

2006-02-17 Thread Matej Knopp
1. Give me the constructor change and the Java 5 functionality in one pass (Wicket 2.0) -Matej --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that

Re: [Wicket-user] PropertyModel question

2006-02-15 Thread Matej Knopp
It is possible in 1.2. Just ensure the field is public. And it should work. Frank Silbermann wrote: In Wicket 1.2, if an object has a public variable named “property” but no getProperty() / setProperty() methods, can we use the string “property” in constructing a PropertyModel? It seems

Re: [Wicket-user] Wicket ajax modal dialog

2006-02-10 Thread Matej Knopp
, Matej Knopp [EMAIL PROTECTED] wrote: Hi, I've made a javascript modal dialog component (iframe based). The demo is available on http://ruzin.fei.tuke.sk:8080/majcher/app if there is any interest in this, I can put it to wicket stuff (having discussed this with igor there might be a (sub)project

[Wicket-user] Wicket ajax modal dialog

2006-02-09 Thread Matej Knopp
Hi, I've made a javascript modal dialog component (iframe based). The demo is available on http://ruzin.fei.tuke.sk:8080/majcher/app if there is any interest in this, I can put it to wicket stuff (having discussed this with igor there might be a (sub)project called wicket-ajax-extensions).

Re: [Wicket-user] Using Popup window

2006-02-03 Thread Matej Knopp
Afaik Popup close link removes the popup page from pagemap. -Matej Thomas J du Plessis wrote: Thanks Igor That worked fine. What am I missing though with PopupCloseLink? What does it do differently than a window.close() JavaScript command i.t.o. cleaning up? On 2/2/06, *Igor Vaynberg*

Re: [Wicket-user] wicket links and usability

2006-01-30 Thread Matej Knopp
pepone pepone wrote: Hello all I using wicket and think that there is samething wrong in this framework when you have 10 diferents classes in wicket.markup.html.link and there isńt way to create a bookmarkable link to a resource that need params using any of them. and with my knowledge of

[Wicket-user] Markup Parsing in 1.2

2006-01-19 Thread Matej Knopp
Hi, in 1.1, I had my own markup parser and XMLPullParser, that basically replaced all ${key} strings in Markup with the values from associated properties files. This no longer works for 1.2, because MarkupParserFactory.newMarkupParser does not provide the MarkupContainer, for which the

Re: [Wicket-user] Markup Parsing in 1.2

2006-01-19 Thread Matej Knopp
approach mentioned above. In case you have any difficulties implementing it, please let me know. Juergen Juergen On 1/19/06, Matej Knopp [EMAIL PROTECTED] wrote: Hi, in 1.1, I had my own markup parser and XMLPullParser, that basically replaced all ${key} strings in Markup with the values from

Re: [Wicket-user] threading question

2006-01-19 Thread Matej Knopp
Are you sure? At least in 1.1, I have a PDF report generator link, and while the pdf is generating, the session is locked and no other request (From the same user) can touch it, so all other requests are waiting. -Matej Eelco Hillenius wrote: That won't ever happen. It is not possible for

Re: [Wicket-user] Markup Parsing in 1.2

2006-01-19 Thread Matej Knopp
Juergen Donnerstag wrote: On 1/19/06, Matej Knopp [EMAIL PROTECTED] wrote: Can't say I like the first approach much. When I was implementing the localization before, that was the first thing i tried. Didn't like it then, but maybe things have changed. Still, it won't be possible for me to use

Re: [Wicket-user] Datapicker warning

2005-11-28 Thread Matej Knopp
that are in jars are not available to be changed thus the error is shown. You shouldn't see this in production when the polling feature is turned off. On Nov 27, 2005, at 9:06 AM, Matej Knopp wrote: Hi. I'm using datepicker and I'm constantly getting this warning 17

Re: [Wicket-user] Datepicker and opera

2005-11-28 Thread Matej Knopp
Doesn't work :( wicket:id is not problem for other elements, it seems just to cause problems with input. Maybe a bug in opera? -Matej Juergen Donnerstag wrote: may be html xmlns:wicket=http://wicket.sourceforge.net; to define the namespace? Juergen On 11/27/05, Matej Knopp [EMAIL

[Wicket-user] Datapicker warning

2005-11-27 Thread Matej Knopp
Hi. I'm using datepicker and I'm constantly getting this warning 17:46:32.146 WARN!! [SocketListener0-3] wicket.util.resource.UrlResourceStream.init(UrlResourceStream.java:92) 22 cannot convert url:

[Wicket-user] Datepicker and opera

2005-11-27 Thread Matej Knopp
Hi. I found out, why the datepicker is not working in Opera. The problem is the wicket:id, that confuses opera. having input wicket:id=xyz id=elementId/ document.getElementById('elementId') returns null. the (temporary?) solution now is to setStripWicketTags(true); Any ideas? -Matej

Re: [Wicket-user] Preserve form state

2005-11-26 Thread Matej Knopp
Now this is great, I really like it ;) Thanks to everyone involved. -Matej Eelco Hillenius wrote: Also please note that we're in the middle of refactoring some of the wicket internals, and the solution as currently implemented might change a bit still (though hopefully only the internals).

[Wicket-user] DatePicker and opera

2005-11-23 Thread Matej Knopp
Hi, DatePicker doesn't work in opera. It shows a window with this error message: Calendar setup: Nothing to setup (no fields found). Please check your code. Has anyone a clue, what's going on? To me, it seems that somehow the javascript can't touch input field, even if the javascript

Re: [Wicket-user] DatePicker and opera

2005-11-23 Thread Matej Knopp
it is jscalendar. Eelco On 11/23/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi, DatePicker doesn't work in opera. It shows a window with this error message: Calendar setup: Nothing to setup (no fields found). Please check your code. Has anyone a clue, what's going on? To me, it seems

Re: [Wicket-user] wicket-contrib-jaspperreports JRResource optimalization

2005-11-22 Thread Matej Knopp
it should be mentioned in the javadoc? Any ideas? -Matej Matej Knopp wrote: Checked it out, I really like it. Mine was just a quick hack ;) -Matej Eelco Hillenius wrote: Thanks. Much better now. I implemented a couple of small changes on top of it, please check out whether you agree (find

Re: [Wicket-user] wicket-contrib-jaspperreports JRResource optimalization

2005-11-22 Thread Matej Knopp
Uh, I forgot, PdfDataSource is final, so option B is not even an option now ;) Matej Knopp wrote: Btw, there's a problem with current implementation. After the report is done, you can't generated another report (e.g. clicking twice on the same link). Because datasource is the same and it's

Re: [Wicket-user] Wicket i18n at the page level

2005-11-21 Thread Matej Knopp
Having a component on every place localized text is, doesn't seem to be a very good solution for me. As well as not be able to localize button captions. The solution I've chosen was to translate the markup during parsing (using my own modified MarkupParser). This solution works quite well for

Re: [Wicket-user] wicket-contrib-jaspperreports JRResource optimalization

2005-11-21 Thread Matej Knopp
Okay, once more, without antivirus message attached to java file and one unnecessary try/catch block :) Matej Knopp wrote: Hi. There's a slight performace problem with JRResource, that it creates JasperReport in it's constructor. I've 10 resource links on one page so it means that 10

Re: [Wicket-user] Hibernate paging

2005-11-21 Thread Matej Knopp
Hi, Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging. -Matej Juhani K wrote: Hi, what is recommended way to create pageable ListView for 1 database items? Is it possible to utilize Hibernate paging?

[Wicket-user] wicket-contrib-jasperreports img resource bug

2005-11-20 Thread Matej Knopp
Hi, there's a bug in JRImageResource that the size of output image does not reflets the zoom. (It's always the same - iamage than gets cropped). I wanted to submit a bugreport and commit a patch but I can't even checkout the project from anonymous cvs (I've got the source code from web

Re: [Wicket-user] CompoundPropertyModel without OGNL in 1.1

2005-11-17 Thread Matej Knopp
with 1.1 and 1.2? Thats nice to hear :) Backporting to 1.1.1 ... we could do it but it is a big change.. that could affect running installs (you can't just swap 1.1 to 1.1.1 then if you depend a bit more on ognl) This should be an issue where we should count votes! johan On 11/16/05, Matej Knopp

Re: [Wicket-user] Re: ComponentFeedbackMessageFilter

2005-11-17 Thread Matej Knopp
Well, it's little more complicated. FeedbackPanel doesn't use the filter directly. It uses FeedbackMessagesModel to feed the ListView, and that model uses the Filter. Nevertheless, overriding getFeedbackMessageFilter worked well for me. Which version of wicket are you using? I'm using 1.1 and

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Matej Knopp
to use a inbetween model There is no other way. Even if we stored it inside the form itself then that is the inbetween model And i don't know if i want to support that. On 11/16/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. The problem

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Matej Knopp
have? I don;t think anything will really change in the validation and or feedback. On 11/17/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, having to do validation in model seems like a step backwards from what I have now. There are already validators that can

Re: [Wicket-user] Preserve form state

2005-11-17 Thread Matej Knopp
something. johan On 11/17/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Okay, so if I understand you correctly, you suggest changing default form processing like this? - immediate button submitted: validate(); if (hasError

Re: [Wicket-user] CompoundPropertyModel without OGNL in 1.1

2005-11-17 Thread Matej Knopp
in comparison of the total computing for one request? Any other bottlenecks you can identify? Or was - like Johan said - OGNL one of the biggest hurdles? Eelco On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Okay, I took CompoundPropertyModel from 1.2 and put it to my project, so that I can directly

Re: [Wicket-user] performance problem - urgent

2005-11-17 Thread Matej Knopp
No, he is not using resource reference. The site worked, just a while ago. The image was a static image, served by the http server, just without the right headers. -Matej Juergen Donnerstag wrote: The online page throws an exception. Are you using a resource reference(!) and not a plain

Re: [Wicket-user] performance problem - urgent

2005-11-17 Thread Matej Knopp
Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have

Re: [Wicket-user] performance problem - urgent

2005-11-17 Thread Matej Knopp
: Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I thought a little and maybe, but just maybe, the images are not cached because of the way wicket forms the urls and everything ... I'm sorry, I can't help you here

Re: [Wicket-user] performance problem - urgent

2005-11-17 Thread Matej Knopp
Your problem is really strange. As far as I know tomcat (and other servlet containers) put Last-Modified header to static resources automatically. I really don't know where was it lost. I suspect the connector. But have no experience with it, unfortunately. -Matej Matej Knopp wrote: But you

Re: [Wicket-user] performance problem - urgent

2005-11-17 Thread Matej Knopp
it doesn't know that the image hasn't changed. -Matej Alexandru Popescu wrote: #: Matej Knopp changed the world a bit at a time by saying on 11/17/2005 8:28 PM :# No, he is not using resource reference. The site worked, just a while ago. The image was a static image, served by the http server

Re: [Wicket-user] performance problem - urgent

2005-11-17 Thread Matej Knopp
the browser to fetch the page for each hit. I don't know how static content is treated, but this may be the cause. ./alex -- .w( the_mindstorm )p. On 11/17/05, Dorel Vaida [EMAIL PROTECTED] wrote: Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers

Re: [Wicket-user] performance problem - urgent

2005-11-17 Thread Matej Knopp
Alexandru Popescu wrote: On 11/17/05, Matej Knopp [EMAIL PROTECTED] wrote: Yes, but these tags only affects the html. As it's dynamically generated, it's all right to always fetch the new version. But with static images, there should be a header provided with the image, that informs

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Matej Knopp
(it can't be between Form-Model but it has to be between TmpModel-RealModel This looks to me like a much better way to have multiply page forms... johan On 11/13/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. I know this has been discussed already, but still I'm

[Wicket-user] CompoundPropertyModel without OGNL in 1.1

2005-11-16 Thread Matej Knopp
Hi. My current benchmark shows that CompoundPropertyModel is a serious performance issue when having big dataview. Is there any chance that the new CompoundPropertyModel from 1.2 will be backported to 1.1? -Matej --- This SF.Net email is

Re: [Wicket-user] Preserve form state

2005-11-16 Thread Matej Knopp
I think this is not about updating model nor validating. It's about preserving http parameters, that are already sent. What I want to achieve is that you have kind of immediate button, that preserves the form attributes (exactly as they were filled by the user), but doesn't update model, nor

[Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
Hi. In Component class, the flag FLAG_HAS_ROOT_MODEL is set only if the model is CompoundPropertyModel. Why do we have ICompoundModel then? Shouldn't it only check if the model implements ICompoundModel? -Matej --- SF.Net email is

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
: No because components can have a ICompoundModel but not be the root because they got there model from the root. (see initModel()) johan On 11/14/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi. In Component class, the flag FLAG_HAS_ROOT_MODEL is set only

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
Form(); form.setModel(new MyCompoundModel); // set a compound model so it is the root! TextField tf = new TextField(); // no model! then tf.initModel() will get the forms model and use it as its own BUT it is not the root. johan On 11/14/05, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Matej Knopp
I assume he meant that multiple (different) threads can access the page/session during page lifecycle. But not during one request. -Matej Alexandru Popescu wrote: #: Johan Compagner changed the world a bit at a time by saying on 11/14/2005 6:18 PM :# at the same time. What do you mean?

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
Okay, I should have written it in a different way. I just wasn't sure if it was a bug or an intention :) -Matej Johan Compagner wrote: ahh i read youre first message wrong because how it was written :) Why do we have ICompoundModel then? fixed it. johan On 11/14/05, *Matej Knopp* [EMAIL

[Wicket-user] Preserve form state

2005-11-12 Thread Matej Knopp
Hi. I know this has been discussed already, but still I'm opening it once more. I think there should be a way to preserve form state without validation and model updating. The use case is following. I have a (complex) form with some fields, that can not be entered directly, i.e. they have

Re: [Wicket-user] Abstract validator always throws MissingResourceException

2005-11-03 Thread Matej Knopp
it and it seems to work. Defaults can be defined if the key is just RequiredValidator (the validators class name without any prefix). In case no other key is found, it'll be used as default. Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi. I just want to ask, why AbstractValidator

Re: [Wicket-user] Abstract validator always throws MissingResourceException

2005-11-03 Thread Matej Knopp
Juergen On 11/3/05, Matej Knopp [EMAIL PROTECTED] wrote: If I put there something like RequiredValidator=XYZ it works. But that's not what I mean. The problem is, that I want to see in feedback something like * entry1.RequiredValidator value is missing * entry2.RequiredValidator value

Re: [Wicket-user] replace ognl.

2005-10-30 Thread Matej Knopp
In my opinion, there's no need for another indirection. From what I've seen, new users are already confused about models, making them even more complicated isn't imho the way to go. I think that Ognl models should be separated from the core and put to extensions. That would also get rid of

Re: AW: Re: [Wicket-user] Re: Re: Page lifecycle notification

2005-10-12 Thread Matej Knopp
And how do you make sure that the hibernate connection is ever closed? You can't count on another http request, since it may never come. Will you put a hook on session expiration? -Matej [EMAIL PROTECTED] wrote: just curious what does this mean: All I need is to be able to disconnect the

Re: [Wicket-user] Browser cache doesn't like Wicket path

2005-10-05 Thread Matej Knopp
Hi I think it would be nice to have a feature in 1.2 that would allow having single instance of certain pages. For example if I said that MyPage class is singleton, bookmarkablePage=MyPage would search the PageMap if there is any instance of MyPage and if it's there, it would use it. Another

Re: [Wicket-user] Browser cache doesn't like Wicket path

2005-10-05 Thread Matej Knopp
Matej Knopp wrote: Hi I think it would be nice to have a feature in 1.2 that would allow having single instance of certain pages. For example if I said that MyPage class is singleton, bookmarkablePage=MyPage would search the PageMap if there is any instance of MyPage and if it's

Re: [Wicket-user] DropDownChoice.setDisable ?

2005-09-23 Thread Matej Knopp
Yes, that would make sense. Another thing is that disabled elements don't get submitted, so there should be some handling of this (e.g. not update form component state when disabled, or something like that) -Matej Eelco Hillenius wrote: disabled is a standard html property of form elements.

[Wicket-user] PageParameters and Null Values

2005-09-07 Thread Matej Knopp
Hi. I don't know if this has been discussed yet. Using PageParameters and BookmarkablePageLinks I just found a strange feature. If there is null in PageParameters for argument foo, the url contains 'foo=null'. Is this deliberate? Wouldn't it have more sense if url didn't contain the foo

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Matej Knopp
and updateModel. But it would be even easier, if getInput() wasn't final... Or if in input name=XXX XXX didn't contain page id. Any ideas? -Matej Matej Knopp wrote: Hi I just want to ask whether it is necessary for the form components to contain page id in their names? Isn't it sufficient

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Matej Knopp
I didn't want vote, just your opinions :) -Matej Eelco Hillenius wrote: Ah, yes :) Do you want to start a vote as a new message? It seems that votes are only picked up by people when there is a large VOTE: in the subject. Eelco On 9/6/05, Matej Knopp [EMAIL PROTECTED] wrote: Eelco

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Matej Knopp
that) ok? johan johan Matej Knopp wrote: Eelco Hillenius wrote: Yep. We could just strip the first nbr + '.'. That's not a big problem. nbr + ':' ;) Great. Thanks for quick and positive feedback. -Matej Eelco On 9/5/05, Johan Compagner [EMAIL PROTECTED] wrote

Re: [Wicket-user] Re: Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread Matej Knopp
Okay, I don't see a point of this discussion unless it's a vote, but I just liked setImmediate more :) It's less verbose and it seemed clean to me that it bypasses validation and model updates. -Matej David Liebeherr wrote: Hi Eelco, i think setDefaultFormProcessing is a very good name. I

[Wicket-user] Do form components have to contain page id in their names?

2005-09-05 Thread Matej Knopp
Hi I just want to ask whether it is necessary for the form components to contain page id in their names? Isn't it sufficient to have page id specified only in form action? The fact is that the form components' names depend on the current page id and things like browser's autocomplete just don't

[Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Matej Knopp
Hi. For a long time I was working with render strategy set to REDIRECT_TO_RENDER. Now I've switched to REDIRECT_TO_BUFFER and found out, that removing items from ListViews no longer works. I've code like IModel customersModel = new LoadableDetachableModel() { protected

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Matej Knopp
isn't loaded twice because all is done in one request. customersModel.detach() should do the trick or remove the deleted customer specific from that model johan Matej Knopp wrote: Hi. For a long time I was working with render strategy set to REDIRECT_TO_RENDER. Now I've switched

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Matej Knopp
programming to me ;) can't you just have a reference directly to youre customersModel ?? johan Matej Knopp wrote: Okay, thank you, this works. Nevertheless putting getParent().getParent().getModel().detach(); to link handler doesn't seem very pretty. Maybe like I'll just stick

Re: [Wicket-user] ListView, delete and redirect to buffer

2005-09-05 Thread Matej Knopp
Matej Knopp wrote: sure I can have reference to customerModel by making it final. But I want to get as much garbe collected as possible at the end of request and making the reference final wouldn't help it much :) But considering the speed issue, maybe it is better to use redirect_to_buffer

Re: [Wicket-user] Setting component visiblity according to model

2005-08-20 Thread Matej Knopp
Your onToBeNamed() method already exists, and it's called onBeginRequest() :) -Matej Ralf Ebert wrote: Hi, you may override Form.onRender() or Form.onComponenTagBody(). First do your check and set components invisible/visible and than call the super implementation. I had another case

Re: [Wicket-user] Setting component visiblity according to model

2005-08-20 Thread Matej Knopp
Hmm.. You may be right. I'm using REDIRECT_TO_RENDER strategy. thus for me, this is working well. But I understand this doesn't work with REDIRECT_TO_BUFFER. -Matej Ralf Ebert wrote: Hi, Your onToBeNamed() method already exists, and it's called onBeginRequest() :) onBeginRequest() is

Re: [Wicket-user] Homepage URL bug?

2005-08-16 Thread Matej Knopp
You can map you servlet to myApp/ e.g. servlet-mapping servlet-nameWicketServlet/servlet-name url-pattern/myApp//url-pattern /servlet-mapping but you must be aware, that all external resources (css, js, images) will be one level deeper. -Matej Jan Bares wrote: Hi, I

Re: [Wicket-user] Old versions, caches, and PageMaps

2005-08-12 Thread Matej Knopp
I think this should be somehow possible to do, without altering wicket in any way. I'd like to see your progress here :) There is a problem, though, that Johan has already pointed out, that if you use syntax like /signin/home, etc.. You have to treat all urls in your markup (images,

Re: [Wicket-user] Logout Session

2005-08-07 Thread Matej Knopp
This is the way I do it. After logout it redirect to the home page (Servlet name without any arguments) public class LogoutPage extends BasePage { public LogoutPage() { } protected void onEndRequest() { getSession().invalidate(); try {

Re: [Wicket-user] Logout Session

2005-08-07 Thread Matej Knopp
the session holds all the pages. a simple redirect is the only possibility. personally, i prefer a goodbye page so that links to the home page so that people get clear confirmation that they signed out. Matej Knopp wrote: This is the way I do it. After logout it redirect to the home page

Re: [Wicket-user] Logout Session

2005-08-07 Thread Matej Knopp
that people get clear confirmation that they signed out. Matej Knopp wrote: This is the way I do it. After logout it redirect to the home page (Servlet name without any arguments) public class LogoutPage extends BasePage { public LogoutPage() { } protected void onEndRequest

Re: [Wicket-user] encoding

2005-08-05 Thread Matej Knopp
Hmm.. Maybe the bookmarkable link should properly escape page parameters... (at least replacing for amp;) -Matej [EMAIL PROTECTED] wrote: Well, let me try to be more clear with code. PageParameters pParams = new PageParameters(); pParams.put(name, ab); BookmarkablePageLink link = new

Re: [Wicket-user] problem

2005-08-05 Thread Matej Knopp
Yeah, that would be nice. I'm +1 for it. -Matej Jonathan Locke wrote: was just looking at the new database code i've been writing and it seems like i could provide a nice shortcut to add custom resource handling to that... basically you could override a method like one of these in your

Re: [Wicket-user] Links and css

2005-08-05 Thread Matej Knopp
Well, I kind of disagree here. What you are talking about is context name. 'app' is just servlet name. There should _not_ be slash after app. You can have as many contexts as you want. The problem is, that you have deployed the application to / (root) context. I for example have EvStudZad

Re: [Wicket-user] Links and css

2005-08-05 Thread Matej Knopp
Philip A. Chapman wrote: Matej Knopp wrote: Well, I kind of disagree here. What you are talking about is context name. 'app' is just servlet name. There should _not_ be slash after app. You can have as many contexts as you want. The problem is, that you have deployed the application

Re: [Wicket-user] My wicket application

2005-08-03 Thread Matej Knopp
and most of the department staff is on vacation. -Matej Peter Veentjer - Anchor Men wrote: Are you going to make it opensource? I would like to have a look at Wicket in a serious application. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Matej Knopp

Re: [Wicket-user] My wicket application

2005-08-03 Thread Matej Knopp
Thank you very much. Of course, this has to be fixed. Seems that I've overlooked it. This is exactly what I ment when I said that any button can be pressed. :) If you found anything similiar (exception where they shouldn't be (actually, they should be nowhere :)), pleas let me know. -Matej

Re: [Wicket-user] My wicket application

2005-08-03 Thread Matej Knopp
would sove this. -Matej Michael Jouravlev wrote: On 8/3/05, Matej Knopp [EMAIL PROTECTED] wrote: Btw. What do you think would be correct action? Showing user a message, that assignment has been deleted, or Being able to save the assignment, without throwing any exception? (or showing user

Re: [Wicket-user] My wicket application

2005-08-02 Thread Matej Knopp
Thank you for positive responses :) When it's done, I'm going to put a big 'using wicket' button there :-) Btw. feel free to push any button you find there :) -Matej Matej Knopp wrote: Just in case anyone would be interested, there's a pre-alpha version of my application running at http

Re: [Wicket-user] What's the state of using 1.5 generics in wicket?

2005-08-01 Thread Matej Knopp
David Liebeherr wrote: Martijn Dashorst wrote: Considering most companies are still working on JDK 1.4 for their application servers (WebSphere being the numbero uno), there is a slim chance you will find Java 5 features in Wicket core. Of course there can be Java 5 /extensions/ and

[Wicket-user] How to invalidate session?

2005-07-31 Thread Matej Knopp
Hi. I've a logout link and I want it to invalidate the session and redirect to homepage. Is there a simple way to do this? Calling Session.invalidate() in link handler throws java.lang.IllegalStateException. Thanks -Matej --- SF.Net

Re: [Wicket-user] How to invalidate session?

2005-07-31 Thread Matej Knopp
() { getSession().invalidate(); } } Matej Knopp wrote: Hi. I've a logout link and I want it to invalidate the session and redirect to homepage. Is there a simple way to do this? Calling Session.invalidate() in link handler throws java.lang.IllegalStateException. Thanks -Matej

Re: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Matej Knopp
Matej Knopp wrote: How can you ensure that a session will be closed? What if user got disconnected? Will the session hang open until the http session timeout? Another problem that comes to my mind is that hibernate session is not thread safe. Using one session through multiple request you

Re: [Wicket-user] Markup inheritance bug?

2005-07-29 Thread Matej Knopp
I'm afraid not. When using markup inheritance and having setStrip... off, the result page looks like this wicket:extenddoctype... everybrowser will ignore doctype, as it's preceeded by wicket:extends. So no schema is going to help there. -Matej Eelco Hillenius wrote: Phil Kulak wrote: I

Re: [Wicket-user] Wicket 1.1-beta2 or rc1 this weekend?

2005-07-29 Thread Matej Knopp
Hmm.. couldn't there be both? public AbstractChoice(final String id, IModel model, final List choices, final IChoiceRenderer renderer) { this(id, model, new Model(choices), renderer) } public AbstractChoice(final String id, IModel model, final IModel

Re: [Wicket-user] Wicket 1.1-beta2 or rc1 this weekend?

2005-07-29 Thread Matej Knopp
wrote: Yes and on all its subclasses. But we could do that... Matej Knopp wrote: Yeah, 9 might seem a little bit scary number :) But i think most of them are self-explaining... -Matej Eelco Hillenius wrote: That would mean having 9 (!) constructors though... Eelco Matej Knopp wrote

Re: [Wicket-user] VOTE: remove moveUp/moveDown and removeLinks from ListView

2005-07-29 Thread Matej Knopp
+1 I've allways wondered why are they there :) -Matej Eelco Hillenius wrote: I think we should remove these methods. They are quite easy to implement yourself, and they limit the ways we can change ListView's internals. I can see they are 'handy', but I feel they also mess up the idea that a

Re: [Wicket-user] Markup inheritance bug?

2005-07-28 Thread Matej Knopp
is, what is more important. Juergen On 7/27/05, Matej Knopp [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I agree, nothing should go before doctype. But we don't test it. Actually you might add doctype whereever you want to. I think none of the web frameworks validates the output. They all rely

Re: [Wicket-user] Markup inheritance bug?

2005-07-28 Thread Matej Knopp
? Juergen On 7/28/05, Matej Knopp [EMAIL PROTECTED] wrote: Hmm.. This does sound logical. But then we should use doctype of the component (inherited page) and put it in front, ignoring the doctype of the parent page. I understand, but IMO it is too much of magic. Will it be clear to every user

Re: [Wicket-user] Markup inheritance bug?

2005-07-28 Thread Matej Knopp
. I understand it's comes from the way markup inheritance is implemented. -Matej Matej Knopp wrote: SetStripWicketTag() should definitely be fixed. Once this is fixed, having doctype first would be nice, but not necessary. -Matej Juergen Donnerstag wrote: How important is it for you

Re: [Wicket-user] Markup inheritance bug?

2005-07-27 Thread Matej Knopp
/html Exactly. I'l check it. Thanks. -MAtej Juergen On 7/27/05, Matej Knopp [EMAIL PROTECTED] wrote: Hmm.. If this is default behavieor, then I think it's a little bit weird. Having wicket:extend before doctype causes problems. I still don't understand the reason for this. Having markup

[Wicket-user] Markup inheritance bug?

2005-07-26 Thread Matej Knopp
Hi, I'm using 1.1 and I just tried markup inheritance. It works almost ok, but there's one strange thing. The generated page source code starts with wicket:extend. It's even before doctype, and that's bad. It's there no matter if setStripWicketTags is on or off. Is this correct behavior?

Re: [Wicket-user] Wicket 1.1-b1 released

2005-07-24 Thread Matej Knopp
1.1.0-b1 is a great release. I've succesfully upgraded my current project. It was almost painless :) Actually, it consisting of removing a class that was a wrapper around ListMultipleChoice, because it was obsolete in 1.1, as well as removing my own ChoiceList implementation, since it's no

Re: [Wicket-user] Wicket 1.1-b1 released

2005-07-24 Thread Matej Knopp
Sure you can. :) -Matej Martijn Dashorst wrote: Can I use this comment on my blog? A little advertisement never hurt ;-) Martijn Matej Knopp wrote: 1.1.0-b1 is a great release. I've succesfully upgraded my current project. It was almost painless :) Actually, it consisting of removing

<    1   2   3   4   5   6   7   >