Re: question about swarm

2009-12-31 Thread sam
some looking at the source code. Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier Date: Thu, 31 Dec 2009 22:35:22 To: Subject: Re: question about swarm Hi Sam & Jeremy, Together with the remark that Jeremy made - I agree, it is quite fragile - I had a lo

Re: question about swarm

2009-12-31 Thread sam
Wow that was quick. Thanks a lot I really appreciate it Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier Date: Thu, 31 Dec 2009 23:31:34 To: Subject: Re: question about swarm Hi Sam, Found the way to solve it. It is fixed in the trunk. Still need to fix the

Re: Generics

2010-01-25 Thread sam
l { public WrapperModel (IModel wrappedModel) { this.wrappedModel = wrappedModel; } public Object getObject() { return new ArrayList(wrappedModel.getObject()); } } then you can create an list view like: new ListView("id", new PropertyModel(bean, "listPropertyFromThatBean")) On Mon,

Re: [OT] Wicket App Hosting

2010-02-24 Thread sam
Linode. Best vps provider I've ever had by far, never had any problems at all. Very good prices too. --Original Message-- From: Mauro Ciancio To: Wicket Mailing List ReplyTo: users@wicket.apache.org Subject: [OT] Wicket App Hosting Sent: Feb 24, 2010 7:50 PM Hello everyone, I need to d

Re: A few Wicket Questions

2008-04-09 Thread Sam Stainsby
On Tue, 08 Apr 2008 17:29:16 -0700, Michael Mehrle wrote: > In general, Wicket does a great job of giving your trace output of your > template when something goes awry, including the component inheritance > and suggestions as to what could be wrong. And for that I am *very* thankful. I've only ju

Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Sam Hough
ngle root element my output would be: <ul>Must only have a single root element I've almost got this behaviour by using setRenderBodyOnly(true); but then I loose the id I need for Ajax partial updates. Any thoughts? Thanks Sam -- View this message in context: http://www.nabble.co

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Sam Hough
wicket:id... Starting to think I'm flogging a dead hourse but I'd still like to keep the encapsulation of saying what HTML should be rendered inside the child component while avoiding the cruft element. Perhaps I'll just have to tell the HTML monkey not to complain about the extra spans and di

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Sam Hough
Panel { > > > @Override void onComponentTag(Tag tag) { > super.onComponentTag(tag); > tag.setName("ul"); > } > } > > On 4/25/08, Sam Hough <[EMAIL PROTECTED]> wrote: >> >> Is there a nice way to make a comp

Re: Panel that replaces surrogate element rather than contained within it

2008-04-28 Thread Sam Hough
is really nice. Think that is what I'm after for the behaviour of Panel. Cheers Sam Martijn Dashorst wrote: > > yes it is called setRenderBodyOnly(true). > > you could also tell your monkey (sic) to use wicket:container for > those panel elements and you then have to

RequiredBorder being applied multiple times in ajax calls

