Re: Dynamically Generated Wicket UI

2010-01-28 Thread Ernesto Reinaldo Barreiro
I really don´t know: I do not use that project myself. Maybe the developers can ask that question. Best, Ernesto On Thu, Jan 28, 2010 at 8:36 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi; I have looked at wicketwebbeans and it looks impressive. Does it support wicket 1.4.5 ? the

Re: Nasty problem with component not found and images [solved]

2010-01-28 Thread Thomas Kappler
On 01/27/10 21:51, Steve Swinsburg wrote: Thomas, Thanks for this. I may also have run into the multiple page load you say this might cause. Can you confirm if this is the case for anyimg src=# / and goes away when its justimg / ? I can confirm it happens for any img src=# /, with Firefox

know the last page user comes from

2010-01-28 Thread Martin Asenov
Hello, everyone, I was just wondering how could I know what's the page the user comes from, when he comes into a new page. In need that in order to redirect to previous page in my access denied page. Thank you ! Best regards, Martin

Re: wicket osgi (not Pax)

2010-01-28 Thread Ernesto Reinaldo Barreiro
Hi David, Antilia simply use equinox extensions for class-loading that way you can use normal Wicket components... No need to modify Wicket or your components. There I just create the extensions points I need to allow extending components at some places (e.g. toolbars). The projects I mentioned

Re: know the last page user comes from

2010-01-28 Thread Andrew Lombardi
Pass the previous Page in the constructor. On Jan 28, 2010, at 12:36 AM, Martin Asenov wrote: Hello, everyone, I was just wondering how could I know what's the page the user comes from, when he comes into a new page. In need that in order to redirect to previous page in my access denied

Re: Nasty problem with component not found and images [solved]

2010-01-28 Thread Marat Radchenko
You could file enhancement request to make EmptySrcAttributeCheckFilter also report images whose src starts with #. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

RE: know the last page user comes from

2010-01-28 Thread Martin Asenov
Hi, Andrew! I was saying that if I set up access denied page that way: getApplicationSettings().setAccessDeniedPage(MyAccessDeniedPage.class); there is no possibility to pass prev page in the constructor. Regards, Martin -Original Message- From: Andrew Lombardi

Re: know the last page user comes from

2010-01-28 Thread Thomas Kappler
On 01/28/10 09:36, Martin Asenov wrote: Hello, everyone, I was just wondering how could I know what's the page the user comes from, when he comes into a new page. In need that in order to redirect to previous page in my access denied page. Do you know about

Re: wicket osgi (not Pax)

2010-01-28 Thread David Leangen
Hi Ernesto, Antilia simply use equinox extensions for class-loading that way you can use normal Wicket components... No need to modify Wicket or your components. Ok, do you mean buddy classloading? If so, that's not real OSGi. :-) What I wanted to says is that you not always have to face

RE: know the last page user comes from

2010-01-28 Thread Martin Asenov
Yes I know about it, but never used it, is it suitable in the case I mentioned above? Would you give me some hints on how to implement it? Thanks Thomas! BR, Martin -Original Message- From: Thomas Kappler [mailto:thomas.kapp...@isb-sib.ch] Sent: Thursday, January 28, 2010 10:47 AM

Re: wicket osgi (not Pax)

2010-01-28 Thread Ernesto Reinaldo Barreiro
Yes I mean buddy class-loading. It might not be real OSGi but it works:-) as far as you only use equinox. I also do like a lot OSGi. But I know from experience that it might take some time for newbies to get the full grasp of it Cheers, Ernesto On Thu, Jan 28, 2010 at 9:47 AM, David

Re: know the last page user comes from

2010-01-28 Thread Thomas Kappler
On 01/28/10 10:01, Martin Asenov wrote: Yes I know about it, but never used it, is it suitable in the case I mentioned above? Would you give me some hints on how to implement it? Sure, here's some code from a small internal app I wrote recently. I got most of it from either the wiki or the

Catching arrays in page parameters

2010-01-28 Thread Stéphane Jeanjean
Hi, Do you know how to catch this kind of URL parameters ? linksOrder?listItem[]=1listItem[]=2listItem[]=3 When I try : String[] linkIds = parameters.getStringArray(listItem); No value in my array When I try : String[] linkIds = parameters.getStringArray(listItem[]); Only the

Repeating View Horizontally

