RE: [Wicket-user] Semantic Type Conversion

2005-06-18 Thread Igor Vaynberg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Friday, June 17, 2005 7:16 PM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Semantic Type Conversion Hi Howard, You could always work it from the other angle and create two

RE: [Wicket-user] Confused about Border

2005-06-21 Thread Igor Vaynberg
Albert, Components are rendered by their parent containers. If you look in your pages html template you will notice that you added some components inside the borders span, that means that those components are children of the border and not the page. What you need to do is call .add() on

RE: [Wicket-user] Simple link replacement

2005-06-23 Thread Igor Vaynberg
Gustavo, Im taking off for home so here is something quick that might help. You can tweak the attribute modifier by overriding the newValue method and prepending your path to whatever is alrady there instead of replacing it completely. Hope it helps, Igor -Original Message- From:

RE: [Wicket-user] Should Borders isolate the surrounding data from the inner content?

2005-06-23 Thread Igor Vaynberg
Are you referring to the span wicket:id=boxBorder and wicket:border type tags? If so, in your application class' constructor or init add this line: getSettings().setStripWicketTags( true ); It will tell wicket to strip wicket specific markup from the produced html. By default this setting is off

RE: [Wicket-user] Should Borders isolate the surrounding data from the inner content?

2005-06-24 Thread Igor Vaynberg
Good point. I suppose this is the problem with borders in this situation, that’s why these guys are working hard on markup inheritance. I am using it now and it seems to works fine, but its not recommended for prod use yet. Inheritance is like inverted borders. For example: BasePage.html

RE: [Wicket-user] Should Borders isolate the surrounding data from the inner content?

2005-06-24 Thread Igor Vaynberg
Check out the HEAD version from cvs. You can find some examples in the wicket\src\test\wicket\markup dir. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Hexsel Sent: Friday, June 24, 2005 11:21 AM To: wicket-user Subject: RE:

RE: [Wicket-user] Wiggling out of feedback panel

2005-06-24 Thread Igor Vaynberg
Thanks for sharing! Its really nice to see people contributing to the community. Here is the same code with more of a pull approach rather then push which I think would allow for better extension down the road. public class DisplayOnError extends Label { private final Component

RE: [Wicket-user] Should Borders isolate the surrounding data from the inner content?

2005-06-24 Thread Igor Vaynberg
No problem Gus. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Hexsel Sent: Friday, June 24, 2005 12:26 PM To: wicket-user Subject: RE: [Wicket-user] Should Borders isolate the surrounding data from the inner content? Worked

RE: [Wicket-user] WebPage and iframes

2005-06-24 Thread Igor Vaynberg
Ralf, Why not use panels instead of webpages? You can easily embed a panel inside another panel. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ralf Ebert Sent: Friday, June 24, 2005 2:32 PM To: wicket-user@lists.sourceforge.net Subject:

RE: [Wicket-user] WebPage and iframes

2005-06-24 Thread Igor Vaynberg
Ralf, If you are exclusively using iframes you should not have a problem with embedding a webpage inside a webpage. In fact, you wont really be embedding one in the other from wicket's perspective, iframes are independent pages and so the content of your iframe will not be part of the component

RE: [Wicket-user] WebPage and iframes

2005-06-24 Thread Igor Vaynberg
You could easily accomplish all these things in wicket if you werent using iframes. I think to get it working with iframes is going to take a lot of experimentation on your part. Since iframes exist in the browser as independent pages im not sure if versioning of the container page would make any

RE: [Wicket-user] WebPage and iframes

2005-06-24 Thread Igor Vaynberg
Iframes are a way to embed one webpage inside the markup of another. Iframe tag acts as a container for a different webpage, basically you get a browser window inside a browser window that acts independently. I used it a while back to build a simple portal app, basically the portal container would

RE: [Wicket-user] WebPage and iframes

2005-06-26 Thread Igor Vaynberg
I think a cool feature would be to be able to mark a component as an ajax component, and it will then automatically rewrite its links/forms to work through ajax and update its html on the page. This would allow us to write components once and enable ajax selectively. A subset of that would be to

RE: [Wicket-user] Best way to serve up a file?

2005-06-27 Thread Igor Vaynberg
That's exactly what the display example does with the export options. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Monday, June 27, 2005 9:47 AM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Best way to serve up a

[Wicket-user] breadcrumbs with wicket

2005-06-28 Thread Igor Vaynberg
Hi Guys, Im building an application with a non-hirarchical navigation structure. I need breadcrumbs so that users can easily back-navigate between pages. I am wondering what you guys think is the best way to accomplish this with wicket. Here are a couple of use cases: 1) A user can come to a