2008-05-14 Thread Sam Barnum
n- ajax actions? It seems like this is one of many issues I've run into when doing this. Thanks, -Sam Barnum

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-15 Thread Sam Barnum
x27;t use the border, manually add a required indicator next to every required field in my application. Not looking forward to this one... Option #2 sounds the most promising, but I don't know where to begin. -Sam On May 14, 2008, at 11:38 PM, Gerolf Seitz wrote: Sam, a simi

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-15 Thread Sam Barnum
e extension * Count the number of digits in the phone number part. Make sure there are 10, then format it as (###) ###- ext. ### -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On May 14, 2008, at 11:06 PM, Matthew Young wrote: Sorry I can't help you with your quest

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-16 Thread Sam Barnum
Awesome, that works! I forgot that you can always get the request from that ThreadLocal. Thanks a ton Gerolf, this doesn't seem too hacky. -- Sam Barnum 360 Works On May 15, 2008, at 10:58 AM, Gerolf Seitz wrote: On Thu, May 15, 2008 at 6:25 PM, Sam Barnum <[EMAIL PROTECTED

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

2008-05-16 Thread Sam Stainsby
On Fri, 16 May 2008 21:15:34 +0300, Martin Makundi wrote: > The benefit in digest is that the user (or another user) cannot > fabricate it... so easily. Just send a large random number that is unique on the server. Keep a copy and compare with what the recipient sends back. Simple - no need for

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

2008-05-19 Thread Sam Stainsby
008/5/19 Michael Allan <[EMAIL PROTECTED]>: >> Sam Stainsby wrote: >>> >>> Martin Makundi wrote: >>> > The benefit in digest is that the user (or another user) cannot >>> > fabricate it... so easily. >>> >>>

Re: Melbourne, Australia Wicket group

2008-05-28 Thread Sam Stainsby
Brisbane is better than both :- ) (that's where I live). On Mon, 26 May 2008 18:48:03 -0700, Jonathan Locke wrote: > I liked Sydney a lot, but never been to Melbourne. > > > Eelco Hillenius wrote: >> >>> I'm interested in forming a Melbourne Wicket group, along the lines of >>> http://www.lond

Ajax works in DEVELOPMENT, not in DEPLOYMENT

2008-05-29 Thread Sam Barnum
back panel to come up on the server? -Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ajax works in DEVELOPMENT, not in DEPLOYMENT

2008-05-29 Thread Sam Barnum
I may have been mis-diagnosing the cause of the problem. A total re- build and redeploy of the application seems to have fixed the issue. Sorry about the false alarm :( On May 29, 2008, at 9:10 PM, Sam Barnum wrote: I'm using an AjaxFormChoiceComponentUpdatingBehavior on a RadioGro

Re: Ajax works in DEVELOPMENT, not in DEPLOYMENT

2008-05-29 Thread Sam Barnum
Thanks as always, Igor getDebugSettings().setAjaxDebugModeEnabled(true); -igor -Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: Refreshing a List view

2008-06-05 Thread Sam Barnum
Ricky, what are you using as the model for your refreshing view? You should be using some sort of detachable model that re-fetches the items for the list from the DB each time. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Jun 5, 2008, at 10:32 AM, Ricky wrote: Hi, I

Re: ModalWindow with fallback

2008-07-24 Thread Sam Hough
We have implemented something like that with a wrapper around a Wicket implementation. So you create a PopupPanel object and under the covers it decides if it should use a ModalWindow (or other) or just changes the response page to a new page. The wrapper takes a component that it adds to either o

enclosure error

2009-10-18 Thread Sam Zilverberg
i'm getting the following error: WicketMessage: Could not find child with id: serial in the wicket:enclosure Root cause: org.apache.wicket.WicketRuntimeException: Could not find child with id: serial in the wicket:enclosure at org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(

Re: enclosure error

2009-10-18 Thread Sam Zilverberg
grade to snapshot or downgrade to 1.4.1. > > > Sam Zilverberg wrote: > >> i'm getting the following error: >> >> WicketMessage: Could not find child with id: serial in the >> wicket:enclosure >> >> Root cause: >> >> org.apache.wicket.Wi

wizard step window size / width

2009-10-25 Thread Sam Zilverberg
e the width larger... Thanks, Sam

Re: wizard step window size / width

2009-10-28 Thread Sam Zilverberg
ies to > 100% > ex: > .wicketExtensionsWizardOuterTable{ >width: 100%; > } > .wicketExtensionsWizardInnerTable { >width: 100%; > } > > On Sun, Oct 25, 2009 at 8:53 AM, Sam Zilverberg >wrote: > > > Hello, > > > > I've recently created a

serialization

2009-11-09 Thread Sam Barrow
Hi. Wondering if someone can help me with a serialization problem I'm having. To start off, the domain model in this application does not use serializable domain objects (the project is using db4o, which does not play well with serialized objects). I have a page with this code: IModel valueObject

Re: serialization

2009-11-09 Thread Sam Barrow
lateitem look like? > > -igor > > On Mon, Nov 9, 2009 at 9:50 AM, Sam Barrow wrote: > > Hi. Wondering if someone can help me with a serialization problem I'm > > having. > > To start off, the domain model in this application does not use > > serializabl

Re: serialization

2009-11-09 Thread Sam Barrow
berg wrote: > what does your listview's populateitem look like? > > -igor > > On Mon, Nov 9, 2009 at 9:50 AM, Sam Barrow wrote: > > Hi. Wondering if someone can help me with a serialization problem I'm > > having. > > To start off, the domain model in

Re: serialization

2009-11-09 Thread Sam Barrow
It is. Problem was actually solved by Martijn's response. Thanks alot! On Mon, 2009-11-09 at 21:25 +0100, Michael Mosmann wrote: > Am Montag, den 09.11.2009, 13:07 -0500 schrieb Sam Barrow: > > protected void populateItem(final ListItem item) { > > final Money price = &

another serialization question

2009-11-10 Thread Sam Barrow
One more question about serializing objects. I have a page in the application that I'm working on that calls an application service which returns a collection of objects of a type I'll call ValueObject (not serializable). ValueObject has many subclasses (which are of no concern to my wicket ui, wh

Re: another serialization question

2009-11-10 Thread Sam Barrow
hould be serializable. > > On Tue, Nov 10, 2009 at 10:03 PM, Sam Barrow wrote: > > > > One more question about serializing objects. > > I have a page in the application that I'm working on that calls an > > application service which returns a collection of objec

Re: another serialization question

2009-11-10 Thread Sam Barrow
out a way to copy the attributes back and forth between your value objects and your DTOs? On Tue, Nov 10, 2009 at 10:17 PM, Sam Barrow wrote: > But some the ValueObject classes contain a reference to an entity. > Keep in mind I mean ValueObject in the context of domain driven design, &g

Re: another serialization question

2009-11-10 Thread Sam Barrow
get to the value object you're interested in? If so, then you can try to come up with some property "path" to get you there and use that to refer to the specific value object you're wanting to edit/view. On Tue, Nov 10, 2009 at 11:46 PM, Sam Barrow wrote: > I cannot ma

Re: HTML Editing component

2009-11-11 Thread Sam Barrow
TinyMCE is one of the most popular out there, it has some wicket integration already done http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-tinymce On Wed, 2009-11-11 at 20:02 -0500, Alex Rass wrote: > Hi. > > Hi. > > Did a bit of googling, but didn't find anything good... > >

EntityModel

2009-11-11 Thread Sam Barrow
Does anybody how to pass a smart EntityModel (link below) to another page? We use a different repository for each entity type. I can't get it to work. I have tried storing the repository as a field on the EntityModel and using an abstract method on EntityModel to retrieve it. http://wicketinactio

Re: EntityModel

2009-11-11 Thread Sam Barrow
We have close to a hundred repositories, this wouldn't work. How do you inject the services into the EntityModel anyway? On Thu, 2009-11-12 at 08:34 +0100, Matthias Keller wrote: > Hi Sam > > What exactly do you mean by repository? Do you have to load every entity > from an

Re: EntityModel

2009-11-11 Thread Sam Barrow
Yes that shouldn't be a problem I just need to figure out the injection, how do you do this? I use wicket-spring also. On Thu, 2009-11-12 at 08:53 +0100, Matthias Keller wrote: > Hi Sam > > We use Spring to inject them. > Well, somewhere you'll need that logic what cl

Re: EntityModel

2009-11-12 Thread Sam Barrow
> in your EntityModel constructor. > > That's it. > While developing if you hot-redeploy often, you might also want to do a > check in load() like: > if (this.whateverService == null) > InjectorHolder.getInjector().inject(this); > > Matt > > Sam Barrow wrote: &

Component feedback

2009-12-04 Thread Sam Barrow
Hi. I have a FormComponentPanel called MoneyField with a couple of text boxes inside. Is there any way to make a new MoneyField with a ComponentFeedbackPanel that collects all the feedback from the components inside MoneyField? -

FormComponentPanel

2009-12-04 Thread Sam Barrow
I have a FormComponentPanel called Name with 3 fields. Is there a way to set it up so that by filling out one of the fields, this makes the other ones required? For example if there is an optional Name field on a form it can be completely filled out or completely empty, but i dont want somebody f

TextArea with list of strings.

2009-12-04 Thread Sam Barrow
I am trying to make a TextArea that allows you to input a list of strings (separated by a newline) and turns that list into a Collection. I had it working but it was kind of hacked together, I'm trying to do it the clean way now. I have it working except for two things: If I give it an empty coll

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
eturn value.toString(); } } On Fri, 2009-12-04 at 12:16 -0800, Igor Vaynberg wrote: > you should do convertToObject() call in a try block, catch any > exception and throw a conversionexception > > -igor > > On Fri, Dec 4, 2009 at 11:32 AM, Sam Barrow wrote: > > &g

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
> > -igor > > On Fri, Dec 4, 2009 at 1:08 PM, Sam Barrow wrote: > > That's what I'm doing, but i still get the conversion exception > > > > public final class EmailAddressConverter implements IConverter { > > > >pri

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
; exception will be handled for you > > -igor > > On Fri, Dec 4, 2009 at 1:39 PM, Sam Barrow wrote: > > No I'm getting a ConversionException, I must have made a typo. But for > > the single text field I get a message in the feedback panel. > > > > On Fri

Re: Wicket + Freemarker

2009-12-15 Thread Sam Stainsby
://uniscala.svn.sourceforge.net/viewvc/uniscala/trunk/uniscala-wicket- freemarker/ -- Sam On Tue, 15 Dec 2009 16:42:47 +0100, nino martinez wael wrote: > bahh, googling for 2 secs : > > http://wicketstuff.org/wicket14/velocity/ (although not freemarker) > > http://fisheye3.atlas

Re: Java Wicket Job Opportunity, Finland

2009-12-20 Thread Sam Stainsby
On Sat, 19 Dec 2009 18:12:48 -0800, shetc wrote: > Finland, Finland, Finland > The country where I quite want to be! ^^^ Not the best job application I've seen :-) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org F

datatable delete

2009-12-22 Thread Sam Barrow
if i have a link in a row of a datatable that deletes an item, how do i make that row disappear? or just refresh the whole table? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: user

Re: datatable delete

2009-12-22 Thread Sam Barrow
as long as your idataprovider > does not retrieve the row after you delete it it will be gone. > > sometimes it pays to simply try and see, most things will work as expected. > > -igor > > On Tue, Dec 22, 2009 at 9:55 AM, Sam Barrow wrote: > > if i have a link in a

Re: datatable delete

2009-12-22 Thread Sam Barrow
ee why the row entity is still being retrieved. > > -igor > > On Tue, Dec 22, 2009 at 10:03 AM, Sam Barrow wrote: > > that's how i thought it work, but it doesnt at all for me, ive tried so > > many times. i have to re-click the link to the page, even a refresh with &

strange classcastexception

2009-12-28 Thread Sam Barrow
I'm getting this exception when calling getConvertedInput() on birthDateField. java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date I'm using wicket 1.4.1 birthDateField = new TextField("birthDate", new Model()); birthDateField.setLabe

Re: strange classcastexception

2009-12-28 Thread Sam Barrow
** > Martin > > 2009/12/28 Sam Barrow : > > I'm getting this exception when calling getConvertedInput() on > > birthDateField. > > > > java.lang.ClassCastException: java.lang.String cannot be cast to > > java.util.Date > > > > I'm using

Re: strange classcastexception

2009-12-28 Thread Sam Barrow
tried that, didn't work. any other ideas? On Mon, 2009-12-28 at 16:11 +0100, Per Newgro wrote: > Hi Sam, > > did you try > > birthDateField = new TextField("birthDate", new Model(), > Date.class); >

generics and models that take X as model object but return Y

2009-12-30 Thread Sam Zilverberg
What's the best practice when using generics with models that take some object but return another type of object? examples: When you have a collection and need to convert it to a list for listview purposes. When you have some object and you need a wrapping model that creates some string representa

question about swarm

2009-12-30 Thread Sam Barrow
I hope this is the right list for wasp/swarm. How do i manage permissions for an anonymous subclass? I have a page called ItemPage. I can view ItemPage, but if I try to redirect to an anonymous subclass of ItemPage, i get an access denied error. this works: setResponsePage(new CreateItemPage(getP

Re: question about swarm

2009-12-31 Thread Sam Barrow
I know I can do that, but there's no way do do it by inheritance? I have hundreds of anonymous subclasses throughout my application. Seems sensible that subclasses should inherit their parent's permissions. On Thu, 2009-12-31 at 10:41 +0100, Olger Warnier wrote: > Hi Sam, >

filterform clear button not clearing everything?

2010-01-03 Thread Sam Zilverberg
I have a default data table/filterform/filter toolbar set up that displays info about some entity customer. the table has a couple of text filtered columns that display the entity's properties. for some reason the "clear" button clears some columns but not the others. it clears the column that ref

Re: filterform clear button not clearing everything?

2010-01-03 Thread Sam Zilverberg
ture On Sun, Jan 3, 2010 at 11:09 AM, Sam Zilverberg wrote: > I have a default data table/filterform/filter toolbar set up that displays > info about some entity customer. > the table has a couple of text filtered columns that display the entity's > properties. > > for some re

Re: Wicket + Scala + Spring

2010-01-04 Thread Sam Stainsby
> P.S. though one slight difficulty I've run into is the need to translate > between Scala and Java collections. Perfectly doable, and not a Wicket > problem, but takes a way some of the elegance of coding purely in Scala. I can confirm that Scala 2.8 makes it considerably easier to inter-work w

Releasing wicket library

2010-01-24 Thread Sam Barrow
In the course of developing my first wicket web application, I've wound up with quite a few reusable wicket components, validators, and other utilities. I think things like a LinkPanel, EmailLink, etc etc should be available, after all wicket is all about reusability. I'm packaging and releasing

Generics

2010-01-25 Thread Sam Barrow
I've noticed in some places where generics wildcards may be useful that they are not used. For example, in IColumn. If I have a Type and a SubType that extends Type, I can't use IColumn in a DataTable. Is there any reason for this or was it just not implemented? Not the most necessary feature, but

AjaxSelfUpdatingTimerBehavior

2010-01-26 Thread Sam Barrow
Is there any way to make the AjaxSelfUpdatingTimerBehavior execute X number of times and then stop until a page refresh/reload? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users

contributing components

2010-01-27 Thread Sam Barrow
I sent an email to this list the other day about releasing my wicket component toolkit. Anybody know how to go about this? I have some pretty interesting stuff, like a BeanPanel that displays a bean's properties in a nice looking key:value format, and another one that allows you to upload a file,

Re: Worldwide address form

2010-02-03 Thread Sam Barrow
anybody want to work on this? i have my collection of wicket components and this is just the type of stuff id like to be included. On Wed, 2010-02-03 at 11:26 +0100, Per Lundholm wrote: > If you do that, you will be a hero. ;-) > > But why not, a component that handles all kinds of addresses in t

Generics for datatable columns

2010-02-13 Thread Sam Barrow
This is a stupid minor thing but I was wondering. If I have a datatable of SubClass objects, shouldn't a I be able to add an IColumn to the list of columns? Not very often used, but could be useful occasionally like for inheritance with domain entities. Couldn't hurt to implement this right (just

Re: Wicket and 3rd party Javascript libraries

2009-05-22 Thread Sam Stainsby
On Thu, 21 May 2009 20:32:01 -0500, Vasu Srinivasan wrote: > Apologize if this question sounds too generic... Are there restrictions > in using 3rd party Javascript libraries when using Wicket? We have a > separate design/javascript team and they love the idea of having just > html to work with. B

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Sam Stainsby
On Wed, 27 May 2009 10:33:40 +1000, Ben Hutchison wrote: > So the authorization decision needs to examine some context (ie the > Listing), as well as the current user, to determine whether they have an > Edit or View role. I'm building something in that does this (albeit in scala). The approach

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-27 Thread Sam Stainsby
My code was bigger but I didn't want to brag :-) On Tue, 26 May 2009 23:11:06 -0700, Igor Vaynberg wrote: > i was being facetious :) > > -igor > > On Tue, May 26, 2009 at 10:39 PM, Jeremy Thomerson > wrote: >> I didn't mean than yours - Igor - I meant more than the original >> request.  He sim

Re: AW: AW: wicket on java server

2009-06-10 Thread Sam Stainsby
On Wed, 10 Jun 2009 14:56:59 +0200, Dorothée Giernoth wrote: > No, worse, my boss :( he doesn't think tomcat is safe enough and doesn't > know how tomcat works and what's going on behind the scenes ... and we > can't have that I bet he won't let me use wicket ... b/c it's not > safe enough e

Re: Wicket-Scala extensions

2009-07-13 Thread Sam Stainsby
On Tue, 14 Jul 2009 11:38:33 +1200, Antony Stubbs wrote: > I'm very interested in people's suggestions of otherways of taking > advantage of Scala to make Wicket programming easier. We are using Scala and Wicket intensively (and the DB4O object database as well). One thing we are working on is W

Re: Wicket-Scala extensions

2009-07-13 Thread Sam Stainsby
up on git hub privately if you want? > > On 14/07/2009, at 1:10 PM, Sam Stainsby wrote: > >> Not yet, but I can make it available if there is interest. >> >> Antony Stubbs wrote: >>> Just a quick note, is the source available for all this?

Re: Wicket-Scala extensions

2009-07-13 Thread Sam Stainsby
'views' modules so might be a good place to look to see it in action. Not much doco yet - it will be a bit like walking into someone's laboratory and trying to guess what experiments they were doing. Some modules are purely experimental/playing. It's pre- alpha - I make n

Re: Wicket-Scala extensions

2009-07-14 Thread Sam Stainsby
Not yet, but I can make it available if there is interest. Antony Stubbs wrote: > Just a quick note, is the source available for all this? > > all I see is svn checkout > file:///home/sam/work/svn_repository/uniscala/trunk uniscala > on http://uniscala.net/source-repository.htm

best or common practice for application plug-ins

2009-07-19 Thread Sam Stainsby
I'm probably revealing my inexperience with J2EE environments in asking this, but how do Wicket programmers typically handle application "add- ons" (or "plug-ins" or "modules"). I'm interested in emulating what happens in the Zope/Plone world (which is where I've come from). In the case of Zope,

Re: best or common practice for application plug-ins

2009-07-19 Thread Sam Stainsby
client/own company? > > In my opinnion modules are good for the public but not for internal / > sophisticated (=educated) use. > > ** > Martin > > 2009/7/20 Sam Stainsby : >> I'm probably revealing my inexperience with J2EE environments in asking >> this,

Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
ifferent form wicket-stuff? > > http://wicketstuff.org/confluence/display/STUFFWEB/Home > > ** > Martin > > 2009/7/20 Sam Stainsby : >> Providing modules for others. And also providing an environment for >> third- party modules. See for example: >> >> h

Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
On Mon, 20 Jul 2009 09:10:57 +0200, Per Lundholm wrote: > Well, plug-ins, are they compile-time or run-time? Sounds like > compile-time from your description. Runtime I think if I understand you correctly. Suppose a sys admin has already deployed the war file for the core application and wants

Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
On Mon, 20 Jul 2009 10:25:17 +0200, Linda van der Pal wrote: > Seeing how it looks like you want to create your own CMS, you might want > to have a look at Hippo CMS. They've built it in Wicket AFAIK. I've seen Hippo, but my main aim is not to create a CMS. One of my goal applications is more to

Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
OK, so I am an sys admin running some sort of OSGI-based application and now I want to add your questionnaire service and any other modules that it depends on. I also want to occasionally check for version updates. I want these updates and dependencies to be downloaded and put in the correct pl

Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
Thanks Olger, that gives me some ideas. I wonder if a maven could somehow be coerced to do the dependency/downloading part, perhaps with some new plugin. On Mon, 20 Jul 2009 13:39:10 +0200, Olger Warnier wrote: > Hi Sam, > > How we do it with that service: > > We have a file

Re: jWicket -- jQuery with Wicket integration

2009-07-21 Thread Sam Stainsby
On Tue, 21 Jul 2009 02:18:12 -0700, Tauren Mills wrote: > I realize there are already a few Wicket/jQuery > integrations, but I think that Stefan's WicketJQuery implementation has > some advantages over the others. We've just started using WiQuery (http://code.google.com/p/wiquery/), but are not

Re: best or common practice for application plug-ins

2009-07-22 Thread Sam Stainsby
Thanks Adrian for sending through the details. We are now also looking at Apache Geronimo that has some interesting features for plugins. Thanks all, Sam. On Mon, 20 Jul 2009 17:26:03 +0200, Adrian Wiesmann wrote: > Ping me offline for details since this is very much non-Wicket st

Re: Wicket-Scala extensions

2009-08-14 Thread Sam Stainsby
Looks good - I have some form-generation wicket-scala material that I'm trying to get out. Fodels look interesting - I have something similar but maybe not as general. On Fri, 14 Aug 2009 18:56:09 +0200, Antony Stubbs wrote: > Ok for those following this thread - Wicket-Scala Extensions is out!

dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Sam Zilverberg
I'm using a wizard with a CompoundPropertyModel of some object called Device. The Device object has a distributor and company properties (and some other too...) In the first step of the wizard, the user has to choose a distributor or company(both allowed too) for this device. For the device's dis

Re: dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Sam Zilverberg
deviceCreation is defined only once in the wizard class. all of the wizard steps are inner classes and, if needed, refer to deviceCreation of their outer class which is the main wizard class. so it should be the same instance. On Wed, Sep 16, 2009 at 6:26 PM, Pedro Santos wrote: > The device o

Re: dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Sam Zilverberg
I have another DDC in the wizard that works properly, it shows the correct value when using the wizard previous button. It's connected to the "deviceType" property of Device and gets its choices from an enumeration I have. add(new DropDownChoice("deviceType", Arrays.asList(DeviceType.v

filter a datatable using some range (like a date range)

2009-09-16 Thread Sam Zilverberg
Hi, I've recently had a bad experience adding this kind of filter in my project. I had filter/clear buttons and the filtering would work great until I'd press clear. on pressing clear the fields would not clear and the filter would stop working as it should. I finally solved this by ignoring the o

upload file content to textarea

2009-09-16 Thread Sam Zilverberg
In one of my wizard's steps I have a upload form and a textarea. The textarea is used to enter serial numbers(seperated by newline) and is connected to a object property of type Set using a propertymodel. I've written a custom converter to turn the entered input to a Set and from a Set back to sim

Re: upload file content to textarea

2009-09-16 Thread Sam Zilverberg
sounds good, but how do I do this? :) On Wed, Sep 16, 2009 at 9:45 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > You could ajax update the textarea after upload, with the content that > you want? If you do not want to set the model object then you will > have to fake raw inpu

Re: upload file content to textarea

2009-09-16 Thread Sam Zilverberg
thanks a lot for the help and the links! I checked them all out, the second one (upload panel) was too complicated for me atm. Maybe I'l come back to it when I'l have more experience with wicket. I liked the timed ajax behaviour example, but couldn't figure out exactly how it works so i could use

Re: upload file content to textarea

2009-09-16 Thread Sam Zilverberg
I'd rather use some other method than mine, because with mine the validation of input is done twice when uploading. first on the uploaded file, and then another time on the textarea when pressing the wizard's next button. I tried replacing my "fixup" with this one but got a big fat java.lang.NoSuc

form with inheritance

2009-09-22 Thread Sam Barrow
I am trying to create a form for a domain object called Shipment. A Shipment contains a Payment object. Payment is an abstract class, with subclasses CashPayment, CheckPayment, etc. What would be the best way to create a form to represent this? I'm assuming I will use some type tabs with panels f

Collection of strings in form

2009-09-23 Thread Sam Barrow
What is the best way to handle a collection of strings in a form? DomainObject String property1 String property2 Collection property3 I'm thinking either some type of repeater, or a text area that creates an element in the collection for each line (might be easier).

Attempt to set model object on null model of component

2009-09-28 Thread Sam Barrow
I'm getting this exception: java.lang.IllegalStateException: Attempt to set model object on null model of component: form:agent The only reason i can find is that the field has a null model, but i added a new Model() to the field and im still getting it DropDownChoice agent = new DropDownChoice(

export DataTable to csv

2009-10-04 Thread Sam Zilverberg
ave a getDataAsCSV method that converts the data to a CSV format (say a string or char[]/ byte[]), What would be the best practice for creating a link that lets you download this data? thanks, Sam FilterForm form = new FilterForm("filter-form", dataProvider); // create the dat

Re: How do you achieve persistency

2009-10-06 Thread Sam Stainsby
On Tue, 06 Oct 2009 09:34:55 +, Peter Arnulf Lustig wrote: > What's the fast and easy way? > > I am asking because of a lot of trouble with hibernate. You can use an object database (like DB4O) that doesn't require ORM. -

Re: How do you achieve persistency

2009-10-06 Thread Sam Stainsby
On Tue, 06 Oct 2009 14:02:56 -0700, Igor Vaynberg wrote: > i think all the suggestions you have gotten until now are > overcomplicated and have a high learning curve. i think the easiest and > fastest way to achieve persistency is to use a database that all > operating systems already have - the f

"copy" from one IModel to another

2007-08-17 Thread Sam Hough
alues in a Map/Model but then be able to use the CompoundPropertyModel's normal rules to apply the values to my real model? Sorry if I've missed this documented elsewhere. Cheers Sam -- View this message in context: http://www.nabble.com/%22copy%22-from-one-IModel-to-another

Re: "copy" from one IModel to another

2007-08-17 Thread Sam Hough
Excellent. Looks like Wicket does away with my biggest reason to want to do something silly like this. Many thanks. -- View this message in context: http://www.nabble.com/%22copy%22-from-one-IModel-to-another-tf4285138.html#a12201542 Sent from the Wicket - User mailing list archive at Nabble.

Component Factory and code against interface

2007-08-22 Thread Sam Hough
Would it make sense in Wicket to have a factory, for at least common components like Button etc, that use interfaces rather than concrete classes in their signature? We have a requirement to have two target browsers. Full bells and whistles Ajax version and some JavaScript (IE5 and IE5.5) so I th

Re: ModalWindow problem

2007-08-22 Thread Sam Hough
Do you have an element with id content111? -- View this message in context: http://www.nabble.com/ModalWindo-problem-tf4311370.html#a12273905 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e

  1   2   3   4   >