1.5 Printing Markup

2011-12-05 Thread Ben Tilford
Has something changed where WicketTester.getResponse().getDocument() no longer contains the generated markup? I'm getting empty strings for any component started through the tester. Stepping through with the debugger it does resolve the associated markup correctly it just never gets added to the

Re: Scala DSL for Wicket

2011-07-29 Thread Ben Tilford
For LDM class Ldm[T](provider:()= T) extends LoadableDetachable... { def load():T { provider() } } object Ldm { def apply(provider:()=T) = new Ldm[T](provider) } could be used as ... val id = 1 val model = Ldm(()={dao.get(id)}) or val id = 1 def provider = dao.get(id) val model =

Re: What does this syntax say?

2011-07-28 Thread Ben Tilford
Without a Class argument how is it returning/casting correctly? Shouldn't it be public W IWrapModelW wrapOnInheritance(Component component,ClassW type) to make W available within the method? On Thu, Jul 28, 2011 at 12:40 PM, Dan Retzlaff dretzl...@gmail.com wrote: The first W let's the

Re: What does this syntax say?

2011-07-28 Thread Ben Tilford
, Ben Tilford b...@tilford.info wrote: Without a Class argument how is it returning/casting correctly? Shouldn't it be public W IWrapModelW wrapOnInheritance(Component component,ClassW type) to make W available within the method? On Thu, Jul 28, 2011 at 12:40 PM, Dan Retzlaff

Re: Scala DSL for Wicket

2011-07-27 Thread Ben Tilford
I started on something sililar about a month ago. Havnt had time to work on it for a few weeks but maybe it would be usable by someone. https://github.com/btilford/wicketstuff-core/branches/scala-wicket-builder There's also a groovy builder if you browse my other repos. sent from mobile On Jul

Re: RFC: Ten things every Wicket programmer must know?

2011-07-27 Thread Ben Tilford
1. How static resources work. For a newcomer this can be shocking/frustrating. 2. Models are a context that holds a reference to a model. On Wed, Jul 27, 2011 at 5:21 PM, Scott Swank scott.sw...@gmail.com wrote: Jeremy, I just threw together the following, which indicates that at least to

Re: actually what i feel is it will be better when

2011-04-03 Thread Ben Tilford
Some things will be better but some things won't. Java and Javscript don't have a whole lot in common. On Sat, Apr 2, 2011 at 11:31 PM, hariharansrc hariharan...@gmail.comwrote: we use gwt we can code in java instead of js and then we can use the generated js in wicket. This only i thought.

Re: Wicket pages created by guice

2011-02-22 Thread Ben Tilford
Some things you may look at IComponentInitalizationListener -- http://wicket.apache.org/apidocs/1.4/org/apache/wicket/application/IComponentInitializationListener.html IComponentInstantiationListener --

Re: Wicket 1.5 and GAE

