Re: Customized AjaxPagingNavigator to highlight selected page number
If you navigator has a unique class (or id) you could just refer to it via the CSS: I'm guessing something like .goto em{font-weight: bold; font-color: blue} would work. Note that disabled links by default are wrapped in tags. If that isn't good enough, you can subclass the AjaxPagingNavigator and override the newPagingNavigationLink() method. In there you could add a behavior to do your custom styling or set the setBeforeDisabledLink() and setAfterDisabledLink() methods to insert in the markup you require. -Clint -- Clint Checketts Sent with Sparrow On Wednesday, April 27, 2011 at 4:31 AM, sap2000 wrote: > The current page selection is noticed by disabled link of the selected page > number. > In our project we need to highlight (bold font and colour) selected page by > means of css. > How this can be achived ? > > Thank you. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Customized-AjaxPagingNavigator-to-highlight-selected-page-number-tp3477625p3477625.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: DataTable's view does not always update
I've seen that sort of behavior in 2 common types of cases: 1- An exception occurred, disrupting the Ajax response from even returning (you'll notice it as a type ERROR in the Wicket debug panel) 2- A form validator, required field, or conversion failed, stopping the form from updating underlying models (you would have still seen the onBeforeRender called in this case). You'd notice this behavior if the console had a message about 'unrendered feedback message' -Clint -- Clint Checketts Sent with Sparrow On Thursday, April 28, 2011 at 1:25 PM, Tom Barbaro wrote: > Hi, > > I have several checkboxes in a datatable toolbar that control filtering for > the content rendered in a datatable. When a checkbox is clicked, we add the > datatable to the ajax target, which results in a new query. The dataprovider > doQuery methond is called and returns the correct results. The problem is > the view does not always update. No exceptions occur, the view just does not > update. > > I set a breakpoint in onBeforeRender for the page and it is called when the > view is updated. When the view is not updated it is not called. > > The only clue I have is the number of items in the view for the checkbox I > just unselected is much larger (more than 100x) than the items selected by > the unmodified checkboxes. > > Any ideas what would prevent the updating of the table? > > Tom > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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: Repeating two tags at the same level (i.e. without a container)
I am absolutely amazed that I had not used this tag until today. Thanks for pointing it out. On Fri, 29 Apr 2011 02:48:33 +0300, Zilvinas Vilutis wrote: It's described here:https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket'XHTMLtags-Elementwicket:container Žilvinas Vilutis E-mail: cika...@gmail.com On Thu, Apr 28, 2011 at 4:47 PM, Zilvinas Vilutis wrote: use tag instead Regards Žilvinas Vilutis E-mail: cika...@gmail.com On Thu, Apr 28, 2011 at 4:38 PM, Alexandros Karypidis wrote: Hello, Can anybody recommend how to achieve the following: I need to repeat two tags at the same level, without placing them in a container. For example, the below markup shows a static containing two dynamic tags(one for the repeater and one for the two tags I need alongside each other): For the "items" I use the following component to place my 2 tags (a header and a div): some text When the repeater is rendered I get: <-- I need to find a way to remove this container --> some title some text <-- I need to find a way to remove this container --> some other title some other text So, what can I do to get the following instead: some title some text some other title some other text Thank you in advance! - 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: Repeating two tags at the same level (i.e. without a container)
setRenderBodyOnly(true) on or -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Repeating-two-tags-at-the-same-level-i-e-without-a-container-tp3482548p3482566.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: Repeating two tags at the same level (i.e. without a container)
It's described here:https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket'XHTMLtags-Elementwicket:container Žilvinas Vilutis E-mail: cika...@gmail.com On Thu, Apr 28, 2011 at 4:47 PM, Zilvinas Vilutis wrote: > use tag instead > > Regards > > Žilvinas Vilutis > > E-mail: cika...@gmail.com > > > > On Thu, Apr 28, 2011 at 4:38 PM, Alexandros Karypidis > wrote: >> Hello, >> >> Can anybody recommend how to achieve the following: >> >> I need to repeat two tags at the same level, without placing them in a >> container. For example, the below markup shows a static containing two >> dynamic tags(one for the repeater and one for the two tags I need >> alongside each other): >> >> >> >> >> >> >> >> For the "items" I use the following component to place my 2 tags (a header >> and a div): >> >> >> >> >> some text >> >> >> >> When the repeater is rendered I get: >> >> >> <-- I need to find a way to remove this container --> >> some title >> >> some text >> >> >> <-- I need to find a way to remove this container --> >> some other title >> >> some other text >> >> >> >> >> So, what can I do to get the following instead: >> >> >> some title >> >> some text >> >> some other title >> >> some other text >> >> >> >> Thank you in advance! >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >
Re: Repeating two tags at the same level (i.e. without a container)
use tag instead Regards Žilvinas Vilutis E-mail: cika...@gmail.com On Thu, Apr 28, 2011 at 4:38 PM, Alexandros Karypidis wrote: > Hello, > > Can anybody recommend how to achieve the following: > > I need to repeat two tags at the same level, without placing them in a > container. For example, the below markup shows a static containing two > dynamic tags(one for the repeater and one for the two tags I need > alongside each other): > > > > > > > > For the "items" I use the following component to place my 2 tags (a header > and a div): > > > > > some text > > > > When the repeater is rendered I get: > > > <-- I need to find a way to remove this container --> > some title > > some text > > > <-- I need to find a way to remove this container --> > some other title > > some other text > > > > > So, what can I do to get the following instead: > > > some title > > some text > > some other title > > some other text > > > > Thank you in advance! > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Repeating two tags at the same level (i.e. without a container)
Hello, Can anybody recommend how to achieve the following: I need to repeat two tags at the same level, without placing them in a container. For example, the below markup shows a static containing two dynamic tags(one for the repeater and one for the two tags I need alongside each other): For the "items" I use the following component to place my 2 tags (a header and a div): some text When the repeater is rendered I get: <-- I need to find a way to remove this container --> some title some text <-- I need to find a way to remove this container --> some other title some other text So, what can I do to get the following instead: some title some text some other title some other text Thank you in advance! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: POST path via Ajax erratically invalid when used with #
I don't know which method, but I am curious which browser you are seeing it in. On Thu, Apr 28, 2011 at 4:59 PM, Jeremy Levy wrote: > I've noticed that in 1.4.17 in some circumstances when using Wicket to POST > data over AJAX the path it's POSTing to tries to include the value after # > in the URL. > > For example on a page with a URL like http://foo.bar/MyPage#oneWicket-Ajax > attempts to POST to http://foo.bar/MyPageone. > > I'm having trouble using the debugger to nail down where in the JS this is > happening, can someone help point me to the function? > > Jeremy > > -- > Jeremy Levy >
Re: WELCOME to users@wicket.apache.org
I didn't find a way to tell if the page was loaded from the browsers cache. I found a work around that's specific to our application but doesn't really solve my initial question. Thanks On Fri, Apr 29, 2011 at 9:53 AM, Jeremy Thomerson wrote: > Please post for future people who find this thread. > > On Thu, Apr 28, 2011 at 5:41 PM, Matthew Goodson > wrote: > > > I finally managed to figure out a workaround for this so it's all workin > > now. > > Thanks for your help! > > > > On Fri, Apr 29, 2011 at 8:49 AM, Matthew Goodson > > wrote: > > > > > > > > Yeah on the javascript side it will fire off a request to the server to > > > reload the tab each time. But wicket on the server thinks that the > > requested > > > tab is already loaded so ignores the request > > > > > > On Thu, Apr 28, 2011 at 9:07 PM, Martin Grigorov > >wrote: > > > > > >> The random parameter is there to prevent caching of the Ajax response. > > >> AFAIK clicking on a tab will reload its content each time. I.e. Wicket > > >> doesn't "think that the tab is already loaded". > > >> > > >> On Thu, Apr 28, 2011 at 12:41 AM, Matthew Goodson > > >> wrote: > > >> > Yeah I'm not feeling too hopeful > > >> > I have a tabbed panel which loads the tabs via ajax. When the page > is > > >> loaded > > >> > from the browsers cache i.e. the user hits the back button, the ajax > > >> request > > >> > to load the tab is sent but wicket thinks that tab is already loaded > > >> > (getSelectedTab()) so ignores the request. > > >> > > > >> > Here's the request that's sent. Wicket adds the random parameter. > I'm > > >> not > > >> > sure if I removed the random param (somehow) if that would breaks > > >> things. > > >> > > > >> > > > >> > > > http://localhost?wicket:interface=:27::IActivePageBehaviorListener:21:2&wicket:ignoreIfNotActive=true&tab=privacysettings&random=0.8811610792763531 > > >> > > > >> > Any ideas? > > >> > > > >> > > > >> > On Wed, Apr 27, 2011 at 7:22 PM, Martin Grigorov < > > mgrigo...@apache.org > > >> >wrote: > > >> > > > >> >> Hi, > > >> >> > > >> >> I'm not sure whether this is possible at all. > > >> >> Why do you need to do this ? > > >> >> > > >> >> On Wed, Apr 27, 2011 at 8:12 AM, Matthew Goodson > > >> >> wrote: > > >> >> > Hi guys, > > >> >> > I'm trying to find out if an ajax request has come from page that > > was > > >> >> loaded > > >> >> > from the browsers cache. Does anyone have any ideas of how I > could > > >> >> achieve > > >> >> > this? > > >> >> > Thanks > > >> >> > > > >> >> > > >> >> > > >> >> > > >> >> -- > > >> >> 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 > > >> >> > > >> >> > > >> > > > >> > > >> > > >> > > >> -- > > >> 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 > > >> > > >> > > > > > > > > > -- > > > > > > Matthew > > > > > > Software Engineer > > > > > > Matthew Goodson | spidertracks > > > > > > po box 5203 | 117a the square | Palmerston North 4441 | new zealand > > > > > > P: +64 6 353 3395 | M: +64 27 6969639 > > > > > > E: *matt...@spidertracks.co.nz** > > > www.spidertracks.com* > > > > > > spiderwatch - because in the rescue game, time = life. > > > > > > > > > > > > -- > > > > Matthew > > > > Software Engineer > > > > Matthew Goodson | spidertracks > > > > po box 5203 | 117a the square | Palmerston North 4441 | new zealand > > > > P: +64 6 353 3395 | M: +64 27 6969639 > > > > E: *matt...@spidertracks.co.nz** > > www.spidertracks.com* > > > > spiderwatch - because in the rescue game, time = life. > > > > > > -- > Jeremy Thomerson > http://wickettraining.com > *Need a CMS for Wicket? Use Brix! http://brixcms.org* > -- Matthew Software Engineer Matthew Goodson | spidertracks po box 5203 | 117a the square | Palmerston North 4441 | new zealand P: +64 6 353 3395 | M: +64 27 6969639 E: *matt...@spidertracks.co.nz** www.spidertracks.com* spiderwatch - because in the rescue game, time = life.
POST path via Ajax erratically invalid when used with #
I've noticed that in 1.4.17 in some circumstances when using Wicket to POST data over AJAX the path it's POSTing to tries to include the value after # in the URL. For example on a page with a URL like http://foo.bar/MyPage#one Wicket-Ajax attempts to POST to http://foo.bar/MyPageone. I'm having trouble using the debugger to nail down where in the JS this is happening, can someone help point me to the function? Jeremy -- Jeremy Levy
Re: WELCOME to users@wicket.apache.org
Please post for future people who find this thread. On Thu, Apr 28, 2011 at 5:41 PM, Matthew Goodson wrote: > I finally managed to figure out a workaround for this so it's all workin > now. > Thanks for your help! > > On Fri, Apr 29, 2011 at 8:49 AM, Matthew Goodson > wrote: > > > > > Yeah on the javascript side it will fire off a request to the server to > > reload the tab each time. But wicket on the server thinks that the > requested > > tab is already loaded so ignores the request > > > > On Thu, Apr 28, 2011 at 9:07 PM, Martin Grigorov >wrote: > > > >> The random parameter is there to prevent caching of the Ajax response. > >> AFAIK clicking on a tab will reload its content each time. I.e. Wicket > >> doesn't "think that the tab is already loaded". > >> > >> On Thu, Apr 28, 2011 at 12:41 AM, Matthew Goodson > >> wrote: > >> > Yeah I'm not feeling too hopeful > >> > I have a tabbed panel which loads the tabs via ajax. When the page is > >> loaded > >> > from the browsers cache i.e. the user hits the back button, the ajax > >> request > >> > to load the tab is sent but wicket thinks that tab is already loaded > >> > (getSelectedTab()) so ignores the request. > >> > > >> > Here's the request that's sent. Wicket adds the random parameter. I'm > >> not > >> > sure if I removed the random param (somehow) if that would breaks > >> things. > >> > > >> > > >> > http://localhost?wicket:interface=:27::IActivePageBehaviorListener:21:2&wicket:ignoreIfNotActive=true&tab=privacysettings&random=0.8811610792763531 > >> > > >> > Any ideas? > >> > > >> > > >> > On Wed, Apr 27, 2011 at 7:22 PM, Martin Grigorov < > mgrigo...@apache.org > >> >wrote: > >> > > >> >> Hi, > >> >> > >> >> I'm not sure whether this is possible at all. > >> >> Why do you need to do this ? > >> >> > >> >> On Wed, Apr 27, 2011 at 8:12 AM, Matthew Goodson > >> >> wrote: > >> >> > Hi guys, > >> >> > I'm trying to find out if an ajax request has come from page that > was > >> >> loaded > >> >> > from the browsers cache. Does anyone have any ideas of how I could > >> >> achieve > >> >> > this? > >> >> > Thanks > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> 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 > >> >> > >> >> > >> > > >> > >> > >> > >> -- > >> 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 > >> > >> > > > > > > -- > > > > Matthew > > > > Software Engineer > > > > Matthew Goodson | spidertracks > > > > po box 5203 | 117a the square | Palmerston North 4441 | new zealand > > > > P: +64 6 353 3395 | M: +64 27 6969639 > > > > E: *matt...@spidertracks.co.nz** > > www.spidertracks.com* > > > > spiderwatch - because in the rescue game, time = life. > > > > > > > -- > > Matthew > > Software Engineer > > Matthew Goodson | spidertracks > > po box 5203 | 117a the square | Palmerston North 4441 | new zealand > > P: +64 6 353 3395 | M: +64 27 6969639 > > E: *matt...@spidertracks.co.nz** > www.spidertracks.com* > > spiderwatch - because in the rescue game, time = life. > -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: WELCOME to users@wicket.apache.org
I finally managed to figure out a workaround for this so it's all workin now. Thanks for your help! On Fri, Apr 29, 2011 at 8:49 AM, Matthew Goodson wrote: > > Yeah on the javascript side it will fire off a request to the server to > reload the tab each time. But wicket on the server thinks that the requested > tab is already loaded so ignores the request > > On Thu, Apr 28, 2011 at 9:07 PM, Martin Grigorov wrote: > >> The random parameter is there to prevent caching of the Ajax response. >> AFAIK clicking on a tab will reload its content each time. I.e. Wicket >> doesn't "think that the tab is already loaded". >> >> On Thu, Apr 28, 2011 at 12:41 AM, Matthew Goodson >> wrote: >> > Yeah I'm not feeling too hopeful >> > I have a tabbed panel which loads the tabs via ajax. When the page is >> loaded >> > from the browsers cache i.e. the user hits the back button, the ajax >> request >> > to load the tab is sent but wicket thinks that tab is already loaded >> > (getSelectedTab()) so ignores the request. >> > >> > Here's the request that's sent. Wicket adds the random parameter. I'm >> not >> > sure if I removed the random param (somehow) if that would breaks >> things. >> > >> > >> http://localhost?wicket:interface=:27::IActivePageBehaviorListener:21:2&wicket:ignoreIfNotActive=true&tab=privacysettings&random=0.8811610792763531 >> > >> > Any ideas? >> > >> > >> > On Wed, Apr 27, 2011 at 7:22 PM, Martin Grigorov > >wrote: >> > >> >> Hi, >> >> >> >> I'm not sure whether this is possible at all. >> >> Why do you need to do this ? >> >> >> >> On Wed, Apr 27, 2011 at 8:12 AM, Matthew Goodson >> >> wrote: >> >> > Hi guys, >> >> > I'm trying to find out if an ajax request has come from page that was >> >> loaded >> >> > from the browsers cache. Does anyone have any ideas of how I could >> >> achieve >> >> > this? >> >> > Thanks >> >> > >> >> >> >> >> >> >> >> -- >> >> 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 >> >> >> >> >> > >> >> >> >> -- >> 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 >> >> > > > -- > > Matthew > > Software Engineer > > Matthew Goodson | spidertracks > > po box 5203 | 117a the square | Palmerston North 4441 | new zealand > > P: +64 6 353 3395 | M: +64 27 6969639 > > E: *matt...@spidertracks.co.nz** > www.spidertracks.com* > > spiderwatch - because in the rescue game, time = life. > > -- Matthew Software Engineer Matthew Goodson | spidertracks po box 5203 | 117a the square | Palmerston North 4441 | new zealand P: +64 6 353 3395 | M: +64 27 6969639 E: *matt...@spidertracks.co.nz** www.spidertracks.com* spiderwatch - because in the rescue game, time = life.
Re: WELCOME to users@wicket.apache.org
Yeah on the javascript side it will fire off a request to the server to reload the tab each time. But wicket on the server thinks that the requested tab is already loaded so ignores the request On Thu, Apr 28, 2011 at 9:07 PM, Martin Grigorov wrote: > The random parameter is there to prevent caching of the Ajax response. > AFAIK clicking on a tab will reload its content each time. I.e. Wicket > doesn't "think that the tab is already loaded". > > On Thu, Apr 28, 2011 at 12:41 AM, Matthew Goodson > wrote: > > Yeah I'm not feeling too hopeful > > I have a tabbed panel which loads the tabs via ajax. When the page is > loaded > > from the browsers cache i.e. the user hits the back button, the ajax > request > > to load the tab is sent but wicket thinks that tab is already loaded > > (getSelectedTab()) so ignores the request. > > > > Here's the request that's sent. Wicket adds the random parameter. I'm not > > sure if I removed the random param (somehow) if that would breaks things. > > > > > http://localhost?wicket:interface=:27::IActivePageBehaviorListener:21:2&wicket:ignoreIfNotActive=true&tab=privacysettings&random=0.8811610792763531 > > > > Any ideas? > > > > > > On Wed, Apr 27, 2011 at 7:22 PM, Martin Grigorov >wrote: > > > >> Hi, > >> > >> I'm not sure whether this is possible at all. > >> Why do you need to do this ? > >> > >> On Wed, Apr 27, 2011 at 8:12 AM, Matthew Goodson > >> wrote: > >> > Hi guys, > >> > I'm trying to find out if an ajax request has come from page that was > >> loaded > >> > from the browsers cache. Does anyone have any ideas of how I could > >> achieve > >> > this? > >> > Thanks > >> > > >> > >> > >> > >> -- > >> 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 > >> > >> > > > > > > -- > 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 > > -- Matthew Software Engineer Matthew Goodson | spidertracks po box 5203 | 117a the square | Palmerston North 4441 | new zealand P: +64 6 353 3395 | M: +64 27 6969639 E: *matt...@spidertracks.co.nz** www.spidertracks.com* spiderwatch - because in the rescue game, time = life.
Re: [osgi] package org.apache.wicket.request exported either from core and request packages
its too late to be doing this for 1.5. i agree we should not have package namespaces split across the jars, but fixing it in 1.5 would touch almost every single file and a lot of user code would be broken as a result. a good example is IDetachable which is in wicket-util but i left it in the wicket package instead of wicket.util. moving that class into util would touch around 90% of core code, and about 90% of user code. lets save this change for 1.6. we tried to create the uber jar but it failed. maybe if we used something like gradle we couldve done it, but switching build systems just for this seems a little extreme. what the proponents of osgi should do is create a jira issue, targetted for 1.6 and start outlining all the changes we need to do to make using wicket in osgi easier. we will do our best to make them as long as they do not impact the framework too much. -igor On Wed, Apr 27, 2011 at 1:42 AM, Martin Grigorov wrote: > On Wed, Apr 27, 2011 at 11:19 AM, Daniele Dellafiore > wrote: >> On Wed, Apr 27, 2011 at 8:57 AM, Martin Grigorov wrote: >> >> >>> I'm not against improving the current state. I'm saying that it want >>> last long without your help. >>> I said several times that the community can create the uber-jar >>> project in wicketstuff but so far no one wanted to do it. >>> I can do it for you but I wont test it in a real OSGi container. I'm >>> just not interested in this. >>> But we can apply your patches if they are reasonable. >>> >> >> Let's try. As I told, the first move is to rename into .core.util and >> .core.request the packages in -core bundle. This is reasonable? If it is >> not, well, I'll go for a issue for 1.6 and move totally on the uber-jar >> solution. If it is reasonable, we can proceed. >> > You said that broke some tests in your local build. See what are the problems. > Create a ticket and attach patches. It will be easier to review this way. > >> >>> About testing - I don't see how unit tests will help to keep it >>> working in the future. Any ideas/patches on this matter are welcome! >>> >> >> Eh, this can totally be done with pax-runner, as integration tests, but >> I've not enough experience with this so far. >> >> >>> >>> My concerns are that we had similar issue with Portlets support. When >>> we ran the vote whether to remove the support for Wicket 1.5 few >>> people (~ 5) asked to move the related code in wicketstuff so the >>> community can support it. Half an year later no one touched it so far. >>> >> >> This is totally reasonable. Let's see which way we can take here. >> >> Regards. >> > > > > -- > 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can't get Javascript filtering to work
Thanks, Andrea. I was running in DEVELOPMENT mode and switching to DEPLOYMENT mode fixed the problem. I hope this gets documented somewhere. Martin, are you saying that page rendering will not block waiting for the static resource to render while it will block on a component resource to render? Maybe I need to learn more about page locking in Wicket ... Thanks, Alec On Wed, Apr 27, 2011 at 3:20 AM, Martin Grigorov wrote: > Static resources are more suitable for the cases when you want to > avoid page locking. > E.g. when you need to deliver dynamic response and there is a chance > that the processing will be slower or there will be more clients for > the same resource. Using a normal component for this will suffer that > only one request can use one page instance (pagemap in 1.4) at a time. > > On Wed, Apr 27, 2011 at 11:54 AM, Andrea Del Bene > wrote: >> Hi Alec, >> >> are you sure you are testing your code in DEPLOYMENT mode and not in >> DEVELOPMENT mode? >> >> To answer your question about benefits of using shared resources, I can say >> that they make sense when you need to access a resource (like a picture) >> with >> an absolute path instead of a relative one (which typically is >> "./resource/package.of.class/pictureName.png" ). >> >>> Hello, >>> >>> I would like to get my Javascript files filtered and gzipped. I added >>> the following code in my Application#init(): >>> resourceSettings.setJavascriptCompressor(new >>> DefaultJavascriptCompressor()); >>> >>> However, when I add a resource using the following code, I can still >>> see comments and white spaces in the Javascript files loaded by the >>> web pages: >>> final JavascriptResourceReference resourceRef = new >>> JavascriptResourceReference(scope, "/common.js"); >>> >>> component.add(JavascriptPackageResource.getHeaderContribution(resourceRef)); >>> >>> What am I doing wrong? >>> >>> Also, I am struggling to understand the benefits of using shared >>> resources, e.g. when does it make sense to create a shared resource >>> for a Javascript file? >>> >>> Thanks, >>> >>> Alec >>> >>> - >>> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DataTable's view does not always update
Hi, I have several checkboxes in a datatable toolbar that control filtering for the content rendered in a datatable. When a checkbox is clicked, we add the datatable to the ajax target, which results in a new query. The dataprovider doQuery methond is called and returns the correct results. The problem is the view does not always update. No exceptions occur, the view just does not update. I set a breakpoint in onBeforeRender for the page and it is called when the view is updated. When the view is not updated it is not called. The only clue I have is the number of items in the view for the checkbox I just unselected is much larger (more than 100x) than the items selected by the unmodified checkboxes. Any ideas what would prevent the updating of the table? Tom -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-s-view-does-not-always-update-tp3481807p3481807.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: AjaxButton and HTML5 fields
Thanks Martin, that worked beautifully, well perhaps not beautifully but quite well. On Wed, Apr 27, 2011 at 1:52 AM, Martin Grigorov wrote: > Hi Jeremy, > > Yes, this is the way to make it working. > In Wicket 1.5 all this is already improved and Wicket provides Number, > Url and Range TextFields out of the box but it is quite easy to use > the other types too. > To make it work in 1.4.x you'll need to use the monkey-patch approach. > You can see the history of > > https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent/wicket-html5 > . > There is a Behavior which did exactly this before the improvements in > Wicket 1.5. > > On Wed, Apr 27, 2011 at 1:50 AM, Jeremy Levy wrote: > > I've extended TextField to support some of the HTML5 variants, number, > email > > etc. This works great when submitting via normal methods. However it > > doesn't work when using AjaxButton, the form data for the HTML5 fields is > > never POSTed. > > > > The root issue appears to be in wicket-ajax.js specifically lines 461-471 > > (Wicket 1.4.17): > > > > // this function intentionally ignores image and submit inputs > > Wicket.Form.serializeInput = function(input) { > >var type = input.type.toLowerCase(); > >if ((type == "checkbox" || type == "radio") && input.checked) { > >return Wicket.Form.encode(input.name) + "=" + > > Wicket.Form.encode(input.value) + "&"; > >} else if (type == "text" || type == "password" || type == "hidden" || > > type == "textarea" || type == "search") { > >return Wicket.Form.encode(input.name) + "=" + > > Wicket.Form.encode(input.value) + "&"; > >} else { > >return ""; > >} > > } > > > > As I understand this, basically the fields are ignored because they > aren't > > specifically handled in the code above... I've tested it by adding type > > =="number" etc and that fixes the problem. I suppose my question is, is > > this the right place to fix it, and if so what is the best way to > override > > this function, without having to do the whole js file? > > > > J > > > > > > -- > 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 > > -- Jeremy Levy
Re: terrain view in gmap2
Hi Daku, I cut the 1.4.17.1 release last night so you can now fetch it from maven using the same dependencies you indicated for 1.4.16. I will be sending an official release message later but its has already propogated into maven central so you can use it. Regards, Mike Dear Mike, Do you know when the maven dependency of gmap2 with the latest changes will be available on the maven repository? moreover the dependency description? so that I can start using it in my project. Currently the dependencies I use for my projects are: org.apache.wicket wicket 1.4.16 org.wicketstuff gmap2 1.4.16 org.apache.wicket wicket-extensions 1.4.16 Cheers, Daku On Thu, Apr 21, 2011 at 5:14 PM, Michael O'Cleirigh< michael.ocleir...@rivulet.ca> wrote: Hi, The best way is to checkout the existing code and add in the changes needed to allow you to access the new type (probably both Javascript and Java changes will be needed). GMap2 is in wicketstuff core here: https://github.com/wicketstuff/core ( https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/gmap2-parent ) If you checkout the 'core-1.4.x' branch you can edit the files to effect the change you want. Then you can file a ticket and attach your patch (or you can fork the repo, make your patch and register a pull request). Regards, Mike As I can see in the wicket-map.js, the types are hardcoded as following: this.getMapTypeString = function(mapType){ switch (mapType) { case G_NORMAL_MAP: return 'G_NORMAL_MAP'; break; case G_SATELLITE_MAP: return 'G_SATELLITE_MAP'; break; case G_HYBRID_MAP: return 'G_HYBRID_MAP'; break; default: return 'unknown'; break; }; } what I would like to do is, adding the G_PHYSICAL_MAP is there a way to add this type to the created map by injecting javascript code inside panel or page class? Daku On Thu, Apr 21, 2011 at 3:58 PM, lambdad...@gmail.com< lambdad...@googlemail.com> wrote: Hi, How can I show the terrain view in google maps using gmap2? As of now, I can only see the hybrid and satellite views by adding the respective controls using map.addConrol(GControl.GMapTypeControl). I am using the 1.4.16 version of gmap and wicket. Thanks you in advance. Daku - 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: wicket tags
I know I can work around this, it is just I see it as a place to improve framework. I want to use immediate-child selectors because I see benefits from this whatever that is I know that in runtime those tags goes away but while working with raw html files (let say graphic designer takes them and fixes some bugs with styling/rendering) he needs to think about wicket as well. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
Re: Continue navigating while on submit button process stuff on the background
Thank you Mzemeck, I am using Spring and I tried implementing @Async but for some reason when I fired up my wicket app it complained that it couldn't find the beans. I think it must have been because I'm declaring all of my spring managed beans (including my wicketApplication class) on my applicationContext file. Looking at the http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#scheduling Task Execution and Scheduling section of the spring reference manual, I decided to use a http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#scheduling-task-executor-usage TaskExecutor instead of using @Async annotations and it works perfectly with my current spring settings. I am autowiring spring beans on my WicketAppliation class. And I noticed that calling WicketApplication.get() from the taskExecutor kept throwing a "WicketRuntimeException: There is no application attached to current thread taskExecutor-1" exception. I realised that I didn't need to call my db services from the taskExecutor since none of those tasks are time consuming, the sending emails is what is time consuming and that's what I limited the functionality of taskExecutor to. Thanks, once more for your help. Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3480723.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: Back button problem in wicket
Hi, It sounds like you use spring dependency injection directly, which will indeed cause serialization issues. Instead, use the wicket spring integration, which will inject serializable proxies. See https://cwiki.apache.org/WICKET/spring.html for more info. Bas Op 28-4-2011 8:36, schreef madaan18: Hey, I am new to wicket.. I was having problem of back button in wicket.. but it got solved when i made all the pages and service class serializable.. but when i integrated my project with spring configuration.. i again faced the problem of back button in my project.. why does it happen ??? is it because of spring or something else Back button problem : I am on page 1 go 2 page 2 , then using back button i go to page 1 then on clicking a button , i get page expired... Please reply soon.. I need it very urgent -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-problem-in-wicket-tp3480260p3480260.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: wicket tags
1) Why do you use immediate-child selectors (involving > ) instead of just child selectors (without the >)? The selector ".custom-component-class header" will work. 2) wicket namespace tags are removed in deployment mode (or if you tell markup settings to strip them), so wicket:child will disappear the same way wicket:panel does. 3) Look into approaches that involve less subclassing, the real problem is that design-time you will not see the entire HTML template as long as fractions are spread around due to child class markup. Even using wicket:fragment elements within the replaced element will make it easier to see the design. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: kamiseq [mailto:kami...@gmail.com] Sent: 28. april 2011 11:14 To: users@wicket.apache.org Subject: wicket tags hi, this is more about how you guys working with wicket rather then a bug or something. and as Im relativelly new to wicket maybe you can help me out. I created panels that can be extended ie. my header usually I style the component in "offline" mode (without running the server) so I need to add some additional markup to mock it, plus I set wicket to strip wicket tags and override onComponentTag to set name of the tag (let say section) so it look like. my header so now the problem is that 1. I cannot use css selector like section.custom-component-class > header or I need to comment the wicket:panel tag on time I style component 2. wicket:child is not recognized as valid html tag so I cannot add style to it ie. display:none 3. surrounding wicket:child element with some html tag makes no sens why wicket tags couldnt be attributes so any valid html could have attribute like wicket:behavior="panel" or type="child" or something like that I know that this is not a big issue. probably designer should create html + css styles first and then developer turn it into the working code but with time things like that are annoying, so how do you work with such problems? pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
Re: how to read xml file through wicket application
is it possible to integrate xforms with apache wicket.. - Original Message - From: "Martin Grigorov-4 [via Apache Wicket]" Date: Thursday, April 28, 2011 2:21 pm Subject: Re: how to read xml file through wicket application To: srividhya > Wicket is not related. > Read the file and store it in the RDBMS with the tools you'd do it > without using Wicket. > > On Thu, Apr 28, 2011 at 9:46 AM, srividhya <[hidden email]> wrote: > > hi all, > > I have xml file and i want read the xml file from wicket application > > and store it into the RDMS through wicket application. How to do this > > one.pls any find the answer let me know.. > > > > > > with thanks and regards, > > Srividhya.N > > > > > > > > -- > > View this message in context: > > http://apache-wicket.1842946.n4.nabble.com/how-to-read-xml-file-through-wicket-application-tp3480274p3480274.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > - > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > > > --- If you reply to this email, your message will be added to the discussion below:> http://apache-wicket.1842946.n4.nabble.com/how-to-read-xml-file-through-wicket-application-tp3480274p3480480.html > To unsubscribe from how to read xml file through wicket application, click here. With thanks and Regards, N.Srividhya(J.R.F) O.T.C, Chennai. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-read-xml-file-through-wicket-application-tp3480274p3480526.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
wicket tags
hi, this is more about how you guys working with wicket rather then a bug or something. and as Im relativelly new to wicket maybe you can help me out. I created panels that can be extended ie. my header usually I style the component in "offline" mode (without running the server) so I need to add some additional markup to mock it, plus I set wicket to strip wicket tags and override onComponentTag to set name of the tag (let say section) so it look like. my header so now the problem is that 1. I cannot use css selector like section.custom-component-class > header or I need to comment the wicket:panel tag on time I style component 2. wicket:child is not recognized as valid html tag so I cannot add style to it ie. display:none 3. surrounding wicket:child element with some html tag makes no sens why wicket tags couldnt be attributes so any valid html could have attribute like wicket:behavior="panel" or type="child" or something like that I know that this is not a big issue. probably designer should create html + css styles first and then developer turn it into the working code but with time things like that are annoying, so how do you work with such problems? pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __
Re: Back button problem in wicket
Hi, what does your application/web server's log say? You should check it for some Wicket message or exception that could explain page expiration. Hey, I am new to wicket.. I was having problem of back button in wicket.. but it got solved when i made all the pages and service class serializable.. but when i integrated my project with spring configuration.. i again faced the problem of back button in my project.. why does it happen ??? is it because of spring or something else Back button problem : I am on page 1 go 2 page 2 , then using back button i go to page 1 then on clicking a button , i get page expired... Please reply soon.. I need it very urgent -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-problem-in-wicket-tp3480260p3480260.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: WELCOME to users@wicket.apache.org
The random parameter is there to prevent caching of the Ajax response. AFAIK clicking on a tab will reload its content each time. I.e. Wicket doesn't "think that the tab is already loaded". On Thu, Apr 28, 2011 at 12:41 AM, Matthew Goodson wrote: > Yeah I'm not feeling too hopeful > I have a tabbed panel which loads the tabs via ajax. When the page is loaded > from the browsers cache i.e. the user hits the back button, the ajax request > to load the tab is sent but wicket thinks that tab is already loaded > (getSelectedTab()) so ignores the request. > > Here's the request that's sent. Wicket adds the random parameter. I'm not > sure if I removed the random param (somehow) if that would breaks things. > > http://localhost?wicket:interface=:27::IActivePageBehaviorListener:21:2&wicket:ignoreIfNotActive=true&tab=privacysettings&random=0.8811610792763531 > > Any ideas? > > > On Wed, Apr 27, 2011 at 7:22 PM, Martin Grigorov wrote: > >> Hi, >> >> I'm not sure whether this is possible at all. >> Why do you need to do this ? >> >> On Wed, Apr 27, 2011 at 8:12 AM, Matthew Goodson >> wrote: >> > Hi guys, >> > I'm trying to find out if an ajax request has come from page that was >> loaded >> > from the browsers cache. Does anyone have any ideas of how I could >> achieve >> > this? >> > Thanks >> > >> >> >> >> -- >> 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 >> >> > -- 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: how to read xml file through wicket application
Wicket is not related. Read the file and store it in the RDBMS with the tools you'd do it without using Wicket. On Thu, Apr 28, 2011 at 9:46 AM, srividhya wrote: > hi all, > I have xml file and i want read the xml file from wicket application > and store it into the RDMS through wicket application. How to do this > one.pls any find the answer let me know.. > > > with thanks and regards, > Srividhya.N > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/how-to-read-xml-file-through-wicket-application-tp3480274p3480274.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
Back button problem in wicket
Hey, I am new to wicket.. I was having problem of back button in wicket.. but it got solved when i made all the pages and service class serializable.. but when i integrated my project with spring configuration.. i again faced the problem of back button in my project.. why does it happen ??? is it because of spring or something else Back button problem : I am on page 1 go 2 page 2 , then using back button i go to page 1 then on clicking a button , i get page expired... Please reply soon.. I need it very urgent -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-problem-in-wicket-tp3480260p3480260.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
how to read xml file through wicket application
hi all, I have xml file and i want read the xml file from wicket application and store it into the RDMS through wicket application. How to do this one.pls any find the answer let me know.. with thanks and regards, Srividhya.N -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-read-xml-file-through-wicket-application-tp3480274p3480274.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