[Wicket-user] impressed w/ performance!

2006-03-11 Thread Vincent Jenks
OK, I ran a test using the small CLI app "siege".  I don't know how reliable this test is but the results logged are *definitely* impressive...to say the least...not at all what I expected given what I've done.  This setup is as ghetto as it gets. Here's my app:Presentation: Wicket 1.1.1Application

[Wicket-user] Wicket community...

2006-03-11 Thread Vincent Jenks
I've noticed that there's not been a Wicket release in about 6 mo. - is Wicket being actively developed?  From what little experimentation I've done it seems like the best web UI framework out there, hands down.  Obviously, I have to be concerned with popularity if I'm to recommend an open source f

[Wicket-user] query strings...

2006-03-11 Thread Vincent Jenks
I'm still getting used to the way wicket utilizes querystring values for requests...how would one use querystrings to pass values around to pages?  I can't find a simple answer to that in the documentation.Thanks! -v

Re: [Wicket-user] impressed w/ performance!

2006-03-11 Thread Vincent Jenks
d even when the model is rolled back on a back button that session is useless ) hope this clarifies some things.-Igor On 3/11/06, Vincent Jenks <[EMAIL PROTECTED] > wrote:OK, I ran a test using the small CLI app "siege".  I don't know how reliable this test is but the results

Re: [Wicket-user] Wicket community...

2006-03-11 Thread Vincent Jenks
l.The first book based on 1.2 will be out this summer.JuergenOn 3/11/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:> I've noticed that there's not been a Wicket release in about 6 mo. - is> Wicket being actively developed?  From what little experimentation I've done&g

Re: [Wicket-user] Wicket community...

2006-03-11 Thread Vincent Jenks
tion (zero to-date.) -vOn 3/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote: also just look at this url:https://sourceforge.net/mailarchive/forum.php?forum_id=42353 can't say nothing is happening :)johan On 3/11/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: That's what I was hop

Re: [Wicket-user] query strings...

2006-03-11 Thread Vincent Jenks
se bookmarkable pages used pageparameters like juergen pointed out.If you just use links and you do new Page() yourself.Then just hold that state on the server side like setResponsePage(new MyPage(x,y,z)) johanOn 3/11/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: I'm still getting used to the w

Re: [Wicket-user] impressed w/ performance!

2006-03-11 Thread Vincent Jenks
ferent db's stack up w/ JBoss EJB3. -vOn 3/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote: can you do these test with the current 1.2 code?there are a lot of performance enhancements in 1.2, but ofcourse there are added functionality so don't know exactly how it did turn ou

Re: [Wicket-user] Wicket community...

2006-03-11 Thread Vincent Jenks
or the lack of documentation via our activiy on this list and irc, and the upcoming book. -IgorOn 3/11/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: Absolutely, there's definitely growing buzz on some of the java sites I frequent too (javalobby, java.net, etc.) which is where I first he

[Wicket-user] nesting components

