Re: [Wicket-user] Ajax component replaceWith and browser back-button problems
On 8/6/07, dukejansen <[EMAIL PROTECTED]> wrote: > > > Was this ever resolved? I'm still seeing problems when I use back button, > where the ajax actions on the previous page are being evaluated as though > they were for the more recent page, as if the ajax actions have no way of > knowing what page they are for, so assuming the one rendered most > recentely The Ajax versioning problem was resolved for me in one of the later snapshots. 1.3.0-beta2 works fine for me as well. igor.vaynberg wrote: > > > > yes, create a jira > > > > -igor > > > > > > On 3/29/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > >> > >> And the Ajax replace / browser back-button problem is still there even > in > >> 1.3.0 [29-Mar]. Do you need me to open a JIRA? I'll revert to 1.3 for > >> now. > >> > >> Thanks, > >> > >> Peter. > >> > >> On 3/29/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > >> > > >> > Pretty sure. I'm using Maven2 and the JAR name is > >> > wicket-1.3.0-incubating-SNAPSHOT.jar > >> > > >> > On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > >> > > > >> > > is something from 2.0, are you sure you have the right jars? > >> > > > >> > > -igor > >> > > > >> > > > >> > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > >> > > > > >> > > > Thanks Eelco & Igor I got the api and src and made the changes > for > >> > > > AbstractValidator - will also try to add some stuff to the wiki > >> page as soon > >> > > > as I finish refactoring. > >> > > > > >> > > > But I have a big problem with the usage of wicket:message > attribute > >> > > > (tag works fine). This is the error: > >> > > > > >> > > > wicket.markup.MarkupException: Unable to find component with id > >> > > > '-message_attr' in [MarkupContainer [...]] > >> > > > > >> > > > This is the offending markup: >> > > > wicket:message="value= login.submit"/> > >> > > > > >> > > > Any idea how to proceed? Looks like something related to > >> > > > wicket:message attribute i18n broke. > >> > > > > >> > > > Thanks, > >> > > > > >> > > > Peter. > >> > > > > >> > > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > >> > > > > > >> > > > > we only have an unofficial release for it that is a zip. search > >> > > > > the list for it, it is in martijn's dir somewhere. > >> > > > > > >> > > > > other then that all the jars/src/and javadocs are available > from > >> > > > > that wicketstuff.org maven repo. > >> > > > > > >> > > > > all the new classes in wicket.validator package have pretty > good > >> > > > > javadocs so that might be a place to start > >> > > > > > >> > > > > -igor > >> > > > > > >> > > > > > >> > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > >> > > > > > > >> > > > > > Ok, my bad - the documentation does mention the package > change > >> > > > > > to wicket.validation.validator.AbstractValidator > >> > > > > > > >> > > > > > But the API looks a lot different, can you quickly point me > to > >> > > > > > the online Javadoc corresponding to 1.3.0-incubating-SNAPSHOT- > >> > > > > > also if it is downloadable as a zip or something. > >> > > > > > > >> > > > > > Thanks, > >> > > > > > > >> > > > > > Peter. > >> > > > > > > >> > > > > > On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > >> > > > > > > > >> > > > > > > hmm, it is briefly mentioned under > >> > > > > > > Validation Changes i dont remember if we still have > abstract > >> > > > > > > validator or not, see the source of other a
Re: [Wicket-user] Repaint single row of a DataTable
On 7/19/07, ChuckDeal <[EMAIL PROTECTED]> wrote: > > > I searched for answers to this problem, but most responses were to repaint > the whole table (or more specifically, the container holding the table). > > I am trying to make an editable grid. In addition to that, when some cell > contents change, other cells may need to be repainted (they might contain > computed values based upon values of one or more other cells). For > performance, I don't want to repaint the entire table on each keypress, > but > repainting the single row won't be so bad. > > What could I do to repaint a single row of a DataTable? Don't use > DataTable? but I think I still want a repeater and ultimatley it is the > repeater's fault that I can't repaint because the MarkupFragmentFinder > can't > grab the markup because it uses the component's id to "match" up to the > markup it finds and the id of repeater children will never match. It > would > need to know that it is a repeater child and use it's parent it to match > the > markup. Component.renderComponent is final and new MArkupFragmentFinder > is > hardcoded in there, so it doesn't look like I can create a custom > MarkupFragmentFinder impl for this special case. > > Maybe I am seeing this from the wrong perspective? Could someone suggest > an > alternative to this approach? Basically, I like Datatable because it > allows > me to define each cell (and any number of them), but I want the ability to > repaint only PART of the table... > > Thanks > Chuck > -- How about this thread: http://www.nabble.com/Adding-item-to-ListView-over-Ajax---refresh-only-newest-row-t3971491.html#a11572531 Does this help? Thanks, Peter. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] suggestion: have Wicket SVN searchable with FishEye
On 7/3/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > However, I still would not support setting up Fisheye against an Apache > SVN without infrastructure's support as they are the ones that would > have to pick up the pieces if it were to go wrong. Yeah, that's fair enough :) Eelco Raised rfe https://issues.apache.org/jira/browse/WICKET-717 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] suggestion: have Wicket SVN searchable with FishEye
Hi, Refer http://fisheye.cenqua.com/ - can Wicket SVN be made available through FishEye? This would really help in searching through the source code. Thanks, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)
On 6/28/07, Watter <[EMAIL PROTECTED]> wrote: Jean-Baptiste Quenot-3 wrote: > > * Watter: > >> With that, I can get past the error I reported >> earlier. Unfortunately, I'm seeing something else now. If I go >> to a page, then use my browser back button to go back a page, >> and then click on any other link, I get a ClassCastException for >> FusionAuthenticatedWebSession: > > If you don't paste the include/exclude patterns, it will be very > hard to help you. > You're right, of course. Here is all the relevant information I can think of, and thank you for your help. Wicket Version: latest 1.3.0-incubating-SNAPSHOT from wicketstuff maven repository ReloadingFilter Patterns: ReloadingClassLoader.includePattern(" com.ptc.fusion.web.FusionAuthenticatedWebSession*"); ReloadingClassLoader.includePattern(" com.ptc.fusion.web.FusionWebApplication*"); ReloadingClassLoader.includePattern("com.ptc.fusion.web.pages*"); ReloadingClassLoader.includePattern("com.ptc.fusion.web.security* "); ReloadingClassLoader.includePattern(" com.ptc.fusion.web.dataprovider*"); (the * after FusionWebApplication was added at your suggestion and allowed me to revert back to overriding getSessionFactory()) Here are some important parts of the FusionAuthenticatedWebSession: public class FusionAuthenticatedWebSession extends WebSession { private static final long serialVersionUID = 1L; private User user; @SpringBean(name = "ldapauthenticationManager") AuthenticationProvider ldapAuthenticationProvider; @SpringBean(name = "daoauthenticationManager") AuthenticationProvider daoAuthenticationProvider; @SpringBean(name = "webSettings") private WebSettings webSettings; A couple of observations. Looks like you are using Acegi as well. I have the same problem when I don't exclude my Session and Application classes. I am able to proceed now with the following: ReloadingClassLoader.includePattern("info.jtrac.wicket.*"); ReloadingClassLoader.excludePattern(" info.jtrac.wicket.JtracApplication"); ReloadingClassLoader.excludePattern("info.jtrac.wicket.JtracSession "); ReloadingClassLoader.excludePattern("info.jtrac.wicket.DashboardPage"); // this the home page // ReloadingClassLoader.excludePattern("org.springframework.*"); // ReloadingClassLoader.excludePattern("org.acegisecurity.*"); I know this goes completely opposite to what Jean-Baptiste Quenot advises, but this is what is working. Let me try summarize, I started having problems (I think same case with you Matt?) when I got a recent version of the snapshot and I raised the JIRA issue https://issues.apache.org/jira/browse/WICKET-685 I thought the problem was solved when I excluded "org.springframework". The "Markup of type 'html' for component not found" problem went away, so I closed the JIRA issue. But later I found that the effect of ReloadingWicketFilter was nullified - i.e. after changing code and refreshing the page I was getting ClassCastException straight away. Anyway now things are back to how they were working for me with this change: excluding the home page also. Jean-Baptiste: Is there any chance that whatever change was made to classloading could be undone? Thanks, Peter. public FusionAuthenticatedWebSession(WebApplication application, Request request) { super(application, request); InjectorHolder.getInjector().inject(this); } public static FusionAuthenticatedWebSession get() { return (FusionAuthenticatedWebSession) Session.get(); } /** True when the user is signed in */ private boolean signedIn; public boolean authenticate(final String username, final String password) { //do some authentication work } public final boolean signIn(final String username, final String password) { signedIn = authenticate(username, password); return signedIn; } /* Accessors */ public final boolean isSignedIn() { return signedIn; } public User getUser() { return user; } } I call the get() method of this class in a few places and it's that call that causes the error when using the ReloadingFilter and after I hit the back button. WicketMessage: Method onLinkClicked of interface org.apache.wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id = listOrganizationLink, page = com.ptc.fusion.web.pages.user.ListUsers, path = 77:adminMenuItems:listOrganizationLink.PageLink, isVisible = true, isVersioned = true]] threw an exception Root cause: java.lang.ClassCastException: com.ptc.fusion.web.FusionAuthenticatedWebSession at com.ptc.fusion.web.FusionAuthenticatedWebSession.get( FusionAuthenticatedWebSession.java:43) at com.ptc.fusion.web.pages.tem
Re: [Wicket-user] Using hot-reloading of classes with Spring (Was: Has something changed in markup inheritance?)
On 6/28/07, Watter <[EMAIL PROTECTED]> wrote: Watter wrote: > > I now have a new issue. Jean-Baptiste mentions in the JIRA issue that one > *must* include the XxxApplication and XxxSession classes. Well, when I > tried to do so I was unable to access my application. When I included the > my versions of those classes, I received the following: > > java.lang.IllegalAccessError: tried to access class > com.ptc.fusion.web.FusionWebApplication$1 from class > com.ptc.fusion.web.FusionWebApplication > at > com.ptc.fusion.web.FusionWebApplication.getSessionFactory( FusionWebApplication.java:137) > > The code at that location is: > > protected final ISessionFactory getSessionFactory() { > return new ISessionFactory() { > private static final long serialVersionUID = 1L; > public Session newSession(Request request, Response response) { > return new FusionAuthenticatedWebSession( FusionWebApplication.this, > request); > } > }; > } > > It seems that there may be a problem with my using > "FusionWebApplication.this" in the inner class. Is there way around this? > Perhaps another way to refer to the parent class? > I think I found a workaround for at least part of the problem. It seems that I can override newSession() instead of getSessionFactory() with something like this: public Session newSession(Request request, Response response) { return new FusionAuthenticatedWebSession(this, request); } With that, I can get past the error I reported earlier. Unfortunately, I'm seeing something else now. If I go to a page, then use my browser back button to go back a page, and then click on any other link, I get a ClassCastException for FusionAuthenticatedWebSession: java.lang.ClassCastException: com.ptc.fusion.web.FusionAuthenticatedWebSession I retrieve the session in my base page to check a few user variables. It's there that I get the ClassCastException. Here's the actual code: User user = ((FusionAuthenticatedWebSession)Session.get()).getUser(); I'll paste the entire stack trace at the end of the message. As I said, this only happens after using my back button and then clicking on a link as far as I can tell. Anyway, if anyone has any ideas, they'd be much appreciated. Thanks, Matt Good to hear that the wildcard applies to all characters and you don't have to explicitly exclude all sub packages. I was of course trying all kinds of options as I was deperate at the time : ) I actually continued to have problems after closing the JIRA issue, but realized only after submitting the login page and getting a reference to the session User very similar to your case. But then I realized I had Acegi also in the works so after excluding org.acegisecurity.* things are fine. Maybe something similar for you also. Thanks, Peter. --- WicketMessage: Method onLinkClicked of interface org.apache.wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id = listOrganizationLink, page = com.ptc.fusion.web.pages.user.ListUsers, path = 77:adminMenuItems:listOrganizationLink.PageLink, isVisible = true, isVersioned = true]] threw an exception Root cause: java.lang.ClassCastException: com.ptc.fusion.web.FusionAuthenticatedWebSession at com.ptc.fusion.web.FusionAuthenticatedWebSession.get( FusionAuthenticatedWebSession.java:43) at com.ptc.fusion.web.pages.template.FusionTemplate$AdminMenuItems.( FusionTemplate.java:136) at com.ptc.fusion.web.pages.template.FusionTemplate.( FusionTemplate.java:71) at com.ptc.fusion.web.pages.ListOrganization.(ListOrganization.java:35) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.wicket.session.DefaultPageFactory.newPage( DefaultPageFactory.java:58) at org.apache.wicket.markup.html.link.PageLink$1.getPage(PageLink.java:66) at org.apache.wicket.markup.html.link.PageLink.onClick(PageLink.java:153) at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:222) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.wicket.RequestListenerInterface.invoke( RequestListenerInterface.java:186) at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents (ListenerInterfaceRequestTarget.java:73) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents( AbstractRequestCycleProcessor.java:90) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1031) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java :257) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java :127) at org.mortbay.jetty.servlet.
Re: [Wicket-user] where can i get the wicket1.3 documentation
On 6/27/07, Lec <[EMAIL PROTECTED]> wrote: hmm..how about site for the javadoc wicket1.3 extension? and where is the site that I download all these 1.3 javadoc? thanks If you mean 1.3 api javadoc, it is here: http://www.wicketstuff.org/wicket13doc/ You can always get latest src and javadoc from the Maven2 repo, if you dig around you can get all the other wicket stuff as well. http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/ http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-extensions/1.3.0-SNAPSHOT/ I don't know where the online api javadoc for wicket-extensions is, can any of the wicket committers kindly provide the URL if this is available, I would like to bookmark it for reference, thanks. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Classcastexception and getSession
On 6/26/07, Flemming Boller <[EMAIL PROTECTED]> wrote: Hi Actually I had 4 different versions :-) But I removed them all, made a recompile and tried again. Same result. The object from getSession() is a MySession object. I will try and make a quickstart zipfile. and attach it. /Flemming just a thought, are you using the ReloadingWicketFilter, I ran into similar problems when I made a mistake in configuring it: https://issues.apache.org/jira/browse/WICKET-685 On 6/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > I have been troubled with a problem that is very strange. Finally I > solved > > it, but I am unsure whether I am doing something wrong. > > > > I have a custom session implementation MySesission extends WebSession. > > > > > On my first page I have a popuplink opening a normal popup-page. In > that > > popuppage I classcast the (MySession)getSession(), but here the fun > begins. > > > > If I open the popup like this > > > > public void onClick() { > > "getRequestCycle().setResponsePage(new > > ChooseProductPage());" // it works like a charm > > } > > > > but if I do it like this > > public void onClick() { > > getRequestCycle().setResponsePage(ChooseProductPage.class > > ); > > } > > > > I get a classcastexception in the line with the > (MySession)getSession() > > > > Is this something I should make a jira of or am I missing something > :-) > > > > As far as I can tell from the stack trace it seems to me that there > might > > be a classloading problem. > > Btw I am running wicket 1.2.6, java 1.5 and OSX > > Interesting. So what session object does it return? Did you check > whether you have duplicates in your class path? > > Eelco > > > - > 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] where can i get the wicket1.3 documentation
On 6/26/07, Lec <[EMAIL PROTECTED]> wrote: Im just wondering where can i get the wicket1.3 documentation. Been searching around but to no avail Would be appreciated if somebody point me to the site. -- If you mean 1.3 api javadoc, it is here: http://www.wicketstuff.org/wicket13doc/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row
On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote: On 6/24/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > There's nothing javascript heavy on this :) > > You add new item like this: > String id = rv.newChildId(); > Item item = rv.newItem(id, index, model); > rv.populateItem(item); > rv.add(item); > > (where rv is the refreshing view. Some of the methods might be > protected, so you will need to subclass the view, but you have to do > it anyway, as you need to implement populateItem); > > after you call rv.add(item) you can call item.getMarkupId(); > > Creating DOM in javascript is simple: > > var div = document.createElement("div"); > refreshingViewContiner.appendChild(div); > div.id = One more thing Matej - last line above you meant div.setAttribute('id', ) right? Or is there some js foo I should know about? -Matej Just as I was thinking Wicket was not so perfect for Ajax... It works! Thanks Matej :) I really did need that guidance on constructing and adding new item to RefreshingView. And of course now I get why ListView would not have worked. On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > On 6/24/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > > > On Sun, 24 Jun 2007, Peter Thomas wrote: > > > > I haven't used repeaters that much, but would newItem() be the > right way > > to > > > > create a new Item? Anyway, I am now stuck because to ensure that > the id > > of > > > > the DOM element is same as the newly created item, I have to call > > > > getMarkupId() on the item then I get the exception "This component > is > > not > > > > (yet) coupled to a page" Help! > > > > > > Are you sure it's going to be a problem to update the whole > > > Repeater? Because if not, your whole work of dynamic DOM > > > appending might turn out to be premature optimisation. > > > > Agreed, I'm now curious to see how far I can get, and I may not > actually use > > a javascript heavy approach in the end. Also I've created a decent > size app > > using only ListView (including a custom datatable with pagination) and > am > > curious to know what the other repeaters ( e.g. RefreshingView) have > to > > offer. > > > > Also searching Nabble I see that someone else had some success, not > sure if > > this is the same approach: > > > http://www.nabble.com/treetable-with-table-markup-tf3557655.html#a9974461 > > > > > Maybe you can override getMarkupId() for your item components > > > to return e.g. "myId" + domainObject.getdId ()" or something > > > such. > > > > > > (Btw, now that we're on it, all-numeric ids that repeaters > > > produce by default are invalid HTML. Maybe I should file a > > > Jira issue about that.) > > > > > > - Timo > > > > > > -- > > > Timo Rantalaiho > > > Reaktor Innovations Oyhttp://www.ri.fi/ > > > > > > > > > > - > > > 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 > > > > > > - > > 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
Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row
On 6/24/07, Matej Knopp <[EMAIL PROTECTED]> wrote: There's nothing javascript heavy on this :) You add new item like this: String id = rv.newChildId(); Item item = rv.newItem(id, index, model); rv.populateItem(item); rv.add(item); (where rv is the refreshing view. Some of the methods might be protected, so you will need to subclass the view, but you have to do it anyway, as you need to implement populateItem); after you call rv.add(item) you can call item.getMarkupId(); Creating DOM in javascript is simple: var div = document.createElement("div"); refreshingViewContiner.appendChild(div); div.id = -Matej Just as I was thinking Wicket was not so perfect for Ajax... It works! Thanks Matej :) I really did need that guidance on constructing and adding new item to RefreshingView. And of course now I get why ListView would not have worked. On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > On 6/24/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > > On Sun, 24 Jun 2007, Peter Thomas wrote: > > > I haven't used repeaters that much, but would newItem() be the right way > to > > > create a new Item? Anyway, I am now stuck because to ensure that the id > of > > > the DOM element is same as the newly created item, I have to call > > > getMarkupId() on the item then I get the exception "This component is > not > > > (yet) coupled to a page" Help! > > > > Are you sure it's going to be a problem to update the whole > > Repeater? Because if not, your whole work of dynamic DOM > > appending might turn out to be premature optimisation. > > Agreed, I'm now curious to see how far I can get, and I may not actually use > a javascript heavy approach in the end. Also I've created a decent size app > using only ListView (including a custom datatable with pagination) and am > curious to know what the other repeaters ( e.g. RefreshingView) have to > offer. > > Also searching Nabble I see that someone else had some success, not sure if > this is the same approach: > http://www.nabble.com/treetable-with-table-markup-tf3557655.html#a9974461 > > > Maybe you can override getMarkupId() for your item components > > to return e.g. "myId" + domainObject.getdId()" or something > > such. > > > > (Btw, now that we're on it, all-numeric ids that repeaters > > produce by default are invalid HTML. Maybe I should file a > > Jira issue about that.) > > > > - Timo > > > > -- > > Timo Rantalaiho > > Reaktor Innovations Oyhttp://www.ri.fi/ > > > > > > - > > 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 > > - 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
Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row
On 6/24/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: On Sun, 24 Jun 2007, Peter Thomas wrote: > I haven't used repeaters that much, but would newItem() be the right way to > create a new Item? Anyway, I am now stuck because to ensure that the id of > the DOM element is same as the newly created item, I have to call > getMarkupId() on the item then I get the exception "This component is not > (yet) coupled to a page" Help! Are you sure it's going to be a problem to update the whole Repeater? Because if not, your whole work of dynamic DOM appending might turn out to be premature optimisation. Agreed, I'm now curious to see how far I can get, and I may not actually use a javascript heavy approach in the end. Also I've created a decent size app using only ListView (including a custom datatable with pagination) and am curious to know what the other repeaters (e.g. RefreshingView) have to offer. Also searching Nabble I see that someone else had some success, not sure if this is the same approach: http://www.nabble.com/treetable-with-table-markup-tf3557655.html#a9974461 Maybe you can override getMarkupId() for your item components to return e.g. "myId" + domainObject.getdId()" or something such. (Btw, now that we're on it, all-numeric ids that repeaters produce by default are invalid HTML. Maybe I should file a Jira issue about that.) - Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - 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
Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row
On 6/24/07, Matej Knopp <[EMAIL PROTECTED]> wrote: You can create the DOM element using custom javascript (it's very simple, basic DOM manipulation) invoked from ajaxRequestTarget.prependJavascript(). Be sure that the id attribute of new DOM element is same as new list item id. Then just render the newly created item (target.addComponent) which you create manually during the ajax request. Actually, rather then using ListView for this, I suggest you using RefreshingView, as it's more flexible. -Matej Thanks Matej, I'm trying with RefreshingView as you recommend. I haven't used repeaters that much, but would newItem() be the right way to create a new Item? Anyway, I am now stuck because to ensure that the id of the DOM element is same as the newly created item, I have to call getMarkupId() on the item then I get the exception "This component is not (yet) coupled to a page" Help! On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to create a kind of "expression builder" UI, so I was thinking of > a ListView and there is this "add" button on the page that will add an item > to the List. I am able to do this over Ajax, and I am aware that to refresh > a ListView over Ajax, you have to target a container of the ListView and all > this is working fine. But this means that in the Ajax response, the HTML > for the entire list is retrieved from the server. > > Since the list may get big and the content is complex, is it possible to > only get the last ListItem and do a DOM "append" operation over Ajax? Does > Wicket's built in Ajax support this. Any ideas would be appreciated. > > Thanks, > > Peter. > > - > 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Adding item to ListView over Ajax - refresh only newest row
Hi, I'm trying to create a kind of "expression builder" UI, so I was thinking of a ListView and there is this "add" button on the page that will add an item to the List. I am able to do this over Ajax, and I am aware that to refresh a ListView over Ajax, you have to target a container of the ListView and all this is working fine. But this means that in the Ajax response, the HTML for the entire list is retrieved from the server. Since the list may get big and the content is complex, is it possible to only get the last ListItem and do a DOM "append" operation over Ajax? Does Wicket's built in Ajax support this. Any ideas would be appreciated. Thanks, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Has something changed in markup inheritance?
Sure Eelco, JIRA logged: https://issues.apache.org/jira/browse/WICKET-685 On 6/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Could you describe the problems in a JIRA issue? Thanks. Eelco On 6/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > Ok I think the problem is related to the ReloadingWicketFilter which I was > extending and using. When I remove this, things are fine. > > So my conclusion is that latest ReloadingWicketFilter has problems for pages > using Markup inheritance. > > Thanks, > > Peter. > > > On 6/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I got the latest 1.3.0-SNAPSHOT through Maven yesterday and all my pages > that use markup inheritance stopped working. My login page which does not > use markup inheritance works and then after submitting that ito goes to the > home page, nothing works. > > > > Thing is I tried a very simple quickstart with and > and markup inheritance works fine. So this looks like > something subtle that changed recently. I backed up the wicket part of my > maven repository, and the timestamp of the most recent snapshot for me where > things were working fine is 2007-06-06. > > > > So the only thing I guess I am doing differently from a quickstart is some > bookmarkable urls, custom session factory, custom authorization strategy and > custom i18n StringResourceLoader. Do give me some pointers where I should > debug etc. > > > > The error I get is: > > > > === > > > > > > WicketMessage: Markup of type 'html' for component > 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for > org.apache.wicket.util.resource to get a list of all filenames tried: > > [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0] > > > > Root cause: > > > > org.apache.wicket.WicketRuntimeException: Parameter clazz > must be instance of container > > at > org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244) > > at > org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance (InheritedMarkupMarkupLoader.java:99) > > at > org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup( InheritedMarkupMarkupLoader.java:65) > > at > org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup( DefaultMarkupLoader.java:56) > > at > org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389) > > at > org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges( MarkupCache.java:462) > > at org.apache.wicket.markup.MarkupCache.getMarkup > (MarkupCache.java:282) > > at > org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java :188) > > at > org.apache.wicket.MarkupContainer.getAssociatedMarkupStream( MarkupContainer.java:331) > > at org.apache.wicket.markup.html.WebPage.onBeforeRender > (WebPage.java:363) > > at > org.apache.wicket.Component.beforeRender(Component.java:846) > > at org.apache.wicket.Page.renderPage(Page.java:885) > > > > ==Thanks, > > > > Peter. > > > > > - > 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Has something changed in markup inheritance?
Ok I think the problem is related to the ReloadingWicketFilter which I was extending and using. When I remove this, things are fine. So my conclusion is that latest ReloadingWicketFilter has problems for pages using Markup inheritance. Thanks, Peter. On 6/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote: Hi, I got the latest 1.3.0-SNAPSHOT through Maven yesterday and all my pages that use markup inheritance stopped working. My login page which does not use markup inheritance works and then after submitting that ito goes to the home page, nothing works. Thing is I tried a very simple quickstart with and and markup inheritance works fine. So this looks like something subtle that changed recently. I backed up the wicket part of my maven repository, and the timestamp of the most recent snapshot for me where things were working fine is 2007-06-06. So the only thing I guess I am doing differently from a quickstart is some bookmarkable urls, custom session factory, custom authorization strategy and custom i18n StringResourceLoader. Do give me some pointers where I should debug etc. The error I get is: === WicketMessage: Markup of type 'html' for component ' info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried: [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0] Root cause: org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance (InheritedMarkupMarkupLoader.java:99) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup( InheritedMarkupMarkupLoader.java:65) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup( DefaultMarkupLoader.java:56) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges( MarkupCache.java:462) at org.apache.wicket.markup.MarkupCache.getMarkup (MarkupCache.java:282) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java :188) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream( MarkupContainer.java:331) at org.apache.wicket.markup.html.WebPage.onBeforeRender (WebPage.java:363) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.Page.renderPage(Page.java:885) == Thanks, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Has something changed in markup inheritance?
Hi, I got the latest 1.3.0-SNAPSHOT through Maven yesterday and all my pages that use markup inheritance stopped working. My login page which does not use markup inheritance works and then after submitting that ito goes to the home page, nothing works. Thing is I tried a very simple quickstart with and and markup inheritance works fine. So this looks like something subtle that changed recently. I backed up the wicket part of my maven repository, and the timestamp of the most recent snapshot for me where things were working fine is 2007-06-06. So the only thing I guess I am doing differently from a quickstart is some bookmarkable urls, custom session factory, custom authorization strategy and custom i18n StringResourceLoader. Do give me some pointers where I should debug etc. The error I get is: === WicketMessage: Markup of type 'html' for component ' info.jtrac.wicket.DashboardPage' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried: [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0] Root cause: org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance of container at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance (InheritedMarkupMarkupLoader.java:99) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup( InheritedMarkupMarkupLoader.java:65) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup( DefaultMarkupLoader.java:56) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges( MarkupCache.java:462) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java :188) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream( MarkupContainer.java:331) at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.Page.renderPage(Page.java:885) == Thanks, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how busy a site is wicket known to support?
On 6/20/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: oh yeah, be sure you DO NOT test your wicket app's scalability with wicket in development mode! Ah yes, I figured that out the hard way. Big difference. Just thought I'd mention that if you need a realistic application built on Wicket + Spring + Hibernate to do some load testing, you can consider JTrac [ http://jtrac.info ]. There is a JMeter test in SVN and you can contact me if you need help setting up the application / JMeter test. This should be really easy because by default, the app uses an embedded HSQLDB instance. In my profiling tests, the main bottleneck was Lucene writing to the file system for indexing stuff. Hibernate comes second. Thanks, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] page map size
Scott - what is the trick for getting a report of sizes of page maps like this? I was so far only aware that setting log level DEBUG on say org.apache.wicket.protocol.http.FilePageStore can give you some of this info... Thanks, Peter. On 6/8/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Depends on your page, number of components, deployment mode, wicket version, how you bind the models to your components. Do you use the second level cache for storing your pages for back button support? Martijn On 6/8/07, Scott Swank <[EMAIL PROTECTED]> wrote: > Are these typical sizes for page maps? > > wicket:/app:p:null:267,668 bytes > wicket:/app:p:null:155,861 bytes > wicket:/app:p:null:052,817 bytes > > -- > Scott Swank > reformed mathematician > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket did not make the grade.
I think I will echo Eelco in wishing you all the best with Struts2. Only thing I could summarize from this mail chain is that, maybe Wicket needs that one extra out-of-the-box extension of ListView that you can do say addColumn(String) and will use a Label by default? Otherwise as I said earlier, it is a waste of time trying to reverse pre-conceived notions about which is *THE* UI framework to use. Or if you can point out anything obvious that the docs or examples are missing, I guess that can be looked into as well. Thanks, Peter. On 6/6/07, Florian Hehlen < [EMAIL PROTECTED]> wrote: Hi John, John Krasnay wrote: > Amongst Wicket's many advantages, the following stand out for me: > > - The ability to encapsulate UI components, including all required > markup, CSS, Javascript, and localization files, into shared JARs on > the classpath. Having a shared component library is key to our team, > since we tend to develop many small Web apps. > > - The ability to aggregate smaller components into larger and more > complex ones. This allows us to create much richer pages, since we can > think at an appropriate level of abstraction: I can just throw our > standard page banner component on a page without thinking about the > fact that it contains a logo, the app title, and a list of global > navigation links. (In fact, it's even simpler than that. The banner is > added by the base page that each app page extends.) > > - The fact that the same principles of a component tree and markup > inheritance work from the smallest components right up to the entire > page. This is very different from most Model2 frameworks, where you > need something like SiteMesh or Tiles to add common banners and > navbars to pages, and from JSF, where the internal structure of > components is very different that the way they are composed into > pages. > I agree with you that these are some of the strongest benefits of Wicket. In my experience these facts were seen as a disadvantage... and I am still trying to figure out why? My group is a very strong OOP group yet the fully contained component advantage of Wicket was not appealing. The only reason I can find for these irrational conclusion is that the Model 2 frameworks out there have defined themselves as THE proper web implementation of MVC. Furthermore, our need for web-apps are peripheral to our main business. We typically need to put together many small support web-applications. so, Having a re-usabble set of components which require zero-config would have been a great advantage. florian - 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
Re: [Wicket-user] wicket did not make the grade.
> I am sad to announce that my company did not choose to use wicket after > comparison with struts 2. :-( > > One criticism that came out as we were looking at Wicket code was that > there seems to be a need to write a lot of Java code in a ListView for > such things as displaying a table. Although I did not see this issue as > out-weighing all the benefits, many of my colleagues did. All I'll say is that I'm personally sure this is not about technology - this has to be politics, and these colleagues must have already learnt Struts2 and want to protect their investment or have the misconception that Struts2 == Struts1. Or maybe they were swayed by some presentation that used job search statistics to compare web ui frameworks... Sometimes it is a waste of time to try and convince people. Been there done that. Just move on. Regards, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Gricket: The Love-Child of Grails and Wicket
On 5/18/07, graemer <[EMAIL PROTECTED]> wrote: Haha, sorry but it seems some of the Wicket community are still living in Lala land with regards to believing everything deployed to production has to be written in Java. It is 2007, the realisation that Java is not the best language for web apps has hit home for years now. A good language for writing a lot of your business logic yes, but your business logic and web logic are two different things and if you're mixing them you're already making mistakes right there. Personally for me, Wicket has made using Java for web-applications exciting and fun again. Maybe its a case of "teaching an old dog new tricks" but I get a headache when I look at the sample at your link and see the "closures" for the onSubmit. I guess I'm one of those retarded folks who avoids learning new syntax :P About the wiki page [ http://wicketstuff.org/confluence/display/STUFFWIKI/WicketBuilder ] I have to complain that I think that the try / catch block is there just to make the pure java code look bad in comparison - which is bogus, please remove it. BTW I'm also having great results with the ReloadingWicketFilter - so it is possible to change your view code - refresh and it works. So I don't really miss a scripting language that much. If I'm productive with Java why should I change? Just my 2c. Regards, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Back-button / versioning
Hi, Just trying again - I raised an issue related to back-button / versioning including a quickstart. https://issues.apache.org/jira/browse/WICKET-491 If you can take a look at this - would be greatly appreciated. Thanks, Peter. On 5/6/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: * Eelco Hillenius: > I still understand we need test hours and people > reporting their issues if we ever want to get this > stable, but so far, the test cases are still minimal, Indeed we definitely need unit tests for this custom serialization, with good coverage. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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
Re: [Wicket-user] Way to prevent page versioning for a request in 1.3?
Matej, I'm stuck with a similar problem with Ajax replace and back button which I initially mentioned here: http://www.nabble.com/Ajax-component-replaceWith-and-browser-back-button-problems-tf3479357.html#a9710492 That problem is still there in todays snapshot. Recently I was trying to get to the root of this and created a quickstart. But then I ran into what looks like another related problem which I raised here: https://issues.apache.org/jira/browse/WICKET-491 Please help! Thanks, Peter. On 4/30/07, Matej Knopp <[EMAIL PROTECTED]> wrote: Hi, at actually looks like the bug. What you can try to do is to enable versioning on the link. What's the URL the link generates? Does it contain IUnversionedBehaviorListener? If it does you should have the AbstractDefaultAjaxBehavior.getCallbackScript called with first parameter = true. -Matej On 4/30/07, jamieballing <[EMAIL PROTECTED]> wrote: > > We are currently using the incubating-beta1 release. I was stepping through > the source in a debugger and I'm not sure older versions of the page are > preserved in the cache (at least when update by an ajax request). I did a > simple test: > * I went to a versioned page > * clicked an ajax control which updates that page > * hit my browser back button (which didn't actually go to the server but > reloaded the locally cached page) > * clicked on another ajax control on the page > At this point I got a page expired message. > > This raises a couple questions: > 1) This doesn't sound like the bug you are describing... Is the behavior we > are observing correct behavior? > 2) Do we need to do anything to enable or set the size of the page cache? > 3) Is there a more recent version we should be using than the > incubating-beta1 snapshot? > > Many Thanks, > Jamie > > > Matej Knopp-2 wrote: > > > > This is wrong. Even if page version increments, the ajax links should > > be valid. There was a bug in wicket 1.3 where the wicket still allowed > > you to do unversioned ajax requests, but that's should be gone > > already. Can you please test it with most recent 1.3? > > > > -Matej > > > > On 4/27/07, jamieballing <[EMAIL PROTECTED]> wrote: > >> > >> We are experiencing a problem in our application because we are doing > >> something out of the ordinary. > >> > >> We have an applet on our page which makes a wicket request on behalf of > >> the > >> page. The request is a form submit which causes a file upload, but it > >> doesn't affect the state of the page. When wicket 1.3 processes the > >> request > >> and calls getResponsePage() it identifies the response as an instance of > >> PageRequestTarget which causes the last version in the cache to > >> increment. > >> > >> The applet doesn't do anything with the response from wicket, so the > >> existing wicket urls on the page all still refer to the old page version. > >> Therefore, when you click anything (e.g. ajax links) we get a page > >> expired > >> because the versioning is out of synch. > >> > >> How would you recommend we approach this problem? Is there someway to > >> tell > >> wicket in the request not to increment the last page version or tell it > >> that > >> we are using a different target type than PageRequestTarget? > >> > >> Thanks, > >> Jamie > >> -- > >> View this message in context: > >> http://www.nabble.com/Way-to-prevent-page-versioning-for-a-request-in-1.3--tf3658645.html#a10222425 > >> 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/Way-to-prevent-page-versioning-for-a-request-in-1.3--tf3658645.html#a10248419 > 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/ > __
Re: [Wicket-user] Contributing to wicket-contrib-yui
Eelco / David, I would be interested in helping out with wicket-contrib-yui as well - my sf id is ptrthomas Thanks, Peter. On 4/27/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: * David Leangen: > On Fri, 2007-04-27 at 14:13 +0800, Joshua Lim wrote: > > > I also hope that it could be a wicket package. I don't want to > > be dependent on the hosting. > > What about having the option to do either one? Sure, use by default a local copy, and let the user choose the script to load. That's what we do on WS Dojo. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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
[Wicket-user] problem with browser back-button and links after ajax replace
Hi, I'm having this problem when I back-button to a page with a panel that replaced itself with another panel containing a link - and re-try the link: WicketMessage: Method onLinkClicked of interface org.apache.wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id = link, page = test.HomePage, path = 0:panel: link.FirstPanel$1, isVisible = true, isVersioned = true]] threw an exception Root cause: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke ( NativeMethodAccessorImpl.java:39) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.wicket.RequestListenerInterface.invoke( RequestListenerInterface.java:186) at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents( ListenerInterfaceRequestTarget.java:73) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents( AbstractRequestCycleProcessor.java:90) at org.apache.wicket.RequestCycle.processEventsAndRespond (RequestCycle.java:975) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1048) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1127) at org.apache.wicket.RequestCycle.request(RequestCycle.java :489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) I have a quickstart. I think attachments are not allowed on the mailing list, so I created a JIRA and uploaded an attachment. Do let me know if there is a better way to send a quickstart to the mailing list. I'm using wicket 1.3.0-SNAPSHOT https://issues.apache.org/jira/browse/WICKET-491 Thanks, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Which toolkit to use?
Hi, I had recently tried to decide upon a toolkit to use, and chose Yahoo UI. It is very touch to choose nowadays and I did not do a thorough evaluation but what leaned me towards Yahoo UI is that it appears to have the best documentation. It is modular as well - so the footprint is reasonable. So far my experience has been good. I am already using the calendar (my own instead of using wicket-datetime - Wicket makes rolling your own really easy :), and a non-modal resizable dialog which looks nice. I also plan to use the menu component soon. By the way the wicket-stuff minis project (which is what I think Eelco means by the misc components project) does not allow anonymous browsing, is this intentional? I have submitted a draft of the dialog component in there, you may take a look at that. http://www.wicketstuff.org/jira/browse/WSMINIS Thanks, Peter. On 4/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: How about that misc components project Igor just started? Eelco On 4/23/07, David Leangen <[EMAIL PROTECTED]> wrote: > > Awesome! Thank you for this superbly detailed reply! > > Mind if I pick your brain some more? > > > > For choosing a library it is a matter of taste and priorities. If you > > want an actively maintained wicket project, then dojo should be your > > cup of tea, if you want stability, probably prototype + some other > > library would be a better choice. If you want small footprint, then > > consider adopting mootools. If you want a huge company backing, YUI > > would be a good library, with extjs as a nice extra. > > I think that given the project requirements, a small footprint needs to > be a priority. I'm only going to need a small number of widgets anyway. > > To that end, your suggestion of mootools sounds enticing. However, I > noticed that it does not seem to be supported in wicket-stuff... > > Is it difficult to add support for the widgets I need? > > Is there any doc about how to do this somewhere? (I wasn't able to find > any...) > > Would it be useful to start a new mootols wicket-stuff project? > > > Thanks! > David > > > > > - > 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] extra SNAPSHOT-tests.jar file in lib when using Maven
Hi, Just trying the latest 1.3.0-incubating-SNAPSHOT and I am using wicket-extensions also. I see an additional file called wicket-1.3.0-incubating-SNAPSHOT-tests.jarwhich wasn't there before. What is this? Is this required and / or is there a Maven setting to remove this? When running mvn with the -X option this is the trace which says that this file has scope "runtime" [INFO] snapshot org.apache.wicket:wicket:1.3.0-incubating-SNAPSHOT: checking for updates from wicketstuff.org [DEBUG] repository metadata for: 'snapshot org.apache.wicket:wicket:1.3.0-incubating-SNAPSHOT' could not be found on repository: wicketstuff.org [DEBUG] Skipping disabled repository central [DEBUG] wicket: using locally installed snapshot [DEBUG] Retrieving parent-POM: org.apache.wicket:wicket-jdk14::1.3.0-incubating-SNAPSHOT for project: null:wicket:jar:null from the repository. [DEBUG] wicket-jdk14: using locally installed snapshot [DEBUG] Retrieving parent-POM: org.apache.wicket:wicket-parent::1.3.0-incubating-SNAPSHOT for project: org.apache.wicket:wicket-jdk14:pom:null from the repository. [DEBUG] wicket-parent: using locally installed snapshot [DEBUG] org.apache.wicket:wicket:jar:tests:1.3.0-incubating-SNAPSHOT:runtime(selected for runtime) [DEBUG] commons-logging:commons-logging:jar:1.0.4:runtime (removed - nearer found: 1.1) [DEBUG] log4j:log4j:jar:1.2.13:runtime (removed - nearer found: 1.2.12 ) [DEBUG] commons-collections:commons-collections:jar:3.2:compile(selected for compile) Thanks, Peter. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to get desired DataTable layout
Hi, I tried to create a tabular listing with pagination completely from scratch using only ListView-s and you can look at the code here: http://fisheye3.cenqua.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/ItemListPanel.java?r=946 It's not Ajax, but may help as a reference. The pagination code is lines 75 - 167 HTML code is here: http://fisheye3.cenqua.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/ItemListPanel.html?r=962 Regards, Peter. On 4/20/07, Lec <[EMAIL PROTECTED]> wrote: Thanks for the answer. Hmmm but my last question wasn't clearly quite answered :) Actually I was asking for a sample code of AjaxPagingNavigationLink/ AjaxPagingNavigationIncrementLink with AjaxPagingNavigationBehaviour as I had a difficult time in finding and understanding the correlations between them. My goal is to move away the default << 1 2 ..n >> paging display in AjaxPagingNavigator to a more customized paging display. This explains the reason behind my attempt on the usage of AjaxPagingNavigationLink/ AjaxPagingNavigationIncrementLink with AjaxPagingNavigationBehaviour. But I don't know where to begin and what I'm missing now. A sample skeleton code will greatly help me to understand the correlation here. :) Any helps for me on this? igor.vaynberg wrote: > > On 4/20/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> I didn't repaint it. It's just the WebMarkupContainer component that I >> missed >> putting in my Panel that caused the whole odd behaviour displaying >> problemAnyway it's now working for me after putting the >> WebMarkupContainer in the Panel. Thanks :) What Im confused about is, I >> don't understand why do we need to put in another WebMarkupContainer >> since >> Panel is already considered one? I never knew I have to use another >> WebMarkupContainer in the Panel to achieve the ajaxification of gridview >> in >> the pagination. It's a slight difference way of implementation if you >> compare it to the ajaxification of Pageable ListView in Panel, even >> though >> we can still use the WebMarkupContainer to achieve the same behaviour in >> Pageable ListView. > > > you dont need _another_ webmarkupcontainer, you just cant repaint the > listview itself directly, eg do ajaxtarget.addcomponent(listview). in fact > as of yesterday that will throw an exception. so you need to repaint its > closest ancestor that is not a listview. > > > Having said that, it reminds of another question. The question is, how do > I >> use AjaxPagingNavigationLink and AjaxPagingNavigationIncrementLink in the >> Panel? The reason I want to use these two paging components is to >> customize >> the paging << >> thingy we find in AjaxPagingNavigator. And I believe >> AjaxPagingNavigator comes only with the default << 1 2 3 ... n >> paging >> display right? If im not mistaken, to customize the paging display, I >> have >> to use AjaxPagingNavigation and AjaxPagingNavigationBehavior as well >> right??? I have been trying to use AjaxPagingNavigation + NavigationLink >> + >> NavigationIncrementLink + NavigationBehavior to get this customization >> working, but it seems like everything I have been doing so far is not >> [...] > > > our pagingnavigator and its ajax counterpart are not very well coded to > make > it easy to extend. the only thing i can tell you right now is that if you > want to customize it you have to roll your own for anything but the > simplest > customizations. it was on our todolist to refactor, but we just havent > found > the time. > > -igor > > > > igor.vaynberg wrote: >> > >> > have you tried >> > >> > final WebMarkupContainer gridviewcontainer=new WebMarkupContainer(); >> > gridviewcontainer.setOutputMarkupId(true); >> > gridviewcontainer.add(new gridview(...)); >> > gridviewcontainer.add(new ajaxpagingnavigator(...) { >> > onAjaxEvent(target) { target.add(gridviewcontainer); } >> > } >> > >> > this is a common practice with repeaters, you cannot repaint them >> > directly, >> > but rather have to repaint some container higher above. >> > >> > by default ajaxpagingnavigator repaints the ipageable, when that is a >> > tag (datatable) it works fine, when it isnt you have to do a >> bit >> > more work. >> > >> > -igor >> > >> > >> > >> > >> > On 4/19/07, Lec <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Hie Igor, >> >> Just to provide more info on the"GridView doesn't work in >> >> AjaxPagingNavigator" part in case you don't get what I mean, when I >> said >> >> it's not working in AjaxPagingNavigator, I actually mean, the data >> manage >> >> to >> >> display onto the GridView, but when I try to click onto other page >> >> number, >> >> the displayed data still remain on the same page of the GridView. Any >> >> idea? >> >> >> >> >> >> Lec wrote: >> >> > >> >> > Hie Igor, >> >> > I need to check with you. I noticed GridView only works >> in >> >> > PagingNavigator but not in AjaxPagingNavigator, and to have it >> working >> >> in >> >> > AjaxPaging
Re: [Wicket-user] NTLM Authentication
Hi, Maybe it is a better idea to do this only once as part of an AuthorizationStrategy set up in your Application class? Then after creating a session everything works like normal until logout. Example of a real life AuthorizationStrategy can be found here, in this particular example there is some code that deals with the request directly, e.g. checks for cookies. http://fisheye3.cenqua.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/JtracApplication.java?r=956 I am really interested in NTLM authentication in Wicket, do let me know if you make any progress with this! Thanks, Peter. On 4/19/07, Zenrique Steckelberg <[EMAIL PROTECTED]> wrote: Hi all, I work in a windows mostly environment, thus decided to use NTLM authentication so I wouldn't need to store and check users passwords. On each WebRequest and WebResponse I check if the user is identified or not, and if not I go through NTLM's request/response procedure in order to get user's login from ie browser (and thus windows). What happens is that after changing newWebRequest and newWebResponse methods to get the authentication, my application stops working, and no image or submit button works anymore. If I comment out both newWeb Request/Response methods, everything works fine. I am using Databinder for some of the authorization features and other db stuff, but I think this relates particularly to wicket. Here's the code: public class ConfServApp extends AuthDataApplication { private String auth; private String remoteHost; private String domain; private String username; @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) { WebRequest request = (WebRequest) super.newWebRequest(servletRequest); auth = (String) request.getHttpServletRequest().getHeader( "Authorization"); return request; } @Override protected WebResponse newWebResponse(HttpServletResponse servletResponse) { WebResponse response = (WebResponse) super .newWebResponse(servletResponse); if (username == null) { if (auth == null) { response.setHeader("WWW-Authenticate", "NTLM"); try { response.getHttpServletResponse().sendError( HttpServletResponse.SC_UNAUTHORIZED); } catch (Exception e) { System.out.println(e.getMessage()); e.printStackTrace(); } } else if (auth.startsWith("NTLM ")) { byte[] msg = null; try { msg = new sun.misc.BASE64Decoder().decodeBuffer(auth .substring(5)); } catch (Exception e) { System.out.println(e.getMessage()); e.printStackTrace(); } int off = 0, length, offset; if (msg[8] == 1) { byte z = 0; byte[] msg1 = { (byte) 'N', (byte) 'T', (byte) 'L', (byte) 'M', (byte) 'S', (byte) 'S', (byte) 'P', z, (byte) 2, z, z, z, z, z, z, z, (byte) 40, z, z, z, (byte) 2, (byte) 130, z, z, z, (byte) 2, (byte) 2, (byte) 2, z, z, z, z, z, z, z, z, z, z, z, z }; response.setHeader("WWW-Authenticate", "NTLM " + new sun.misc.BASE64Encoder().encodeBuffer(msg1) .trim()); try { response.getHttpServletResponse().sendError( HttpServletResponse.SC_UNAUTHORIZED); } catch (Exception e) { System.out.println(e.getMessage()); e.printStackTrace(); } } else if (msg[8] == 3) { off = 30; length = msg[off + 17] * 256 + msg[off + 16]; offset = msg[off + 19] * 256 + msg[off + 18]; remoteHost = new String(msg, offset, length); length = msg[off + 1] * 256 + msg[off]; offset = msg[off + 3] * 256 + msg[off + 2]; domain = new String(msg, offset, length); length = msg[off + 9] * 256 + msg[off + 8]; offset = msg[off + 11] * 256 + msg[off + 10]; username = new String(msg, offset, length); System.out.println("Username:" + username); System.out.println("RemoteHost:" + remoteHost); System.out.println("Domain:" + domain); } } } return response; } /** * @return Page to display when no specific page is requested */ @Override public Class getHomePage() { return
[Wicket-user] Unable to add images to Wicket wiki
Hi, I'm in the middle of adding a Wiki page on using JMeter and Wicket here: http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+JMeter+with+Regular+Expressions I wanted to add a couple of screenshots but looks like this is restricted. I can send across the 3 PNG files to someone if required and the page already has the placeholders - so all that needs to be done is upload. Thanks, Peter. - 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] switching back to WicketFilter from ReloadingWicketFilter in production
Thanks. Do you want me to open a JIRA? Meanwhile I'll use Ant to do the needful: Regards, Peter. On 4/14/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote: * Peter Thomas: > Just started trying ReloadingWicketFilter seems to work great so > far :) > > Do I have to manually switch back to the normal WicketFilter in > web.xml when going to production or will the DEPLOYMENT mode > automatically switch off all the classloader black magic? Indeed, that's how I do it and it's not very convenient. We should modify ReloadingWicketFilter#getClassLoader() to return the reloadingClassLoader only when the application is in development mode, otherwise return super.getClassLoader(). Cheers, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] switching back to WicketFilter from ReloadingWicketFilter in production
Hi, Just started trying ReloadingWicketFilter seems to work great so far :) Do I have to manually switch back to the normal WicketFilter in web.xml when going to production or will the DEPLOYMENT mode automatically switch off all the classloader black magic? Thanks, Peter. - 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Spring integration and which wicket version
Hi, You can also consider a quick and dirty approach to getting hold of a spring managed bean like this in the init() method of your wicket application, but you do have to import a couple of Spring classes. @Override public void init() { super.init(); ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); myService = (MyService) applicationContext.getBean("myService"); } Then the rest is as per the "Application Object Approach" in the wicket spring-integration wiki but without the dependency on wicket-spring and the extra stuff in web.xml Should be easy to switch between this and the wicket recommended approach - so this may be useful to get you started if you get stuck etc. Thanks, Peter. On 4/13/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: The 1.2.5 maven jars have been misplaced in some way. This will be fixed with 1.2.6, but repository policies don't have much room for replacing existing jars. Can't do much about that. Wicket Spring 1.2.4 should work, as I haven't heard complaints with those dependencies, and have been recommending them for a while. One other option would be to use the distributions that are available from sourceforge, and install/copy them locally into the repo. AFAIK these are golden, even for 1.2.5. Martijn On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Yes, but I got the same problem with > >wicket-spring >1.2.4 > >wicket-spring-annot >1.2.4 > > besides, one wouldn't expect something to be in 1.2.4 but not in 1.2.5. > > > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Martijn Dashorst > Sent: Fri 4/13/2007 9:12 AM > To: [EMAIL PROTECTED] > Subject: Re: [Wicket-user] Spring integration and which wicket version > > So you're still using wicket-spring-1.2.5 :) > > > > > wicket > > wicket > > 1.2.5 > > compile > > > > > > wicket > > wicket-spring > > 1.2.5 > > compile > > > > > > wicket > > wicket-spring-annot > > 1.2.5 > > compile > > > > > Martijn > > On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks for the quick reply, but wicket-spring 1.2.4 doesn't seem to have wicket.spring.injection either. > > > > Currently I have: > > > > > > wicket > > wicket > > 1.2.5 > > compile > > > > > > wicket > > wicket-spring > > 1.2.5 > > compile > > > > > > wicket > > wicket-spring-annot > > 1.2.5 > > compile > > > > > > and get: > > > > package wicket.spring.injection does not exist > > > > > > Regards, > > Derek > > > > > > -Original Message- > > From: [EMAIL PROTECTED] on behalf of Martijn Dashorst > > Sent: Fri 4/13/2007 8:41 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [Wicket-user] Spring integration and which wicket version > > > > Use wicket-spring 1.2.4 It is compatible with wicket 1.2.5. > > > > Martijn > > > > > > On 4/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > Setting out with Wicket for the first time and looking for some advice on which version to use. > > > > > > Have started out with the latest release (1.2.5) but that doesn't seem to include the > > > wicket.spring.injection package needed for the annotation based approach to Spring integration > > > described here: > > > > > > http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach > > > > > > Doubt I'll be at production stage for a couple of months yet so I don't mind using a development > > > version but as I'm new to Wicket I'd probably be better off with something reasonably stable and > > > in line with the existing docs. > > > > > > Get the impression there are 1.3 and 2.0 development strands in progress. Should I use one of these > > > or should I stick with 1.2.5 and use an alternative approach to integrating Spring? > > > > > > Or can I just use a later version of wicket-spring and stick with 1.2.5 for the rest? > > > > > > Appreciate any advice. > > > > > > Regards, > > > Derek > > > > > > * Email confidentiality notice * > > > This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. > > > > > > The London School of Economics and Political Science (the School) is a company limited by guarantee, registered in England and Wales, under registered number 00070527, and having its registered office at 10th Floor, Tower One, Houghton Street, London WC2A 2AE. > > > > > > The inclusion of this information does not of itself make this email a business document of the School and, to the maximum extent permitted by law, the School accepts no liability for the content and opinions in any non-business emails. > > > > > > --
Re: [Wicket-user] treetable with table markup
You can quickly try this: enclose your TRs in a TBODY tag. I've run into this IE nonsense before and this helped. On 4/13/07, Andrew Klochkov <[EMAIL PROTECTED]> wrote: Matej Knopp wrote: > Second question, I assume you want to show inserted rows without > refreshing the entire listview? Well, this is possible to certain > degree, but requres some javacsript foo. You need to create the DOM > element with appropriate id (in javascript) before adding the newly > created ListItem to ajaxrequesttarget. TreeTable does it, however, not > with ListView. It uses different kind of repeater. > > -Matej > I implemented AjaxListView which can insert/remove rows via AJAX. When I need to insert rows in the list, I get existing list view element and add it to AjaxResponseTarget, then in the onRender method of this element I render not only the existing element itself but also all new elements. This works fine with table markup anywhere but IE. In IE only the existing element is being updated, but new rows are not inserted. I found out where the problem is - it's in wicket-ajax.js function Wicket.replaceOuterHtml: ' + text + ' // this is a hack to get around the fact that internet explorer doesn't allow the // outerHtml attribute on table elements var tempDiv = document.createElement("div"); tempDiv.innerHTML = ''; element.parentNode.replaceChild(tempDiv.getElementsByTagName(tn).item(0), element); As I see it updates the first TR only and ignores the others :-( Please help to fix/workaround this, I really need it to be done ASAP. -- Andrew Klochkov - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page
created JIRA https://issues.apache.org/jira/browse/WICKET-456 And when I use HeaderContributor (instead of wicket:head in the markup) it works fine as expected. Thanks, Peter. On 4/9/07, Matej Knopp <[EMAIL PROTECTED]> wrote: We already do parse content of , but only to filter hader contribution contributed by ajax (in javascript). -Matej On 4/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > we are talking about two different panel classes contributing the same > , that means we need to break the head down into individual tags and > process them that way. > > this isnt the case where we filter contributions from two instances of the > same panel class. > > -igor > > > > On 4/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > it shouldn't be to hard i guess to send that blob through the header > > > contributor? > > > Because then it will be filtered because the head part is always the > same > > > for a static script > > > > I would have sworn we already did that. Calls for a JIRA issue. > > > > Eelco > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page
Thanks Igor I'll use IHeaderContributor for now. On 4/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: use IHeaderContributor, contributions through that are filtered. i dont think we currently parse what exactly is in wicket:head, we just blob it in. it might be nice to parse it, i dont know, but it is a lot of work. you can add an rfe if you want, but it will not get a high priority imho -igor On 4/9/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to use some Yahoo UI widgets and currently things work fine > when the required javascript files are contributed using > > But when I have two different panels appearing within the same page - > and both contributing the same common *.js files, - the page HTML has > duplicate
[Wicket-user] Duplicate wicket:head contributed entries with multiple panels on a page
Hi, I'm trying to use some Yahoo UI widgets and currently things work fine when the required javascript files are contributed using But when I have two different panels appearing within the same page - and both contributing the same common *.js files, - the page HTML has duplicate
Re: [Wicket-user] Problem setting selected value in DropDownChoice
Instead of pre-loading in the input field, try pre-loading the property in your form backing object (model) - so call setArrivalDate() or just ensure that PaymentInfoInput.arrivalDate is not null On 4/7/07, V. Jenks <[EMAIL PROTECTED]> wrote: I feel like I've asked this question before...but here I am again. I'm simply trying to set a selected value for a DropDownChoice when a page is loaded. I've tried pre-loading it into the input class, setting it in getDefaultChoice, and also by trying to pass a model into the control w/ the value in the getObject method. I'm sure it's a simple thing but the DropDownChoice is tricky at times...for me anyhow. Here's my control: //get calendar days (buffer by 2 days & go 1 month ahead) List days = DateTime.getDaysListForward(2, 1, true); //create dropdown w/ days List DropDownChoice arrivalChoices = new DropDownChoice("arrivalDate", days) { protected String getDefaultChoice(final Object selected) { return ""; //get rid of "Choose One" default } }; //override key/value in dropdown arrivalChoices.setChoiceRenderer(new IChoiceRenderer() { public String getIdValue(Object object, int index) { return object.toString(); } public String getDisplayValue(Object object) { //format differently for display, i.e. "Thu, Mar 2" return DateTime.getCartDateFormatString(object.toString()); } }); It simply loads a list of strings that are converted dates, they look like "Fri, Mar 6", "Sat, Mar 7", etc. The form input class looks like this: public class PaymentInfoInput implements Serializable { private int expiryMonth; private int expiryYear; private String number; private String securityCode; private String giftMessage; private String arrivalDate; . } I tried pre-loading the arrivalDate into the input before passing it into the form like so: PaymentInfoInput input = new PaymentInfoInput(); input.setArrivalDate( DateTime.getCartDateFormatString ( order.getEstArrivalDate().toString())); add(new PaymentInfoForm("paymentInfoForm", input)); ... ...but it doesn't seem to work. How can I make this item selected in the dropdown list when the page loads? -- View this message in context: http://www.nabble.com/Problem-setting-selected-value-in-DropDownChoice-tf3538227.html#a9876678 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
Ok, once I manage to get something on the wiki (hopefully soon), I'll notify the mailing list. Meanwhile Nino - if you can send me separately a couple of different samples of HTML of the page you are trying to test, I can have a look to see if I have a solution using JMeter. Thanks, Peter. On 4/3/07, Nino Wael <[EMAIL PROTECTED]> wrote: We also can test without trouble, as long as the underlying data does not change. I guess this depends on how the application are built. But if you have something to add, we have created an entry on the wiki please feel free to add stuff to it. http://cwiki.apache.org/WICKET/wicket-and-jmeter.html regards Nino Fra: [EMAIL PROTECTED] på vegne af Peter Thomas Sendt: ti 03-04-2007 10:43 Til: wicket-user@lists.sourceforge.net Emne: Re: [Wicket-user] Radio.getValue? Hi Nino, Sorry I was not following this thread from the start - but recently I had some success using JMeter for testing a wicket application by using the regular expression support built into JMeter. My test script actually can use the "wicket:id" values and so far I'm getting good results. Let me know if you need more details. Thanks, Peter. On 4/3/07, Nino Wael <[EMAIL PROTECTED] > wrote: I am using Jmeter, but the whole trouble originates by that data are changeing. And in production it would not make sense for it to remain stable, but some of it are stable and this is what we are wanting to test. Currently we have agreed that we only run one test (orginal we had 15 individual tests) which needs to be recreated / or manipulated with the correct radio id's. Im wondering since no one else seems to have these problems, they have either not used the radio / check components or does not performance test this way? Is this an uncommon way to performance test over time? regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Radio.getValue?
Hi Nino, Sorry I was not following this thread from the start - but recently I had some success using JMeter for testing a wicket application by using the regular expression support built into JMeter. My test script actually can use the "wicket:id" values and so far I'm getting good results. Let me know if you need more details. Thanks, Peter. On 4/3/07, Nino Wael <[EMAIL PROTECTED]> wrote: I am using Jmeter, but the whole trouble originates by that data are changeing. And in production it would not make sense for it to remain stable, but some of it are stable and this is what we are wanting to test. Currently we have agreed that we only run one test (orginal we had 15 individual tests) which needs to be recreated / or manipulated with the correct radio id's. Im wondering since no one else seems to have these problems, they have either not used the radio / check components or does not performance test this way? Is this an uncommon way to performance test over time? regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Input focus
You may already know the quick un-generic way to do this - but for example this is what I have on a login page where I set focus to the password field in case the user-id field is already filled in. getBodyContainer().addOnLoadModifier(new AbstractReadOnlyModel() { public Object getObject() { String markupId; if(loginName.getConvertedInput() == null) { markupId = loginName.getMarkupId(); } else { markupId = password.getMarkupId(); } return "document.getElementById('" + markupId + "').focus()"; } }, password); On 4/3/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: you can set some metadata into these components. have your page/form subclass implement iheaderresponse, traverse the hierararchy in renderhead and set focus to the first component with the right metadata through the header response that is passed in. sounds like a mouthful, but should be pretty simple to implement. -igor On 4/2/07, John Krasnay < [EMAIL PROTECTED]> wrote: > > Hi folks, > > I'm new to Wicket and I'm wondering if there's a "Wicket way" to have > input focus set to the first form component on the page. I could always > code up some > Javascript to do this but it would be nice if I could flag certain form > components as "wanting focus", then have the page set the focus to the > first of these. Ideally, if any form components had failed validation, > the > page would ignore the "wanting focus" flag and give focus to the first > invalid field. > > Any ideas? > > jk > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pulldown menu and small pop-up dialogs - any suggestions
Hi, Do any of the wicket subprojects provide a pulldown menu component? I'm also interested in creating small HTML pop-up dialogs similar to stuff that appears at http://www.macridesweb.com/oltest/ - that appear lightweight and feel more like tool-tips. I'm interested in hearing what other wicket-users are using and what you recommend. Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax component replaceWith and browser back-button problems
And the Ajax replace / browser back-button problem is still there even in 1.3.0 [29-Mar]. Do you need me to open a JIRA? I'll revert to 1.3 for now. Thanks, Peter. On 3/29/07, Peter Thomas <[EMAIL PROTECTED]> wrote: Pretty sure. I'm using Maven2 and the JAR name is wicket-1.3.0-incubating-SNAPSHOT.jar On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > is something from 2.0, are you sure you have the right jars? > > -igor > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > > > Thanks Eelco & Igor I got the api and src and made the changes for > > AbstractValidator - will also try to add some stuff to the wiki page as soon > > as I finish refactoring. > > > > But I have a big problem with the usage of wicket:message attribute > > (tag works fine). This is the error: > > > > wicket.markup.MarkupException: Unable to find component with id > > '-message_attr' in [MarkupContainer [...]] > > > > This is the offending markup: > wicket:message="value= login.submit"/> > > > > Any idea how to proceed? Looks like something related to > > wicket:message attribute i18n broke. > > > > Thanks, > > > > Peter. > > > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > we only have an unofficial release for it that is a zip. search the > > > list for it, it is in martijn's dir somewhere. > > > > > > other then that all the jars/src/and javadocs are available from > > > that wicketstuff.org maven repo. > > > > > > all the new classes in wicket.validator package have pretty good > > > javadocs so that might be a place to start > > > > > > -igor > > > > > > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > > > > > > > Ok, my bad - the documentation does mention the package change to > > > > wicket.validation.validator.AbstractValidator > > > > > > > > But the API looks a lot different, can you quickly point me to the > > > > online Javadoc corresponding to 1.3.0-incubating-SNAPSHOT - also > > > > if it is downloadable as a zip or something. > > > > > > > > Thanks, > > > > > > > > Peter. > > > > > > > > On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > > > > > > > hmm, it is briefly mentioned under > > > > > Validation Changes i dont remember if we still have abstract > > > > > validator or not, see the source of other alidators and if they extend > > > > > something. > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Igor, > > > > > > > > > > > > I now see that there is a 1.3.0-incubating-SNAPSHOT (as > > > > > > opposed to 1.3-incubating-SNAPSHOT which I was using earlier). > > > > > > > > > > > > I assume this is the latest version and just switched. But > > > > > > Looks like > > > > > > wicket.markup.html.form.validation.AbstractValidator has > > > > > > disappeared. I don't see a mention of this at http://cwiki.apache.org/WICKET/migrate-13.html > > > > > > can you help? > > > > > > > > > > > > Other API changes I noted: > > > > > > - getObject(Component) in AbstractReadOnlyModel became > > > > > > getObject() > > > > > > - FeedBackMessage.getMessage() returns Object not String > > > > > > - IStringResourceLoader added one method signature > > > > > > loadStringResource(Component, String) > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Peter. > > > > > > > > > > > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > peter can you try updating to the lastest snapshot and > > > > > > > trying again? > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > >
Re: [Wicket-user] Ajax component replaceWith and browser back-button problems
Pretty sure. I'm using Maven2 and the JAR name is wicket-1.3.0-incubating-SNAPSHOT.jar On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: is something from 2.0, are you sure you have the right jars? -igor On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > Thanks Eelco & Igor I got the api and src and made the changes for > AbstractValidator - will also try to add some stuff to the wiki page as soon > as I finish refactoring. > > But I have a big problem with the usage of wicket:message attribute (tag > works fine). This is the error: > > wicket.markup.MarkupException: Unable to find component with id > '-message_attr' in [MarkupContainer [...]] > > This is the offending markup: wicket:message="value= login.submit"/> > > Any idea how to proceed? Looks like something related to wicket:message > attribute i18n broke. > > Thanks, > > Peter. > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > we only have an unofficial release for it that is a zip. search the > > list for it, it is in martijn's dir somewhere. > > > > other then that all the jars/src/and javadocs are available from that > > wicketstuff.org maven repo. > > > > all the new classes in wicket.validator package have pretty good > > javadocs so that might be a place to start > > > > -igor > > > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > > > > > Ok, my bad - the documentation does mention the package change to > > > wicket.validation.validator.AbstractValidator > > > > > > But the API looks a lot different, can you quickly point me to the > > > online Javadoc corresponding to 1.3.0-incubating-SNAPSHOT - also if > > > it is downloadable as a zip or something. > > > > > > Thanks, > > > > > > Peter. > > > > > > On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > > > > > hmm, it is briefly mentioned under > > > > Validation Changes i dont remember if we still have abstract > > > > validator or not, see the source of other alidators and if they extend > > > > something. > > > > > > > > -igor > > > > > > > > > > > > > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Igor, > > > > > > > > > > I now see that there is a 1.3.0-incubating-SNAPSHOT (as opposed > > > > > to 1.3-incubating-SNAPSHOT which I was using earlier). > > > > > > > > > > I assume this is the latest version and just switched. But > > > > > Looks like wicket.markup.html.form.validation.AbstractValidatorhas disappeared. I don't see a mention of this at http://cwiki.apache.org/WICKET/migrate-13.html > > > > > can you help? > > > > > > > > > > Other API changes I noted: > > > > > - getObject(Component) in AbstractReadOnlyModel became > > > > > getObject() > > > > > - FeedBackMessage.getMessage() returns Object not String > > > > > - IStringResourceLoader added one method signature > > > > > loadStringResource(Component, String) > > > > > > > > > > Thanks, > > > > > > > > > > Peter. > > > > > > > > > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > peter can you try updating to the lastest snapshot and trying > > > > > > again? > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > Matej - I am using wicket-1.3-incubating-SNAPSHOT.jar dated > > > > > > > 2007-03-12 > > > > > > > > > > > > > > Let me know if you need any more details. On the Page in > > > > > > > question I had tried setVersioned with both true and false, same result. > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > Peter. > > > > > > > > > > > > > > On 3/28/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > Peter, are you using
Re: [Wicket-user] Ajax component replaceWith and browser back-button problems
Thanks Eelco & Igor I got the api and src and made the changes for AbstractValidator - will also try to add some stuff to the wiki page as soon as I finish refactoring. But I have a big problem with the usage of wicket:message attribute (tag works fine). This is the error: wicket.markup.MarkupException: Unable to find component with id '-message_attr' in [MarkupContainer [...]] This is the offending markup: Any idea how to proceed? Looks like something related to wicket:message attribute i18n broke. Thanks, Peter. On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: we only have an unofficial release for it that is a zip. search the list for it, it is in martijn's dir somewhere. other then that all the jars/src/and javadocs are available from that wicketstuff.org maven repo. all the new classes in wicket.validator package have pretty good javadocs so that might be a place to start -igor On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > Ok, my bad - the documentation does mention the package change to > wicket.validation.validator.AbstractValidator > > But the API looks a lot different, can you quickly point me to the > online Javadoc corresponding to 1.3.0-incubating-SNAPSHOT - also if it > is downloadable as a zip or something. > > Thanks, > > Peter. > > On 3/29/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > hmm, it is briefly mentioned under > > Validation Changes i dont remember if we still have abstract validator > > or not, see the source of other alidators and if they extend something. > > > > -igor > > > > > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > > > > > Igor, > > > > > > I now see that there is a 1.3.0-incubating-SNAPSHOT (as opposed to > > > 1.3-incubating-SNAPSHOT which I was using earlier). > > > > > > I assume this is the latest version and just switched. But Looks > > > like wicket.markup.html.form.validation.AbstractValidator has > > > disappeared. I don't see a mention of this at http://cwiki.apache.org/WICKET/migrate-13.html > > > can you help? > > > > > > Other API changes I noted: > > > - getObject(Component) in AbstractReadOnlyModel became getObject() > > > - FeedBackMessage.getMessage() returns Object not String > > > - IStringResourceLoader added one method signature > > > loadStringResource(Component, String) > > > > > > Thanks, > > > > > > Peter. > > > > > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > > > > > peter can you try updating to the lastest snapshot and trying > > > > again? > > > > > > > > -igor > > > > > > > > > > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > > > > > > > > > Matej - I am using wicket-1.3-incubating-SNAPSHOT.jar dated > > > > > 2007-03-12 > > > > > > > > > > Let me know if you need any more details. On the Page in > > > > > question I had tried setVersioned with both true and false, same result. > > > > > > > > > > Thanks, > > > > > > > > > > Peter. > > > > > > > > > > On 3/28/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Peter, are you using 1.x? this can be caused by ajax requests > > > > > > being > > > > > > non-versioned in 1.2. In 1.x, the changes should be merged to > > > > > > latest > > > > > > version. > > > > > > > > > > > > On 3/28/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > > > > matej didnt you fix this in 1.x svn? > > > > > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > I have a panel A that is replaced by another panel B over > > > > > > Ajax using > > > > > > > Component.replaceWith (). Panel B contains a few Links. > > > > > > > > > > > > > > > > Say I navigate to this Page and trigger the event that > > > > > > causes panel B to > >
Re: [Wicket-user] Ajax component replaceWith and browser back-button problems
Ok, my bad - the documentation does mention the package change to wicket.validation.validator.AbstractValidator But the API looks a lot different, can you quickly point me to the online Javadoc corresponding to 1.3.0-incubating-SNAPSHOT - also if it is downloadable as a zip or something. Thanks, Peter. On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: hmm, it is briefly mentioned under Validation Changesi dont remember if we still have abstract validator or not, see the source of other alidators and if they extend something. -igor On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > Igor, > > I now see that there is a 1.3.0-incubating-SNAPSHOT (as opposed to > 1.3-incubating-SNAPSHOT which I was using earlier). > > I assume this is the latest version and just switched. But Looks like > wicket.markup.html.form.validation.AbstractValidator has disappeared. I > don't see a mention of this at http://cwiki.apache.org/WICKET/migrate-13.html > can you help? > > Other API changes I noted: > - getObject(Component) in AbstractReadOnlyModel became getObject() > - FeedBackMessage.getMessage() returns Object not String > - IStringResourceLoader added one method signature > loadStringResource(Component, String) > > Thanks, > > Peter. > > On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > peter can you try updating to the lastest snapshot and trying again? > > > > -igor > > > > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > > > > > Matej - I am using wicket-1.3-incubating-SNAPSHOT.jar dated > > > 2007-03-12 > > > > > > Let me know if you need any more details. On the Page in question I > > > had tried setVersioned with both true and false, same result. > > > > > > Thanks, > > > > > > Peter. > > > > > > On 3/28/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > > > > > Peter, are you using 1.x? this can be caused by ajax requests > > > > being > > > > non-versioned in 1.2. In 1.x, the changes should be merged to > > > > latest > > > > version. > > > > > > > > On 3/28/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > > matej didnt you fix this in 1.x svn? > > > > > > > > > > -igor > > > > > > > > > > > > > > > > > > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED] > wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > I have a panel A that is replaced by another panel B over Ajax > > > > using > > > > > Component.replaceWith (). Panel B contains a few Links. > > > > > > > > > > > > Say I navigate to this Page and trigger the event that causes > > > > panel B to > > > > > replace Panel A. Then I click one of the Link(s) within Panel B > > > > that brings > > > > > up another page. > > > > > > > > > > > > Now when I use the browser back button I see the first Page > > > > where B is > > > > > visible as expected. But now when I click on another Link > > > > within B - it > > > > > causes a Wicket runtime exception: component [...] not found on > > > > page [...] > > > > > > > > > > > > Everywhere else across the app, browser back-button works > > > > beautifully. Is > > > > > this problem to be expected if you have links within an area on > > > > a page > > > > > refreshed using Ajax and then you use the browser back button to > > > > try other > > > > > links in that area? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Peter. > > > > > > > > > > > > > > > > > > > > > - > > > > > > Take Surveys. Earn Cash. Influence the Future of IT > > > > > > Join SourceForge.net's Techsay panel and you'll get the chance > > > > to share > > > > > your > > > > > > opinions on IT & business topics through brief surveys-and > > > > earn cash > > > > > > > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > &
Re: [Wicket-user] Ajax component replaceWith and browser back-button problems
Igor, I now see that there is a 1.3.0-incubating-SNAPSHOT (as opposed to 1.3-incubating-SNAPSHOT which I was using earlier). I assume this is the latest version and just switched. But Looks like wicket.markup.html.form.validation.AbstractValidator has disappeared. I don't see a mention of this at http://cwiki.apache.org/WICKET/migrate-13.html can you help? Other API changes I noted: - getObject(Component) in AbstractReadOnlyModel became getObject() - FeedBackMessage.getMessage() returns Object not String - IStringResourceLoader added one method signature loadStringResource(Component, String) Thanks, Peter. On 3/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: peter can you try updating to the lastest snapshot and trying again? -igor On 3/28/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > Matej - I am using wicket-1.3-incubating-SNAPSHOT.jar dated 2007-03-12 > > Let me know if you need any more details. On the Page in question I had > tried setVersioned with both true and false, same result. > > Thanks, > > Peter. > > On 3/28/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > Peter, are you using 1.x? this can be caused by ajax requests being > > non-versioned in 1.2. In 1.x, the changes should be merged to latest > > version. > > > > On 3/28/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > matej didnt you fix this in 1.x svn? > > > > > > -igor > > > > > > > > > > > > On 3/28/07, Peter Thomas < [EMAIL PROTECTED] > wrote: > > > > > > > > Hi, > > > > > > > > I have a panel A that is replaced by another panel B over Ajax > > using > > > Component.replaceWith (). Panel B contains a few Links. > > > > > > > > Say I navigate to this Page and trigger the event that causes > > panel B to > > > replace Panel A. Then I click one of the Link(s) within Panel B > > that brings > > > up another page. > > > > > > > > Now when I use the browser back button I see the first Page where > > B is > > > visible as expected. But now when I click on another Link within B > > - it > > > causes a Wicket runtime exception: component [...] not found on page > > [...] > > > > > > > > Everywhere else across the app, browser back-button works > > beautifully. Is > > > this problem to be expected if you have links within an area on a > > page > > > refreshed using Ajax and then you use the browser back button to try > > other > > > links in that area? > > > > > > > > Thanks, > > > > > > > > Peter. > > > > > > > > > > > > > - > > > > Take Surveys. Earn Cash. Influence the Future of IT > > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share > > > your > > > > opinions on IT & business topics through brief surveys-and earn > > cash > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > - > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys-and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___
Re: [Wicket-user] Ajax component replaceWith and browser back-button problems
Matej - I am using wicket-1.3-incubating-SNAPSHOT.jar dated 2007-03-12 Let me know if you need any more details. On the Page in question I had tried setVersioned with both true and false, same result. Thanks, Peter. On 3/28/07, Matej Knopp <[EMAIL PROTECTED]> wrote: Peter, are you using 1.x? this can be caused by ajax requests being non-versioned in 1.2. In 1.x, the changes should be merged to latest version. On 3/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > matej didnt you fix this in 1.x svn? > > -igor > > > > On 3/28/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I have a panel A that is replaced by another panel B over Ajax using > Component.replaceWith (). Panel B contains a few Links. > > > > Say I navigate to this Page and trigger the event that causes panel B to > replace Panel A. Then I click one of the Link(s) within Panel B that brings > up another page. > > > > Now when I use the browser back button I see the first Page where B is > visible as expected. But now when I click on another Link within B - it > causes a Wicket runtime exception: component [...] not found on page [...] > > > > Everywhere else across the app, browser back-button works beautifully. Is > this problem to be expected if you have links within an area on a page > refreshed using Ajax and then you use the browser back button to try other > links in that area? > > > > Thanks, > > > > Peter. > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax component replaceWith and browser back-button problems
Hi, I have a panel A that is replaced by another panel B over Ajax using Component.replaceWith(). Panel B contains a few Links. Say I navigate to this Page and trigger the event that causes panel B to replace Panel A. Then I click one of the Link(s) within Panel B that brings up another page. Now when I use the browser back button I see the first Page where B is visible as expected. But now when I click on another Link within B - it causes a Wicket runtime exception: component [...] not found on page [...] Everywhere else across the app, browser back-button works beautifully. Is this problem to be expected if you have links within an area on a page refreshed using Ajax and then you use the browser back button to try other links in that area? Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and Error messages
Regarding filtering of messages, I had asked this earlier which Igor answered. http://www.nabble.com/-Wicket-user--Removing-messages-from-FeedBackPanel-tf3058081.html#a8502575 So I created a filter like this: public class MyFeedbackMessageFilter implements IFeedbackMessageFilter { private Set previous = new HashSet(); public void reset() { previous.clear(); } public boolean accept(FeedbackMessage fm) { if(!previous.contains(fm.getMessage())) { previous.add(fm.getMessage()); return true; } return false; } } Add this to the FeedbackPanel using setfilter() You have to "reset" this everytime the form bind-validation cycle happens else else previous errors will persist, so I override validate() on the Form to do this: @Override protected void validate() { filter.reset(); super.validate(); } Hope this helps. - Peter. On 3/22/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: On 3/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The other question is how do we make the error messages dynamic.. For > example I have 2 address components on the page and both of the components > have address 1 and address 2 fields. Still one address shows the address of > the person, while the other address shows the address of the person's > child. When I have the error message I would have liked to see something > like "Member address 1 us missing", not just "address 1 is missing". In > other words my messages need to be parameterized based not only on the > field name, but also on some property that is stored in Model for the panel > that holds other elements. Use field.setLabel() to set your dynamic text. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net 's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] URL when navigating away from a bookmarkable URL
Johan - the bookmarkable link in this case is within an email sent to the user. It is not a big deal though and everything works fine. One way to get things the way I want is to have all other links with that page stateless and mounted. Since I do have non-stateless links, I was wondering if there is any other way. - peter On 2/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: What do you mean? You click on a link and you don't want to update the url thats in the browser? Use ajax. Or use pages with versioning disabled johan On 2/25/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > Done: https://issues.apache.org/jira/browse/WICKET-326 > > About my other question about the URL remaining in place when navigating > to other pages, do you have any suggestions? Everything works fine and it > is just a minor irritance, but can't help wondering if I am missing some > subtle best practice about usage of relative paths... > > On 2/25/07, Eelco Hillenius < [EMAIL PROTECTED]> wrote: > > > > Would you care opening a JIRA issue for that Peter? Thanks. > > > > Eelco > > > > > > On 2/25/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > yeah maybe we should because that those 2 really should be the same > > thing > > > if not then it doesn't work, so it invites bugs.. > > > > > > johan > > > > > > > > > > > > On 2/25/07, Eelco Hillenius < [EMAIL PROTECTED] > wrote: > > > > > > > > > mount("/item", new > > > IndexedParamUrlCodingStrategy("/item", > > > > > ItemViewPage.class)); > > > > > > > > > > 1) From looking at the above, the mount path appears to be > > redundant. > > > Is > > > > > there any particular reason > > > > > > > > Nope, just the way it grew. We fixed that for for Wicket 2.0, but > > > > didn't backport it. Maybe if there is enough interest, we could. > > > > > > > > Eelco > > > > > > > > > > > > > - > > > > Take Surveys. Earn Cash. Influence the Future of IT > > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share > > > your > > > > opinions on IT & business topics through brief surveys-and earn > > cash > > > > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > - > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > > opinions on IT & business topics through brief surveys-and earn cash > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-us
Re: [Wicket-user] URL when navigating away from a bookmarkable URL
Done: https://issues.apache.org/jira/browse/WICKET-326 About my other question about the URL remaining in place when navigating to other pages, do you have any suggestions? Everything works fine and it is just a minor irritance, but can't help wondering if I am missing some subtle best practice about usage of relative paths... On 2/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Would you care opening a JIRA issue for that Peter? Thanks. Eelco On 2/25/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > yeah maybe we should because that those 2 really should be the same thing > if not then it doesn't work, so it invites bugs.. > > johan > > > > On 2/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > mount("/item", new > IndexedParamUrlCodingStrategy("/item", > > > ItemViewPage.class)); > > > > > > 1) From looking at the above, the mount path appears to be redundant. > Is > > > there any particular reason > > > > Nope, just the way it grew. We fixed that for for Wicket 2.0, but > > didn't backport it. Maybe if there is enough interest, we could. > > > > Eelco > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] URL when navigating away from a bookmarkable URL
Hi, I think the IndexedParamUrlCodingStrategy in Wicket and the way you use it is really nicely done. I have set up one as follows: mount("/item", new IndexedParamUrlCodingStrategy("/item", ItemViewPage.class )); 1) From looking at the above, the mount path appears to be redundant. Is there any particular reason, and I would really like to understand the Wicket API and design better. 2) The bookmarkable link is working fine e.g. /mycontext/app/item/FOO123 But now, when a user navigates away to some "normal" Wicket pages, the URL persists in the browser address bar and looks like this for e.g.: /mycontext/app/item/FOO123?wicket:interface=:11::: Is there any way to switch back to the normal /mycontext/app/?wicket:interface=:11::: Thanks, Peter - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] setPersistent on Form in 1.3 not there anymore?
On 2/23/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: On 2/23/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to get "remember me" functionality on a login form working. > The Form#setPersistent() method is see in the wicket-examples Signin2 does > not seem to be available in Wicket 1.3 > > How do I do this, also is there any documentation on implementing > "remember me"? There's an example here: http://wicketstuff.org/wicket13/signin2 I haven't seen how it works yet, but I thought it might help :-) Xavier There seems to be a problem with at least that particular 1.3 example - only the *.html files show up in the source code browser / popup. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] setPersistent on Form in 1.3 not there anymore?
Hi, I'm trying to get "remember me" functionality on a login form working. The Form#setPersistent() method is see in the wicket-examples Signin2 does not seem to be available in Wicket 1.3 How do I do this, also is there any documentation on implementing "remember me"? And how do I delete the cookies created, if any? Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to do simple authentication with Wicket
Oops just discovered getSecuritySettings() from SignInApplication.java. Guess I didn't look hard enough. If anyone has had success integrating Acegi, would be great to get tips / suggestions. On 2/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote: Hi, Please give me some pointers on handling authentication in Wicket. I tried digging into the "library" example, i.e. AuthenticatedWebPage but there's nothing much in there. If there is a simple technique I can use within my Application and a custom Session, I would prefer that for now instead of the wicket-auth-roles. Maybe all I need to know is where in the life cycle of a request I need to write the check for an authenticated principal etc. I am almost done migrating an application using Acegi + Spring MVC to Wicket. If anyone has some tips on integrating Acegi also that would be great. However the more I work with Wicket the more I realize that since everything is in good old Java code - you really don't need any more external abstractions for e.g. to conditional hide / show components based on role. Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to do simple authentication with Wicket
Hi, Please give me some pointers on handling authentication in Wicket. I tried digging into the "library" example, i.e. AuthenticatedWebPage but there's nothing much in there. If there is a simple technique I can use within my Application and a custom Session, I would prefer that for now instead of the wicket-auth-roles. Maybe all I need to know is where in the life cycle of a request I need to write the check for an authenticated principal etc. I am almost done migrating an application using Acegi + Spring MVC to Wicket. If anyone has some tips on integrating Acegi also that would be great. However the more I work with Wicket the more I realize that since everything is in good old Java code - you really don't need any more external abstractions for e.g. to conditional hide / show components based on role. Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best practice and use of detachable models
no, not exactly. if you havent set a model on the component (or set it to null) and call getmodel() wicket will search upwards for a model that implements the compound model interface. look up compound property models on that wiki page. Thanks, will do. One last question: f) And suppose I have a Label that has to be derived by say some string > concatenation or formula and OGNL notation will not work. Will new > Label("foo", fooModel.getFoo() + "bar")kind of hardcoding conflict in > some subtle way with the concept of detachable models? write a simple model private static class foomodel extends abstractreadonlymodel { private final imodel wrapped; public foomodel(imodel wrapped) { this.wrapped=wrapped; } public object getobject() { return wrapped.getobject()+"bar"; } public void detach() { wrapped.detach(); // important } } you do this a lot, so it is very helpful to create a superclass of the above that helps with setting and detaching. i leave that as an excercise to you. Can I assume that doing all this may not be worth it if you are only trying to derive a simple String value to put into a label - so the "hardcoding" may be okay for most scenarios? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best practice and use of detachable models
Thanks Igor. This really helped, and along the way I realized I missed a few fundamentals. One more question below: d) Now I am iterating using ListView. How exactly do I initialize the > ListView so that it uses the "installed" detachable model? what do you mean? you just pass it into the constructor. Ok I get it. Also, when you do "getModel()" Wicket will search upwards the component hierarchy right? So it does not matter even if you are on a child panel within the page or something, yes? e) While rendering each row of the ListView, how do I initialize Labels so > that they in turn get the right chunk of the detachable model? just what you did above - new PropertyModel(item.,getModel(), "name"); or if you use PropertyListView just add(new Label("name")) :) Yep. Honestly was not aware of PropertyListView and will look into that as well. f) And suppose I have a Label that has to be derived by say some string > concatenation or formula and OGNL notation will not work. Will new > Label("foo", fooModel.getFoo() + "bar")kind of hardcoding conflict in > some subtle way with the concept of detachable models? write a simple model private static class foomodel extends abstractreadonlymodel { private final imodel wrapped; public foomodel(imodel wrapped) { this.wrapped=wrapped; } public object getobject() { return wrapped.getobject()+"bar"; } public void detach() { wrapped.detach(); // important } } you do this a lot, so it is very helpful to create a superclass of the above that helps with setting and detaching. i leave that as an excercise to you. Thanks, will try that out! - Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Best practice and use of detachable models
Hi, I use Hibernate and have got a reasonably sized app working with Wicket. I am aware of the concept of detachable models and want to use it effectively and I have the following questions. If the information is already there on the wiki or something - feel free to point me there. Apologies in advance for the dumb questions, but I'm sure there is a general consensus that Wicket models are tricky to understand. a) If you don't use detachable models, it is ok but the downside is that when your page is serialized, your models get serialized and this could take up a lot of memory. Is my understanding correct? b) In some cases I use new Label("foo", new PropertyModel(fooModel, "foo"))); and in some cases I use new Label("foo", fooModel.getFoo()); which should I stick to or when should I use which? c) I have a list of objects I got from Hibernate. Can you provide (or link to) some simple code that will show me how to "install" this model on the parent component, and I mean in detachable mode. In my case it is just a WebPage. d) Now I am iterating using ListView. How exactly do I initialize the ListView so that it uses the "installed" detachable model? e) While rendering each row of the ListView, how do I initialize Labels so that they in turn get the right chunk of the detachable model? f) And suppose I have a Label that has to be derived by say some string concatenation or formula and OGNL notation will not work. Will new Label("foo", fooModel.getFoo() + "bar")kind of hardcoding conflict in some subtle way with the concept of detachable models? Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dumb question about serialization
What is the default for the maxPageVersions? On 2/21/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: If you don't need back button support at all, just have all your pages (or probably some base page) override isVersioned (or use setVersioned) and let it return false. Wicket will not record changes then, and your URLs between what otherwise would have been versions keep stable. Also, set IPageSettings#setMaxPageVersions to 1 and it is best to use the HttpSessionStore. Eelco On 2/21/07, Jesse Barnum <[EMAIL PROTECTED]> wrote: > Sorry for the dumb question, but I don't see any overview > documentation talking about models and serialization in the API. Is > there any way to not have to serialize objects in a model? I don't > need support for back button / undo / etc. I have some objects that > cannot be serialized which need to be displayed in a ListView, and > when I try to modify the contents of the ListView, it causes > exceptions because it automatically tries to serialize everything > which I call modelChanging(). > > Is there a setting I can change somewhere to run everything in memory? > > --Jesse Barnum, President, 360Works > http://www.360works.com > (770) 234-9293 > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] writing unit tests
nilo - agreed, that is something I've ranted about myself :( But if you do have IE available, it is possible to run an entire functional regression test in batch mode - which is what I think you were looking for. If you are looking for cross-browser compatibility testing - then you are better off looking elsewhere. Peter. On 2/10/07, nilo de roock <[EMAIL PROTECTED]> wrote: Good results or not... "... Currently Watij supports automating Internet Explorer on Windows only. Future plans are in place to support others like Mozilla. ..." What's the point in using Java for the server and html / javascript for clients if, at the end of the day the message is: the app only supports IE? I can't justify that. -nilo Peter Thomas-4 wrote: > > I haven't tried to use WicketTester etc. for JUnit testing yet, plan to. > > Just wanted to mention that I personally have had good results with Watij > [ > http://watij.com ] so you can automate browser based testing in Java > itself, > so no need to learn Ruby, Javascript etc. > > On 2/10/07, nilo de roock <[EMAIL PROTECTED]> wrote: >> >> >> Hai, >> >> I wonder how you got on with setting up your testenvironment? >> For a comprehensive Wicket try-out I have to set up a test environment. >> Normally I use Junit ( for classes ) and Jdemo ( for Swing apps ), >> testing >> of web-apps however, is something I haven't included in a regressiontest >> before. >> >> As I said I am very interested to hear from your experiences. >> What choices did you make? Are you satisfied with your setup? >> Selenium is new to me, I will have a look at that but I don't want Ruby >> creeping in, or any other language except Java. Can you recommend >> Selenium? >> Are you in fact using Wicket Test? >> >> Any other Wicket developerZ have an opinion on testing? >> -nilo >> >> >> >> Nino Wael wrote: >> > >> > Hi >> > >> > I've been wondering about best practices for writing unit tests with >> > wicket? >> > >> > Looking around the source of wicket, I can see that most uses junit. A >> few >> > places wicket tester are used. >> > >> > Last time I wrote a test I tried writing using jwebunit and http unit >> (as >> > I remember). I tried using the wicket test framework, but it gave me >> some >> > complications (might be because I was new to the wicket world). Also >> this >> > was on wicket 1.x. >> > >> > What do others do? >> > >> > -Nino Wael >> > >> > >> > >> > >> > >> - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to share >> > your >> > opinions on IT & business topics through brief surveys - and earn cash >> > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> > ___ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/-Wicket-user--writing-unit-tests-tf3147996.html#a8895418 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier. >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-us
Re: [Wicket-user] Easier way to force resourceKey for a Validator error message
I was earlier returning a "***" kind of String when the Spring MessageSource failed to resolve the key (so that missing error messages would be obvious). Obviously that was the wrong thing to do. The trick is to return null so that Wicket continue trying to resolve the message in the sequence you described. Thanks Igor for the tip - things work as they should now : ) On 2/3/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: i believe the search order is to first try the id.key and then to try key, so your messages should still resolve properly. can you break in localizer and see what its doing? -igor On 2/3/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > Hi, > > I'm migrating an existing (Spring MVC) JSP application to Wicket and > this application already has i18n with just one largish properties file, > named as per Spring tradition "messages.properties". > > I'm using Wicket 1.2.4. I was able to easily delegate looking up of > messages to Spring's "MessageSource" by doing > getResourceSettings().addStringResourceLoader(new IStringResourceLoader() in > the Application class. This is working fine. > > My problem is when I have a custom Validator attached to a form > component. In the Validator, I am trying to force the resourceKey that will > be used to resolve the error message by overriding "protected String > resourceKey(FormComponent)". > > The problem is the Component id is always being prefixed to whatever I > try to set the resourceKey to. All I want to do is to tell wicket to use a > specific key as-is for a validation error and not prefix anything to it. > > I guess that if I were using the Wicket default StringResourceLoader, I > could have used an ApplicationName.properties to "generalize" messages. > But you see my problem, this is a migration and I would really like to use > my existing resource bundles as is and I am tied to the Spring message > source for now. > > Any way around this? > > Thanks, > > Peter. > > > - > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] writing unit tests
I haven't tried to use WicketTester etc. for JUnit testing yet, plan to. Just wanted to mention that I personally have had good results with Watij [ http://watij.com ] so you can automate browser based testing in Java itself, so no need to learn Ruby, Javascript etc. On 2/10/07, nilo de roock <[EMAIL PROTECTED]> wrote: Hai, I wonder how you got on with setting up your testenvironment? For a comprehensive Wicket try-out I have to set up a test environment. Normally I use Junit ( for classes ) and Jdemo ( for Swing apps ), testing of web-apps however, is something I haven't included in a regressiontest before. As I said I am very interested to hear from your experiences. What choices did you make? Are you satisfied with your setup? Selenium is new to me, I will have a look at that but I don't want Ruby creeping in, or any other language except Java. Can you recommend Selenium? Are you in fact using Wicket Test? Any other Wicket developerZ have an opinion on testing? -nilo Nino Wael wrote: > > Hi > > I've been wondering about best practices for writing unit tests with > wicket? > > Looking around the source of wicket, I can see that most uses junit. A few > places wicket tester are used. > > Last time I wrote a test I tried writing using jwebunit and http unit (as > I remember). I tried using the wicket test framework, but it gave me some > complications (might be because I was new to the wicket world). Also this > was on wicket 1.x. > > What do others do? > > -Nino Wael > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/-Wicket-user--writing-unit-tests-tf3147996.html#a8895418 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Easier way to force resourceKey for a Validator error message
Hi, I'm migrating an existing (Spring MVC) JSP application to Wicket and this application already has i18n with just one largish properties file, named as per Spring tradition "messages.properties". I'm using Wicket 1.2.4. I was able to easily delegate looking up of messages to Spring's "MessageSource" by doing getResourceSettings().addStringResourceLoader(new IStringResourceLoader() in the Application class. This is working fine. My problem is when I have a custom Validator attached to a form component. In the Validator, I am trying to force the resourceKey that will be used to resolve the error message by overriding "protected String resourceKey(FormComponent)". The problem is the Component id is always being prefixed to whatever I try to set the resourceKey to. All I want to do is to tell wicket to use a specific key as-is for a validation error and not prefix anything to it. I guess that if I were using the Wicket default StringResourceLoader, I could have used an ApplicationName.properties to "generalize" messages. But you see my problem, this is a migration and I would really like to use my existing resource bundles as is and I am tied to the Spring message source for now. Any way around this? Thanks, Peter. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax DropDownChoice - retain selected value when choices are refreshed
Hi, I have these two DropDownChoices (A and B) and I am refreshing the choices in B through Ajax when the selection in A changes. AjaxFormComponentUpdatingBehavior works fine, no problems here. In my case many of the choices in B are common for all the possible selections in A. Consider the case that the user has already made a selection in B, changes his mind and flips A. What is happening now is of course, B is completely reset. What I would like is that if the earlier selected value of B is still available in the new, refreshed list of choices, I would like that "pre-selected". I'm guessing that in the Ajax request to the server I need to be able to send the information about what is currently selected in B. How can I do this? Hope this makes sense! Thanks, Peter. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Removing messages from FeedBackPanel
Hi, One of the recent mailing-list messages had a very nice solution to add css behavior so that error form fields get highlighted - e.g. red border. (Thanks Igor!) Now suppose I have a form + feedbackPanel with many fields that have the RequiredValidator error. Instead of showing a repetitive list of messages corresponding to each of the fields that need input, I want to show a single message like "Please enter required fields". And the user can visually identify the fields that need input as they will be highlighted. And any other kind of errors (e.g. type conversion) need to be individually listed in the feedback panel like usual. I know that you can filter messages on a FeedbackPanel, but what I really need is some way to pre-process the list of messages before displaying them. Is this possible? Also, is there an easy way with a FeedbackMessage instance to determine if the error is a "RequiredValidator" kind of error? Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Setting html-tags properties
Thanks Igor, I did as you said - got the source also out of the Maven2 repo (easier :) and it is working now with this one line in app init() as follows: WicketMessageTagHandler.enable = true; Thanks for your help, Peter. On 1/21/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: the code i wrote was against 1.3, im not sure how it is different against 1.2.x, you have 1.2.4 source code right (i dont have it checked out)? just look at how other filters are registered there. -igor On 1/20/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > Thanks Igor, > > I'm using 1.2.4 - and now a bit confused with these compilation > problems: > > 1) doesn't WicketMessageTagHandler needs a ContainerInfo in the > constructor. Where is the best place to get that from? > > 2) and the super.initMarkupFilters(parser) line does not compile either. > > I see that as per apidocs, the compile problem is expected: > > > http://wicket.sourceforge.net/apidocs/wicket/markup/parser/filter/WicketMessageTagHandler.html > > However from SVN I see that what you provided should work. > > > http://svn.sourceforge.net/viewvc/wicket/trunk/wicket/src/java/wicket/markup/MarkupParserFactory.java?view=markup > > What am I missing? > > Thanks, > > Peter. > > On 1/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > application.init() { > >super.init(); > >getmarkupsettings.setmarkupparserfactory(new MarkupParserFactory() > > { > > protected void initMarkupFilters(final MarkupParser > > parser) > > { > > super.initMarkupFilters (parser); > > parser.registermarkupfilter(new wicketmessagetaghandler()); > > } > > > > > > -igor > > > > > > On 1/20/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > > > > make sure you have WicketMessageTagHandler added to markupparser. > > > > > > > > -igor > > > > > > > > > > I had the same question - but now how exacty do I add WicketMessageTagHandler > > > to markupparser ? I am trying to do this in the application but WicketMessageTagHandler > > > needs a ContainerInfo. Help! > > > > > > - Peter > > > > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Setting html-tags properties
Thanks Igor, I'm using 1.2.4 - and now a bit confused with these compilation problems: 1) doesn't WicketMessageTagHandler needs a ContainerInfo in the constructor. Where is the best place to get that from? 2) and the super.initMarkupFilters(parser) line does not compile either. I see that as per apidocs, the compile problem is expected: http://wicket.sourceforge.net/apidocs/wicket/markup/parser/filter/WicketMessageTagHandler.html However from SVN I see that what you provided should work. http://svn.sourceforge.net/viewvc/wicket/trunk/wicket/src/java/wicket/markup/MarkupParserFactory.java?view=markup What am I missing? Thanks, Peter. On 1/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: application.init() { super.init(); getmarkupsettings.setmarkupparserfactory(new MarkupParserFactory() { protected void initMarkupFilters(final MarkupParser parser) { super.initMarkupFilters (parser); parser.registermarkupfilter(new wicketmessagetaghandler()); } -igor On 1/20/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > make sure you have WicketMessageTagHandler added to markupparser. > > > > -igor > > > > I had the same question - but now how exacty do I add WicketMessageTagHandler > to markupparser ? I am trying to do this in the application but WicketMessageTagHandler > needs a ContainerInfo. Help! > > - Peter > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Setting html-tags properties
make sure you have WicketMessageTagHandler added to markupparser. -igor I had the same question - but now how exacty do I add WicketMessageTagHandler to markupparser ? I am trying to do this in the application but WicketMessageTagHandler needs a ContainerInfo. Help! - Peter On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: yes you can :) -igor On 1/19/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: > > Wauw! > > Can also do that with more properties? > Something like value="hereSomething" wicket:message="value=key,type=key2"/> ? > > Erik. > > Igor Vaynberg wrote: > > > wicket:message="value=key"/> > > > > make sure you have WicketMessageTagHandler added to markupparser. > > > > -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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Escaping of HTML by wicket:message - can this be disabled?
Yes, that would be great and I'll watch out for when it is released ! I am also wondering if this can be "globally" set (maybe slight performance improvement?) but you will be the best judge for that. Thanks, Peter. On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: if you want to upgrade to 1.x (1.3) i can try adding a switch to wicket:message to disable escaping -igor On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > I am using 1.2.4 > > Not sure if it matters but I'm using a Spring MessageSource so I have my > own implementation of IStringResourceLoader set up in the Application > through "getResourceSettings().addStringResourceLoader" > > Thanks, > > Peter. > > On 1/19/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote: > > > > what version of wicket are you using? > > > > -igor > > > > > > On 1/19/07, Peter Thomas < [EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > I'm migrating a JSP app which already has i18n to wicket and > > > re-using an existing resource bundle. There are a few cases where HTML has > > > been embedded in the string resource - e.g: > > > > > > my.key=HelloWorld! > > > > > > But now when using wicket appears to > > > be html escaping the value of the localized string retrieved - so in this > > > case I see the "" rendered on screen where I expected a line break. > > > > > > Is there any way to suppress this or there is no option but to clean > > > up the bundles? > > > > > > Thanks, > > > > > > Peter. > > > > > > > > > - > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > > share your > > > opinions on IT & business topics through brief surveys - and earn > > > cash > > > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Escaping of HTML by wicket:message - can this be disabled?
I am using 1.2.4 Not sure if it matters but I'm using a Spring MessageSource so I have my own implementation of IStringResourceLoader set up in the Application through "getResourceSettings().addStringResourceLoader" Thanks, Peter. On 1/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: what version of wicket are you using? -igor On 1/19/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > Hi, > > I'm migrating a JSP app which already has i18n to wicket and re-using an > existing resource bundle. There are a few cases where HTML has been > embedded in the string resource - e.g: > > my.key=HelloWorld! > > But now when using wicket appears to be > html escaping the value of the localized string retrieved - so in this case > I see the "" rendered on screen where I expected a line break. > > Is there any way to suppress this or there is no option but to clean up > the bundles? > > Thanks, > > Peter. > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Escaping of HTML by wicket:message - can this be disabled?
Hi, I'm migrating a JSP app which already has i18n to wicket and re-using an existing resource bundle. There are a few cases where HTML has been embedded in the string resource - e.g: my.key=HelloWorld! But now when using wicket appears to be html escaping the value of the localized string retrieved - so in this case I see the "" rendered on screen where I expected a line break. Is there any way to suppress this or there is no option but to clean up the bundles? Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Need example for a custom component that can take nested / child components
Hi, I was able to find an example on how to create a custom component (so you don't need wicket:panel markup) on the wicket site here: http://wicketframework.org/ExampleStockQuote.html But this is a simple example where it extends WebComponent, as there are no nested components. I need to create a custom component (some complex HTML) that may in turn embed some Link-s. From the above documentation I figure that I need to extend WebMarkupContainer. Are there any examples available anywhere. What needs to be done differently? Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
Thanks Mats, yes I agree. I am also reporting (refer original message) that wicket-spring-annot is broken for Maven 2 users, so at the moment I cannot use it even if I wanted to. Can anyone comment on this? Thanks, Peter. On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote: Oops, sorry, didn't read your entire mail. However, I do feel that the extra dependency is worth it in the long run. You very seldom have only one DAO in your application... :) Let's say you have 50 beans that you want to use in different parts of the system, the code bloat in the Application class will be quite big. /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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
Thanks Mats, I totally agree that that is a pretty clean option. This does mean that you have to include wicket-spring and wicket-spring-annot though - which I avoided. I am trying to figure if the alternate approach is workable and then I do feel it is worth adding to the wiki. Also it may be more appealing to those folks who are anti-annotations. (yes such people exist :) Regards, Peter. On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote: I personally think it is easer to override the init method of your application: protected void init() { super.init(); addComponentInstantiationListener(new SpringComponentInjector(this)); ... } and use the @SpringBean where you want to use your DAO. @SpringBean ContactDao contactDao /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.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] spring integration question
Hi, I was thinking that more option can be added to the official wicket-spring integration documentation. Something like this: 1) normal wicket servlet config in web.xml, with applicationClassName init-param 2) Application class uses Spring API to get hold of dependency like this: class MyApplication extends WebApplication { private ContactDao dao; public ContactDao getContactDao() { return dao; } public void init() { ServletContext sc = getWicketServlet().getServletContext(); dao = (ContactDao) WebApplicationContextUtils.getWebApplicationContext (sc).getBean("contactDao"); } } 3) Have all pages / components extend BasePage that has a getContactDao() method - exactly like the first option in the wicket-spring wiki documentation here: http://www.wicket-wiki.org.uk/wiki/index.php/Spring I understand the risk of running into the serialization problem and also that this may be considered not-so-elegant because of using the Spring API directly without any dependency injection. But I want to mention my experience, I spent a lot of time going through the existing documentation agonizing over which option to choose. Trying to understand all the options, lazy proxies etc was a little daunting for a spring fan like me. In my case I just have one clean dependency and finally it was so easy to do it as suggested above. I also don't need the wicket-spring jar at all. Are there any other compelling reasons for using the wicket-spring lib? Is the suggested approach fine for small projects who want to hook into Spring quickly? Another thing - I initially tried to use wicket-spring-annot and Maven 2 complained with this error: [INFO] Failed to resolve artifact. GroupId: wicket ArtifactId: wicket-parent Version: 1.2-SNAPSHOT Reason: Unable to download the artifact from any repository wicket:wicket-parent:pom:1.2-SNAPSHOT from the specified remote repositories: central ( http://repo1.maven.org/maven2) = I think the reason is because the wicket-spring-annot-1.2.4.pom incorrectly refers to 1.2-SNAPSHOT version for wicket-parent. The url of the offending file in the maven repository is this: http://repo1.maven.org/maven2/wicket/wicket-spring-annot/1.2.4/wicket-spring-annot-1.2.4.pom Let me know if I need to log an issue or something. Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user