Wicket Session grows too big real fast

2008-11-26 Thread jhp
Hi, I have a serious problem with our application. It uses wicket+guice+hibernate technologies. The problem basically is that the application was developed with very little attention to the possible session size, and it is biting us now. The are several domain classes and the dependecies are

Re: Wicket Session grows too big real fast

2008-11-26 Thread Martijn Dashorst
With Wicket 1.3 only one page should be stored in session. You should check if you don't keep references between pages - that would result in 1+N pages (with N being the number of pages you reference in your page). Other than that: using LDM's and DataView/DataProvider instead of ListView will

Re: Wicket Session grows too big real fast

2008-11-26 Thread Johan Compagner
if you make this: final Recommendation recommendation = (Recommendation) item.getModelObject(); not final does it compile? If it doesnt then you have a leak johan On Wed, Nov 26, 2008 at 10:02 AM, jhp [EMAIL PROTECTED] wrote: Hi, I have a serious problem with our application. It uses

Re: Wicket Session grows too big real fast

2008-11-26 Thread jhp
Well, yes references to pages seems to be given as constructor arguments to several pages. The idea is that if 'Cancel' is clicked, application goes back to previous page. The possibility to go back more than one page is not necessary. Is the correct way to implement cancle with some javascript

Re: Wicket Session grows too big real fast

