model detached many times

2009-07-10 Thread Ian MacLarty
Hi, I noticed that my IDetachable model is being detached many times (hundreds) for each request. Is that something to worry about, or is it just because the detach method is called for each component that points to this model? Ian.

A packaged resource that has a variable image based on component value

2009-07-10 Thread Steve Tarlton
I know this is probably very simple to do, but I haven't been able to get my head wrapped around it. I want to create a component within the column of a table that has 6 different images associated to it. Each image is tied to a number as the component is actually an integer representing a state.

Re: model detached many times

2009-07-10 Thread Eelco Hillenius
It's fine if a model if detached multiple times in a request, but hundreds for a single model sounds suspicious. Try to trace what components fire the detach method and see if there's anything weird with that. Eelco On Thu, Jul 9, 2009 at 11:21 PM, Ian MacLartyian.macla...@gmail.com wrote: Hi,

Re: A packaged resource that has a variable image based on component value

2009-07-10 Thread Eelco Hillenius
I would vary the packaged resource rather than having a resource vary what it points to. That way, you can let browsers cache the image, and you could potentially move it out of a packaged resource to a static image some day if you'd want it e.g. to get maximum performance. Eelco On Thu, Jul 9,

Re: A packaged resource that has a variable image based on component value

2009-07-10 Thread satar
Okay, I will see if I can figure out how to do that. Currently, I am @Override-ing the getCellCssClass and seeing if I can vary the css resource depending on the corresponding columns value as that is the only idea I had currently on how I could possibly do this. -- View this message in context:

Re: model detached many times

2009-07-10 Thread Ian MacLarty
I put a breakpoint on the detach method of my model and had a look at the Components whose detach methods were called higher up in the stack trace. It looks like the detach method on the model is being called for every component on the page. All the components link to the same underlying model

Re: model detached many times

2009-07-10 Thread Martijn Dashorst
If you share a model between components, then yes–each component will call detach on the model. That's encapsulation for you: one component doesn't know about another component, so it can't know that its model was detached. Martijn On Fri, Jul 10, 2009 at 9:41 AM, Ian

Re: Wicket 1.4-rc6 Swarm

2009-07-10 Thread Luca Provenzani
this is a very good new! thank you a lot! Luca 2009/7/9 Olger Warnier ol...@xs4all.nl Hi Igor / List, Thanks for the trust. The wicket-security project trunk found at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security is now compatible with wicket 1.4

Re: File upload without writing to temp file (on Google App Engine)

2009-07-10 Thread uud ashr
I've been thinking to change the implementation.No more write to temp file, but write to datastore. We can use this as standard way to store file on google app engine. I wonder, is there anyone who create something like this? Regards, uudashr On Mon, Jun 22, 2009 at 4:07 PM, Dolejs Vlastimil

Re: Annotations and AOP in Wicket

2009-07-10 Thread Yann PETIT
Here's a simple tutorial in french about Wicket+SpringAOP ... http://blog.konkest.com/?p=73 regards, yann On Tue, Apr 21, 2009 at 2:21 PM, Erik van Oosten e.vanoos...@grons.nlwrote: Wicket is structured such that is usually does not need annotations nor AOP code. The same goes for

Override Component CSS

2009-07-10 Thread Mario Pinhal
Hey, A simple question: how to override the CSS of a component? In my case, I created my own component that extends org.apache.wicket.extensions.markup.html.tree.Tree, and so I want to personalize it by having my own CSS attached to it. Thanks for your help in advance, M. Software

Dynamic links in inmethod DataGrid

2009-07-10 Thread De Soza, Jean-Pierre
Hello, I'm facing a very specific issue with Links in a cell of the inmethod DatGrid: -If I use a link with a static text next to a label with a variable text, the link works perfectly: label wicket:id=labelA variable text/labelnbsp;a href=some url wicket:id=linkRead More.../a -

How to throw new PageExpiredException?