2006-03-13 Thread Vincent Jenks
I'm trying to nest a Label within a Link so the name of the link displayed is dynamic (please fill me in if there's a better way.)Here's my Link & Label on the page:link Here's the panel class:public class TrailPanel extends Panel{    public TrailPanel(String id, String linkName)    {        super(

Re: [Wicket-user] nesting components

2006-03-13 Thread Vincent Jenks
same level.EelcoOn 3/13/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:> I'm trying to nest a Label within a Link so the name of the link displayed > is dynamic (please fill me in if there's a better way.)>> Here's my Link & Label on the page:>> > wicket

[Wicket-user] FormInputModel not found?

2006-03-14 Thread Vincent Jenks
I'm trying to simply submit a form (Wicket 1.1.1) and I'm using the wicket-examples-1.1.1...where it shows a constructor that uses a FormInputModel class:"super(name, new CompoundPropertyModel(new FormInputModel()));" However, I'm getting this error:"FormInputModel cannot be resolved to a type"Look

Re: [Wicket-user] FormInputModel not found?

2006-03-14 Thread Vincent Jenks
ples.forminput. it is in 1.1.1.it is a simple bean where the form can save its values. you need to create one for your own form. -Igor On 3/14/06, Vincent Jenks <[EMAIL PROTECTED] > wrote: I'm trying to simply submit a form (Wicket 1.1.1) and I'm using the wicket-examples-1.1.1...w

Re: [Wicket-user] FormInputModel not found?

2006-03-14 Thread Vincent Jenks
es. we had no such thing in the example so we created the bean. -IgorOn 3/14/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: Oh I see, I hadn't noticed that, sorry.  So it's similar to the "managed bean" concept in JSF?  That was one of the things I *didn't* like ab

Re: [Wicket-user] FormInputModel not found?

2006-03-14 Thread Vincent Jenks
ntities, would I?  You'll have to forgive my ignorance, I just started using EJB3 about a week ago. On 3/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: On 3/14/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:> Oh I see, I hadn't noticed that, sorry.  So it's similar to t

Re: [Wicket-user] FormInputModel not found?

2006-03-14 Thread Vincent Jenks
o apply the values back into its model your entity will be loaded - and values from individual form components applied via settershope this clarifies it some. we have tried to optimize our form workflow to make it as easy as possible. -Igor On 3/14/06, Vincent Jenks <[EMAIL PROTECTED] > wrote: Y

[Wicket-user] validating input

2006-03-14 Thread Vincent Jenks
I just built a form that has a mixture of TextField, TextArea, and CheckBox components in it.  I am now adding validation to get a feel for how it works but am confused.I found that I could substitute a TextField with a RequiredTextField and validation was *extremely* simple to setupif you're u

Re: [Wicket-user] validating input

2006-03-14 Thread Vincent Jenks
there are some common validators in there and its real easy to write a custom one yourself.  I think you'll find that validation in wicket is as easy as you were hoping. - Original Message - From: Vincent Jenks To: wicket-user@lists.sourceforge.net Sent: Tuesday, March 14,

[Wicket-user] DataView (extentions)

2006-03-14 Thread Vincent Jenks
So, I'm trying to use a DataView so I can page a collection of objectsfrom a session bean.I create the List collection (loadingModel) and pass it into the DataView:DataView productsDataView = new DataView("productsDataView", loadingModel) ...but I'm getting an exception at runtime:"Caused by: java.

Re: [Wicket-user] DataView (extentions)

2006-03-14 Thread Vincent Jenks
re is no (String,List) constructor.there are examples of dataview and datatable under wicket-examples/repeaters -IgorOn 3/14/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: So, I'm trying to use a DataView so I can page a collection of objectsfrom a session bean. I create the List collection

Re: [Wicket-user] DataView (extentions)

2006-03-14 Thread Vincent Jenks
& sorting w/o any extra work.  Something like that would be really convenient. On 3/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: are you using 1.1 ? or 1.2 ?there used to be a constructor that took model in 1.1 i think. the model object must be of type IDataProvider.-Igor On 3/14/06

Re: [Wicket-user] DataView (extentions)

2006-03-15 Thread Vincent Jenks
L PROTECTED]] On Behalf Of Igor Vaynberg Sent: Tuesday, March 14, 2006 5:21 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] DataView (extentions)   there is also a DataTable component which wraps DataView+paging+sorting. -Igor On 3/14/06, Vincent Jenks < [EMAIL PROTEC

[Wicket-user] trying to understand concept...

2006-03-15 Thread Vincent Jenks
I'm trying to wrap my head around how I would create a page where I could either edit an existing record or create a new one.Currently, I've got a form where I can add a record to the database - that part is working great.  I'd like to refactor it now to also edit an existing record, if there is on

[Wicket-user] simple nested component question

2006-03-15 Thread Vincent Jenks
So, let's say I've got a ListView and in it I need to nest other components...in my case a Link.  Obviously, the id for that Link becomes duplicated after more than one record exists and throws an exception.  What's a simple way around this? Thanks!

Re: [Wicket-user] trying to understand concept...

2006-03-15 Thread Vincent Jenks
nt have to use the default constructor. the default/PageParameters constructor is only needed if this page is going to be accessed through a bookmarkable url. outside of that you are welcome to use any constructor you want. -IgorOn 3/15/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: I'm t

Re: [Wicket-user] simple nested component question

2006-03-15 Thread Vincent Jenks
0.mylinklistview.1.mylinketc-Igor On 3/15/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: So, let's say I've got a ListView and in it I need to nest other components...in my case a Link.  Obviously, the id for that Link becomes duplicated after more than one record exists and throws

Re: [Wicket-user] Newbie question: applying dynamic form component with ListView

2006-03-15 Thread Vincent Jenks
So, in a nutshell, my code could be refactored to eliminate the need for Label objects in each row and in their place, use the model objects?On 3/15/06, Jonathan Cone <[EMAIL PROTECTED]> wrote: Hi Michael,   One thing that I personally think is important to understanding ListView is knowi

Re: [Wicket-user] trying to understand concept...

2006-03-15 Thread Vincent Jenks
structor. when you do setResponsePage(new MyPage())  you create the instance yourself with any constructor you want and a non-bookmarkable url will be used. -IgorOn 3/15/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: I see, I'll try it again.  So, that being said, when can I be sure I&#x

Re: [Wicket-user] trying to understand concept...

2006-03-15 Thread Vincent Jenks
/only/ pages you can call yourself are the bookmarkable pages that have a stable url.the ?path... urls are internal and the same url can point to different pages dependent on what the session state is. you should never call those urls directly. -IgorOn 3/15/06, Vincent Jenks < [EMAIL PROTECTED

Re: [Wicket-user] trying to understand concept...

2006-03-15 Thread Vincent Jenks
Ahh OK OK, the light came on...I added this for a default ctor and it works just how I want:    public EditProduct()    {        this(null);    }On 3/15/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: I don't call them directly *with* the querystring...I called this up in a bro

Re: [Wicket-user] trying to understand concept...

2006-03-15 Thread Vincent Jenks
use PageParameters or the default constructor. -IgorOn 3/15/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: Ahh OK OK, the light came on...I added this for a default ctor and it works just how I want:    public EditProduct()    {        this(null);     }On 3/15/06, Vincent Jenks <[EMAIL PRO

[Wicket-user] formatting

2006-03-15 Thread Vincent Jenks
I thought I had read that wicket has some formatting capabilities?  Am I mistaken?  Or, am I left to use Java's formatting capabilities?Thanks!

Re: [Wicket-user] formatting

2006-03-15 Thread Vincent Jenks
formatting displayed valuesdollars, number of decimal points, dates, etc.On 3/15/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:formatting? -IgorOn 3/15/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: I thought I had read that wicket has some formatting capabilities?  Am I mistaken?  O

[Wicket-user] objects in session

2006-03-16 Thread Vincent Jenks
If objects used in a page are stored in a session, how do I access those objects when I redirect to a new page?  Say I have public users who login and I want to display their name on pages and keep their user info in-session...on each page, how would I call those values? Thanks!

Re: [Wicket-user] objects in session

2006-03-16 Thread Vincent Jenks
)getSession()).getUsername();   Make sense?   - Original Message - From: Vincent Jenks To: wicket-user@lists.sourceforge.net Sent: Thursday, March 16, 2006 5:01 PM Subject: [Wicket-user] objects in session If objects used in a page are stored in a session, how do

Re: [Wicket-user] objects in session

2006-03-16 Thread Vincent Jenks
make something that behaved more like the HttpSession when used in JSP/Servlets...but then I've got to override getSessionFactory() in every Application class I want to use it in. Anyhow, thanks for your help!On 3/16/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: yep. -IgorOn 3/16/0

Re: [Wicket-user] objects in session

2006-03-16 Thread Vincent Jenks
o encourage type safety. furthermore the session is also used to store application logic, like logic related to authentication/authorization or anything else youd like. it is not a simple Map like http session, it can be much much more. -IgorOn 3/16/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: Just

Re: [Wicket-user] objects in session

2006-03-17 Thread Vincent Jenks
wicket create it for you (thats why you return a factory)so in your page:UserSession session=(UserSession)getSession(); sometimes nice to have this wrapped in a basepage.-IgorOn 3/16/06, Vincent Jenks <[EMAIL PROTECTED] > wrote:I see, well I'm not complaining but my point is; it's ju

Re: [Wicket-user] objects in session

2006-03-17 Thread Vincent Jenks
What about removing objects from the session?  Simply use the setter to set to null?  Will that clear it?On 3/17/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:Yep, my mistake, thanks!  It works fine.  I guess it'll take some getting used to but it's not all that bad. -vOn 3/16/06

Re: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Vincent Jenks
If I might ask, what are the known (major) problem-areas, if any, in Wicket 1.2?  What are the serious known bugs?  I'd like to be developing in 1.2 myself but if there are some serious problems, I'd rather wait.My project is due to go into production in *exactly* one month...so I'm not sure if I s

Re: [Wicket-user] objects in session

2006-03-17 Thread Vincent Jenks
public void setUser(User user)    {         this.user = user;     dirty();    }johan On 3/17/06, Vincent Jenks <[EMAIL PROTECTED] > wrote:Yep, my mistake, thanks!  It works fine.  I guess it'll take some getting used to but it's not all that bad. -vOn 3/16/06, Igor

Re: [Wicket-user] objects in session

2006-03-17 Thread Vincent Jenks
ROTECTED] > wrote:no it means that the session will be replicated when you use clustering. So it will update itself in the httpsession. yes just clear a reference and call dirty() this will ofcourse remove the object from the session. johanOn 3/17/06, Vincent Jenks < [EMAIL PROTECTED]> wrote

