Component render flag inconsistency after exception during Ajax update

2013-12-16 Thread Sam Holmes
FLAG_PREPARED_FOR_RENDER not get set to false in the finally block of afterRender()? It seems to fix the problem I'm having... Thanks Sam

Re: wicket 1.4 to 1.5 migration - page id in urls issue - how to remove for certain pages

2012-07-12 Thread Sam Zilverberg
, 2012 at 6:41 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Wed, Jul 11, 2012 at 2:54 PM, Sam Zilverberg samzilverb...@gmail.com wrote: I have no problem that the page is being constructed everytime. Just one note here: the page is not being constructed every time

Re: migrating from 1.4 to 1.5 - some images problems

2012-07-11 Thread Sam Zilverberg
) first and then decide if you want to go on to 1.5. On Tue, Jul 10, 2012 at 10:16 PM, Sebastien seb...@gmail.com wrote: Hi Sam, I think you can use this: UrlUtils.rewriteToContextRelative(ui/images/datepicker.png, RequestCycle.get()); It also works in Wicket 6. Regards, Sebastien. On Tue

wicket 1.4 to 1.5 migration - page id in urls issue - how to remove for certain pages

2012-07-11 Thread Sam Zilverberg
Hi, Sadly I didn't find any similar thread on nabble or stackoverflow... In wicket 1.4 I had a mount for /devices that lead to a page that shows a data table with some filtering options. The page is stateful - mainly because of the filtering options. when you filter the url changes to

migrating from 1.4 to 1.5 - some images problems

2012-07-10 Thread Sam Zilverberg
when I programatically pass the url using wiquery I can put in the correct one... Thanks, Sam

Re: CAS (or single sign on): how to?

2012-02-14 Thread Sam Zilverberg
:58 AM, Dan Retzlaff dretzl...@gmail.com wrote: Hi Sam, We have a similar use case, and we use a home-grown approach within Wicket: 1. The authenticating application persists a session ID into a shared data store, and puts the ID into a new site-wide cookie. We use Wicket's Session#getId

CAS (or single sign on): how to?

2012-02-13 Thread Sam Zilverberg
apps doing it for themselves. Whats the best way to implement such a CAS mechanism? (preferably using wicket, spring is ok too) Thanks, Sam.

Re: Property Model Issue

2012-02-04 Thread Sam Barrow
On Sat, 2012-02-04 at 10:27 -0500, James Carman wrote: I would avoid cpms like the plague. Too much magic. On Feb 3, 2012 5:12 PM, Sam Barrow s...@sambarrow.com wrote: Yeah, I know what you mean. I usually try to avoid them, I'm not too fond of runtime reflection, loss of compile time type

Property Model Issue

2012-02-03 Thread Sam Barrow
ComponentPropertyModelString(name)) That works as well. What am I doing wrong? -- Sam Barrow Squidix IT Services - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Property Model Issue

2012-02-03 Thread Sam Barrow
On Fri, 2012-02-03 at 13:57 -0800, Dan Retzlaff wrote: Hi Sam, I think your use of Item#setModel() and Component#initModel() are unconventional. Try: Hi Dan, Yes I never really liked my item.setModel() technique, just didn't seem right to me but I've seen it in more than one tutorial so

how to direct from servlet to login page and then back to servlet?

