Re: wicket datetime / YUI calendar

2007-09-16 Thread Nino Saturnino Martinez Vazquez Wael
Hi Im having trouble finding out how popups are actually done. It does not look at it is setup like this: http://developer.yahoo.com/yui/examples/calendar/popup.html Or it's either merged deep in some of the js scripts bundled.. as this is something we critical need, i'd really be glad for a

Re: How to render character entities such as nbsp

2007-09-16 Thread Jason Mihalick
Thanks to all for the feedback on this. I ended up solving my issue with a combination of the two approaches. I hadn't noticed the setEscapeModelStrings method, so I definitely appreciate you pointing it out. Very handy. -- Jason Eelco Hillenius wrote: > >> Is it possible to render a charac

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Dan Syrstad
Ryan: One thing I started considering today after your comments was to place annotations, similar to beanprops, on the component level (e.g., Page). Currently beanprops are associated with the Page anyway, so this would be natural and provide type-safeness without bluring the view/model line. I t

Re: DropDownChoice.setSelected(Object object)

2007-09-16 Thread Gerolf Seitz
to state the obvious (after the replies of eelco and martijn): you'd only use the approach i mentioned before if you don't use CompoundPropertyModel or PropertyModel. gerolf On 9/16/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > you have to set the model of the dropdownchoice. > let's say you

Re: Calling Methods based on page parameters

2007-09-16 Thread darrengreer
Using the case system, putting them at top would be interesting. I'd have to constantly reclassify. Unless of course, I were to start at say 500, and work my way down. Thanks again. David Bernard-2 wrote: > > If you use if or switch, put at the top the most used. > Using if/else could seem l

Re: DropDownChoice.setSelected(Object object)

2007-09-16 Thread Martijn Dashorst
Have you read http://wicket.apache.org/exampledropdownchoice.html ? Martijn On 9/16/07, chickabee <[EMAIL PROTECTED]> wrote: > > Hi, > > I am looking for an equivalent to: > DropDownChoice.setSelected(Object object) > > I looked into API docs but can't figure it out. I have drop down with 18 > d

Re: DropDownChoice.setSelected(Object object)

2007-09-16 Thread Gerolf Seitz
you have to set the model of the dropdownchoice. let's say you initiated the drowdownchoice with a list of strings (eg. "a", "b", "c") and you want to pre-select "b", you call: choice.setModelObject("b"); that's it... the same concept applies if you have "complex" datatypes (eg a pojo). hth, ger

Re: DropDownChoice.setSelected(Object object)

2007-09-16 Thread Eelco Hillenius
On 9/16/07, chickabee <[EMAIL PROTECTED]> wrote: > > Hi, > > I am looking for an equivalent to: > DropDownChoice.setSelected(Object object) > > I looked into API docs but can't figure it out. I have drop down with 18 > different choices and I want to select one from either on the available > value

DropDownChoice.setSelected(Object object)

2007-09-16 Thread chickabee
Hi, I am looking for an equivalent to: DropDownChoice.setSelected(Object object) I looked into API docs but can't figure it out. I have drop down with 18 different choices and I want to select one from either on the available values based on a PageParameter received. Help please! Thanks!! --

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Eelco Hillenius
> I'm really impressed with your work, and just want to impart what's worked > *really* well for me. Good luck with whatever direction you take. One thing Dan could consider is to abstract enough so that both strategies could be supported. Doesn't mean he should ship annotations support, but it m

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Johan Karlberg
I do control my crud list and detail pages with annotations on the model, and it works quite nice (although I can't say the panels constructing the data table and form belongs in the category pretty code, at least there isn't a lot of it). I find I often use multiple views of the same model obj

Re: Capturing Form Data into Nice URL !