[Wicket-user] problem w/ DropDownChoice

2006-03-17 Thread Vincent Jenks
I'm trying to create a DropDownChoice select list based on a List of entity beans I'm pulling from EJB3.  I'm following the example in the wicket-examples code but it's not working for me.I'm try do to it this way, per the example code:             add(new DropDownChoice("productCategory", catsMode

Re: [Wicket-user] problem w/ DropDownChoice

2006-03-17 Thread Vincent Jenks
d'oh!  Sorry, been at wicket all day...the brain is turning to pudding.On 3/17/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:problem is here: new IChoiceRenderer()) <== remove that extra parenthesis :) -IgorOn 3/17/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:I'm trying t

Re: [Wicket-user] objects in session

2006-03-17 Thread Vincent Jenks
rowser should support cookies or url rewriting so that it can track the session.all examples (see sign and so on) work that way so i din't know what you do wrong. johanOn 3/17/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: This still isn't working how I would have expected... So I&#x

Re: [Wicket-user] objects in session

2006-03-17 Thread Vincent Jenks
        if (user != null)        {            if (user.getUserGroup().getAccessLevel() < 1)                throw new RestartResponseAtInterceptPageException(Login.class );        }        else         {               throw new RestartResponseAtInterceptPageException(Login.class);        }johan On 3/18/06, Vince