2011-03-24 Thread Sam Zilverberg
I've got a servlet that serves files. It's mounted on /files/* and has a WicketSessionFilter on that same path so it has access to the wicket session. When a user accesses /files/?id=1 the servlet checks that the wicket session exists, that the user is logged in and some other logic then serves

Re: how to direct from servlet to login page and then back to servlet?

2011-03-24 Thread Sam Zilverberg
This works but the url doesn't change in the browser to /reports/?id=1, it stays as login/destination=... I'm thinking of reimplementing this as a wicket page with page params. any other thought on how to implement this kind of functionality with servlet/wicket login page?

Re: FormComponentPanel and invalid child FormComponents question

2011-01-27 Thread Sam Zilverberg
Thanks again. Just tried it out and it works perfect. ContainerFeedbackMessageFilter for my form-comp-panel's feedback panel allowed it to show it's children messages. Using a visitor in my invalid-css-class-behavior allowed me to enable the behavior when one of the children has an error. This

FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Sam Zilverberg
message is registered with the textfield so the invalid-css-behavior doesn't trigger. Is there a simple way to tell a form component to register all of it's messages with some other form component - in this case the panel? Are there any other suggestion to get this desired behavior? Thanks -Sam

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Sam Zilverberg
That is an excellent idea. However I don't want to just set the panel to be invalid when one of it's children is invalid. I'd like to also steal its' feedback message. I want this to happen because I have a feedback panel next to the form component that shows feedback messages registered to it.

Re: OT: app throws java.lang.NoClassDefFoundError sometimes, and sometimes it doesnt

2011-01-14 Thread Sam Zilverberg
I've posted my problem on tomcat mailing list and got some answers. For future reference and for anyone following this heres a link to post (on nabble archive): http://old.nabble.com/app-throws-java.lang.NoClassDefFoundError-sometimes%2C-and-sometimes-it-doesnt-to30662304.html

OT: app throws java.lang.NoClassDefFoundError sometimes, and sometimes it doesnt

2011-01-13 Thread Sam Zilverberg
ideas on what is causing this or what I can do to diagnose this problem? I'm clueless at the moment :( Thanks -Sam

problem with changing css while application is running

2010-12-16 Thread Sam Zilverberg
In my app I have a single css file in my webapp directory(the one that contains WEB-INF, possible libs and so on). In my BasePage I contribute this css like this: add(CSSPackageResource.getHeaderContribution(urs.css)); If I want to edit this css and change some stuff while the application

Re: problem with changing css while application is running

2010-12-16 Thread Sam Zilverberg
Sorry, I should have been more clear. I don't get any error on the application side. I get the error in eclipse. It can't save the css file while the application is running. It is pretty annoying because I like making changes to design and then press refresh in application window to see them.

Re: problem with changing css while application is running

2010-12-16 Thread Sam Zilverberg
Matthias: Yes I use firebug too, but it doesnt save the changes to the original css file. So after I make a few tweaks I need to retrace what I've changed and copy-paste to the original css. Martin: When I put the css file inside some package and contribute it like this

Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Sam Zilverberg
Hi all, I've got a lot of forms on my app that use tables for layout and generally look like this after being rendered: form table tr thName/th * in the original markup it was a wicket:message key=name* tdinput name=name/input/td* in the original markup it was a simple input wicket:id=name* /tr

Re: Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Sam Zilverberg
I realize my last post was a mess so here is an attempt to summarize it: I'm trying to turn input wicket:id=name/ which renders as input name=name id=some_generated_wicked_id/ to something that will render like this: label for=generated_idlabel/label * -FormComponentLabel* input name=name

Re: Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Sam Zilverberg
Thanks, that was pretty short and clear :) I decided to go with border so that if I decide I need some ajax behavior for a field I will be able to easily do addComponent(borderOfComponent). I wish there was some flag to tell wicket that it doesn't need to check that form components are associated

Re: New App - Best Practices

2010-10-04 Thread Sam Stainsby
. If nobody had been willing to try doing J2EE in a different way, then where would Wicket be? Cheers, Sam. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: New App - Best Practices

2010-10-04 Thread Sam Stainsby
On Mon, 04 Oct 2010 17:49:07 +1000, Chris Colman wrote: You are also missing out on advantages like automatic schema updates, DB4O's own unique ID system, and other very useful parts of the DB4O API. The way I use JDO I get all of those features but in a datastore agnostic way. This is

Re: New App - Best Practices

2010-10-03 Thread Sam Stainsby
On Sun, 03 Oct 2010 20:40:04 -0300, Francisco Diaz Trepat - gmail wrote: Now I am free to do whatever I want. This is the worst part. :-) I understand that feeling! When I started designing our web app framework, I picked the technologies from an enormous set of options that I thought would

Re: New App - Best Practices

2010-10-03 Thread Sam Stainsby
On Mon, 04 Oct 2010 11:36:48 +1000, Chris Colman wrote: Forgot to mention: DataNucleus allows you to use a wide range of datastores and switch between them without any code changes: eg., all the usual RDBMSes (MySQL, Oracle etc.,), Object Databases (DB4O and some others), Google Application

Re: New App - Best Practices

2010-10-03 Thread Sam Stainsby
On Mon, 04 Oct 2010 12:59:43 +1000, Chris Colman wrote: Keep in mind though that adding a layer like this over DB4O will mostly remove the advantages that would make you want to choose DB4O in the first place. Not really AFAIK: The ability to not have to manage fetch depths that JDO/DB40

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-26 Thread Sam Stainsby
On Wed, 22 Sep 2010 14:19:17 +, Sam Stainsby wrote: On Wed, 22 Sep 2010 15:34:15 +0200, Erik van Oosten wrote: I have looked at the example and it looks very promising. However, if you want more attention there should at the absolute minimum be a bunch of links somewhere that give

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-26 Thread Sam Stainsby
): // define a class class C(var x:String), var y:Int) // store an instance db.store(new C(hi, 123)) // find all instances of C in the database val query = Query[C] query in db Cheers, Sam. On Thu, 23 Sep 2010 19:58:03 -0700, 7zark7 wrote: Looks great, thanks for the link. +1 on CouchDB, et

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Sam Stainsby
On Wed, 22 Sep 2010 08:42:20 +0200, Thomas Kappler wrote: On 09/22/10 03:41, Sam Stainsby wrote: Today we officially announced our project to provide a Wicket-DB4O-Scala web application stack: Now that you've done the hard work of fitting a non-relational store into a Wicket-based

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Sam Stainsby
examples. There might not be much material before the end of this financial quarter (the end of this month for us in Australia), as I'm busy finalising client commitments ... one of which involves delivering a project based on Granite. Op 22-09-10 03:41, Sam Stainsby schreef: Today we officially

Re: announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-22 Thread Sam Stainsby
of log data from a network of health kiosks! I will get around to blogging about that at some stage. I guess you could even have the root database and a JDO facility. --Sam. - To unsubscribe, e-mail: users-unsubscr

announcing Granite - a Wicket-Scala-DB4O web application stack

2010-09-21 Thread Sam Stainsby
Today we officially announced our project to provide a Wicket-DB4O-Scala web application stack: http://sustainablesoftware.com.au/blog/?p=77 I’m pleased to announce a new web application framework, called Granite, and an associated set of reusable libraries, called Uniscala. Please note that

Re: [wiQuery] Custom Link to wiQuery Page doest not initialize target page

2010-08-30 Thread Sam Zilverberg
Hi, I have the same problem, but my page is a non-bookmarkable page which has only one constructor : public MyPage(Page backpage, ModelT model). I don't see how setResponsePage can solve the problem for me unless I create a default constructor. I'm reluctant to do so because the page is some

Re: Error no application attached to current thread main with AnnotApplicationContextMock

2010-08-02 Thread Sam Grönblom
On 07/29/2010 06:21 PM, Igor Vaynberg wrote: what version of wicket? -igor On Thu, Jul 29, 2010 at 1:54 AM, Sam Grönblomsam.gronb...@eficode.fi wrote: Getting this error when trying to use AnnotApplicationContextMock. Judging by the example shown in the latest javadocs: http

Error no application attached to current thread main with AnnotApplicationContextMock

2010-07-29 Thread Sam Grönblom
Getting this error when trying to use AnnotApplicationContextMock. Judging by the example shown in the latest javadocs: http://wicketbyexample.com/api/wicket-spring/latest/org/apache/wicket/spring/injection/annot/test/AnnotApplicationContextMock.html you should create the application context

Re: Passing raw value to html

2010-07-26 Thread Sam Barrow
. -igor On Mon, Jul 26, 2010 at 8:42 AM, Sam Barrow s...@sambarrow.com wrote: Is there a way to pass a raw value to be displayed in a wicket markup file? I'm trying to create a google analytics panel that takes an id string and puts it directly in the markup with no tag. script type=text

Re: Passing raw value to html

2010-07-26 Thread Sam Barrow
I'm not trying to insert javascript, I'm just trying to pass a few characters into a template. I just happen to be using it in a situation where javascript is involved. On Mon, 2010-07-26 at 09:24 -0700, Arjun Dhar wrote: My 2 cents : I think the problem is more of inserting javaScript into

Re: Passing raw value to html

2010-07-26 Thread Sam Barrow
Yes that's exactly what I was looking for, I found the example in the mailing list. Thanks! On Mon, 2010-07-26 at 09:30 -0700, Arjun Dhar wrote: Lots of dynamic stuff? If you have lots of dynamic stuff you can use a texttemplate to interpolate your variables with it works really smooth,

Lazy Initialization Question

2010-07-24 Thread Sam Barrow
I'm getting hibernate lazy initialization exceptions. I was under the impression that a smart entity model would fix this (http://wicketinaction.com/2008/09/building-a-smart-entitymodel/) is that true? Or do i need opensessioninview as well?

Re: Lazy Initialization Question

2010-07-24 Thread Sam Barrow
will need active database connection for lazy loading entities. ** Martin 2010/7/24 Sam Barrow s...@sambarrow.com: I'm getting hibernate lazy initialization exceptions. I was under the impression that a smart entity model would fix this (http://wicketinaction.com/2008/09/building-a-smart

Re: Lazy Initialization Question

2010-07-24 Thread Sam Barrow
The only alternative I've found is DTOs, which would not be practical at all, we have a very large domain model. On Sat, 2010-07-24 at 11:58 +0300, Martin Makundi wrote: I would avoid using lazy entities in GUI. ** Martin 2010/7/24 Sam Barrow s...@sambarrow.com: The entitymodel accesses

Re: Lazy Initialization Question

2010-07-24 Thread Sam Barrow
difficult to comment exactly not knowing the actual use case and background.. but maybe another design approach would help? And also it's just my opinnion to try to avoid lazy initialization in GUI. Somebody might disagree ;] ** Martin 2010/7/24 Sam Barrow s...@sambarrow.com: The only

Re: Lazy Initialization Question

2010-07-24 Thread Sam Barrow
a session. Is that a problem? ** Martin 2010/7/24 Sam Barrow s...@sambarrow.com: It's just a billing system. The problem comes up now in very simple use cases. Currently all we're doing is trying to load a collection with a list of Order domain objects from the Client domain object

Re: Lazy Initialization Question

2010-07-24 Thread Sam Barrow
Session factory, sorry. On Sat, 2010-07-24 at 12:31 +0300, Martin Makundi wrote: Session factory or also an open session? ** Martin 2010/7/24 Sam Barrow s...@sambarrow.com: getClientModel gets an instance of EntityModel which contains a reference to a repository and an id

Re: Lazy Initialization Question

2010-07-24 Thread Sam Barrow
add(new LinkDomainObject(link, getAccount()) { @Override public void onClick() { getApplicationService().doThing(getModelObject()); } }); On Sat, 2010-07-24 at 12:36 +0300, Martin Makundi wrote: Then I think you need to open a session to activate lazy fetching. 2010/7/24 Sam Barrow

Re: Lazy Initialization Question

2010-07-24 Thread Sam Barrow
I fixed it, I didn't realize I had to move the filter above the wicket filter On Sat, 2010-07-24 at 13:00 +0300, Martin Makundi wrote: Where did you add opensessioninviewfilter? ** Martin 2010/7/24 Sam Barrow s...@sambarrow.com: I just added opensessioninviewfilter, I'm still getting

Re: AW: Jwicket and Wiquery

2010-06-28 Thread Sam Stainsby
On Mon, 28 Jun 2010 16:29:51 +0200, Stefan Lindner wrote: Hi Josh, yes, jWicket does it the Wicket way. Generally you have a Behavior (e.g. DraggabeBehavior) extending wicket's AjaxBehavior. So does Wiquery: label = new Label(item-name, model) draggableBehavior = new DraggableBehavior

Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-27 Thread Sam Zilverberg
vov: adding this behavior doesn't solve the problem. with this behavior the ddc never reaches the getDataGrid().setRowsPerPage(newSelection); line in the code.

Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-27 Thread Sam Zilverberg
I've remove the filter-form and toolbar to see if they affect this situation, sadly they dont. When the rows-per-page DDC is outside the toolbar (and outside the grid markup) choosing a value will correctly change the DDC's model object and then the grid is rendered again using the correct DDC

inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-24 Thread Sam Zilverberg
far between the 2 methods - outside the grid/inside the toolbar - is that when the ddc is inside the toolbar it is also inside a form - a filter form i use along with the grid because i've created a filter toolbar -Sam.

Boolean IChoiceRenderer and i18n

2010-06-17 Thread Sam Zilverberg
to make displayed values for Booleans throughout the app be certain values? so that each time I use a Column that maps to a Boolean property I don't need to override populateItem and decide what will be displayed for True/False. Thanks -Sam

DefaultDataTable column style and orderbylink

2010-06-03 Thread Sam Zilverberg
rolling my own HeadersToolbar/OrderByBorder/PropertyColumn? -Sam

Re: WebMarkupContainer as string for use in jqgrid cell

2010-06-03 Thread Sam Zilverberg
Sweet. I looked at the changes made and now I understand what you meant by virtual repeater. Anyway I've decided to use a custom implementation of wicket's DataTable for now and if a demand for more fancy grids will be made I'l probably come back to wijqgrid or try out inmethod grid. Thanks -Sam

Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread Sam Zilverberg
-Sam

Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-29 Thread Sam Zilverberg
(they're actually beans that act like servlets and Spring dispatches to them) and you can have all your cool dependency injection, etc. from Spring. On Sat, May 29, 2010 at 8:11 AM, Sam Zilverberg samzilverb...@gmail.com wrote: I can't reach my daos in any other way but using ApplicationContext

upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-28 Thread Sam Zilverberg
spring context so I can fetch some dao beans from it... Thanks -Sam this is the error stack trace: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread btpool0-0 at org.apache.wicket.Application.get(Application.java:179

Re: upgrading from 1.4.3 to 1.4.4 onwards: using @springbean in servlets (non wicket) broken

2010-05-28 Thread Sam Zilverberg
Good idea. Using: ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); someDao = (IDAOentity) context.getBean(someDao); Works. However I was hoping to continue using @SpringBean somehow... -Sam

WebMarkupContainer as string for use in jqgrid cell

2010-05-25 Thread Sam Zilverberg
Hi all, I'm using a integration of jqgrid with wicket. jqgrid renders its cells from json data that is retrieved from the server. I've got this behavior and other operations of jqgrid(search/edit) working for some time now. I want to have one of the columns hold a link to some info page. For

Re: WebMarkupContainer as string for use in jqgrid cell

2010-05-25 Thread Sam Zilverberg
Reinaldo Barreiro reier...@gmail.com wrote: Hi Sam, I'm using a flavor of wijqgrid. I took wijqgrid as a base code and made major modifications to almost everything. It is a pity some of those modifications never made it back into the original:-(. But I'm still glad to hear the code

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

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 IColumnSuperClass 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

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 the

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,

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:

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 IColumnType in a DataTableSubType. Is there any reason for this or was it just not implemented? Not the most necessary

Re: Generics

2010-01-25 Thread sam
)) On Mon, Jan 25, 2010 at 12:29 PM, Sam Barrow s...@sambarrow.com wrote: 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 IColumnType in a DataTableSubType. Is there any

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

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

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

Re: filterform clear button not clearing everything?

2010-01-03 Thread Sam Zilverberg
at 11:09 AM, Sam Zilverberg samzilverb...@gmail.comwrote: 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

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, I have added a sample

Re: question about swarm

2009-12-31 Thread sam
at the source code. Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier ol...@xs4all.nl Date: Thu, 31 Dec 2009 22:35:22 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam Jeremy, Together with the remark that Jeremy made - I agree, it is quite

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 ol...@xs4all.nl Date: Thu, 31 Dec 2009 23:31:34 To: users@wicket.apache.org Subject: Re: question about swarm Hi Sam, Found the way to solve

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

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

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 TextFieldDate(birthDate, new ModelDate());

Re: strange classcastexception

2009-12-28 Thread Sam Barrow
I tried that too, still same error. On Mon, 2009-12-28 at 16:02 +0200, Martin Makundi wrote: You forgot to set Type of the textfield... you know, generics are only compile-deep. public TextField(final String id, final ClassT type) type - Date.class ** Martin 2009/12/28 Sam Barrow s

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 TextFieldDate(birthDate, new ModelDate(), Date.class); Maybe it helps. Cheers Per

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:

Re: datatable delete

2009-12-22 Thread Sam Barrow
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 s...@sambarrow.com wrote: if i have a link in a row of a datatable

Re: datatable delete

2009-12-22 Thread Sam Barrow
the row entity is still being retrieved. -igor On Tue, Dec 22, 2009 at 10:03 AM, Sam Barrow s...@sambarrow.com 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 the f5 key doesnt get rid

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

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.atlassian.com/browse/wicket

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

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
On Fri, Dec 4, 2009 at 1:08 PM, Sam Barrow s...@sambarrow.com wrote: That's what I'm doing, but i still get the conversion exception public final class EmailAddressConverter implements IConverter { private static final long serialVersionUID = -4264887925119691218L

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
will be handled for you -igor On Fri, Dec 4, 2009 at 1:39 PM, Sam Barrow s...@sambarrow.com 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, 2009-12-04 at 13:25 -0800, Igor Vaynberg wrote: so

Re: EntityModel

2009-11-12 Thread Sam Barrow
. 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: Yes that shouldn't be a problem I just need to figure out the injection

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.

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 another place? in load

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 class is loaded by which repo

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,

Re: another serialization question

2009-11-10 Thread Sam Barrow
be serializable. On Tue, Nov 10, 2009 at 10:03 PM, Sam Barrow s...@sambarrow.com 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 objects of a type I'll call ValueObject

Re: another serialization question

2009-11-10 Thread Sam Barrow
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 s...@sambarrow.com 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

Re: another serialization question

2009-11-10 Thread Sam Barrow
the root entity object and then traverse to 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 s

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: IModelValueObject

Re: serialization

2009-11-09 Thread Sam Barrow
look like? -igor On Mon, Nov 9, 2009 at 9:50 AM, Sam Barrow s...@sambarrow.com 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 serializable domain objects (the project is using db4o

Re: serialization

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

  1   2   3   >