Re: AW: AW: [Wicket-user] Wicket; Package com.voicetribe.util.code

2004-11-04 Thread Johan Compagner
+1 keep commons-logging Martijn Dashorst wrote: Yes, and that's why commons-logging is the only viable solution. Although commons-logging apparently has its problems, those problems might be fixed in newer versions. There are people specifically thinking about the logging problem in the

Re: [Wicket-user] wcn -- wicket

2004-12-29 Thread Johan Compagner
wcn- wicket is also has a +1 for me (then the name wicket is more open and visible in all the html pages :)) BUT i am only +1 IF it happens before 1.0! We can't do such a change after 1.0... That would be really horrible... johan Jonathan Carlson wrote: I'd support the change to

Re: [Wicket-user] Proposal for new markup format

2004-12-29 Thread Johan Compagner
p.s. could someone ask wouter what he thinks of this idea too? We (eelco and i) will discuss this with wouter. But he is on vacation currently But maybe tomorrwo. johan --- SF email is sponsored by - The IT Product Guide Read honest candid

Re: [Wicket-user] Proposal for new markup format

2004-12-29 Thread Johan Compagner
i can be wrong but [autolink] is not a component you create in the javacode It is created for you. So saying autolink=true as a attribute.. What does that mean? You don't want to specify it because then it must be in a specific hiearchy and that is just what we want to circumvent with

Re: [Wicket-user] Proposal for autolink replacement

2004-12-30 Thread Johan Compagner
So we are going to test every a href to see if it points to a wicket page (you try to get a page constructor for the given href i take) If this doesn't take to much resources (memory and cpu) then this looks good to me. johan Gili wrote: Jon and I would like to propose a replacement for

Re: [Wicket-user] Proposal for autolink replacement

2004-12-30 Thread Johan Compagner
- How are we going to support absolute package-path? we should. - I recall Jon talking about an alias map (Admin.html = administration/Home.html) to be set through AppSettings not preferred by me. - The currenlty implementation works with admin.Home.html. I propose the new one will ONLY

Re: [Wicket-user] Proposal for autolink replacement

