Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
. > > > > Also, for myself, I disagree that type safety is not a primary goal of > > generics. Even if the API were completely clear already, I'd still prefer > > more type safety. > > > > > > Martijn Dashorst wrote: > >> > >> On Wed, May 21

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
ic IModel getModel() { > > > return (IModel) model; > > > } > > > } > > > > > > I like this. Even with the possible class cast exception. Because > > > without generics, it doesn't leave you no other option than to cas

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
tmodelobject so you wouldn't have casts all over places and it would > be safer too). > > -Matej > > On Thu, May 22, 2008 at 9:39 AM, Johan Compagner <[EMAIL PROTECTED]> > wrote: > > It isnt all or nothing.. i never said that > > > > I just say if you

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
component subclass you coud do IModel getModel() > > { return (IModel)super.getModel() }, similiar with > > getmodelobject so you wouldn't have casts all over places and it would > > be safer too). > > > > -Matej > > > > On Thu, May 22, 2008 at 9:39 AM, Johan Co

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
odel()) { >public void onClick() { >setResponsePage(new EditPage(getModelObject())); >} >}); > } > > So both are used often, but mostly to pass things around. > > Martijn > > On Thu, May 22, 2008 at 11:25 AM, Johan Compagner <[EMAIL PROTECTED]> > w

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
Yeah that is the problem with Generics You cant say take the from the model you get in the constructor Then everything would be perfect. But i really dont think that in link is redundant why is it? You call later on getModelObject() on it.. so you use the model/modelobject of Link so you need t

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
ahh yes thats true i overlooked your changes.. then yes currently you have to do new Link (to get rid of the warnings) johan On Thu, May 22, 2008 at 11:54 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > Hi Johan, > > But i really dont think that in link is redundant why is it? >> > > the poi

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
But if you have a lot of Link for you cases then make 1 simple subclass of Link johan On Thu, May 22, 2008 at 12:41 PM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > Hi Johan, > > ahh yes thats true i overlooked your changes.. >> then yes currently you have to do new Link (to get rid of the >> w

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
harder to comprehend?? come on, you must be kidding! Link is many times uses (you did give an example your self 2 emails back) as a model object holder So if developers use it sometimes as just a link and sometimes just as an object. I think if we made Link default that many people would complai

Re: (Class>) casting troubles

2008-05-22 Thread Johan Compagner
harder to comprehend?? come on, you must be kidding! Link is many times uses (you did give an example your self 2 emails back) as a model object holder So if developers use it sometimes as just a link and sometimes just as an object. I think if we made Link default that many people would complai

Re: Tomcat discards content-type with StringRequestTarget

2008-05-22 Thread Johan Compagner
hmm that is a bug then of StringRequestTarget It should set that header if the content type is specified. I will fix that On Thu, May 22, 2008 at 2:02 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: > Update: overriding respond and setting the contentType directly works great > :) > > -- Edvin > >

Re: Possible BUG - discrepancy in component.onBeforeRender and IBehavior.beforeRender.

2008-05-23 Thread Johan Compagner
and what is a good name? :) On Fri, May 23, 2008 at 4:03 PM, Matej Knopp <[EMAIL PROTECTED]> wrote: > Hi, > > beforeRender on behavior has different semantics than onBeforeRender > on component. I agree that this is confusing and it i think it should > be improved in 1.4. > > beforeRender and aft

Re: (Class>) casting troubles

2008-05-24 Thread Johan Compagner
od thing to a un-generify). Once we have found a practical/optimal level > of generification should we vote on it. Let's not throw the baby out with > the bathwater. > > Also, for myself, I disagree that type safety is not a primary goal of > generics. Even if the API were compl

Re: more getting started documents

2008-05-28 Thread Johan Compagner
Integrating the live examples shouldnt be to hard.. Just copy paste all the examples and the web.xml. Or better yet start with the examples and integrate your app in it! On 5/28/08, anirelles <[EMAIL PROTECTED]> wrote: > > is there any step by step CRUD for wicket? > > i would like to use wicked

Re: Search Use-Case - Retaining the model against the text field

