Re: Basic print.css question

2008-11-07 Thread Nino Saturnino Martinez Vazquez Wael
You should really install firebug and web developer on firefox. Both will help you figure out what wrong when you hit problems like this.. Jim Pinkham wrote: Sorry this isn't so wicket specific, but I think I'm doing this media type thing correctly - what am I missing? Here's the view-source

Re: Bugs in wicket

2008-11-07 Thread Michael Sparer
google for wicket jira regards, Michael jensiator wrote: Hi I have noticied something in wicket-datetime that might be a bug. (DatePicker in a ModalWindow with IE7) Where can I registrate unknown Issues and check existing Issues in the wicket framework? Jens - Michael Sparer

Bugs in wicket

2008-11-07 Thread jensiator
Hi I have noticied something in wicket-datetime that might be a bug. (DatePicker in a ModalWindow with IE7) Where can I registrate unknown Issues and check existing Issues in the wicket framework? Jens -- View this message in context:

SV: XMLHttpRequest.open(...)

2008-11-07 Thread Wilhelmsen Tor Iver
that XMLHttpRequest.open(...) are disallowed if they target for another domain, than the one the document is in? Like disallowing cross-site calls? Yes, to avoid cross-site scripting attacks; remember Javascript has globally accessible objects so if cross-site scripting was allowed then an

Re: wicket terracotta integration is out

2008-11-07 Thread Nino Saturnino Martinez Vazquez Wael
Okay great, and thanks :) richardwilko wrote: Well the module also includes an terracotta xml config file so that terracotta knows which internal wicket classes could be clustered, but apart from that there is nothing else. I don't have any example applications but an normal application can be

Re: TextField inside a ModalWindow problems

2008-11-07 Thread Nino Saturnino Martinez Vazquez Wael
As I can remember you have to turn the confirmation message off (the modal one) or something in order to make it work with ajax. richardwilko wrote: It still seems as though the form is trying to submit in a non-ajax way, as this is the same as navigating to a different url, which is why your

Re: Default locale / resource language problem

2008-11-07 Thread Pointbreak
You can make your own subclass of Session, and make it call setLocale in the contructor, then override getWebSessionClass in your application class. On Fri, 7 Nov 2008 14:45:57 +0100, Rutger Jansen [EMAIL PROTECTED] said: You were just ahead of me as I saw that the given Locale in one of my

Re: Default locale / resource language problem