2009-07-10 Thread Ann Baert
Hello, How can I throw a PageExpiredException in the constructor of my WebPage? Because the exception is wrapped by Wicket with WicketRuntimeException it goes to the InternalErrorPage. Thanks, Ann DISCLAIMER A HREF=http://www.tvh.be/newen/pages/emaildisclaimer.html;

Re: A packaged resource that has a variable image based on component value

2009-07-10 Thread satar
So I decided that I am not experienced enough yet with Wicket or using inmethod DataGrid to try to do images but would like to at least change the background color based on an integer value. This is what I did but still think it is somewhat lame and probably there is a much better approach: For

Submiting a form to external page with SubmitLink

2009-07-10 Thread Anton Veretennikov
Hello, wicket users and developers, I need to post a form to external page and open it in a new window. I found an advice to use a simple WebMarkupContainer instead of a form here:

Re: A packaged resource that has a variable image based on component value

2009-07-10 Thread satar
Seems to have chopped of my return line, which was: return (less than)font style=\background-color: + color + \(greater than) + value + (less than)/font(greater than); (less than) = (greater than) = Hope it works this time satar wrote: So I decided that I am not

Re: model detached many times

2009-07-10 Thread Martijn Dashorst
Automatic detachment is one of the things we're looking into for 1.5 or 1.6 Martijn On Fri, Jul 10, 2009 at 12:47 PM, James Carmanjcar...@carmanconsulting.com wrote: Perhaps there could be some sort of registry for models that need to be detached.  Then, after rendering, they're all detached

deploying in jboss

2009-07-10 Thread Stefan Malmesjö
Hi, I'm trying to deploy my webapp in a jboss as. In jetty it works fine, but in jboss, I get this in the logs when trying to access my index page, does anyone know what I'm doing wrong? /Stefan java.lang.IllegalArgumentException: Can only process HttpServletRequest at

SSL switching

2009-07-10 Thread Chris Davis
Hello,I have implemented the SSL switching method as described in http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html that rewrites the URL and does a redirect. In does work to a point but I have a few questions: 1) when the redirect occurs a new session is started, is this correct or

Re: Dynamic links in inmethod DataGrid

2009-07-10 Thread James Carman
Tell the label to render its body only. On Fri, Jul 10, 2009 at 5:08 AM, De Soza, Jean-Pierrejean-pierre.des...@hp.com wrote: Hello, I'm facing a very specific issue with Links in a cell of the inmethod DatGrid: -        If I use a link with a static text next to a label with a variable

Re: deploying in jboss

2009-07-10 Thread Stefan Malmesjö
As an update, the version of Jboss I'm trying this on is 5.1.0-GA. I also tried it on tomcat 5.5.27, and it works fine there, too. /Stefan On 2009-07-10 13:18, Stefan Malmesjö wrote: Hi, I'm trying to deploy my webapp in a jboss as. In jetty it works fine, but in jboss, I get this in the

Re: Dynamic links in inmethod DataGrid

2009-07-10 Thread jpds
Can you elaborate a little bit, James, I am not sure about what you exactly mean. Override OnRender for the label? I'd also like to add another variable in the picture... In fact, the link does work, but only with Firefox, not with IE7, and I unfortunately need to support both. James Carman-3

Re: Dynamic links in inmethod DataGrid

2009-07-10 Thread James Carman
http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#setRenderBodyOnly(boolean) On Fri, Jul 10, 2009 at 8:17 AM, jpdsjean-pierre.des...@hp.com wrote: Can you elaborate a little bit, James, I am not sure about what you exactly mean. Override OnRender for the label? I'd also

Re: model detached many times

2009-07-10 Thread James Carman
Right, but they shouldn't have to be detached multiple times. My point is that we should collect all the models that need detaching and call detach on them only once. Automatically deciding which ones need to be detached is a separate issue. On Fri, Jul 10, 2009 at 7:18 AM, Martijn