2005-01-01 Thread Johan Compagner
On Sat, 01 Jan 2005 20:57:58 +0100, Johan Compagner wrote: normally (if you don't set a sourcepath in the ApplicationSettings) the html must be beside the class. So in the package. But a href to something in a page can contain this: Xxxx.html That thing could be a normal (no wicket component html

Re: [Wicket-user] TabbedPanel ?

2005-01-25 Thread Johan Compagner
no it is not really a generic thing. Then i have to look more deeply into the Menu structure i use. Eelco Hillenius wrote: I made one. But Johan made a better one. Johan, is your tab-thingy re-usable yet? Generic enough to e.g. put in contrib? Eelco Jonathan Carlson wrote: Has anyone started a

Re: [Wicket-user] Using form.onSubmit()

2005-02-09 Thread Johan Compagner
yes this is also a thing that i don't like very much currently. With links you can add a link and then implement linkClicked() It would be nice that buttons also work this way.. johan Martijn Dashorst wrote: Is there a more elegant way to determine which button was clicked when the onSubmit

Re: [Wicket-user] Re: Re: Urp!, out of memory error in 1.0.0rc1

2005-04-06 Thread Johan Compagner
I have found the problem in our code. Will fix this for example this kind of piece is going wrong: java.net.URL url = new java.net.URL(file://C:/Program Files/Putty/putty.exe); String test = url.toExternalForm(); java.io.File file = new java.io.File(new java.net.URI(test)); will look at it.

Re: [Wicket-user] Re: Re: Urp!, out of memory error in 1.0.0rc1

2005-04-06 Thread Johan Compagner
for the error page problem (so don't fix that part). the fix below was something gili talked me into. if you change it, be sure to read the sun bug first. Johan Compagner wrote: I have found the problem in our code. Will fix this for example this kind of piece is going wrong: java.net.URL url = new

Re: [Wicket-user] Wizards in wicket.

2005-04-19 Thread Johan Compagner
hmm... writing out games that you will win youreself! nice! :) Eelco Hillenius wrote: Maybe we should write out a competition: who builds the best high-level reusable wizzard component :) Eelco Martijn Dashorst wrote: I have put this on the wiki

Re: [Wicket-user] more on the back button

2005-04-19 Thread Johan Compagner
please add a bug report for this. Should/must be fixed for the next rc [EMAIL PROTECTED] wrote: In a previous message I mentioned a problem with the back button and the examples I should have mentioned that it was the displaytag paging and sorting examples. If you click on the last page (2)

Re: [Wicket-user] multiple submit button question.

2005-04-22 Thread Johan Compagner
to be a real component. A lot of times I just use input type=submit.. instead of making this a Wicket component, and I am quite happy with that. Furthermore, you will have problems with form submits that are triggered by Javascript. Eelco Johan Compagner wrote: If it where me then just this happens

Re: [Wicket-user] Re: Problem with ResourceLink in CVS HEAD?

2005-04-23 Thread Johan Compagner
not get encrypted whereas the header does. Firewalls, load balancers etc. not able to read the header (because it is encrypted) can not do what they are intended to. Juergen On 4/23/05, Johan Compagner [EMAIL PROTECTED] wrote: that is strange yes It smells like that jsessionid should

Re: [Wicket-user] bug 1186269

2005-04-22 Thread Johan Compagner
This one is already fixed by me I didn't close it (was planning to) So there is no need to do this patch. Now Components State can be tracked in our version manager so the idx will never be wrong anymore. johan Juergen Donnerstag wrote: Paul, I just checked the latest cvs head and I'm

Re: [Wicket-user] Re: Problem with ResourceLink in CVS HEAD?

2005-04-22 Thread Johan Compagner
that is strange yes It smells like that jsessionid should be reversed... the href should have a jsession id and a img src not. (at least a static resource not a completely dynamic one is session bound) Gili wrote: Another thing I noticed. The URL generated for img tags contains a

Re: [Wicket-user] Custom id and displayValue

2005-04-28 Thread Johan Compagner
see the IChoice interface. With this you can let the DropDownChoice now what is the display and what is the id where the DropDownChoice can identify what object is selected. johan Joe Toth wrote: Thanks, I understood that, but my mind keeps having flashbacks of struts. I don't have to worry

Re: [Wicket-user] is this bug back [ 1186269 ] problem with back button

2005-04-28 Thread Johan Compagner
Do you have a testcase where you see this happening? There is a problem yes with this if the ListView model that holds the list of objects that are displayed is not restoreable to a previous state. I think we should handle this error more gracefully because if you have a detachable list that

Re: [Wicket-user] onAttach

2005-05-06 Thread Johan Compagner
onAttach is called whenever the object is needed so if it is called then somehow it is asked for. johan Jonathan Carlson wrote: I'm working from CVS HEAD a couple of weeks back. I am going to upgrade to CVS HEAD today and I'll get back to you. Thanks! Jonathan

Re: [Wicket-user] [the output encoding of wicket] i found the bug

2005-05-23 Thread Johan Compagner
that is puzzling! What happens if you do REDIRECT_TO_RENDER ?? Then also it should go wrong. Because there is not really a difference... Is then the redirect not sending the same encoding it wants then the first time?? johan wrote: When i change default render strategy from

Re: [Wicket-user] [the output encoding of wicket] i found the bug

2005-05-23 Thread Johan Compagner
But i thought you only had it with RC3 and not RC2? Because RC2 the default is REDIRECT_TO_RENDER we changed it to REDIRECT_TO_BUFFER so it is somehow something else. johan wrote: Johan Compagner, yes, the result of EDIRECT_TO_RENDER is the same as REDIRECT_TO_BUFFER === 2005-05

Re: [Wicket-user] [the output encoding of wicket] i found the bug

2005-05-23 Thread Johan Compagner
ok you where first saying something else so i was confused: yes, the result of EDIRECT_TO_RENDER is the same as REDIRECT_TO_BUFFER But you only have a problem when you use to_buffer the other 2 are working fine. I will test this. johan wrote: Johan Compagner emm

Re: [Wicket-user] Securing an entire application

2005-05-26 Thread Johan Compagner
Can't you do that on a much lower level? (ip filtering) like tomcat or even apache. Gili wrote: Say I wanted to secure an entire application such that none of its pages could be accessed outside a certain IP or user authentication, how would I do it? I believe in classic JSP one would

Re: [Wicket-user] PageableListView and navigator

2005-05-27 Thread Johan Compagner
ok this goes only wrong when the last should get bigger i guess? Because if it gets lower then the setCurrentPage will handle that if i am not mistaken But you are right last should recalculated when pressed but gettting the page count then. Can you open a bug report? Ari Suutari wrote:

Re: [Wicket-user] [the output encoding of wicket] i found the bug

2005-05-27 Thread Johan Compagner
Hi, We (eelco and i) are trying to reproduce/test it. But we can't get it currently to go wrong. Can you test some more for us? for example do you have it under IE and under FireFox? In firefox you can see the in the View-Character Encoding what the encoding he uses for the page Also with Page

Re: [Wicket-user] How to include panel contents without extra span ../span tags ?

2005-05-27 Thread Johan Compagner
if you don't want to have to synchronize yet another boolean then you could do how wicket does it in a few places more just introduce only the getOpenCloseTagRendering() and if people want to strip it they have to override it and return false; (default is true) johan Juergen Donnerstag

Re: [Wicket-user] How to find out which component is not being rendered correctly and why?

2005-06-23 Thread Johan Compagner
i agree that we need to make that error page a bit more clean Only say the name which didn't render not all its childs etc. Gustavo Hexsel wrote: Hi gentlemen, how do I find out which component is not being rendered correctly? I've mostly copied and pasted from different parts of the

Re: [Wicket-user] Question about ListView

2005-06-23 Thread Johan Compagner
assumed). So, that Hibernate model that I return should stick around for as long as the user is looking at it. Is that right? -Phil On 6/23/05, Johan Compagner [EMAIL PROTECTED] wrote: in youre own model that you create you can store a variable where you can identify youre real object. When