2008-11-26 Thread jhp
In that place, it compiles without it, but I have another class that has something like this: final Recommendation currentRecommendation = (Recommendation) recommendationModel.getObject(); . . . add(new Label(usersChoice, getUsersChoiceString(name.getFirstname())) { @Override

Re: Wicket Session grows too big real fast

2008-11-26 Thread jhp
In that place, it compiles without it, but I have another class that has something like this: final Recommendation currentRecommendation = (Recommendation) recommendationModel.getObject(); . . . add(new Label(usersChoice, getUsersChoiceString(name.getFirstname())) { @Override

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
I'm not sure how to get the textfield editor working on the property name of the user object - I am aware the CPM is trying to look at the id editor which is wrong :). -- View this message in context:

triggering post of a for from client side

2008-11-26 Thread dshapi
hi, I need to trigger the post of a form - from the client side with java script , but all the solutions that i have found don't work with wicket. i have tried document.forms['commentForm'].submit(); in script - doesn't work. (when commentForm is the name of the form that is generated in the

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Nino Saturnino Martinez Vazquez Wael
Hi Ned you can call bind on the compound property model.. labelText = new Label(labelText, CPM.bind(propertyname)); You can also do this for your property models btw... Ned Collyer wrote: I'm trying to throw together some components for easily creating accessible forms. I'm a fair bit along

Re: triggering post of a form, from client side

2008-11-26 Thread James Carman
You may want to look at AjaxFormSubmitBehavior. If you can't use that directly, the code might give you an idea of how to write your Javascript to do form submissions manually. On Wed, Nov 26, 2008 at 6:27 AM, dshapi [EMAIL PROTECTED]wrote: hi, I need to trigger the post of a form - from the

Re: Wicket Session grows too big real fast

2008-11-26 Thread John Krasnay
If the previous page is bookmarkable you don't need to keep a reference to the page instance; instead, just re-create the page parameters and call setResponsePage(pageClass, parameters) when the user clicks Cancel. jk On Wed, Nov 26, 2008 at 01:35:11AM -0800, jhp wrote: Well, yes references

obtain the wicket-modal id in java code

2008-11-26 Thread Daniele Dellafiore
Hi all. I want to implement a fade effect for the wicket modal window. What I miss is the id of the div of the modal that has class=wicket-modal. The id of that div is generated dynamically. When this happens for a wicket Component I can get it in the code via the getId method but I do not have a

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
I'm going to be sourcing the labelText from a properties file relatve to the class of the modelObject (in this case it will be the User - eg, user.properties). If I use the binding, then I need to have scope to the CPM in java world... within the LabelledTextField - which is a shame, because it

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
Merely bundling the examples with the code itself shouldn't cause this, do you think? On Wed, Nov 26, 2008 at 2:17 AM, Wayne Pope [EMAIL PROTECTED] wrote: YES. However I feel people may pass over the earlier branches (especially when we're on Wicket version 5.8!) and hence miss some great

Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
Ok, I was just having a bit of code clean up and I realized that in our IDataProviders we are loading all rows for a given dataset. So looking at the iterator method I see we can limit the result (and the offset). Great I thought - however I see that that the size() method is called as part of

AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Dipu
wicket-autocomplete.js function function showAutoComplete() line 291 container.style.zIndex=(!isNaN(Number(index))?Number(index)+1:index); looks like IE doesn't like big i in zIndex, IE seem to be be happy with zindex not sure if that's the correct way to resolve the issue, i have attached a

flash with resource

2008-11-26 Thread tbt
Hi I am using flash in my web application and currently using the example given at http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html This works fine but my swf files are stored in a database and when displayed now is converted back into a swf file and

Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread James Carman
The best way would be to file a JIRA (or search for an existing one that explains this issue) and attach your patch there. We're not allowed to apply patches unless they're submitted through JIRA and they have the Grant license to ASF for inclusion in ASF works thing checked. On Wed, Nov 26,

RE: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Hoover, William
I think the idea behind this is that size will be called first. If the size is zero there is no need to proceed with the call to get the items. I don't necessarily agree with this approach because a lot of service calls can capture the data in one call (even down to the database level- some

Re: Wicket Session grows too big real fast

2008-11-26 Thread jhp
Removing references pointing to previous pages solved a lot, very good point. Also making sure that individual domain objects don't get stored to session makes a difference. I have still a lot of code to go through to make sure that all unnecessary references don't get stored to session, but

RE: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Hoover, William
We use the same workaround :o) -Original Message- From: Michael O'Cleirigh [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 9:43 AM To: users@wicket.apache.org Subject: Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets Hi Wayne,

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Michael O'Cleirigh
Hi Wayne, The way we do it is to only extract the current page from the data provider once per render cycle. e.g. the first time size() is called the underlying extraction is performed to build the list for the size of the current page and all subsequent calls use this cached value. You

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Michael Sparer
have a look at https://issues.apache.org/jira/browse/WICKET-1784 Wayne Pope-2 wrote: Ok, I was just having a bit of code clean up and I realized that in our IDataProviders we are loading all rows for a given dataset. So looking at the iterator method I see we can limit the result (and

Re: Wicket Session grows too big real fast

2008-11-26 Thread Martijn Dashorst
Yes, since the anon-inner class introduces a link between the two. modify the isVisible() to: return ((Recommendation)recommendationModel.getObject()).getSupplier() == null; or rather, implement a method Recommendation getCurrentRecommendation() { return

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Nino Saturnino Martinez Vazquez Wael
ahhh, didnt catch that you were doing that.. Ned Collyer wrote: I'm going to be sourcing the labelText from a properties file relatve to the class of the modelObject (in this case it will be the User - eg, user.properties). If I use the binding, then I need to have scope to the CPM in java

Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Dipu
done https://issues.apache.org/jira/browse/WICKET-1960 https://issues.apache.org/jira/browse/WICKET-1960 On Wed, Nov 26, 2008 at 2:44 PM, James Carman [EMAIL PROTECTED]wrote: The best way would be to file a JIRA (or search for an existing one that explains this issue) and attach your patch

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
Hi, thanks for the replies. Micheal O/Hoover - I still don't see how this works as you don't have the limit and offset (that is used in Iterator). How do you know how many rows to load in your size() method? Michael S - thanks for the link - it it appears I must completely rewrite the whole

Wicket Sesion Size - wiki page

2008-11-26 Thread jWeekend
To get the ball rolling I have created a http://cwiki.apache.org/confluence/display/WICKET/Wicket+Session+Size Wicket Session Size page on the Wiki . If people would like to contribute I'd say it would probably be best to start by adding discrete bullet points until we have enough content to

JUnit testing Image problem

2008-11-26 Thread Nicolas Castin
Hello, I am writing a JUnit test for a Wicket page containing some images added dynamically. My test needs to detect which images as been rendered, but the org.apache.wicket.markup.html.image.Image class doesn't expose any method to get it's resource. I can extend the class to have a public

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread James Carman
We just issue a count(*) query first to get the count. Then, we use individual queries to get each page's data. If you feel confident enough that the count won't change (or you don't really care if it does), you can cache the value returned from it the count query (I don't know how often that

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
Hi James, its not killing anything at the moment, I just don't like the idea of hitting the database with due cause. However I thinking about this some more I believe perhaps I should not use DataViews full stop - but RefreshingView instead?. Essentially I have in several places a large data set.

Re: Wicket Session grows too big real fast

2008-11-26 Thread kan
I am not sure if it always applicable, but usually I do not do implements Serializable for domain objects (it works well with Hibernated POJOs). In this case the Wicket cannot serialize a component, and if it was a link to any such object - wicket just reports about it into log, so you can see

Re: Wicket Session grows too big real fast

2008-11-26 Thread Ladislav Thon
Agree. I was almost shocked :-) by Martijn's e-mail about keeping references between pages. I believed it is a standard practice to keep reference to previous page for the purpose of cancelling, and of course do it all the time. It seems very natural to me. O-oops. LT 2008/11/26 Piller Sébastien

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Matej Knopp
Hi Wayne, if you feel brave enough you can take a look at inmethod grid components (available in wicket stuff svn - http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff in trunk and 1.3 branch). The grid contains AbstractPageableView that can perform paging without having to know the

RES: Wicket Session grows too big real fast

2008-11-26 Thread Bruno Cesar Borges
Now that is a really good advice. :-) -Mensagem original- De: kan [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 26 de novembro de 2008 14:19 Para: users@wicket.apache.org Assunto: Re: Wicket Session grows too big real fast I am not sure if it always applicable, but usually I do

RES: Wicket Session grows too big real fast

2008-11-26 Thread Bruno Cesar Borges
Maybe would be a good idea if Wicket could report memory usage for non-Wicket_Components (and non-standard Java objects, like String and Collections) in memory. I don't know if this could ever be possible. -Mensagem original- De: Ladislav Thon [mailto:[EMAIL PROTECTED] Enviada em:

continueToOriginalDestination and POST

2008-11-26 Thread kan
I have a site which requires authentication. I've made it via @AuthorizeInstantiation. Works well. But if a bookmarkable page has a form with method POST, and user presses submit after timeout, it redirects him to SignIn screen. After successful login the site redirects back (usinig

Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Jeremy Thomerson
This is fixed in trunk - I just ran into the same yesterday. Upgraded from rc1 to snapshot and it's working. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Nov 26, 2008 at 9:32 AM, Dipu [EMAIL PROTECTED] wrote: done https://issues.apache.org/jira/browse/WICKET-1960

Re: continueToOriginalDestination and POST

2008-11-26 Thread Jeremy Thomerson
They shouldn't be able to access the bookmarkable page with the form (or, access the page, but have the form hidden until signed-in). For continueToOriginalDestination, IIRC, Wicket just stores the URL, so you can't go back to a POST. On Wed, Nov 26, 2008 at 10:27 AM, kan [EMAIL PROTECTED]

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread James Carman
Or there's that! :) On Wed, Nov 26, 2008 at 11:21 AM, Matej Knopp [EMAIL PROTECTED] wrote: Hi Wayne, if you feel brave enough you can take a look at inmethod grid components (available in wicket stuff svn - http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff in trunk and 1.3

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Jeremy Thomerson
I think Wayne was referring not to your post, but in general - if we package most of the projects up neatly under one parent, then other projects that aren't in the same subdirectory / build cycle may get lost. I don't see this as too much of an issue - a project's visibility will come from a)

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
Hi Matej, The idea is always to load one row more than required on page which tells the grid if there will be a next page or not. Great idea. I looked at the code and I think I'll do my own (simplied version) of your refreashingpage. I believe thats what we really want here, as we don't care

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
On Wed, Nov 26, 2008 at 11:38 AM, Jeremy Thomerson [EMAIL PROTECTED] wrote: I think Wayne was referring not to your post, but in general - if we package most of the projects up neatly under one parent, then other projects that aren't in the same subdirectory / build cycle may get lost. I

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Martijn Dashorst
On Wed, Nov 26, 2008 at 5:38 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Typically, browsing the SVN tree isn't the way we find projects. Talk for yourself :) Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Dipu
In the current trunk, it's reverted back to container.style.zIndex=(Number(index)!=Number.NaN?Number(index)+1:index); and it works, but its working because some thing else is broken when the value of index ='auto'; the expression (Number(index)!=Number.NaN?Number(index)+1:index); return NaN,

Re: Wicket Session grows too big real fast

2008-11-26 Thread James Carman
Not exactly. It might be okay for web projects like this, but if you need to do any remoting, this won't work. Our domain entities have to be serializable. On Wed, Nov 26, 2008 at 11:22 AM, Bruno Cesar Borges [EMAIL PROTECTED] wrote: Now that is a really good advice. :-) -Mensagem

Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Jeremy Thomerson
Wow! Thanks! Good to know since I need to release an app today on a modified version of rc1 just because of this app. I didn't look into it any more last night after changing to snapshot and seeing it work. Thanks again, Jeremy Thomerson http://www.wickettraining.com On Wed, Nov 26, 2008 at

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Matej Knopp
You can just take AbstractPageableView, IDataSource and IGridSortState from the code. It should do exactly what you want and It shouldn't have any dependencies on the rest of grids. -Matej On Wed, Nov 26, 2008 at 5:39 PM, Wayne Pope [EMAIL PROTECTED] wrote: Hi Matej, The idea is always to load

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Igor Vaynberg
On Wed, Nov 26, 2008 at 7:32 AM, Wayne Pope [EMAIL PROTECTED] wrote: I'm sure I must be missing something still, as I can't beleive that we need to either a) load the whole data set what? why would you ever load the whole dataset? b) call count on the Db , then load in the iterator mehod.

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread James Carman
You've overloaded my sarcasm meter! Darn it, now I have to go buy a new one. On Wed, Nov 26, 2008 at 11:58 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: On Wed, Nov 26, 2008 at 7:32 AM, Wayne Pope [EMAIL PROTECTED] wrote: I'm sure I must be missing something still, as I can't beleive that we

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
Thanks Matej, I just noticed org.apache.wicket.markup.repeater.AbstractPageableViewT which seems what I'm ofter - I'll have a look and both and get something working. On Wed, Nov 26, 2008 at 5:57 PM, Matej Knopp [EMAIL PROTECTED] wrote: You can just take AbstractPageableView, IDataSource and

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
Hi Igor, what? why would you ever load the whole dataset? just to avoid 2 calls on smallish datasets, especially when there are multiple joins and database isnt on the same box. yeah. because select count() queries are the most expensive queries you can run on the database. you are right, its

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Igor Vaynberg
On Wed, Nov 26, 2008 at 9:06 AM, Wayne Pope [EMAIL PROTECTED] wrote: Hi Igor, what? why would you ever load the whole dataset? just to avoid 2 calls on smallish datasets, especially when there are multiple joins and database isnt on the same box. so you think pushing all that extra data over

RES: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Bruno Cesar Borges
You have to consider some things 1) Is this table going to be huge? 2) Am I going to let users do a Full Table Scan? (letting them search without filters, for instance) 3) Is this table frequently updated? How often new data is added to it? 4) Any other question that may affect your scalability

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
so you think pushing all that extra data over the network is actually more efficient then doing another query wtf. The point is I'd rather avoid 2 calls where 1 will do. AbstractPageableView will do fine I believe. i can only assume that you have actually profiled your app and that one select