2010-01-28 Thread Josh Kamau
Hi; How do you make repeating view to repeat the items horizontally? The number of items is not known at the time of creating the markup. Am a bit new to wicket Regards Josh

SV: Repeating View Horizontally

2010-01-28 Thread Wilhelmsen Tor Iver
How do you make repeating view to repeat the items horizontally? The number of items is not known at the time of creating the markup. Repeaters do not care about horizontal vs. vertical; it all comes down to the markup. E.g. you can have a ListView which generates a sequence of table cells:

RE: know the last page user comes from

2010-01-28 Thread Martin Asenov
Thank you, Thomas, for your time! Most likely this will help me solve the problem. Have a nice day! -Original Message- From: Thomas Kappler [mailto:thomas.kapp...@isb-sib.ch] Sent: Thursday, January 28, 2010 11:16 AM To: users@wicket.apache.org Subject: Re: know the last page user

Re: wicket osgi (not Pax)

2010-01-28 Thread Jochen Mader
Buddy-class loading is real OSGi since 4.1 ;) The new MANIFEST.MF entry is named Bundle- *BuddyPolicy.* Cheers, Jochen On Thu, Jan 28, 2010 at 9:55 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes I mean buddy class-loading. It might not be real OSGi but it works:-) as far

Re: wicket osgi (not Pax)

2010-01-28 Thread David Leangen
Buddy-class loading is real OSGi since 4.1 ;) The new MANIFEST.MF entry is named Bundle- *BuddyPolicy.* Ok, thanks for letting me know. I haven't looked at 4.1 at all. I'll have to look into the buddy thing. I'm wondering if it was some kind of compromise for the Equinox people, or if there

Wicket Pattern to reduce session size

2010-01-28 Thread Gaetan Zoritchak
Hi all, I was debugging my sessions size in order to reduce it and I saw that one of my page spend 20ko because of an dynamic image generated with JFreeChart. JFreeChart was serialized with my DynamicImageRessource. My first optimisation is to make JFreeChart a static field initialized in a

Re: images not under the context root directory

2010-01-28 Thread François Meillet
Thanks Ernesto, Jonas, Riyad, Don and Thomas. I implemented all of your solutions. I ended up with this one : 1) In the application init method I call this method, which add a directory to the WebApplicationPath private void initPath() { WebApplicationPath resourceFinder =

Re: wicket osgi (not Pax)

2010-01-28 Thread Jochen Mader
I ran into a lot of use-cases for it. Just take a look at esper and drools. They are packaged as OSGi and need to be able to work with classes provided by people using them. But yes, we are getting a little off topic here :D

Re: wicket osgi (not Pax)

2010-01-28 Thread Ernesto Reinaldo Barreiro
I did not know about it being included on the standard... Thanks for the update. Ernesto On Thu, Jan 28, 2010 at 11:18 AM, Jochen Mader pflanzenmoer...@gmail.comwrote: Buddy-class loading is real OSGi since 4.1 ;) The new MANIFEST.MF entry is named Bundle- *BuddyPolicy.* Cheers, Jochen

Re: Wicket Pattern to reduce session size

2010-01-28 Thread Pedro Santos
Then this image will to be the same for all sessions. If you don't want that object on your session, make sure at getImageData method implementation that you are always creating your chart object, and not keeping it in any instance variable. On Thu, Jan 28, 2010 at 8:28 AM, Gaetan Zoritchak

Re: Wicket Pattern to reduce session size

2010-01-28 Thread Gaetan Zoritchak
In fact, I just put the reference to JFreeChart as static. All the commons values are initialized in the static bloc (ie, Font, definition on the axis, ...). I keep the image generation done in the getImageData using the pageParameters. So every session or even page request can have its own

Re: Wicket, Spring 3 and UnitTesting

2010-01-28 Thread Jochen Mader
Sorry for my late answer. StaticWebApplicationContext doesn't cut it for me. Your example contains a small mistake: Inserting the mock-object won't work as registerSingleton expects to get a Class. As I want to create mock objects with EasyMock there are two approaches (as far as I know). The one

HTML Validator 1.3.1 released

2010-01-28 Thread Martijn Dashorst
Just today I (with the help of Emond Papegaaij) released Wicket Stuff HTML Validator version 1.3.1 The WicketStuff HTML Validator filter is based upon the work of the Tuckey developers. The WicketStuff validator only validates XHTML based on the XHTML DTDs. This package is licensed under the Gnu

