Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-31 Thread James Carman
On Mon, Mar 31, 2008 at 12:28 AM, Matthew Young <[EMAIL PROTECTED]> wrote: > >wicket:link doesnt touch components afaik > > :( I need it to be a component. My code is basically this: > > add(new WebMarkupContainer("img")); Why do you need it to be a component? Are you contr

Using colspan in DataGridView?

2008-03-31 Thread James Carman
I have a table in our application that uses colspans for certain cells. The AbstractDataGridView (and DataGridView subclass) uses the concept of an ICellPopulator. This assumes that there will be m x n table cells (m = number cols, n = number rows) since it manufactures each cell's Item and then

Re: export excel file via an OutputStream

2008-04-01 Thread James Carman
Well, if you're using WicketFilter, then you can just write your own servlet. If WicketFilter doesn't think it's responsible for the request, it'll let it flow through. So, you could just code this using Servlets anyway. Wouldn't extending WebResource and using ResourceLink be the way to do this

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-02 Thread James Carman
Doesn't the code remember what it has already taken care of during serialization? I seem to remember something like that in the code. On Wed, Apr 2, 2008 at 3:34 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > that method is only called when you have page references inside your page > that is g

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-02 Thread James Carman
On Wed, Apr 2, 2008 at 4:03 PM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > SPEED! Can it use a special session store that serializes stuff in-memory just to make sure the serialization is checked? Would that be fast enough? -

Re: CSS not working

2008-04-08 Thread James Carman
Have you tried using around your tag for your CSS? On Tue, Apr 8, 2008 at 11:22 AM, Michael Laccetti <[EMAIL PROTECTED]> wrote: > > For some reason the CSS links that I have embedded in my HTML are not > working. The HTML validates perfectly, the CSS URL is available as I can > browse to it,

Re: customize SignInPanel look and feel

2008-04-09 Thread James Carman
extend it On Wed, Apr 9, 2008 at 4:46 PM, Andrew Broderick <[EMAIL PROTECTED]> wrote: > Hi, > > How do I customize the markup for the stock SignInPanel? > > Thanks > > ___ > > The information in this email or in any file attached > hereto i

Re: Hibernate with wicket

2008-04-10 Thread James Carman
There should be only one SessionFactory created during your application's lifecycle (assuming you're using only one database). On Thu, Apr 10, 2008 at 6:31 AM, tbt <[EMAIL PROTECTED]> wrote: > > Hi > > I'm using a static block to save resources so that hibernate does not have > to initialize a

Re: WebRequest question

2008-04-10 Thread James Carman
I've never really cared for this whole idea of requiring subclassing to get your work done. Is there no way to make things more pluggable? Perhaps use the decorator design pattern? On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > If I remember well, Wasp/Swarm needs

Re: Forms within borders

2008-04-11 Thread James Carman
On Fri, Apr 11, 2008 at 4:22 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > This indeed works, but the problem is I'm gonna forget to do it and > spend another half day banging my head against my desk wondering where > my data went. I think I'll go back to an explicit form...it's not too > onero

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread James Carman
On Fri, Apr 11, 2008 at 9:37 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > Thanks for your not very helpful email, but unfortunately, you're wrong. In > that other email, I did say "But, most don't (have jsessionid) because > almost all of my links are bookmarkable." I don't strip out jsess

Re: Getting the context root

2008-04-15 Thread James Carman
You can use the servlet API to do that. Request.getContextPath() or something like that. On Tue, Apr 15, 2008 at 7:37 AM, unka_hahrry <[EMAIL PROTECTED]> wrote: > > Hello! > > Is there a possibility to get the context root which I defined in my context > descriptor for Tomcat? > -- > View th

Re: How to design tables that support 50-100K rows?

2008-04-17 Thread James Carman
In Hibernate, couldn't you just use get(Class entityClass, Serializable id) rather than doing the whole uniqueResult() stuff? On Thu, Apr 17, 2008 at 9:09 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Using jpa you can do it this way: > >private BaseEntity findById(Str