RE: [Wicket-user] breadcrumbs with wicket

2005-06-29 Thread Igor Vaynberg
up with good idea's, please share! Eelco Igor Vaynberg wrote: Hi Guys, Im building an application with a non-hirarchical navigation structure. I need breadcrumbs so that users can easily back-navigate between pages. I am wondering what you guys think is the best way to accomplish

RE: [Wicket-user] breadcrumbs with wicket

2005-06-29 Thread Igor Vaynberg
, right? Bairos On 6/29/05, Igor Vaynberg [EMAIL PROTECTED] wrote: The last app I worked on was done in tapestry. The way I implemented it there is almost exactly the way you describe. I had a session storage that kept the page stack and I can get the page state by capturing request.parameters

RE: [Wicket-user] RAD Edit and List Panels

2005-07-01 Thread Igor Vaynberg
How about a way to set defaults based on ejb3 entity annotations ;) Just a thought. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Friday, July 01, 2005 11:47 AM To: wicket-user@lists.sourceforge.net Subject: Re:

RE: [Wicket-user] Newbie problem with Model-s

2005-07-05 Thread Igor Vaynberg
Martin, The problem is here: add(new TestForm(testForm, new Model(person))); You are creating a Model, when in fact you should be creating a CompoundPropertyModel. Components that do not have models ( ie your RequiredTextField ) only inherit models that are of type CompoundPropertyModel or

RE: [Wicket-user] Newbie problem with Model-s