@RequireHttps with reverse proxy

2010-01-28 Thread Boydens Joeri (OZ)
Hi, We have a wicket application running at the following address http://myserver.domain.be:8082/myapplication. When I do add the @RequiredHttps annotation to my pages, wicket does a great job redirecting my pages to https connection. I get something like:

Re: Repeating View Horizontally

2010-01-28 Thread Riyad Kalla
Josh, Just what Tor said -- repeaters will just repeat whatever markup you feed it over and over again doing substitution on each one according to the backing components. So just make sure you are repeating an element that flows right to left -- a td or span -- probably a span is what you want

Wicket Google Translation Localizer

2010-01-28 Thread Martin Makundi
Hi! I wonder, has anybody implemented a wicket stringresource localizer that if localized property is not found for the selected language, it would attempt to translate it using the default language? ** Martin - To unsubscribe,

Re: know the last page user comes from

2010-01-28 Thread Riyad Kalla
Martin, It looks like you are trying to implement the flow for authorization manually (User tries to go from PageA to PageB, but they require authorization, so you temporarily send them to PageC -- if they fail, send them back to PageA, if they succeed, send them to PageB). The good news is that

Re: images not under the context root directory

2010-01-28 Thread Riyad Kalla
Ernesto, Sorry about that -- I didn't mean to imply your impl was back, that was more directed at Francois along the lines of that's a lot of overhead, are you sure you need to do that? -- but now that I understand what his use-case is (saw his last reply about /usr/ext/img/IMAGES HERE) I get it.

Re: Wicket, Spring 3 and UnitTesting

2010-01-28 Thread mbrictson
The API is bit confusing: registerSingleton() on StaticWebApplicationContext takes a class, but registerSingleton() on ConfigurableListableBeanFactory takes a bean. That is why I first call getBeanFactory() in my example. ctx.getBeanFactory().registerSingleton(...) I use

Re: Dynamically Generated Wicket UI

2010-01-28 Thread dtoffe
The last release supports Wicket 1.3, but trunk supports 1.4 for a long time and a new release should happen soon. Regards, Daniel Josh Kamau wrote: Hi; I have looked at wicketwebbeans and it looks impressive. Does it support wicket 1.4.5 ? the currently available download at

Re: Wicket Google Translation Localizer

2010-01-28 Thread Victor Dolirio Ferreira Barbosa
There the default properties file for this purpose. Just make a properties file without locale info in this name, like this example: + |- Application_en_US.properties |- Application_pt_BR.properties |- Application.properties The last file is used if no other is found for the current locale.

Re: Wicket Pattern to reduce session size

2010-01-28 Thread Riyad Kalla
Gaetan, You can mark whatever instance that is causing the session to be so large as 'transient' to avoid it being serialized -- you'd have to recreate it each time it was needed though. So if it's in your model: = private String chartName; private String chartArguments; // maybe

Re: Repeating View Horizontally

2010-01-28 Thread Josh Kamau
Thanks. I managed with a span for horizontal flow and div for vertical flow. With a nested Repeating view, i am able to generate any my interfaces dynamically. Regards. On Thu, Jan 28, 2010 at 7:06 PM, Riyad Kalla rka...@gmail.com wrote: Josh, Just what Tor said -- repeaters will just

[wicket] Load Testing Wicket Applications

2010-01-28 Thread James Perry
Today I looked for a programmatic way to load test a Wicket application and there doesn't appear to be any tools at present to do so. I was thinking of writing one that load tests Wicket applications in a programmatic manner, which IMHO will be cleaner than using regular expressions with JMeter. I

Re: Wicket Google Translation Localizer

2010-01-28 Thread Edward Zarecor
I think Martin's idea is that in the absence of a localized properties file localization via a call to google translate would be attempted. I think there are likely to be more problems the benefits with this design. To wit, http://tinyurl.com/y8nvx2x. Perhaps a shell script to localize your

Re: Wicket Google Translation Localizer