Re: DateTimeField and java.util.Calendar

2008-11-26 Thread Eduardo Simioni
Nobody? Am I the only one having problems with these fields? Thanks, Eduardo. On 11/25/08, Eduardo Simioni [EMAIL PROTECTED] wrote: Thanks for the hints. The conversion using nested models worked, although I have had to do some ugly things in the code because, unlike other fields, date

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Igor Vaynberg
String.format(model.object.%s, id))); On Wed, Nov 26, 2008 at 12:57 AM, Ned Collyer [EMAIL PROTECTED] wrote: I'm trying to throw together some components for easily creating accessible forms. I'm a fair bit along - just need some assistance with how to structure the class for use with

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread András Csáki
The point is I'd rather avoid 2 calls where 1 will do. AbstractPageableView will do fine I believe. You can do the counting and the actual query in one go, with something like this if you happen to be running on Oracle: select data, count(data) over (order by rownum rows between unbounded

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Igor Vaynberg
On Wed, Nov 26, 2008 at 9:32 AM, Wayne Pope [EMAIL PROTECTED] wrote: so you think pushing all that extra data over the network is actually more efficient then doing another query wtf. The point is I'd rather avoid 2 calls where 1 will do. AbstractPageableView will do fine I believe. the

Re: RES: Wicket Session grows too big real fast

