Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Iman Rahmatizadeh
On 6/23/07, Johan Compagner [EMAIL PROTECTED] wrote: with the current 1.3 if you hold page references in other pages the the main pag is not serialized as a whole. Every page reference we come across is saved by itself in its own file. So pages are not saved twice or multiply in more then one

[Wicket-user] Question on Serialization

2007-06-22 Thread Iman Rahmatizadeh
Does holding references to other Pages inside a Page make them be serialized twice ? Like : class MyPage extends Page { ListPage otherPages; } would it make any difference if it was inside another object, like : class MyPage extends Page { MyPageHolder pageHolder; //

Re: [Wicket-user] Question on Serialization

2007-06-22 Thread Iman Rahmatizadeh
On 6/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Does holding references to other Pages inside a Page make them be serialized twice ? Like : class MyPage extends Page { ListPage otherPages; } Yep, if you are using the SecondLevelCacheSessionStore, which is the default

[Wicket-user] Wicket ate my exception

2007-06-18 Thread Iman Rahmatizadeh
I ran into a problem where wicket(1.2.x) actually swallowed my exception before reporting it to me and showed another exception. Take this code for example : add(new MyComponent(id,new LoadableDetachableModel() { public void load() { // do something that throws

Re: [Wicket-user] wicket did not make the grade.

2007-06-06 Thread Iman Rahmatizadeh
On 6/7/07, Jonathan Locke [EMAIL PROTECTED] wrote: Florian Hehlen-2 wrote: -It will be easier to hire someone with Struts knowledge on top of the fact that we have some in-house knowledge with it. translation: we don't want to think -Struts is the de-facto standard with a lot of

Re: [Wicket-user] Wicket mailing lists no more archived ?

2007-03-12 Thread Iman Rahmatizadeh
Really ? Wicket will directly be a top level apache project ? I thought it would take some time ... On 3/12/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 3/12/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Having played with the nabble search engine I can already tell that it rocks ! :)

Re: [Wicket-user] Joost uses Wicket

2007-03-12 Thread Iman Rahmatizadeh
I thought everybody knew this, Jonathan I guess once mentioned it on his weblog. And there's also another big one here http://martijndashorst.com/blog/2007/03/10/myspace-going-wicket/ On 3/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i was being sarcastic :) -igor On 3/12/07, Jonathan Locke

Re: [Wicket-user] Wicket for Bog Projects

2007-03-12 Thread Iman Rahmatizadeh
huh ?! On 3/13/07, Michael Day [EMAIL PROTECTED] wrote: No, only extra small, small, medium, and medium-to-big projects. Big projects will be supported in wicket 3.0. On Mar 13, 2007, at 12:51 AM, Sazib wrote: Hi everybody, I just want to know, is wicket suitable for a big project?

Re: [Wicket-user] Fwd: VOTE: backporting wicket 2.0 model change to 1.3

2007-03-07 Thread Iman Rahmatizadeh
Neat :-) how many big changes are there between 1.2.x and 1.3 ? I thought big API breaks would only happen between major versions ? On 3/8/07, Matej Knopp [EMAIL PROTECTED] wrote: 1 port it to 1.3 -Matej Johan Compagner wrote: In 2.0 we have a model change: IModel.getObject(Component) -

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Iman Rahmatizadeh
Well, I'm not a core committer , so dont have enough vision to talk about the internal effects of the change, but as a user from the pre-1 versions of wicket till now(1.2.5), here are some humble opinions: pros: * free to call any method in the constructor like getpage(), urlfor(), etc. *

Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-06 Thread Iman Rahmatizadeh
On 3/7/07, Eelco Hillenius [EMAIL PROTECTED] wrote: As a user I'm very happy with the current features and possibilities in wicket, and am only waiting for the changes(stateless forms, Stateless pages, forms and links are already backported to 1.3! page cache, ... The

Re: [Wicket-user] repeaters and inheritance

2007-02-28 Thread Iman Rahmatizadeh
Another solution would be to put all the complexity of managing items into a general CartPanel class, but that wont get much cleaner I guess. One thing that comes to mind is, If you have a Pricing domain object to handle pricing issues, and a Summary object to handle the items summary , you can

Re: [Wicket-user] wicket-contrib-tinymce release

2007-02-25 Thread Iman Rahmatizadeh
Thanks for the great work. Will the examples be released as well ? It was a little hard for me as a first timer with tinymce to find out how it works. On 2/24/07, Iulian Costan [EMAIL PROTECTED] wrote: hi i just want to let you know that wicket-contrib-tinymce module has been released. the

Re: [Wicket-user] Question about DropDownChoice

2007-02-25 Thread Iman Rahmatizadeh
// Note that when the selection is null, Wicket will lookup a localized string to // represent this null with key: id + '.null'. In this case, this is ' site.null' // which can be found in DropDownChoicePage.properties copied from the JavaDoc for DropDownChoice. On 2/25/07, Zhang Hailong

Re: [Wicket-user] Question about DropDownChoice

2007-02-25 Thread Iman Rahmatizadeh
(properties, answer), ANSWERS); Thank you! Regards, Hailong Zhang On 2/25/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: // Note that when the selection is null, Wicket will lookup a localized string to // represent this null with key: id + '.null'. In this case, this is 'site.null

Re: [Wicket-user] LoadableDetachableModel in form processing

2007-02-19 Thread Iman Rahmatizadeh
Matthew, the line where you create a palette object, I see you're using Model instead of a Loadable model, what does the getDataStoreRoles() do ? Does it load the DataStoreUser object ? Models are normally dangerous to use with persistent objects, as they usually hold on to the instance during

Re: [Wicket-user] wicket presentation

2007-01-04 Thread Iman Rahmatizadeh
Well, comparing to struts/jsp/... solutions the best features would be imho : 1- Moving away from Request/Response 2- Full power of OO in the presentation layer 3- Real Reusable Components / Panels / Markups / Anything (!) 4- Separation of Concerns (Markup for layout and presentation, Java for

Re: [Wicket-user] wicket presentation

2007-01-04 Thread Iman Rahmatizadeh
Well, comparing to struts/jsp/... solutions the best features would be imho : 1- Moving away from Request/Response 2- Full power of OO in the presentation layer 3- Real Reusable Components / Panels / Markups / Anything (!) 4- Separation of Concerns (Markup for layout and presentation, Java for

Re: [Wicket-user] wicket presentation

2007-01-04 Thread Iman Rahmatizadeh
Sorry about the dual post, back button problem. Unfortunately gmail isn't developed with wicket ;-) On 1/4/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: Well, comparing to struts/jsp/... solutions the best features would be imho : 1- Moving away from Request/Response 2- Full power of OO

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread Iman Rahmatizadeh
. You can get the dtd from svn or use the one supplied in the wicket-1.2.3 zip. It hasn't been updated for a while (read 1 year or so). Martijn On 1/2/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: Hmmm, anyone ? Can anybody pass the tests on wicket-1.2.4 with ant ? I'm using

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-02 Thread Iman Rahmatizadeh
Hmmm, anyone ? Can anybody pass the tests on wicket-1.2.4 with ant ? I'm using building a fresh distro with ant and the testInternalDetach test fails. Its looking for the wicket-xhtml1-strict.dtd file and can't find it . On 1/1/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote

Re: [Wicket-user] 100, 000th download at januari 1st, 2007, 1:00pm UTC

2007-01-02 Thread Iman Rahmatizadeh
Not to forget, joining Apache this year ! On 1/2/07, Jonathan Locke [EMAIL PROTECTED] wrote: We also recently passed 2.5M web pages served. The trend of interest in Wicket looks very promising. I think we may see another uptick in use this year as 2.0 comes out, the book is released and

[Wicket-user] 1.2.4: Test cannot find file

2007-01-01 Thread Iman Rahmatizadeh
The FileUploadFieldTest try's to upload a non-existent file ( wicket-xhtml1-strict.dtd ) Where should this file be ? I'm testing using ant jar task. Iman - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [Wicket-user] Bug in SimpleConverterAdapter?

2006-12-12 Thread Iman Rahmatizadeh
Hey, you saved my life Jan ! I always thought it was my problem wicket throwing exception's there. Now I see it's Johan ! :-) On 12/13/06, jan_bar [EMAIL PROTECTED] wrote: Hi, in my opinion, the logic with isAssignableFrom should be the opposite one (wicket 1.2.3): Object convert(..) { ...

Re: [Wicket-user] Question about setting up request and response

2006-11-12 Thread Iman Rahmatizadeh
I don't think that's what you're looking for. What exactly do you want to do ? On 11/13/06, Carfield Yim [EMAIL PROTECTED] wrote: I need to setup some parameter for the wicket test, I can see there is a method call setupRequestAndResponse so I guess I should override this one and do the setup

Re: [Wicket-user] Question about setting up request and response

2006-11-12 Thread Iman Rahmatizadeh
to assert it at my test.After I really read the document, I guess what I really need to do input a Map at setParametersForNextRequest() , right? On 11/13/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: I don't think that's what you're looking for. What exactly do you want to do ? On 11/13/06, Carfield Yim

Re: [Wicket-user] Safari yes, Firefox no

2006-10-18 Thread Iman Rahmatizadeh
is Mac OS/X. Thanks for your help. Iman Rahmatizadeh wrote: Can you refresh the page ? Does it bring up the Page Expired again ? Try it with ie. I guess that shouldn't have any problems as well. On 10/18/06, Michael Welter [EMAIL PROTECTED] wrote: This is a very strange problem

Re: [Wicket-user] Safari yes, Firefox no

2006-10-17 Thread Iman Rahmatizadeh
Can you refresh the page ? Does it bring up the Page Expired again ? Try it with ie. I guess that shouldn't have any problems as well. On 10/18/06, Michael Welter [EMAIL PROTECTED] wrote: This is a very strange problem. In Firefox, the page display is more or less normal. However, if I

Re: [Wicket-user] new initiative for a user guide

2006-10-05 Thread Iman Rahmatizadeh
hmmm, is it going to be some sort of a reference doc for wicket, or just a user guide to writing a sample app ? On 10/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote:yeah, maybe it doesn't need that. Pet store is kind of a best practices project, so I figured it might get in there. Databinder as an

Re: [Wicket-user] [ANN] Intellij Idea wicket plugin

2006-10-05 Thread Iman Rahmatizadeh
Nice work ! I've written an IDEA plugin for my own use, it has markup creation/viewing, a project browser and some other small stuff. Open up your code so I could contribute ! Iman On 10/5/06, Anders Holmbech Brandt [EMAIL PROTECTED] wrote: Hello wicket-users, I would just like to announce

[Wicket-user] Infinite Loop on Session.getPage()

2006-09-07 Thread Iman Rahmatizadeh
There's a problem with my app, where clicking on a link would generate an ArrayOutOfBoundsException. However, pressing the back button and clicking on any other link in the page would cause an infinite loop in the getPage method of Session, between lines 405 and 415 (Wicket 1.2.2),where the

Re: [Wicket-user] Infinite Loop on Session.getPage()

2006-09-07 Thread Iman Rahmatizadeh
Well here's a trace of what happens that causes the problem : During the RESOLVE_TARGET step of RequestCycle, the target is trying to be resolved using the DefaultRequestTargetResolverStrategy, which first inside the resolveRenderedPage() method uses Session.getPage() to get the page,(which

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-18 Thread Iman Rahmatizadeh
Nathan Hamblen wrote: As others have pointed out, the magic of IModel works better than you think (or thought) it does. I often have two constructors for pages, one taking bookmarkable parameters and another taking an IModel so that I don't always have to reload DB objects page to page. It's a

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-16 Thread Iman Rahmatizadeh
The problem with #1 is, first its a bit ugly, second you discard every persistent instance in each cycle (which is less efficient than #2 or #3), third you lose the advantages of working passing POJO's between pages, Like you would call 'new ProfilePage(person.getId())' instead of 'new

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-16 Thread Iman Rahmatizadeh
I don't think it is *that* less efficient. Attaching those objects likely means refreshing them too, so the only gain you would have is the creation of objects, and those few instances wouldn't even be noticable, while the extra session size of #2 might be. What I meant was mostly

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-16 Thread Iman Rahmatizadeh
Another case I just remembered where performance in #1 will be poor is where you have a page containing a lot of panels, each of them needing the model object or one of its associations. In #1 the object will be loaded per panel, but in #2 or #3 you wont have any extra calls. Iman

Re: [Wicket-user] Wicket Hibernate Application Transactions

2006-07-16 Thread Iman Rahmatizadeh
Juergen Donnerstag wrote: I don't think this is true if you create a hibernate session per http request Juergen When you pass the object id instead of the object to the panels, each panel will retrieve the object independent of others. Maybe a cache will help. But still it goes through

[Wicket-user] Wicket Hibernate Application Transactions

2006-07-15 Thread Iman Rahmatizadeh
Hi, AFAIK, there are three ways of implementing application transactions, lazy loading, etc. stuff with Wicket Hibernate : 1 - The hard way, where you pass object ids, and load save them in each request cycle using a new session 2 - The detached object way, where you attach the old objects in

Re: [Wicket-user] Page expired problem

2006-07-08 Thread Iman Rahmatizadeh
Hmmm, I remember having such problems before. The problem was with firefox generating invalid requests because of a bad script in my page. Look at (http://www.wicket-wiki.org.uk/wiki/index.php/Best_Practices_and_Gotchas) to read about it. However, what we can do here is see what exactly is

Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!

2006-06-20 Thread Iman Rahmatizadeh
Thanks to both karthik eelco ! But despite the excitement, I'm always worried that the wicket books turn out to be some sort of reference manual which wicket is missing. What I like about books like 'Hibernate in Action', etc. is that they show you how to build real world apps, various design

Re: [Wicket-user] proposal: internationalization project

2006-04-23 Thread Iman Rahmatizadeh
I'm ready for Persian/Farsi (fa_IR). Just asking, would it be a good idea to let wicket automatically set the page direction (ltr or rtl) based on the locale ? Iman --- Using Tomcat but need to do more? Need to support web services,

[Wicket-user] WicketTester throws exception instead of failing

2006-04-22 Thread Iman Rahmatizadeh
Hi, The WicketTester.assertVisible(path) method should check to see if the component with the given path is visible or not, but instead it throws a NullPointerException whenever it should fail. The getComponentFromLastRenderedPage(path) method returns null if the component is invisible.

[Wicket-user] Firefox misbehavior and wicket problem

2005-12-25 Thread Iman Rahmatizadeh
I posted this problem last week where clicking on links in DataTable's generated an internal error in wicket and an error log indicating that the requested component was not found. Strangely, the case was only with Firefox and I had no problem with IE. After debugging and digging everywhere, I

[Wicket-user] DataTables generating invalid links

2005-12-16 Thread Iman Rahmatizadeh
I'm setting up a simple table, with some links in a column. When clicking on the links generated, I see an InternalErrorPage, and wicket logs something like :No component found for 8:fields:rows:2:cells:6:cell where my html has:table wicket:id=fields class=grid/tableas I play with the component

Re: [Wicket-user] DataTables generating invalid links

2005-12-16 Thread Iman Rahmatizadeh
t 1.1 and I managed to get the phonebook app working without any problem.On 12/16/05, Igor Vaynberg [EMAIL PROTECTED] wrote:i need to see more code and html templates. so far looks like you are doing everything correctly. -IgorOn 12/16/05, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:I am

Re: [Wicket-user] Question about release schedules

2005-12-14 Thread Iman Rahmatizadeh
think most of the changes i made to extensions are backwards compat. can you try to compile extensions 1.2 against wicket 1.1?-Igor On 12/14/05, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: I'm currently working with DataTable's in wicket extensions 1.1 release. It seems to be lacking many of the good

Re: [Wicket-user] FXValidationAjaxHandler in wicket-examples HEAD

2005-12-12 Thread Iman RahmatiZadeh
I had this problem a few days ago and it seems to appear when using encrypted urls, which seems to be your case. If its not important just use normal urls.I think the problem is because these _javascript_s are not encoded into a safe format before putting on to the page.ImanOn 12/12/05, Juergen

[Wicket-user] Problem switching to crypted URL's

2005-12-10 Thread Iman RahmatiZadeh
Maybe I'm missing something, but while working with a DropDownChoice and overriding wantOnSelectionChangedNotifcations() to return true, if I set my application to use crypted urls, the onclick script created for the select tag will break. This is the html generated : select wicket:id=fields

Re: [Wicket-user] Problem switching to crypted URL's

2005-12-10 Thread Iman RahmatiZadeh
to the ' character or the character. This terminates the string in the browser. It seems like this is a bug in the encryptor. Can you create a bug for this please? MartijnOn 12/10/05, Iman RahmatiZadeh [EMAIL PROTECTED] wrote: Maybe I'm missing something, but while working with a DropDownChoice

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Iman RahmatiZadeh
My opinions are similar to Christian : - How much faster or easier it would be to use wicket - Spring/Hibernate Integration (almost on everybody's list) - Testability - Performance comparisonI guess you might as well get ready for some complaints : - Lack of good and thorough documentation - Not

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Iman RahmatiZadeh
Why? Igor and a couple of others build some pretty decent Springsupport now? It's all in HEAD, and there has to be a proper build forit made, but I think we now have Spring integration that most people are happy with.I'm looking forward to see a real final solution to the spring integration

[Wicket-user] Constructor-based Page construction Problems with checkAccess

2005-11-26 Thread Iman RahmatiZadeh
I've ran into these questions many times, working with checkAccess(), Spring integration, etc. Just wondering if anybody has come up with some good idea's :1 - What's the best method for doing page initilization outside the page constructor ? Is overriding onBeginRequest() and adding components

Re: [Wicket-user] Re: Constructor-based Page construction Problems with checkAccess

2005-11-26 Thread Iman RahmatiZadeh
onBeginRequest() happens before rendering, so whats the problem with putting code there ? And Sometimes I am forced to do this, for example if I have to access Authentication specific data (like username, etc) which should only be done after checkAccess() ensures there is an authenticated user. I

[Wicket-user] Problem in unit tests

2005-10-30 Thread Iman RahmatiZadeh
Argh ! Unit testing is way too hard in wicket. I'm using a custom implementation of WebSession in my application. The problem arises when I use the MockWebApplication class for testing, which creates and uses WebSession for tests and my page classes which depend on my implementation of WebSession

Re: [Wicket-user] Problem in unit tests

2005-10-30 Thread Iman RahmatiZadeh
, or various tag attributes change frequently i'm looking for a more abstract way of validating the markup than just a string equality check. Regards, Iman On 10/30/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: On 10/30/05, Iman RahmatiZadeh [EMAIL PROTECTED] wrote: Argh ! Unit testing is way too