[Wicket-user] onSubmit vs onClick for form submission

2006-03-19 Thread Vincent Jenks
So, I'm trying to figure out if I should do with my form buttons.  I have two buttons ('save' and 'cancel') but only the onSubmit event handler is fired.  I have a button inside of the form's constructor that has an onClick event but that never happens...apparently because the onSubmit 'trumps' the

Re: [Wicket-user] onSubmit vs onClick for form submission

2006-03-19 Thread Vincent Jenks
Alright, did that, now the button doesn't do anything at *all*.Here's the HTML button:...and the event handler:             add(new Button("cancelButton")            {                public void onClick()                {                    setResponsePage(new Home());                }            }

Re: [Wicket-user] onSubmit vs onClick for form submission

2006-03-19 Thread Vincent Jenks
Funny seeing you here!  When are we gonna see Wicket support in MyEclipse buddy? ;)On 3/19/06, Riyad Kalla <[EMAIL PROTECTED] > wrote:Don't you need to commit the response?(just a lame guess from the servlet world) On 3/19/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:> Alrigh

[Wicket-user] EJB3/Hibernate Lazy fetching...

2006-03-20 Thread Vincent Jenks
OK, so I'm in a bit of a quagmire.I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibernate as the persistence behind EJB3.Unless I set all of my parent/child object relationship annotations to EAGER fetching...I get this error: "org.hibernate.LazyInitializationException: failed to lazily initi

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-03-20 Thread Vincent Jenks
s cant load any child collections. -IgorOn 3/20/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: OK, so I'm in a bit of a quagmire.I'm using Wicket + EJB3 (JBoss 4.0.4RC1) which uses Hibernate as the persistence behind EJB3.Unless I set all of my parent/child object relationship annota