2008-11-26 Thread Casper Bang
Session/state-fullness is the no. #1 concern for me about Wicket. If you like to keep an eye on certain object trees during runtime, as an alternative to external profiling (which I've always found cumbersome) you can use TopCoders memory usage component:

Re: continueToOriginalDestination and POST

2008-11-26 Thread kan
A user has started to work with the form, then was distracted for 20 minutes, then he comes back and presses submit. Is it difficult to store PageParameters too? 2008/11/26 Jeremy Thomerson [EMAIL PROTECTED]: They shouldn't be able to access the bookmarkable page with the form (or, access the

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
the number of calls itself is meaningless, i dont comprehend why people have a hard time understanding this simple fact. The point for me is : something like select count(*) from user user1 inner join company com1 on user1.company_id= com1.id where com1.code='dht2' - called in size()

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread jWeekend
Wayne, http://donteattoomuch.blogspot.com/2008/04/partial-ajax-update-capable-list-view.html This may be interesting too. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Wayne Pope-2 wrote: Thanks Matej, I just noticed

Wicket and CoC

2008-11-26 Thread Ricardo Mayerhofer
I started to use wicket some time ago, and I'm really enjoying it. Best framework ever. But I've some suggestions. I think wicket could be better if it had less boiler plate code. This could be reduced by using CoC. Take the FeedBackPanel for example, you always have to add the component on the