2010-10-27 Thread Ben Tilford
Has the extension point for setting your page store changed? I believe newSessionStore() has been removed in 1.5 In wicket 1.4 this is what was needed in you Application @Override protected void init() { super.init(); //remove thread monitoring from

Re: instantiate panels in a spring bean

2010-10-03 Thread Ben Tilford
What are you using to build the project? If your doing stub generation (mixed java groovy project) see if the stubs look right. There are a few bugs in the stub generator when dealing with inner classes but it shouldn't have compiled in that case. On 10/2/10, fachhoch fachh...@gmail.com wrote:

Re: instantiate panels in a spring bean

2010-10-02 Thread Ben Tilford
This might interest you http://kenai.com/projects/joint/pages/WicketExample Its using the netbeans lookup api instead of spring to build a menu based on what components are available on the classpath. On Oct 2, 2010 12:32 AM, James Carman ja...@carmanconsulting.com wrote: So, why would you use

Re: Wicket on Google App Engine support for IPageStore on BigTable

2010-10-02 Thread Ben Tilford
Nice Have you tried this with wicket 1.5? On Fri, Oct 1, 2010 at 7:22 AM, Bruno Borges bruno.bor...@gmail.com wrote: Like I've tweeted a few days ago, I've implemented a BigTableGAEPageStore for Wicket so we can advance another step further full compatibility with Google App Engine. The

Re: instantiate panels in a spring bean

2010-10-02 Thread Ben Tilford
I think its just that the subclasses need to call super() or super(wicketId). On Sat, Oct 2, 2010 at 9:07 PM, fachhoch fachh...@gmail.com wrote: here is my code class UserMenuItems implements MenuItems { @Resource(name=manualService) private ManualService manualService;

Re: Within the wicket lifecyle, what is the best place to add a call on the page request

2010-09-02 Thread Ben Tilford
If your using wicket 1.4.10 you may want to look at the new onConfigure method that was added. On Thu, Sep 2, 2010 at 3:38 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Where is the best place to add logic to get invoked always when the page is requested? The logic may or

Re: Scripting language

2010-09-01 Thread Ben Tilford
It depends how much time you want to take to learn the language. With Groovy you don't have to know anything but Java to start with and can learn more about the language as needed or interested. Scala is nothing like Java or any other language. The issues Groovy had with inner classes almost all

Re: Single inheritence in parts

2010-07-08 Thread Ben Tilford
class Page extends Page { abstract Component getPart1(); abstract Component getPart2(); } html div wicket:id=id4part1 / wicket:child / div wicket:id=id4part2 / On Thu, Jul 8, 2010 at 5:49 AM, Chris Colman chr...@stepaheadsoftware.comwrote: Search the list for this and you'll find

Re: Single inheritence in parts

2010-07-08 Thread Ben Tilford
Use a pre render listener to call your render method. The constructor stuff is pretty bad though. If you have the listener look for the @PostConstruct annotation it even looks like its supposed to work that way. imo if multiple markup section inheritance were implemented you would really limit how

Re: ResourceStreamLocator and mvn resource:resource copying resources in the right directory

2010-06-17 Thread Ben Tilford
If you haven't customized the resource locator your telling wicket to look sibling directory to your classpath root WEB-INF/classes which I THINK is where wicket will start looking for resources. It may be easier to use the build helper plugin which handles resources much better than maven does

Re: Wicket-Spring 1.4.8 runs into exception in unit test

2010-05-04 Thread Ben Tilford
Did you upgrade to spring 3? I ran into an issue with the testng spring test not creating the application context before wicket tester tried to use it (iirc @BeforeTest executed before the super classes @BeforeClass) Ended up switching anything annotated with @BeforeTest to @BeforeMethod. I

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-27 Thread Ben Tilford
You can use Spring security with wicket auth-roles, I works out pretty nice compared to the alternatives. iirc You need do your normal Spring setup, extend AuthenticatedWicketApplication, and AuthenticatedSession which has an authenticate method you'll call your UserDetails bean from. Outdated

Re: Repeating form on a page

2010-04-16 Thread Ben Tilford
Would a FormComponentPanel work? http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/FormComponentPanel.html On Fri, Apr 16, 2010 at 4:48 PM, David Hamilton dhamil...@hermitagelighting.com wrote: Thanks for the great response! I will look at RefreshingView, but right now I'm

Re: Type Inference for Wicket 1.4

2010-04-16 Thread Ben Tilford
What happened to the groovy wicket builder project? I know it was on hold until anonymous inner classes were going to be supported which were added in groovy 1.7 irrc. On Fri, Apr 16, 2010 at 7:58 AM, Erdinc kocam...@yahoo.com wrote: Or use wicket as I explained on this page :)

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-11 Thread Ben Tilford
If you find anything useful heres some stuff I have put together https://docs.google.com/leaf?id=0ByQjVcAVDuP9MWE4NDcxODMtODZlOC00Mzk0LThhOTUtYmI2MmNlYzEwNWFihl=en I'd upload it somewhere else but it looks like there are already like 4 different projects for this. 2010/4/10 Uwe Schäfer

Re: jqery not getting called after ajax refresh

2010-04-09 Thread Ben Tilford
Try function setup() { $(a.showHidePrograms).click( function () { var $div= $(this).parent().next(div); if($div.attr(class) == 'hide'){ $div.attr(class,show); }else{ $div.attr(class,hide); } } ); } $(document).ready(function(){ setup();

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-05 Thread Ben Tilford
So far this is what I've got. Doesn't do anything with groups or the more advanced stuff but this may be all it takes. public class BeanComponentValidatorT extends AbstractValidatorT { public BeanComponentValidator() { super(); } @Override protected void

Component Instantiation Listener Problem

2010-03-08 Thread Ben Tilford
I ran into an issue with a Component Instantiation Listener because the listener is notified before setModelImpl is called. Is this the intended behavior? It limits what you can do in your listener quite a bit.

Re: Component Instantiation Listener Problem

2010-03-08 Thread Ben Tilford
that are called in onbeforerender of components where you can mock with the actual component instance, not just the class. -igor On Mon, Mar 8, 2010 at 8:36 AM, Ben Tilford bentilf...@gmail.com wrote: I ran into an issue with a Component Instantiation Listener because the listener is notified

Re: [OT] Wicket changed my life !

2010-02-19 Thread Ben Tilford
Models are the hardest part to learn... Because they are really models. On Sat, Feb 20, 2010 at 12:05 AM, Eelco Hillenius eelco.hillen...@gmail.com wrote: Thanks for the kind words people. Definitively a key part of Wicket's success has been an enthusiastic community. The learning curve

Re: Future of Wicket Security (WASP/SWARM)

2010-01-22 Thread Ben Tilford
Assuming adopting it into Apache Wicket would mean being in the wicket jar instead of an optional jar. [ ] adopt Wicket security into Apache Wicket [x] keep Wicket security at Wicket Stuff On Fri, Jan 22, 2010 at 11:00 AM, Les Hazlewood lhazlew...@apache.orgwrote: [ ] adopt Wicket security

Re: OSGi Wicket

2009-11-02 Thread Ben Tilford
You might want to check out http://kenai.com/projects/joint the wicket example builds a menu system based of pages / links that are on the classpath which implement a Navigatable interface and have the @Navigation annotation. Still very early in development but it still might do what you need.

Re: OSGi Wicket

2009-11-02 Thread Ben Tilford
Forgot to mention, the Netbeans Lookup would also be an option. On Mon, Nov 2, 2009 at 10:45 AM, Ben Tilford bentilf...@gmail.com wrote: You might want to check out http://kenai.com/projects/joint the wicket example builds a menu system based of pages / links that are on the classpath which

Re: Wicket Maven in Netbean 6.7

2009-10-28 Thread Ben Tilford
Netbeans has maven built in but it will use an external installation if you tell it to. It sounds like you have it configured to use an external maven installation but don't have maven installed. In Netbeans go to ToolsOptionsMiscMaven and see if you have set it up to use an external maven Then

Working on a Plugin Framework (Joint)

2009-10-25 Thread Ben Tilford
*A little info: *The framework is using the Netbeans Lookup api to discover joint implementations which are exported services using the standard META-INF/services/xyz.Abc in addition there are annotations used to configure how/where the plugin will be used. Example would be a wicket page, You can

Modular Application

2009-10-13 Thread Ben Tilford
Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine.

Re: Modular Application

2009-10-13 Thread Ben Tilford
13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel

Re: Modular Application

2009-10-13 Thread Ben Tilford
and have your other modules use that. Then, your web module declares all of them as dependencies. That's what we do. On Tue, Oct 13, 2009 at 3:36 PM, Ben Tilford bentilf...@gmail.com wrote: Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId

Re: Modular Application

2009-10-13 Thread Ben Tilford
pedros...@gmail.com wrote: Isn't it the case for you manually run mvn install on your parent project? Your local repository may have old .class bytecodes On Tue, Oct 13, 2009 at 5:11 PM, Ben Tilford bentilf...@gmail.com wrote: No base page is in a common module (probably will be used

Re: Perspective from fellow Wicketers on ColdFusion job oppty.

2009-10-07 Thread Ben Tilford
It only gets worse the longer you work with ColdFusion. Where I work were finally working towards abandoning it completely. Some paint points: * No null value, you get a bunch of methods to check various types of objects to see if they are undefined * You can only specify return types of the core

Re: Firefox, be afraid be very afraid!!!

2009-08-04 Thread Ben Tilford
It's not Wicket or Firefox its the caching settings (probably on the server). If the cached resources aren't expired the browser is supposed to use what it has cached. Best to set the far future expires to something really short or 0 in development. On Tue, Aug 4, 2009 at 10:17 PM, Jeremy

Re: best or common practice for application plug-ins

2009-07-20 Thread Ben Tilford
I think maven 3 is supposed to allow using OSGi bundles for versioning etc.. On Mon, Jul 20, 2009 at 8:12 AM, Sam Stainsby s...@sustainablesoftware.com.au wrote: Thanks Olger, that gives me some ideas. I wonder if a maven could somehow be coerced to do the dependency/downloading part, perhaps

Re: [OFF TOPIC] Java desktop applications

2009-06-11 Thread Ben Tilford
Take a look at Griffon On Thu, Jun 11, 2009 at 8:18 PM, James Carman jcar...@carmanconsulting.comwrote: Jide is very nice, if you want to pay for something. Their licenses are very reasonable. On Thu, Jun 11, 2009 at 5:54 PM, Jeremy Thomersonjer...@wickettraining.com wrote: I would like

Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-30 Thread Ben Tilford
Something that may be worth trying is mvn jetty:run-exploded On Fri, May 29, 2009 at 6:10 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: like i said, the best way is to right click the Start class and do run as java application. you can, of course, do it any other way you like - including

Re: 60% waste

2009-05-09 Thread Ben Tilford
Have you looked at selenium? Your not really unit testing here. On Sat, May 9, 2009 at 7:41 AM, Marko Sibakov marko.siba...@ri.fi wrote: Like Martijn said i also strongly recommend to take a look at the jdave-wicket's selectors (http://www.jdave.org/). examples =

Re: serialVersionUID

2009-04-12 Thread Ben Tilford
I've always seen it done as public. Anyways I checked the javadoc and the access modifier does not matter. On Sun, Apr 12, 2009 at 1:56 AM, Eelco Hillenius eelco.hillen...@gmail.comwrote: The purpose of the *public* static final long serialVersionUID is for long Why do you stress *public*?

Re: serialVersionUID

2009-04-11 Thread Ben Tilford
The purpose of the *public* static final long serialVersionUID is for long term storage or situations where you may potentially have made modifications to the class that make it incompatible with previous versions (distributed apps/clustering). I'd say that its easier to just add it in case you

Re: GWT vs. Wicket?

2009-04-08 Thread Ben Tilford
Working with GWT is kind of a nightmare. You have to write custom build scripts for any library / module you use so that the sources are included in the jar and available to the GWT compiler. Until GWT has a build system that is better I'll stay away from it. Really a shame because the programming

Re: GWT vs. Wicket?

2009-04-08 Thread Ben Tilford
There was a grails-wicket plugin but I don't think it works with any recent version. They are also working on making grails more modular with standalone GORM etc... Also heard somewhere that Groovy 1.7 or 1.8 will allow anonymous inner classes. On Wed, Apr 8, 2009 at 8:53 PM, Andre Prasetya