Re: [Wicket-user] onSubmit vs onClick for form submission

2006-03-20 Thread Vincent Jenks
"cancel") { onsubmit() { //navigate away here } }.setDefaultFormProcessing(false)); notice the call to setDefaultFormProcessing(false) on the cancel button. this will tell wicket that when this button is pressed it should not validate/update model instead go directly to the button's on

Re: [Wicket-user] onSubmit vs onClick for form submission

2006-03-20 Thread Vincent Jenks
I "fixed" this by using Form.onSubmit() for the save button and keeping the cancel button the same...now both work just fine...but not exactly as Igor described.Good enough! On 3/20/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: OK, believe it or not, I did just that and *still*

Re: [Wicket-user] HTTPS switching

2006-03-22 Thread Vincent Jenks
I'm actually dying to know this myself as I'm in the throes of building a shopping cart that will need SSL at some point in the process.Can this in fact be done?  Can part of my application somehow reside behind https? I'm sure it's been asked before but I don't see any examples of this anywhere.Th

[Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
I've got a form where I can't exactly bind a model object because of the way the form is used.  On this page, the user selects from a list of product configurations (ProductConfiguration class) which belong to a Product objectso there is a one-to-many Product->ProductConfiguration.  I can't pas

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
ot/mockup of the form? seeing it would help.so there is a list of configurations? and the user can click on one and edit it? -IgorOn 3/24/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: I've got a form where I can't exactly bind a model object because of the way the form is used.  On th

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
ere is really no way to use a compound property model. here is what you can do:on your page create a map:configid->qtythen to the dropdown choices assign a model that will read/write a key from this map. so when the form submits you endup with a filled in map in your page.makes sense?-Igor On 3/2

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
return selection.get(catId);   }   }  add(new DropDownChoice("qty", selectionModel, .)     }  }); form.add(new Button() { onSubmit() { System.out.println(selection.toString()); } }...-Igor On 3/24/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: It makes sense but I wouldn't know ho

Re: [Wicket-user] gnarly form model issue

2006-03-24 Thread Vincent Jenks
OK, I'll try itthanks for the help!  But, to answer my question - Is there a way to access each of the form fields as stand-alone variables?On 3/24/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: OK, I'll try itthanks for the help!  But, to answer my question - Is there a wa

Re: [Wicket-user] users: your opinions please! (was: feedback messages)

2006-03-25 Thread Vincent Jenks
I can see info, warn, & error as useful, others maybe a little redundant.On 3/25/06, Michael K <[EMAIL PROTECTED] > wrote:I m using 'error'. Ingram Chen <[EMAIL PROTECTED]> wrote: info & errorOn 3/26/06, lu dongping < [EMAIL PROTECTED]> wrote: info & errorOn 3/26/06, Nick Heudecker < [EMAIL PROTEC

Re: [Wicket-user] gnarly form model issue

2006-03-25 Thread Vincent Jenks
ModelObject()-Igor On 3/24/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:OK, I'll try itthanks for the help!  But, to answer my question - Is there a way to access each of the form fields as stand-alone variables?On 3/24/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: OK, I'll tr

Re: [Wicket-user] gnarly form model issue

2006-03-26 Thread Vincent Jenks
    setObject(Component c, Object o) {        selection.put (catId, (Integer)o);    }    Object getObject(Component c) {   return selection.get(catId);   }   }  add(new DropDownChoice("qty", selectionModel, .)     }  }); form.add(new Button

Re: [Wicket-user] gnarly form model issue

2006-03-26 Thread Vincent Jenks
came from the product configuration you are iterating over in the listview. it is not encoded in the dropdown but rather in the model that you attach to it. take a closer look. -IgorOn 3/26/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: OK, I finally sat down and tried to work through

Re: [Wicket-user] gnarly form model issue

2006-03-26 Thread Vincent Jenks
de. if you do what i showed you, after the form submits you would have a map where keys are the product configuration ids and values are the quantities selected. is that not what you want??? a map:productConfigurationId->quantity? -Igor On 3/26/06, Vincent Jenks <[EMAIL PROTECTED] >

Re: [Wicket-user] Need session subclass example

2006-03-27 Thread Vincent Jenks
There's a great example of how to do this (which I followed successfully) in wicket-examples.  See the SignIn example code.On 3/27/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: I understand that the Wicket way to store data in the session is to subclass WicketSession and overrid

Re: [Wicket-user] Html Resources Configuration in WebApplication subclasses

2006-03-29 Thread Vincent Jenks
Is there a performance hit for customizing the location of the html files?  I thought I had read that somewhere in the wiki, once upon a time.On 3/29/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: please see wicket-example  customresourceloadingJuergenOn 3/29/06, Bruno Borges <[EMAIL PROTECTED]

[Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-29 Thread Vincent Jenks
I'm sitting here, pondering, and getting fatter.  I'm building a storefront app w/ a simple shopping cart for which I'm thinking of using a Stateful session bean (EJB 3.0).It looks like, no matter how I look at it, I'll have to keep the SFSB stub in-session throughout its use in the application...a

Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Vincent Jenks
tter in my custom UserSession class?  Wouldn't that be safe? On 3/29/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: you can inject the proxy into any componentlook at wicket-spring projectyou can create a IFieldValueFactory that injects a proxy for your stateful bean. -Igor On 3/29/06,

Re: [Wicket-user] Re: TabbedPanel, InputForm and submit

2006-03-30 Thread Vincent Jenks
That'd be awesome, I could use something like this!On 3/30/06, Martijn Dashorst <[EMAIL PROTECTED] > wrote:Feel free to contribute! You now know how to do it, write a (small) document about it and put it on our wiki! MartijnOn 3/30/06, Stefan Lindner <[EMAIL PROTECTED]> wrote: Once again thanks f

Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Vincent Jenks
e wiki to see why the proxies exist and how they work.wicket-spring provides an elegant solution, but only a tiny portion of it is spring related. -Igor On 3/30/06, Vincent Jenks <[EMAIL PROTECTED] > wrote: I'd rather not introduce spring as yet another dependency on this project...especially

Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-30 Thread Vincent Jenks
ferences. if you already have it in session somewhere then its ok.-Igor On 3/30/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:OK, I'll check into it, thanks.  Meanwhile, if I *did* want to...I could pass the cart stub around in the constructors, couldn't I?  Or, is this somehow not safe

[Wicket-user] can't get rid of "Choose One" in DropDownChoice

2006-03-30 Thread Vincent Jenks
The code...        //create calendar        List days = DateTime.getDaysListForward(2, 4);                //add quantity select list                                form.add(new DropDownChoice("arrivalDate", days, new IChoiceRenderer()         {            protected String getDefaultChoice(final Obj

Re: [Wicket-user] EJB3 Stateful SB - session issues/questions

2006-03-31 Thread Vincent Jenks
things into session > that you dont want serialized, etc. since this is a session bean that means > it is in session already anyways, so you should be ok passing it around in> wicket.>>> -Igor>>> On 3/30/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:> >> &

Re: [Wicket-user] can't get rid of "Choose One" in DropDownChoice

2006-03-31 Thread Vincent Jenks
  {    return object.toString();    }       });       form.add(arrivalChoices);On 3/30/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:you are putting getDefaultChoice into the renderer, when it actually belongs in the DropDownChoice -IgorOn 3/30/06,