Re: continueToOriginalDestination and POST

2008-11-26 Thread Jeremy Thomerson
You could add a feature request (and a patch?). My point was don't let them start on the form until they are signed in if being signed in is required for submitting the form. This just makes sense. Or, if what you're saying is that they are timing out while working on the form, add an ajax

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Jeremy Thomerson
But the second call is much longer and has a much different point. If you must display the total rows, you need to do the first call anyway. If you don't, then use a different component and avoid the first call, only getting the necessary rows, perhaps plus one to see if there is another page

Re: Wicket and CoC

2008-11-26 Thread Martijn Dashorst
-1000,000,000,000 First please don't assume someone understands your acronym du jour. I had to think really hard to understand that CoC means convention over configuration instead of the Dutch meaning gay rights group. Second this is not a task for wicket. You can think up any CoCamania you

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Ryan McKinley
On Nov 26, 2008, at 11:38 AM, Jeremy Thomerson wrote: I think Wayne was referring not to your post, but in general - if we package most of the projects up neatly under one parent, then other projects that aren't in the same subdirectory / build cycle may get lost. Hopefully having a

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Wayne Pope
If you must display the total rows, which I don't then use a different component and avoid the first call Which is what i said in my 3rd post. On Wed, Nov 26, 2008 at 7:51 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: But the second call is much longer and has a much different point. If you

Re: Wicket and CoC

