Tab onclick behaviour.
Hello everyone, I an new on wicket. And I am stucked!!! I have a tabbed page. and I want to implement for each tab different behaviour from database acording to onClick of each tab. here you can see markup. - < div wicket:id="tabs"> #tabs-1 Tab1 #tabs-2 Tab2 .. . < /div> and here code. -- TabsWebMarkupContainer tab; tab = new TabsWebMarkupContainer("tabs"); tab.setOutputMarkupId(true); tab.add(new Link("first") { @Override public void onClick() { System.out.println("first tab"); } }); Homeform.add(tab); What is wrong with that code. It should output on console "first tab" when I click first tab isnt it?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Tab-onclick-behaviour-tp4573620p4573620.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Expired with Google Analytics Tracking Code
Hi, I tried to reproduce the error with a quickstart project but was not successful. The quickstart is running fine with Google Analytics and PageableListView. I think that the project is to complex and the error is somewhere else. The only solution I can imagine is a detailed explanation of my problem with my new findings. May be, someone had the same problem or has an idea where I could search for the error. I hope that someone reads the following explanation and has an idea. I would be very thankful. My problem: - I added Google Analytics to my page and have a PageableListView on my results page. - I have 60 results for my PageableListView and show 10 entries per page. When the page is rendered, the PageableListView is constructed and show the first 10 entries. - The PagingNavigator show 6 pages of entries. The error: - When I click on one of the links of the PagingNavigator, the entries of the PageableListView are empty. I checked the results that were delivered to the PageableListView. When the PageableListView is constructed, the 60 results are filled and not empty. After clicking on one of the links in the PagingNavigator, the results are empty! I saw the empty results in the DebugBar and with an additional System.out.println within the populateItem method of the PageableListView. I would be very thankful, if someone has an idea or knows another solution that I can try. I try to solve the error since more than 2 weeks and have no new clue. Many thanks, Andre On Tue, 17 Apr 2012 22:31:27 +0200 Andre Schütz wrote: > Hi, I will try to complete that in the next days and > attach the quickstart as an answer. > > Thank you for the help, > Andre > > On Mon, 16 Apr 2012 22:57:11 +0200 > Bas Gooren wrote: > > > Hi, > > > > Can you build a small quickstart so I can have a look at things when > > they are not working? > > So just the bare minimum where it's not working: your page that is not > > working with a dummy model (e.g. with hardcoded results). > > > > Bas > > > > Op 16-4-2012 20:50, schreef Andre Schütz: > > > Hi, > > > > > > I tried with super.renderHead..., but the result is the > > > same. The PageableListView is empty after clicking on > > > one of links in the PagingNavigator. > > > > > > Additinally, I fodun out that the elements (listItem) are > > > empty when I click on one of the links in the PagingNavigator. > > > They are filled, when the PageableListView is build. > > > Any idea why how that could happen? > > > > > > Andre > > > > > > On Fri, 13 Apr 2012 10:29:41 +0200 > > > Bas Gooren wrote: > > > > > >> Hi, > > >> > > >> What happens if you change that to: > > >> > > >> @Override > > >> public void renderHead(HeaderResponse response) { > > >> super.renderHead(response); > > >> String script = "var _gaq = _gaq || ..."; > > >> response.renderJavaScript(script, null); > > >> } > > >> > > >> ? (note that I added a call to super.renderHead()); > > >> > > >> Bas > > >> > > >> Op 11-4-2012 23:08, schreef Andre Schütz: > > >>> Hi, > > >>> > > >>> I implemented your version but still I get the same error, if > > >>> I have the Google Analytics Code in the head. > > >>> > > >>> Could it be an error with the way I insert the Google > > >>> Analytics Code? I do it in the following way. > > >>> > > >>> In my WebPage class I overwrite the following method: > > >>> > > >>> @Override > > >>> public void renderHead(HeaderResponse response) { > > >>> String script = "var _gaq = _gaq || ..."; > > >>> response.renderJavaScript(script, null); > > >>> } > > >>> > > >>> Andre > > >>> > > >>> On Wed, 11 Apr 2012 11:38:52 +0200 > > >>> Bas Gooren wrote: > > >>> > > Well, for starters I wonder why you are using multiple > > LoadableDetachableModels in a Vector? > > > > What we do 99% of the time is this: > > - Wrap the entire resultset in a LDM > > - Feed that LDM to a ListView or a variant (we have a custom > > RepeatingView for paged database listings) > > - Use PropertyModels inside the repeater item(s) (or not, since the > > ListView will refresh itself anyway) > > > > I'm pretty sure you don't need setReuseItems(true) in this case; The > > only reason I've seen where it's required on a ListView is when you use > > it inside a form and need form validation to work. Since I don't see > > any > > form fields inside your listview I guess this is not the case. > > > > I also wonder why you had "datacontainer.setVersioned(false)"? > > > > E.g.: > > > > private void displayResults(IModel> > > results, int entriesPerPage) { > > WebMarkupContainer datacontainer = new > > WebMarkupContainer("listviewContainer"); > > datacontainer.setOutputMarkupId(true); > > add(datacontainer); > > > > PageableListViewlistview = new > > PageableListView("listview", results, > > entriesPerPage)
Re: urlFor in wicket 1.5
Ah, got it. In my case, it is a return link passed to a non wicket page that sits in a different path (but same app context, root in my case). So the browser cannot solve it directly. I.e. it seems that can be safely emitted in the same page for which is obtained (or other pages in the same path) -Nelson On Fri, Apr 20, 2012 at 1:49 PM, Igor Vaynberg wrote: > it can be stored in the browser. but you first need to let the browser > resolve it. > > when you are on /fts/foo and you have search you > can right click search in the browser and add it as a bookmark. the > browser will correctly resolve it against the current url and store > /fts/search. > > -igor > > > On Fri, Apr 20, 2012 at 1:48 PM, Nelson Segura wrote: >> :) >> >> Maybe in one sense, but not as the API/javadoc for Wicket 1.5 written >> for urlFor() >> >> "Returns a bookmarkable URL that references a given page class using a >> given set of page parameters. Since the URL which is returned contains >> all information necessary to instantiate and render the page, it can >> be stored in a user's browser as a stable bookmark." >> >> As returned by urlFor() the URL cannot be stored in the user's browser >> as a bookmark. >> >> It might be a semantic issue, but if the user has been using that to >> store URLs, it cannot do it anymore. >> >> -Nelson >> >> >> On Fri, Apr 20, 2012 at 1:42 PM, Igor Vaynberg >> wrote: >>> bookmarkable just means the url contains no session-state. it doesnt >>> mean that it is absolute. >>> >>> -igor >>> >>> On Fri, Apr 20, 2012 at 1:31 PM, Nelson Segura wrote: Except that is not fully bookmarkable as per the API, is it? How can I produce a fully bookmarkable URL that can be printed? I tried to follow this: RequestCycle.get().getUrlRenderer().renderFullUrl( Url.parse(urlFor(MyPage.class,null).toString())); from here https://cwiki.apache.org/WICKET/getting-a-url-for-display.html but the URL is still is printed as http://localhost/search instead of http://localhos/fts/search -Nelson On Fri, Apr 20, 2012 at 1:27 PM, Igor Vaynberg wrote: > if you are currently on a /fts/ url, then "search" is correct > because relative to /fts/ it will produce /fts/search. > > -igor > > > On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: >> Using Wicket 1.5.4 >> >> Have the following mountedPage() >> >> mountPage("/fts/search", FTSResultsPage.class); >> >> >> In a panel inside that page I have >> >> String pageUrl = urlFor(FTSResultsPage.class,null).toString(); >> >> I expect this to be (as in wicket 1.4) >> >> "/fts/search" >> >> But instead it is rendered as >> >> "search" >> >> Is there any explanation for this? >> >> -Nelson Segura >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Drag and Drop Fileupload
Currently i am working on a project using the ajax fileupload provided by wicket. This is working fine. Is there any (possibly ready) solution to use drag and drop fileupload in my wicket application? Greetings Michael - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urlFor in wicket 1.5
it can be stored in the browser. but you first need to let the browser resolve it. when you are on /fts/foo and you have search you can right click search in the browser and add it as a bookmark. the browser will correctly resolve it against the current url and store /fts/search. -igor On Fri, Apr 20, 2012 at 1:48 PM, Nelson Segura wrote: > :) > > Maybe in one sense, but not as the API/javadoc for Wicket 1.5 written > for urlFor() > > "Returns a bookmarkable URL that references a given page class using a > given set of page parameters. Since the URL which is returned contains > all information necessary to instantiate and render the page, it can > be stored in a user's browser as a stable bookmark." > > As returned by urlFor() the URL cannot be stored in the user's browser > as a bookmark. > > It might be a semantic issue, but if the user has been using that to > store URLs, it cannot do it anymore. > > -Nelson > > > On Fri, Apr 20, 2012 at 1:42 PM, Igor Vaynberg > wrote: >> bookmarkable just means the url contains no session-state. it doesnt >> mean that it is absolute. >> >> -igor >> >> On Fri, Apr 20, 2012 at 1:31 PM, Nelson Segura wrote: >>> Except that is not fully bookmarkable as per the API, is it? >>> How can I produce a fully bookmarkable URL that can be printed? >>> >>> I tried to follow this: >>> >>> RequestCycle.get().getUrlRenderer().renderFullUrl( >>> Url.parse(urlFor(MyPage.class,null).toString())); >>> >>> from here >>> https://cwiki.apache.org/WICKET/getting-a-url-for-display.html >>> >>> but the URL is still is printed as >>> >>> http://localhost/search instead of http://localhos/fts/search >>> >>> -Nelson >>> >>> >>> On Fri, Apr 20, 2012 at 1:27 PM, Igor Vaynberg >>> wrote: if you are currently on a /fts/ url, then "search" is correct because relative to /fts/ it will produce /fts/search. -igor On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: > Using Wicket 1.5.4 > > Have the following mountedPage() > > mountPage("/fts/search", FTSResultsPage.class); > > > In a panel inside that page I have > > String pageUrl = urlFor(FTSResultsPage.class,null).toString(); > > I expect this to be (as in wicket 1.4) > > "/fts/search" > > But instead it is rendered as > > "search" > > Is there any explanation for this? > > -Nelson Segura > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urlFor in wicket 1.5
:) Maybe in one sense, but not as the API/javadoc for Wicket 1.5 written for urlFor() "Returns a bookmarkable URL that references a given page class using a given set of page parameters. Since the URL which is returned contains all information necessary to instantiate and render the page, it can be stored in a user's browser as a stable bookmark." As returned by urlFor() the URL cannot be stored in the user's browser as a bookmark. It might be a semantic issue, but if the user has been using that to store URLs, it cannot do it anymore. -Nelson On Fri, Apr 20, 2012 at 1:42 PM, Igor Vaynberg wrote: > bookmarkable just means the url contains no session-state. it doesnt > mean that it is absolute. > > -igor > > On Fri, Apr 20, 2012 at 1:31 PM, Nelson Segura wrote: >> Except that is not fully bookmarkable as per the API, is it? >> How can I produce a fully bookmarkable URL that can be printed? >> >> I tried to follow this: >> >> RequestCycle.get().getUrlRenderer().renderFullUrl( >> Url.parse(urlFor(MyPage.class,null).toString())); >> >> from here >> https://cwiki.apache.org/WICKET/getting-a-url-for-display.html >> >> but the URL is still is printed as >> >> http://localhost/search instead of http://localhos/fts/search >> >> -Nelson >> >> >> On Fri, Apr 20, 2012 at 1:27 PM, Igor Vaynberg >> wrote: >>> if you are currently on a /fts/ url, then "search" is correct >>> because relative to /fts/ it will produce /fts/search. >>> >>> -igor >>> >>> >>> On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: Using Wicket 1.5.4 Have the following mountedPage() mountPage("/fts/search", FTSResultsPage.class); In a panel inside that page I have String pageUrl = urlFor(FTSResultsPage.class,null).toString(); I expect this to be (as in wicket 1.4) "/fts/search" But instead it is rendered as "search" Is there any explanation for this? -Nelson Segura - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urlFor in wicket 1.5
bookmarkable just means the url contains no session-state. it doesnt mean that it is absolute. -igor On Fri, Apr 20, 2012 at 1:31 PM, Nelson Segura wrote: > Except that is not fully bookmarkable as per the API, is it? > How can I produce a fully bookmarkable URL that can be printed? > > I tried to follow this: > > RequestCycle.get().getUrlRenderer().renderFullUrl( > Url.parse(urlFor(MyPage.class,null).toString())); > > from here > https://cwiki.apache.org/WICKET/getting-a-url-for-display.html > > but the URL is still is printed as > > http://localhost/search instead of http://localhos/fts/search > > -Nelson > > > On Fri, Apr 20, 2012 at 1:27 PM, Igor Vaynberg > wrote: >> if you are currently on a /fts/ url, then "search" is correct >> because relative to /fts/ it will produce /fts/search. >> >> -igor >> >> >> On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: >>> Using Wicket 1.5.4 >>> >>> Have the following mountedPage() >>> >>> mountPage("/fts/search", FTSResultsPage.class); >>> >>> >>> In a panel inside that page I have >>> >>> String pageUrl = urlFor(FTSResultsPage.class,null).toString(); >>> >>> I expect this to be (as in wicket 1.4) >>> >>> "/fts/search" >>> >>> But instead it is rendered as >>> >>> "search" >>> >>> Is there any explanation for this? >>> >>> -Nelson Segura >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urlFor in wicket 1.5
I think that mapUrlFor() seems to produce the results as urlFor() used to in Wicket 1.5.5 -nelson On Fri, Apr 20, 2012 at 1:31 PM, Nelson Segura wrote: > Except that is not fully bookmarkable as per the API, is it? > How can I produce a fully bookmarkable URL that can be printed? > > I tried to follow this: > > RequestCycle.get().getUrlRenderer().renderFullUrl( > Url.parse(urlFor(MyPage.class,null).toString())); > > from here > https://cwiki.apache.org/WICKET/getting-a-url-for-display.html > > but the URL is still is printed as > > http://localhost/search instead of http://localhos/fts/search > > -Nelson > > > On Fri, Apr 20, 2012 at 1:27 PM, Igor Vaynberg > wrote: >> if you are currently on a /fts/ url, then "search" is correct >> because relative to /fts/ it will produce /fts/search. >> >> -igor >> >> >> On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: >>> Using Wicket 1.5.4 >>> >>> Have the following mountedPage() >>> >>> mountPage("/fts/search", FTSResultsPage.class); >>> >>> >>> In a panel inside that page I have >>> >>> String pageUrl = urlFor(FTSResultsPage.class,null).toString(); >>> >>> I expect this to be (as in wicket 1.4) >>> >>> "/fts/search" >>> >>> But instead it is rendered as >>> >>> "search" >>> >>> Is there any explanation for this? >>> >>> -Nelson Segura >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urlFor in wicket 1.5
Except that is not fully bookmarkable as per the API, is it? How can I produce a fully bookmarkable URL that can be printed? I tried to follow this: RequestCycle.get().getUrlRenderer().renderFullUrl( Url.parse(urlFor(MyPage.class,null).toString())); from here https://cwiki.apache.org/WICKET/getting-a-url-for-display.html but the URL is still is printed as http://localhost/search instead of http://localhos/fts/search -Nelson On Fri, Apr 20, 2012 at 1:27 PM, Igor Vaynberg wrote: > if you are currently on a /fts/ url, then "search" is correct > because relative to /fts/ it will produce /fts/search. > > -igor > > > On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: >> Using Wicket 1.5.4 >> >> Have the following mountedPage() >> >> mountPage("/fts/search", FTSResultsPage.class); >> >> >> In a panel inside that page I have >> >> String pageUrl = urlFor(FTSResultsPage.class,null).toString(); >> >> I expect this to be (as in wicket 1.4) >> >> "/fts/search" >> >> But instead it is rendered as >> >> "search" >> >> Is there any explanation for this? >> >> -Nelson Segura >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urlFor in wicket 1.5
if you are currently on a /fts/ url, then "search" is correct because relative to /fts/ it will produce /fts/search. -igor On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: > Using Wicket 1.5.4 > > Have the following mountedPage() > > mountPage("/fts/search", FTSResultsPage.class); > > > In a panel inside that page I have > > String pageUrl = urlFor(FTSResultsPage.class,null).toString(); > > I expect this to be (as in wicket 1.4) > > "/fts/search" > > But instead it is rendered as > > "search" > > Is there any explanation for this? > > -Nelson Segura > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
urlFor in wicket 1.5
Using Wicket 1.5.4 Have the following mountedPage() mountPage("/fts/search", FTSResultsPage.class); In a panel inside that page I have String pageUrl = urlFor(FTSResultsPage.class,null).toString(); I expect this to be (as in wicket 1.4) "/fts/search" But instead it is rendered as "search" Is there any explanation for this? -Nelson Segura - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Clear markup cache
I resolved with: // clear markup cache getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clear(); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Clear-markup-cache-tp4575033p4575132.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Clear markup cache
Hi I use a CustomResourceLocator (extends ResourceStreamLocator) to load markup files. The workflow is to search in a custom folder and if the file doesn't exists call super.locate If I add/remove some markup files in/from custom folder I see that wicket keeps in cache some old files and I want to invalidate that cache programmatic (all cache or only for that files). How can I do this? wicket 1.5.5 Thanks, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Clear-markup-cache-tp4575033p4575033.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: two interlinked ajax textfields
Switched back to simple onchange. All is well now. On 2012-04-19 16:50, Martin Grigorov wrote: OnChangeAjaxBehavior uses oninput/onpaste/oncut behind the scenes for text form components, that's why it reacts on each key press onchange fires only when you leave the input field - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: reloading of HTML and classes
Aha! This is very interesting. I have the same problems and wrote my own resource finder, which works ok now. But this would explain what the original problem is! Should be a fairly easy problem to fix, though. Tom On 2012-04-20 18:24, Andrew Geery wrote: An issue I ran into with having Wicket reload the html files in development mode is that it doesn't seem to work if the path to the html files has spaces in it. For example, running under Eclipse with the workspace in c:\Documents and Settings\... html reloading did not work. Taking the exact same configuration but putting the workspace directly on the c:\ drive (e.g., c:\workspace), the htm reloading works perfectly. Hope that helps. Andrew - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: reloading of HTML and classes
An issue I ran into with having Wicket reload the html files in development mode is that it doesn't seem to work if the path to the html files has spaces in it. For example, running under Eclipse with the workspace in c:\Documents and Settings\... html reloading did not work. Taking the exact same configuration but putting the workspace directly on the c:\ drive (e.g., c:\workspace), the htm reloading works perfectly. Hope that helps. Andrew On Tue, Apr 10, 2012 at 2:45 AM, Martin Grigorov wrote: > On Sun, Apr 8, 2012 at 5:38 AM, Bernard wrote: > > Hi, > > > > The HTML part is covered if your IDE copies HTML files to the > > deployment directory when you save them. Wicket will then pick up this > > change and reload the corresponding pages. This works for existing > > markup but not for new markup that was missing. > > > https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/wicketstuff-wicket7 > provides an extension of Wicket's default > ModificationWatcher that uses JDK7 NIO2 WatchService. This should help > for this problem. > > > > > The Java classes part can only be handled with debugging, JRebel or a > > complete re-deployment. There is no hot-deployment of individual > > classes in GlassFish (I don't know whether any other server supports > > this). However GlassFish has session preservation so the re-deploy > > process is seamless. To further speed up the deployment, one can copy > > most libraries (including Wicket) into the GlassFish domain's lib dir > > instead of copying them on every deployment. > > > > The "Deploy on Save" feature is only useful for mini applications - it > > is too slow. > > > > Bernard > > > > > > On Fri, 06 Apr 2012 16:48:11 +0200, you wrote: > > > >> > >>I've been fighting this for the past two days, but I'm not succeeding. > I'm using Wicket 1.5.5 on GlassFish 3.1.2 and that runs without a problem. > I have configured > >> > > >>org.apache.wicket.protocol.http.ReloadingWicketFilter > >> > >>to reload the classes, but that is not working. The only way to reload > the class file is by using JRebel. > >> > >>Also Wicket reports that it runs in DEVELOPMENT mode, but it is not > reloading the HTML files. In an attempting to resolve that I explicitely > configured > >> > >> getResourceSettings().setDefaultCacheDuration(Duration.ONE_SECOND); > >> > >>but that does not make a difference. The only way I can get it to work > somewhat, is to add my own ResourceFinder directly on the src folder: > >> > >> getResourceSettings().setResourceFinder(new IResourceFinder() > >> { > >> @Override > >> public IResourceStream find(Class clazz, String pathname) > >> { > >> File f = new File("C:/Documents and Settings/User/My > Documents/s2m/sources/components/service/src/main/java/" + pathname); > >> if (f.exists()) > >> { > >> return new FileResourceStream( f ); > >> } > >> return null; > >> } > >> }); > >> getResourceSettings().setUseDefaultOnMissingResource(true); > >> > >>But still the source are not reloaded reliably. I figure if the cache > expires, a new call to the resource finder should be done, correct? > >> > >>Is there any debugging of these autoreload features, so I can see what > Wicket is doing? > >> > >>Tom > >> > >> > >> > >> > >> > >>- > >>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Sonar (Architecture) and Wicket
why exactly are they "problems"? -igor On Fri, Apr 20, 2012 at 5:40 AM, romanasu wrote: > There is a web application using sonar for code analyses. > I have some problems with cycling dependencies. > For example, i have a TemplatePage(in com.myPackage) which is extended by > all others pages. In the TemplatePage there are BookmarkablePageLink to some > pages from site(for example, LoginPage- in in com.myPackage.login - wich > extends TemplatePage). > Sonar is complaining that there is a suspect dependency (cycle) between > TemplatePage and LoginPage (template has a reference to login, and login > extends template). > > Another similar example: I have a CustomPanel (in com.myPackage.panel) with > BookmarkablePageLink to CustomPage (in com.myPackage.customPage). Also, > suspect dependency cycle is thrown. > > Any ideas how to resolve these problems ? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Sonar-Architecture-and-Wicket-tp4573798p4573798.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: A/B testing with wicket
We have done what I think is some pretty extensive A/B testing using wicket. As someone suggested, you can use Google Website Optimizer/Google Analytics to do some A/B testing. I found that approach is great for simple testing such as Sentence A vs Sentence B or Color A vs Color B. If you need more advanced A/B testing such as page flow, etc.., the google platform will not be as easy to use. The localization-and-skinning of pages is also a possibility but that will only get you look and feel changes. We performed A/B testing on a page flow [workflow] and large content blocks. This was all handled by wicket and we used google analytics to track the events and page views. When a session is created, we assigned the user randomly to an A or B group and set a cookie so that on future visits they would be in the same group. There is a bit more detail in this as we also assigned a test number so that when a new test was run on a different area of the site we could re-assign the groups. Then in a base page we pushed some javascript out basically setting the test number and A/B group out to Google Analytics using custom variables. In the area of code that we wanted to test we would have an if A then do A group stuff else do the B group stuff. This was usually on a link or click event but we could also show different panels this way or set large blocks of WebMarkupContainers to not visible using this approach. Google Analytics events were fired as needed to track events or flow between pages. Once the framework was in place we could quickly run an A/B test and turn it off just as quickly with a flag to enable or disable A/B testing. One thing to keep in mind with A/B testing is that you need to test one discrete thing at a time otherwise you begin to do multi-variant testing which is possible just much more complicated. In either case brush up on your statistics knowledge to analyze the data and know when you have enough statistically relevant data or you will be making decisions on what could be bogus data. -Original Message- From: Fergal Keating [mailto:fergal.keat...@directski.com] Sent: Friday, April 20, 2012 6:10 AM To: users@wicket.apache.org Subject: Re: A/B testing with wicket You can use style and variation. Setting default style works automatically to load differing HTML files for the same components. https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html On 20 April 2012 09:08, Decebal Suiu wrote: > Maybe Google Website Optimizer/ Google Analytics and not Google AddWords. > My > idea is to use Component.getVariation() as start point. > > Best reagrds, > Decebal > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/A-B-testing-with-wicket-tp4 > 571946p4573185.html Sent from the Users forum mailing list archive at > Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fergal Keating IT Senior Engineer --- e. fergal.keat...@directski.com p. NA w. www.directski.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Sonar (Architecture) and Wicket
There is a web application using sonar for code analyses. I have some problems with cycling dependencies. For example, i have a TemplatePage(in com.myPackage) which is extended by all others pages. In the TemplatePage there are BookmarkablePageLink to some pages from site(for example, LoginPage- in in com.myPackage.login - wich extends TemplatePage). Sonar is complaining that there is a suspect dependency (cycle) between TemplatePage and LoginPage (template has a reference to login, and login extends template). Another similar example: I have a CustomPanel (in com.myPackage.panel) with BookmarkablePageLink to CustomPage (in com.myPackage.customPage). Also, suspect dependency cycle is thrown. Any ideas how to resolve these problems ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sonar-Architecture-and-Wicket-tp4573798p4573798.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: UrlRenderer adds dot if URL is empty
Hi David, Can you try with 1.5-SNAPSHOT ? We made some changes in this area for WICKET-4260. I also filed a bug report to Tomcat because they also produce redirect urls like: http://host:port/path1/./path2 and this confuses IE only when Tomcat virtual hosts are used and JMeter (always): https://issues.apache.org/bugzilla/show_bug.cgi?id=53062 On Fri, Apr 20, 2012 at 3:27 PM, David Rain wrote: > Hello, > I have a question about > in UrlRenderer, lines 237-240 in Wicket 1.5.5 > > Why is this happening? I don't think that subsequential call to > HttpServletResponse#sendRedirect(".") is correct. I know it should render as > relative to current directory, but for example WebSphere (7) AS sends this > as Location: http://localhost:9080/context/. - WITH the dot at the end! This > wouldn't cause any problem with current browsers, nut if you have some kind > of proxy or load balancer in front of AS (we have IBM HTTP SERVER), it might > them think it is some kind of file, etc. This leads to problems in our > enviroment. > I know it is an specific issue, but generously I think, that the dot is > useless there and only causing problems. > > Thanks for reply, > David > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/UrlRenderer-adds-dot-if-URL-is-empty-tp4573752p4573752.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
UrlRenderer adds dot if URL is empty
Hello, I have a question about in UrlRenderer, lines 237-240 in Wicket 1.5.5 Why is this happening? I don't think that subsequential call to HttpServletResponse#sendRedirect(".") is correct. I know it should render as relative to current directory, but for example WebSphere (7) AS sends this as Location: http://localhost:9080/context/. - WITH the dot at the end! This wouldn't cause any problem with current browsers, nut if you have some kind of proxy or load balancer in front of AS (we have IBM HTTP SERVER), it might them think it is some kind of file, etc. This leads to problems in our enviroment. I know it is an specific issue, but generously I think, that the dot is useless there and only causing problems. Thanks for reply, David -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/UrlRenderer-adds-dot-if-URL-is-empty-tp4573752p4573752.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A/B testing with wicket
You can use style and variation. Setting default style works automatically to load differing HTML files for the same components. https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html On 20 April 2012 09:08, Decebal Suiu wrote: > Maybe Google Website Optimizer/ Google Analytics and not Google AddWords. > My > idea is to use Component.getVariation() as start point. > > Best reagrds, > Decebal > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/A-B-testing-with-wicket-tp4571946p4573185.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Fergal Keating IT Senior Engineer --- e. fergal.keat...@directski.com p. NA w. www.directski.com
Re: A/B testing with wicket
Maybe Google Website Optimizer/ Google Analytics and not Google AddWords. My idea is to use Component.getVariation() as start point. Best reagrds, Decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A-B-testing-with-wicket-tp4571946p4573185.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org