[Wicket-user] mountBookmarkablePage causes 'no session' error
are you sure you need to specify a different pagemap? that is only needed when you work with frames/popups Well actually I'm not using the version of the mountBookmarkablePage method that takes the PageMap parameter but I'm ending up with the same symptom - a 'no session' error. I assumed that it would be caused by the same bug as the PageMap case. I don't understand why, during application initialization (init() method), a call to mountBookmarkablePage requires a session to exist - which is impossible because no HTTP requests have yet been sent to the web app if its just being initialized. meanwhile ive reopened the issue. I suppose the first step is to determine if the bug affects the version of the mountBookmarkablePage method that doesn't take the PageMap parameter cos that's the one I'm using - otherwise these could be unrelated bugs. -igor - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] mountBookmarkablePage causes 'no session' error
Give us the full stacktrace. So from the beginning of you Application.mount call until the Session failure. That bug report is for creating pagemaps which goes wrong (in the PageMap.forName method) But that is not the case in your situation, it goes wrong in the init of the Page johan On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote: are you sure you need to specify a different pagemap? that is only needed when you work with frames/popups Well actually I'm not using the version of the mountBookmarkablePage method that takes the PageMap parameter but I'm ending up with the same symptom - a 'no session' error. I assumed that it would be caused by the same bug as the PageMap case. I don't understand why, during application initialization (init() method), a call to mountBookmarkablePage requires a session to exist - which is impossible because no HTTP requests have yet been sent to the web app if its just being initialized. meanwhile ive reopened the issue. I suppose the first step is to determine if the bug affects the version of the mountBookmarkablePage method that doesn't take the PageMap parameter cos that's the one I'm using - otherwise these could be unrelated bugs. -igor - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
if you just want polling (every X seconds), then that is already possible just fine with the AbstractAjaxTimerBehavior (or its subclass) I do that currently in my project. I poll with my own ajax timer behavior attached to the page and when that request comes in i ask the component tree which component wants to rerender itself because it is changed compared to the previous render. Then i render those components (or render nothing except setting the timer again for the next time) and end the request. Syncing on something or things like that shouldnt be done currently. I guess we need something else. Now it is internal to wicket that request are blocked by there pagemap. So if 2 request for the same pagemap comes in. The second request waits for the first to end. Now if you going to wait inside such a block all other request will never pass. But what we could make i guess is a public api: Session.releasePageMap(pagemap) Session.blockPageMap(pagemap) by default this is just called by use. But as a developer you can release it if you want and if you know what you are doing. johan On 3/1/07, Dan Brough [EMAIL PROTECTED] wrote: I'm sorry I don't understand too well how jetty works as I have only been using it for a week or so and so far I'm pleased as punch with what Ive achieved in that time. It would be nice to have some sort of AjaxPollBehaviour though. I personally don't care much about jetty continuation's as I'm happy to have a thread for each poll. (No scalability concerns at the moment) Does anyone have a quick cheap-n-nasty trick for updating jetty components via a server triggered event ? I haven't delved into the source code much but I tried doing a wait on a session object in the AjaxSelfUpdatingTimerBehavior and that blocked all other client side Ajax requests as well. (I'm using jetty 6.1 and jetty trunk source) Perhaps the javascript loop was blocked while the AjaxSelfUpdatingTimerBehavior was doing its thing ? I'm not sure if thats possible but my javascript/ajax knowledge is very minimal and will hopefully stay that way thanks to Wicket. Dan Brough. Johan Compagner wrote: I haven't looked in dept into the jetty feature but as far as i know jetty hold the connection open. It pools it internally and when a request (from the client) comes in that connection is used and the request is pretty much handled like a normal servlet request. The problem is how and where does your code run when you get a server side event that then takes the connection from the pool again and sends something to the client (without the client requesting really for something) Can you ask jetty he i want to talk to that client, give me the socket connection so where do you wait would that be in wicket code or can that be in jetty? Because if that was in wicket code then we have to build in some support because else the page(map) is locked for anything else constantly. Johan - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Does wicket:head work with markup inheritance?
wicket:head is what it says. It will place the stuff into the head part (where it belongs) that extra wicket:child is i guess because you don't strip the wicket tags currently what happens if you do: wicket:child/wicket:child johan On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote: Using a wicket:head in derived class markup as well as wicket:extend seems to cause problems in both 1.2.4 and 1.2.5 of wicket (haven't tried earlier versions). The following scenario demonstrates this: Base class markup: -- ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; head titleWicket Examples - helloworld/title link rel=stylesheet type=text/css href=style.css/ /head body span wicket:id=organizationHeader/ div style=float:left; a wicket:id=homePage href=#home/a a wicket:id=locationPage href=#location/a /div wicket:child / /body /html Derived class markup: - ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; head titleWicket Examples - helloworld/title link rel=stylesheet type=text/css href=style.css/ /head body wicket:head script src=http://etc.,; type=text/javascript/script script type=text/javascript etc., to be placed inside head askjfkjskadf /script /wicket:head This is the super class header wicket:extend This text is inserted into base markup body /wicket:extend This is the super class footer /body /html Now what happens in the resulting HTML is that the text from the derived class' markup ends up in the head instead of in the body and the HTML contains one opening wicket:child but two closing /wicket:child tags. ?xml version='1.0' encoding='UTF-8'? html xmlns=http://www.w3.org/1999/xhtml; head titleWicket Examples - helloworld/title link href=/style.css type=text/css rel=stylesheet/ wicket:childwicket:extend span wicket:id=orgDesc id=orgDesc Content is added here which is wrong. - should be in body /span /wicket:extend/wicket:child script type=text/javascript !--/*--![CDATA[/*!--*/ if (window.name=='') { window.location=/helloworld?wicket:bookmarkablePage=wicket-0:com.sas.av .ui.wicket.templates.original.HomePageo=76165; } /*--]]*//script /head body span wicket:id=organizationHeader wicket:panel h1a href=/index.html target=_top style=color: #E9601AWicket Examples/a/h1 div id=titleblock style=font-size:larger;height:1.5em;vertical-align:center; div style=float:left; span wicket:id=orgName id=orgName369 Gourmet/span /div div style=float:right;padding-right:10pxSource link was here /div /div br/ /wicket:panel /span div style=float:left; a href=/helloworld?o=76165 wicket:id=homePagehome/a a href=/helloworld?wicket:bookmarkablePage=:com.sas.av.ui.wicket.template s.original.LocationPageamp;o=76165 wicket:id=locationPagelocation/a /div wicket:child/ - !Very strange additional closing child tag! /body /html - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
Hi, AbstractAjaxTimerBehavior is a very good behavior but imho it is quite a hack, it is not a server native way to update client side and it leads to an useless important traffic because client side request the server event if there is nothing to update. Cometd is the best way I know to update client side on server demand. I wrote a little proof of concept in contrib-dojo (Dojo allows easily to subscribe/publish on a cometd bus). This prototype allows only tuneling between clients but we need to improve it in order to be hable to publish event on this bus from the server. You can have a look at wicket.contrib.dojo.cometd.DojoSharedForm which allows a form to be shared in live between all clients working on it -- Vincent Demay http://www.demay-fr.net/blog Johan Compagner a écrit : if you just want polling (every X seconds), then that is already possible just fine with the AbstractAjaxTimerBehavior (or its subclass) I do that currently in my project. I poll with my own ajax timer behavior attached to the page and when that request comes in i ask the component tree which component wants to rerender itself because it is changed compared to the previous render. Then i render those components (or render nothing except setting the timer again for the next time) and end the request. Syncing on something or things like that shouldnt be done currently. I guess we need something else. Now it is internal to wicket that request are blocked by there pagemap. So if 2 request for the same pagemap comes in. The second request waits for the first to end. Now if you going to wait inside such a block all other request will never pass. But what we could make i guess is a public api: Session.releasePageMap(pagemap) Session.blockPageMap(pagemap) by default this is just called by use. But as a developer you can release it if you want and if you know what you are doing. johan On 3/1/07, *Dan Brough* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm sorry I don't understand too well how jetty works as I have only been using it for a week or so and so far I'm pleased as punch with what Ive achieved in that time. It would be nice to have some sort of AjaxPollBehaviour though. I personally don't care much about jetty continuation's as I'm happy to have a thread for each poll. (No scalability concerns at the moment) Does anyone have a quick cheap-n-nasty trick for updating jetty components via a server triggered event ? I haven't delved into the source code much but I tried doing a wait on a session object in the AjaxSelfUpdatingTimerBehavior and that blocked all other client side Ajax requests as well. (I'm using jetty 6.1 and jetty trunk source) Perhaps the javascript loop was blocked while the AjaxSelfUpdatingTimerBehavior was doing its thing ? I'm not sure if thats possible but my javascript/ajax knowledge is very minimal and will hopefully stay that way thanks to Wicket. Dan Brough. Johan Compagner wrote: I haven't looked in dept into the jetty feature but as far as i know jetty hold the connection open. It pools it internally and when a request (from the client) comes in that connection is used and the request is pretty much handled like a normal servlet request. The problem is how and where does your code run when you get a server side event that then takes the connection from the pool again and sends something to the client (without the client requesting really for something) Can you ask jetty he i want to talk to that client, give me the socket connection so where do you wait would that be in wicket code or can that be in jetty? Because if that was in wicket code then we have to build in some support because else the page(map) is locked for anything else constantly. Johan - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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
[Wicket-user] dynamically (client) created form components
Hi, I have one of those pages with '+' and '-' buttons that allow to add more fields. How do I manage these in wicket without ajax? Thanks, Ittay -- View this message in context: http://www.nabble.com/dynamically-%28client%29-created-form-components-tf3325801.html#a9246163 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Dynamic Page creation from db
Hi, I'm looking for a pattern to create page instances from a configuration in db. I sounds really weird but the scenario is this: - A request comes in for /mountpoint/dynamicpart1/part2/part3 - A lookup is made to db for a PageConfig with urlPart = dynamicpart1/part2/part3 PageConfig contains a className and 1 or more params where the mandatory param is the id for the modelObject for the page. - Use reflection to find a corresponding page in the class hierarchy. - Instantiate. - Let wicket render it... I've looked at the IPageFactory but that seems to late in the processing because the page class is already determined. I guess some kind of urldecoding strategy is needed but I don't know the internals of wickets processing parts that well. Would appreciate any pointers to where to look! /Mats - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
On 3/1/07, Johan Compagner [EMAIL PROTECTED] wrote: if you just want polling (every X seconds), then that is already possible just fine with the AbstractAjaxTimerBehavior (or its subclass) I do that currently in my project. I poll with my own ajax timer behavior attached to the page and when that request comes in i ask the component tree which component wants to rerender itself because it is changed compared to the previous render. Then i render those components (or render nothing except setting the timer again for the next time) and end the request. Interesting, I didn't know it was possible to ask the component tree which components wants to rerender. This could indeed answer to my first point. But if I want finer grain component update (for repeaters), I guess the implementation would be a little bit more complex: the repeating component would have to say I want to rerender, but only partially. Note that it would make it very easy for wicket users to get an automatic refresh with fine grain: add an instance of a behavior similar to the one you use now (which could be part of wicket or wicket contrib, since it seems very generic), and that's all. Then all you have to do is update your models, and they will magically be updated on the client, with a limiting transport when you insert a new sub component in a repeating view. Very nice. But it's still opaque for me how the component know it has to be refreshed. Indeed I'm surprised to see that the IModel interface provides no way to get observed for changes. In a rich client framework you always have such facility, which makes possible for a component to know that its model has changed. And web 2.0 gets closer and closer to the rich client world, so maybe this is something that could be considered in wicket? Without such events, I guess that whenever I add a new item in the IDataProvider of a DataView I also need to call modelChanging on the component. Then it's very similar to my proposition of having a behvior object on which I call addComponent to indicate that I want to trigger an update of that component on the client. And an advantage I see with my proposition is that you can use the same API as AjaxRequestTarget, and thus also send javascript to the client on server side events (to highlight a cell that has changed, or things like that). Moreover you can control atomicity of your changes (if you want two components to be rerendered, you will be sure that it's not possible for your thread to be interrupted between the two componentChanging calls, causing the two components to be updated in two different polls. What do you think? Syncing on something or things like that shouldnt be done currently. I guess we need something else. Now it is internal to wicket that request are blocked by there pagemap. So if 2 request for the same pagemap comes in. The second request waits for the first to end. Now if you going to wait inside such a block all other request will never pass. But what we could make i guess is a public api: Session.releasePageMap(pagemap) Session.blockPageMap(pagemap) by default this is just called by use. But as a developer you can release it if you want and if you know what you are doing. johan On 3/1/07, Dan Brough [EMAIL PROTECTED] wrote: I'm sorry I don't understand too well how jetty works as I have only been using it for a week or so and so far I'm pleased as punch with what Ive achieved in that time. It would be nice to have some sort of AjaxPollBehaviour though. I personally don't care much about jetty continuation's as I'm happy to have a thread for each poll. (No scalability concerns at the moment) Does anyone have a quick cheap-n-nasty trick for updating jetty components via a server triggered event ? I haven't delved into the source code much but I tried doing a wait on a session object in the AjaxSelfUpdatingTimerBehavior and that blocked all other client side Ajax requests as well. (I'm using jetty 6.1 and jetty trunk source) Perhaps the javascript loop was blocked while the AjaxSelfUpdatingTimerBehavior was doing its thing ? I'm not sure if thats possible but my javascript/ajax knowledge is very minimal and will hopefully stay that way thanks to Wicket. Dan Brough. Johan Compagner wrote: I haven't looked in dept into the jetty feature but as far as i know jetty hold the connection open. It pools it internally and when a request (from the client) comes in that connection is used and the request is pretty much handled like a normal servlet request. The problem is how and where does your code run when you get a server side event that then takes the connection from the pool again and sends something to the client (without the client requesting really for something) Can you ask jetty he i want to talk to that client, give me the socket connection so where do you wait would that be in wicket
Re: [Wicket-user] server side triggered page refresh (aka push)
On 3/1/07, Vincent Demay [EMAIL PROTECTED] wrote: Hi, Salut Vincent, AbstractAjaxTimerBehavior is a very good behavior but imho it is quite a hack, it is not a server native way to update client side and it leads to an useless important traffic because client side request the server event if there is nothing to update. As far as I know (and I don't know much :-)) there is no way to do client side updates in HTTP without something which is quite a hack. As far as I understand cometd degrades to a polling very similar to AbstractAjaxTimerBehavior when you are behind a proxy for example. And if you play with cometd examples and use firebug to track the connections, you'll see that it's very similar to what you would have done with polling. But the advantage I see is that cometd is some kind of well designed hack trying to define a standard to do this kind of hack. As such you can find server side implementation which greatly improves the way to deal with connections (but I don't know jetty implementation or grizzly very well). Cometd is the best way I know to update client side on server demand. I wrote a little proof of concept in contrib-dojo (Dojo allows easily to subscribe/publish on a cometd bus). This prototype allows only tuneling between clients but we need to improve it in order to be hable to publish event on this bus from the server. You can have a look at wicket.contrib.dojo.cometd.DojoSharedForm which allows a form to be shared in live between all clients working on it Very interesting, I'll have a look and keep you informed. - Xavier -- Vincent Demay http://www.demay-fr.net/blog Johan Compagner a écrit : if you just want polling (every X seconds), then that is already possible just fine with the AbstractAjaxTimerBehavior (or its subclass) I do that currently in my project. I poll with my own ajax timer behavior attached to the page and when that request comes in i ask the component tree which component wants to rerender itself because it is changed compared to the previous render. Then i render those components (or render nothing except setting the timer again for the next time) and end the request. Syncing on something or things like that shouldnt be done currently. I guess we need something else. Now it is internal to wicket that request are blocked by there pagemap. So if 2 request for the same pagemap comes in. The second request waits for the first to end. Now if you going to wait inside such a block all other request will never pass. But what we could make i guess is a public api: Session.releasePageMap(pagemap) Session.blockPageMap(pagemap) by default this is just called by use. But as a developer you can release it if you want and if you know what you are doing. johan On 3/1/07, *Dan Brough* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm sorry I don't understand too well how jetty works as I have only been using it for a week or so and so far I'm pleased as punch with what Ive achieved in that time. It would be nice to have some sort of AjaxPollBehaviour though. I personally don't care much about jetty continuation's as I'm happy to have a thread for each poll. (No scalability concerns at the moment) Does anyone have a quick cheap-n-nasty trick for updating jetty components via a server triggered event ? I haven't delved into the source code much but I tried doing a wait on a session object in the AjaxSelfUpdatingTimerBehavior and that blocked all other client side Ajax requests as well. (I'm using jetty 6.1 and jetty trunk source) Perhaps the javascript loop was blocked while the AjaxSelfUpdatingTimerBehavior was doing its thing ? I'm not sure if thats possible but my javascript/ajax knowledge is very minimal and will hopefully stay that way thanks to Wicket. Dan Brough. Johan Compagner wrote: I haven't looked in dept into the jetty feature but as far as i know jetty hold the connection open. It pools it internally and when a request (from the client) comes in that connection is used and the request is pretty much handled like a normal servlet request. The problem is how and where does your code run when you get a server side event that then takes the connection from the pool again and sends something to the client (without the client requesting really for something) Can you ask jetty he i want to talk to that client, give me the socket connection so where do you wait would that be in wicket code or can that be in jetty? Because if that was in wicket code then we have to build in some support because else the page(map) is locked for anything else constantly.
Re: [Wicket-user] dynamically (client) created form components
Ittay Dror wrote: Hi, I have one of those pages with '+' and '-' buttons that allow to add more fields. How do I manage these in wicket without ajax? Thanks, Ittay another point is this: assume the fields being added are a text (named atext) field and a checkbox (named acb). now if the user clicked '+' twice, he has two of each. if he unchecks the first cb, then on submission, the query string will look like this: atext=fooatext=baracb=on if i were to program directly in a servlet, this would have been natural enough, i'd parse the query string to a list of pairs (name=value) and iterating the list i can easily tell that the firs acb is missing and so conclude it is not checked. but how can i do it in wicket? ittay -- View this message in context: http://www.nabble.com/dynamically-%28client%29-created-form-components-tf3325801.html#a9246510 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
Interesting, I didn't know it was possible to ask the component tree which components wants to rerender. This could indeed answer to my first point. But if I want finer grain component update (for I build this my self. I know because of our design when components gets new state or new data pushed. (our models do have things like Swing event listeners) repeaters), I guess the implementation would be a little bit more complex: the repeating component would have to say I want to rerender, but only partially. Note that it would make it very easy If the repeater component itself doesn't say it wants to rerender (because its model changed) but a component in the repeater component says it because his model did change then i have partial repeater updates just fine. for wicket users to get an automatic refresh with fine grain: add an instance of a behavior similar to the one you use now (which could be part of wicket or wicket contrib, since it seems very generic), and that's all. Then all you have to do is update your models, and they will magically be updated on the client, with a limiting transport when you insert a new sub component in a repeating view. Very nice. It will be a bit hard for this to do in the standard wicket, because data is pulled not pushed. I only know it because data is pushed to the wicket models and because i register the push (set a flag is changed) i know the next time i have a rendering phase the component renders it self again. ofcourse if cometd really would work that i could ask the container at some point for a connection again. Then i don't have to wait for the client timer event but could push it directly. But it's still opaque for me how the component know it has to be refreshed. Indeed I'm surprised to see that the IModel interface provides no way to get observed for changes. In a rich client framework you always have such facility, which makes possible for a component to know that its model has changed. And web 2.0 gets closer and closer to the rich client world, so maybe this is something that could be considered in wicket? This is because of the rendering nature of the browser. (real pushing is still not really standard thing) But you could design it the way you like: component-wicketmodel with event listener-your real datamodel. johan - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] dynamically (client) created form components
I have one of those pages with '+' and '-' buttons that allow to add more fields. How do I manage these in wicket without ajax? just links? Or if something should be submitted SubmitLinks? And in that link.onClick you do the + or the - behavior another point is this: assume the fields being added are a text (named atext) field and a checkbox (named acb). now if the user clicked '+' twice, he has two of each. if he unchecks the first cb, then on submission, the query string will look like this: atext=fooatext=baracb=on if i were to program directly in a servlet, this would have been natural enough, i'd parse the query string to a list of pairs (name=value) and iterating the list i can easily tell that the firs acb is missing and so conclude it is not checked. So you want form data to be submitted? you can use a form for this and use submit links. Then ask the checkbox for its state. johan - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IE 7 + Ajax + Datepicker issues
Thanks very much Eelco. I updated to 1.2.5 and now it works as expected with out any hacks. Regards Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 6:16 PM Subject: Re: [Wicket-user] IE 7 + Ajax + Datepicker issues I think upgrading to the latest 1.2 would fix your problem. The current version is 1.2.5, see http://sourceforge.net/project/showfiles.php?group_id=119783package_id=130482 Eelco On 2/28/07, Dipu [EMAIL PROTECTED] wrote: I am using 1.2.1 at the moment. Did we have an official release of the version 2.0. I wiasd thinking of moving to 2.0 when its released. Regards Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 5:27 PM Subject: Re: [Wicket-user] IE 7 + Ajax + Datepicker issues What version are you using? And if the version is 1.3 or 2.0, you could consider using the much better datepicker that is in wicket-datetime. Anyway, this sounds like a problem we had in previous versions to; should be fixed in new versions. Eelco On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Hi All, I use Ajax links to switch between different panels on a page and some of the panels has datepicker components on it. On IE 7 the date picker will stop working ( calendar won't pop up ) after switching between panels using ajax link. I think the reason for this is that when the dom is updated with the html for the panel the inline Calendar.setup script is not getting executed with IE7. I tired calling the Calendar.setup script on the decorateOnSuccessScript of the ajax link thats is used to switch panel and the date picker worked. Can anyone say if this is the solution to go with or do we have any other better ways of solving the problem. If calling the Calendar.setup script in the above mentioned way is the solution then it will be good if the getInitScript method on the DatePaicker is made public. Regards Dipu - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Link + IE7 problem
Hi Igor, I was using the version 1.2.1, i updated it to 1.2.5. Now the ajax link works even we have a table inside anchors. I accept it's not good to use table inside anchors , but the good news is with the latest version it works !!! Regards Dipu - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 5:32 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem the only reason it wouldnt work is that the table captures the onclick event and doesnt bubble it up to the link. but, in general, you shouldnt use table inside anchors as was said -igor On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Thanks very much , if thats the case then i can inform the page designers about that. Regards Dipu - Original Message - From: Ivo van Dongen To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 12:08 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem Hi, Using a table in a link is probably not standards compliant. I don't know if that is the problem here, but this kind of thing can cause a lot of problems with javascript. See http://htmlhelp.com/reference/html40/special/a.html for the element specs. Ivo On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Hi All, Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags. If we change the following line in the LinksPage.html from ajax expample counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linkincrement/a ( ajax-only link ) to counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linktabletr td increment/td/tr/table /a ( ajax-only link ) it will stop working. Does anyone has any idea why ??? Regards Dipu - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 -- - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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
Re: [Wicket-user] Ajax Link + IE7 problem
From: Dipu [EMAIL PROTECTED] Reply-To: wicket-user@lists.sourceforge.net To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax Link + IE7 problem Date: Thu, 1 Mar 2007 09:48:12 - Hi Igor, I was using the version 1.2.1, i updated it to 1.2.5. Now the ajax link works even we have a table inside anchors. I accept it's not good to use table inside anchors , but the good news is with the latest version it works !!! Regards Dipu - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 5:32 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem the only reason it wouldnt work is that the table captures the onclick event and doesnt bubble it up to the link. but, in general, you shouldnt use table inside anchors as was said -igor On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Thanks very much , if thats the case then i can inform the page designers about that. Regards Dipu - Original Message - From: Ivo van Dongen To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 12:08 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem Hi, Using a table in a link is probably not standards compliant. I don't know if that is the problem here, but this kind of thing can cause a lot of problems with javascript. See http://htmlhelp.com/reference/html40/special/a.html for the element specs. Ivo On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Hi All, Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags. If we change the following line in the LinksPage.html from ajax expample counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linkincrement/a ( ajax-only link ) to counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linktabletr td increment/td/tr/table /a ( ajax-only link ) it will stop working. Does anyone has any idea why ??? Regards Dipu - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 -- - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence
Re: [Wicket-user] Ajax Link + IE7 problem
From: Dipu [EMAIL PROTECTED] Reply-To: wicket-user@lists.sourceforge.net To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax Link + IE7 problem Date: Thu, 1 Mar 2007 09:48:12 - Hi Igor, I was using the version 1.2.1, i updated it to 1.2.5. Now the ajax link works even we have a table inside anchors. I accept it's not good to use table inside anchors , but the good news is with the latest version it works !!! Regards Dipu - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 5:32 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem the only reason it wouldnt work is that the table captures the onclick event and doesnt bubble it up to the link. but, in general, you shouldnt use table inside anchors as was said -igor On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Thanks very much , if thats the case then i can inform the page designers about that. Regards Dipu - Original Message - From: Ivo van Dongen To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 12:08 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem Hi, Using a table in a link is probably not standards compliant. I don't know if that is the problem here, but this kind of thing can cause a lot of problems with javascript. See http://htmlhelp.com/reference/html40/special/a.html for the element specs. Ivo On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Hi All, Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags. If we change the following line in the LinksPage.html from ajax expample counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linkincrement/a ( ajax-only link ) to counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linktabletr td increment/td/tr/table /a ( ajax-only link ) it will stop working. Does anyone has any idea why ??? Regards Dipu - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 -- - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence
Re: [Wicket-user] Ajax Link + IE7 problem
From: Dipu [EMAIL PROTECTED] Reply-To: wicket-user@lists.sourceforge.net To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax Link + IE7 problem Date: Thu, 1 Mar 2007 09:48:12 - Hi Igor, I was using the version 1.2.1, i updated it to 1.2.5. Now the ajax link works even we have a table inside anchors. I accept it's not good to use table inside anchors , but the good news is with the latest version it works !!! Regards Dipu - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 5:32 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem the only reason it wouldnt work is that the table captures the onclick event and doesnt bubble it up to the link. but, in general, you shouldnt use table inside anchors as was said -igor On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Thanks very much , if thats the case then i can inform the page designers about that. Regards Dipu - Original Message - From: Ivo van Dongen To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 12:08 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem Hi, Using a table in a link is probably not standards compliant. I don't know if that is the problem here, but this kind of thing can cause a lot of problems with javascript. See http://htmlhelp.com/reference/html40/special/a.html for the element specs. Ivo On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Hi All, Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags. If we change the following line in the LinksPage.html from ajax expample counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linkincrement/a ( ajax-only link ) to counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linktabletr td increment/td/tr/table /a ( ajax-only link ) it will stop working. Does anyone has any idea why ??? Regards Dipu - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 -- - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence
Re: [Wicket-user] Ajax Link + IE7 problem
From: Dipu [EMAIL PROTECTED] Reply-To: wicket-user@lists.sourceforge.net To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax Link + IE7 problem Date: Thu, 1 Mar 2007 09:48:12 - Hi Igor, I was using the version 1.2.1, i updated it to 1.2.5. Now the ajax link works even we have a table inside anchors. I accept it's not good to use table inside anchors , but the good news is with the latest version it works !!! Regards Dipu - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 5:32 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem the only reason it wouldnt work is that the table captures the onclick event and doesnt bubble it up to the link. but, in general, you shouldnt use table inside anchors as was said -igor On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Thanks very much , if thats the case then i can inform the page designers about that. Regards Dipu - Original Message - From: Ivo van Dongen To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 12:08 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem Hi, Using a table in a link is probably not standards compliant. I don't know if that is the problem here, but this kind of thing can cause a lot of problems with javascript. See http://htmlhelp.com/reference/html40/special/a.html for the element specs. Ivo On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Hi All, Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags. If we change the following line in the LinksPage.html from ajax expample counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linkincrement/a ( ajax-only link ) to counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linktabletr td increment/td/tr/table /a ( ajax-only link ) it will stop working. Does anyone has any idea why ??? Regards Dipu - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 -- - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence
Re: [Wicket-user] Ajax Link + IE7 problem
From: Dipu [EMAIL PROTECTED] Reply-To: wicket-user@lists.sourceforge.net To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax Link + IE7 problem Date: Thu, 1 Mar 2007 09:48:12 - Hi Igor, I was using the version 1.2.1, i updated it to 1.2.5. Now the ajax link works even we have a table inside anchors. I accept it's not good to use table inside anchors , but the good news is with the latest version it works !!! Regards Dipu - Original Message - From: Igor Vaynberg To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 5:32 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem the only reason it wouldnt work is that the table captures the onclick event and doesnt bubble it up to the link. but, in general, you shouldnt use table inside anchors as was said -igor On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Thanks very much , if thats the case then i can inform the page designers about that. Regards Dipu - Original Message - From: Ivo van Dongen To: wicket-user@lists.sourceforge.net Sent: Wednesday, February 28, 2007 12:08 PM Subject: Re: [Wicket-user] Ajax Link + IE7 problem Hi, Using a table in a link is probably not standards compliant. I don't know if that is the problem here, but this kind of thing can cause a lot of problems with javascript. See http://htmlhelp.com/reference/html40/special/a.html for the element specs. Ivo On 2/28/07, Dipu [EMAIL PROTECTED] wrote: Hi All, Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags. If we change the following line in the LinksPage.html from ajax expample counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linkincrement/a ( ajax-only link ) to counter 1: span wicket:id=c1/span a href=# wicket:id =c1-linktabletr td increment/td/tr/table /a ( ajax-only link ) it will stop working. Does anyone has any idea why ??? Regards Dipu - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 -- - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence
Re: [Wicket-user] dynamically (client) created form components
Johan Compagner wrote: I have one of those pages with '+' and '-' buttons that allow to add more fields. How do I manage these in wicket without ajax? just links? Or if something should be submitted SubmitLinks? And in that link.onClick you do the + or the - behavior another point is this: assume the fields being added are a text (named atext) field and a checkbox (named acb). now if the user clicked '+' twice, he has two of each. if he unchecks the first cb, then on submission, the query string will look like this: atext=fooatext=baracb=on if i were to program directly in a servlet, this would have been natural enough, i'd parse the query string to a list of pairs (name=value) and iterating the list i can easily tell that the firs acb is missing and so conclude it is not checked. So you want form data to be submitted? you can use a form for this and use submit links. Then ask the checkbox for its state. ok, didn't explain myself right: i have a page with a form. when submitted, the form contains a list of text and checkbox input elements. the list of elements is generated with javascript, by clicking a '+' at the top of the form, or '-' near an item (see http://www.quirksmode.org/dom/domform.html, there, adding one review and submitting gives the query stringcd1=titlerankingsel1=Ratingreview1=Short+reviewcd2=titlerankingsel2=Ratingreview2=Short+reviewsomething2=test2 ). so '+' and '-' just call javascript functions, they don't submit the form. another button does. in wicket, i would have liked to use a ListView inside the form. there are two alternatives here: a. in the javascript make each form element have a unique name and use the same (id) in wicket. i don't like this because in my real case, the elements are not created by the javascript function, but taken from somewhere else, in a generic way. b. have all repeating elements have the same name. the problem is that components won't be updated correctly if some fields do not appear, or i'll need to modify getInputAsArray for each (so as to look in the query string, not the parsed parameters), and give each an index. i'm looking for a better way. Johan Compagner wrote: johan - 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.phpp=sourceforgeCID=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/dynamically-%28client%29-created-form-components-tf3325801.html#a9246999 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
On 3/1/07, Johan Compagner [EMAIL PROTECTED] wrote: Interesting, I didn't know it was possible to ask the component tree which components wants to rerender. This could indeed answer to my first point. But if I want finer grain component update (for I build this my self. I know because of our design when components gets new state or new data pushed. (our models do have things like Swing event listeners) Ok, I get it better now. And is it something that could be shared with the community? repeaters), I guess the implementation would be a little bit more complex: the repeating component would have to say I want to rerender, but only partially. Note that it would make it very easy If the repeater component itself doesn't say it wants to rerender (because its model changed) but a component in the repeater component says it because his model did change then i have partial repeater updates just fine. Yes, this is fine, but if you insert a new item in a list, you will need to rerender the whole list. And in some situations it may be a problem. Do you imagine in a chat application do rerender the whole chat history each time someone speak? for wicket users to get an automatic refresh with fine grain: add an instance of a behavior similar to the one you use now (which could be part of wicket or wicket contrib, since it seems very generic), and that's all. Then all you have to do is update your models, and they will magically be updated on the client, with a limiting transport when you insert a new sub component in a repeating view. Very nice. It will be a bit hard for this to do in the standard wicket, because data is pulled not pushed. I only know it because data is pushed to the wicket models and because i register the push (set a flag is changed) i know the next time i have a rendering phase the component renders it self again. Yes, this wouldn't be really standard wicket. I would need a way to know that only one item has been added, and a way to render only that line and send this to the client. But I think it's possible, at least by subclassing the repeating views I wanna use, or patching wicket. ofcourse if cometd really would work that i could ask the container at some point for a connection again. Then i don't have to wait for the client timer event but could push it directly. AFAIK cometd gives the illusion that you can ask for a connection from the server, but under the hood it's still polling. But polling with long running connections and a server side which know how to deal with it, so it's certainly better that basic polling. That's why I'd like to take advantage of that to provide instant feedback to the client. But it's still opaque for me how the component know it has to be refreshed. Indeed I'm surprised to see that the IModel interface provides no way to get observed for changes. In a rich client framework you always have such facility, which makes possible for a component to know that its model has changed. And web 2.0 gets closer and closer to the rich client world, so maybe this is something that could be considered in wicket? This is because of the rendering nature of the browser. (real pushing is still not really standard thing) But you could design it the way you like: component-wicketmodel with event listener-your real datamodel. Yes, but is there a wicketmodel with event listener, or do I have to define my own? And if I define my own, I guess I'll have either to use my own components too so that they listen to the changes, or use another class to do the binding. Moreover, the more I think about it, the more I think it's not really suitable for the web. Since no real push is possible, I think it's better to keep control over the batch of rendering events sent to the client. To be sure two related components updates are not split in two separate HTTP responses. But maybe this could be achieved in another way than the one I was proposing first: when you want to group several updates together, you could call a method on the page to say I begin to make changes I want to group, and then call another method at the end to say I've finished, you can push my changes now. This way trivial changes would be as easy as they should be (the model change triggers the rendering event) or grouped as you want. Could be nice. So I think I'll try to begin playing with Vincent cometd prototype, and start some basic POC on my own to see how things are going. And I'll give you feedback from my experience here. Thanks a lot to all of you for sharing your ideas and experience! - Xavier johan - 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
Re: [Wicket-user] dynamically (client) created form components
Ittay Dror wrote: b. have all repeating elements have the same name. the problem is that components won't be updated correctly if some fields do not appear, or i'll need to modify getInputAsArray for each (so as to look in the query string, not the parsed parameters), and give each an index. i'm looking for a better way. i think this can be solved inside wicket quite easily: * FormComponent.getInputAsArray uses 'getRequest().getParameters(getInputName())'. instead, it would be 'getParent().getRequestParameters(this, getInputName())', * the default implementation of getRequestParameters(Component, String) in Component will be getRequest().getParameters(getInputName()) * In the above case, when creating a ListView, use a subclass that modifies getRequestParameters() so it returns the parameters from the nth occurrence of the parameters (the nth 'atext=xxacb=yy' segment) then, form components can be used as they are. ittay -- View this message in context: http://www.nabble.com/dynamically-%28client%29-created-form-components-tf3325801.html#a9247234 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Query Regarding Data Table
Hi, Is there a way to insert an arbitrary table(with different columns from main table , for example something like I have a product table and if I click on a particular row its inventories list to be displayed in the next row) as a row of a Data Table. I thought of overriding newRowItem and newCellItem methods but I am not very sure about how to do it. Can you help me out in this regard. Thanks Regards Anupama - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Resuable AddressPanel
Hi Igor Dont we convert types? The model below is converting a string to an address object, so i guess it could be called a converter. I can see in the example that you have written to Flemming that you suggest at least two models. AddressModel and AddressLineModel. Do you need the first AddressModel? Cant you just use a normal wicket Model or what is the purpose of the AddressModel? Kind regards /Murat Yücel 2007/2/28, Igor Vaynberg [EMAIL PROTECTED]: why use a type converter? you are not converting types... i would use a model to do this class addrlinemodel implements imodelstring { private imodel addrmodel; public String getobject() { address addr=addrmodel.getobject(); return addr.streetnumber+ +addr.streetname; } public void setobject(String object) { address addr=addrmodel.getobject(); string[] parts=object.split(); //decide what goes where addr.streetname=parts[2]; ... } } -igor On 2/28/07, Flemming Boller [EMAIL PROTECTED] wrote: Hi I have a challenge about creating a reuseable Panel for my pojo called Address. class Address { String streetName; String streetNumber; String floor; String letter; String door; String zipCode; String city; } What I would like is to concatenate streetName, streetNumber, floor, letter, door into ONE textfield (wicket:id=address) ZipCode and city have their own TextFields and PropertyModel is used here. For concatening the fields above I have used a ITypeConverter, which converts the one textfield into an new Address object. My problem is that the zipCode and city is bound to the old object, so the new Address object is missing the zipCode and city. Do any of you guys know a solution to this problem? Should I use a ITypeConverter at all? Or should I take a whole other approch. Regards Flemming - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Page creation from db
the niceset woiuld be to use panels instead of pages. that way you mount a page onto /mountpoint, when its hit you read the rest of the parameters, query the db for the panel class, instantiate it and add it to the page. nice and clean. there is really very little difference between page and panel functionality-wise. i dont have the code infront of me, but i would think this should be doable within the pagemap factory -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, I'm looking for a pattern to create page instances from a configuration in db. I sounds really weird but the scenario is this: - A request comes in for /mountpoint/dynamicpart1/part2/part3 - A lookup is made to db for a PageConfig with urlPart = dynamicpart1/part2/part3 PageConfig contains a className and 1 or more params where the mandatory param is the id for the modelObject for the page. - Use reflection to find a corresponding page in the class hierarchy. - Instantiate. - Let wicket render it... I've looked at the IPageFactory but that seems to late in the processing because the page class is already determined. I guess some kind of urldecoding strategy is needed but I don't know the internals of wickets processing parts that well. Would appreciate any pointers to where to look! /Mats - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Query Regarding Data Table
in datatable you cannot insert rows in arbitrary format - it really is a datagrid. what you want is to go higher in the hierarchy and use a dataview, that way you are in total control of rows and columns. -igor On 3/1/07, Anupama pullela [EMAIL PROTECTED] wrote: Hi, Is there a way to insert an arbitrary table(with different columns from main table , for example something like I have a product table and if I click on a particular row its inventories list to be displayed in the next row) as a row of a Data Table. I thought of overriding newRowItem and newCellItem methods but I am not very sure about how to do it. Can you help me out in this regard. Thanks Regards Anupama - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Resuable AddressPanel
On 3/1/07, Murat Yücel [EMAIL PROTECTED] wrote: Hi Igor Dont we convert types? The model below is converting a string to an address object, so i guess it could be called a converter. as far as i can see he wants to convert some fields of address object into a string, and then back. I can see in the example that you have written to Flemming that you suggest at least two models. AddressModel and AddressLineModel. Do you need the first AddressModel? Cant you just use a normal wicket Model or what is the purpose of the AddressModel? addressmodel is just the model that provides the address object. it would need to be there whether or not you were doing any of this conversion or not. -igor Kind regards /Murat Yücel 2007/2/28, Igor Vaynberg [EMAIL PROTECTED]: why use a type converter? you are not converting types... i would use a model to do this class addrlinemodel implements imodelstring { private imodel addrmodel; public String getobject() { address addr=addrmodel.getobject(); return addr.streetnumber+ +addr.streetname; } public void setobject(String object) { address addr=addrmodel.getobject(); string[] parts=object.split(); //decide what goes where addr.streetname=parts[2]; ... } } -igor On 2/28/07, Flemming Boller [EMAIL PROTECTED] wrote: Hi I have a challenge about creating a reuseable Panel for my pojo called Address. class Address { String streetName; String streetNumber; String floor; String letter; String door; String zipCode; String city; } What I would like is to concatenate streetName, streetNumber, floor, letter, door into ONE textfield (wicket:id=address) ZipCode and city have their own TextFields and PropertyModel is used here. For concatening the fields above I have used a ITypeConverter, which converts the one textfield into an new Address object. My problem is that the zipCode and city is bound to the old object, so the new Address object is missing the zipCode and city. Do any of you guys know a solution to this problem? Should I use a ITypeConverter at all? Or should I take a whole other approch. Regards Flemming - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Feature Grid
Does anyone know of a feature grid/matrix comparing web frameworks. -- View this message in context: http://www.nabble.com/Feature-Grid-tf3328003.html#a9253121 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] repeaters and inheritance
Thank you Eelco Iman. I was hoping to have a custom component that played the role of the ListItem but which had methods such as abstract Panel getPricingPanle() which were variously implemented in subclasses as return new ShowPricingPanel() or return new HotelPricingPanel() instead of pushing that determination off to a factory. Oh, and the issue isn't just one of handling pricing, but rather of markup display as well. Cheers, Scott On 2/28/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] repeaters and inheritance
but you can do that listview has newlistitem, there you can create the proper listitem subclass then in populate item you do item.add(((MyItem)item).getPricingPanel()) it is simply a matter of taste - whether something like this belongs in the class hierarchy or is it orthogonal and merits its own resolution mechanism. -igor On 3/1/07, Scott Swank [EMAIL PROTECTED] wrote: Thank you Eelco Iman. I was hoping to have a custom component that played the role of the ListItem but which had methods such as abstract Panel getPricingPanle() which were variously implemented in subclasses as return new ShowPricingPanel() or return new HotelPricingPanel() instead of pushing that determination off to a factory. Oh, and the issue isn't just one of handling pricing, but rather of markup display as well. Cheers, Scott On 2/28/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Page creation from db
so now that ive looked at ipagefactory what you want should be pretty easy if you still want to use pages mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy then in ipagefactory do this: Page newPage(final Class? extends Page pageClass, final PageParameters parameters) { if (pageClass.equals(MyFactoryPage.class)) { // we hit our marker factory page String url=buildurlfromparameters(params); String resolvedpageclass=resolveclassfromurl(url); PageParameters resolvedparams=resolveparamsfromurl(url); return super.newPage(resolvedpageclass, resolvedparams); } else { return super.newPage(pageClass, parameters); } } MyFactoryPage is just an empty page, it really only serves as a marker for when you hit that mount point. makes sense? -igor On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the niceset woiuld be to use panels instead of pages. that way you mount a page onto /mountpoint, when its hit you read the rest of the parameters, query the db for the panel class, instantiate it and add it to the page. nice and clean. there is really very little difference between page and panel functionality-wise. i dont have the code infront of me, but i would think this should be doable within the pagemap factory -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, I'm looking for a pattern to create page instances from a configuration in db. I sounds really weird but the scenario is this: - A request comes in for /mountpoint/dynamicpart1/part2/part3 - A lookup is made to db for a PageConfig with urlPart = dynamicpart1/part2/part3 PageConfig contains a className and 1 or more params where the mandatory param is the id for the modelObject for the page. - Use reflection to find a corresponding page in the class hierarchy. - Instantiate. - Let wicket render it... I've looked at the IPageFactory but that seems to late in the processing because the page class is already determined. I guess some kind of urldecoding strategy is needed but I don't know the internals of wickets processing parts that well. Would appreciate any pointers to where to look! /Mats - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax indicators and form submits
I have setup an AjaxIndicator to show up when I press a button, but the onclick event seems to be overridden when I set this up. For my button, the onclick event is tied to a form submit, causing the form to update. But when I had an onclick behavior which pops up the indicator, the form no longer gets submitted, but the indicator does pop up. how can I also make the form submit happen for an onclick? Below is the code which I am referring to: public class AjaxIndicator extends WebMarkupContainer{ public AjaxIndicator (String id){ super(id); setOutputMarkupId(true); } /* (non-Javadoc) * @see wicket.Component#onComponentTag(wicket.markup.ComponentTag) */ protected void onComponentTag(ComponentTag tag) { // TODO Auto-generated method stub super.onComponentTag(tag); tag.put(src, http://localhost:8080/dell-ren/i/temp/ajax-loader.gif;); } } private void setupPanel() { final AjaxIndicator imgContainer = new AjaxIndicator(indicatorImg); form.add (imgContainer); class usersOrGroupsBehavior extends AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware { usersOrGroupsBehavior(){ super(onclick); } /* (non-Javadoc) * @see wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId() */ public String getAjaxIndicatorMarkupId() { return imgContainer.getMarkupId(); } /* (non-Javadoc) * @see wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate(wicket.ajax. AjaxRequestTarget) */ protected void onUpdate(AjaxRequestTarget arg0) { try { Thread.sleep(5000); } catch (InterruptedException e) { } } } Button searchButton = new Button(searchButton, new StringResourceModel(searchButton, this, null)); searchButton.add(new AjaxFormSubmitBehavior(form, onclick) { protected void onSubmit(AjaxRequestTarget target) { try { Thread.sleep(5000); } catch (InterruptedException e) { throw RenRuntimeException.wrapWithRenRuntimeException(e); } Collection ldapUsers = getUsersOrGroupsFromLdap(getLdapQuery(), getGroupsToSearchWithin()); populateUsersOrGroupsList(ldapUsers); // make the add button visible once we've populated the selectable users list addButton.setVisible(true); target.addComponent(UserGroupPickerPanel.this); } }); searchButton.add(new usersOrGroupsBehavior()); } - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax indicators and form submits
you are adding two behaviors to the same button that both compete for the onclick attribute - a formcomponentupdatingbehavior and ajaxformsubmitbehavior. you have two choices: create a compound behavior out of the two or let the ajaxformsubmitbehavior implement iajaxindicatoraware directly -igor On 3/1/07, Apaar Trivedi [EMAIL PROTECTED] wrote: I have setup an AjaxIndicator to show up when I press a button, but the onclick event seems to be overridden when I set this up. For my button, the onclick event is tied to a form submit, causing the form to update. But when I had an onclick behavior which pops up the indicator, the form no longer gets submitted, but the indicator does pop up. how can I also make the form submit happen for an onclick? Below is the code which I am referring to: public class AjaxIndicator extends WebMarkupContainer{ public AjaxIndicator (String id){ super(id); setOutputMarkupId(true); } /* (non-Javadoc) * @see wicket.Component#onComponentTag(wicket.markup.ComponentTag ) */ protected void onComponentTag(ComponentTag tag) { // TODO Auto-generated method stub super.onComponentTag(tag); tag.put(src, http://localhost:8080/dell-ren/i/temp/ajax-loader.gif;); } } private void setupPanel() { final AjaxIndicator imgContainer = new AjaxIndicator(indicatorImg); form.add (imgContainer); class usersOrGroupsBehavior extends AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware { usersOrGroupsBehavior(){ super(onclick); } /* (non-Javadoc) * @see wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId() */ public String getAjaxIndicatorMarkupId() { return imgContainer.getMarkupId(); } /* (non-Javadoc) * @see wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate( wicket.ajax.AjaxRequestTarget) */ protected void onUpdate(AjaxRequestTarget arg0) { try { Thread.sleep(5000); } catch (InterruptedException e) { } } } Button searchButton = new Button(searchButton, new StringResourceModel(searchButton, this, null)); searchButton.add(new AjaxFormSubmitBehavior(form, onclick) { protected void onSubmit(AjaxRequestTarget target) { try { Thread.sleep(5000); } catch (InterruptedException e) { throw RenRuntimeException.wrapWithRenRuntimeException (e); } Collection ldapUsers = getUsersOrGroupsFromLdap(getLdapQuery(), getGroupsToSearchWithin()); populateUsersOrGroupsList(ldapUsers); // make the add button visible once we've populated the selectable users list addButton.setVisible(true); target.addComponent(UserGroupPickerPanel.this); } }); searchButton.add(new usersOrGroupsBehavior()); } - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] relative urls?
ChuckDeal wrote: Al Maw wrote: What you'd ideally like to be able to do is have a Wicket page which has a div wicket:id=jsp/div in it, and render the JSP in there, yes? Have you had the chance to write up any of the details of your solution? I would be interested in seeing how you solved this problem. I'll try to find your blog, hopefully there is a link from the wiki. Sorry this has taken a while to get around to. Just done it. It's a bit long, sorry! :) http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/ Al - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] mountBookmarkablePage causes 'no session' error
I tried to add some nice URLs by adding the following to my application class: public void init() { mountBookmarkablePage(/home, HomePage.class); mountBookmarkablePage(/location, LocationPage.class); } My bad!!! I accidentally had marked one the page classes as Persistent in the Javelin tool (which obviously should only be done for domain model classes ;) ) so it was automatically generating a .jdo metafile for the class which meant that JDO enhanced the class. I don't know why this caused a problem for Wicket but it's not really an issue as no UI class should ever need to be enhanced by JDO because they should be only ever access and manipulate domain model objects via accessor and manipulator methods anyway - and thus don't need to be persistence-capable nor persistence-aware and hence not enhanced. Once I turned persistence off for my UI classes everything worked perfectly. Oh yeah, my URLs look a lot nicer now... after I fixed my bad. - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Adding alt attribute to stars in RatingPanel
Hi everyone, I'd like to add an alt attribute to the stars in the wicket.extensions.rating.RatingPanel. Unfortunately the inner class RatingStarBar is private so I can't override its populateItem() method. Is there a way how I could achieve this behavior? Conny -- View this message in context: http://www.nabble.com/Adding-alt-attribute-to-stars-in-RatingPanel-tf3329203.html#a9256981 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding alt attribute to stars in RatingPanel
Never mind. I just saw that the class has a newRatingStarBar mehod. I guess this solves my problem. ckuehne wrote: Hi everyone, I'd like to add an alt attribute to the stars in the wicket.extensions.rating.RatingPanel. Unfortunately the inner class RatingStarBar is private so I can't override its populateItem() method. Is there a way how I could achieve this behavior? Conny -- View this message in context: http://www.nabble.com/Adding-alt-attribute-to-stars-in-RatingPanel-tf3329203.html#a9257039 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Add JavaScript call after Ajax update?
What's the best way to add some JavaScript code to be called after a component is updated via Ajax? I have a component that is rendered by Wicket and then requires a Javascript function to be called in order to modify the DOM for that component client-side. I have Ajax events which re-render this component, and I need to be able to tell Ajax to call out to my JavaScript function after it re-renders the component. -- View this message in context: http://www.nabble.com/Add-JavaScript-call-after-Ajax-update--tf3329353.html#a9257461 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
Ok, I get it better now. And is it something that could be shared with the community? not really it is complete tied to how our stuff works (that also does have a swing frondend) Yes, but is there a wicketmodel with event listener, or do I have to define my own? And if I define my own, I guess I'll have either to use my own components too so that they listen to the changes, or use another class to do the binding. If you use swing models then the wicket model or the wicket component can listen to that event the model has. If you get an event. Set a flag on the component or model. Then walk with the IVisitor pattern over all the components and test that flag. johan - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
On 3/1/07, Johan Compagner [EMAIL PROTECTED] wrote: If you use swing models then the wicket model or the wicket component can listen to that event the model has. If you get an event. Set a flag on the component or model. Then walk with the IVisitor pattern over all the components and test that flag. Thanks for the tip, it's a nice solution. For the moment I've prototyped my first idea, I think I will create an issue in JIRA and attach a patch so that others may take advantage of it (and maybe it could even get integrated in wicket one day). Now that I've something working, my feeling is that it fits in wicket spirit pretty well. At least for what I know of the wicket spirit after less than a week :-) I'll keep you informed of the issue I create. johan - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Page creation from db
Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks! On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: so now that ive looked at ipagefactory what you want should be pretty easy if you still want to use pages mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy then in ipagefactory do this: Page newPage(final Class? extends Page pageClass, final PageParameters parameters) { if (pageClass.equals(MyFactoryPage.class)) { // we hit our marker factory page String url=buildurlfromparameters(params); String resolvedpageclass=resolveclassfromurl(url); PageParameters resolvedparams=resolveparamsfromurl(url); return super.newPage(resolvedpageclass, resolvedparams); } else { return super.newPage(pageClass, parameters); } } MyFactoryPage is just an empty page, it really only serves as a marker for when you hit that mount point. makes sense? -igor On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the niceset woiuld be to use panels instead of pages. that way you mount a page onto /mountpoint, when its hit you read the rest of the parameters, query the db for the panel class, instantiate it and add it to the page. nice and clean. there is really very little difference between page and panel functionality-wise. i dont have the code infront of me, but i would think this should be doable within the pagemap factory -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, I'm looking for a pattern to create page instances from a configuration in db. I sounds really weird but the scenario is this: - A request comes in for /mountpoint/dynamicpart1/part2/part3 - A lookup is made to db for a PageConfig with urlPart = dynamicpart1/part2/part3 PageConfig contains a className and 1 or more params where the mandatory param is the id for the modelObject for the page. - Use reflection to find a corresponding page in the class hierarchy. - Instantiate. - Let wicket render it... I've looked at the IPageFactory but that seems to late in the processing because the page class is already determined. I guess some kind of urldecoding strategy is needed but I don't know the internals of wickets processing parts that well. Would appreciate any pointers to where to look! /Mats - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Add JavaScript call after Ajax update?
dukejansen wrote: What's the best way to add some JavaScript code to be called after a component is updated via Ajax? See AjaxRequestTarget#appendJavaScript(String) Al - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax indicators and form submits
can't we attach those different ajax behaviors now with the new wicket-event.js? johan On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you are adding two behaviors to the same button that both compete for the onclick attribute - a formcomponentupdatingbehavior and ajaxformsubmitbehavior. you have two choices: create a compound behavior out of the two or let the ajaxformsubmitbehavior implement iajaxindicatoraware directly -igor On 3/1/07, Apaar Trivedi [EMAIL PROTECTED] wrote: I have setup an AjaxIndicator to show up when I press a button, but the onclick event seems to be overridden when I set this up. For my button, the onclick event is tied to a form submit, causing the form to update. But when I had an onclick behavior which pops up the indicator, the form no longer gets submitted, but the indicator does pop up. how can I also make the form submit happen for an onclick? Below is the code which I am referring to: public class AjaxIndicator extends WebMarkupContainer{ public AjaxIndicator (String id){ super(id); setOutputMarkupId(true); } /* (non-Javadoc) * @see wicket.Component#onComponentTag( wicket.markup.ComponentTag) */ protected void onComponentTag(ComponentTag tag) { // TODO Auto-generated method stub super.onComponentTag(tag); tag.put(src, http://localhost:8080/dell-ren/i/temp/ajax-loader.gif;); } } private void setupPanel() { final AjaxIndicator imgContainer = new AjaxIndicator(indicatorImg); form.add (imgContainer); class usersOrGroupsBehavior extends AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware { usersOrGroupsBehavior(){ super(onclick); } /* (non-Javadoc) * @see wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId() */ public String getAjaxIndicatorMarkupId() { return imgContainer.getMarkupId(); } /* (non-Javadoc) * @see wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate( wicket.ajax.AjaxRequestTarget) */ protected void onUpdate(AjaxRequestTarget arg0) { try { Thread.sleep(5000); } catch (InterruptedException e) { } } } Button searchButton = new Button(searchButton, new StringResourceModel(searchButton, this, null)); searchButton.add(new AjaxFormSubmitBehavior(form, onclick) { protected void onSubmit(AjaxRequestTarget target) { try { Thread.sleep(5000); } catch (InterruptedException e) { throw RenRuntimeException.wrapWithRenRuntimeException(e); } Collection ldapUsers = getUsersOrGroupsFromLdap(getLdapQuery(), getGroupsToSearchWithin()); populateUsersOrGroupsList(ldapUsers); // make the add button visible once we've populated the selectable users list addButton.setVisible(true); target.addComponent(UserGroupPickerPanel.this); } }); searchButton.add(new usersOrGroupsBehavior()); } - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Dynamic Page creation from db
Forgot to ask, but it seems that DefaultPageFactory has a lot of final methods in 1.3. Is there another option? /Mats On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks! On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: so now that ive looked at ipagefactory what you want should be pretty easy if you still want to use pages mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy then in ipagefactory do this: Page newPage(final Class? extends Page pageClass, final PageParameters parameters) { if (pageClass.equals(MyFactoryPage.class)) { // we hit our marker factory page String url=buildurlfromparameters(params); String resolvedpageclass=resolveclassfromurl(url); PageParameters resolvedparams=resolveparamsfromurl(url); return super.newPage(resolvedpageclass, resolvedparams); } else { return super.newPage(pageClass, parameters); } } MyFactoryPage is just an empty page, it really only serves as a marker for when you hit that mount point. makes sense? -igor On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the niceset woiuld be to use panels instead of pages. that way you mount a page onto /mountpoint, when its hit you read the rest of the parameters, query the db for the panel class, instantiate it and add it to the page. nice and clean. there is really very little difference between page and panel functionality-wise. i dont have the code infront of me, but i would think this should be doable within the pagemap factory -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, I'm looking for a pattern to create page instances from a configuration in db. I sounds really weird but the scenario is this: - A request comes in for /mountpoint/dynamicpart1/part2/part3 - A lookup is made to db for a PageConfig with urlPart = dynamicpart1/part2/part3 PageConfig contains a className and 1 or more params where the mandatory param is the id for the modelObject for the page. - Use reflection to find a corresponding page in the class hierarchy. - Instantiate. - Let wicket render it... I've looked at the IPageFactory but that seems to late in the processing because the page class is already determined. I guess some kind of urldecoding strategy is needed but I don't know the internals of wickets processing parts that well. Would appreciate any pointers to where to look! /Mats - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax indicators and form submits
then you get two requests, prob not something the user wanted in the first place. i talked to him on irc, he did what i suggested, and it all works for him now. that second behavior was there just for the indicator, but the first behavior can just implement that interface and be all good. -igor On 3/1/07, Johan Compagner [EMAIL PROTECTED] wrote: can't we attach those different ajax behaviors now with the new wicket-event.js? johan On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you are adding two behaviors to the same button that both compete for the onclick attribute - a formcomponentupdatingbehavior and ajaxformsubmitbehavior. you have two choices: create a compound behavior out of the two or let the ajaxformsubmitbehavior implement iajaxindicatoraware directly -igor On 3/1/07, Apaar Trivedi [EMAIL PROTECTED] wrote: I have setup an AjaxIndicator to show up when I press a button, but the onclick event seems to be overridden when I set this up. For my button, the onclick event is tied to a form submit, causing the form to update. But when I had an onclick behavior which pops up the indicator, the form no longer gets submitted, but the indicator does pop up. how can I also make the form submit happen for an onclick? Below is the code which I am referring to: public class AjaxIndicator extends WebMarkupContainer{ public AjaxIndicator (String id){ super(id); setOutputMarkupId(true); } /* (non-Javadoc) * @see wicket.Component#onComponentTag( wicket.markup.ComponentTag) */ protected void onComponentTag(ComponentTag tag) { // TODO Auto-generated method stub super.onComponentTag(tag); tag.put(src, http://localhost:8080/dell-ren/i/temp/ajax-loader.gif;); } } private void setupPanel() { final AjaxIndicator imgContainer = new AjaxIndicator(indicatorImg); form.add (imgContainer); class usersOrGroupsBehavior extends AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware { usersOrGroupsBehavior(){ super(onclick); } /* (non-Javadoc) * @see wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId() */ public String getAjaxIndicatorMarkupId() { return imgContainer.getMarkupId(); } /* (non-Javadoc) * @see wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate( wicket.ajax.AjaxRequestTarget) */ protected void onUpdate(AjaxRequestTarget arg0) { try { Thread.sleep(5000); } catch (InterruptedException e) { } } } Button searchButton = new Button(searchButton, new StringResourceModel(searchButton, this, null)); searchButton.add(new AjaxFormSubmitBehavior(form, onclick) { protected void onSubmit(AjaxRequestTarget target) { try { Thread.sleep(5000); } catch (InterruptedException e) { throw RenRuntimeException.wrapWithRenRuntimeException(e); } Collection ldapUsers = getUsersOrGroupsFromLdap(getLdapQuery(), getGroupsToSearchWithin()); populateUsersOrGroupsList(ldapUsers); // make the add button visible once we've populated the selectable users list addButton.setVisible(true); target.addComponent(UserGroupPickerPanel.this); } }); searchButton.add(new usersOrGroupsBehavior()); } - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list
Re: [Wicket-user] Dynamic Page creation from db
use extension by delegation instead of inheritance -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Forgot to ask, but it seems that DefaultPageFactory has a lot of final methods in 1.3. Is there another option? /Mats On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks! On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: so now that ive looked at ipagefactory what you want should be pretty easy if you still want to use pages mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy then in ipagefactory do this: Page newPage(final Class? extends Page pageClass, final PageParameters parameters) { if (pageClass.equals(MyFactoryPage.class)) { // we hit our marker factory page String url=buildurlfromparameters(params); String resolvedpageclass=resolveclassfromurl(url); PageParameters resolvedparams=resolveparamsfromurl(url); return super.newPage(resolvedpageclass, resolvedparams); } else { return super.newPage(pageClass, parameters); } } MyFactoryPage is just an empty page, it really only serves as a marker for when you hit that mount point. makes sense? -igor On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the niceset woiuld be to use panels instead of pages. that way you mount a page onto /mountpoint, when its hit you read the rest of the parameters, query the db for the panel class, instantiate it and add it to the page. nice and clean. there is really very little difference between page and panel functionality-wise. i dont have the code infront of me, but i would think this should be doable within the pagemap factory -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, I'm looking for a pattern to create page instances from a configuration in db. I sounds really weird but the scenario is this: - A request comes in for /mountpoint/dynamicpart1/part2/part3 - A lookup is made to db for a PageConfig with urlPart = dynamicpart1/part2/part3 PageConfig contains a className and 1 or more params where the mandatory param is the id for the modelObject for the page. - Use reflection to find a corresponding page in the class hierarchy. - Instantiate. - Let wicket render it... I've looked at the IPageFactory but that seems to late in the processing because the page class is already determined. I guess some kind of urldecoding strategy is needed but I don't know the internals of wickets processing parts that well. Would appreciate any pointers to where to look! /Mats - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] server side triggered page refresh (aka push)
On 3/1/07, Xavier Hanin [EMAIL PROTECTED] wrote: On 3/1/07, Johan Compagner [EMAIL PROTECTED] wrote: If you use swing models then the wicket model or the wicket component can listen to that event the model has. If you get an event. Set a flag on the component or model. Then walk with the IVisitor pattern over all the components and test that flag. Thanks for the tip, it's a nice solution. For the moment I've prototyped my first idea, I think I will create an issue in JIRA and attach a patch so that others may take advantage of it (and maybe it could even get integrated in wicket one day). Now that I've something working, my feeling is that it fits in wicket spirit pretty well. At least for what I know of the wicket spirit after less than a week :-) I'll keep you informed of the issue I create. I'll wait for a fix to WICKET-343 before submitting my issue, because my work is currently broken due to WICKET-343 (works only with revision 511893 of AbstractAjaxTimerBehavior - Xavier johan - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dynamic Page creation from db
Yep, thought of that just as I hit sent...works! Thanks again! On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: use extension by delegation instead of inheritance -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Forgot to ask, but it seems that DefaultPageFactory has a lot of final methods in 1.3. Is there another option? /Mats On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks! On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: so now that ive looked at ipagefactory what you want should be pretty easy if you still want to use pages mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy then in ipagefactory do this: Page newPage(final Class? extends Page pageClass, final PageParameters parameters) { if (pageClass.equals(MyFactoryPage.class)) { // we hit our marker factory page String url=buildurlfromparameters(params); String resolvedpageclass=resolveclassfromurl(url); PageParameters resolvedparams=resolveparamsfromurl(url); return super.newPage(resolvedpageclass, resolvedparams); } else { return super.newPage(pageClass, parameters); } } MyFactoryPage is just an empty page, it really only serves as a marker for when you hit that mount point. makes sense? -igor On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the niceset woiuld be to use panels instead of pages. that way you mount a page onto /mountpoint, when its hit you read the rest of the parameters, query the db for the panel class, instantiate it and add it to the page. nice and clean. there is really very little difference between page and panel functionality-wise. i dont have the code infront of me, but i would think this should be doable within the pagemap factory -igor On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote: Hi, I'm looking for a pattern to create page instances from a configuration in db. I sounds really weird but the scenario is this: - A request comes in for /mountpoint/dynamicpart1/part2/part3 - A lookup is made to db for a PageConfig with urlPart = dynamicpart1/part2/part3 PageConfig contains a className and 1 or more params where the mandatory param is the id for the modelObject for the page. - Use reflection to find a corresponding page in the class hierarchy. - Instantiate. - Let wicket render it... I've looked at the IPageFactory but that seems to late in the processing because the page class is already determined. I guess some kind of urldecoding strategy is needed but I don't know the internals of wickets processing parts that well. Would appreciate any pointers to where to look! /Mats - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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
[Wicket-user] Redirecting to another internal page
I have a wicket application where, when I'm constructing the requested page, if I detect an error, I want to stop processing the page and redirect to another page and display the error. However, everything I tried reports an error that I did not finish mapping the first page. Is this possible with Wicket? Any other ideas of how to approach this problem? Thanks, David Robison -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: [EMAIL PROTECTED] web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/bookstore/titles/1597816523.htm - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Redirecting to another internal page
throw new restartresponseexception -igor On 3/1/07, David Robison [EMAIL PROTECTED] wrote: I have a wicket application where, when I'm constructing the requested page, if I detect an error, I want to stop processing the page and redirect to another page and display the error. However, everything I tried reports an error that I did not finish mapping the first page. Is this possible with Wicket? Any other ideas of how to approach this problem? Thanks, David Robison -- David R Robison Open Roads Consulting, Inc. 708 S. Battlefield Blvd., Chesapeake, VA 23322 phone: (757) 546-3401 e-mail: [EMAIL PROTECTED] web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/bookstore/titles/1597816523.htm - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AJAX Issue - component not enabled or visible, redirecting to calling page
I implemented a drag-n-drop using scriptaculous. On my home PC, everything was working fine, I can drag my products into a droppable container and the container updates itself via AJAX just fine no page refreshes. I checked in the code, came into work today and rebuilt the app. Now when I drag my objects, I get a different behavior. The first drop executes fine and the droppable container refreshes itself via ajax. The second time I drop the whole page refreshes and the drop doesn't take place. I get the following message in the logs: [AbstractRequestTargetResolverStrategy] component not enabled or visible, redirecting to calling page, component: [MarkupContainer [Component id = image, page = blah.blah.ProductSearchPage, path = 1:searchPanel:resultsContainer:results:results:2:image.ProductImage, isVisible = true, isVersioned = true]] I'm not sure what's happening here. But let me explain the code/events a bit more. DraggableSource is an AbstractTransformerBehavior that I can add to any component. It add javascript to invoke scriptaculous to make the object draggable, and also registers a callback url with the element (element.dndCallbackUrl=behavior url). The behavior url is called when the component is dropped into a DraggableTarget. DraggableTarget is a MarkupContainer with an AbstractTransformerBehavior to add the javascript to make the container a drop target. When an object is dropped, it invokes the dropped elements dndCallbackUrl to invoke the behavior. It also appends it's markupId to the url so that I can associate the container with the dropped object from within the behavior. So the problem is: what causes the behavior url to become invalid? From one drop to the next, the only markup that refreshes is the actual container that the object is dropped into, so what could cause the behavior's callback url to become invalid on the 2nd drop if the component that behavior is tied to is never refreshed? Sorry if this is hard to understand.. I guess to simplify the whole question: why am I getting a component not enabled or visible, redirecting to calling page when the component itself is never refreshed, or had it's visibility toggled? Latest wicket 2.0 from svn update earlier today. Aaron - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Specifying a class for the p's generated by MultiLineLabel
Is it possible to specify the CSS class for the p's generated by the MultiLineLabel component? Currently it generates: pfirst line/p psecond line/p Is it possible to get it to generate something like: p class=myMultiLineClassfirst line/p p class=myMultiLineClasssecond line/p Or is there a better way to achieve this using CSS that I have missed? Maybe via inherited properties or something? - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX Issue - component not enabled or visible, redirecting to calling page
can we see the stacktrace please? -igor On 3/1/07, Aaron Hiniker [EMAIL PROTECTED] wrote: I implemented a drag-n-drop using scriptaculous. On my home PC, everything was working fine, I can drag my products into a droppable container and the container updates itself via AJAX just fine no page refreshes. I checked in the code, came into work today and rebuilt the app. Now when I drag my objects, I get a different behavior. The first drop executes fine and the droppable container refreshes itself via ajax. The second time I drop the whole page refreshes and the drop doesn't take place. I get the following message in the logs: [AbstractRequestTargetResolverStrategy] component not enabled or visible, redirecting to calling page, component: [MarkupContainer [Component id = image, page = blah.blah.ProductSearchPage, path = 1:searchPanel:resultsContainer:results:results:2:image.ProductImage, isVisible = true, isVersioned = true]] I'm not sure what's happening here. But let me explain the code/events a bit more. DraggableSource is an AbstractTransformerBehavior that I can add to any component. It add javascript to invoke scriptaculous to make the object draggable, and also registers a callback url with the element (element.dndCallbackUrl=behavior url). The behavior url is called when the component is dropped into a DraggableTarget. DraggableTarget is a MarkupContainer with an AbstractTransformerBehavior to add the javascript to make the container a drop target. When an object is dropped, it invokes the dropped elements dndCallbackUrl to invoke the behavior. It also appends it's markupId to the url so that I can associate the container with the dropped object from within the behavior. So the problem is: what causes the behavior url to become invalid? From one drop to the next, the only markup that refreshes is the actual container that the object is dropped into, so what could cause the behavior's callback url to become invalid on the 2nd drop if the component that behavior is tied to is never refreshed? Sorry if this is hard to understand.. I guess to simplify the whole question: why am I getting a component not enabled or visible, redirecting to calling page when the component itself is never refreshed, or had it's visibility toggled? Latest wicket 2.0 from svn update earlier today. Aaron - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Specifying a class for the p's generated by MultiLineLabel
style .multi p { font-color:red;}/style div class=multi wicket:id=multilinelabel/div -igor On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote: Is it possible to specify the CSS class for the p's generated by the MultiLineLabel component? Currently it generates: pfirst line/p psecond line/p Is it possible to get it to generate something like: p class=myMultiLineClassfirst line/p p class=myMultiLineClasssecond line/p Or is there a better way to achieve this using CSS that I have missed? Maybe via inherited properties or something? - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Congratulations on Wicket's error reporting
I must congratulate the Wicket developers on Wicket's error reporting system. It's truly magnificent. Whenever I have an error in my markup or a problem in one of my Java classes Wicket displays a HTML page with a very thorough outline of the problem which usually contains sufficient information to point me straight to the cause of the problem. I find this level of error reporting very productive and beneficial. Congratulations! - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] multi-file upload component
a few people were talking about the need to have a component that can upload multiple files as opposed to creating a bunch of fileuploadfields. last night i implemented one. see multifileuploadfield and its example [1]. right now its only in 1.x, once its been flushed out/field tested i will port it to 2.0 so give it a try, looking forward to feedback. [1] http://wicketstuff.org/wicket13/upload/multi -igor - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Congratulations on Wicket's error reporting
glad to hear it -igor On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote: I must congratulate the Wicket developers on Wicket's error reporting system. It's truly magnificent. Whenever I have an error in my markup or a problem in one of my Java classes Wicket displays a HTML page with a very thorough outline of the problem which usually contains sufficient information to point me straight to the cause of the problem. I find this level of error reporting very productive and beneficial. Congratulations! - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX Issue - component not enabled or visible, redirecting to calling page
There is no stack trace, only the log output from AbstractRequestTargetResolverStrategy. I have DEBUG logging enabled as well. Aaron Igor Vaynberg wrote: can we see the stacktrace please? -igor On 3/1/07, *Aaron Hiniker* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I implemented a drag-n-drop using scriptaculous. On my home PC, everything was working fine, I can drag my products into a droppable container and the container updates itself via AJAX just fine no page refreshes. I checked in the code, came into work today and rebuilt the app. Now when I drag my objects, I get a different behavior. The first drop executes fine and the droppable container refreshes itself via ajax. The second time I drop the whole page refreshes and the drop doesn't take place. I get the following message in the logs: [AbstractRequestTargetResolverStrategy] component not enabled or visible, redirecting to calling page, component: [MarkupContainer [Component id = image, page = blah.blah.ProductSearchPage, path = 1:searchPanel:resultsContainer:results:results:2:image.ProductImage, isVisible = true, isVersioned = true]] I'm not sure what's happening here. But let me explain the code/events a bit more. DraggableSource is an AbstractTransformerBehavior that I can add to any component. It add javascript to invoke scriptaculous to make the object draggable, and also registers a callback url with the element (element.dndCallbackUrl=behavior url). The behavior url is called when the component is dropped into a DraggableTarget. DraggableTarget is a MarkupContainer with an AbstractTransformerBehavior to add the javascript to make the container a drop target. When an object is dropped, it invokes the dropped elements dndCallbackUrl to invoke the behavior. It also appends it's markupId to the url so that I can associate the container with the dropped object from within the behavior. So the problem is: what causes the behavior url to become invalid? From one drop to the next, the only markup that refreshes is the actual container that the object is dropped into, so what could cause the behavior's callback url to become invalid on the 2nd drop if the component that behavior is tied to is never refreshed? Sorry if this is hard to understand.. I guess to simplify the whole question: why am I getting a component not enabled or visible, redirecting to calling page when the component itself is never refreshed, or had it's visibility toggled? Latest wicket 2.0 from svn update earlier today. Aaron - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX Issue - component not enabled or visible, redirecting to calling page - CLOSED
I searched for AbstractRequestTargetResolverStrategy in the source tree, and it wasn't there. So apparently it was removed recently, but was still lingering in my target/classes directory. I did a mvn clean install, redeployed and now everything works as expected. My bad.. sorry.. Aaron Aaron Hiniker wrote: There is no stack trace, only the log output from AbstractRequestTargetResolverStrategy. I have DEBUG logging enabled as well. Aaron Igor Vaynberg wrote: can we see the stacktrace please? -igor On 3/1/07, *Aaron Hiniker* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I implemented a drag-n-drop using scriptaculous. On my home PC, everything was working fine, I can drag my products into a droppable container and the container updates itself via AJAX just fine no page refreshes. I checked in the code, came into work today and rebuilt the app. Now when I drag my objects, I get a different behavior. The first drop executes fine and the droppable container refreshes itself via ajax. The second time I drop the whole page refreshes and the drop doesn't take place. I get the following message in the logs: [AbstractRequestTargetResolverStrategy] component not enabled or visible, redirecting to calling page, component: [MarkupContainer [Component id = image, page = blah.blah.ProductSearchPage, path = 1:searchPanel:resultsContainer:results:results:2:image.ProductImage, isVisible = true, isVersioned = true]] I'm not sure what's happening here. But let me explain the code/events a bit more. DraggableSource is an AbstractTransformerBehavior that I can add to any component. It add javascript to invoke scriptaculous to make the object draggable, and also registers a callback url with the element (element.dndCallbackUrl=behavior url). The behavior url is called when the component is dropped into a DraggableTarget. DraggableTarget is a MarkupContainer with an AbstractTransformerBehavior to add the javascript to make the container a drop target. When an object is dropped, it invokes the dropped elements dndCallbackUrl to invoke the behavior. It also appends it's markupId to the url so that I can associate the container with the dropped object from within the behavior. So the problem is: what causes the behavior url to become invalid? From one drop to the next, the only markup that refreshes is the actual container that the object is dropped into, so what could cause the behavior's callback url to become invalid on the 2nd drop if the component that behavior is tied to is never refreshed? Sorry if this is hard to understand.. I guess to simplify the whole question: why am I getting a component not enabled or visible, redirecting to calling page when the component itself is never refreshed, or had it's visibility toggled? Latest wicket 2.0 from svn update earlier today. Aaron - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___
Re: [Wicket-user] AJAX Issue - component not enabled or visible, redirecting to calling page - CLOSED
thats why i wanted the stack trace, couldnt find the damn thing -igor On 3/1/07, Aaron Hiniker [EMAIL PROTECTED] wrote: I searched for AbstractRequestTargetResolverStrategy in the source tree, and it wasn't there. So apparently it was removed recently, but was still lingering in my target/classes directory. I did a mvn clean install, redeployed and now everything works as expected. My bad.. sorry.. Aaron Aaron Hiniker wrote: There is no stack trace, only the log output from AbstractRequestTargetResolverStrategy. I have DEBUG logging enabled as well. Aaron Igor Vaynberg wrote: can we see the stacktrace please? -igor On 3/1/07, Aaron Hiniker [EMAIL PROTECTED] wrote: I implemented a drag-n-drop using scriptaculous. On my home PC, everything was working fine, I can drag my products into a droppable container and the container updates itself via AJAX just fine no page refreshes. I checked in the code, came into work today and rebuilt the app. Now when I drag my objects, I get a different behavior. The first drop executes fine and the droppable container refreshes itself via ajax. The second time I drop the whole page refreshes and the drop doesn't take place. I get the following message in the logs: [AbstractRequestTargetResolverStrategy] component not enabled or visible, redirecting to calling page, component: [MarkupContainer [Component id = image, page = blah.blah.ProductSearchPage, path = 1:searchPanel:resultsContainer:results:results:2:image.ProductImage, isVisible = true, isVersioned = true]] I'm not sure what's happening here. But let me explain the code/events a bit more. DraggableSource is an AbstractTransformerBehavior that I can add to any component. It add javascript to invoke scriptaculous to make the object draggable, and also registers a callback url with the element (element.dndCallbackUrl=behavior url). The behavior url is called when the component is dropped into a DraggableTarget. DraggableTarget is a MarkupContainer with an AbstractTransformerBehavior to add the javascript to make the container a drop target. When an object is dropped, it invokes the dropped elements dndCallbackUrl to invoke the behavior. It also appends it's markupId to the url so that I can associate the container with the dropped object from within the behavior. So the problem is: what causes the behavior url to become invalid? From one drop to the next, the only markup that refreshes is the actual container that the object is dropped into, so what could cause the behavior's callback url to become invalid on the 2nd drop if the component that behavior is tied to is never refreshed? Sorry if this is hard to understand.. I guess to simplify the whole question: why am I getting a component not enabled or visible, redirecting to calling page when the component itself is never refreshed, or had it's visibility toggled? Latest wicket 2.0 from svn update earlier today. Aaron - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list [EMAIL PROTECTED]://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.phpp=sourceforgeCID=DEVDEV -- ___ Wicket-user mailing list [EMAIL PROTECTED]://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.phpp=sourceforgeCID=DEVDEV
[Wicket-user] NPE in Page#componentStateChanging
I pulled the latest from trunk. And I am getting this NPE: 16:30:14,543 ERROR [STDERR] java.lang.NullPointerException 16:30:14,544 ERROR [STDERR] at wicket.Page.componentStateChanging(Page.java:327) 16:30:14,545 ERROR [STDERR] at wicket.Component.addStateChange(Component.java:2553) 16:30:14,545 ERROR [STDERR] at wicket.Component.setModel(Component.java:2191) 16:30:14,545 ERROR [STDERR] at wicket.MarkupContainer.setModel(MarkupContainer.java:596) 16:30:14,546 ERROR [STDERR] at com.edicorp.erp.web.components.search.ProductSearchPanel.query(ProductSearchPanel.java:144) 16:30:14,546 ERROR [STDERR] at com.edicorp.erp.web.components.search.ProductSearchPanel.onUpdate(ProductSearchPanel.java:109) 16:30:14,546 ERROR [STDERR] at com.edicorp.erp.web.components.search.FilterPanel.fireOnChange(FilterPanel.java:74) 16:30:14,547 ERROR [STDERR] at com.edicorp.erp.web.components.search.query.QueryPanel$QueryForm.onSubmit(QueryPanel.java:197) 16:30:14,547 ERROR [STDERR] at wicket.markup.html.form.Form.delegateSubmit(Form.java:680) 16:30:14,547 ERROR [STDERR] at wicket.markup.html.form.Form.onFormSubmitted(Form.java:396) 16:30:14,547 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) I remember I was getting this NPE before, and I patched the source to include this null check in Page.java: final void componentStateChanging(final Component component, Change change) { checkHierarchyChange(component); dirty(); if (mayTrackChangesFor(component, null)) { if ( versionManager != null ) versionManager.componentStateChanging(change); } } It seems that everywhere else in Page.java there is a null check for versionManager, except in this method. Not sure, but perhaps the problem lies in the #mayTrackChangesFor() method, but in any case if I add this null check my code runs fine. Aaron - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Add JavaScript call after Ajax update?
Sorry, should have been more specific. I'm already using the appendJavaScript method and it works like a charm. What I'm really after is whether there is a way to set default behavior for ALL AjaxRequestTargets. I have some client-side javascript which does some DOM rewrites once the page is rendered, and I want to ensure that this function is called any time I do an ajax replacement of a component. Since the AjaxRequestTarget doesn't seem to be created by a factory (or extensible really), I'm not sure how I would go about this. Thoughts? Al Maw wrote: dukejansen wrote: What's the best way to add some JavaScript code to be called after a component is updated via Ajax? See AjaxRequestTarget#appendJavaScript(String) Al - 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.phpp=sourceforgeCID=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/Add-JavaScript-call-after-Ajax-update--tf3329353.html#a9261659 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Add JavaScript call after Ajax update?
dukejansen wrote: What I'm really after is whether there is a way to set default behavior for ALL AjaxRequestTargets. Ah, I see. You can execute some JavaScript on your page that looks like this: Wicket.Ajax.registerPostCallHandler(function() { doFooHere(); }); That'll get executed after every Wicket AJAX roundtrip. You might be able to hook in there sensibly. See wicket-ajax.js for more ideas. Al - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] help: how to reverse the order of RepeatingView's children
[Wicket 2.0] The javadoc says that RepeatingView renders all of its children in order they were added. Could anyone give me a pointer or a demonstration on how to reverse the order of a RepeatingView's children? Thanks. - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] help: how to reverse the order of RepeatingView's children
override repeatingview.renderiterator() and reverse the order -igor On 3/1/07, Otan [EMAIL PROTECTED] wrote: [Wicket 2.0] The javadoc says that RepeatingView renders all of its children in order they were added. Could anyone give me a pointer or a demonstration on how to reverse the order of a RepeatingView's children? Thanks. - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Add JavaScript call after Ajax update?
PERFECT! Thanks. :) -Jason Al Maw wrote: dukejansen wrote: What I'm really after is whether there is a way to set default behavior for ALL AjaxRequestTargets. Ah, I see. You can execute some JavaScript on your page that looks like this: Wicket.Ajax.registerPostCallHandler(function() { doFooHere(); }); That'll get executed after every Wicket AJAX roundtrip. You might be able to hook in there sensibly. See wicket-ajax.js for more ideas. Al - 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.phpp=sourceforgeCID=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/Add-JavaScript-call-after-Ajax-update--tf3329353.html#a9262331 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Defining link text for a ListView
I have a list view and I need each item in the list to display a HREF link and text. Both the link target URL and the link text are different for each item in the list. Using the following causes a component 'categoryName' not found error: span wicket:id = items h2 style=line-height: 2px a href=# wicket:id=categoryLink span wicket:id=categoryNamePizza/span /a /h2 span wicket:id=categoryDescHmmm, yum./span /span Without changing any .java files I move the categoryName span tag to outside the HREF and it works without error - although my HREF tag link text is wrong: span wicket:id = items h2 style=line-height: 2px a href=# wicket:id=categoryLink Fixed name but want a variable name /a /h2 span wicket:id=categoryNamecategory name/span span wicket:id=categoryDescHmmm, yum./span /span How do I get content from my ListItem embedded into the a href IN HERE /a? - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Defining link text for a ListView
instead of item.add(new link(categoryLink){}); item.add(new label(categoryname)) do Link link=new linke(categoryLink); item.add(link); link.add(new label(categoryname)); -igor On 3/1/07, Chris Colman [EMAIL PROTECTED] wrote: I have a list view and I need each item in the list to display a HREF link and text. Both the link target URL and the link text are different for each item in the list. Using the following causes a component 'categoryName' not found error: span wicket:id = items h2 style=line-height: 2px a href=# wicket:id=categoryLink span wicket:id=categoryNamePizza/span /a /h2 span wicket:id=categoryDescHmmm, yum./span /span Without changing any .java files I move the categoryName span tag to outside the HREF and it works without error - although my HREF tag link text is wrong: span wicket:id = items h2 style=line-height: 2px a href=# wicket:id=categoryLink Fixed name but want a variable name /a /h2 span wicket:id=categoryNamecategory name/span span wicket:id=categoryDescHmmm, yum./span /span How do I get content from my ListItem embedded into the a href IN HERE /a? - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Congratulations on Wicket's error reporting
On 3/2/07, Chris Colman [EMAIL PROTECTED] wrote: I must congratulate the Wicket developers on Wicket's error reporting system. It's truly magnificent. Whenever I have an error in my markup or a problem in one of my Java classes Wicket displays a HTML page with a very thorough outline of the problem which usually contains sufficient information to point me straight to the cause of the problem. I find this level of error reporting very productive and beneficial. Congratulations! +1! - Xavier - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NPE in Page#componentStateChanging
That is because the mayTrackChangesFor() method should only return true when it makes a version manager. Why is that not the case? If that method returns true the version manager can't be null because the version info must be tracked. johan On 3/1/07, Aaron Hiniker [EMAIL PROTECTED] wrote: I pulled the latest from trunk. And I am getting this NPE: 16:30:14,543 ERROR [STDERR] java.lang.NullPointerException 16:30:14,544 ERROR [STDERR] at wicket.Page.componentStateChanging(Page.java:327) 16:30:14,545 ERROR [STDERR] at wicket.Component.addStateChange(Component.java:2553) 16:30:14,545 ERROR [STDERR] at wicket.Component.setModel(Component.java:2191) 16:30:14,545 ERROR [STDERR] at wicket.MarkupContainer.setModel(MarkupContainer.java:596) 16:30:14,546 ERROR [STDERR] at com.edicorp.erp.web.components.search.ProductSearchPanel.query( ProductSearchPanel.java:144) 16:30:14,546 ERROR [STDERR] at com.edicorp.erp.web.components.search.ProductSearchPanel.onUpdate( ProductSearchPanel.java:109) 16:30:14,546 ERROR [STDERR] at com.edicorp.erp.web.components.search.FilterPanel.fireOnChange( FilterPanel.java:74) 16:30:14,547 ERROR [STDERR] at com.edicorp.erp.web.components.search.query.QueryPanel$QueryForm.onSubmit( QueryPanel.java:197) 16:30:14,547 ERROR [STDERR] at wicket.markup.html.form.Form.delegateSubmit(Form.java:680) 16:30:14,547 ERROR [STDERR] at wicket.markup.html.form.Form.onFormSubmitted(Form.java:396) 16:30:14,547 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) I remember I was getting this NPE before, and I patched the source to include this null check in Page.java: final void componentStateChanging(final Component component, Change change) { checkHierarchyChange(component); dirty(); if (mayTrackChangesFor(component, null)) { if ( versionManager != null ) versionManager.componentStateChanging(change); } } It seems that everywhere else in Page.java there is a null check for versionManager, except in this method. Not sure, but perhaps the problem lies in the #mayTrackChangesFor() method, but in any case if I add this null check my code runs fine. Aaron - 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user