2008-11-26 Thread Sven Meier
With IComponentResolver you can easily roll your own 'CoC' solution. Sven Ricardo Mayerhofer schrieb: I started to use wicket some time ago, and I'm really enjoying it. Best framework ever. But I've some suggestions. I think wicket could be better if it had less boiler plate code. This could

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Jeremy Thomerson
Good suggestion - I like that, too. I'll plan on adding it to the parent POM. Thanks! On Wed, Nov 26, 2008 at 1:13 PM, Ryan McKinley [EMAIL PROTECTED] wrote: On Nov 26, 2008, at 11:38 AM, Jeremy Thomerson wrote: I think Wayne was referring not to your post, but in general - if we package

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
The revision doesn't tell you everything, though. Typically, you don't release from trunk (at least you're not supposed to). You create a tag and create the release from there. So, the tag/revision would be what you need to easily recreate the release. On Wed, Nov 26, 2008 at 2:13 PM, Ryan

Re: Wicket and CoC

2008-11-26 Thread Ricardo Mayerhofer
Thanks Sven! I will look into it. svenmeier wrote: With IComponentResolver you can easily roll your own 'CoC' solution. Sven Ricardo Mayerhofer schrieb: I started to use wicket some time ago, and I'm really enjoying it. Best framework ever. But I've some suggestions. I think wicket

Re: Wicket and CoC

2008-11-26 Thread Ricardo Mayerhofer
Hi Martijin, First of all thank you for your response. I guess automation != magic. Automation means that computers or frameworks helps humans accomplishing repetitive tasks, so developers can better focus on the problem being solved, rather than having to copy and paste same code over and over

Re: Wicket and CoC

2008-11-26 Thread Jeremy Thomerson
You can also add it to your base page and include it in any page you want, or include it in your base page layout - now it's automatically on every page. In other words, everyone may want to do something a different way, so there's no reason the framework should do it automatically your way - but

Re: Wicket and CoC

2008-11-26 Thread Igor Vaynberg
in our app components with id feedbackPanel are often used to present a user with a user-feedback panel they can use to submit suggestions... -igor On Wed, Nov 26, 2008 at 12:51 PM, Ricardo Mayerhofer [EMAIL PROTECTED] wrote: Hi Martijin, First of all thank you for your response. I guess

RE: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread rgoodwin
Still is being disputed unfortunately :( https://issues.apache.org/jira/browse/WICKET-1784 For those who believe in the 1-query approach, ergo the DTO pattern, writing an alternative to the Wicket data provision using a DTO approach isn't a terrible hardship ... just annoying to be sprung with

RES: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread Bruno Cesar Borges
Here's what I've commented on this issue: I think the purpose of Transfer Object Pattern , where it says it wants to reduce remote calls between tiers over the network is related to tiers like client / server architectures. This means that: i) A Swing client requests a query on a table for a

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Ryan McKinley
Right, the svn url is important especially when you deploy from 'non- released' versions (like most of wicketstuff) This is what I have in my pom.xml plugin groupIdorg.apache.maven.plugins/groupId

Re: Wicket and CoC

2008-11-26 Thread Ricardo Mayerhofer
Perhaps the name could be userFeedBackPanel :) One Word per Concept (Clean Code, Bob Martin, p. 26) I'm just talking about code duplication, add( new SubmitLink( submitLink ) ) and similars many times in a code doenst makes a programmer happier. OOP (object oriented programming) isn't always

RES: Wicket and CoC

2008-11-26 Thread Bruno Cesar Borges
There you go. What about creating a project into Wicket Stuff, called ... WiCooCo? Wicket Conventioned over Configurations =) -Mensagem original- De: Ricardo Mayerhofer [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 26 de novembro de 2008 19:57 Para: users@wicket.apache.org

Re: Wicket and CoC

2008-11-26 Thread Igor Vaynberg
On Wed, Nov 26, 2008 at 1:57 PM, Ricardo Mayerhofer [EMAIL PROTECTED] wrote: Perhaps the name could be userFeedBackPanel :) One Word per Concept (Clean Code, Bob Martin, p. 26) why should conventions of a framework we use dictate our names in the application domain? within our application user

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
Bupbow. - that Yields an exception because the FormComponentPanels model object is of type String - not user. editor = new TextFieldT(editor, new PropertyModelT(this, String.format(model.object.%s, id))); org.apache.wicket.WicketRuntimeException: No get method defined for class: class

Re: Wicket and CoC

2008-11-26 Thread jWeekend
Richardo, That's one way of thinking. And I agree Bob Martin has some interesting generic ideas/guidelines for developers starting out. I have a lot of faith in the Wicket core devs and I tend to agree with most all the decisions they take (often after a lot of instructive and constructive

Re: Wicket Session grows too big real fast

2008-11-26 Thread jWeekend
Martijn, If you can put a little bit more meat on this, or give a stronger hint where to start looking, I'd like to add something to the http://cwiki.apache.org/confluence/display/WICKET/Wicket+Session+Size Wicket Session Size Wiki page . See the Keeping a reference to the previous page

Re: Wicket and CoC