Re: StringResourceModel with unknown array parameters

2008-04-18 Thread James Carman
Concat the elements of the "array" yourself before you add it as a parameter? On Fri, Apr 18, 2008 at 8:17 AM, i ii <[EMAIL PROTECTED]> wrote: > > is way to add StringResourceModel with array of unknown size? > > .properties > attendees.names=All attendees include: {0} > > webpage > // examp

Re: am I doing right? entities no Serializables.

2008-04-18 Thread James Carman
I like for my entities to always be serializable. Is there some special requirement to have a non-serializable field on your entity class? On Fri, Apr 18, 2008 at 4:50 PM, Fernando Wermus <[EMAIL PROTECTED]> wrote: > I am finishing my first app for production in wicket. As any newbie I try to >

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 3:42 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a usecase where the current proposed generic Interface for > IDataProvider with upcoming v1.4 of Wicket would break the implementation > concept working with Wicket 1.3. The usecase needs different types f

Re: Wicket tester calling "load" twice in loadableDetachableModel

2008-04-24 Thread James Carman
On Wed, Apr 23, 2008 at 10:06 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Hi I have the following, and its resulting in 2x calls to the load on my > model - which confuses me. > > My panel has the following in its constructor. > > setModel(new CompoundPropertyModel(new LoadableDetachableMode

Re: Wicket tester calling "load" twice in loadableDetachableModel

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 6:56 AM, James Carman <[EMAIL PROTECTED]> wrote: > On Wed, Apr 23, 2008 at 10:06 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > > > Hi I have the following, and its resulting in 2x calls to the load on my > > model - which confuse

Re: default spring transaction on request cycle

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 11:15 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you need to surround your code with something like ths: > > > PlatformTransactionManager ptm = (PlatformTransactionManager)ctx >.getBean("transactionManager"); > > TransactionStatus txn = ptm.getTransaction(n

Re: Best way to use borders tranparently

2008-04-24 Thread James Carman
Try using markup inheritance. It's way easier than borders. On Thu, Apr 24, 2008 at 2:07 PM, Joel Halbert <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to work out the best way to use borders within my app. > > After looking at the following docs: > http://wicket.apache.org/examplenavomatic.

Re: Best way to use borders tranparently

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 2:18 PM, Joel Halbert <[EMAIL PROTECTED]> wrote: > Markup inheritance (http://cwiki.apache.org/WICKET/markup-inheritance.html) > certainly looks more straight forward, I'll move over to using it. > > Is there any situation where borders might be preferable though? Not in m

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread James Carman
Can't you just put setters on your page/components that take the dependencies? Then, during testing, you can just inject mock objects. On Fri, Apr 25, 2008 at 9:21 AM, Sarkast <[EMAIL PROTECTED]> wrote: > > Hello there, > > I have a question which came up when trying to test my wicket pages. >

Re: BookmarkablePageLink question

2008-04-25 Thread James Carman
On Fri, Apr 25, 2008 at 10:02 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Yes, enable cookies in your browser. The JSESSIONID will still appear at least one time even if cookies are enabled, correct? Once a link/submit happens and the server sees that cookie come in, it knows not to append

Re: BookmarkablePageLink question

2008-04-25 Thread James Carman
ionid iirc from the > previous discussion. > > Martijn > > > > On 4/25/08, James Carman <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 25, 2008 at 10:02 AM, Martijn Dashorst > > <[EMAIL PROTECTED]> wrote: > > > Yes, enable cookies in your browser.

Re: BookmarkablePageLink question

2008-04-25 Thread James Carman
On Fri, Apr 25, 2008 at 11:06 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hmm I've seen the same a couple of times after restarting the server. > However it seems to "disapear" after the server is "warmed"... > Yes, once it knows that cookies are working, it doesn't appen

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread James Carman
Why are you using the Spring injector to inject your dependencies? Can you not manually inject your dependencies? Adding stuff manually to a Spring context and then having the Spring injector inject it doesn't really test what's going to be going on "in production" anyway. If it were me, I'd prov

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-26 Thread James Carman
On Sat, Apr 26, 2008 at 1:40 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > > James Carman wrote: > > > Why are you using the Spring injector to inject your dependencies? > > Can you not manually inject your dependencies? Adding stuff manual

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 5:57 AM, James Carman <[EMAIL PROTECTED]> wrote: > On Sat, Apr 26, 2008 at 4:55 PM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > > Such an initialize method can easily be done by users them self with a > > simple factory pattern. So why bloat

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
2008/4/28 Uwe Schäfer <[EMAIL PROTECTED]>: > James Carman schrieb: > > > > > Or, perhaps Wicket could add in some lifecycle method annotations? > > > > pleeease don´t! > > using annotations for this kind of lifecycle methods is a simple abuse of

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Sat, Apr 26, 2008 at 4:55 PM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > Such an initialize method can easily be done by users them self with a > simple factory pattern. So why bloat our api with it? Could one come up with their own interface which means they want delayed intialization and

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 6:27 AM, James Carman <[EMAIL PROTECTED]> wrote: > Yes, this would involve making up some rules about the order in which > the parent class' initializer methods are invoked. A couple that come > to mind: > > 1. There should only be one initi

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 7:58 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > How well did you test this? Only whipped it up very quickly (based on obviously wrong assumptions :). > Because i think the biggest problem here is that the > IComponentInstantiationListener is invoked in the construc

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 8:31 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > > > > Oh! Nasty. I thought you guys were somehow waiting until the > > Component was fully instantiated for this notification to occur. If > > Nope. One of the places where this is used, is for security > (i

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 10:58 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > 2008/4/28 Uwe Schäfer <[EMAIL PROTECTED]>: > > > James Carman schrieb: > > > > > > > > > Or, perhaps Wicket could add in some lifecycle method annotations? >

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 11:05 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you can roll that, just use the beforerenderlistener you can install > in the application subclass. We just have to make sure we only initialize an instance one time. The IComponentOnBeforeRenderListeners are called ever

Re: Alternative method to initialise page

2008-04-28 Thread James Carman
On Mon, Apr 28, 2008 at 11:45 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yes of course. you have to keep a boolean in the metadata to mark if > the handler has been called already. > Ok, gotcha! I need to keep that metadata stuff in my head. That's a nifty little trick for adding ad-hoc pro

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread James Carman
And, when does the base page do the adding? In the constructor? On Mon, Apr 28, 2008 at 1:38 PM, Scott Swank <[EMAIL PROTECTED]> wrote: > I have done this by creating an abstract base page with an abstract > factory methods getFooPanel() or getBarPanel(). Then the base page > add()s the result

Re: What is the best way to create layouts in Wicket?

2008-04-28 Thread James Carman
t Swank <[EMAIL PROTECTED]> wrote: > Yes, in the constructor. > > - Scott > > > > On Mon, Apr 28, 2008 at 11:12 AM, James Carman > <[EMAIL PROTECTED]> wrote: > > And, when does the base page do the adding? In the constructor? > > > > > > &

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
Would you like me to add something like this to the wiki? // The interface... public interface IBeforeFirstRenderListener { public void onBeforeFirstRender(); } // The invoking listener... public class BeforeFirstRenderListenerInvoker implements IComponentOnBeforeRenderListener { public s

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
Sorry, type given to meta data key should be Boolean, not IBeforeFirstRenderListener. On Tue, Apr 29, 2008 at 8:55 AM, James Carman <[EMAIL PROTECTED]> wrote: > Would you like me to add something like this to the wiki? > > // The interface... > public interface IBeforeF

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
On Tue, Apr 29, 2008 at 10:24 AM, John Patterson <[EMAIL PROTECTED]> wrote: > > This approach breaks a components encapsulation because the listener must be > installed in the application. Even if IInitializers can be used to do this > once it ads an extra complication to creating reusable comp

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
On Tue, Apr 29, 2008 at 3:59 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > First i dont want a boolen in the components that onFirstRender() is called. > I want a boolean that it is not called. So in the constructor of > component we set the flag and clear it when first rendered. > Are we thi

wicket-spring-annot 1.4-m1?

2008-04-30 Thread James Carman
Is this gone now that 1.4 is JDK5+? Is this stuff just bundled in with wicket-spring? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: wicket-spring-annot 1.4-m1?

2008-04-30 Thread James Carman
ok, thanks. That makes sense. On Wed, Apr 30, 2008 at 10:32 AM, Leszek Gawron <[EMAIL PROTECTED]> wrote: > James Carman wrote: > > > Is this gone now that 1.4 is JDK5+? Is this stuff just bundled in > > with wicket-spring? > > > > yes > > -- >

Re: Difficulty getting QuickStart

2008-05-01 Thread James Carman
Are you behind a firewall of some sort? Or, perhaps an HTTP proxy server? On Thu, May 1, 2008 at 4:51 PM, Frank Silbermann <[EMAIL PROTECTED]> wrote: > I wrote in earlier about a problem I had in less-old releases of Wicket > 1.2. Since no more work is being done on that version, I thought I'd

Re: Testing with IModel mocks

2008-05-02 Thread James Carman
I don't usually mock the actual models. If I'm using a LoadableDetachableModel, I'll mock the DAO or "repository" that the model is using to find its data, but I never actually mock the model itself. On Fri, May 2, 2008 at 5:30 AM, Per Newgro <[EMAIL PROTECTED]> wrote: > Hi *, > > i try to test

Re: Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread James Carman
Can you just mark it as required? On Fri, May 2, 2008 at 2:15 AM, Matthew Young <[EMAIL PROTECTED]> wrote: > Instead of submit, pop up a dialog telling the user to choose a file to > upload? As is now, the UploadProgressBar show up, form submit , > getFileUpload returns null and error handling

Re: Difficulty getting QuickStart

2008-05-02 Thread James Carman
Frank Silbermann <[EMAIL PROTECTED]> wrote: > Of course I am. Who isn't, these days? /Frank > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of James Carman > Sent: Thursday, May 01, 2008 4:16 PM > To: u

[PROPOSAL] FragmentColumn...

2008-05-03 Thread James Carman
I came up with the following class that I find very useful in our application: public abstract class FragmentColumn extends AbstractColumn { private static final long serialVersionUID = 1L; protected FragmentColumn( IModel displayModel ) { super(displayModel); } prote

Re: How to avoid Lazy loading exception

2008-05-05 Thread James Carman
On Mon, May 5, 2008 at 9:58 AM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > I will check out the Object that was posted thanks! > > Yes I put the opensessioninview filter before. > > I think the problem is this. > > Lets say I list all of my items in one page. > > Name, Descrip

Re: I give, anyone have a simplified (standalone) Acegi example

2008-05-05 Thread James Carman
We use Acegi/Wicket in our current project at work. The main thing you need to worry about is the session implementation. Here's a snippet from ours: private AuthenticationManager getAuthenticationManager() { return (( MyWebApplication ) getApplication()).getAuthenticationManager

Re: I give, anyone have a simplified (standalone) Acegi example

2008-05-05 Thread James Carman
Of course, that means your WebSession class must extend AuthenticatedWebSession. On Mon, May 5, 2008 at 10:49 AM, James Carman <[EMAIL PROTECTED]> wrote: > We use Acegi/Wicket in our current project at work. The main thing > you need to worry about is the session implementatio

Grid/Table Component and rowspans...

2008-05-05 Thread James Carman
Does anyone have a grid/table component that allows you to have one cell span multiple rows? Also, I would prefer it to be stateless if possible. I don't need sorting and paging. - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-06 Thread James Carman
wicketstuff-automount? On Tue, May 6, 2008 at 3:51 PM, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: > Doug Donohoe wrote: > > > I am pleased to announce the 1.0 release of wicketstuff-annotation. > > > > > > Nice. But the name 'wicketstuff-annotation' does not say anything about > what it does,

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-06 Thread James Carman
Yes, but should we globalize the "annotations" namespace to mean that anyone who wants to do anything with annotations should put it inside this project? Perhaps keeping things smaller is a better idea. That way, if I want to use automount, but I don't want all of the other annotation-based goodi

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-06 Thread James Carman
on comes along that requires hibernate jars to be on the > classpath, that definitely should be it's own project. otherwise, it makes > sense to lump all annotations together. > > On Tue, May 6, 2008 at 2:59 PM, James Carman <[EMAIL PROTECTED]> > wrote: > > > &

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-06 Thread James Carman
On Tue, May 6, 2008 at 5:42 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Tue, May 6, 2008 at 2:24 PM, Hoover, William <[EMAIL PROTECTED]> wrote: > > Would it be better if there were a core wicket-annotation project that > > provides the basics (such as the scanner) and another project cal

Re: getParameters problem

2008-05-06 Thread James Carman
Have you tried using the other constructor for RestartResponsAtInterceptPageException (the one that takes a page instance)? On Tue, May 6, 2008 at 8:44 PM, Fernando Wermus <[EMAIL PROTECTED]> wrote: > Hi, > I've used the authentication and authorization examples and I need to > add some easy

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread James Carman
I did something like this for Hibernate back in the day. I wrote an APT processor that checked for all classes annotated with @Entity and added those to a hibernate.cfg.xml file. On Wed, May 7, 2008 at 3:20 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > if the scanning of the classpath is expen

Re: Difficulty getting QuickStart

2008-05-07 Thread James Carman
Maven comes with an Eclipse "plugin" that allows you to generate eclipse project files based on the pom.xml file of your project. In the eclipse project files, they refer to an M2_REPO (the Maven2 Repository) directory as a classpath variable. You have to make sure your Eclipse instance is config

Re: Label to Uppercase

2008-05-07 Thread James Carman
When we finally get commons-functor generified, I'm going to create an IModel implementation that takes a UnaryFunction and wraps another IModel. This would probably be a read-only model, though (unless you supply the UnaryFunction's inverse also I guess). This would be reusable so that you can s

Re: Wicket 1.4 faster in development

2008-05-07 Thread James Carman
On Wed, May 7, 2008 at 5:54 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote: > > I don't know if this is intentional or not, but pages seem to load much > faster in development mode in Wicket 1.4-m1. > Did you get a new computer since 1.3.x? ;) ---

Re: Detached models

2008-05-08 Thread James Carman
Why do you need it "detached all the way"? On Thu, May 8, 2008 at 4:56 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > I have some questions on detached models for Wicket > > Let's say I create a detached model like this > > IModel detachedModel = new LoadableDetachableModel(){ > protecte

Re: Detached models

2008-05-08 Thread James Carman
I typically don't like to have my UI code directly interact with the ORM implementation (hibernate in this case). For my applications, I pass a Repository (think DAO) object and the object's id into the LoadableDetachableModel. On Thu, May 8, 2008 at 6:33 PM, Igor Vaynberg <[EMAIL PROTECTED]> wro

Re: Detached models

2008-05-08 Thread James Carman
t; thats just me :) > > -igor > > > On Thu, May 8, 2008 at 5:14 PM, James Carman <[EMAIL PROTECTED]> wrote: >> I typically don't like to have my UI code directly interact with the >> ORM implementation (hibernate in this case). For my applications, I

Re: wicket-extensions javadoc

2008-05-09 Thread James Carman
Yes, but that URL isn't obvious. Is there a link on the main site anywhere to that Javadoc? I couldn't find it. I always have to hand-type it (or bookmark it of course :) On Fri, May 9, 2008 at 7:03 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > http://wicket.apache.org/docs/wicket-1.3.2/wic

Re: wicket-extensions javadoc

2008-05-09 Thread James Carman
On Fri, May 9, 2008 at 7:54 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > It is under the section labeled Documentation called JavaDocs ;) > Those Javadocs don't contain the wicket-extensions classes. That's only the Javadoc for the "core" Wicket stuff. > Incidentally should it not point to 1

Re: Why Localizer Retained so many heapsize?

2008-05-12 Thread James Carman
On Mon, May 12, 2008 at 8:42 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > hi martijn, > > > > > md5sum for the concatenated string? Though the calculation may be > > costly and there could be false cache hits. > > > > looking at the length of the strings and their composition... i doubt that >

Re: Javascript adding input

2008-05-12 Thread James Carman
Have you looked at the Recaptcha Java plugin? It might give you an example of how to create a Recaptcha component. I'm actually thinking about playing around with this myself. Recaptcha seems pretty cool. I'll let you know if I come up with anything. On Mon, May 12, 2008 at 1:57 PM, Dan Kaplan

Re: Javascript adding input

2008-05-12 Thread James Carman
On Mon, May 12, 2008 at 8:39 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > I do use that. This has nothing to do with ReCaptcha, this is a "How do > I do x in Wicket" question that someone asked, "Why would you want to do > that?" so I used ReCaptcha as an answer. Ok, gotcha. So, we're not talking

Re: Url resolve...

2008-05-13 Thread James Carman
Have you tried surrounding that stylesheet link with a ? On Tue, May 13, 2008 at 4:25 AM, danielepiras <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm developing an application that run on www.myserver.com/myapplication/ > In my Index.html page, I include a css: > > > The problem is that wicket t

Re: JPA suggestions?

2008-05-13 Thread James Carman
Have you looked into using Spring's JPA support? On Tue, May 13, 2008 at 11:29 AM, David Nedrow <[EMAIL PROTECTED]> wrote: > I have a data "driver" package built around JPA and an Entity Manager > Factory (javax.persistence.EntityManagerFactory). This is currently used by > a couple of standalone

Re: Scheduler in wicket

2008-05-15 Thread James Carman
On Thu, May 15, 2008 at 6:04 AM, Wouter Huijnink <[EMAIL PROTECTED]> wrote: > >> I am planning to use quartz, but before starting to integrate it in my >> wicket's app i would like to know if anybody have used it or another >> scheduler with >> wicket. >> > > we used Quartz, works like a charm. I w

Re: Account Activation Email generation and response processing: any design example?

2008-05-15 Thread James Carman
java.util.UUID.randomUUID().toString() On Thu, May 15, 2008 at 6:57 PM, Matthew Young <[EMAIL PROTECTED]> wrote: > I need to implement the usual account activation via email function. Can > anyone point me to some example of how this is implemented? If in Wicket > even better but anything would h

Re: Select a directory in a textfield

2008-05-16 Thread James Carman
A directory where? On the client machine? What will you do with that directory when you've selected it? On Fri, May 16, 2008 at 6:55 PM, Oncle Zebulon <[EMAIL PROTECTED]> wrote: > > Hi everybody, > I am a newbie with wicket and i would like to know if there is a way to > select a directory in a

Re: Page pooling (for stateless pages)

2008-05-18 Thread James Carman
If you were to add in pooling, you'd have to either provide a new hook (new lifecycle method) or a warning to the user (as you mentioned) that they have to rollback the state themselves after rendering using onAfterRender() or something. On Sun, May 18, 2008 at 8:23 AM, Martijn Dashorst <[EMAIL PR

Re: @SpringBean annotation

2008-05-18 Thread James Carman
@SpringBean only works on Components, since it uses a ComponentInstantiationListener. On Sun, May 18, 2008 at 8:54 AM, Stephan Koch <[EMAIL PROTECTED]> wrote: > Hi all, > > I try to use the @SpringBean annotation in a class derived from > LoadableDetachableModel. For whatever reason, the bean is n

Re: @SpringBean annotation

2008-05-18 Thread James Carman
And, this injection stuff could be yet another aspect that would be in wicket-aspects! It would be annotation-based, of course. On Sun, May 18, 2008 at 9:07 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > On 5/18/08, Stephan Koch <[EMAIL PROTECTED]> wrote: >> I have to admit that I don't know

Re: Thread safety for components

2008-05-18 Thread James Carman
It may even re-use the actual session object instance for another person's session (by filling it with their stuff). On Sun, May 18, 2008 at 9:12 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > Accessing pages in other threads then the request thread is very bad idea. > Because http session objec

Re: @SpringBean annotation

2008-05-18 Thread James Carman
Martin did all the help. I just pointed out why it doesn't work! :) On Sun, May 18, 2008 at 9:34 AM, Stephan Koch <[EMAIL PROTECTED]> wrote: > martijn, james: thanks for the help! > > works like a charm now... > > -stephan > > > Martijn Dashorst wrote: >> >> On 5/18/08, Stephan Koch <[EMAIL PROT

Re: Page pooling (for stateless pages)

2008-05-18 Thread James Carman
On Sun, May 18, 2008 at 9:47 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > do you have a benchmark that shows that pooling is indeed faster? > > servlets are pooled because they may require heavy initialization. > wicket pages are much more lightweight in comparison. And, the more heavyweight you

Re: Select a directory in a textfield

2008-05-18 Thread James Carman
So, what do you plan to do with that directory once you collect it? On Sun, May 18, 2008 at 9:28 AM, Oncle Zebulon <[EMAIL PROTECTED]> wrote: > > Hi, > On a form, i have a field that represents a directory (c:\mydirectory for > example) and then store the information. It's a local directory. > > >

Re: Page pooling (for stateless pages)

2008-05-18 Thread James Carman
stateless != static, though If you cache the results of a stateless page, you could show stale information from the database, correct? On Mon, May 19, 2008 at 1:18 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hello, > > I think it would probably make more sense to cache the /result/ of statel

Re: Account Activation Email generation and response processing: any design example?

2008-05-18 Thread James Carman
Make sure you use some "salt", though. On Mon, May 19, 2008 at 1:40 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > If you use hash you do not need to store the "random" part into the > db. Saves you some persistence trouble. > > 2008/5/19 Michael Allan <[EMAIL PROTECTED]>: >> Sam Stainsby wrote:

[JUG] Advanced Wicket - Cincinnati, OH (tonight)

2008-05-19 Thread James Carman
ally have pizza)! James Carman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: .properties files question

2008-05-19 Thread James Carman
Have a look at the java.util.ResourceBundle class (which is essentially what Wicket uses). On Mon, May 19, 2008 at 9:52 AM, Blackbird <[EMAIL PROTECTED]> wrote: > > My question isn't about i18n. > Wicket has its own very nice system of properties (MyApplication.properties, > MyWebPage.properties)

Re: [JUG] Advanced Wicket - Cincinnati, OH (tonight)

2008-05-19 Thread James Carman
nnati, OH area, I'm giving an "Advanced >> Wicket" talk tonight at our Cincinnati Java Users Group >> (www.cinjug.org) meeting tonight. Meeting information (when, where, >> etc.) is on our website. Hope to see you there (membership is free >> and we usually have pizza)! >

Re: Problem with Wicket and MySQL

2008-05-19 Thread James Carman
On Mon, May 19, 2008 at 9:03 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > Okay, I'm not sure how you've set up the project, but I remember that > you sometimes had to copy the JDBC driver into the tomcat lib directory. > Haven't touched tomcat in a while, but there are project specific libs > an

Re: [JUG] Advanced Wicket - Cincinnati, OH (tonight)

2008-05-20 Thread James Carman
One company here in Cincinnati is currently evaluating web technologies and they had someone there last night. On Tue, May 20, 2008 at 4:31 AM, Frank Bille <[EMAIL PROTECTED]> wrote: > On Mon, May 19, 2008 at 6:48 PM, James Carman > <[EMAIL PROTECTED]> wrote: >> I'll a

Re: Html mail representation

2008-05-20 Thread James Carman
How are you spitting out the contents of the mail? Are you using a stream of some sort? Are you forgetting to flush/close the stream? On Tue, May 20, 2008 at 6:45 AM, Davidoff <[EMAIL PROTECTED]> wrote: > > wonderful...the problem now is that some mail do not render completely...i > don't see an

Re: Contribution for Wicket

2008-05-20 Thread James Carman
Yes, I was thinking of this yesterday. I'd love to have a big orange t-shirt with the Wicket logo on it! :) On Tue, May 20, 2008 at 4:23 AM, Gwyn Evans <[EMAIL PROTECTED]> wrote: > Well, the 'official' Apache line is at > http://www.apache.org/foundation/contributing.html - the Apache Swag! > at

[PROPOSAL] wicketstuff SVN reorganization...

2008-05-20 Thread James Carman
All, I was looking at the structure of the wicketstuff.org SVN repository today and I came up with an idea. Currently, the wicket-persistence-template project is located at: http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicket-persistence-template/ So, all subprojects sort of hang o

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-20 Thread James Carman
ase with > our new teamcity), so maintenance on each project would in most cases > require ensuring api compatibility. > > Martijn > > On Tue, May 20, 2008 at 2:59 PM, James Carman > <[EMAIL PROTECTED]> wrote: >> All, >> >> I was looking at the structure of the w

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-20 Thread James Carman
gher release schedule is also nice, but lower seems to indicate a > bit of a dead end imo. > > Martijn > > On Tue, May 20, 2008 at 3:13 PM, James Carman > <[EMAIL PROTECTED]> wrote: >> So, is the philosophy of wicket-stuff that all of the projects kind of >> mirror

Re: Panel's LoadableDetachableModel not being loaded

2008-05-20 Thread James Carman
Does the panel ever use its model? Do you have any subcomponents that try to access their parent's (the panel's model)? On Tue, May 20, 2008 at 11:19 AM, msmall <[EMAIL PROTECTED]> wrote: > > I have a panel that has a LoadableDetachableModel as its model (i.e. I'm > calling this.setModel(new Load

Re: Panel's LoadableDetachableModel not being loaded

2008-05-20 Thread James Carman
If it doesn't need the object (nothing's using it), then why would it call load()? On Tue, May 20, 2008 at 11:24 AM, msmall <[EMAIL PROTECTED]> wrote: > > No, I'm just wiring up the panel so it does not have any subcomponents yet. > Regardless, I'm confused as to why Panel, as a Component, would n

Re: Panel's LoadableDetachableModel not being loaded

2008-05-20 Thread James Carman
Do you *need* it to load? On Tue, May 20, 2008 at 11:45 AM, msmall <[EMAIL PROTECTED]> wrote: > > And thanks for the help. > > > jwcarman wrote: >> >> If it doesn't need the object (nothing's using it), then why would it >> call load()? >> >> On Tue, May 20, 2008 at 11:24 AM, msmall <[EMAIL PROTEC

Re: Panel's LoadableDetachableModel not being loaded

2008-05-20 Thread James Carman
I think maybe you're using models incorrectly, then. If you need the model object, call panel.getModelObject() and that will, in turn, call the load() method. On Tue, May 20, 2008 at 11:55 AM, msmall <[EMAIL PROTECTED]> wrote: > > Yes. I'm just invoking the load method directly in my overriding

Re: Forum?

2008-05-20 Thread James Carman
If you are creating a "product", why do you need to be able to plugin a different IoC container (Guice vs. Spring for example)? Do you think a site admin will honestly care which container you use (or ORM API for that matter)? 2008/5/20 Uwe Schäfer <[EMAIL PROTECTED]>: > hi > > i remember someone

Re: Forum?

2008-05-20 Thread James Carman
gt;> Fortran or Algol 68 as well :-) >> >> Am 20.05.2008 um 22:15 schrieb James Carman: >> >> >> If you are creating a "product", why do you need to be able to plugin >>> a different IoC container (Guice vs. Spring for example)? Do you >>

  1   2   3   4   5   6   7   8   9   10   >