2007-09-16 Thread Igor Vaynberg
setresponsepage(searchpage.class, new pageparamters(proeprties)); -igor On 9/16/07, chickabee <[EMAIL PROTECTED]> wrote: > > > I have simple form: > = > private class SearchForm extends Form { > private final ValueMap properties = new ValueMap(); > private Tex

Re: Capturing Form Data into Nice URL !

2007-09-16 Thread chickabee
I found one way to do it, by using: setResponsePage(SearchPage.class, PageParameters); This worked well, Thanks.. chickabee wrote: > > I have simple form: > = > private class SearchForm extends Form { > private final ValueMap properties = new ValueMap(); >

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Ryan Sonnek
Although it may blur the lines between view and model, there are a number of reasons that it still could be the right direction. * centralized configuration. all view configuration is in the same file as your model code. * leverage Java syntax instead of custom DSL. easy for users to get up and g

Capturing Form Data into Nice URL !

2007-09-16 Thread chickabee
I have simple form: = private class SearchForm extends Form { private final ValueMap properties = new ValueMap(); private TextField querystring; public SearchForm(String id){ super(id); add(querystring = new TextField("querystrin

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Dan Syrstad
Ryan: The WWB beanprops/metadata is a view abstraction, while your bean is a part of the model. It's my opinion that putting view-based annotations on your model is Not a Good Thing. It confuses the separation of concerns. -Dan On 9/16/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > > For me data

Re: Calling Methods based on page parameters

2007-09-16 Thread darrengreer
Thanks to all. Here is what I ended up with, that is working well: Factory Class: public static Panel newComponent(int moduleId, String id) { switch (moduleId) { case 1: return new UserPanel(id); case 2: return new SignInPanel(id);

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Ryan Sonnek
> For me databinder helps cut the boilerplate code, just as WWB. I just add > annotations to my domain model, and databinder does the rest. It's WWB for > the database side of the app! Imagine putting both working together. I was > able to create CRUD pages with the least amount of code ever. Less

Re: Calling Methods based on page parameters

2007-09-16 Thread David Bernard
Hi, If you use if or switch, put at the top the most used. Using if/else could seem longer than reflection, but in the case of reflection you need to write 50+ properties. Regards. darrengreer wrote: I'm going to give it a go with the switch statement, thanks to both of you. I'll let you kno

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Zenrique Steckelberg
Dan Syrstad wrote: > > Hi Zenrique: > > See below... > -Dan > > On 9/15/07, Zenrique Steckelberg <[EMAIL PROTECTED]> wrote: >> >> >> My suggestions to this nice compont: >> - allow beanprops files to be reloaded while app is running. How it >> stands >> now I have to restart the app everytime

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Zenrique Steckelberg
Thanks Dan, I am already doing it the same way, I am just trying to avoid a database roundtrip, if possible. Thanks again! Dan Syrstad wrote: > > In the current WWB strategy, required fields are enforced in your > model/DAO > layer. For example, if you click your "Save" action, the action on

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-16 Thread Zenrique Steckelberg
Dan Syrstad wrote: > > Sounds like this may be a caching issue - I'm not sure. Can you send me > your > beanprops file directly? > -Dan > Its the following, where marca field gets it options from database, and temperaturaArmazenagem gets them from an enum: Produtos { actions: incluir

Re: Add image to DropDownChoice

2007-09-16 Thread Matej Knopp
Yeah, you can do it but afaik it doesn't work with IE. -Matej On 9/16/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > which you can apply with css and offset the text so it looks like > has an icon asociated with it ala jira. > > -igor > > > On 9/16/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > >

Re: Calling Methods based on page parameters

2007-09-16 Thread darrengreer
I'm going to give it a go with the switch statement, thanks to both of you. I'll let you know how it goes. Of course, if you can just use numbers, then you can just use switch()... /Gwyn -- View this message in context: http://www.nabble.com/Calling-Methods-based-on-page-parameters-tf444811

Re: Add image to DropDownChoice

2007-09-16 Thread Igor Vaynberg
which you can apply with css and offset the text so it looks like has an icon asociated with it ala jira. -igor On 9/16/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Images inside drop down choices? I don't think any browser supports > such thing. Maybe some could support background-image attr

Re: Add image to DropDownChoice

2007-09-16 Thread Matej Knopp
Images inside drop down choices? I don't think any browser supports such thing. Maybe some could support background-image attribute of ... -Matej On 9/16/07, bebetu <[EMAIL PROTECTED]> wrote: > > I am trying to embed images into options of a DropDownChoice but I haven't > succeeded so far nor I c

Re: Calling Methods based on page parameters

2007-09-16 Thread Gwyn Evans
My expectation would be that it wouldn't be significant/noticeable, but it should be easy enough to knock up a test to confirm and quantify that... Of course, if you can just use numbers, then you can just use switch()... /Gwyn On Sunday, September 16, 2007, 1:01:02 PM, darrengreer <[EMAIL PROTE

Re: Calling Methods based on page parameters

2007-09-16 Thread darrengreer
Thanks David. On implementing the first method you mention here below, I have one follow-up question. If, at some point, I have a 50+ different if/then statements, would there be a noticeable performance impact? David Bernard-2 wrote: > > To implement the method, I see 2 ways: > 1/ a list of

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-16 Thread Martijn Dashorst
On 9/16/07, "C. Bergström" <[EMAIL PROTECTED]> wrote: > Can we get a link from > http://wicket.apache.org/community.html > to > http://cwiki.apache.org/confluence/display/WICKET/Community+meetups Done. Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is rel

Inter Application Session (Same Context)

2007-09-16 Thread Ramazan Pekin
Hi, In the same context, how can I provide inter application session? when I reach to new application with wicket.Link session is passing to new application, when I try this with html link it needs signin again. request request - Yahoo! kullaniyo

Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-16 Thread C. Bergström
Gerolf Seitz wrote: > On 9/15/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > >> because it seems there can be quite a lot of people >> i have to look around where to do it. and also what kind of day >> because this many people then 2,3 hours in the evening is maybe a bit to >> little time. >>

Re: Question With Detachable Models

2007-09-16 Thread Jonathan Locke
we're just quibbling over what "stored in the session" means. if we mean (as it seems obvious i did) "is it reachable through the wicket session on the web node and does it take up memory on that node" then yes it is in some sense it is "stored in the (wicket) session" (it's there in the debugge

Re: Question With Detachable Models

2007-09-16 Thread Kent Tong
Kent Tong wrote: > > Yeah, it is in there because it hasn't been serialized and deserialized. > If your code was like: public class QueryDetachableModel extends LoadableDetachableModel { public QueryDetachableModel(Object instance) { super(instance); }

Re: Number of available parameters in IndexedParamUrlCodingStrategy

2007-09-16 Thread Kent Tong
james yong wrote: > > I am using IndexedParamUrlCodingStrategy. Is there is a good way to check > the number of available parameters? Currently i have to use > getString("0"), getString("1") etc. to check for null before I arrived at > the size of the available parameters. > Have you tried:

Re: Question With Detachable Models

2007-09-16 Thread Kent Tong
carloc wrote: > > Somehow, it seems that transient objects are stored in the session. > WHen I try to look at the session in eclipse's debug mode, > I can actually see my User object in there even though I marked as > transient. > Yeah, it is in there because it hasn't been serialized and des