2008-11-26 Thread jWeekend
Richardo, If you are serious about looking into RADifying extension to Wicket, here are a couple of resources that may be interesting: http://herebebeasties.com Al Maw' s excellent http://londonwicket.org/content/LondonWicket-FormsWithFlair.pdf Forms with Flair presentation

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Igor Vaynberg
then justmodel.object will do :) -igor On Wed, Nov 26, 2008 at 2:08 PM, Ned Collyer [EMAIL PROTECTED] wrote: Bupbow. - that Yields an exception because the FormComponentPanels model object is of type String - not user. editor = new TextFieldT(editor, new PropertyModelT(this,

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
But, here you have to assume it was released from the trunk (which I guess you can ascertain from the pom's SVN url). I'm not saying this information isn't useful. I'm just saying it doesn't give you the whole picture by itself. I was unaware of this plugin, but I do believe I'll add it to our

Re: Using CompoundPropertyModel with FormComponentPanel

2008-11-26 Thread Ned Collyer
FYI, you are awesome. Always obvious what the problem is after its fixed hey ;) igor.vaynberg wrote: then justmodel.object will do :) -igor -- View this message in context: http://www.nabble.com/Using-CompoundPropertyModel-with-FormComponentPanel-tp20697019p20710669.html Sent from

Re: Wicket and CoC

2008-11-26 Thread wfaler
Speaking of which, I'd be happy to get help with Wicket RAD. :) Especially in the area of making look-and-feel more customizable/flexible, but other ideas are also welcome of course. Help with documentation would also be very, very welcome. :D Have a new release in the works, just been a bit

Re: Wicket and CoC

2008-11-26 Thread Ricardo Mayerhofer
Hi Igor, User feedback is different from Feedback Panel, and I think is this difference is good, otherwise you will use one word with two meanings under the same project (I think I just defined ambiguity :)). Think about a project that uses a API that has a name for a concept and the application

Re: Wicket and CoC

2008-11-26 Thread Igor Vaynberg
right, so i should rename concepts from code that was written before wicket just because we are using wicket now... -igor On Wed, Nov 26, 2008 at 3:32 PM, Ricardo Mayerhofer [EMAIL PROTECTED] wrote: Hi Igor, User feedback is different from Feedback Panel, and I think is this difference is

Re: Wicket and CoC

2008-11-26 Thread Ricardo Mayerhofer
I think if you decide to rewrite an existing application with wicket, the names will be your least problem (http://chadfowler.com/2006/12/27/the-big-rewrite). Even though you can use the configuration part of CoC... igor.vaynberg wrote: right, so i should rename concepts from code that was

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Jurek Piasek
It is easy to vote yes to this. On Wed, Nov 26, 2008 at 5:55 PM, James Carman [EMAIL PROTECTED]wrote: But, here you have to assume it was released from the trunk (which I guess you can ascertain from the pom's SVN url). I'm not saying this information isn't useful. I'm just saying it

Re: continueToOriginalDestination and POST

2008-11-26 Thread kan
Yes, I am talking about timeouts. Actually... Maybe I want from wicket more than it was designed for. In some cases state of web-application could be on client-side and doesn't need to be in server-side session, only exception is auth-data. And I don't like fact that user faces with page expired

Re: continueToOriginalDestination and POST

2008-11-26 Thread jWeekend
Kan, If you are thinking of getting around this with a heartbeat, Eelco http://chillenious.wordpress.com/2007/06/19/how-to-create-a-text-area-with-a-heart-beat-with-wicket/ wrote about this a while back. Regards - Cemal http://www.jWeekend.co.uk http://j|Weekend.co.uk kan-4 wrote: Yes,

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread Ryan McKinley
yes, that is a problem with this plugin -- it looks at the configured pom scm and uses the info from there. The biggest problem is that if you build a modified version, the revision number is from the repos, *not* your code! so if 'svn info' shows Revision: 220M or 220~218, the cooked in

Re: Wicket and CoC

2008-11-26 Thread Nino Saturnino Martinez Vazquez Wael
Theres also wickettopia... http://sourceforge.net/projects/wicketopia/ jWeekend wrote: Richardo, If you are serious about looking into RADifying extension to Wicket, here are a couple of resources that may be interesting: http://herebebeasties.com Al Maw' s excellent

Re: continueToOriginalDestination and POST

2008-11-26 Thread Jonas
I found a JIRA issue was filed for this a while back: https://issues.apache.org/jira/browse/WICKET-1703 ...but it hasn't been addressed yet... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL