MarkupNotFound Exception

2007-07-31 Thread shumbola
Sometimes I'm get this exception: org.apache.wicket.markup.MarkupNotFoundException: Markup not found. Component class: uz.shumbola.signin.SSLSignIn Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried at org.apache.wicket.markup.MarkupCache.getMarkupStrea

Re: Sharing a model

2007-07-31 Thread Igor Vaynberg
wont be a problem, i do it all the time -igor On 7/31/07, David Rosenstrauch <[EMAIL PROTECTED]> wrote: > > I'm wondering: can 2 pages share a model? Or would this cause > serialization problems? > > Background: I'm trying to set up a wizard-like series of pages, and it > would make some sense

Sharing a model

2007-07-31 Thread David Rosenstrauch
I'm wondering: can 2 pages share a model? Or would this cause serialization problems? Background: I'm trying to set up a wizard-like series of pages, and it would make some sense for the pages to share the same model, with each page filling in a piece of it. (Yes, I know about the Wizard

Re: TinyMCE and Panel loaded via ajax

2007-07-31 Thread Erik Dreyer
I've made a bit of progress on this. I actually created a new TinyMCEBehavior that does away with the TinyMCESettings because that didn't give me the control I needed in setting up the editor. It's not working 100% yet, but if I can get it working in both browsers reliably, I'll post what I've do

Re: TinyMCE and Panel loaded via ajax

2007-07-31 Thread Igor Vaynberg
i believe this is a known issue and the author of contrib project was working on it. but that was a long time ago. -igor On 7/31/07, Erik Dreyer <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm experiencing issues trying to get the TinyMCEBehavior (from: > wicket-contrib-tinymce) it works just fine whe

TinyMCE and Panel loaded via ajax

2007-07-31 Thread Erik Dreyer
Hi, I'm experiencing issues trying to get the TinyMCEBehavior (from: wicket-contrib-tinymce) it works just fine when loaded via a normal HTTP request, but not when it exists on a panel that is loaded asynchronously via ajax. Has anyone else experienced this? I'm simply trying to follow the simpl

Re: home page with parameters

2007-07-31 Thread Edgar Poce
Hi, On 7/31/07, Crash_neo <[EMAIL PROTECTED]> wrote: > > I'm not sure if this is possible. It sounds a bit strange to me. > > But if you want the homepage to use the same bean class and dao every time > the website is visited the first time, why not make that the default > constructor? I'm giving

Re: home page with parameters

2007-07-31 Thread Crash_neo
I'm not sure if this is possible. It sounds a bit strange to me. But if you want the homepage to use the same bean class and dao every time the website is visited the first time, why not make that the default constructor? And if you want to be able to use the same page with a diferrent bean/dao s

Re: Models and embedded panels

2007-07-31 Thread wicket
Doh! Now that you mention that, the solution is obvious and I (once again) feel stupid for even asking the question (not to mention wasting time on this)... I'll fix this when I get back to work tomorrow. Thank you! > On 7/31/07, David Leangen <[EMAIL PROTECTED]> wrote: >> >> >> Bookmarka

home page with parameters

2007-07-31 Thread Edgar Poce
Hi, In my application I'd like to add a home page that displays a collection of beans from a dao, I'd like to pass the bean class and the DAO instance as constructor's parameters. it possible to define a page with parameters in the constructor as the home page?. thanks in advance, edgar

Re: Models and embedded panels

2007-07-31 Thread Frank Bille
On 7/31/07, David Leangen <[EMAIL PROTECTED]> wrote: > > > BookmarkablePageLink changeToEnglishLink = > new BookmarkablePageLink( "eng", getPage().getClass() ); > add( changeToEnglishLink ); > changeToEnglishLink.setVisible( !isLocaleEnglish() ); > > BookmarkablePageLink changeToJapan

Re: DateTimeField issue

2007-07-31 Thread Gerolf Seitz
>"missing ( before formal parameters" > >at the function declaration function initasset.installDate1DpJs() { i suspect that asset.installDate is the wicket:id of the component, right? eelco, since this can be considered a frequent usecase (especially combined with a CompoundPropertyModel), we sho

Re: unordered list as navigation

2007-07-31 Thread Igor Vaynberg
interface menuitem { IModel getLabel(); // can be null void onClick(); // onclick handler } list items= add(new navigationpanel("panel", items)); -igor On 7/31/07, Graham O'Regan <[EMAIL PROTECTED]> wrote: > > I've seen references to similar questions around but I haven't been able > t

unordered list as navigation

2007-07-31 Thread Graham O'Regan
I've seen references to similar questions around but I haven't been able to find a clean solution to this problem. I want to be able to create a panel that accepts labels and links so the html looks like this; wicket:id="optionalLabel">[replace]

DateTimeField issue

2007-07-31 Thread Doug Leeper
I am using Wicket 1.3.0 Beta 2 and I am having issues with the org.apache.wicket.datetime.markup.html.form.DateTextField. Well actually the DatePicker. I followed the code exactly in the Date examples (http://www.wicketstuff.org/wicket13/dates/) but when I run my application and select on the Da

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Matej Knopp
Basically, this looks correct. -Matej On 7/31/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > > I think i replied why not in the other response. Couple of more > > things. Even if the response is sent with ajax response, it's filtered > > on client (and partially on server as well). So the dependenc

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Carlos Pita
> I think i replied why not in the other response. Couple of more > things. Even if the response is sent with ajax response, it's filtered > on client (and partially on server as well). So the dependencies are > not loaded more then once. Ok Matej, I have been reading the sources to understand ho

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Matej Knopp
I think i replied why not in the other response. Couple of more things. Even if the response is sent with ajax response, it's filtered on client (and partially on server as well). So the dependencies are not loaded more then once. Wicket can't know which component's renderHead method should be inv

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Matej Knopp
Well, this certainly isn't a very common use case. Invoking renderHead for not visible components would be very problematic and confusing, because if you had e.g. invisible ListView, then the children are not even created so those children's renderHead wouldn't be invoked at all. Also this wouldn't

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Carlos Pita
The other remarks are not directly related to the problem but just some late night thoughts that were fired up by it. The ajax header contribution is fine but I think in most cases loading the component header stuff at initial page rendering will be better, because it avoids the problem that gave p

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Carlos Pita
Because of a security restriction at the browser (firefox) side. I can't dynamically include external scripts. For example, ajax response can't contribute http://www.google.com/uds/api?file=uds.js&v=1.0"; type="text/javascript"> (for the google search api). If it does I get the aforemention

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Matej Knopp
I don't really understand what your problem is. Wicket has AJAX header contribution, which should load the javascript dynamically for you. Doesn't this work for you? -Matej On 7/31/07, Carlos Pita <[EMAIL PROTECTED]> wrote: > Yes Gwen, > > there are a couple of workarounds, of course, I could cal

Re: AjaxLazyLoadPanel updates serialized?

2007-07-31 Thread Igor Vaynberg
you have to rewrite the panel and create a polling script so something like: boolean iscomponentready() {...} in the panel that is called by the polling script (ajaxtimerbehavior) and when it returns true you then replace the component. so the work of collecting all that data is done in a separat

stream markup without component fully rendered...

2007-07-31 Thread Jan Kriesten
hi, i need a hint how to write to the stream without having the component fully rendered. i have e.g. 5000 emails to import and want to write each successivly to the stream when imported. i started with AjaxLazyLoadPanel and after that build the component to show the import-progress (i.e. writi

Re: AjaxLazyLoadPanel updates serialized?

2007-07-31 Thread Evan Chooly
On 7/31/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > AFAIUI the serialization already occurs on the server: the session > will be locked while you retrieve the panel contents. The client's > single request channel makes the congestion on the server less (less > threads waiting for access to

Re: AjaxLazyLoadPanel updates serialized?

2007-07-31 Thread Martijn Dashorst
AFAIUI the serialization already occurs on the server: the session will be locked while you retrieve the panel contents. The client's single request channel makes the congestion on the server less (less threads waiting for access to the user's session). If you have 3 lazy panels on your page, that

Re: contributing to header (was: Must renderHead even if setVisible(false))

2007-07-31 Thread Carlos Pita
Yes Gwen, there are a couple of workarounds, of course, I could call renderHead explicitly from the page too. But the case seems not too uncommon imo (a component that includes some external javascript and isn't showed at first). Maybe it should be supported directly by wicket, after all a compone

Re: [Wicket-user] How to set a date on backing model obj from contents of drop down lists?

2007-07-31 Thread David Rosenstrauch
David Leangen wrote: One suggestion: what about having a date pojo like: public class MyDate { get/setMonth() get/setDay() get/setYear() public Date getDate() { // translate object state into a Date object } } Then use PropertyModel to get/set the individual fields: Componen

AjaxLazyLoadPanel updates serialized?

2007-07-31 Thread Evan Chooly
When trying to use two different lazy loaded panels i noticed that they appear to be serialized. The current implements uses a AbstractDefaultAjaxBehavior to create the call back to lazy load the actual content. But these calls appear to be serialized in a page. Would it make more sense to use a

Re: Testing for cookie capability

2007-07-31 Thread Johan Compagner
session (in mem only) cookies are most likely usable. But i don't see a big plus for them in a wicket application.. disk based cookies could be blocked earlier by people (privacy) and third party cookies are now blocked by pretty much all the browsers (so the url is www.wicket.org and the cookie t

RE: Getting a 1.2.7 shapshot posted to the repo on wicket-stuff

2007-07-31 Thread David Leangen
> > Would it be possible to have the current 1.2.7 snapshot posted on the > > repository on the wicket-stuff site? > http://wicketstuff.org/maven/repository/wicket/wicket/1.2-SNAPSHOT/ Ahhh... so that's how that works. Ok, thanks! -

RE: Testing for cookie capability

2007-07-31 Thread David Leangen
Actually, in the normal case, I just use normal cookies (i.e. stored to disk like you write below). Does it happen often that a user has cookies disabled or a client does not support cookies? Or am I being too paranoid, here? > -Original Message- > From: Johan Compagner [mailto:[EMAI

Re: Getting a 1.2.7 shapshot posted to the repo on wicket-stuff

2007-07-31 Thread Martijn Dashorst
http://wicketstuff.org/maven/repository/wicket/wicket/1.2-SNAPSHOT/ On 7/30/07, David Leangen <[EMAIL PROTECTED]> wrote: > > Would it be possible to have the current 1.2.7 snapshot posted on the > repository on the wicket-stuff site? > > Is there anything I can do to get my hands dirty? Or do I ne

Re: Testing for cookie capability

2007-07-31 Thread Johan Compagner
i guess you want to set a cookie that is stored on disc on the client? because setting a cookie that is a session cookie doesn't really make much sense except if you really also don't create a http session./wicket session But if it is a stored cookie then appending it to the url doesn't make much

Models and embedded panels

2007-07-31 Thread David Leangen
There's something that's eluding me here... I have a wizard. The wizard includes a static XxxStep class. From within that Step, I change the Locale. All my stuff is updated right away with the new locale except for one place... I have a menu that holds various items. Most are links, but one of

Re: session timeout detection

2007-07-31 Thread Johan Compagner
or WebApplication { public void sessionDestroyed(String sessionId) } do call super! johan On 7/31/07, Martin Funk <[EMAIL PROTECTED]> wrote: > > Mark Sandori schrieb: > > Does anyone know how to detect a session timeout in Wicket 1.3 Beta 2? > > > > Right now a new session is silently being cr

Page expiration

2007-07-31 Thread shumbola
I've in My application class this: getApplicationSettings().setPageExpiredErrorPage(MyPageExpired.class); In my application I've got a "menu" - a few links to other pages. If i click links everything works ok, but if click a link or two, and go back with browser's back button two times and go for

Re: Must renderHead even if setVisible(false)

2007-07-31 Thread Gwyn Evans
On Tuesday, July 31, 2007, 7:30:34 AM, Carlos <[EMAIL PROTECTED]> wrote: > I have a component that contributes some javascript to the header. Initially > the component won't be shown but an ajax event could make it visible. The > problem is that the javascript is contributed later, during the ajax

Re: session timeout detection

2007-07-31 Thread Martin Funk
erm... that's what coding outside the IDE does to you:-) class YourApplication . { protected ISessionStore newSessionStore() { return new MySessionStore(...); } } I meant: class YourApplication . { protected ISessionStore newSessionStore() { return new YourNewSe

Re: session timeout detection

2007-07-31 Thread Martin Funk
Mark Sandori schrieb: Does anyone know how to detect a session timeout in Wicket 1.3 Beta 2? Right now a new session is silently being created automatically after a timeout. Thanks, Mark. - To unsubscribe, e-mail: [EMAIL PROT

Re: editable form saw a similar issue fixed with forms and pallettes in 1.3

2007-07-31 Thread Gabor Szokoli
On 7/30/07, Ed_ <[EMAIL PROTECTED]> wrote: > > http://mail-archives.apache.org/mod_mbox/wicket-commits/200707.mbox/[EMAIL > PROTECTED] > Is there any correlation? I don't think so, but I'm not much more experienced with wicket than you are :-) > > Thanks the toString override seems to work in t