Re: Help with path mounting and static asset expiration

2011-07-11 Thread Todd Nine
Hi Martin, I noticed that in the changelog, and the timestamp appended to the file name. Unfortunately we have a lot of custom work based on the 1.4 code base, and use quite a few plugins. Upgrading to 1.5 will be at least a month to all our code and the plugins (I scoped it out today). We'll

Re: Help with path mounting and static asset expiration

2011-07-11 Thread Martin Grigorov
Consider upgrading to Wicket 1.5. There are a lot of improvements about that - see org.apache.wicket.request.resource.caching.IResourceCachingStrategy. On Tue, Jul 12, 2011 at 2:52 AM, Todd Nine wrote: > Hi guys, >  We've just finished our first wicket app using wicket 1.4.17. > > Everything wor

Re: Javascript files not loading in IE6

2011-07-11 Thread Antoine Aumjaud
I have the same issue with version 1.4.17 on IE6. Have you find the problem ? (I have rollbacked to version 1.4.7 and it works fine.) Martin Grigorov-4 wrote: > > I'd bet it is one of the famous: "if (Wicket == undefined)" vs. "if > (typeof(Wicket) != 'undefined')" checks > I'll check what ch

RE: [ANNOUNCE] Wicketopia 0.9 Released...

2011-07-11 Thread androidcoolguy
More good news. I used JPA provider instead of hibernate by looking at your latest codes to make Wicketopia works on GAEJ. Also have to change the JpaPersistenceProvider in such a way - public int getCount(Class entityType) { Integer results = (Integer) entityManager.createQuery("se

Help with path mounting and static asset expiration

2011-07-11 Thread Todd Nine
Hi guys, We've just finished our first wicket app using wicket 1.4.17. Everything works well, but we get a lot of resource requests for resource that rarely change. I've read a few blogs on the subject, and this one is the closest to what I want to do, however it's not quite right. http://tec

RE: [ANNOUNCE] Wicketopia 0.9 Released...

2011-07-11 Thread androidcoolguy
I am working on making it works on GAE/J. But stuck at http://localhost:/blobdb/ws|username=username|password=password" /> And the partial error - WARNING: Could not obtain connection to query metadatajava.sql.SQLException: URL is not in the correct format: blobdb|http://localhost:

Re: YSlow still complaining "Add Expires headers"

2011-07-11 Thread Peter Karich
Am 11.07.2011 14:44, schrieb Martin Grigorov: > See what happens in > org.apache.wicket.markup.html.WebResource.setHeaders(WebResponse). > Then check the response headers for your resources. > > I guess that your resources are located next to WEB-INF folder and are > delivered directly by the web

Re: Sessions and Login Redirection

2011-07-11 Thread Dan Retzlaff
That's it. I now call session.bind() in requestCycle.onEndRequest() if credentials are set. I thought I'd tried that before, but I must have deployed or tested incorrectly. Thanks, Martijn. On Mon, Jul 11, 2011 at 1:35 PM, Martijn Dashorst < martijn.dasho...@gmail.com> wrote: > Use session.bind()

Re: Sessions and Login Redirection

2011-07-11 Thread Martijn Dashorst
Use session.bind() to actually bind the session. Otherwise WIcket is in the dark that you actually want to keep the session around... Martijn On Mon, Jul 11, 2011 at 10:10 PM, Dan Retzlaff wrote: > Hi all, > > Our application's home / login page is stateless, so its initial request > doesn't est

Sessions and Login Redirection

2011-07-11 Thread Dan Retzlaff
Hi all, Our application's home / login page is stateless, so its initial request doesn't establish a session. In the login form's onSubmit the user is authenticated, his credentials are put into the session, and he is redirected to a page that requires the user to be authenticated. The problem is

Re: Skip validation on nested form's form level validators

2011-07-11 Thread Christian Huber
Hi, well i _could_ decouple the two forms but that would kinda break my usecase and also the layout due to the changed component hierarchy. Removing and readding the validators does not strike me as a good idea though, that would mean that the outer form would have knowledge about the intern

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Horacio Natyural
is this sort of related to wicket-2204 ? i've seen this issue in the tracker On Mon, Jul 11, 2011 at 9:41 PM, Horacio Natyural wrote: > btw, > > before the error occurrs, > there would be instances in which the server would not reply > here's an example scenario. > >  a. Was able to login ppo

Re: Basic question on Developing FormComponentPanels

2011-07-11 Thread Igor Vaynberg
we override convertinput() so code like this still works formcomponentpanel p=new formcomponentpanel(...); p.add(new ivalidator() { }) if we do not override convertinput then the validator will not have a value to validate -igor On Mon, Jul 11, 2011 at 6:28 AM, Nazaret Kazarian wrote: > Th

Re: Page De-Serialization and memory

2011-07-11 Thread Martin Grigorov
On Mon, Jul 11, 2011 at 5:12 PM, richard emberson wrote: > When you say 1 times, you set NOS_TIMES to 1? I mean NOS_TRIALS. > (NOS_TIMES should have been called ARRAY_SIZE). > > Richard > > On 07/11/2011 05:38 AM, Martin Grigorov wrote: >> >> Running the third method (the 'problematic' one

Re: Page De-Serialization and memory

2011-07-11 Thread richard emberson
When you say 1 times, you set NOS_TIMES to 1? (NOS_TIMES should have been called ARRAY_SIZE). Richard On 07/11/2011 05:38 AM, Martin Grigorov wrote: Running the third method (the 'problematic' one) 1 times shows no changes in the PermGen space in VisualVM graphics. The value is stab

Re: Xforms Controls within Wicket Application

2011-07-11 Thread Alexandros Karypidis
Hello, First of all, there is ambiguity in your question. I'm not sure how the above would tie into a "wicket-specific" question, unless you want to create an XForm-->XHTML renderer/processor using Wicket as the underlying technology (which is not a good idea IMHO). In any case: 1) Are you

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Horacio Natyural
btw, before the error occurrs, there would be instances in which the server would not reply here's an example scenario. a. Was able to login ppoerly b. Updated a client info (changed the alternate email address) c. Clicked the Transfer link, i

Basic question on Developing FormComponentPanels

2011-07-11 Thread Nazaret Kazarian
The recommended way for developing a FormComponentPanel is to override onBeforeRender and convertInput. My question is my not override updateModel() to synchronize the model of the custom FormComponentPanel with the models of the nested components instead of overriding convertInput? Wouldn't that b

Re: Xforms Controls within Wicket Application

2011-07-11 Thread sramay
Hi, Rendering a document in the Xforms or storing it in a database is as you have suggested ok. The issue is there when you have xform controls inside a wicket application instead of HTML document(form) and take the imput and stores them into a database. Am I explaining my position

Re: Skip validation on nested form's form level validators

2011-07-11 Thread Andrea Del Bene
Hi, why don't simply put the inner form out of the outer one? Anyway, you could remove inner form's validators before the outer form is submitted and add them again when submit process is over (onFormSubmitted() ) Hi all, I have two forms nested within each other (wicket 1.4.17). The inner f

Re: YSlow still complaining "Add Expires headers"

2011-07-11 Thread Martin Grigorov
See what happens in org.apache.wicket.markup.html.WebResource.setHeaders(WebResponse). Then check the response headers for your resources. I guess that your resources are located next to WEB-INF folder and are delivered directly by the web container and thus Wicket doesn't set the headers. If this

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Horacio Natyural
does it have any effect? On Mon, Jul 11, 2011 at 7:45 PM, Horacio Natyural wrote: > thanks for the info.. > > martin, > > someone used > > getRequestCycle().setRedirect(true); > > Thanks for all the help > > > On Mon, Jul 11, 2011 at 6:05 PM, Wilhelmsen Tor Iver > wrote: >> From: Horacio Natyur

Re: Page De-Serialization and memory

2011-07-11 Thread Martin Grigorov
Running the third method (the 'problematic' one) 1 times shows no changes in the PermGen space in VisualVM graphics. The value is stable at 7.9Mb. MemoryMXBean shows that non-heap space increases more than heap space but I didn't find any resource explaining what is included in this non-heap s

Re: OutputStreams and Panels

2011-07-11 Thread Alex Shubert
Julian, may you provide a small hello-world project? I would like to see how all this work. I heard never before about BIRT and have no idea is it any good. thanks On 9 July 2011 03:40, Julian Sinai wrote: > I should add that I used BIRT 3.7 for this. > > Julian > -- Best regards Alex --

Re: YSlow still complaining "Add Expires headers"

2011-07-11 Thread Peter Karich
anyone an idea how to change cache duration of resources? (as setDefaultCacheDuration doesn't work for me) > Martin, > > I'm using 1.4.17 > >> Your [1] is about the page itself, not about the resources >> (.css, .js, images, ...). > ok. I just wasn't sure. > > Regards, > Peter. > >> Which versi

Re: Application with name 'xxxx' already exists.

2011-07-11 Thread Martin Grigorov
It is fixed with WICKET-3867. On Mon, Jul 11, 2011 at 1:46 PM, Wilhelmsen Tor Iver wrote: >> Hmm... there is just one, no more. :( > > You have run into a known Glassfish bug where WicketFilter.init() is called > twice. A solution is to add a boolean "guard" in a WicketFilter subclass that > on

RE: Application with name 'xxxx' already exists.

2011-07-11 Thread Wilhelmsen Tor Iver
> Hmm... there is just one, no more. :( You have run into a known Glassfish bug where WicketFilter.init() is called twice. A solution is to add a boolean "guard" in a WicketFilter subclass that only calls super.init() once. - Tor Iver

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Horacio Natyural
thanks for the info.. martin, someone used getRequestCycle().setRedirect(true); Thanks for all the help On Mon, Jul 11, 2011 at 6:05 PM, Wilhelmsen Tor Iver wrote: > From: Horacio Natyural [mailto:horacio.natyu...@gmail.com] >> What are the implications of this error message? > > Wicket will

RE: WicketFilter.init() called twice with Glassfish

2011-07-11 Thread Wilhelmsen Tor Iver
The first workaround we ended up using was something like: public class SafeWicketFilter extends WicketFilter { private boolean initWasAlreadyCalledSoYouShouldNotDoThisYouStupidGlassfish = false; @Override public void init(FilterConfig filterConfig) throws ServletExceptio

Re: Use html from url as markup

2011-07-11 Thread Marieke Vandamme
I think that the html from the page is just rendered through the UrlResourceStream, and that this one clears the non-html standard tags like . Then the child-page tries to put the code between this wicket:child-tags, but they are lost. Is that possible? Thanks again for any help! Kind Regards, Mar

RE: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Wilhelmsen Tor Iver
From: Horacio Natyural [mailto:horacio.natyu...@gmail.com] > What are the implications of this error message? Wicket will ignore any overriding (on the Page level) of the property, only the component's own (and the Application's?) properties files will be used. E.g. if FooComponent.properties h

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Horacio Natyural
What are the implications of this error message? Thanks On Mon, Jul 11, 2011 at 5:26 PM, Horacio Natyural wrote: > Hi, > > What does this log statement mean? > > Tried to retrieve a localized string for a component that has not yet > been added to the page. This can sometimes lead to an invalid

Re: Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Martin Grigorov
This message means that you use: public MyPanel() { ... Component comp = new ...; add(comp); comp.getString("some.resource.key"); // } The problem is that MyPanel doesn't know yet its parent (and respectively its page). And this leads to incomplete knowledge how to find the resource

Getting A Random Localized Resource (CSS Image) Instead Of Page

2011-07-11 Thread Horacio Natyural
Hi, What does this log statement mean? Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized resource returned I see it in almost all of our pages and it's saying that i can sometimes lead to an invalid

Re: Use html from url as markup

2011-07-11 Thread Marieke Vandamme
I've tried, but only getting the html from the parent page. What's between -tags is'nt on it... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-html-from-url-as-markup-tp3658921p3659001.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: Use html from url as markup

2011-07-11 Thread Martin Grigorov
Create a base page which includes its html from URL and a child page which has and . And grand-child page if needed. On Mon, Jul 11, 2011 at 10:16 AM, Marieke Vandamme wrote: > Hello, > > Is it possible to use html from an url as Markup-code for a WebPage? > I thought of doing something like thi

Use html from url as markup

2011-07-11 Thread Marieke Vandamme
Hello, Is it possible to use html from an url as Markup-code for a WebPage? I thought of doing something like this: /public class MarkupTestPage extends WebPage implements IMarkupResourceStreamProvider { public MarkupTestPage(){ } public IResourceStream getMarkupResourceStream(Ma