[Wicket-user] bind Map to DropDownChoice

2006-03-31 Thread Vincent Jenks
I'm trying to get a Map of data so I can have the key be the value of the dropdown options and the value of the Map item be the value of the option in the dropdown.  Problem is, it doesn't look like DropDownChoice will accept a Map...unless I'm doing it wrong? Is a Map the best way to go?  I was ma

Re: [Wicket-user] Wicket/Tomcat configuration: Where is System.out ???

2006-03-31 Thread Vincent Jenks
Of course this happens while debugging too and can drive you nuts until you realize you've goofed.Since I use MyEclipse...I like to use println statements occasionally and just watch them roll by in the Console panel...you could do this w/ Netbeans or any other IDE, I'm sure.  That is - if you're a

Re: [Wicket-user] wicket tv commercial?

2006-03-31 Thread Vincent Jenks
ha!  It was only a matter of time until Wicket went to "the big show".On 3/31/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: http://www.chevyapprentice.com/view.php?country=us&uniqueid=c4911602-1265-1029-98eb-0013724ff5a7

Re: [Wicket-user] bind Map to DropDownChoice

2006-04-01 Thread Vincent Jenks
uld do is give the map to the ChoiceRenderer impland give the keys of the map as a list to the Choice. johanOn 3/31/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: I'm trying to get a Map of data so I can have the key be the value of the dropdown options and the value of the Map item be

