Re: 60% waste

2009-05-09 Thread Martin Makundi
Related wiki entry http://cwiki.apache.org/confluence/display/WICKET/Type-safe+testing+in+wicket ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.or

RE: wicket-jBPM integration

2009-05-09 Thread freak182
the scope of wicket-jBPM integration: > minimal requirements 1. be able to route task to a corresponding wicket page. 2. be able to handle jBPM variables dynamically. 3. given the process design, minimal change(e.g change of route, adding decision element) would not require code change. > maxi

Re: DropDownChoice ID's

2009-05-09 Thread Igor Vaynberg
this should clear things up for you http://www.systemmobile.com/?page_id=236 -igor On Sat, May 9, 2009 at 7:26 PM, Oblivian wrote: > > basicDemographicInfo.gender is a String > and > genders is List > > > John Krasnay wrote: >> >> What is the type of the "gender" property of BasicDemographicInf

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List John Krasnay wrote: > > What is the type of the "gender" property of BasicDemographicInfo? > > jk > > On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: >> >> Not sure what I'm doing wrong. I need a DropDownChoice with ...

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List Oblivian wrote: > > List test = Arrays.asList(new String[] { "A", "B", "C" }); > add(new DropDownChoice("test", test)); > > How can I make the Id's match the Values? There coming through as > 1,2,3. I've tried custom ChoiceRen

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
basicDemographicInfo.gender is a String and genders is List John Krasnay wrote: > > What is the type of the "gender" property of BasicDemographicInfo? > > jk > > On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: >> >> Not sure what I'm doing wrong. I need a DropDownChoice with ..

Re: DropDownChoice ID's

2009-05-09 Thread John Krasnay
What is the type of the "gender" property of BasicDemographicInfo? jk On Sat, May 09, 2009 at 12:39:58PM -0700, Oblivian wrote: > > Not sure what I'm doing wrong. I need a DropDownChoice with ... > > Female > Male > > have a basic class like this ... > > public class Gender implements Seria

Re: Form Submit with non-serializable Model

2009-05-09 Thread J
ah, thanks! I totally looked over it :) Clint Popetz wrote: On Sat, May 9, 2009 at 5:43 PM, J wrote: private transient User user; @Override public User getObject() { if (user == null) return new User(); re

Re: 60% waste

2009-05-09 Thread Martin Makundi
Hi! I have now better formalized my intentions (couldn't get sleep because of this ;). You can see the benefits for yourself. However, I found out that most of it can be done with existing wicket. Maybe some part of the philosophy could be adapted into wicket in general. I submitted a quickstart w

Re: Form Submit with non-serializable Model

2009-05-09 Thread Clint Popetz
On Sat, May 9, 2009 at 5:43 PM, J wrote: >           private transient User user; >                     @Override >           public User getObject() { >               if (user == null) >                   return new User(); >               return user; >           } You didn't set user = new Use

Re: Form Submit with non-serializable Model

2009-05-09 Thread J
Code identation was a bit messed up. Maybe this copy/paste is a bit better: public class RegisterPage extends WebPage { private class User { private String username; public String getUsername() { return username; } public void setUsername(String username) { this.use

Form Submit with non-serializable Model

2009-05-09 Thread J
I have a non-serializable User object that must be created when someone registers for an user account. The problem that I have with my current code (below) is that the ModelObject in onSubmit() doesn't have the username property bounded/pushed to it, so it's null. This problem doesn't occur when

Re: DropDownChoice ID's

2009-05-09 Thread Oblivian
Not sure what I'm doing wrong. I need a DropDownChoice with ... Female Male have a basic class like this ... public class Gender implements Serializable { String id; String name; public Gender(); public Gender(String id, String name); public String getI

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 wrote: > Like Martijn said i also strongly recommend to take a look at the > jdave-wicket's selectors (http://www.jdave.org/). > > examples => > http://svn.laughingpanda.org/svn/jdave/

AW: Object without ID in LoadableDetachableModels

2009-05-09 Thread Christian Helmbold
Thank you, Igor. This looks useful to me. The interesting part seems to be: public void detach() { if (entity != null) { if (entity.getId() != null) { id = entity.getId(); entity = null; } } } The id is set while detaching and at then t

RE: wicket-jBPM integration

2009-05-09 Thread freak182
i integrate the core engine and not actually the entire console just the part of it, just a redirection of page for a particular task. the jbpm-console is so flexible such that you dont have to program anything (forms are auto generated) and it's built on jsf (jbpm native). Im still thinking wha

Re: 60% waste

2009-05-09 Thread Marko Sibakov
Like Martijn said i also strongly recommend to take a look at the jdave-wicket's selectors (http://www.jdave.org/). examples => http://svn.laughingpanda.org/svn/jdave/trunk/jdave-wicket/src/test/jdave/wicket/PageWithItemsSpec.java with form tester it goes like this => form = wick

RE: wicket-jBPM integration

2009-05-09 Thread Stefan Droog
What did you exactly integrate? Did you re-write the jBPM console? Regards, Stefan Van: freak182 [eman.noll...@gmail.com] Verzonden: zaterdag 9 mei 2009 10:56 Aan: users@wicket.apache.org Onderwerp: Re: wicket-jBPM integration Hello, Here is my initial c

Re: 60% waste

2009-05-09 Thread Per Newgro
Martin Makundi schrieb: Interesting. I googled for "printDoc Wicket" but did not find anything. Where is that utility? public void printDocument() { System.out.println(tester.getServletResponse().getDocument()); } ** Martin

Re: wicket-jBPM integration

2009-05-09 Thread freak182
Hello, Here is my initial commit on google code: http://code.google.com/p/wicket-jbpm/ freak182 wrote: > > Hello, > > im currently developing wicket-jbpm integration. and currently doing the > infrastructure setup and once done i will upload it to googlecode. anyone > wants to join the develo

CheckboxMultipleChoice in Ajax style

2009-05-09 Thread Philipp Daumke
Hi all, I wonder how I can create a CheckboxMultipleChoice that performs an action "onUpdate". Ideally, the action is delayed by one second, so that a user has the chance to change more than one checkbox before the change is sent to the server (without a submit button). As I'm quite new to w

Re: 60% waste

2009-05-09 Thread Martin Makundi
Ofcourse I forgot the getter... public class MyListItem extends ListItem { private TextField myTextField; public MyListItem(MyData myData) { myTextField = TextField(...); } /** * @return the myTextField */ public TextField getMyTextField() { return myTextField; } } 20

Re: 60% waste

2009-05-09 Thread Martin Makundi
Hi! What about if the MarkupContainer was used in a more bean-like manner: public abstract class ListItem extends WebMarkupContainer ... new ListView("id", ..., MyListItem.class); public class MyListItem extends ListItem { private TextField myTextField; public MyListItem(MyData myData) {

wicket-jBPM integration

2009-05-09 Thread Eman Nollase
Hello, im currently developing wicket-jbpm integration. and currently doing the infrastructure setup and once done i will upload it to googlecode. anyone wants to join the development is cordially invited. Thanks a lot. Cheers.