Thanks for the help. Makes sense. I am trying to come to grips with using Wicket for a fairly large project and am trying to come up to speed as quick as possible and at the same time try and figure out where I may get burned.
Johan Compagner wrote: > > youre page will be statefull anyway > and then to try to conserve a few links would seem foolish to me that will > not save you much anyway. > > If there is in the markup 5 links with wicket:id then you need 5 unique > components (you can reuse it) > and you need the wicket:id anyway because if you want to change the tag > (add > the right onclick attribute) > then you need a component. So you could have 4 markupcontainers and 1 > ajaxlink and then > reuse the ajax link onlick behavior somehow for the 4 markupcontainers.. > But > what would that really gain you > besides much more complex situation? > > johan > > > On 5/17/07, mchack <[EMAIL PROTECTED]> wrote: >> >> >> Johan, thanks for the response. It still appears that I will be >> instantiating >> multiple AjaxLink(s), one for each unique link. In a stateful page these >> would be stored in the session. By moving some state to the client it >> appears that it might be possible to reduce the number of server side >> objects that would be retained in the session. Pardon me if I am missing >> something. >> >> I was looking at this for something like a panel that provided links to >> say >> multiple press releases. When the link was selected it would call common >> Ajax on click handler and infer the item to be presented by unique >> request >> parameter. There could be many links and also many concurrent sessions so >> I >> was a bit worried about reducing impact from a session standpoint. >> >> I am new to the framework and am trying to come up to speed as quickly as >> possible, but am very favorably impressed. >> >> >> >> >> Johan Compagner wrote: >> > >> > you can use one anonymous innerclass just fine for multiply ajax links >> > just give the seperate instances the state you want on the server side >> > why push that to the client? >> > >> > AjaxLink link1 = AjaxLink("link1", new Model(mystate1)) >> > AjaxLink link2 = AjaxLink("link2", new Model(mystate2)) >> > >> > onClick() >> > { >> > State state = getModel() >> > // do something >> > } >> > >> > johan >> > >> > >> > >> > On 5/17/07, mchack <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Would it be possible or reasonable to extend an AjaxLink to include >> >> additional request parameters. My reason is that I would like to >> include >> >> multiple AjaxLinks in a page and would like to only define one >> anonymous >> >> inner class to handle the requests, using unique request parameters to >> >> distinguish between the requests. This would make my page generation >> more >> >> efficient and would eliminate the creation of unnecessary server side >> >> objects. >> >> >> >> Thanks >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Append-custom-req-paramaters-to-AjaxLink-tf3773939.html#a10671020 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by DB2 Express >> >> Download DB2 Express C - the FREE version of DB2 express and take >> >> control of your XML. No limits. Just data. Click to get it now. >> >> http://sourceforge.net/powerbar/db2/ >> >> _______________________________________________ >> >> Wicket-user mailing list >> >> Wicket-user@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > _______________________________________________ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Append-custom-req-paramaters-to-AjaxLink-tf3773939.html#a10672578 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Append-custom-req-paramaters-to-AjaxLink-tf3773939.html#a10674815 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user