2010-01-28 Thread John Armstrong
A default English locale is probably better then gibberish and automated calls to Google Translate will get you gibberish. 1) Online translation engines are terrible. Just yesterday I used google translate to tell me how to translate the word 'Bond', it told me '007' (true, try it, uppercase B is

Re: Wicket VoiceXML framework?

2010-01-28 Thread shetc
Hi Nino, I currently support an IVR system that uses an IBM proprietary technology rather than standard VXML. I have been tasked with determining the effort of refactoring our system to use VXML. I would love to use Wicket for this purpose. Ideally, there need to be components that do standard

Confirmation dialog

2010-01-28 Thread Josh Kamau
Hi Team lnkDelete.add(new SimpleAttributeModifier(onClick,return confirm('Are you sure you want to Delete?') )); The above code produces a confirmation message if its a Link and doesnt work if its an AjaxFallbackLink. How do i make it work on ajax link regards. Josh

Re: Confirmation dialog

2010-01-28 Thread Pedro Santos
Similar: http://old.nabble.com/javascript-confirm---seems-to-work-fine-with-link-markup-but-not-with-button-markup-td27242553.html On Thu, Jan 28, 2010 at 5:00 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi Team lnkDelete.add(new SimpleAttributeModifier(onClick,return confirm('Are you sure

Re: Confirmation dialog

2010-01-28 Thread Andrew Lombardi
use an IAjaxCallDecorator dataContainer.add(new AjaxButton(removeSelectedValues) { @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {

Re: Wicket Google Translation Localizer

2010-01-28 Thread Martin Makundi
I forgot to mention that it would be half as fun as much as it is useful ;) Maybe it would be funny for the users too ;) BTW: Google itself uses its translation engine to provide localized UI:s for different languages, and yes, they are funny sometimes. ** Martin 2010/1/28 John Armstrong

Re: Wicket Google Translation Localizer

2010-01-28 Thread John Armstrong
Well, I'd just say 'Buyer beware'. We've had management push to fire developers for doing this. Our Japanese customers were extremely sensitive. Germans as well now that I think about it.. John- On Thu, Jan 28, 2010 at 11:24 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I forgot

Re: wicket osgi (not Pax)

2010-01-28 Thread Jan Juno
Thank you very much On Thu, Jan 28, 2010 at 12:08 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: I did not know about it being included on the standard... Thanks for the update. Ernesto On Thu, Jan 28, 2010 at 11:18 AM, Jochen Mader pflanzenmoer...@gmail.com wrote:

Re: Wicket, Spring 3 and UnitTesting

2010-01-28 Thread Jochen Mader
Oh man, you are right. My eyes got a little selective on that line :)

Re: functional testing

2010-01-28 Thread Per Lundholm
We write tests first and use Wicket's built-in testing. It has some quirks so you may have to spend time with figuring out how to click an AjaxCheckBox, for instance. The tests target the logic of the view, such as when clicking here, that other thing should be disabled. Good test coverage

Worldwide address form

2010-01-28 Thread Chris Colman
I'm just wondering if anyone knows of a sample 'world address' entry form built using wicket. Ideally the data entry fields for the top level attributes: - world region - country - state/zone Would be drop down list boxes. The contents of any drop down (except the world region) would be

Opening Wicketpages from external link?

2010-01-28 Thread Ashika Umanga Umagiliya
Greetings, In application I am developing,client want to open the wicket 'SeachPage' from external page. My search page is like: public SearchPage extends WebPage{ private String queryString; public SearchPage(String queryString){ this.queryString=queryString; . . } } and from other

Re: Wicket VoiceXML framework?

2010-01-28 Thread Igor Vaynberg
we will be happy to help once you have specific questions and if you are willing to make your work open -igor On Thu, Jan 28, 2010 at 10:56 AM, shetc sh...@bellsouth.net wrote: Hi Nino, I currently support an IVR system that uses an IBM proprietary technology rather than standard VXML. I

Re: Opening Wicketpages from external link?

2010-01-28 Thread Igor Vaynberg
mount your page using QueryStringUrlCodingStrategy. create a constructor that takes PageParameters instance - this is where the query string will be. since you know the mount, et /mysearch use that to construct the url in the external app. -igor On Thu, Jan 28, 2010 at 5:38 PM, Ashika Umanga

Re: Opening Wicketpages from external link?

2010-01-28 Thread Ashika Umanga Umagiliya
Thank igor, I mounted my SeachPage in my Application class as follows: public NihonBareApplication() { mount(new QueryStringUrlCodingStrategy(/search,edu.jst.nihonbare.web.pages.SearchResultsPage.class)); } and put a constructor in 'SearchResultPage' as you told. But now when I

Re: Opening Wicketpages from external link?

2010-01-28 Thread Igor Vaynberg
hard to tell without seeing your setup. do other mounted pages work? do you use the /* mapping with your wicket filter? -igor On Thu, Jan 28, 2010 at 6:49 PM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Thank igor, I mounted my SeachPage in my Application class as follows: public

Re: Opening Wicketpages from external link?

2010-01-28 Thread Ashika Umanga Umagiliya
Igor Vaynberg wrote: do other mounted pages work? I mounted a test webpage and it wont work either. do you use the /* mapping with your wicket filter? Yes,and I use Spring integration as follows: filter filter-namewicket.nihonbare-web/filter-name

Re: Opening Wicketpages from external link?

2010-01-28 Thread Igor Vaynberg
strange, i guess you will have to debug with breakpoints to see where it goes wrong. -igor On Thu, Jan 28, 2010 at 7:11 PM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Igor Vaynberg wrote: do other mounted pages work? I mounted a test webpage and it wont work either. do you use

Re: @RequireHttps with reverse proxy

2010-01-28 Thread Igor Vaynberg
add an rfe to our jira -igor On Thu, Jan 28, 2010 at 7:43 AM, Boydens Joeri (OZ) joeri.boyd...@oz.be wrote: Hi, We have a wicket application running at the following address http://myserver.domain.be:8082/myapplication.  When I do add the @RequiredHttps annotation to my pages, wicket does

Re: Opening Wicketpages from external link?

2010-01-28 Thread Ashika Umanga Umagiliya
None of my mounted pages work! Do you think this has some thing to do with the way I have integrated Spring ? I have used ApplicationObjectApproach ,mentioned below : http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach Igor Vaynberg wrote: strange, i guess you will

Re: Opening Wicketpages from external link?

2010-01-28 Thread Igor Vaynberg
i doubt spring has anything to do with it. do you have any other filters? -igor On Thu, Jan 28, 2010 at 7:36 PM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: None of my mounted pages work! Do you think this has some thing to do with the way I have integrated Spring ? I have used

Re: Opening Wicketpages from external link?

2010-01-28 Thread Ashika Umanga Umagiliya
Nop,I only use Wicket filter! I use markup inheritance for my pages,so I create new plain test WebPages and mounted,and they wont mount either. I use Spring,Hibernate and Compass search engine in my app. You said to debug the code, you mean with Wicket source? I dont have good understand of

Re: Opening Wicketpages from external link?

2010-01-28 Thread Josh Kamau
I suggest you start with something very simple that works. You can use maven archetype to generate a project then mount the page there. If it works. Try adding adding your spring and hibernate stuff . If it works see where you went wrong in your main application Josh On Fri, Jan 29, 2010 at 6:57

Re: images not under the context root directory

2010-01-28 Thread Ernesto Reinaldo Barreiro
Hi Riyad, I didn't get offended by your message... which otherwise raised a very valid issue. Cheers, Ernesto On Thu, Jan 28, 2010 at 5:26 PM, Riyad Kalla rka...@gmail.com wrote: Ernesto, Sorry about that -- I didn't mean to imply your impl was back, that was more directed at Francois

Re: Opening Wicketpages from external link?

2010-01-28 Thread Ashika Umanga Umagiliya
Greetings, I create a test wicket project using maven archetype,and kept on configuring stuff gradually. I noticed that,after I configure Spring as shown in (1) below, the mounting wont work. It works fine for (2) which doesn't have Spring integration! !-- (1) -- !--

Re: Opening Wicketpages from external link?

2010-01-28 Thread Ashika Umanga Umagiliya
Greetings all, Just to make sure , I create another skeleton Wicket application and integrated a module which I used before with GWT (use only Spring+Hibernate) .And whenever I configure Spring , non of the mounted pages work? So is this something with Spring integration? Josh Kamau wrote:

Howto load StringResources from Database for Iternationalization?

2010-01-28 Thread Martin U
Hello Folks, i don't know if this question was ever done, but i didn't find anything suitable for me. In a huge webapplication which is being in the first steps of implementation, we want to use a Database (table) to store there any String Resources by locale for translation. I have been

java heap space IAuthorizationStrategy

2010-01-28 Thread Martin Asenov
Hello guys! Very strange exception occurred yesterday when trying to set IAuthorizationStrategy to my webapp. Here's the exception: SEVERE: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: Java heap space at