SV: Test Methods for Querying Component Tree

2009-07-10 Thread Wilhelmsen Tor Iver
To address this, I wrote some code that gets the component tree, and either returns a List, or a string with the components' id's and classes. It can be found at http://gist.github.com/144041. Is this useful to anyone? Is there a better way for me to view the component tree at runtime/test

Extending Enclosure

2009-07-10 Thread Harrison, Andy
Hi guys, This may be a strange request, but I'm a little stumped at the moment. So far, we have a custom tag wicket:feature key=blah/ that is resolved using an IComponentResolver, turning the tag into a label based on the Model object contents for the key specified. This all works well and

File upload form validation question

2009-07-10 Thread fm u
hi, I am using simple ajax file upload with UploadProgressBar. I also have a required textarea in the same form. But when I try to upload a file without filling the required textarea, the file is uploaded first and then the validation error appers. What should I do to validate the form before

Re: How to throw new PageExpiredException?

2009-07-10 Thread Igor Vaynberg
you can try unwrapping the exceptions in requestcycle.onruntimeexception and call super with the page exipred exception. -igor On Fri, Jul 10, 2009 at 3:00 AM, Ann Baertann.ba...@tvh.be wrote: Hello, How can I throw a PageExpiredException in the constructor of my WebPage? Because the

Re: Submiting a form to external page with SubmitLink

2009-07-10 Thread Igor Vaynberg
you can subclass form, override oncomponenttag and change the value of the action attribute to point to the external page. -igor On Fri, Jul 10, 2009 at 3:17 AM, Anton Veretennikovanton.veretenni...@gmail.com wrote: Hello, wicket users and developers, I need to post a form to external page

Re: deploying in jboss

2009-07-10 Thread Igor Vaynberg
this is a spring problem. wicket is not even in the stacktrace. -igor 2009/7/10 Stefan Malmesjö s.m.mo...@gmail.com: Hi, I'm trying to deploy my webapp in a jboss as. In jetty it works fine, but in jboss, I get this in the logs when trying to access my index page, does anyone know what I'm

Re: deploying in jboss

2009-07-10 Thread Stefan Malmesjö
That's true. I should try talking to the spring people. /Stefan On 2009-07-10 16:53, Igor Vaynberg wrote: this is a spring problem. wicket is not even in the stacktrace. -igor 2009/7/10 Stefan Malmesjös.m.mo...@gmail.com: Hi, I'm trying to deploy my webapp in a jboss as. In jetty it

Re: Extending Enclosure

2009-07-10 Thread Igor Vaynberg
markup settings has a markup parser factory. you can pull it out and create a decorator that delegates creation of markup parser to the default factory and then before returning it uses markupparser.appendfilter() to install your own markup filters. -igor On Fri, Jul 10, 2009 at 6:26 AM,

validation of upload form

2009-07-10 Thread fm u
hi, I am using simple ajax file upload with UploadProgressBar. I also have a required textarea in the same form. But when I try to upload a file without filling the required textarea, the file is uploaded first and then the validation error messages appear. What should I do to validate the

Re: validation of upload form

2009-07-10 Thread Jeremy Thomerson
Validate client-side? -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jul 10, 2009 at 9:08 AM, fm uf...@hotmail.com wrote: hi, I am using simple ajax file upload with UploadProgressBar. I also have a required textarea in the same form. But when I try to upload a file without

Re: Submiting a form to external page with SubmitLink

2009-07-10 Thread Anton Veretennikov
Honestly, I tried it :) but it didn't work Thank you. On Fri, Jul 10, 2009 at 10:50 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: you can subclass form, override oncomponenttag and change the value of the action attribute to point to the external page. -igor On Fri, Jul 10, 2009 at

Re: linking to a text ResourceReference