2005-07-05 Thread Igor Vaynberg
you to 'short hand' code that would otherwise by more verbose, and it is slightly more efficient with object creation. But you can accomplish the same by just using Model and PropertyModel objects. Eelco Igor Vaynberg wrote: Martin, The problem is here: add(new TestForm(testForm, new Model(person

RE: [Wicket-user] Callback method on request-start and request-end

2005-07-06 Thread Igor Vaynberg
Christian, The RequestCycle object is already bound to a threadlocal, and when it is created it has a reference to the session; so the session is already effectively thread bound. To get the session you can do: RequestCycle.get().getSession() The factory method being referred is defined in the

RE: [Wicket-user] Callback method on request-start and request-end

2005-07-06 Thread Igor Vaynberg
I think currently cdapp is only available through cvs in the wicket-stuff project. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Essl Sent: Wednesday, July 06, 2005 8:38 AM To: wicket-user@lists.sourceforge.net Subject: Re:

RE: [Wicket-user] setting component properties from tag attributes

2005-07-06 Thread Igor Vaynberg
I think this would be a good idea in a limited form ( ie strings only, not scriptlets ). Ive noticed over time our tapestry page templates became more and more convoluted with these types of scriptlets because it is more convinient for developers to stick small pieces of code right into the page

RE: [Wicket-user] javascript tree-component

2005-07-19 Thread Igor Vaynberg
Mod textfield to work with input type=hidden instead of input type=text and have your javascript update that value any time there is a change. Quick and dirty ;) Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jan Mikkelsen Sent: Tuesday, July 19,

RE: [Wicket-user] Replacing messaging strategy in AbstractValidator

2005-07-19 Thread Igor Vaynberg
Hi Brad, For my application, I wanted to use a central properties file for the validation messages. I was looking to do this exact same thing. My version is here: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg01977.html Sadly I got no feedback on it. To achieve what you

RE: [Wicket-user] VOTE: make AbstractValidator threadsafe

2005-07-20 Thread Igor Vaynberg
+1 Ditto Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Wednesday, July 20, 2005 7:47 AM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] VOTE: make AbstractValidator threadsafe +1 Wicket should

RE: [Wicket-user] A crack at RAD.

2005-07-20 Thread Igor Vaynberg
I might be wrong but I do not think the criteria api support 2nd level cache when retrieving multiple objects which is a must for something like this. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Wednesday, July 20, 2005

RE: [Wicket-user] Replacing messaging strategy in AbstractValidator

2005-07-20 Thread Igor Vaynberg
Brad, You are right, the resourceKey() func in the AbstractValidator doesn't yet take the custom key into account. Im sure this will be taken care of in the near future, the validators are still being worked on. See the mailing list for details. Igor -Original Message- From: [EMAIL

RE: [Wicket-user] VOTE: make AbstractValidator threadsafe

2005-07-21 Thread Igor Vaynberg
The problem with this approach is that you are limited to a single error message per component. I think what we need is a label in the form component, or a resource key to that label. The combination of this label and a resource key pointing to a generic error message in the validator should

RE: [Wicket-user] Replacing messaging strategy in AbstractValidator

2005-07-21 Thread Igor Vaynberg
: Thursday, July 21, 2005 8:23 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Replacing messaging strategy in AbstractValidator Forgot about that one. Could you file it as a RFE? And could other readers check that out and vote for it please? Thanks, Eelco Igor

RE: [Wicket-user] Custom message provider?

2005-07-21 Thread Igor Vaynberg
I havent really looked into this deeply, but cant you roll your own implementation of IStringResourceLoader that works exactly how you want and add it into the ApplicationSettings? Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matej Knopp

RE: [Wicket-user] favor

2005-07-21 Thread Igor Vaynberg
You might want to check out the caveat-emptor app on the hibernate site. http://caveatemptor.hibernate.org/ Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke Sent: Thursday, July 21, 2005 6:06 PM To:

RE: [Wicket-user] Newbie confused about PageableListView

2005-07-22 Thread Igor Vaynberg
() and the setting of the model data should be checked so that there is always as IPageableList in a PageableListView class model. would that the better and easier to understand then the current implementation? And aren't we going to lose some things we can do now? johan Igor

RE: [Wicket-user] Newbie confused about PageableListView

2005-07-22 Thread Igor Vaynberg
proposals? Eelco Igor Vaynberg wrote: You can provide an interface AND easily support collections because it is very easy to wrap them. The constructor that takes a List interface can wrap that into the internal interface, we shouldn't have to do this the other way around

RE: [Wicket-user] component ids in the html without output?

2005-07-22 Thread Igor Vaynberg
in the html without output? Oh yeah. How could I forgot that; used it several times this week allready! Thanks Igor, Eelco Igor Vaynberg wrote: In your MenuItems component call setRenderBodyOnly(true) Igor --- SF.Net

RE: [Wicket-user] Converters

2005-07-22 Thread Igor Vaynberg
Maybe this can be of help: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg01584.html Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Heudecker Sent: Friday, July 22, 2005 2:28 PM To: wicket-user@lists.sourceforge.net

RE: [Wicket-user] Newbie confused about PageableListView

2005-07-22 Thread Igor Vaynberg
IMHO, ListView doesn't have sort order/filter info. That is something a that should be held in the model not in a component if it could i think. So setting a sort order would be: ((YoureModel)ListView.getModel().setSortOrder(xxx) at least in my eyes That's what I meant. You need a

[Wicket-user] on specific models, e.g. for ListView

2005-07-23 Thread Igor Vaynberg
I think our previous discussion was a bit misunderstood. I was not trying to replace the imodel interface for the exact reason you mentioned below, what I was trying to replace is the model object interface which is currently a list. So instead of casting the model object to a list and retrieving

[Wicket-user] (no subject)

2005-07-23 Thread Igor Vaynberg
now. Also by making ListViewDatasource extend imodel it can become detachable. In fact we can even keep ListView(String name, List list) and wrap the list with a ListViewDatasource wrapper and have complete backwards compat. Igor Igor Vaynberg wrote: I think our previous discussion was a bit

Re: Re: [Wicket-user] lists

2005-07-24 Thread Igor Vaynberg
I think that ListView should stay how it is, and PageableListView should have a method like IModel getObjectModel(Object o). Maybe even make it abstract. I use ListView all over the place for displaying a list of items that may or may not have come from a database. However, PageableListView

Re: [Wicket-user] lists

2005-07-24 Thread Igor Vaynberg
Once again, we shouldn't limit our discussion to hibernate. Is wicket gearing to only support hibernate? What if I am using jdbc? As far as hibernate goes, the answer to your question is yes and no. You can mark objects as lazy and that will put them behind a proxy which will load the data at

RE: [Wicket-user] NestedLint example

2005-07-27 Thread Igor Vaynberg
UL lia href=www.javalobby.orgClick here/a/li ... UL Also looks like a wicked:id=myLink li wicket:id=row span wicket:id=labelthe label/span /li /a Needs to be li wicket:id=row a wicked:id=myLink span wicket:id=labelthe label/span

RE: [Wicket-user] lists

2005-07-27 Thread Igor Vaynberg
. Just my new user thougts, Christian On Mon, 25 Jul 2005 08:57:14 -0700, Igor Vaynberg [EMAIL PROTECTED] wrote: As opposed to IModel getListItemModel(final IModel listViewModel, final int index) ? What exactly does index mean in a context of a database backed list? What

RE: [Wicket-user] lists

2005-07-27 Thread Igor Vaynberg
: [Wicket-user] lists Could you attach those to the rfe please? Thanks, Eelco Igor Vaynberg wrote: Hi Christian, Attached are my proof-of-concept classes ive been playing around with. Basically this is the interface and cannibilized versions of listview and pageablelistview

RE: [Wicket-user] lists

2005-07-27 Thread Igor Vaynberg
Why not have public interface DataProvider extends Serializable { Iterator getElements(int first, int minCount); int getCount(); } I was definetely thinking of doing that, didn't get to it yet. A list was simply the most convinient because that's what EntityManager returns

RE: [Wicket-user] lists

2005-07-28 Thread Igor Vaynberg
to sort the list using Collections? Are you going to bring in 1 rows with a window size of 20? Its too easy to do something like that, there is no way to know where the list comes from. Igor On 7/27/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Why not have public interface DataProvider

RE: [Wicket-user] lists

2005-07-28 Thread Igor Vaynberg
I actually meant that the iterator must at least return the minCount of values - it does not matter if it returns more or not. So it could load only the elements up to minCount or in case it is backed by a list it could return list.listIterator(index). The DataView just does not care

RE: [Wicket-user] Passing arguments to links?

2005-07-28 Thread Igor Vaynberg
Don't use a page link. Use a normal link, create the page yourself, and pass the arguments in the constructor or methods. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Thursday, July 28, 2005 10:47 AM To: Wicket-user Subject:

RE: [Wicket-user] VOTE: one more api break for AbstractChoice

2005-07-29 Thread Igor Vaynberg
+1 the javadoc should be clear that the underlying model object needs to be a list or whatever. It would be nice to switch to imodelt right now. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Friday, July 29, 2005 4:33 AM

RE: [Wicket-user] VOTE: remove moveUp/moveDown and removeLinks from ListView

2005-07-29 Thread Igor Vaynberg
+1 -Igor --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast.

RE: [Wicket-user] lists

2005-07-29 Thread Igor Vaynberg
IModel model(Object o); is very important as it is very horizontal. For example ContactDataProvider implements DataProvider { . Imodel model(Contact c) { return new ContactDetachableModel(c); } } Now I can give this dataprovider to any dataview without

RE: [Wicket-user] Hibernate/EJB3.0

2005-07-29 Thread Igor Vaynberg
using rewritten databinding and Hibernate3 integration. If you're not into the whole CVS thing, I can post a WAR somewhere so that you can get a feel for it. On 7/29/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Paul, Im not aware of any official docs yet. I am currently using

RE: [Wicket-user] Hibernate/EJB3.0

2005-07-29 Thread Igor Vaynberg
] Hibernate/EJB3.0 I'll be committing a new version of CDApp shortly using rewritten databinding and Hibernate3 integration. If you're not into the whole CVS thing, I can post a WAR somewhere so that you can get a feel for it. On 7/29/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Paul