Re: [Wicket-user] linkomatic

2005-06-29 Thread Johan Compagner
That's because of the url When an url stays the same it will not go into history. but there is a bug there. The counter should also reset on the serverside.. To see how page versioning/back button works johan Juergen Donnerstag wrote: It is even simpler. 1. Pressed 5

Re: [Wicket-user] navigation q. - newbie

2005-06-29 Thread Johan Compagner
how do you go back to that page? but saying: setResponsePage(new MyPage()); then you will have a new instance of mypage with the link instead of label. if you are having MyPage1 and MyPage2 (where you go to from mypage1 that has the link replaced) and if you want to go to the same instance

Re: [Wicket-user] Wicket details

2005-06-30 Thread Johan Compagner
- Some general question, not limited to Wicket: I'm using Tomcat as development environment. Every little change (since wicket html pages are in the classpath, even when a html page is changed) triggers a full application reloading cycle, which can take some time (especially if there's

Re: [Wicket-user] Struts vs Wicket

2005-06-30 Thread Johan Compagner
If you use separate windows/frames just different pagemaps for it. So that frames/window pages will not expire. In a normal single window/frame app a page expire is not very common (you have to go back 9 pages or something, you can configure that) And that looks fine to me (i think 4 levels is

Re: [Wicket-user] page basics

2005-06-30 Thread Johan Compagner
hi, this could work (i could search over all the page maps there are to see if a page map had a specific instance of that Page class) and then get the latest version. But in a page map there could be more then one page instance of the same class. For example you could have 2 pages of the

Re: [Wicket-user] Specify pagemap for page class

2005-06-30 Thread Johan Compagner
i could think of one thing that you go to a page that has Frames or IFrames with all bookmarkable start pages or maybe those are dynamically set by for example a form or link or javascript that has target=x Jonathan Locke wrote: yes, you should not call setPageMap. design of

Re: [Wicket-user] Re: Setting placement of HTML files

2005-07-01 Thread Johan Compagner
if you do / then it is the root of youre webapplication. (just print out a log line of that root it should show you that) johan Geertjan Wielenga wrote: So is this supposed to work in order to customize the lookup paths in 1.0: protected void init() { String root =

Re: [Wicket-user] import wicket.examples.WicketExamplePage?

2005-07-03 Thread Johan Compagner
Please give us pointers in how we should fix that example! So that others don't step into the same kind of thing.. Having very good examples is a good thing (the thing people are first looking at...) johan Geertjan Wielenga wrote: Got it! And I also got it to work. I do think, though,

Re: [Wicket-user] Stateful ListItem / replacing components

2005-07-03 Thread Johan Compagner
But how do you know that the list is changed? The model behind the listview can change at any time at anyplace.. If you are having that kind of models (mostly selects from a database where also inserts and deletes can occur on) then you have to implement youre own ListItemModel anyway (so that

Re: [Wicket-user] RadioChoice

2005-07-04 Thread Johan Compagner
Do you have a small example (html/java) so that i can build up quickly an example? (And look at youre problem) johan Dan Gould wrote: I'm having some issues getting RadioChoice to work. I can't find any examples, so if there is a good one, please let me know (wicket-library has examples of

Re: [Wicket-user] RadioChoice

2005-07-04 Thread Johan Compagner
I checked forminput example where also a radiochoice is used. And i think i know what goes wrong at you're place Is the value that is set the same as the Choice.getId() (which is by default a toString of the index) You have to override that in you're own Choice object so that the getId == the

Re: [Wicket-user] Newbie problem with Model-s

2005-07-05 Thread Johan Compagner
that is just what eelco means with implicit behaviour i guess. javadoc: Called when a null model is about to be retrieved in order to allow a subclass to provide an initial model So that initModel is only called when there is no model yet. And the default behaviour is then the find a

Re: [Wicket-user] Problems with encoding and forms

2005-07-06 Thread Johan Compagner
I have couple of questions: 1. Why there is the redirect? Why one more client-server round trip? This redirect is the default redirect strategy that we use You can set yours if you want to something different see ApplicationSettings RenderingStrategy We use default the REDIRECT_TO_BUFFER

Re: [Wicket-user] Re: Wicket serious bug with response encoding

2005-07-07 Thread Johan Compagner
how can we made that reliable ?? Because utf-8 can be 8 bits or 16 or i think 24 per char. Depending on what it really needs.. What does for example a JSP do it its servlet generated form if you use UTF-8?? Or doesn't he set anything? johan Jan Bares wrote: I see what you mean. The

Re: [Wicket-user] Re: Re: Wicket serious bug with response encoding

2005-07-07 Thread Johan Compagner
, but this must be easy. Jan "Johan Compagner" [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... how can we made that reliable ?? Because utf-8 can be 8 bits or 16 or i think 24 per char. Depending on what it really needs.. What does for example a JSP do it its servlet

Re: [Wicket-user] Re: Re: Wicket serious bug with response encoding

2005-07-07 Thread Johan Compagner
i am a bit afraid for using that method that way... Because that could be pretty heavy.. Encoding is not a cheap operation and it will generate a byte array that also can be very big. And then suddenly if we still use PrintWriter we are encoding it twice... Maybe we should do this: byte[]

Re: [Wicket-user] how about the preformance of wicket?

2005-07-11 Thread Johan Compagner
it though? Eelco On 7/9/05, Johan Compagner [EMAIL PROTECTED] wrote: If i get 2 wars of an app that does some big rendering (like listviews, dynamic images and that kind of thing) So i don't think hangman

Re: [Wicket-user] how about the preformance of wicket?

2005-07-11 Thread Johan Compagner
request or session? That's my idea, but I have no idea how you plan to test it, so something else may be more appropriate. I think it would be nice to have a special performance test page. Where should we put it though? Eelco On 7/9/05, Johan Compagner [EMAIL

Re: [wicket-user] List of DropDownChoices

2005-07-11 Thread Johan Compagner
what kind of exception? Johannes Fahrenkrug wrote: Hi, I'm new to Wicket and I have a question. I need to generate and display a List of DropDownChoices. This is the scenario: I have different room types and for every room type I have certain vacancies. So I need to have something like this:

Re: [Wicket-user] Models and POJO's

2005-07-11 Thread Johan Compagner
you could use a List and then take one object from index 0 or a map and then take it from an name 'object1 you need to look how the ognl _expression_ should be. Als you can hold those 2 objects in one object: ObjectWrapper { object1 object2 } and then put that wrapper object as youre

[Wicket-user] in head the Choice implementation is rewritten.

2005-07-11 Thread Johan Compagner
Hi, I rewrote the Choice implementation (All the variations of the select tag) We had a IChoiceList and a default implementation where you had to create IChoice wrappers around youre objects. These 2 interfaces and default implementations are all gone now. So this is a pretty big api change

Re: [Wicket-user] Blank page?

2005-07-11 Thread Johan Compagner
yes this can happen if the markup can't be parsed and the old one is removed (i believe) we should check this out. Please look when it is exactly happening.. johan Nick Heudecker wrote: Sometimes when I make a change to a Java or HTML template, I get a blank page displayed in my browser

Re: [Wicket-user] Localized Strings

2005-07-12 Thread Johan Compagner
you could also create: mypage_de.html which would be completely german then. The problem is that you then have to maintain 2 pages if the component structure changes. johan Nick Heudecker wrote: Okay, new problem. I need to retrieve localized messages for the HTML pages. Things like

Re: [Wicket-user] Automaticallty converting String in DropDownChoice to int in POJO ?

2005-07-12 Thread Johan Compagner
with Wicket 1.0 you have to create 2 Choice object for the IChoiceList imlementation. In wicket 1.1 (the current cvs) you could do this: new DropDownChoice(gender,new Model(),new ChoiceRenderer(name,id),list); and in that list you have 2 pojo's that have a getId() and a getName() johan

Re: [Wicket-user] Re: Wicket newbie: session info in URL; clean URLs; multiple HTMLs for one component

2005-07-12 Thread Johan Compagner
you could encrypt every url then all urls look like this: http://www.wicket-library.com/wicket-examples/forminput?s=xdfadfljkasdfhasldfh that null point should be catched some how but what would you like to do? return to the calling page? that interface=xxx is needed because that is the action

Re: [Wicket-user] Localized Strings

2005-07-12 Thread Johan Compagner
the proper html template based on the locale automatically? like the example below: Locale is german - wicket looks for mypage_de.html, if not there falls back to mypage.html? thanks andi On Jul 12, 2005, at 22:22 Uhr, Johan Compagner wrote: you could also create: mypage_de.html which

Re: [Wicket-user] Automaticallty converting String in DropDownChoice to int in POJO ?

2005-07-12 Thread Johan Compagner
On Tuesday 12 July 2005 22:37, Johan Compagner wrote: with Wicket 1.0 you have to create 2 Choice object for the IChoiceList imlementation. In wicket 1.1 (the current cvs) you could do this: new DropDownChoice("gender",new Model(),new ChoiceRenderer("name","id&q

Re: [Wicket-user] Automaticallty converting String in DropDownChoice to int in POJO ?

2005-07-12 Thread Johan Compagner
you say, that i have to change my pojo to have 2 fields ? /Frank On Tuesday 12 July 2005 23:09, Johan Compagner wrote: why would you change the pojos? what do they look like now? They have a name i take? frank bengtsson wrote: Problem is, i cant change the pojo's. So i

Re: [Wicket-user] Wicket newbie: session info in URL; clean URLs; multiple HTMLs for one component

2005-07-12 Thread Johan Compagner
web island. You can jump only between islands only. Why do you need to have 5 login attempts, and then click Back 5 times, and see stale pages with your attempts? This is *one logical page*, a login page. A web island ;) You do not need to see all stale pages for it. Yeah, I could live

Re: [Wicket-user] Wicket newbie: session info in URL; clean URLs; multiple HTMLs for one component

2005-07-12 Thread Johan Compagner
I don't want to disable the back button Back button should work that is how a browser work. How all people that have used browsers are used to. Matej Knopp wrote: Well, I once wrote a servlet filter for use with wicket that can conceal the whole URL. Actually, it was inspired by your wizard

Re: [Wicket-user] poll: what should we use as our component's path seperator?

2005-07-12 Thread Johan Compagner
- or : where can it be used/output to now or maybe in the further? For example urls/javascript? Should we look if there are pit holes there? Eelco Hillenius wrote: We have plans to replace the current dot ('.') seperator in component paths by another character. The main reason for wanting

Re: [Wicket-user] Wicket newbie: session info in URL; clean URLs; multiple HTMLs for one component

2005-07-12 Thread Johan Compagner
is limited to the component's state. But what about the actual data? Should I track every data manipulation and be able to reconstruct it? I'm affraid that the complexity would be enormous. Johan Compagner wrote: I don't want to disable the back button Back button should work that is how

Re: [Wicket-user] poll: what should we use as our component's path seperator?

2005-07-13 Thread Johan Compagner
Why do you need it *after* action was performed and redirect was made? When I load forminput example for the first time, it is loaded with GET and URL is clean: http://www.wicket-library.com/wicket-examples/forminput After I submit a form, the following stuff is added to URL:

Re: [Wicket-user] Wicket newbie: session info in URL; clean URLs; multiple HTMLs for one component

2005-07-13 Thread Johan Compagner
behaviour you want (back button shouldn't work because there is no new page/url) johan Michael Jouravlev wrote: On 7/12/05, Michael Jouravlev [EMAIL PROTECTED] wrote: On 7/12/05, Johan Compagner [EMAIL PROTECTED] wrote: I don't want to disable the back button Back

Re: [Wicket-user] Wicket newbie: session info in URL; clean URLs; multiple HTMLs for one component

2005-07-13 Thread Johan Compagner
Btw. I tried another thing - add these headers to hangman Cache-Control: must-revalidate Pragma: no-cache Expires: -1 but it didn't help. No page reload on back button (using firefox). Does anyone know what else might help to force browser reload the page on back button? Do you know an

Re: [Wicket-user] sample wicket app

2005-07-14 Thread Johan Compagner
cool i can send myself mail :) You have to validate the email adress (to) you now get a nasty exception page. bin zhu wrote: hi all, in the last couple of days i wrote an sample wicket web app to demonstrate to the ease of using wicket. it incorporates alot of the wicket examples, like:

Re: [Wicket-user] Put page into pagemap on redirect

2005-07-15 Thread Johan Compagner
if i look at the Call Hierarchy of PageMap.put(Page) then pages are only added in there init() or in the callComponentListener() this is wrong. A Page should be put when it is rendered. (when it is the response) I think that Page.init() isn't needed. A page only has to go in the pagemap when

Re: [Wicket-user] Put page into pagemap on redirect

2005-07-15 Thread Johan Compagner
are you really sure? Because i looked again (after i saw you're reply) through every code where the PageMap is called And it doesn't seem to add pages to the pool. Except when you make a Page (new XxxPage() or when a page is hit by a outside request. johan Matej Knopp wrote: Well, it

Re: [Wicket-user] Put page into pagemap on redirect

2005-07-15 Thread Johan Compagner
is put at front of the stack when it is accessed. So, this should allways work. In fact when you look at the name of the collection, it was a bug that it didn't until recently. Eelco Eelco Hillenius wrote: Sounds logical, yes. Eelco Johan Compagner wrote: if i look at the Call Hierarchy

Re: [Wicket-user] Put page into pagemap on redirect

2005-07-15 Thread Johan Compagner
hmm :) look what Matej is saying: Seems like tomcat hadn't properly reloaded my application code tomcat reloading application code?? I think he is into the i deploy constantly when i am developing :)) That is not workable in my eyes.. Eclipse or better said the JVM should reload code

Re: [Wicket-user] Put page into pagemap on redirect

2005-07-15 Thread Johan Compagner
. redirectTo) should explicitly put the page into to the pagemap? -Matej Johan Compagner wrote: yes but still i could hold a page somewhere. that i use as a response page. some time in the further. Then that page is rendered then can be out of the pagemap already (if there are already make other pages

Re: [Wicket-user] Clicking a DropDownChoice to populate another

2005-07-15 Thread Johan Compagner
can you see in the debugger what it tries to cast to what? It seems that you're own newChoice() method is doing something wrong (it expects a different kind of object???) But if you are really working with Choice components please upgrade as soon as you can to 1.1 (when the first beta

Re: [Wicket-user] Re: Clicking a DropDownChoice to populate another

2005-07-15 Thread Johan Compagner
. johan James wrote: Johan Compagner jcompagner at j-com.nl writes: can you see in the debugger what it tries to cast to what? It seems that you're own newChoice() method is doing something wrong (it expects a different kind of object???) But if you are really working with Choice

Re: [Wicket-user] PageParameters

2005-07-15 Thread Johan Compagner
Dzenan Ridjanovic wrote: Could you give us the stracktrace you got? I have changed the code this afternoon and could not reproduce the error. However, I have done something similar and it works: public class UrlsPage extends WebPage ... public UrlsPage(PageParameters pageParameters) {

Re: [Wicket-user] Why no page interface?

2005-07-15 Thread Johan Compagner
i agree. When you have a IPage object there should be able to have multiply Page implementations. But this is not really possible because the internals of page are pretty importand for wicket to let it work If you have a full blown page with all kind of components on it. I don't think

Re: [Wicket-user] setRedirect(new Page()) in constructor?

2005-07-16 Thread Johan Compagner
from what i can see that redirect is a HARD redirect to a page. So not checking what it should do because setResponsePage(Page) doesn't have to do a redirect.. (or you also have to set setRedirect(true)) And i think in some cases like logon you really want a redirect. So it could be removed i

Re: [Wicket-user] setRedirect(new Page()) in constructor?

2005-07-16 Thread Johan Compagner
yes this is because the homepage is set as a reponsepage AND you are redirecting to another page.. in the Look this is what happens, this is a piece of code that handles the homepage: Page newPage = newPage(homePage); setResponsePage(newPage); first line the homepage is constructed second

Re: [Wicket-user] setRedirect(new Page()) in constructor?

2005-07-16 Thread Johan Compagner
arrghh :) in the onBeginRequest() you are already responding a page... ! You shouldn't redirect in that one. If you want to stop responding a page you should override checkAccess() There is as far as i know the only place where you should call redirectTo() or redirectToInterceptPage()

Re: [Wicket-user] setRedirect(new Page()) in constructor?

2005-07-16 Thread Johan Compagner
return ACCESS_DENIED; } On 7/16/05, Johan Compagner [EMAIL PROTECTED] wrote: I think i have the solution youre homepage can do redirectTo() but don't do it in the constructor do it in checkAccess() and let checkAccess() return false. johan josh lim wrote: Hi I am new

Re: [Wicket-user] customize display-value for choicelist.

2005-07-16 Thread Johan Compagner
as matej is saying in 1.0 you have to implement youre own ChoiceList and Choice. but if you jump on the 1.1 (first beta release will be this weekend) then it is much simpler: new DropDownChoice(test,youreModel, youreChoices, new ChoiceRenderer(name,id)) And the last part new

Re: [Wicket-user] exception page

2005-07-16 Thread Johan Compagner
That one is not configureable yet. We could make it configureable i think We just have to define a IExceptionPage interface. that has one method: setThrowAble(Throwable theError,Page thatHadTheError) Then every body could implement his own if needed. We do need to supply 2 anyway i think in 1.1

Re: [Wicket-user] Prevent label escaping the string

2005-07-17 Thread Johan Compagner
+1 by me that should is strange Eelco Hillenius wrote: Do you want it changed in 1.1? Eelco Matej Knopp wrote: Wow. Now that's what can be called lack of perception :) Thank you. Actually, if it was called setEscapeModelStrings maybe I wouldn't miss it :) -Matej Phil Kulak wrote:

Re: [Wicket-user] Little Hint - Standalone Jetty

2005-07-17 Thread Johan Compagner
I'm also trying to find out how I can let dynamically reloading code work better. It would be awesome to start Wicket like this and then be able to just change code and introduce new pages (and other code) without having to restart the servlet engine ever again. Does't support IDEA

Re: [Wicket-user] Wicket 1.0.1

2005-07-18 Thread Johan Compagner
hmm encoding is largely rewritten. (i think that is a bit to big for 1.0.1) But maybe a simple fix should be applied to 1.0.1 If you could go for 1.1b1 Jan Bares wrote: Hi, I just looked into the 1.0.1 version, but it seems that bug in WicketServlet as mentioned in the Wicket serious bug with

Re: [Wicket-user] Actions on invisible components

2005-07-18 Thread Johan Compagner
redirect to the same page as you where on? So the just directly redirect to the invoker page if a component that is invisible (or one of the parents) But maybe developers or users get completely confused then.. And how is it possible that you get a url to an invisible component? Who generated

Re: [Wicket-user] Actions on invisible components

2005-07-18 Thread Johan Compagner
current code. Eelco Johan Compagner wrote: redirect to the same page as you where on? So the just directly redirect to the invoker page if a component that is invisible (or one of the parents) But maybe developers or users get completely confused then.. And how is it possible that you get

Re: [Wicket-user] Actions on invisible components

2005-07-18 Thread Johan Compagner
not sure if I've written it cleanly enough, but hope it's obvious that it's a clean security problem. -Matej Johan Compagner wrote: redirect to the same page as you where on? So the just directly redirect to the invoker page if a component that is invisible (or one of the parents) But maybe

Re: [Wicket-user] Discussion forum

2005-07-18 Thread Johan Compagner
just set youre mailer in threaded mode and you can say mark as read for a complete thread. Gili wrote: I think this mailing list is getting out of hand. There are simply too many messages being posted back and forth and although their content is good, the medium they're posted in is

Re: [Wicket-user] Another nested objects question

2005-07-19 Thread Johan Compagner
remember if you don't set the visible state (but just return true or false depending on a other thing) you do override the back button support a bit. Because we can't track the visibility bit then. Don't think it really matters but i just wanted to point that out. johan Phil Kulak wrote: I

Re: [Wicket-user] Generating html markup from template.

2005-07-20 Thread Johan Compagner
where does an implemenation of IFilter really come from? It has to be different for specific locale's? So that you can have one markup file and filter it with X filters for X locales? johan Matej Knopp wrote: Okay, small update. New interface public interface IFilter { public abstract

Re: [Wicket-user] VOTE: make AbstractValidator threadsafe

2005-07-20 Thread Johan Compagner
is the resourcekey for such a validator always the same? Because now you have extracted out the formcomponent but introduced the resourcekey.as a variable Eelco Hillenius wrote: How does this look (see attachement)? Eelco

Re: [Wicket-user] VOTE: make AbstractValidator threadsafe

2005-07-21 Thread Johan Compagner
/could/ lead to non-thread safe behaviour. My guess was that that would be clear enough? Maybe we should get rid of the singleton required validator just to be sure... cheap enough to create such objects anyway. Eelco Johan Compagner wrote: is the resourcekey for such a validator always

Re: [Wicket-user] back button and actions against visible panels

2005-07-22 Thread Johan Compagner
Is there some documentation somewhere describing how Wicket solves the Back button problem? My co-worker using JSF has been running into lots of back-button problems, which makes me realize that I really don't understand how best to use Wicket to avoid some or all of them myself. No docs

Re: [Wicket-user] Custom message provider?

2005-07-22 Thread Johan Compagner
are properties files not really read in by the default system encoding? So if you have youre system encoding on iso8859-2 then it should read properties files like that. in eclipse you can set the default encoding for youre properties files if you want (see General - Content Types) johan

Re: [Wicket-user] Custom strings in DropDownChoices

2005-07-22 Thread Johan Compagner
In 1.0 you have to override/implement the IChoiceList and make youre own IChoice objects for the TerminDetails class. In 1.1 you can do this: item.add(new DropDownChoice(zimmerart, new PropertyModel(person, aktArtikelZimmerart), person.getAktArtikel().getSelectedTermin().getTerminDetails()),

Re: [Wicket-user] Newbie confused about PageableListView

2005-07-22 Thread Johan Compagner
so these 2 constructors: public PageableListView(final String id, final IModel model, int rowsPerPage) { super(id, model); this.rowsPerPage = rowsPerPage; } public PageableListView(final String id, final List list, final int rowsPerPage) { super(id,

Re: [Wicket-user] Internationalization HTML

2005-07-23 Thread Johan Compagner
i also like the idea that you have one html file, X number of property files and then at load time of the markup file for a specific locale the property file for that locale is merged in to the html. And that html is stored for that locale in the cache. At least i think tht is the complete

Re: [Wicket-user] Internationalization HTML

2005-07-23 Thread Johan Compagner
Matej Knopp wrote: Eelco Hillenius wrote: Looks nice. It doesn't break the API, right? No, it doesn't break anything. I wanted to make it as transparent as possible. Do you think this should be something that Wicket supports out-of-the-box, or something that you can use as an add-on (in

Re: [Wicket-user] Difference between DetachableChoiceList and ChoiceList

2005-07-23 Thread Johan Compagner
DetachableChoiceList just helps you more in the attach./detach cycle that you had to do if you want to attach/deattach youre list (if it was for example a database list) You just have to implement the onAttach and onDetach if needed (mostly only the onAttach onDetach calls clear() on youre

Re: [Wicket-user] Re: Difference between DetachableChoiceList and ChoiceList

2005-07-23 Thread Johan Compagner
there is a way The List can implement IDetachable and then detach will be called. But this is a bit hidden currently and the attach cycle must completely be programmed by the developer (on List.size() or List.get(xx) attach check must be done...) So on the developer list i just posted a

Re: [Wicket-user] (no subject)

2005-07-23 Thread Johan Compagner
why doesn't a List work in a ListView exactly? I do get that a List in a PageableListView could be a bit improved so that you have method like getList(start,count). But in a ListView a List could work fine. If wrapped in a Model for attach/detach If we encapsulate that ListViewDataSource in

  1   2   3   4   5   6   7   8   9   10   >