Re: [Wicket-user] Question on Serialization
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 file. The only thing i dont know currenlty is if PageX is the request page, PageY the response with a reference to PageX then it is still possible then PageX is saved twice (one time as main page and one time as a sub one, but this will result in one file for pagex) How about 1.2.x ? Does it handle page references intelligently ?> - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question on Serialization
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 { > > List otherPages; > > } Yep, if you are using the SecondLevelCacheSessionStore, which is the default for Wicket 1.3, evry page will get serialized as a whole, and everytime you do that, it needs to resolve all the references completely. Note that this does not mean you will be using more RAM - that's the same (except for the object pointer). So actually it wont do any harm, just an object reference is added, right ? would it make any difference if it was inside another object, like : > > > class MyPage extends Page { > > MyPageHolder pageHolder; // serializable > > } > Nope. Any object that is non-transient and referencable will be serialized, so this won't help. There are optimizations possible, but it will probably be a hit on your programming convenience. For instance, I think it is possible to just store the page map/ page id and page version combination and use that if you want to redirect to a previous one. Might be an idea to check out if you are worried about optimizing. Actually I just want to make sure it wont take much more ram either way. I am trying to implement a simple BreadCrumb bar, by keeping each page's breadcrumb history (the recent page references) in itself. Is this a safe way for a page to hold references to other pages ? Thanks a lot ! Iman - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Question on Serialization
Does holding references to other Pages inside a Page make them be serialized twice ? Like : class MyPage extends Page { List otherPages; } would it make any difference if it was inside another object, like : class MyPage extends Page { MyPageHolder pageHolder; // serializable } finally, where exactly is this logic hidden in wicket code, so I can give it a closer look ? Iman - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket ate my exception
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 some nasty exception // but expect to return an object of type MyModelObject } } ) { public boolean isVisible() { ((MyModelObject)getModel().getObject(null)).isComponentVisible(); } }; The exception thrown in the load method will not be shown, because 1 - the LoadableDetachableModel first sets attached=true then loads the object 2 - An exception is thrown, so in Markupcontainer it will be catched 3 - the exception is appended with the MarkupContainer.toString() String , which will call many methods on the component, including isVisible() 4 - the isVisible method uses the model again which it thinks its attached , but the getObject will return null , so a new nullpointerexception will be thrown, and the previous exception is lost Actually the Component.toString() method is somehow heavy, and normally any exception thrown in the middle of it would cause bad behavior in wicket. Is there a chance to improve this somehow, or make exception handling aware of problems that might arise when calling the toString method and let it handle them ? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket did not make the grade.
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 > community/vendor/documentation support > translation: we don't want to think > -Struts seems heavy on the java-code required for things that are pretty > simple with struts > translation: we don't want to think translation: we're too lazy. But that is how the world is. Technology is here for those who don't want to think. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket for Bog Projects
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? > > Thanks > --- > Sazib > > -- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Joost uses Wicket
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 <[EMAIL PROTECTED]> wrote: > > > > i think that's correct. but i also heard that it will be publicly > visible > later. > > > igor.vaynberg wrote: > > > > is it at all feasible that it is being used for an internal system? > > > > -igor > > > > > > On 3/12/07, cowwoc < [EMAIL PROTECTED]> wrote: > >> > >> > >> If they use Wicket why doesn't it show at all on their > website at > >> joost.com? I am expecting to at least see some evidence of a servlet > >> context path... > >> > >> Gili > >> > >> Brian Topping wrote: > >> > Here I thought they were cool, then they use Ant?!? > >> > > >> > :b > >> > > >> > On Mar 12, 2007, at 8:45 AM, mraible wrote: > >> > > >> >> Thought y'all might be interested: > >> >> > >> >> http://opensource.joost.com/ > >> >> > >> >> Joost is a new company started by the founders of Skype: > >> >> > >> >> http://en.wikipedia.org/wiki/Joost > >> >> > >> >> Matt > >> >> -- > >> >> View this message in context: http://www.nabble.com/Joost-uses- > >> >> Wicket-tf3390296.html#a9437082 > >> >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> > -- > >> >> --- > >> >> Take Surveys. Earn Cash. Influence the Future of IT > >> >> Join SourceForge.net's Techsay panel and you'll get the chance to > >> >> share your > >> >> opinions on IT & business topics through brief surveys-and earn > cash > >> >> http://www.techsay.com/default.php? > >> >> page= join.php&p=sourceforge&CID=DEVDEV > >> >> ___ > >> >> Wicket-user mailing list > >> >> Wicket-user@lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> >> > >> > > >> > > >> > > >> > - > >> > Take Surveys. Earn Cash. Influence the Future of IT > >> > Join SourceForge.net 's Techsay panel and you'll get the chance to > share > >> your > >> > opinions on IT & business topics through brief surveys-and earn > cash > >> > > >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> > ___ > >> > Wicket-user mailing list > >> > Wicket-user@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > >> > - > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance to > share > >> your > >> opinions on IT & business topics through brief surveys-and earn cash > >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > >> > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: http://www.nabble.com/Joost-uses-Wicket-tf3390296.html#a9448145 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.n
Re: [Wicket-user] Wicket mailing lists no more archived ?
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 ! :) Yeah, it is pretty decent. > And the new Wicket website is really nice ! :) Thanks > When will it be the "official" new wicket website ? When we graduate. Then it will become: http://wicket.apache.org First we have to perform a 'legal issues' release, which gets scrutinized by the Apache incubator PMC to find any legal issues in our code base. If that is successful, we can ask for graduation and become a top level project. The legal release was scheduled for this weekend, but took more effort to complete because we wanted to shuffle things around and make the release process easier. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Fwd: VOTE: backporting wicket 2.0 model change to 1.3
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) -> IModel.getObject() > IModel.setObject(Component,Object) -> IModel.setObject(Object) > > So if you want to object from a component in 2.0 you only have to do: > > component.getModel().getObject() > > instead of > > > component.getModel().getObject() > > That XXX is depending on what kind of model you use. If the component > did inherit a CompoundModel then you have to specify the component.this > If you where owner of the compoundmodel then you shouldn't specify > anything (null) > > This is all fixed in 2.0 and now we can backport it to 1.3: > > 1> port it to 1.3 > > 2> don't port it to 1.3 > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0
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 SecondLevelCacheSessionStore? Already in 1.3 :) Yes, that was my point. The only features I feel missing are the ones available in 1.3 (since I'm using 1.2.x right now) and the Java 5 features. ) in 1.3. My main dissatisfaction is some ugly code I'm forced to write > which can be easily improved. Like I'm really sick of the casting and the > "always null" parameter in : > myObject = (MyObject) myModel.getObject (null); Agreed. We've been talking about backporting 2.0's models. Mind you that the main pain point in this whole thing - besides maintaining two branches - is the constructor change, which we are starting to regret now. The model change definitively was for the better. Generics might be applied in a separate version. So , I feel the trend is towards reversing the change ... heeheee ! ;-) Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0
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. * access to markup attributes in constructor as opposed to render time I dont know why, but I've never felt any need for these two. Maybe I'm used to passing dependencies to child components, instead of letting them access the parent page. But these two have never been a problem for me . * fail at component instantiation time rather then render time if there is a hierarchy<->java mismatch - so you get a java line-precise error as opposed to our error webpage In 80% of my usecases, I use the component as soon as I instantiate it, so this is really considered a minor improvement in my domain. cons: * code explosion 2.0: http://papernapkin.org/pastebin/view/4900 1.3: http://papernapkin.org/pastebin/view/4908 Now, I already preferred the add() method way over the new(parent,...) way, just because of clarity and maybe because I'm used to it. But this example is really frightening me. It's got way too complicated instead of simpler, and clean readable code is really REALLY important. Consider a newbie, looking for the first time at these two codes. Which one would be easier for him to understand ? * hacks necessary for nontrivial components GridView.populate() http://papernapkin.org/pastebin/view/4902 notice fake1,fake2 parents necessary for child item instantiation and which are later * more limited in how the hierarchy is created since it MUST be created top-down * replacing components is less explicit. 1.3: a.replaceWith(new B()); 2.0: new B(a.getParent(), a.getId()); again, code is getting uglier :-( Some other thoughts : * Converting 1.x code to 2.x is really really hard this way. If it would've been easier, I guess many users (including myself) would've started to use 2.x codebase right now. The amount of feedback and test you would get by that is enormous. But, considering how much code I have working with 1.x and how much pain it would have migrating to 2, I've left it out for my next project. * One of the best features I'm hoping for in 2.x is the Java 5 support, like covariant return types, Generics and stuff. Surely they would make my page's much cleaner and readable. But wicked is way too slow in adopting jdk5, and I see the problem is the enormous constructor change getting in its way. I cant estimate the amount of man-hour work needed to finish 2, but maybe a good 6 months is needed. Now that everybody is talking about the new features in Java 7, we still have to work with Java 1.4 style of code. Or maybe when 7 is out, we could finally use 5 ? ;-) As a user I'm very happy with the current features and possibilities in wicket, and am only waiting for the changes(stateless forms, page cache, ... ) in 1.3. My main dissatisfaction is some ugly code I'm forced to write which can be easily improved. Like I'm really sick of the casting and the "always null" parameter in : myObject = (MyObject) myModel.getObject(null); Just my 2c ! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] repeaters and inheritance
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 somehow get rid of the inheritance hierarchy and manage them with a single Item class at the top, and two dependent objects(Pricing and Summary). The actual smell I sniff in your code is the parallel inheritance hierarchies in the domain objects and UI. Thats what forces you to use a factory. On 3/1/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: On 2/28/07, Scott Swank <[EMAIL PROTECTED]> wrote: > In our application we have several places where we are construction an > html table but the content of the rows varies by ProductType. For > example: > > column 1. always an image > column 2. the pricing: for hotels by room, for shows by ticket, for > limo by hours > column 3. item summary: for hotels the rooms/nights, for shows the > seats and show time, etc > column 4. the total > > There is a natural class hierarchy here where we have > > AbstractItem > HotelItem > ShowItem > LimoItem > > I'd like to have a comparable hierarchy of perhaps "RepeaterRow" > objects that could have methods such as: > > AbstractItemRow > protected abstract Panel getPricingPanel(); > protected abstract Panel getSummaryPanel(); > > I've gotten this working with a ListView, but I'm doing things like: > > populateItem(ListItem listItem) { > final AbstractItem cartItem = (AbstractItem)listItem.getModelObject(); > add(CartPanelFactory.getPricingPanel(cartItem)); > add(CartPanelFactory.getSummaryPanel(cartItem)); > } > > Is there a cleaner way than delegating this decision about which Panel > I need to a factory? That looks like a fine pattern to me tbh. What don't you like about it? Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about DropDownChoice
Hi, The PropertyModel you've used does that for you. It *binds* the selection to the properties object, using "answer", so it reads the "answer" property from the properties when it wants to select an option to display , and sets it to the properties when the form is submitted. So whatever is in properties.get("answer") will be the default value. On 2/25/07, Zhang Hailong <[EMAIL PROTECTED]> wrote: Hi Iman, Thank you for your response. But How to set the default selection? My DropDownChoice defined as follows: DropDownChoice choices = new DropDownChoice("answerChoices", new PropertyModel(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' >// which can be found in DropDownChoicePage.properties > > copied from the JavaDoc for DropDownChoice. > > On 2/25/07, Zhang Hailong <[EMAIL PROTECTED] > wrote: > > > Hi all, > > > > The default DropDownChoice always adds a "Choose One" option. How to > > disable this? > > > > Thank you! > > > > > > Regards, > > Hailong Zhang > > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys-and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about DropDownChoice
// 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 <[EMAIL PROTECTED]> wrote: Hi all, The default DropDownChoice always adds a "Choose One" option. How to disable this? Thank you! Regards, Hailong Zhang - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-contrib-tinymce release
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 binary files for 1.0 version can be found here: http://sourceforge.net/project/showfiles.php?group_id=134391&package_id=223039 . /iulian - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] LoadableDetachableModel in form processing
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 sessions instead of loading them again. Maybe that's causing the DataStoreUser object to live outside the previous session and cause the problem. Replace the Model with a LoadableDetachableModel and see if the problem goes away. And karthik, I create and release the hibernate session in the request cycle, which is just some variant of OpenSessionInViewFilter pattern, and haven't had any problems with it. You just have to remember to always get the object from the underlying model, and pass around the model. However the only problem is the code gets really ugly with all the casts and getObject() methods. I cant wait to move on to wicket 2.0 ! Iman On 2/19/07, karthik Guru <[EMAIL PROTECTED]> wrote: Personally I have have run into lot of issues with OpenSessionInViewFilter pattern, so much so that I decided to take it off - At least the app now works as 'I expect'. But then am not an hibernate expert. >> The standard solution is to use Session.merge() Doesn't merge recreate the entity if its say deleted by another user-session?. May be one can do a load before doing a merge just to make sure that the entry actually exists in the DB at that point in time. On 2/18/07, Ryan Holmes <[EMAIL PROTECTED]> wrote: > > org.hibernate.NonUniqueObjectException is a really common problem. My > guess is that the DataStoreUser is being loaded once to pass it into > the page constructor and again by the LoadableDetachableModel within > the same Hibernate session. Same persistent object loaded into two > separate instance variables in the same (Hibernate) session -- boom, > NonUniqueObjectException. > > There are a couple of ways to fix this. The "correct" solution is to > avd'oid loading the object more than once in the first place. For > instance, maybe you could take a user id instead of a user object > into your page constructor to remove one of the load operations. The > standard solution is to use Session.merge() instead of, say, > Session.saveOrUpdate () (I assume you're getting this exception when > the Hibernate session flushes). > > In any event, this is happening because LoadableDetachableModel is > working as intended and thereby revealing one of Hibernate's many > "quirks" -- not because of a problem in Wicket. > > > -Ryan > On Feb 10, 2007, at 2:31 AM, Matthew Kwong wrote: > > > > > Hi fellows, > > > > Last time I asked how to use chain in CompoundPropertyModel with > > LoadableDetachableModel, it worked since my page has no form (no > > submit). > > This time, I make another page and try to use the chain again, and > > hibernate > > throws org.hibernate.NonUniqueObjectException when I submit the form. > > > > Caused by: org.hibernate.NonUniqueObjectException: a different > > object with > > the same identifier value was already associated with the session: > > [datastore2.model.DataStoreRole#1 ] > > > > My Panel: > > > > public UserDetail(String id, DataStoreUser user, final Panel > > prevPanel) { > > super(id); > > add(new FeedbackPanel("feedback")); > > > > add(new Link("back") { > > public void onClick() { > > getParent().replaceWith(prevPanel); > > } > > }); > > > > Form form = new Form("form") { > > protected void onSubmit() { > > DataStoreUser user = (DataStoreUser) > > this.getModelObject(); > > try { > > getDelegate().saveUser(user); > > info("You have saved the user profile: " + > > user.getFullname() + "."); > > } catch (Exception e) { > > e.printStackTrace(); > > error("Your user profile state is stale > > (someone has > > updated the same user profile while you are on this page). Please > > press BACK > > and come back."); > > } > > } > > }; > > > > form.setModel(new CompoundPropertyModel(new > > LoadableDataStoreUserModel(getDelegate().getDataStoreUser(user.getId > > (); > > form.add(new Label("id")); > > form.add(new Label("username")); > > form.add(new RequiredTextField("firstname")); > > form.add(new > > TextField("lastname").setConvertEmptyInputStringToNull(false)); > > form.add(new Label("email")); > > form.add(new Palette("roles", new > > Model((Serializable)getDelegate().getDataStoreRoles()), new > > RoleChoiceRenderer(), 10, true)); > > add(form); > > } > > > > Is LoadableDetachableModel working for form processing? Because it is > > working if I only have > > form.setModel(new > > CompoundPropertyModel(getDelegate().getDataStoreUser( user.getId(; > > > > The reaso
Re: [Wicket-user] wicket presentation
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 in the presentation layer 3- Real Reusable Components / Panels / Markups / Anything (!) 4- Separation of Concerns (Markup for layout and presentation, Java for logic) 5- Power of IModels/Property Models/Compound Models (though a bit hard to explain) 6- Neat & easy AJAX support Iman On 1/4/07, Nino Wael <[EMAIL PROTECTED]> wrote: > > Hi im doing a wicket presentation for our consultants team, on this > first teaser I have about ten minutes. > > > > > > I plan to talk something about markup inheritance(the stuff with panels > and borders, which are very nice), and the POJO concept. > > > > Also wickets model concept and that you don't have to think about the > tedious tasks like printing html and setting the correct radio to be > selected. I guess that part will be a big eye opener for some of themJ > > > > Which features should I show? > > > > > > The crowd will maximum have knowledge of struts or simple jsp pages. > > > > > > > > Regards Nino > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket presentation
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 logic) 5- Power of IModels/Property Models/Compound Models (though a bit hard to explain) 6- Neat & easy AJAX support Iman On 1/4/07, Nino Wael <[EMAIL PROTECTED]> wrote: Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about the tedious tasks like printing html and setting the correct radio to be selected. I guess that part will be a big eye opener for some of themJ Which features should I show? The crowd will maximum have knowledge of struts or simple jsp pages. Regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket presentation
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 logic) 5- Power of IModels/Property Models/Compound Models (though a bit hard to explain) 6- Neat & easy AJAX support Iman On 1/4/07, Nino Wael <[EMAIL PROTECTED]> wrote: Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about the tedious tasks like printing html and setting the correct radio to be selected. I guess that part will be a big eye opener for some of themJ Which features should I show? The crowd will maximum have knowledge of struts or simple jsp pages. Regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] 1.2.4: Test cannot find file
On 1/3/07, Frank Bille <[EMAIL PROTECTED]> wrote: Well it's actually my fault. When I created that unit test I assumed that we inclueded wicket-xhtml1-strict.dtd in the release. You should be fine just putting the a file in the root directory (C:\workspace\wicket-1.2.3 ) and call it wicket-xhtml1-strict.dtd. It's not the content that matters but that that is somewhat big. Although unit tests shouldn't rely on external files, I guess you have no choice here. Can you create the file on the fly and delete it afterwards ? Or maybe somehow mock the file access thingy ? I'll fix this in the different releases. Martijn perhaps we should include a step in the release process that tests the release (run ant jar or something)? +1 Frank On 1/3/07, TH Lim <[EMAIL PROTECTED]> wrote: > > > I am compiling wicket-1.2.3 from the zip file using "ant jar" and the > compilation was terminated unsuccessfully with the message "[junit] File > does not exists. You must provide an existing file: > C:\workspace\wicket-1.2.3\wicket-xhtml1-strict.dtd". I found > wicket-1.0-xhtml11.dtd in the directories src\site\resources\DTD and > docs\DTD. Should rename wicket-1.0-xhtml11.dtd to > wicket-xhtml1-strict.dtd > and placed it to my local directory C:\workspace\wicket- 1.2.3? Please > advise. > > > Martijn Dashorst wrote: > > > > We don't use ant ourselves. The dtd file should be in the root > > directory of the zip. Apparently the assembly descriptor used to build > > > the download archive didn't pick it up. grmbl. > > > > 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 > 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: > >> > 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 SourceForge.net's Techsay panel and you'll get the chance to > share > >> your > >> opinions on IT & business topics through brief surveys - and earn > cash > >> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > >> > > > > > > -- > > Vote for Wicket at the > > http://www.thebeststuffintheworld.com/vote_for/wicket > > Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! > > http://wicketframework.org > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share > > your > > opinions on IT & business topics through brief surveys - and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: http://www.nabble.com/1.2.4%3A-Test-cannot-find-file-tf2904045.html#a8139504 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Re: [Wicket-user] 100, 000th download at januari 1st, 2007, 1:00pm UTC
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 people finally start realizing that, yes, you can build big, fast, scalable apps in Wicket with less effort. http://sourceforge.net/project/stats/detail.php?group_id=119783&ugn=wicket&mode=alltime&type=prweb Martijn Dashorst wrote: > > We barely missed it in 2006, but we have reached the 100,000th > download of a Wicket package from the SourceForge.net servers (this > does not include downloads done through maven). > > I was waiting to do the 100,000th download myself, but someone else took > it :-) > > Statistics: > > yeardownloads > 2004 536 > 2005 24,167 > 2006 75,254 > > 31-12-2006, 11:59pm (UTC): 99,957 > > Based on my information, the 100,000th download happened around 1:00pm > UTC on Januari 1st 2007. > > Thanks for your support and a happy new year to all! > > - the Wicket team > > -- > Vote for Wicket at the > http://www.thebeststuffintheworld.com/vote_for/wicket > Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now! > http://wicketframework.org > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/100%2C000th-download-at-januari-1st%2C-2007%2C-1%3A00pm-UTC-tf2904782.html#a8126395 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] 1.2.4: Test cannot find file
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: 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 SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 1.2.4: Test cannot find file
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 SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Bug in SimpleConverterAdapter?
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(..) { ... // buggy, should be the opposite //else if (value != null && (!value.getClass().isAssignableFrom(c))) else if (value != null && (!c.isAssignableFrom(value.getClass( ... } Where I can fill bug report? Jan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] funny?[OT}
Hmm, I think that was a cruel thing to say. Open source is all about open idea's. Many wicket users have been using tapestry before and have now switched to wicket, and surely many idea's in the wicket world come from tapestry. If tapestry 5 is implementing some idea's from wicket, I think everybody here welcomes that and there's no need to make a hype about it. However, I did a google on the tapestry mailing list archives to see exactly who has a "disturbing trend" of starting a flame war. I didn't find anything anywhere, so I assume the people on this list is not of the type howard thinks they are :-). Iman On 12/11/06, Francis Amanfo <[EMAIL PROTECTED]> wrote: Hi guys, A blog comment poster asked Howard if the upcoming Tapestry 5 is a refactor of Wicket. https://beta.blogger.com/comment.g?blogID=4110180&postID=266226734789322024 I think it wasn't a nice thing to say but hope the poster was trying to be funny. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about setting up request and response
Yep, put them in a Map or set them one by one, using the component path.On 11/13/06, Carfield Yim <[EMAIL PROTECTED] > wrote:Yes... i only browse the name but haven't actually read the document, sorry about that.In my code I will get some parameters usinggetRequest().getParameter() so I need 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 <[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 there? However I don't know how as this> > method take no parameters. Would anyone tell me how to do? > >> >> -> > Using Tomcat but need to do more? Need to support web services, security?> > Get stuff done quickly with pre-integrated technology to make your job > easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user> >>>> -> Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job> easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Question about setting up request and response
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 there? However I don't know how as this> method take no parameters. Would anyone tell me how to do? > > -> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user> - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Safari yes, Firefox no
Seems something is done with your pages after the page has been rendered. Typical causes might be the browser generating a new request to the same page after the page has been rendered, or somehow the page getting removed from the PageMap after getting displayed. If it should be related to the browser, try removing components and elements from your page one by one, seeing if removing any of them would make the problem disapear ( you could start with the embed tags ). Check for empty url attributes, like src="" etc., since these would cause problems in firefox. On 10/18/06, Michael Welter <[EMAIL PROTECTED]> wrote: > Correction. The last two tags display the *Quicktime* icon > rather than the audio controls. > > > > Michael Welter wrote: > > No, refreshing the page in Firefox yields the Page Expired message. > > > > The tabbed panels don't work at all with IE. IE has the same Page > > Expired problem. > > > > Everything works well in Safari. > > > > The page includes several tags. The > > first two are properly painted with the audio controls (which work), but > > the last two are improperly painted with the circular MS Media Player icon. > > > > The development platform 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. In Firefox, the page display is more or > >>> less normal. However, if I display the source, I see the "Page Expired" > >>> source. Clicking on any of the links on the page takes me to the "Page > >>> Expired" page. > >>> > >>> Using Safari, I don't have this problem. > >>> > >>> Has anyone seen this before? > >>> > >>> Thanks, > >>> > >>> - > >>> Using Tomcat but need to do more? Need to support web services, security? > >>> Get stuff done quickly with pre-integrated technology to make your job > >>> easier > >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >>> ___ > >>> Wicket-user mailing list > >>> Wicket-user@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/wicket-user > >>> > >> - > >> Using Tomcat but need to do more? Need to support web services, security? > >> Get stuff done quickly with pre-integrated technology to make your job > >> easier > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >> ___ > >> Wicket-user mailing list > >> Wicket-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > >> > >> > > > > -- > Michael Welter > Telecom Matters Corp. > Denver, Colorado US > +1.303.414.4980 > [EMAIL PROTECTED] > www.TelecomMatters.net > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Safari yes, Firefox no
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 display the source, I see the "Page Expired" > source. Clicking on any of the links on the page takes me to the "Page > Expired" page. > > Using Safari, I don't have this problem. > > Has anyone seen this before? > > Thanks, > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [ANN] Intellij Idea wicket plugin
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 that I have started a wicket plugin for > Intellij Idea and have uploadet to the plugin repository some minutes > ago and its now available for use and download. > > Wicket Assistent > > > Todolist: > > FEATURES: > - Create warnings when there is a missing wicket id in the corresponding > java/html file - DONE > > TODOLIST: > - Maybe use a compiled version of the ie webpage to check the hierarichy > - ctrl+b on a wicket id should jump to the corresponding id in the java/html > file > - create missing html file intention > - create missing ids in the html file. How and where ? > - create live template for easy creation of ie labels etc > - create file templates for html files, java webpages, java panels etc. > - rename/move rafactoring on the java/html/property file renames/moves the > others > - rename refactoring of the wicket id in both the html and java file > > Known bugs: > - If the wicket id is in a string variable the check does not work > > -- > Best regards, > Anders > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] new initiative for a user guide
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 alternative would be cool with me too. EelcoOn Oct 1, 2006, at 11:44 PM, Philip A. Chapman wrote: Guys, I love spring and use it with all my wicket apps. However, should it be a part of the main body of the manual? I wouldn't want anyone to get the idea that wicket requires spring in any way. Perhaps it would go into an "Advanced" or "Using wicket with other frameworks" section that could also include the use of Hibernate, Shades, JasperReports and whatever else. At the very least, we should make it plain in the manual that spring is not required for the use of wicket, but that it's being used in the example app and in the manual for reasons X,Y, and Z. Thanks, On Sun, 2006-10-01 at 22:15 +0200, Eelco Hillenius wrote: Folks, Stefan Kanev just volunteered to start writing on a new user guide. He asked me to give him an idea for a TOC, so here's mine. I'm sending this to the list in case people would like to help/ have ideas/ ... --- TOC user guide, Building Wicket Pet Store 1. What Is Wicket * Explains Wicket's strong points, philosophy, etc 2. The basics * Basic concepts, tells about Application, session, components, markup, pages and models 3. Introducing WicketPetstore * Describe what we'll be building, including a short look at the domain model * Setup project & database * Setup Spring * Setup the skeleton; HTML stubs and non-interactive pages 4. Browsing the store * Implement the browsing part: list views, labels and an introduction to models (Use compound property model here) - Uses services wired using Spring * Use resources to display images (with thumbnail resources) 5. Tracking the client * Set up a custom session * Implement shopping basket tracking, including a panel that displays the current items in the basket 6. Working with forms * Implement forms for adding items to the basket * Implement validation * Implement check out functionality --- Good luck Stefan, and keep us informed! Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Philip A. ChapmanDesktop and Web Application Development:Java, .NET, PostgreSQL, MySQL, MSSQLLinux, Windows 2000, Windows XP -Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Infinite Loop on Session.getPage()
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 adds it to the usedPages map,a hidden side-effect imho),and then calls resolveListenerInterfaceTarget() where it retrieves the Component for the path and calls isVisibleInHierarchy() on it. This method throws an exception in my application, which is caught back in the RequestCycle. Now, the target didn't have a chance to be added to requestTargets, but the page has been added to the usedPages. In the detach phase, the requestTargets are detached one by one, which in this case is only the exception page generated. So when i push back and click on another link with the same page id, it'll fall into the loop mentioned, cause the thread hasn't been cleared. I guess this somehow means a problem with the usedPages map, where it should be cleared on an exception. Iman - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Infinite Loop on Session.getPage()
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 current thread waits and checks untill its equal (?) to the retrieved thread from the usedPages Map. while (t != null && t != Thread.currentThread()) { try { wait(1000); } catch (InterruptedException ex) { throw new WicketRuntimeException(ex); } t = (Thread)usedPages.get(id); } Has anybody a clue what's making the Session behave like this ? Iman - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Hibernate & Application Transactions
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 cinch. > Currently I use models to hold, attach & detach my persistent objects. About using IModels in constructors, I've mostly do it to be able to unit test my pages easier. But inside my application code, I prefer other components *not* to see or be aware of each other's internal models. That said, I prefer 'new PersonProfilePage("id",person)' instead of 'new PersonProfilePage("id",profileModel)'. I would like to hear comments on this, since I'm not sure everybody agrees. > This system works very well and practically everyone uses it, but that > shouldn't stop you from trying something else. Whatever you come up with > just might be the way we all do it in a few years, when server resources > dwarf those available today. I like IModels fine, and will like them > even more when they're strongly typed, but I'll admit it would be easier > to just pass around the objects they contain. Significantly easier for > new users. > > So please do give it a shot. (I'm assuming your app is high-complexity, > low-volume, or that you have small data objects.) I can't think of > anything in Wicket that would slow you down, other than the minor > annoyance of having to wrap objects in new Model(Serializable o) before > passing them to some framework components. > > And let us know how it goes! > > Nathan I'm currently using detached objects in my pages. Although it would seem easy at first, there's a hell lot of problems keeping the objects in sync with session. Lazy exceptions are just one of them. You could Also easily get two objects with same id in the session if you're not careful. As I said earlier, I use Session.lock() to re-attach objects. Cascading the lock through the object graph and taking care of attaching all objects in use is also another pain. We need to come up with something that would free the developer of thinking about this attaching detaching of objects. Sure I'll look more for an efficient way,But until something is found I'll revert back to loading objects with each request. Iman - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Hibernate & Application Transactions
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 the persistence layer. Am I missing something ? Iman - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Hibernate & Application Transactions
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 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Hibernate & Application Transactions
> 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 efficiency in terms of database calls, where #1 would trigger some SQL SELECT's to retrieve the object from database, but in #2 & #3 an update would be triggered only if there are changes to the object when flushing the session. A version check can also be applied if the POJO is versioned. > Did you try to make a generic model for what you want? That model > should be able to access the current hibernate session, and on attach, > where #1models load using the id set in that model, here they would > just refresh the object they have. > I attach the objects I need to the ThreadLocal Hibernate Session in call to onAttach(). But there are problems. I attach an object using Session.lock() and the lock will cascade through the object graph, attaching associated objects depending on the cascade mode I define for them. However if I traverse the object graph opposite the cascade direction, I'll run into problems. For example I define lock cascade from Parent -> Children and re-attach a child, the parent wont get attached. So if I call child.getParent().getAddresses() the address collection wont be initialized and I get a lazy exception. Also I had issues with re-attaching serialized objects ending up having two objects with the same id in session. Although #2 and #3 are prettier than the first, I guess unless somebody finds a good solution to all these problems, we have to live with the ugly #1 ;-) Iman - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket & Hibernate & Application Transactions
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 ProfilePage(person))' and retrieve the person from database again in the profile page. As Nathan said, despite the disadvantages, it's the easiest and the most straight forward, and mostly adapted to the old MVC style of web programming. With wicket, I would like to pass objects around to pages and methods, keep them in memory during the unit of work, and persist the changes at the end. The problem is I make a new Hibernate Session in each request cycle, so I have to re-attach the objects from the previous cycle to the new Hibernate Session each time (as in #2). This can get quite cumbersome and would easily get out of control. With all that said , I guess I'm alone in this case and everybody agrees on using #1. Still if anybody has any experience with #2 or #3, I would be happy to know about it. Iman - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket & Hibernate & Application Transactions
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 each request cycle to a new session 3 - Using long sessions, where you keep a session during multiple requests and finally close when the unit of work is finished What I've seen in the examples & wicket-phonebook is mostly number 1. However, as soon as you start working like 2 or 3, problems start. Things seem to get too complicated in these two scenarios(Actually I'm starting to think , despite its disadvantages, number 1 is better for a component web framework). I would like to know if anybody has been working on these or has come up with a convenient solution to the problems arising here. Iman - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page expired problem
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 causing your problem. Try to make a small quickstart app containing your problem and send it here so we could see what we can do. Iman Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Its confirmed - Another !!Wicket Book!!
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 patterns, architecture issues, etc. I hope both wicket authors take this in mind. Iman ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] proposal: internationalization project
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, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] WicketTester throws exception instead of failing
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. This way i guess the assertVisible method will never be able to fail. Is this a bug or something ? Iman --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Firefox misbehavior and wicket problem
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 found the cause was an empty image style attribute in my page causing firefox to re-generate a request to the page after the page has been shown, which would in turn re-render the component tree and invalidate the previous components: This kind of problem is tricky to detect and even if it isn't causing any errors it would generate an extra load on servers. I thought sharing this might help somebody some time. Any comments ? Iman
Re: [Wicket-user] DataTables generating invalid links
just to clarify, wicket generates the table correctly, but clicking the links raises the problem. This is the generated html : some message view edit I dunno , maybe Im doing something stupid. But how could the link generate an incorrect reference to itself ? ( since the onClick() method doesnt even get called ) Also, I'm using all this stuff with wicket 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 : iColumns[3] = new FilteredAbstractColumn(new Model("Links")) { public void populateItem(final Item cellItem, final String componentId, final IModel model) {here --> cellItem.add(new LinkedPanel(componentId, ...)); } public Component getFilter(String componentId, FilterForm form) { return new GoAndClearFilter(componentId, form); } };and inside the LinkedPanel constructor : public LinkedPanel (String id, ) { super(id); Link link = new Link("viewLink") { public void onClick() { setResponsePage(new SomeOtherPage()); } }; Link link2 = new Link("editLink") { public void onClick() { setResponsePage(new SomeOtherPage()); } }; add(link); add(link2);}In fact, adding links to the page generate correct links. On 12/16/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: It looks like your are not adding the link to ListItem.JuergenOn 12/16/05, Iman Rahmatizadeh < [EMAIL PROTECTED]> wrote:> 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 :>> >> where my html has:> > > >> as I play with the component path it seems the path until the 'rows' part> works, but after that no component is found. > As I (think) have done everything just like the phonebook example,Is there a> way i can find out what the problem is ?>> Iman>--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems? Stop! Download the new AJAX search engine that makessearching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___ Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DataTables generating invalid links
I am : iColumns[3] = new FilteredAbstractColumn(new Model("Links")) { public void populateItem(final Item cellItem, final String componentId, final IModel model) {here --> cellItem.add(new LinkedPanel(componentId, ...)); } public Component getFilter(String componentId, FilterForm form) { return new GoAndClearFilter(componentId, form); } };and inside the LinkedPanel constructor : public LinkedPanel (String id, ) { super(id); Link link = new Link("viewLink") { public void onClick() { setResponsePage(new SomeOtherPage()); } }; Link link2 = new Link("editLink") { public void onClick() { setResponsePage(new SomeOtherPage()); } }; add(link); add(link2);}In fact, adding links to the page generate correct links. On 12/16/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: It looks like your are not adding the link to ListItem.JuergenOn 12/16/05, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:> 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 :>> >> where my html has:> > > >> as I play with the component path it seems the path until the 'rows' part> works, but after that no component is found. > As I (think) have done everything just like the phonebook example,Is there a> way i can find out what the problem is ?>> Iman>--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems? Stop! Download the new AJAX search engine that makessearching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DataTables generating invalid links
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 : where my html has: as I play with the component path it seems the path until the 'rows' part works, but after that no component is found. As I (think) have done everything just like the phonebook example,Is there a way i can find out what the problem is ? Iman
Re: [Wicket-user] Question about release schedules
Yes, the IBehaviour for example and its implementations are used in the filter forms. So I guess you insist it'll be better to stick to 1.1 and try to make the DataTable compatible with it? On 12/14/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote: i doubt we will release 1.2 in a month and a half.i 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 features Igor added to the new DataTable implementation in cvs. Moving to the new version requires me also to update my wicket to the latest cvs version. I'm planning to have a release of my application in about 1.5 months, could anyone tell if there will be a stable release of wicket till then , or can i use the new features of DataTable without having to upgrade my wicket core ? Iman
[Wicket-user] Question about release schedules
I'm currently working with DataTable's in wicket extensions 1.1 release. It seems to be lacking many of the good features Igor added to the new DataTable implementation in cvs. Moving to the new version requires me also to update my wicket to the latest cvs version. I'm planning to have a release of my application in about 1.5 months, could anyone tell if there will be a stable release of wicket till then , or can i use the new features of DataTable without having to upgrade my wicket core ? Iman
Re: [Wicket-user] FXValidationAjaxHandler in wicket-examples HEAD
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 Donnerstag < [EMAIL PROTECTED]> wrote:This is not a new issue. It has been reported previously and I thought I fixed it. I have to check with the url refactoring in 1.2 invalidate it has not been changed.JuergenOn 12/12/05, Marco van de Haar <[EMAIL PROTECTED] > wrote:> Hi all,>> We were testing our components for a bug concerning Wicket 1.2, and we> ran into another strange 'feature'. It seems that the callback URL has> some kind of endline character in it, so the line gets broken. Has > anyone had this problem before, and how do we fix it?>> This is how it should work (for integerProperty):>> >> And this is how it's currently done for integerInRangeProperty (and this fails):> > dS0jvOkz1Q%3D%3D&behaviourId=1', 'integerInRangeProperty', this);" id="integerInRangeProperty"/>>> As you can see the URL continues on the next line and instead of generating an Ajax call, it returns a _javascript_ error. > You can try this yourself by adding FXFeedbackhandlers to the forminputexample in HEAD. Greetings,> Marco and Ruud>>> --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files> for problems? Stop! Download the new AJAX search engine that makes> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> ___> Wicket-user mailing list > Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user >---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem switching to crypted URL's
I'm using 1.1 release and I havent checked the head to see if its fixed. However, it isn't related to the crypted url, (which is printed in a safeencoding). The problem seems to be related to the wrapping of the onclick value to multiple lines. I think you can't put 'foo' style strings on multiple lines ,although putting "foo" on multiple lines is permitted (puting the strings on the same line fixes the problem). I must find some reference for this, and i'll send it as soon as i find one. On 12/10/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: Which wicket version are you using. I remember we had a similiar issuea couple of weeks ago, which should be fixed in HEAD.JuergenOn 12/10/05, Johan Compagner < [EMAIL PROTECTED]> wrote:> that is a bit strange. So even escaped " are still seen as " ?> hmm>>> On 12/10/05, Martijn Dashorst < [EMAIL PROTECTED]> wrote:> > I think the %2B is equal 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? > >> > Martijn> >> >> > On 12/10/05, Iman RahmatiZadeh < [EMAIL PROTECTED]> wrote:> > > 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 tag will break. This is the > html> > > generated :> > >> > > > > >> > > > SRsmbWLmnH4WMKlwpin8&fields=' + this.options[this.selectedIndex> ].value;"> > > id="fields">> > >> > >> > > and this is what firefox's DOM inspector said : > > >> > > Error: unterminated string literal> > > Source File: http://localhost:8080/?x=Bp3vVA8Rd7A%3D> > > Line: 1, Column: 14 > > > Source Code:> > >> location.href=''s wrong ? > > >> > > Iman> > >> >> >> > --> > Living a wicket life...> >> > Martijn Dashorst - http://www.jroller.com/page/dashorst> >> > Wicket 1.1 is out:> http://wicket.sourceforge.net/wicket-1.1> >> >> > --- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log> files> > for problems? Stop! Download the new AJAX search engine that makes> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick> > ___> > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user > >>>---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!http://ads.osdn.com/?ad_idv37&alloc_id865&opclick___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem switching to crypted URL's
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 tag will break. This is the html generated : SRsmbWLmnH4WMKlwpin8&fields=' + this.options[this.selectedIndex ].value;" id="fields">and this is what firefox's DOM inspector said : Error: unterminated string literalSource File: http://localhost:8080/?x=Bp3vVA8Rd7A%3D Line: 1, Column: 14Source Code:location.href=''s wrong ? Iman
Re: [Wicket-user] JavaOne 2006 - Wicket presentation?
>Why? Igor and a couple of others build some pretty decent Spring>support now? It's all in HEAD, and there has to be a proper build for>it 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 problem, I've seen most examples about it, and am currently using my own solution in my app, but just think its time for everybody to agree on the best solution, integrate it into the core, and stick to it from now on. And BIG thanks for all the good work ! Iman
Re: [Wicket-user] JavaOne 2006 - Wicket presentation?
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 so good Spring integration - Heavy session usage (Specially from those MVC critics) just my 2 centsIman
Re: [Wicket-user] Re: Constructor-based Page construction Problems with checkAccess
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 hope what you mention in Wicket 1.2 will address such concerns. On 11/26/05, Johan Compagner <[EMAIL PROTECTED]> wrote: i wouldn't do page initialisation in another place then the consrtuctoror maybe do it in checkaccess only i cant tell at the moment if thatis to late (you cant change the structure of the page in the renderphase) if you want to check access before an initialised page i think youhave to use a factory for that. so every where you create a page calla factory that creates the page for youWicket in the 1.2 stream also now has (or beginning to have) security feattures you can look at.wat is in youre place the deciding factor which page can beviewed/created? Is it just the page class name?
[Wicket-user] Constructor-based Page construction Problems with checkAccess
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 there a good idea ? 2- checkAccess() (and login) happen after the Page has been created. Is there any better way to check access before instantiating the whole page ? Like maybe some sort of access control before calling the page factory ? Iman
Re: [Wicket-user] Problem in unit tests
Ok, Thanks. My mistake. In fact I was looking for something like the one you suggested, delegating the whole scenario to my application object. One more question, what's your strategy for unit testing ? From what I saw in SortableTableHeadersTest ,would it be: 1- Setup the application, page and stuff 2- Feed the needed data to the page (probably with injection) 3- Setup request and response, and process the request cycle 4- Validate the generated page against some previously generated page The last step is quite easy in simple applications, but in bigger ones, where the page style, 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 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 cant work with it. I can't implement another > MockWebApplication, because getSession() in WebApplication has package> access, and it's critical for setting up the session. Has anybody solved> such problems ? Does anybody know the preferred way of unit testing (not > functional testing) the pages ?Where does MockWebApplication create its own WebSession??? It usesWebApplication.getSessionFactory().newSession() which is Wicketsstandard means and works nicely in my unit tests. WicketTester is derived from MockWebApplication and provides someconvience method. May be that is what your are looking for.What IMO would be nice if MockWebApplication would delegate to myapplication object instead of being derived from WebApplication. Reason: Today I basically have to copy MyApplication toMyMockApplication and changes the derived class to MockWebApplication.If MockWebApplication would delegate to an application object, therewere no more need to do so. Juergen---This SF.Net email is sponsored by the JBoss Inc.Get Certified Today * Register for a JBoss Training CourseFree Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem in unit tests
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 cant work with it. I can't implement another MockWebApplication, because getSession() in WebApplication has package access, and it's critical for setting up the session. Has anybody solved such problems ? Does anybody know the preferred way of unit testing (not functional testing) the pages ? Regards Iman