2008-05-28 Thread Johan Compagner
Use Hybridurlencoding for that page On 5/29/08, mfs <[EMAIL PROTECTED]> wrote: > > Guys, > > Need some suggested here.. > > I have a search-page which has an Ajaxform with a "search-criteria" > TextField, the same search-page has a DataView implementation (alongwith > DataProvider) of the searchre

Re: Multi-window application problem

2008-05-28 Thread Johan Compagner
Close it your self please On 5/28/08, Jürgen Lind <[EMAIL PROTECTED]> wrote: > Hi, > > the Problem has been solved (the Model Objects were not Serializable). > Should > I simply close the issue or will that be done by someone of the development > team. > > As a general improvement, I would suggest

Re: two pages have same id in the default pagemap

2008-05-29 Thread Johan Compagner
is the page really created twice? Or is it the same page really but you just few it through 2 browsers? If you page version works correctly then in 1.3+ this shouldnt be any problem You can create a pagemap per window if you want. by creating a page in a different pagemap johan 2008/5/29 xiefei

Re: hi everyone, does anyone know how can we use RESTFUL in wicket?

2008-05-29 Thread Johan Compagner
;>> is >>> "RESTful". >>> I think something *like* wicket could work in a RESTful way, but Wicket >>> does >>> not and I doubt ever will (if it ever does, it won't be wicket code your >>> using today). >>> >>> - Brill Pappin &g

Re: two pages have same id in the default pagemap

2008-05-29 Thread Johan Compagner
Those pages are in a different WebApplication? Then they also should have a different wicket session. So you have 2 applications in 1 webapp? Just like our examples? Hmm need to check something out then, because if they share the same http session then the application should be in the name of the

Re: Weird exceptions. Has anyone seen any exceptions like these

2008-06-01 Thread Johan Compagner
In 1.3.4 this error shouldnt happen, it is just ignored On 6/1/08, atul singh <[EMAIL PROTECTED]> wrote: > Hi, > As a result of code integration from various teams we have introduced > some change which is causing problems... > but the sad part is that we do not know what is happening-- > I will l

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Johan Compagner
Didnt you encounter the big thread (at least 100 messages) where we discussed/voted going to 1.4? (and cool down dev on 1.3) On 6/1/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > scan this user forum, you will realize that there is no high demand for > generics in wicket from users. I am yet t

Re: problem when reading properties file

2008-06-02 Thread Johan Compagner
> > :) The problem is that I have to get different massages from properties > file, > and then comes to my original question. > hmm i tried Chinese, Thais and some others. But i never got a massage from a property file, how does that feel?? johan

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Johan Compagner
why are you contradicting yourself? "To be honest I don't see the advantage of generic components, all I want is to not have to do casting when I'm using models, .getModelObject() should return the type that I put in, in a list view, if I give it a list of strings I dont want to cast the listItem

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Johan Compagner
eneric components im not bothered about. > > if using generics wont do away with the casting then I dont see any point > to > using them at all. > > > > Johan Compagner wrote: > > > > why are you contradicting yourself? > > > > "To be honest I d

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Johan Compagner
c components im not bothered about. > > if using generics wont do away with the casting then I dont see any > point to using them at all. > > > > Johan Compagner wrote: > > > > why are you contradicting yourself? > > > > "To be honest I don't se

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Johan Compagner
On Mon, Jun 2, 2008 at 9:33 PM, Martin Funk <[EMAIL PROTECTED]> wrote: > Hi Sebastiann, > > just for clarifying my understanding of the vocabulary: > > A_HomePage extends WebPage > and > B_HomePage extends WebPage > are both non-generified java classes. No the last one is generified.. The first

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Johan Compagner
If only... if only we had this construct: class Component { } then all our problems with verbosity would be gone.. TextField tf = new TextField("id") // just default Void Also only declare it once: TextField tf = new TextField("id"); And both ways type guessing, so TextField tf = new TextFi

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Johan Compagner
> I like the default idea. > > -Original Message- > From: Johan Compagner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2008 4:15 AM > To: users@wicket.apache.org > Subject: Re: users, please give us your opinion: what is your take on > generics with Wicket > >

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Johan Compagner
n opinion, but we'll > definitely upgrade to it for the next project. > > On 6/3/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > > If only... if only > > we had this construct: > > > > class Component > > If only we ha

Re: (Class>) casting troubles

2008-06-04 Thread Johan Compagner
Yeah it is very strange that you get different errors in eclipse and javac. I wonder which one is correcct.. But you have to generify the Page then it should work fine (like ) I think we just need to drop the in that example What do you exactly call? johan On Wed, Jun 4, 2008 at 9:39 AM, Rod

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
i think the only real other way is what is already possible Just dont keep references to the Component (just add them to there parents) and keep references to the models of those components. and work with models only johan On Wed, Jun 4, 2008 at 10:24 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrot

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
soo interface IModelComponent { public IModel getModel() } and remove getModel/getModelObject methods from component itself? But then everybody that does use models have to implement it.. On Wed, Jun 4, 2008 at 12:37 PM, James Carman <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at

Re: New Window/Tab Scope

2008-06-04 Thread Johan Compagner
it can be done i guess.. Turn on the multi window support/check in the settings. then extend: SecondLevelCacheSessionStore override createPageMap() now the bad thing is that you need to do super call to create it because that api is not really open But do a super call. And wrap it in your own I

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
and if i store it in metadata ;) On Wed, Jun 4, 2008 at 5:16 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > why even have an interface? just detach all imodel fields via reflection! > > -igor > > > On Wed, Jun 4, 2008 at 3:37 AM, James Carman <[EMAIL PROTECTED]> > wrote: > > On Wed, Jun 4, 2008

Re: how to pass parameters while setting page expired error page

2008-06-04 Thread Johan Compagner
What param is that? What info do you want to pass in? On 6/4/08, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > I want to redirect to LoginPage if session expires and want to show > message that "your session expired, please login again." > Is there any way that I can pass parameters to LoginPage ??

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
If besides formcomponent you get links/buttons and so on, then i still think the example i see of verbosity is still there, like dropdownchoice is then generified?? On 6/4/08, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 9:43 AM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: >>

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
not just getModelObject() also the toString variants for rendering and so on The component has to get its data. Ok this isnt the case for Component itself or the containers But for Labels, Links, buttons and all form components it is pretty needed. So the component should be able to access any way

Re: how to pass parameters while setting page expired error page

2008-06-05 Thread Johan Compagner
> because of session expired and I can show appropriate message (e.g your > session is expired, please login again.) > > -Original Message- > From: Johan Compagner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2008 12:11 PM > To: users@wicket.apache.org > Su

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Johan Compagner
like matej already told you There is no default "slot" or field.. A component with no model doesnt have a a slot what so ever. johan On Wed, Jun 4, 2008 at 11:34 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > like i said, i dont mind removing the default slot if we add nice > automatic detachme

Re: Does wicket favor composite session obj?

2008-06-05 Thread Johan Compagner
are you sure you store it correctly? for example is the LoginData object the same? (if you do a system out of that or check it in the debugger) Because if it is then the user field that it should have cant be just suddenly null johan On Wed, Jun 4, 2008 at 11:47 PM, smallufo <[EMAIL PROTECTED]>

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Johan Compagner
For that we have 1.3 1.4 will be java 5 On 6/5/08, pkcinna <[EMAIL PROTECTED]> wrote: > >[x] Should be avoided, I prefer the way 1.3 works. Because sometimes I > still run into web servers like websphere 5.x that still depend on jdk 1.4 > (also some tomcat 5.5 hosting sites). The beauty of W

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Johan Compagner
next week a good rest? next week i dont have much rest.. I am on vacation! Bern, Switzerland! johan On Thu, Jun 5, 2008 at 8:05 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > Right, we need to figure out what we're going to do for 1.4. Have we > > decided on that? It seems like a lot of f

Re: RequestLogger - AtomicInteger change

2008-06-05 Thread Johan Compagner
fixed On Thu, Jun 5, 2008 at 11:40 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > Also, if one int was changed to AtomicInteger, shouldn't the rest also? > It's obviously a concurrency issue. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > On Thu, Jun 5, 2008 at 4:38 PM, Jeremy T

Re: (Class>) casting troubles

2008-06-06 Thread Johan Compagner
No the HomePage cant be raw type anymore more So it must be typed.. Why that is..? > then the last seem to say that for that Class it must be filled in with a real Type So it must be HomePage extends Page and you can't do: foo.bar(Component.class) because that doesnt mean anything So HomePage

Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-06 Thread Johan Compagner
And if you use toimcat 6? It could be classloading problems one (commons) cant find the stuff in the web folder On 6/6/08, Frank Silbermann <[EMAIL PROTECTED]> wrote: > Well, aside from the logging-oriented jars that maven packs into the > QuickStart's lib folder, the only logging jar I can see i

Re: How to send response without HTML code

2008-06-11 Thread Johan Compagner
See the request targets that set a http status code (cant remember the exact name) On 6/11/08, Milan Křápek <[EMAIL PROTECTED]> wrote: > Hello, I have newbie question. > I am working on application that must be able to process two type of > request. The users requests (send them some html pages

Re: forcing cookies to expire

2008-06-11 Thread Johan Compagner
Because we cant really just call set path... That is something that you have to do. Why do you want it on root? On 6/10/08, jchappelle <[EMAIL PROTECTED]> wrote: > > Thanks for the quick reply. I finally fixed the problem. What I found was > that when I was creating my cookie I was calling setPath

Re: "override" onClick of BookmarkablePageLink

2008-06-15 Thread Johan Compagner
So if you want to be stateless then onClick only works if you use a StatelessLink and then you should push yourself the params in the url. But what do you want to do in the onclick? That cant be done in the constructor or the target page? On 6/15/08, Eyal Golan <[EMAIL PROTECTED]> wrote: > One mo

Re: Cannot get rid of these error and warnings

2008-06-15 Thread Johan Compagner
Calls are synced but they can be in the wait for each other and if then the first changes the component structure then the other that is already waiting comes in then it cant find it anymore. But this call should just be ignored as far as i know On 6/15/08, Maurice Marrink <[EMAIL PROTECTED]> wrot

Re: Chaining components

2008-06-16 Thread Johan Compagner
i think they are pointing to this one: https://issues.apache.org/jira/browse/WICKET-1312 On Mon, Jun 16, 2008 at 9:21 AM, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > what bug # is that one? > > > igor.vaynberg wrote: > > > > On Sun, Jun 15, 2008 at 11:38 AM, Martin Makundi > > <[EMAIL PROTEC

Re: self refreshing table with effects

2008-06-16 Thread Johan Compagner
tpRequestHandler.processRequest(HttpRequestHandler.java:453) > > at > > > com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) > > at > > > com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) > > at > > > oracl

Re: isVisible vs. setVisible

2008-06-17 Thread Johan Compagner
Igor already has plans to fix/change that something like isVisible and setVisible both final and then you can override visible() that we check for you in the isVisible() method (but first also we check our own flag) so both setVisible() and your overridden visible() are working fine. (and we can t

Re: After 1 minute the Pagemap null is still locked

2008-06-17 Thread Johan Compagner
run java.exe in a console and do CTRL-BREAK On Tue, Jun 17, 2008 at 11:57 AM, lienok <[EMAIL PROTECTED]<[EMAIL PROTECTED]>> wrote: > > Hello > > I have the similar problem, but not running on Unix. Can you please help me > how can get thread dump in windows? > > any advice appreciated > Lenka >

Re: After 1 minute the Pagemap null is still locked

2008-06-17 Thread Johan Compagner
> > I am sorry but I don't understand. How can I run wicket application just > from the console? > Which class should I lunch to start it? > > > Johan Compagner wrote: > > > > run java.exe in a console and do CTRL-BREAK > > > > > > > > O

Re: Java heap error

2008-06-18 Thread Johan Compagner
-Xmx2000M On Wed, Jun 18, 2008 at 7:05 PM, Martijn Dashorst < [EMAIL PROTECTED]> wrote: > Not sure what you want us to do? you don't give us much to go on... > > Martijn > > On Wed, Jun 18, 2008 at 6:59 PM, Mathias P.W Nilsson > <[EMAIL PROTECTED]> wrote: > > > > Hi I'm getting this error > > >

Re: Session end method

2008-06-19 Thread Johan Compagner
I think the easiest way is to store it everytime after a request.. On 6/20/08, Eyal Golan <[EMAIL PROTECTED]> wrote: > Hello, > Is there a method in Session that is called when the Session is ended? > Ended = user logs out (invalidate) or time-out (or anything else that can do > that) > > My goal

Re: [Newbie]Session lost in an AjaxFallbackLink onClick()

2008-06-20 Thread Johan Compagner
which part is null? On Thu, Jun 19, 2008 at 9:37 PM, A nono life <[EMAIL PROTECTED]> wrote: > > Hi, > > When in an AjaxFallbackLink's onClick(), the object I retrieve from my > session is null, even if in my form constructor the object was properly > retrieved : > public CreatureForm(String id, H

Re: After 1 minute the Pagemap null is still locked

2008-06-20 Thread Johan Compagner
derFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) >at > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) >at java.lang.Thread.run(Thread.java:619) > > > Johan Compagner wrote: > > > > start tomcat or

Re: [Newbie]Session lost in an AjaxFallbackLink onClick()

2008-06-20 Thread Johan Compagner
and that is your own object. So you clear it somewhere On Fri, Jun 20, 2008 at 11:16 AM, A nono life <[EMAIL PROTECTED]> wrote: > > Hi > > Johan Compagner wrote: > > > > which part is null? > > > > It's the sessionCreature which is null, I get Nul

Re: Session end method

2008-06-21 Thread Johan Compagner
Wicket doea that for you, unbind is called when session is terminarted by the container On 6/20/08, Zappaterrini, Larry <[EMAIL PROTECTED]> wrote: > Assuming this is backed by an HttpSession, wouldn't you also have to > register an implementation of HttpSessionListener via web.xml to handle > the

Re: wicket cluster on tomcat 6

