Re: Adding a User Object to the Component Class

2009-11-26 Thread Igor Vaynberg
datatable.setmetadata(mykey, myobject); .. somewhere in a component under datatable public mytype findreference() { datatable table=findparent(datatable.class); return table.getmetadata(mykey); } -igor On Thu, Nov 26, 2009 at 11:02 PM, Keith Bennett wrote: > Igor - > > Thanks for re

Re: Adding a User Object to the Component Class

2009-11-26 Thread Martijn Dashorst
Adding another reference to component would increase the memory footprint for all users. You are the first one to ask so there's little to no demand for it. Wicket already has a default object slot: the model. If that doesn't solve your problem use the metadata. Martijn On Friday, November 27, 20

Re: Adding a User Object to the Component Class

2009-11-26 Thread Keith Bennett
Igor - Thanks for responding. The User solution would work where all components would share the same reference, but I need each table would have its own reference. Also, I was thinking it would be nice for each component to have its own Object. I realize I could have been clearer about th

Re: Can I Suppress Type Conversion Feedback Messages?

2009-11-26 Thread Igor Vaynberg
override convertinput() on that textfield and do not throw a conversion exception -igor On Thu, Nov 26, 2009 at 6:26 PM, Keith Bennett wrote: > Hi all... > > We have a form that has a table, and the table has a column that is > populated with TextField's.  When there are nonnumeric characters >

Re: Navigating Wicket DataTable's

2009-11-26 Thread Igor Vaynberg
datatable { populateitem(item i) { int col=i.getindex(); int row=i.getparent(Item.class).getindex(); } } -igor On Thu, Nov 26, 2009 at 7:27 PM, Keith Bennett wrote: > Hi, all.  I'd like some feedback as to whether my need is already addressed > in Wicket, or, if not, if I'm on the right

Re: Adding a User Object to the Component Class

2009-11-26 Thread Igor Vaynberg
create your own subclass of websession that holds the user and then anywhere within a wicket request you can get to it via: ((MySession)Session.get()).getUser() -igor On Thu, Nov 26, 2009 at 6:20 PM, Keith Bennett wrote: > All - > > I'm coding a Wicket table and would like all the components in

Re: WicketSessionFilter and several domains

2009-11-26 Thread Fernando Wermus
Bas, I will try to explain what it is going on with this scenario (anyway I think you understood). 1. an user logs in the site using .com.ar 2. the user gets a flex component in the site's page. The flex component is compiled to point to .com services. 3. the flex component asks a specific

Navigating Wicket DataTable's

2009-11-26 Thread Keith Bennett
Hi, all. I'd like some feedback as to whether my need is already addressed in Wicket, or, if not, if I'm on the right track with some code I've written to address this need. I've been working with a DataTable and need to be able to query it for things like: For a given component: * What

Can I Suppress Type Conversion Feedback Messages?

2009-11-26 Thread Keith Bennett
Hi all... We have a form that has a table, and the table has a column that is populated with TextField's. When there are nonnumeric characters in several of these fields, we get an error message in the feedback panel for each offending field. We'd rather combine them into a single messa

Adding a User Object to the Component Class

2009-11-26 Thread Keith Bennett
All - I'm coding a Wicket table and would like all the components in the table to have access to a specific reference. Another framework I worked with a very long time ago (Vermont Views, I believe) addressed this by providing a user pointer in the class that could be used for any purpose

Re: PropertyModels *without* strings

2009-11-26 Thread James Carman
The proxy-based approach runs into problems when the return types of the "getters" are final or non-proxyable in some way (at least for nested properties). We discussed this idea of "recording" the property expression (and I even wrote some code in Commons Proxy for it). I even proposed an entire

Re: Jawr links rendering in Wicket

2009-11-26 Thread ibrahim CHAEHOI
Hi, Thanks igor for your reply. I think that I will follow your suggestion and I will use the IComponentResolver. Cheers, Ibrahim On Thu, Nov 26, 2009 at 10:45 PM, Igor Vaynberg wrote: > nothing wrong with using icomponentresolver, > > we already have which is analogous to > which does our ow