2008-11-07 Thread Pointbreak
You have to set an explicit locale for your session (call setLocale() in the session) to force a language. Defaultlocale is just what it says it is: a default. Your browser probably asks for englis pages (see your browser settings). On Fri, 7 Nov 2008 14:06:46 +0100, Rutger Jansen [EMAIL

File Chooser dialog needed

2008-11-07 Thread 123shyam
Hello, I am working on wicket. I need to open a filechooser dialog or a file open = dialog (like we have in JFileChooser). I am currently unable to implement it from my wicket page. All I want is a = file chooser dialog showing only directories , user chooses nd I get back t= he path selected.

Re: Wicket - Ajax(Fallback)Button and Form - possible solution to problem

2008-11-07 Thread Jeremy Thomerson
Sorry, yes. Since you are skipping default form processing, it is also skipping pushing things onto the models So, you have a couple of options... Option one - get the value directly from the text field, i.e. System.*out*.println(USERNAME WAS: + tfUsername.getValue()); Option two - don't

Re: Custom Wicket request Intercept Filter

2008-11-07 Thread Jeremy Thomerson
This sounds almost like an authorization strategy, in which case you could catch the component (page) creation and check it there. ( IAuthorizationStrategy.isInstantiationAuthorized -- Jeremy Thomerson http://www.wickettraining.com On Fri, Nov 7, 2008 at 6:12 AM, Joel Halbert [EMAIL

Re: File Chooser dialog needed

2008-11-07 Thread Charlie Dobbie
2008/11/7 Jeremy Thomerson [EMAIL PROTECTED] Depending on what you're doing, if you really had to do something with a directory, you may have to horror-music-starts use an applet /horror-music. Hope this helps. WicketMessage: Tag 'horror-music-starts' (line 2, column 27) has a mismatched

Re: File Chooser dialog needed

2008-11-07 Thread Jeremy Thomerson
I forgot the semi-colon, too! On Fri, Nov 7, 2008 at 10:01 AM, Charlie Dobbie [EMAIL PROTECTED] wrote: 2008/11/7 Jeremy Thomerson [EMAIL PROTECTED] Depending on what you're doing, if you really had to do something with a directory, you may have to horror-music-starts use an applet

Custom Wicket request Intercept Filter

2008-11-07 Thread Joel Halbert
Hi, I'd like to be able to write something akin to a request Filter, but for wicket requests, specifically I'd like it to be Page aware - i.e. it was aware of the wicket Page class that the request was being forwarded to. I'd like to do some custom validation in this class and based on the result

Re: wicket terracotta integration is out

2008-11-07 Thread richardwilko
Well the module also includes an terracotta xml config file so that terracotta knows which internal wicket classes could be clustered, but apart from that there is nothing else. I don't have any example applications but an normal application can be turned to a clustered one quite easily. I will

WicketMockServlet-filestore question

2008-11-07 Thread jchappelle
I have started unit testing my wicket pages using the WicketTester class. For now most of my tests just consist of something like this: WicketTester tester = getWicketTester(); tester.startPage(new AdminPage());

Re: RESTful Web Services with Wicket (and XStream)

2008-11-07 Thread Bruno Borges
Check this tutorial: http://xstream.codehaus.org/json-tutorial.html cheers, Bruno Borges blog.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Fri, Nov 7, 2008 at 4:50 AM, francisco

Re: File Chooser dialog needed

2008-11-07 Thread Bruno Borges
If you really want to do that, make sure you install your web application in each user's computer... :-) Just to make sure the JFileChooser will actually work. And if you warn the user about something, don't use a javascript alert. JOptionPane is your friend here too! cheers, Bruno Borges

Re: XMLHttpRequest.open(...)

2008-11-07 Thread Martin Funk
Hi Wilhelmsen, 2008/11/7 Wilhelmsen Tor Iver [EMAIL PROTECTED] that XMLHttpRequest.open(...) are disallowed if they target for another domain, than the one the document is in? Like disallowing cross-site calls? Yes, to avoid cross-site scripting attacks; remember Javascript has globally

Default locale / resource language problem

2008-11-07 Thread Rutger Jansen
Hi, I can't seem to get default error/validation messages in my own language (Dutch) even though my default Locale is correct (java.util.Locale.getDefault() = nl_NL). They keep showing up in English. Is there another place where the default converters get the localization of their messages,

Re: Default locale / resource language problem

2008-11-07 Thread Rutger Jansen
You were just ahead of me as I saw that the given Locale in one of my custom validators was en_EN. Is there a way to force the locale of the session globaly so I don't have to check the session's locale on each page? On 11/7/08, Pointbreak [EMAIL PROTECTED] wrote: You have to set an explicit

Re: TextField inside a ModalWindow problems

2008-11-07 Thread richardwilko
It still seems as though the form is trying to submit in a non-ajax way, as this is the same as navigating to a different url, which is why your modal window is asking for confirmation. You still need prototype for the wicket version, as that is just the js code wrapped up in a wicket behavior.

Re: LoadableDetachableModels with replicated data fed in through constructors.

2008-11-07 Thread Graeme Knight
Thanks Jeremy. I have those conversations often - especially over silly things. I need to go back and look at the ins and outs of serialization. I guess if I have several private references to the same object in multiple LoadableDetachableModels I guess the actual object itself only gets

RE: File Chooser dialog needed

2008-11-07 Thread Shyam Narayanan
Thanks for your reply. My main aim of this task is to download an item into the directory user selects. So need to open a file dialog to help user choose a directory and then from it get the path user chose, so as to proceed with my download. So as you can imagine for this, i have a browse

cannot get ContextImage/Path to create the right path

2008-11-07 Thread Trent Larson
I am trying to access different static images that aren't Wicket resources, though their path is set programmatically by my Wicket pages; unfortunately I'm seeing strange behavior. My wicket app is installed under /myContext/wicketStuff (with wicketFilter url-pattern pointing to 'wicketStuff'),

Is there a way to trigger the suggestion list of an AutoCompleteTextField by clicking another button

2008-11-07 Thread Stachow, Darius
Hi, I'm using Wicket 1.3.4 and I have a question regarding the AutoCompleteTextField. You can let the suggestion list pop up by pressing keys inside the text field. That works fine but I need to trigger the suggestion list additionally through another component that in my case would be

Re: File Chooser dialog needed

2008-11-07 Thread Jeremy Thomerson
You simply can't do this in web apps. You don't choose where to write something to - you don't have access to write anything to the user's computer. All you can do is give the user a file to download, and the browser will automatically ask them for what folder they want to save it to. For this,

Re: Absolute URL problem with HeaderContributor (1.3.4)

2008-11-07 Thread Maarten Bosteels
see also http://wicket.apache.org/quickstart.html Maarten On Fri, Nov 7, 2008 at 8:43 AM, Martin Funk [EMAIL PROTECTED] wrote: 2008/11/7 Sean Brookes [EMAIL PROTECTED] Thank you for your quick response igor but I don't think I understand your response. We are currently using version 1.3.4,

Are pages stored in session?

2008-11-07 Thread danelav
I have a very basic link to a FAQPage, as shown below. Every time that link is clicked, the FAQPage constructor is called. This page is fairly static, and there's no reason for it to be re-constructed on every request. Is there a way to create the link so that it will use an existing instance of

Re: cannot get ContextImage/Path to create the right path

2008-11-07 Thread Igor Vaynberg
this issue has already been fixed. you can either compile trunk or wait for m4 to go official -igor On Fri, Nov 7, 2008 at 9:49 AM, Trent Larson [EMAIL PROTECTED] wrote: I am trying to access different static images that aren't Wicket resources, though their path is set programmatically by my

Re: Are pages stored in session?

2008-11-07 Thread Jeremy Thomerson
Is there dynamic content in this page? If not, there's no real loss in creating a new one for each request - this is very inexpensive. If there is, just cache it somewhere in your service layer or the application, etc... Components (including pages) should generally not be reused for multiple

Top-level classpath Resources

2008-11-07 Thread Adriano dos Santos Fernandes
Hi! With this: component.add(HeaderContributor.forCss(YuiButtonBehavior.class, yui/build/button/assets/skins/sam/button.css)); I need to put yui directory inside the directory of YuiButtonBehavior. How could I make yui a top directoy, i.e., just inside the resources (on the

Re: Are pages stored in session?

2008-11-07 Thread Bruno Borges
Let say your FAQPage loads data from the database. You could put an instance of that page at your MyWicketApplication. Like this: MyApp extends WebApplication { private FAQPage faqPage; public FAQPage getFAQPage() { return faqPage; } protected void init() {

Re: Top-level classpath Resources

2008-11-07 Thread Jeremy Thomerson
If I understand correctly, you want to basically include your resources relative to the default package rather than in a subpackage. If this is true, you could create an empty no-op class like SomeClassNameThatMakesSense in the default package. Then you could do new

Re: RESTful Web Services with Wicket (and XStream)

2008-11-07 Thread francisco treacy
xstream supports json output * Alternative output format. The modular design allows other output formats. XStream ships currently with JSON support and morphing. francisco On Fri, Nov 7, 2008 at 11:34 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Still slightly on topic, but do you know of a

Re: Are pages stored in session?

2008-11-07 Thread Bruno Borges
Ok, forget about it... Components are NOT Thread safe... :-) Just make FAQPage a Stateless WebPage... ;-) Cheers, Bruno Borges blog.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On

Re: Basic print.css question

2008-11-07 Thread Pointbreak
Is this a quiz? Your #navlist is not inside a #footer and your #noprint is not an id but a class. On Thu, 6 Nov 2008 19:55:37 -0500, Jim Pinkham [EMAIL PROTECTED] said: Sorry this isn't so wicket specific, but I think I'm doing this media type thing correctly - what am I missing? Here's the

Re: Top-level classpath Resources

2008-11-07 Thread Bruno Borges
By the way, Adriano, there's a Wicket Portuguese community around there... If you want to join us, please feel free. groups.google.com/wicket-ptbr Bruno Borges blog.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. -

Re: Top-level classpath Resources

2008-11-07 Thread Bruno Borges
Sorry, the correct address is: http://groups.google.com/group/wicket-ptbr Cheers, Bruno Borges blog.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Fri, Nov 7, 2008 at 12:41 PM,

Re: WicketMockServlet-filestore question

2008-11-07 Thread Igor Vaynberg
looks like dummywebapplication, which the tester uses by default, uses HttpSessionStore which should not cause any directories to be created. what wicket version are you using? -igor On Fri, Nov 7, 2008 at 9:04 AM, jchappelle [EMAIL PROTECTED] wrote: I have started unit testing my wicket pages

Re: FileUpload always null

2008-11-07 Thread Steve Swinsburg
Ok this is sorted out now. Turned out the RequestFilter from Sakai was altering fileuploads, had to make a change there so get past it. cheers, Steve On 6 Nov 2008, at 17:53, Steve Swinsburg wrote: Ok I just thought that using the WicketServlet rather than the WicketFilter might have

Re: RESTful Web Services with Wicket (and XStream)

2008-11-07 Thread Steve Swinsburg
Still slightly on topic, but do you know of a fast and efficient way to output JSON (some library like XStream perhaps) in the same method, rather than XML? cheers, Steve On 7 Nov 2008, at 04:05, Ned Collyer wrote: As you probably are aware - this is just outputting XML using

Re: WicketMockServlet-filestore question

2008-11-07 Thread jchappelle
I am using version 1.3.4. I am creating my WicketTester by handing it my custom Application object in the constructor. The code I posted below is extending a BaseWicketTest class that I have created that has a getWicketTester() method in it. Thanks igor.vaynberg wrote: looks like

Re: Top-level classpath Resources

2008-11-07 Thread Adriano dos Santos Fernandes
Bruno Borges escreveu: By the way, Adriano, there's a Wicket Portuguese community around there... If you want to join us, please feel free. groups.google.com/wicket-ptbr Yup. I'm there too. :-) Adriano - To unsubscribe,

Re: ajax request and hibernate lazy loading

2008-11-07 Thread Bruno Borges
With Ajax request I would probably avoid that pattern. That could lead to serious problems. How about having a different method to load the object with the required data for that specific ajax request? cheers, Bruno Borges blog.brunoborges.com.br +55 21 76727099 The glory of great men should

ajax request and hibernate lazy loading

2008-11-07 Thread miro
I am using hibernate and all my collections are lazy , they get loaded only when called . I am also using ajax to get collection property on click , but i am getting Lazy loading exception for ajax request where I load the collection , I am using

Re: ajax request and hibernate lazy loading

2008-11-07 Thread Martijn Dashorst
I would actually keep using OSIV. To answer the question: probably you are using models wrong. If OSIV works for your normal requests, it works for Ajax requests. There is nothing different between these requests. Martijn On Fri, Nov 7, 2008 at 1:33 PM, Bruno Borges [EMAIL PROTECTED] wrote:

Re: ajax request and hibernate lazy loading

2008-11-07 Thread miro
You are right this is not related to ajax and more of hibernate . here is my object hirearchy EaBatchInfo has many EaBatchAuditInfo In the page constructor I load List of EaBatchInfo and render my page .By default I pull the first index from list to display EaBatchAuditInfo

Re: Wicket - Ajax(Fallback)Button and Form - possible solution to problem

2008-11-07 Thread jpswain
Jeremy, It was getValue() that I was looking for! I guess I didn't realize the difference between the Model object and the Component's value. For some reason I thought the Model was the necessary glue between the Component and my Java code. Thanks for the help man! Jamie Jeremy Thomerson-5

Re: WicketMockServlet-filestore question

2008-11-07 Thread Igor Vaynberg
then you have to subclass your application, override newsessionstore and return httpsessionstore for your tests. -igor On Fri, Nov 7, 2008 at 10:51 AM, jchappelle [EMAIL PROTECTED] wrote: I am using version 1.3.4. I am creating my WicketTester by handing it my custom Application object in

Re: how to replace 2.0's reAttach

2008-11-07 Thread Igor Vaynberg
yes -igor On Fri, Nov 7, 2008 at 1:10 PM, Stefan Lindner [EMAIL PROTECTED] wrote: What is the perfect way to replace the reattach method of wicket 2.0 in Wicket 1.4? Is it correct to replace the 2.0 expressioin myComponent.reAttach() with addOrReplace(myComponent); Stefan

how to replace 2.0's reAttach

2008-11-07 Thread Stefan Lindner
What is the perfect way to replace the reattach method of wicket 2.0 in Wicket 1.4? Is it correct to replace the 2.0 expressioin myComponent.reAttach() with addOrReplace(myComponent); Stefan - To unsubscribe,

Re: ajax request and hibernate lazy loading

2008-11-07 Thread Nino Saturnino Martinez Vazquez Wael
Yep that was also what I were thinking. Martijn Dashorst wrote: I would actually keep using OSIV. To answer the question: probably you are using models wrong. If OSIV works for your normal requests, it works for Ajax requests. There is nothing different between these requests. Martijn On

RE: how to replace 2.0's reAttach

2008-11-07 Thread Stefan Lindner
Thanks Igor! -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. November 2008 22:14 An: users@wicket.apache.org Betreff: Re: how to replace 2.0's reAttach yes -igor On Fri, Nov 7, 2008 at 1:10 PM, Stefan Lindner [EMAIL PROTECTED] wrote: What

Re: WicketMockServlet-filestore question

2008-11-07 Thread jchappelle
The target and the target/work folder are still getting created but I can live with that. If you know of a quick and easy way to stop that from happening then that would be great. Otherwise don't spend any time on it. Thanks for your help. Josh igor.vaynberg wrote: then you have to

Re: Bugs in wicket

2008-11-07 Thread Bruno Borges
What would work on IE7 to do the same thing? Bruno Borges blog.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Fri, Nov 7, 2008 at 3:38 PM, TahitianGabriel [EMAIL PROTECTED] wrote:

open view session examples for a page

2008-11-07 Thread miro
any examples for open view session in a wicket page -- View this message in context: http://www.nabble.com/open-view-session-examples--for-a-page-tp20389719p20389719.html Sent from the Wicket - User mailing list archive at Nabble.com.

Refreshing the form inside the ModalWindow

2008-11-07 Thread WicketUser0208
richardwilko wrote: It still seems as though the form is trying to submit in a non-ajax way, as this is the same as navigating to a different url, which is why your modal window is asking for confirmation. You still need prototype for the wicket version, as that is just the js code

Re: open view session examples for a page

2008-11-07 Thread James Carman
You mean using Spring's OpenSessionInViewFilter? If so, I've got an example application that has all the configuration you'll need: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ It has stuff set up for Spring Security (formerly Acegi) also. On Fri, Nov 7, 2008 at 5:31 PM, miro