Re: Populate form according to selected item in dropdownchoice

2007-11-26 Thread Dipu Seminlal
there are two ways to do it override the wantOnSelectionChangedNotifications of the user dropdown to return true and override onSelectionChanged to do what you want, but this will result in server round trips ( refer the java of DropDownChoice ) or use an AjaxFormComponentUpdatingBehavior on the

wicket File downlaod

2007-11-26 Thread mbelarbi
Hi, I have some code that generates a pdf report file (using jasper reports). This file is stored somewhere in the project. What I need to do is be able to provide a link which makes that file available for download when clicked (downloadLink?). How do i do this using wicket? and are there any

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
opps, sorry what i meant to write was: File pdfFile = new File(test.pdf); But this doesn't really change much and the problem still remains that the file is empty (whether txt or pdf). mbelarbi wrote: Hi, I have some code that generates a pdf report file (using jasper reports). This

Re: wicket File downlaod

2007-11-26 Thread kent lai
The file really ought to reside in another location, but anyway... I think new File(test.pdf) would actually indicate a file named test.pdf, at the current working directory of the application server. Output the file's path with getCanoicalPath/getAbsolutePath (or something along that line)

Re: wicket File downlaod

2007-11-26 Thread Florian Sperber
Sometime ago this was answered on the list but i cannot find it right now :-) Maybe the following snippets will help you (it's wicket 1.2.6): WebResource export = new WebResource() { private static final long serialVersionUID = 1L; @Override public

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
thanks Kent lai, a system print for the file's getCanoicalPath seemed to show that the file path i was passing in was incorrect. Now it's resolved. Thanks kent lai wrote: The file really ought to reside in another location, but anyway... I think new File(test.pdf) would actually indicate

Ajax Memory Leak in IE

2007-11-26 Thread picknick
I'm using a DataView-Table with an AjaxPagingNavigator listing 100 items per page. Each item has an AjaxLink to a detail view. When paging through the list the memory usage of the IE is increased by about 500 KB per page. Without the ajax link it's doing well. AjaxDebugMode is disabled.

Re: wicket File downlaod

2007-11-26 Thread German Morales
Hi, I have never used jasper reports, but a quick search shows me that you can also generate the file as a byte[] in memory: http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperExportManager.html#exportReportToPdf(net.sf.jasperreports.engine.JasperPrint) Class

Re: Wicket + OSGI + Session

2007-11-26 Thread Daniel Stoch
Hi, You have written: This causes problems with session serialization/deserialization in an OSGI environment. I don't know is it a related problem, but I have the following situation (of course app is running in OSGi environment): I have a page with DataView displaying products list with images.

How can i test if a modal window is presented

2007-11-26 Thread Newgro
Hi *, i would like to test (WicketTester) if my modal error window is displayed. I tried isVisible, but it's always true. While debugging i saw that if the window has to be displayed, the contentpanel has a generatedMarkupId 0. But this property is not accessible. So how can i know that a

Re: Populate form according to selected item in dropdownchoice

2007-11-26 Thread Gwyn Evans
Indeed - See the Wiki for more info, e.g. http://cwiki.apache.org/WICKET/dropdownchoice-examples.html /Gwyn On 26/11/2007, Dipu Seminlal [EMAIL PROTECTED] wrote: there are two ways to do it override the wantOnSelectionChangedNotifications of the user dropdown to return true and override

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
Yes I agree, I will later move to providing these reports as streams on the fly instead of storing them, since there will be many many files generated so storage could be a problem in the long run. German Morales-2 wrote: Hi, I have never used jasper reports, but a quick search shows me

Re: Wicket-Seam Integration

2007-11-26 Thread jweekend
Frank, I have passed on a link to this thread (and to your blog) to a people I know who use or are interested in Seam. Did you start a thread on the Seam forum about your contribution? Could you please send me the link (a search for Wicket on the JBoss forums didn't return what I was looking

Re: Ajax Memory Leak in IE

2007-11-26 Thread Matej Knopp
Does it happen for IE6 only or also for IE7? Can you create a jira issue and attach a quickstart? -Matej On Nov 26, 2007 12:19 PM, picknick [EMAIL PROTECTED] wrote: I'm using a DataView-Table with an AjaxPagingNavigator listing 100 items per page. Each item has an AjaxLink to a detail view.

Form with CompounPropertyModel never call onSubmit()

2007-11-26 Thread Gervais
Hi all, I have this form component : public class RegistrationForm extends Form { private final static long serialVersionUID = 1l; public RegistrationForm(String id, StudentFolder studentFolder) { super(id, new CompoundPropertyModel(studentFolder));

Re: Form with CompounPropertyModel never call onSubmit()

2007-11-26 Thread Martijn Dashorst
Add a feedback panel to your page and notice the validation errors. Martijn On Nov 26, 2007 2:49 PM, Gervais [EMAIL PROTECTED] wrote: Hi all, I have this form component : public class RegistrationForm extends Form { private final static long serialVersionUID = 1l;

Re: Form with CompounPropertyModel never call onSubmit()

2007-11-26 Thread Gervais
__ NOD32 2686 (20071126) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com

TabbedPanel + authorization strategy

2007-11-26 Thread Marieke Vandamme
Hello, Is it possible to use TabbedPanel from wicket extensions together with the wicket auth-roles? Because TabbedPanel contains AbstractTab (which do not extend Component), I didn't find a way to set the specific roles for each tab. Thanks ! -- View this message in context:

How to validate a date in a defined format

2007-11-26 Thread Gervais
Hi All In my form i have added a required text filed for hold a date. My model object have a setter.. -- add(new RequiredTextField(dateOfBirth, java.util.Date.class)); -- public void setDateOfBirth(Date date) { this.date = date; } public Date getDateOfBirth() {

Re: Wicket + OSGI + Session

2007-11-26 Thread Sebastiaan van Erk
Yep, I've seen though before. It's probably a ClassNotFoundException on deserialization which gets eaten by ObjectInputStream (there's a bug report at Sun for this). To be sure you can debug trapping on ClassNotFoundException (caught and uncaught) when this problem occurs. However, since

wicketstuff-dojo : supported dojo versions, and/or IE nonsecure items complaint?

2007-11-26 Thread Timo Rantalaiho
Hello, We run into the good old this page contains both secure and non-secure items warning on IE 6 when updating DojoOrderableListContainer components via Ajax. We're using Dojo packaged with the wicketstuff-dojo 1.3.0-SNAPSHOT, and I understand that it's version 0.4. So this bug

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Fridolin Jackstadt
Marieke Vandamme schrieb: Hello, Is it possible to use TabbedPanel from wicket extensions together with the wicket auth-roles? Because TabbedPanel contains AbstractTab (which do not extend Component), I didn't find a way to set the specific roles for each tab. Thanks ! Hello, AbstractTab

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Marieke Vandamme
Hello, Thanks for the idea, but I already tried that.. The problem is that the panel is only created when the user clicks on the according tab, which in my case is too late. I don't want the tab to be printed if the user is not authorized. Fridolin Jackstadt wrote: Marieke Vandamme

NPE in FormTester.submit

2007-11-26 Thread Jason Anderson
Am i doing something wrong here? i couldn't find much docs on testing besides the javadoc and a page on the wiki... tester = new WicketTester(new MyApplication()); public void testLogin() throws Exception { tester.startPage(HomePage.class);

RE: how to update a label on a tree node selection

2007-11-26 Thread rik rik
Hi Timo You're right, the code format is horrible, but I had already had the answer from Florian into the first post (this post is a duplicate caused by hotmail...), so I thought that this post was not considered anymore... Sorry and thanks for the comment :-) Regards Rik Date: Sat, 24 Nov

Re: How to validate a date in a defined format

2007-11-26 Thread Igor Vaynberg
see DateField in extensions and in wicket-datetime modules, they take care of this... -igor On Nov 26, 2007 6:16 AM, Gervais [EMAIL PROTECTED] wrote: Hi All In my form i have added a required text filed for hold a date. My model object have a setter.. -- add(new

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Igor Vaynberg
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote: I don't want the tab to be printed if the user is not authorized. so dont add it to the list of itabs you give the panel... ? -igor Fridolin Jackstadt wrote: Marieke Vandamme schrieb: Hello, Is it possible to

Problems in beta3

2007-11-26 Thread Mats Norén
Hi, We've got a problem in our application when using the back button. The click trail goes something like this: - User clicks on search documents, which is a BookmarkablePageLink - User enters a couple of criteria and hits the search button = setResponsePage(SearchDocument.class, params = encoded

Re: Ajax Memory Leak in IE

2007-11-26 Thread picknick
Here's the jira issue. Currently i can't say anything about IE7. https://issues.apache.org/jira/browse/WICKET-1186 https://issues.apache.org/jira/browse/WICKET-1186 Matej Knopp-2 wrote: Does it happen for IE6 only or also for IE7? Can you create a jira issue and attach a quickstart?

Wicket (advanced) Calendar?

2007-11-26 Thread V. Jenks
I'm beginning a new commercial project with a partner that has good chances of landing some investment funding in the next year. We've set out using Wicket, JPA, Glassfish, and Netbeans as our toolbox and platform(s) as it is what we're experienced in and enjoy building applications with. We're

problems adding nodes to a BaseTree

2007-11-26 Thread Thomas Krause
Hello, since a few days I'm struggling with a problem I didn't find any solution yet. I have two pages containing some Panels and a BaseTree (I'm using my own node panel) each. setLinkType(BaseTree.LinkType.REGULAR) is used. What I want is that the tree is updated every time the page is updated

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Eelco Hillenius
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote: Hello, Thanks for the idea, but I already tried that.. The problem is that the panel is only created when the user clicks on the according tab, which in my case is too late. I don't want the tab to be printed if the user is

FormComponentPanel doesn't get the Model set on Page

2007-11-26 Thread Franklin Antony
Dear Friends, I have a situation where in which I have a FormComponentPanel. This FormComponentPanel is placed on Form and the Form in turn placed on a Page. Now when I instantiate the page I set a model on the page using setModel(new CompoundPropertyModel(myModel)). Further I DO NOT pass

Re: Wicket (advanced) Calendar?

2007-11-26 Thread Gerolf Seitz
maybe you could team up with the webical team (webical.org). Gerolf On Nov 26, 2007 5:25 PM, V. Jenks [EMAIL PROTECTED] wrote: I'm beginning a new commercial project with a partner that has good chances of landing some investment funding in the next year. We've set out using Wicket,

wicket success stories

2007-11-26 Thread Jonathan Locke
i'm starting an IT consulting business which will (of course) include lots of wicket work. i know there are a number of success stories out there and a few have been sent to mailing lists or published on our wiki or even in places like eweek magazine... now, it may be that we've already

ModalWindow Positioning

2007-11-26 Thread Clay Lehman
Hey everyone, I was wondering if there is a way to specify ModalWindow's initial positioning. I have left the cookie name as null, so the postion is not remembered, but I would like to be able to set a nice default. I have tried postion:absolute, and setting TOP and LEFt, but it always seems

Re: Problems in beta3

2007-11-26 Thread Johan Compagner
somehow proxy is getting an instance of a class which isn't build for : at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke( LazyInitProxyFactory.java:402) at org.apache.wicket.proxy.$Proxy76.searchDocuments(Unknown Source) at

howto include wicket in a JSP page with version 1.3-rc1

2007-11-26 Thread Seif
Hi, i'm a new wicket user, and i'm trying to execute a helloworld exemple included in a JSP page My problem is that wicket become a javax.servlet.Filter and not a Servlet in the 1.3-rc1 version :( to explain my problem here is some code: The file web.xml:

Re: Wicket meetup in San Francisco

2007-11-26 Thread Orion Letizi
Cool. If you go, stop by and say hello to Jonas Bonér. He's giving a presentation on Terracotta. I'm thinking that sometime in the first or second week of December looks pretty good. --Orion On Nov 26, 2007, at 1:36 PM, David Sean Taylor wrote: Thanks. I am going to be in Amsterdam on

Re: ModalWindow Positioning

2007-11-26 Thread Matej Knopp
Hi, there is currently no way to alter the position. It's always centered first time it shows. -Matej On Nov 26, 2007 9:12 PM, Clay Lehman [EMAIL PROTECTED] wrote: Hey everyone, I was wondering if there is a way to specify ModalWindow's initial positioning. I have left the cookie name as

Re: problems adding nodes to a BaseTree

2007-11-26 Thread Matej Knopp
It's hard to tell without any code. Basically, if you have proper listeners fired in your model the tree should update itself. Alternatively, you can try calling invalidateAll() in your page onBeforeRender() (before calling super.onBeforeRender). Can you post a quickstart? -Matej On Nov 26,

IDataProvider Best Practice for multiple POJOs

2007-11-26 Thread pwillemann
All the IDataProvider implementations I have seen use a single POJO. What about an example with multiple POJOs? For a single POJO I normally have a DataProvider object that gets data from my DAO object. For multiple POJOs would it be best to have a DataProvider object that gets data from a

Re: NPE in FormTester.submit

2007-11-26 Thread Timo Rantalaiho
On Mon, 26 Nov 2007, Jason Anderson wrote: tester.startPage(HomePage.class); I'm not sure if it changes anything here, but we've typically done tester.startPage(new ITestPageSource()... instead. from a quick peek thru the code it looks like the request cycle is detaching the

Re: FormComponentPanel doesn't get the Model set on Page

2007-11-26 Thread Timo Rantalaiho
On Mon, 26 Nov 2007, Franklin Antony wrote: I have a situation where in which I have a FormComponentPanel. This FormComponentPanel is placed on Form and the Form in turn placed on a Page. Now when I instantiate the page I set a model on the page using setModel(new

Re: howto include wicket in a JSP page with version 1.3-rc1

2007-11-26 Thread Timo Rantalaiho
On Mon, 26 Nov 2007, Seif wrote: Hi, i'm a new wicket user, and i'm trying to execute a helloworld exemple included in a JSP page You might be better off first trying stuff out in a simpler setting, without the JSP. My problem is that wicket become a javax.servlet.Filter and not a Servlet in

Re: NPE in FormTester.submit

2007-11-26 Thread Jason Anderson
the form is not ajax, its pretty much a standard form with just login and password fields and an onsubmit callback to send the page back to the originally requested url or homepage much like you would find in the login page included with the wicket-auth-roles classes i'm not sure that storing the

Date should return null

2007-11-26 Thread freak182
When im working with datefield,when i do not put a date to a textfield/datefield input from a datepicker it returns the current date/time.Now my problem is,I want it to return NULL when there is no or blank input from a textfield.Thanks a lot -- View this message in context:

Re: NPE in FormTester.submit

2007-11-26 Thread Timo Rantalaiho
On Mon, 26 Nov 2007, Jason Anderson wrote: and the code for MockHttpServletResponse: public void sendRedirect(String location) throws IOException { // If the location starts with ../ if (location.startsWith(../)) {

Re: NPE in FormTester.submit

2007-11-26 Thread Jason Anderson
i made a quickstart and attached it to the following issue https://issues.apache.org/jira/browse/WICKET-1187 thanks for the help On Nov 26, 2007 8:57 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Mon, 26 Nov 2007, Jason Anderson wrote: and the code for MockHttpServletResponse:

Re: Date should return null

2007-11-26 Thread Eelco Hillenius
On Nov 26, 2007 8:55 PM, freak182 [EMAIL PROTECTED] wrote: When im working with datefield,when i do not put a date to a textfield/datefield input from a datepicker it returns the current date/time.Now my problem is,I want it to return NULL when there is no or blank input from a

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Marieke Vandamme
That was my last solution, because i hoped it could be integrated with the auth-roles so i didn't have to check the role myself. Because if i'm right, before adding the tab to the list, i check with the role from the user's session? igor.vaynberg wrote: On Nov 26, 2007 6:56 AM, Marieke

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Eelco Hillenius
On Nov 26, 2007 10:38 PM, Marieke Vandamme [EMAIL PROTECTED] wrote: That was my last solution, because i hoped it could be integrated with the auth-roles so i didn't have to check the role myself. Because if i'm right, before adding the tab to the list, i check with the role from the user's

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Marieke Vandamme
That won't compile.. I guess because AbstractTab doesn't extends Component.. Eelco Hillenius wrote: On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote: Hello, Thanks for the idea, but I already tried that.. The problem is that the panel is only created when the user

Re: TabbedPanel + authorization strategy

2007-11-26 Thread Marieke Vandamme
I tried that, but it won't compile. Maybe because AbstractTab doesn't extends Component? I can't add the @AuthorizeAction to the panel, because the panel is only created when the specific tab is clicked. Eelco Hillenius wrote: On Nov 26, 2007 10:38 PM, Marieke Vandamme [EMAIL PROTECTED]

Re: Leaf menus stop responding after collapse and expand

2007-11-26 Thread yadubi
Eelco Hillenius wrote: On Nov 13, 2007 3:31 PM, yadubi [EMAIL PROTECTED] wrote: I have an application which is modeled on ajax SimpleTreePage example. Navigation is handled by overriding the onNodeLinkClicked of the LinkTree class. There are tree levels of nesting in the menu, the second

Re: Populate form according to selected item in dropdownchoice

2007-11-26 Thread tsuresh
Hi Dipu, Could you please tell me what to write in the method onSelecitionChanged(). It would be easier for me to understand if you provide the code example. I studied the link http://cwiki.apache.org/WICKET/dropdownchoice-examples.html but could not understand it. thanks Dipu Seminlal wrote:

Re: howto JSON Wicket works?

2007-11-26 Thread Pen
I am not really understanding your question? we are not creating any json object in browser. I believe that 's what we want to do in the normal form submit create the json object. This is just a simple example to demonstrate the Ajax round trip. Here bascially you get the updated data back.

Upgrading ResourceModel to 1.3.0-rc1

2007-11-26 Thread mraible
I'm trying to upgrade an application from 1.2.6 to 1.3.0-rc1. I've read the documentation, upgrade guide and mailing list archives. However, I don't seem to grasp how to upgrade the following class to 1.3.0: import org.apache.wicket.Component; import