RE: [Wicket-user] lists

2005-07-29 Thread Igor Vaynberg
totalItemCount() instead of size() ? I think we are going to stick with DataProvider for the iface name. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik van Oosten Sent: Friday, July 29, 2005 12:48 PM To:

RE: [Wicket-user] lists

2005-07-29 Thread Igor Vaynberg
Once again, this has become a philosophical discussion. I say tomato you say tomato. This is going to live as a contrib package so it wont distrub anything, people who prefer this style will use it. Besides you can do final List mylist; new DataProvider() { public int itemCount() {

RE: [Wicket-user] lists

2005-07-29 Thread Igor Vaynberg
The difference is my segment of code is the entire implementation, you are implementing a few abstract methods on a surface of a black box. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Friday, July 29, 2005 5:03 PM To:

RE: [Wicket-user] lists

2005-07-29 Thread Igor Vaynberg
Yea, I can see how that would work. You're just saying to put the black box in the ListView, right? There is no black box. The paging that the pagedlist does is no longer necessary. Your DataProvider interface is a bit too simple (doesn't allow ordering, and EJB and Hibernate2 can't wrap

[Wicket-user] FieldLabel component

2005-07-29 Thread Igor Vaynberg
Hi Guys, Ive been working on forms a lot lately, and what ive been missing from tapestry is a fieldlabel component. Basically a fieldlabel is a label that is linked to a form component. This allows to do cool things like: 1) FieldLabel can change its apperance based on the form component

RE: [Wicket-user] FieldLabel component

2005-07-29 Thread Igor Vaynberg
by implementing IFeedback on a subclass of Label. Igor Vaynberg wrote: Hi Guys, Ive been working on forms a lot lately, and what ive been missing from tapestry is a fieldlabel component. Basically a fieldlabel is a label that is linked to a form component. This allows to do cool things

RE: [Wicket-user] lists

2005-07-29 Thread Igor Vaynberg
No, the query cache only caches the primary keys... This sounds exactly like iterate() but you have to remember to call setCachable(true). One thing I would add though, would be a setPageableListView() method. If the DataProvider knows about its container, it can do cleanup things when it's

RE: [Wicket-user] FieldLabel component

2005-07-30 Thread Igor Vaynberg
IFeedback (or it used to be... i'm not sure what's changed... it looks unfamiliar now). the form code then finds the associated feedback elements for each form component. Igor Vaynberg wrote: I've seen the error border, it doesn't do what I want - in our app a red asterisk indicates

RE: [Wicket-user] lists

2005-07-30 Thread Igor Vaynberg
I was thinking of having iterator(int first, int count, DataView dataView) which would eliminate the requirement for keeping state in the dataprovider and still let you work directly off the interface. Are you looking to have these DataProviders be singletons? That could make your

RE: [Wicket-user] Feedback Refactor Idea

2005-07-30 Thread Igor Vaynberg
this was changed. Igor Vaynberg wrote: I can kind of see what you are saying. The abstract validator would have to search the page and find the Ifeedback for the formcomponent in error. But what if you have two ifeedbacks for a component - the feedback panel and the label

RE: [Wicket-user] Feedback Refactor Idea

2005-07-30 Thread Igor Vaynberg
And I still have to cast Ifeedback to Component in order to retrieve the model used for the label. Ok scractch this one, im searching only the component tree so the visitor will return a component. Still we should have an Icomponent and have Ifeedback extend Icomponent to make it clearer.

RE: [Wicket-user] Feedback Refactor Idea

2005-07-30 Thread Igor Vaynberg
right before the elipsis. Igor Vaynberg wrote: What about generic validator messages - this is more important then the look and feel of the label which I can achieve in a thousand different ways. Using this model it is not possible to generically identify which Ifeedback

RE: [Wicket-user] Feedback Refactor Idea

2005-07-30 Thread Igor Vaynberg
-user@lists.sourceforge.net Subject: Re: [Wicket-user] Feedback Refactor Idea no. what's in this IComponent? nothing of use. we only need this: public interface IFeedback { public void updateFeedback() } the rest is pure and simple OO programming! Igor Vaynberg wrote

RE: [Wicket-user] Feedback Refactor Idea

2005-07-30 Thread Igor Vaynberg
in a matter of weeks if not days. and again, components should not be aware of their attached feedback components. Igor Vaynberg wrote: Icomponent would be an interface that Component implements. This allows you to pass around interfaces rather then concrete implementations. For example

RE: [Wicket-user] Feedback Refactor Idea

2005-07-30 Thread Igor Vaynberg
component to construct your label validator message... i should have added when updateFeedback() is called right before the elipsis. Igor Vaynberg wrote: What about generic validator messages - this is more important

RE: [Wicket-user] Feedback Refactor Idea

2005-07-30 Thread Igor Vaynberg
] Feedback Refactor Idea you're missing several major points, but especially this one: nobody will EVER implement IComponent. you'd have to write a whole new version of wicket to do that. and in doing that, you'd discover that you wanted to change IComponent anyway. Igor Vaynberg