Re: [Wicket-user] can't get rid of "Choose One" in DropDownChoice

2006-04-01 Thread Vincent Jenks
don't have that default message anymore.johan On 3/31/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: yes its a bit weird. if youd like you are more then welcome to file an rfe and maybe we can clean it up in a future version.-Igor On 3/31/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:

[Wicket-user] passing IModel around

2006-04-02 Thread Vincent Jenks
I'm just testing something out.  Since I use EJB3 and need lazy initialization I'm making an attempt to see if passing an object with a collection of lazily-loaded elements in an IModel, from page-to-page, will prevent a LazyInitializationException (Hibernate). I start here in the first page:public

Re: [Wicket-user] passing IModel around

2006-04-02 Thread Vincent Jenks
d hopefully work.?On 4/2/06, Vincent Jenks <[EMAIL PROTECTED] > wrote:> I'm just testing something out.  Since I use EJB3 and need lazy> initialization I'm making an attempt to see if passing an object with a> collection of lazily-loaded elements in an IM

Re: [Wicket-user] passing IModel around

2006-04-02 Thread Vincent Jenks
getModelObject();>> Eelco>>> On 4/2/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:> > Just pass in null. The component parameter is only used by> > CompoundPropertyModel and friends, not by LoadableDetachableModel. > >> > Eelco> >> >> &

Re: [Wicket-user] passing IModel around

2006-04-03 Thread Vincent Jenks
elObject();> > >> > > Eelco> > >> > >> > > On 4/2/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:> > > > Just pass in null. The component parameter is only used by> > > > CompoundPropertyModel and friends, not by Loa

[Wicket-user] ending a response

2006-04-06 Thread Vincent Jenks
I'm convinced that I saw an example of what do to when one would like to end the response of a page and redirect to another...but I can't put my finger on it...so here's my problem:In my page I'm testing for the existence of an object...if it doesn't exist I'd like to redirec to another page...but

Re: [Wicket-user] ending a response

2006-04-06 Thread Vincent Jenks
I'm using 1.1.1, is that a 1.2 class?On 4/6/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: throw new RestartResponseException or throw new RestartResponseAtInterceptPageException depending on your needs. you pass in the page you want to restart at via exception's constructor-Igor On

Re: [Wicket-user] ending a response

2006-04-06 Thread Vincent Jenks
ion that takes a page, override onRuntimeException in requestcycle? application? and return that page from that method. that should work although im not sure. -IgorOn 4/6/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: I'm using 1.1.1, is that a 1.2 class?On 4/6/06, Igor Vaynberg <

Re: [Wicket-user] ending a response