2007-12-13 Thread Johan Compagner
WicketServlet.java > :121) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > note that I use AjaxSelfUpdatingTimerBehavior behaviour on form, which > refresh table each second (btw the row number

Re: Apache Wicket 1.3.0-rc2 released!

2007-12-14 Thread Johan Compagner
yes! 1 to go, 1.3RC3, and try to promote that one as a final! johan On Dec 13, 2007 1:34 PM, Frank Bille <[EMAIL PROTECTED]> wrote: > This is the second release candidate for Apache Wicket we have prepared > for > your pleasure. The number of issues fixed are decreasing as we are > approaching

Re: Using SignInPanel throws "FormComponent class org.apache.wicket.markup.html.form.PasswordTextField does not support cookies"

2007-12-14 Thread Johan Compagner
I think we did support of passwords being stored as a cookie before, is that changed? On 12/14/07, Per Newgro <[EMAIL PROTECTED]> wrote: > Hi *, > > I build an out of the box quickstart project with 1.3.0-rc2. > Then i copied from wicket examples (template > http://www.wicketstuff.org/wicket13/aut

Re: Writing to the output buffer in wicket web pages

2007-12-14 Thread Johan Compagner
RequestCycle.get().getResponse(). But when or why do you need that? On 12/15/07, Haritha Juturu <[EMAIL PROTECTED]> wrote: > Hi Everyone > I can use 'out' object towrite to the JSP's output stream. > Is there an equivalent in Wicket framework. > I need to write some content to the output buffer.

Re: Help for custom textfield component w/ javascript

2007-12-15 Thread Johan Compagner
odel){ >super(id,model); >add(new AtmKeypadField("stdid"); >} > } > ..stdid is a property of Student and it is assigned to parent > component..Cheers...Tnx a lot. > > Johan Compagner wrote: > > > > So stdid is a property of a

Re: Session.invalidate()

2007-12-15 Thread Johan Compagner
Wont that just result in page expire?? Session.invalidat() doesnt invalidate at that time but at the end of the request I see 2 options Session.invalidat() setResponsePage(new mypage()); setRedirect(false) Or Session.invalidat() setResponsePage(mypage.class); setRedirect(true) On 12/15/07, I

Re: ListChoice gets updated BEFORE onSubmit is called

2007-12-16 Thread Johan Compagner
It has to get the list, because thats where the selected object comes from. What you need to do is remove the object through that list or call detach on the choice in the submit. That should also result in the list being detached/cleared. On 12/16/07, Dan Kaplan <[EMAIL PROTECTED]> wrote: > Hello,

Re: Redirect to a page with POST parameters

2007-12-16 Thread Johan Compagner
real Post variables are not directly possible (or you have to go to a page that has a form pre filled in and you submit that when the page is loaded) You can generate a GET url request with parameters and use the RedirectRequestTarget to redirect to it. johan On Dec 16, 2007 3:59 PM, Pills <[EM

Re: Two home pages?

2007-12-16 Thread Johan Compagner
do use an exception flow for that thats a bit better. see RestartResponseException On Dec 16, 2007 2:46 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > On Sat, Dec 15, 2007 at 08:44:32PM -0800, Cristina wrote: > > > > Hello, > > > > I'm working on an app where users and admins will perform mutual

Re: "Streaming" a huge ZIP file

2007-12-16 Thread Johan Compagner
Stupid me of not knowing anymore what i committed myself AbstractResourceStreamWriter writer = new AbstractResourceStreamWriter() { write(OutputStream output) { // do your generation and output } }; RequestCycle.get().setRequestTarget(new ResourceStreamRequestTarget(writer," test.zip")); johan

Re: "Streaming" a huge ZIP file

2007-12-17 Thread Johan Compagner
ely straight-forward, we'll switch to it as soon as > move to rc3. > > On Dec 16, 2007 8:33 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > RequestCycle.get().setRequestTarget(new > ResourceStreamRequestTarget(writer," > > test.zip")); > >

Re: How to refresh component many times in one ajax request

2007-12-18 Thread Johan Compagner
Nope thats already done: * final* Iterator iter = behaviors.iterator(); *while* (iter.hasNext()) { IBehavior behavior = (IBehavior)iter.next(); *if* (behavior *instanceof* IHeaderContributor && isBehaviorAccepted(behavior)) { ((IHeaderContributor)behavior).renderHead(container.getHeaderResp

Re: How to refresh component many times in one ajax request

2007-12-18 Thread Johan Compagner
it should work fine. A self updating timer only works once.. as far as i know then it does the call. And the SelfUpdating add its component back to the ajax request target so that normally the timer is inserted again and started when the ajax request finishes. and the isEnabled() is checked when

Re: Ajax Feedback Problem in 1.3

2007-12-20 Thread Johan Compagner
onUpdate or onError are always called, also is validators are causing the component to be invalid: * try * { formComponent.inputChanged(); formComponent.validate(); *if* (formComponent.hasErrorMessage()) { formComponent.invalid(); onError(target, *null*); } *else * { formComponent.vali

Re: PageParameter backed models?

2007-12-21 Thread Johan Compagner
maybe you could do setResponsePage(new MyPage()) and use HyrbidUrlEncoding for a nice redirect url.. johan On Dec 21, 2007 12:26 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > Hi, > > We have been happy with the below suggestion for keeping our search > criteria in the URL: > > onsubmit() { >

Re: PageParameter backed models?

2007-12-21 Thread Johan Compagner
Look at HybridUrlCodingStrategy and mount the pages with that. I guess you want them on the url so that the user can bookmark it right? johan On Dec 21, 2007 1:49 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > On Dec 21, 2007 1:09 PM, Johan Compagner <[EMAIL PROTECTED]> wrote

Re: AjaxEditableLabel not saving

2007-12-21 Thread Johan Compagner
did somebody made a jira issue for this with a small test case then? so that we do fix this for the final On Dec 21, 2007 7:58 AM, TahitianGabriel <[EMAIL PROTECTED]> wrote: > > I've downgraded to RC1 also, but the accented characters are not handled > correctly neither in RC1 or RC2... > > By

Re: [OT] Merry Christmas to the wicket community

2007-12-21 Thread Johan Compagner
Yes have all a few good days last days this year and let 2008 be another super wicket year. I wont be around very much from now on until the 20 of jan. So matej will fix all the bugs for you guys in that time. I will be on a vacation without a laptop... (south africa) Johan On 12/21/07, Per Newg

Re: AjaxEditableLabel not saving

2007-12-22 Thread Johan Compagner
Why not use the default of wicket utf8. If you really want to use another one then you have to configure wicket's encoding setting. So that wicket does set the right headers and encodes the output right On 12/22/07, TahitianGabriel <[EMAIL PROTECTED]> wrote: > > I'm already using the iso-8859-1 in

Re: Is the guestbook example maintained?

2007-12-24 Thread Johan Compagner
Can sombody change the guestbook a bit so that it clears messages every day On 12/23/07, Per Newgro <[EMAIL PROTECTED]> wrote: > Hi *, > > don't know if someone is looking to it, but it's full of spam > > http://www.wicketstuff.org/wicket13/guestbook/ > > Cheers > Per > > -

Re: Eclipse Hot Swap Issue?

2007-12-24 Thread Johan Compagner
This is a prety serious error, try upgrading to the latest jdk On 12/24/07, oliverw <[EMAIL PROTECTED]> wrote: > > Hi > > I'm using Eclipse 3.3.1.1 with a project created using the Wicket-Maven2 > archetype. Wicket Version 1.3.0rc2. > > The "An unexpected error" in the log below happens when I mod

Re: OutOfMemoryError: Java heap space - AppendingStringBuffer

2007-12-28 Thread Johan Compagner
Nowadays its also many times the perm heap thats to small. Dont know if that is the cause for you because i think it will say that in the exception (the propery for that is a special XX system property dont have that at hand) On 12/28/07, Artur W. <[EMAIL PROTECTED]> wrote: > > > Mr Mean wrote: >

Re: OutOfMemoryError: Java heap space - AppendingStringBuffer

2007-12-29 Thread Johan Compagner
yeah but South Africa has 3G no idea what thats gonna cost me. But also internet cafes so i should use those more often.. johan On Dec 29, 2007 12:09 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > He, I thought you were having vacation :-PPP > > Seb* > >

Re: BookmarkablePageLink giving a different URL

2008-01-03 Thread Johan Compagner
Dont use query string but use the normal mounting Query string does exactly what it says it does it builds a query string for params On 1/3/08, David Shepherdson <[EMAIL PROTECTED]> wrote: > On 3 Jan 2008, at 5.07 pm, Haritha Juturu wrote: > > > I would like to get a url similar to"/editor?not

Re: Is it possible to use wicket without having any html page?

2008-01-04 Thread Johan Compagner
Thats only possible if you use panels for everything. Or generate als ther html dynamically based on your data On 1/4/08, legolas <[EMAIL PROTECTED]> wrote: > > A web page, but it is completely dynamic and all components will be created > based on user request content. > > Thanks > > igor.vaynber

Re: Wicket Session and threading

2008-01-05 Thread Johan Compagner
Only store the userid in the session, and get that id and the user object in the request cycle on begin request also store the user object in that request cycle then no synching is really needed, except maybe a (db) version/timestamp check if you really want to make sure you are the latest update.

Re: Wicket copies my object!

2008-01-06 Thread Johan Compagner
This is not going to work yes. I also mentioned this in the presentation i gave in amsterdam at the wicket meeting. You cant have shared variables between pages and expect those to be always shared and the same instance. This will not work with the SLC because we serrialize the pages per page. So e

Re: Wicket copies my object!

2008-01-06 Thread Johan Compagner
Yes that will work also (using the session for that) Pagemaps are simple to use jmust create a page with the PageMap arg constructor. Then that page is created and stored in that pagmap and wont push the opener page out of the default pagmap. See PageMap.forNam() On 1/6/08, Edvin Syse <[EMAIL PRO

Re: Wicket copies my object!

2008-01-07 Thread Johan Compagner
This is exactly what i explained above!! Why tell that i was wrong? again you cant have 1 instance of something (lets say a model) share that between 2 pages and then expect that to always be the same instance when 1 or both pages are serialized. Again this will NOT work and can't easily be fixed

Re: Wicket Session and threading

2008-01-07 Thread Johan Compagner
Igor! Thats a bad example. The user object should be in the websession but the user object should be in the requestcycle. Because the websession object can be hit by multiple request (threads) On 1/7/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > class MySession extends WebSession { > private Lo

Re: "required" for Checkbox

2008-01-07 Thread Johan Compagner
The problem is that this setRequired is only really valid for a try state checkbox. I agree that required shouldnt mean it has to be true thats weird in my eyes On 1/7/08, Kent Tong <[EMAIL PROTECTED]> wrote: > > Hi, > > I observed that if "required" is set to true for a Checkbox, Wicket will > en

Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Johan Compagner
If you want default html for those things use panels. Make for all those components a panel part that has its own markup (so do that once) Then reuse those components everywhere. Not that you gain much in my eyes because you still need to have a span that places the panel at the right place On 1/7

Re: Missing PageParameters with Wicket 1.3

2008-01-08 Thread Johan Compagner
please create a jira issue for this On Jan 8, 2008 11:16 AM, Semmling, Marius <[EMAIL PROTECTED]> wrote: > Hi! > > I've got a problem with the wicket PageParameters. After switching from > wicket 1.2.6 to 1.3 I no longer receive any parameters from the query > string. > > My wicket WebApplication

Re: AjaxEditableLabel in 1.3.0

2008-01-09 Thread Johan Compagner
Isnt the wicket jar and extentions jar loaded by 2 classloaders at your place? Because then this kind of stuff can happen because somehow it things that those classes/packages are really diferent. On 1/8/08, Per Ejeklint <[EMAIL PROTECTED]> wrote: > > A quick solution is to copy AjaxEditableLabe

Re: "required" for Checkbox

2008-01-09 Thread Johan Compagner
That case should not be done with required in my eyes, thats a data check that should have a specific value (true in this case). So thats an other data validator (just like range validator for a number) On 1/8/08, Sam Barnum <[EMAIL PROTECTED]> wrote: > Right, like for an "accept terms" checkbox a

Re: Resizable and reorderable grid components

2008-01-11 Thread Johan Compagner
If there would be a market for commercial components then i can see the value of wicketstuff.org/marketplace for such components, commercial or not its still stuff for wicket On 1/11/08, Evan Chooly <[EMAIL PROTECTED]> wrote: > Is that not the "official" website for the wicket stuff projects? Jus

Re: Dont refresh webpage on Form Submit

2008-01-11 Thread Johan Compagner
RequestCycle.get().setRequestTarget(ne emptyrequesttarget) Or something like that in your onsubmit On 1/11/08, Haritha Juturu <[EMAIL PROTECTED]> wrote: > Hi Everyone, > I have a Form object in my wicket page. After the onSubmit() method is > called the webpage is refreshed. > Is there anyway i ca

Re: TreeGrid and DataGrid open source

2008-01-11 Thread Johan Compagner
Just open a pay pal account and ask people to give some if they like the components and want to support it. Maybe you get rich then and you can pay thailand for me.. On 1/12/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > On Jan 12, 2008 2:28 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > On

Re: Javadoc?

2008-01-12 Thread Johan Compagner
We also have them on wicketstuff.org/wicket13doc i believe Dont know if that is the latest version and i cant check it at this time On 1/11/08, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > The javadoc does not come with the wicket 1.3 bundle. > > Where can the javadoc for all the wicket1.3 build

Re: back button and session state rollback

2008-01-12 Thread Johan Compagner
I looked into this before (martijn also i think) maybe we should see if we can support this somehow that we can have an objecxt in the session that also has versions somehow.. You can simulate it by using the pag id and version number as keys for something tha you store and maybe use something lik

<    1   2   3   4   5   6   7   8   9   10   >