[Wicket-user] MarkupContainer.get()

2005-07-30 Thread Igor Vaynberg
Just wandering if its smart to return the container itself if the component path is null or empty? The javadoc says this function is used to get a child component... This might be a nasty gotcha. /** * Get a child component by looking it up with the given path. * * @param path *

RE: [Wicket-user] lists

2005-07-30 Thread Igor Vaynberg
I am writing the code. I will commit it hopefully tomorrow. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Saturday, July 30, 2005 10:11 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] lists Okay,

RE: [Wicket-user] lists

2005-07-31 Thread Igor Vaynberg
really like that. The amount of complexity it removes it ridiculous. I'll definitely give it a try as soon as it's committed. On 7/30/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I am writing the code. I will commit it hopefully tomorrow. -Igor

RE: [Wicket-user] Hibernate and Transactions (again)

2005-08-01 Thread Igor Vaynberg
You use JTA transactions, that waydifferent services can join in on the transaction. You open a JTA transaction in the beginning of the request, all your services/daos use that transaction, and at the end of the request you either commit or roll back. -Igor From: [EMAIL PROTECTED]

RE: [Wicket-user] Hibernate/EJB3.0

2005-08-01 Thread Igor Vaynberg
If you are writing a small ejb3 app that is not separated by layers ( I don’t want to fume the flamewar) you would create and initialize the entitymanagerfactory in your application object and create entity managers using that. This is the way to access entitymanager if you are not using the rest

RE: [Wicket-user] Validation order

2005-08-02 Thread Igor Vaynberg
I think the more natural default approach would be to show messages in the same order as the form.add() calls. Just my 2 cents. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Tuesday, August 02, 2005 6:57 AM To:

RE: [Wicket-user] reflexive data

2005-08-02 Thread Igor Vaynberg
Do you have Link.linksTo overridden? Sounds like that's the problem. If you return true from there your link will not be clickable. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dzenan Ridjanovic Sent: Tuesday, August 02, 2005 7:15 AM

RE: [Wicket-user] Sigin Example

2005-08-02 Thread Igor Vaynberg
Jonathan, Could you please elaborate on why interfaces are fragile. It doesn't click for me. How is it more fragile to have an interface and a single implementation as opposed to a base class with no interface? As far as mixins go, I only ran into one situation so far. The IPageableComponent

RE: [Wicket-user] Sigin Example

2005-08-02 Thread Igor Vaynberg
thoughts? Thanks, Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke Sent: Tuesday, August 02, 2005 3:41 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Sigin Example Igor Vaynberg wrote: Jonathan

RE: [Wicket-user] Sigin Example

2005-08-02 Thread Igor Vaynberg
be on different pages, right? Igor Vaynberg wrote: I can see your point. My thinking has always been that any abstract class has an implicit interface which is the sum of its public methods, and that there really is no difference between evolving public methods in an abstract class and evolving

RE: [Wicket-user] Sigin Example

2005-08-02 Thread Igor Vaynberg
this; } would be pretty weird if a component implements IPageableComponent directly. -Igor Igor Vaynberg wrote: Just thought of adding getComponent() to IPageableComponent, still a hack in my opinion. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto

RE: [Wicket-user] Problem with ErrorPage

2005-08-03 Thread Igor Vaynberg
David Liebeherr A, so now i understand what you mean, but i did not wanted you to tell me what situations _i_ may produce that results in endlees loop. I just wanted to know if there are _known_ bugs in wicket that will end in endless loop. You can check the bug database and see for

RE: [Wicket-user] Re: Problem

2005-08-05 Thread Igor Vaynberg
a esourcereference to youre application? Then that resourcereference will becalled under the url: /wicket-examples/images/resources/home/image5 and you can do anything you want in the resource that reference is making. johan Igor Vaynberg wrote: Or someone might write components/pages

RE: [Wicket-user] status of wicket-contrib-dataview?

2005-08-08 Thread Igor Vaynberg
Hi Gert, I made ICssProvider extend Serializable so that will fix one of your problems. I changed the NavigatorLabel to work with pageabledataview directly, so that will fix your other problem. Give these changes time to propogate into public cvs. In the future, you are more then welcome to

RE: [Wicket-user] status of wicket-contrib-dataview?

2005-08-08 Thread Igor Vaynberg
that is a very much on the edge project! So there could be problems. And paging is still a thing that needs to be redesigned a bit. How is the paging coming along Johan? -Igor --- SF.Net email is Sponsored by the Better Software

RE: [Wicket-user] Problem with CompoundPropertyModel and multiple Submit Buttons

2005-08-09 Thread Igor Vaynberg
setSubmitForm() is not precise enough since the form is submitted anyways. All setImmediate(true) really does is bypass the default form processing. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke Sent: Tuesday, August 09,

RE: [Wicket-user] DataView

2005-08-09 Thread Igor Vaynberg
I agree about the set with all those contains() operations. I will make this change as soon as sf.net lets me get to cvs :) Does DataItem have to be a public Component? I left it open in case someone needs to extend it for whatever reason. -Igor

RE: [Wicket-user] DataView

2005-08-09 Thread Igor Vaynberg
The id of the dataitem needs to be the primary key of your object. This is how the listview knows if it already created a dataitem for an object, if we use an arbitrary counter we lose that knowledge. As far as compound keys go, just create a unique string rep of the key: public class

RE: [Wicket-user] either Label or Image in span, how?

2005-08-09 Thread Igor Vaynberg
Imho, creating a panel is the best solution. Your panel doesn't need to be an external class though: Public class MyPage extends WebPage { private static class ImagePanel extends Panel { } } You can put your makrup into a file named MyPage$ImagePanel.html

RE: [Wicket-user] DataView

2005-08-09 Thread Igor Vaynberg
8:13 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] DataView On Tue, 9 Aug 2005 19:16:34 -0700, Igor Vaynberg [EMAIL PROTECTED] wrote: Instead of using a Set in internalOnBeginRequest() use a Map and map from Model to DataItem and get the (generated) id

RE: [Wicket-user] DataView

2005-08-10 Thread Igor Vaynberg
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Essl This wont work unless you override equals in your impl of IModel IMO that's not true. If I do not override equals/hashCode on the impl of IModel than there will be just no 'optimized item removal'.

RE: [Wicket-user] Problem with CompoundPropertyModel and multiple Submit Buttons

2005-08-10 Thread Igor Vaynberg
. which makes even /more/ sense! ;-) Johan Compagner wrote: onSubmit of what? if you do setProcessForm(false) then Form.onSubmit() is not called only the onSubmit() of the Button. So setProcessForm() makes sense to me. Igor Vaynberg wrote: I don't think its still

RE: [Wicket-user] DataView: IDataProvider.primaryKey() vote

2005-08-10 Thread Igor Vaynberg
how would it work then? How do we guarantee that they implement it right? Igor Vaynberg wrote: This is a vote to remove primaryKey() from IDataProvider and use Imodel instance identity in order to provide optimized item removal in the dataview

RE: [Wicket-user] DataView: IDataProvider.primaryKey() vote

2005-08-10 Thread Igor Vaynberg
In this case primaryKey() can be a db primary key or a business primary key since there is a 1-1 mapping. Also, I don't think it would make sense to have dataview depending on an external IDatabaseModel. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [Wicket-user] Problem with CompoundPropertyModel and multiple Submit Buttons

2005-08-10 Thread Igor Vaynberg
Submit Buttons setDefaultFormProcessing? Igor Vaynberg wrote: Lets not forget that this is not just for cancel buttons. To me setProcessForm(false) says that the form will not be processed, when in fact I can do form processing in Button.onSubmit() - Im still processing the form

RE: [Wicket-user] DataView: IDataProvider.primaryKey() vote

2005-08-10 Thread Igor Vaynberg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Essl Sent: Wednesday, August 10, 2005 2:06 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] DataView: IDataProvider.primaryKey() vote I don't want to start a flame war

RE: [Wicket-user] DataView: IDataProvider.primaryKey() vote

2005-08-10 Thread Igor Vaynberg
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke Sent: Wednesday, August 10, 2005 2:01 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] DataView: IDataProvider.primaryKey() vote i guess i don't precisely

RE: [Wicket-user] Problem with CompoundPropertyModel and multiple Submit Buttons

2005-08-10 Thread Igor Vaynberg
); } } } Igor Vaynberg wrote: That works for me. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke Sent: Wednesday, August 10, 2005 1:39 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Problem

RE: [Wicket-user] DataView: IDataProvider.primaryKey() vote

2005-08-10 Thread Igor Vaynberg
and we should stop this. Christian On Wed, 10 Aug 2005 21:51:45 +0200, Johan Compagner [EMAIL PROTECTED] wrote: how would it work then? How do we guarantee that they implement it right? Igor Vaynberg wrote: This is a vote to remove primaryKey() from IDataProvider and use

RE: [Wicket-user] DataView: IDataProvider.primaryKey() vote

2005-08-10 Thread Igor Vaynberg
Right, we would need to have something like this: Public abstract class ModelIteratorDecorator { private Iterator delegate; ... public boolean hasNext() { return delegate.hasNext(); } public Object next() { return

RE: [Wicket-user] DataView: IDataProvider.primaryKey() vote

2005-08-10 Thread Igor Vaynberg
()).toString(); } } Badda bing. ;) On 8/10/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Right, we would need to have something like this: Public abstract class ModelIteratorDecorator { private Iterator delegate; ... public boolean hasNext

  1   2   3   4   5   6   7   8   9   10   >