2006-04-06 Thread Vincent Jenks
n 1.1 i guess what you can do is create your own runtimeexception that takes a page, override onRuntimeException in requestcycle? application? and return that page from that method. that should work although im not sure. -IgorOn 4/6/06, Vincent Jenks < [EMAIL PROTECTED]> wrote: I'm using 1

Re: [Wicket-user] Floating Panels - any tip

2006-04-09 Thread Vincent Jenks
A good example of this...and a very easy open source _javascript_ lib to use is called wz dragdrop:http://www.walterzorn.com/dragdrop/dragdrop_e.htm Very non-invasive and easy to use!-vOn 4/9/06, Johan Compagner <[EMAIL PROTECTED]> wrote: dragging a panel around looks to me like a complete client s

Re: [Wicket-user] Enterprise application using Wicket

2006-04-09 Thread Vincent Jenks
What argument *couldn't* be made?  Comparing JSP and Wicket is like night and day...JSP is antiquated technology in comparison.The fact that you can be many more times productive and simultaneously produce clean, manageable code is probably the top-most incentive for using Wicket. A con might be th

Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure

2006-04-09 Thread Vincent Jenks
That's tough since there is no ground-up tutorial like this when it comes to Wicket (that I know of.)  There's a Wicket book on the way from what I understand but that may not be for a few months or so?The best thing you can do is get a simple Hello World working on your local machine. 1. download

Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure

2006-04-09 Thread Vincent Jenks
se 3.2, XMLBuddy and the Merve plugin (very flakey, but it works well once you figure out its idiosyncrasies). DanielOn 4/9/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: That's tough since there is no ground-up tutorial like this when it comes to Wicket (that I know of.)  There's a

Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure

2006-04-10 Thread Vincent Jenks
at instance.  Just to give you a headstart in the flakey-ness, it all has to do with creating the Run Configuration and the webapp context dir.  :-) I would use MyEclipse if I was willing to spend the money on it.Daniel On 4/10/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:Hmm...not familiar b

Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure

2006-04-10 Thread Vincent Jenks
t really use there software. Do they have a version for 3.2M6 ?johanOn 4/10/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: Johan, I agree, the basic types that webtools provides editability for should be built into eclipse...like html, xml, _javascript_, css, etc.  However, for a beginner, insta

Re: [Wicket-user] bind Map to DropDownChoice

2006-04-10 Thread Vincent Jenks
mplesI'm using 1.1.1Thanks!On 4/1/06, Johan Compagner < [EMAIL PROTECTED]> wrote:there is no map support for this. What you could do is give the map to the ChoiceRenderer impland give the keys of the map as a list to the Choice.johan On 3/31/06, Vincent Jenks <[EMAIL PROTECTED]&g

Re: [Wicket-user] bind Map to DropDownChoice

2006-04-10 Thread Vincent Jenks
get(object);                 }                                public String getIdValue(Object object, int index)                 {                    return object.toString();                }            })); On 4/11/06, Vincent Jenks < [EMAIL PROTECTED]> wrote:Is there an example of this somewhere?  I

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
rectly...I'm using JBoss EJB3 in JBoss 4.0.4RC1...I don't have a lot of control over Hibernate...no do I want to if I want to keep my project container-independent. Thanks! On 3/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > or pass the same model :) > > > -Ig

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
s")); > > or create a simple wrapper around blogmodel directly if you dont want to use > "soft binding" and reflection. > > -Igor > > > > > On 4/11/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: > > > OK, this doesn't appear to work. I

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
cific problem not a wicket one. you need to figure out how to > tell your container to keep the underlying entity manager session open so > that lazy collections can be fetched even outside the session/stateless > bean's method invocation. > > > > > > -Igor > >

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
up("java:comp/UserTransaction"); > > But you may need to reattach beans to the session, for the lazy > collection thing to work properly. > > But ususally i just "preload" the collections, for example when i build > or attach the model, > > hth > >

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
en session in view filter. > im sure there is something similar for ejb3. > > > -Igor > > > On 4/11/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: > > Ugh...I thought once I started using a container this issue would go > > away...that was the one thing that

  1   2   3   >