Re: Jawr links rendering in Wicket

2009-11-26 Thread Igor Vaynberg
nothing wrong with using icomponentresolver, we already have which is analogous to which does our own transformations, so you can take a look at how that is implemented. see WicketLinkResolver and WicketTagHandler -igor On Thu, Nov 26, 2009 at 12:51 PM, ibrahim CHAEHOI wrote: > Hi all, > > I

Re: PropertyModels *without* strings

2009-11-26 Thread Pieter Degraeuwe
Some time ago I was experimenting with lambdaJ. It uses the proxy way to obtain the propertyName. This way, your code could look like new TextField("orderNumber", new SafePropertyModel(target, property(on(Order.class).getOrderNumber(; If there is interest in this thing, I'm willing to contri

Jawr links rendering in Wicket

2009-11-26 Thread ibrahim CHAEHOI
Hi all, I'm working on Jawr, a java library, which handle the bundling and compressing process for web resources. ( https://jawr.dev.java.net/ ) I would like to know the best way to integrate Jawr in Wicket. In fact, Jawr generates a custom URL for a specific resource bundle. For example, if you

AW: PropertyModels *without* strings

2009-11-26 Thread Giambalvo, Christian
Lombok looks preety cool. I think i will use it cause it saves a lot of typing and holds equals and hashcode in sync. -Ursprüngliche Nachricht- Von: Gerolf Seitz [mailto:gerolf.se...@gmail.com] Gesendet: Donnerstag, 26. November 2009 19:36 An: users@wicket.apache.org Betreff: Re: Proper

RE: dynamic adding media player files

2009-11-26 Thread Ed _
http://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html found the solution here. _ Windows 7: It works the way you want. Learn more. http://www.microsoft.com/Windows/windows-7/d

Re: PropertyModels *without* strings

2009-11-26 Thread Gerolf Seitz
that's why i was wondering about a lombok based bindgen implementation, since lombok is available as apt processor and eclipse plugin :) On Thu, Nov 26, 2009 at 5:13 PM, Igor Vaynberg wrote: > you guys are missing the point. Bindgen is a *standard apt processor*. > it is not an eclipse plugin. a

RE: dynamic adding media player files

2009-11-26 Thread Ed _
I need to add the following in a div AudioPlayer.embed("player", { soundFile: "/mylocation/mymusic.mp3" }); wtithe the soundFile dynamically changing. thx > From: ed_b...@hotmail.com > To: users@wicket.apache.org > Subject

dynamic adding media player files

2009-11-26 Thread Ed _
I am trying to dynamically add a media player to a page. How to I add the content to the html since the media files are going to be picked from the db. Is there a way to use WebMarkUpContainerWithAssociatedMarkup for this. Essentially want to provide the contents of a div. thanks!

Re: PropertyModels *without* strings

2009-11-26 Thread Igor Vaynberg
you guys are missing the point. Bindgen is a *standard apt processor*. it is not an eclipse plugin. all major IDEs have support for annotation processors baked in. refactoring support is definetely *possible*, but it would require an actual IDE pliugin. -igor On Thu, Nov 26, 2009 at 5:20 AM, Mar

Re: PropertyModels *without* strings

2009-11-26 Thread Nicolas Melendez
very cool, i like propertyModels more than Compounds :) NM On Thu, Nov 26, 2009 at 11:09 AM, James Carman wrote: > I figured there had to be support for that. Very cool > > On Thu, Nov 26, 2009 at 8:14 AM, Johan Compagner > wrote: > > > http://help.eclipse.org/help32/index.jsp?topic=/org.eclip

Re: PropertyModels *without* strings

2009-11-26 Thread James Carman
I figured there had to be support for that. Very cool On Thu, Nov 26, 2009 at 8:14 AM, Johan Compagner wrote: > http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html > > On Thu, Nov 26, 2009 a

Re: PropertyModels *without* strings

2009-11-26 Thread Martin Makundi
Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to the person that does it. ** Martin 2009/11/26 Johan Compagner : > http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html > >

Re: PropertyModels *without* strings

2009-11-26 Thread Johan Compagner
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html On Thu, Nov 26, 2009 at 13:52, James Carman wrote: > Refactoring could definitely be supported in IDEA. With the Hibernate > support, when

Re: PropertyModels *without* strings

2009-11-26 Thread Gerolf Seitz
On Thu, Nov 26, 2009 at 1:52 PM, James Carman wrote: > The configuration files are changed for you. I don't know how eclipse > works with this kind of > stuff, but IDEA definitely has hooks for this kind of stuff. > > if you refactor->rename a class, you can have eclipse look for the FQCN in comm

Re: PropertyModels *without* strings

2009-11-26 Thread James Carman
Refactoring could definitely be supported in IDEA. With the Hibernate support, when you change a property name it will change your mapping hbm.xml (yes, we still use them) files for you automatically. Same thing happens with the Spring support. The configuration files are changed for you. I don

Re: PageParameters an URLEncode

2009-11-26 Thread Anton Veretennikov
I really want to know how to encode-decode params in new PageParamters() calls. Do I need to use WicketURLEncoder and WicketURLDecoder? If so, how? -- Tony On Tue, Nov 24, 2009 at 1:56 PM, Anton Veretennikov wrote: > Hi! > > Sorry for simple question. > Do we need URLEncode when we use > > new

Re: PropertyModels *without* strings

2009-11-26 Thread Johan Compagner
the pro's of this compared to the SafeProperty is that the safe property needs to generate proxies at runtime so you need CGLIB and you could have issues with final classes this is more a develop environment solution which is because of that a bit nicer. On Thu, Nov 26, 2009 at 10:53, Maarten Bos

Re: Component.setLabel and tags

2009-11-26 Thread Xavier López
Just found out a component that does what I proposed below more cleanly: SimpleFormComponentLabel. I'll finally be using this component, and seize the opportunity to insert automatically the 'required' textflag (*): public class MyLabel extends SimpleFormComponentLabel { String mandatory = ""; p

Re: WicketSessionFilter and several domains

2009-11-26 Thread bgooren
Did you check if a session is actually created, e.g. do you see a cookie? I cannot imagine that if you use the exact same flow, and the only difference is the domain name, it would work in the one case but not the other. What happens exactly? Getting the session returns null? I suggest you try a

RE: onclick auto-added to

2009-11-26 Thread bgooren
Well, I don't use Spring integration in my projects, so I cannot tell you for sure if that could be the reason for this. I do however find it unlikely that Spring integration would alter html tags. What you could try is step through the rendering process with a debugger and see what's happening w

Re: PropertyModels *without* strings

2009-11-26 Thread Maarten Bosteels
Igor, Very interesting stuff. What are the pro's and con's when compared with the SafePropertyModel from https://issues.apache.org/jira/browse/WICKET-1327 ? Maarten On Thu, Nov 26, 2009 at 10:04 AM, Jeremy Thomerson < jer...@wickettraining.com> wrote: > Strings do break. Silently. They're th

Re: PropertyModels *without* strings

2009-11-26 Thread Jeremy Thomerson
Strings do break. Silently. They're the silent app killer. Wouldn't you rather know at compile-time that something is broken? That's the point of using Java over PHP. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Nov 26, 2009 at 1:28 AM, Martin Makundi < martin.maku...@koodaripa

Re: Component.setLabel and tags

2009-11-26 Thread Martijn Dashorst
s/getDefaultModelObjectAsString/getModelObjectAsString/... On Wed, Nov 25, 2009 at 5:29 PM, Xavier López wrote: > Thanks anyway Pedro, it's a good insight, and pretty original ;-) Didn't > think of it, nor knew about visitors... > > Sadly, I'm on Wicket 1.3.5 and it wouldn't be working anyway, as

Re: PropertyModels *without* strings

2009-11-26 Thread Gerolf Seitz
On Thu, Nov 26, 2009 at 8:54 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > I would say that refactoring calls for improvement in the bindgen > approach. Is it theoretically possible to facilitate refactoring with > bindgen? Is it practically possible to facilitate refactoring w