2009-07-10 Thread CrocodileShoes
Hello, I'm trying to get SWFObject and Open Flash Charts running in my web app. I'm receiving the following error where the chart should be: Open Flash Chart JSON Parse Error [Syntax Error] Error at character 0, line 1: -2: undefined-1: undefined0: !DOCTYP I'm sure this is generated by the

Re: Submiting a form to external page with SubmitLink

2009-07-10 Thread shumbola
Why not just use SimpleAttributeModifier for action attribute of your form? It works for me, try it. shumbola Anton Veretennikov wrote: Honestly, I tried it :) but it didn't work Thank you. On Fri, Jul 10, 2009 at 10:50 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote: you can

Help us release 1.4 sooner by helping out with the migration guide

2009-07-10 Thread Igor Vaynberg
We would like to release Wicket 1.4 very soon, but in order to do so we would like to provide our users with a good migration guide. We have started one here: http://cwiki.apache.org/confluence/display/WICKET/Migrate-1.4 but it probably lacks the smaller tweaks necessary to migrate. If you have

Re: A packaged resource that has a variable image based on component value

2009-07-10 Thread satar
This is what I ended up with to include a solution for my colored circle images in case someone else finds the need for such a solution. I am assuming it was a reasonable way to go: ... /* * Checkbox column for the color blind */ if (colorblind) { columns.add(new

RE: validation of upload form

2009-07-10 Thread fm u
thats one solution but I wont be able to use those fancy ajax feedback panel thing and also wicket overrides the form's onsubmit with its own code. If possible, validating the form before file is uploeded would do the best? -Original Message- From: Jeremy Thomerson

Re: validation of upload form

2009-07-10 Thread Igor Vaynberg
unfortunately that is now how http works. first you get all the data uploaded - including the file - then you get to process it. -igor On Fri, Jul 10, 2009 at 2:49 PM, fm uf...@hotmail.com wrote: thats one solution but I wont be able to use those fancy ajax feedback panel thing and also

RE: validation of upload form

2009-07-10 Thread fm u
How about if I add 2 forms, one for fields and one for file upload and submit first form from submit of the file upload form and if the validation of the first form fails, not proceed with the second form submission which is the file upload form. Is this doable or so utopic? fmu From:

Re: validation of upload form

2009-07-10 Thread Igor Vaynberg
only if you submit the first form via ajax and submit the second one via javascript returned from the submission of first form. -igor On Fri, Jul 10, 2009 at 5:19 PM, fm uf...@hotmail.com wrote: How about if I add 2 forms, one for fields and one for file upload and submit first form from

Re: How to throw new PageExpiredException?

2009-07-10 Thread James Carman
1.4-rc7 should fix this, no? On Fri, Jul 10, 2009 at 10:48 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: you can try unwrapping the exceptions in requestcycle.onruntimeexception and call super with the page exipred exception. -igor On Fri, Jul 10, 2009 at 3:00 AM, Ann

Re: congrats to inmethod

2009-07-10 Thread mms770
Where can we download from? Thanks, Medhat Cristi Manole wrote: I was trying to see if the inmethod site still links the (best) wicket data/tree table (although i knew it's been moved to wicket-stuff) and I stumbled on the new site. The site looks great and so does the service.

Re: How to throw new PageExpiredException?

2009-07-10 Thread Igor Vaynberg
not necessarily. we do not unwrap the exceptions to check for page expired generally, so if you throw it from your code we can catch it and wrap it in a WRE. -igor On Fri, Jul 10, 2009 at 8:32 PM, James Carmanjcar...@carmanconsulting.com wrote: 1.4-rc7 should fix this, no? On Fri, Jul 10,

How to setup QuickStart project being able useYUI menubar from Wicket stuff

2009-07-10 Thread Petr Fejfar
Hi all, I have another beginner's problem... - I've imported project yui and and yui-expamles from wicketstuff info Eclipse IDE and examples work fine. - I've created a QuickStart project using maven anc command generated by Wicket's site and imported it into Eclipse IDE - I'd like to add