Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-24 Thread Ravindra Wankar
Craig, It's been just over 2 weeks since I've started looking at Wicket. In the past I've had to abandon evaluation of JSF and Struts 2 due to lack of time. I was spending a lot of time writing code to decide if they were the right choice. I could not find "applications" written from where

Re: [Wicket-user] [Fwd: Re: Wicket-Kronos-CMS repository locked on startup]

2007-05-24 Thread Ted Roeloffzen
The weird thing is, that i've tried it on my pc and it works fine. I don't get any exceptions and everything works like it should 2007/5/22, Daniel Stoch [EMAIL PROTECTED]: Deleting the repository directory doesn't help. I have tried this earlier, I think that a new repository is created by

Re: [Wicket-user] ListView class cast exception

2007-05-24 Thread Robert Novotny
Hello, your getUsers() method looks suspicious - it seems to create list of strings (not Users). Particularly, you add Strings retrieved from the resultset into the list. retval.add(rs.getString(1)); Therefore the ListView component gets passed the list of Strings retrieved from the first

[Wicket-user] wicket - Load the pdf file after onSubmit

2007-05-24 Thread kenixwong
Once i click the Generate Report Button, the onSubmit function of button will called and generate a report in pdf format. Once the report is generated, i need it immediately display in the browser (either current page or pop up page). Anyone can help ? note: The Report is implemented with

Re: [Wicket-user] wicket - Load the pdf file after onSubmit

2007-05-24 Thread Harald Gruber
try this... public void onSubmit() { File file = generatePdfReport(); ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(new FileResourceStream(new org.apache.wicket.util.file.File(file))); target.setFileName(Filename.pdf);

Re: [Wicket-user] Component for opening/closing an arbitrary div layer in Wicket.

2007-05-24 Thread Martijn Dashorst
Did you look at the phonebook example (found in the wicketstuff repository)? It shows how to build a (simple) phone book web application using wicket, spring and (hibernate|ibatis|shades) It is basically a petstore, but a bit simpler Martijn On 5/24/07, Ravindra Wankar [EMAIL PROTECTED] wrote:

Re: [Wicket-user] HttpServletRequest's attributes?

2007-05-24 Thread Martijn Dashorst
On 5/16/07, James Renfro [EMAIL PROTECTED] wrote: But the javadoc says that it's not recommended to call getHttpServletRequest. The warning is there to guide people away from old habits. We have PageParameters for request parameters, and other mechanisms. Just like storing things directly into

Re: [Wicket-user] FileUploadField clear after failed validation. Still a bug?

2007-05-24 Thread manuel barzi
Nothing to say about this, right? the bug still there :( On 5/23/07, manuel barzi [EMAIL PROTECTED] wrote: Dear Sirs, I am registering exactly the bug registered here: http://www.nabble.com/--wicket-Bugs-1484321---FileUploadField-clear-after-failed-validation-tf1581602.html#a4292585 Is

Re: [Wicket-user] FileUploadField clear after failed validation. Still a bug?

2007-05-24 Thread Johan Compagner
make a jira issue for this (if not already there) on the apache side (wicket sourceforge bug list got a bit lost) And attach a patch then we will apply that asap. johan On 5/24/07, manuel barzi [EMAIL PROTECTED] wrote: Nothing to say about this, right? the bug still there :( On

Re: [Wicket-user] tinyMCE + weblogic problems

2007-05-24 Thread Iulian Costan
please send the wrapped exception. and also check if you have commons-collections-3.1 in classpath. /iulian On 5/23/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hey guys, When we try to use tiny mce for wicket 1.3 w/ weblogic we get this error in our startup:

Re: [Wicket-user] wicket - Load the pdf file after onSubmit

2007-05-24 Thread kenixwong
Sorry, i stil cant get it... more detail ?? public void onSubmit() { File file = exportRequestDetailsAsPdf(sqlField, sqlCondition, sqlOrderBy); System.out.println(file); - return me NULL ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(new

Re: [Wicket-user] wicket - Load the pdf file after onSubmit

2007-05-24 Thread Martijn Dashorst
Perhaps it is beneficial if you tell us which version of Wicket you are using? Judging from your remark, I assume it is 1.2.x. This means that you need to strip org.apache from the import. Use wicket.util.file.File instead. Martijn On 5/24/07, kenixwong [EMAIL PROTECTED] wrote: Sorry, i stil

Re: [Wicket-user] wicket - Load the pdf file after onSubmit

2007-05-24 Thread kenixwong
Ignore the previous question The 2 line is generate the report in pdf format. Yeah, it success. Then come to the 3rd line, it prompt me Null Value. SO, it that mean cant read the pdf file and then display it into the browser ? 1Public void onSubmit() { 2File file =

Re: [Wicket-user] wicket - Load the pdf file after onSubmit

2007-05-24 Thread Harald Gruber
kenixwong schrieb: Ignore the previous question The 2 line is generate the report in pdf format. Yeah, it success. Then come to the 3rd line, it prompt me Null Value. SO, it that mean cant read the pdf file and then display it into the browser ? 3System.out.println(file =

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-24 Thread Ingram Chen
Is there any progress on this issue ? I search JIRA but there is no related issue... On 5/11/07, Alex Objelean [EMAIL PROTECTED] wrote: I'll add a quickstart as soon as possible... (tomorrow by noon) Thank you! Matej Knopp-2 wrote: Okay. Can you please create a quickstart that can be

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-24 Thread Alex Objelean
Well, it wasn't wicket fault... It was mine. Actually, I used YUI for layout management and this didn't work very well for my fully ajaxified application by causing this kind of errors. Therefore I gave up using it... The problem appears when the component is not in the sync with its model.

[Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-24 Thread Sean Sullivan
Hello, Is anybody using Wicket 1.3 beta 1 in a Websphere 6.x environment? I am running Websphere 6.0.2.13 and I'm having some trouble with my application. It appears that the WicketFilter is calling sendRedirect repeatedly. I am unable to view any of the pages in my application because the

Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-24 Thread Johan Compagner
WicketFilter does a redirect at the beginning: String relativePath = getRelativePath(servletRequest); // Special-case for home page - we redirect to add a trailing slash. if (relativePath.length() == 0 !Strings.stripJSessionId(servletRequest.getRequestURI

Re: [Wicket-user] ListView class cast exception

2007-05-24 Thread eddmosphere
Well...DUH to me! :/ Appart from the getUsers method, I was also trying a wrong query to the database.. Anyway, my method has to be something like this.. ... public List getUsers(ResultSet rs) { List retval = new ArrayList(); try { while(rs.next()) {

[Wicket-user] Ajax not working from portlet

2007-05-24 Thread sf
Hello, Still trying to get my wicket application to work with Ajax from liferay portal. it works just fine outside of the portal. and I get the same behavior in both firefox and IE. this is the error I get: Error while parsing response: Could not find root ajax-response element this is

Re: [Wicket-user] form silently failing to load data when template and pojo are different

2007-05-24 Thread RĂ¼diger Schulz
Hello Florian, could you provide a quickstart showing this problem? What version of Wicket are you using? With these information, the developers might find and fix the bug. .rue 2007/5/23, Florian Hehlen [EMAIL PROTECTED]: hi, I have just found that if a form contains an input

Re: [Wicket-user] Pattern for seperation of Java and Html - Comments Welcome

2007-05-24 Thread Johan Compagner
nice, but how much is done in wicket? it seems a combination with other stuff (or are not many things really dynamic?) because if i look at the source then the basket is wicket made but the rest of the page is something else. i also see the wicket tags and ids everywhere. Do you start wicket in

Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-24 Thread Sean Sullivan
Johan, My web context root is /wicketdemo and my application homepage is mounted as /home Here's what I see when I access the site from the command line (wget): wget -S http://dev.foobar.com/wicketdemo --08:08:47-- http://dev.foobar.com/wicketdemo = `wicketdemo' Resolving

[Wicket-user] Strange Behaviour with AjaxFormComponentUpdatingBehavior

2007-05-24 Thread Dipu
Hi, I am getting a strange error when i use AjaxFormComponentUpdatingBehavior. I have a ListView in a form and i populate the ListView with a panel ( each list items contain a panel ) I have attached a AjaxFormComponentUpdatingBehavior to a Drop Down in the same form to re render the list

[Wicket-user] Magic to replace ModalWindow images

2007-05-24 Thread Jonathan Locke
Matej, we were talking on ##wicket and you were about to tell me what the magic is to replace ModalWindow images with something my designer cooks up (pixel accurate replacements for existing images) without modifying Wicket. What was that magic? (Thought I'd post here since others might benefit

Re: [Wicket-user] Magic to replace ModalWindow images

2007-05-24 Thread Matej Knopp
Okay, so if I understand correctly you want to replace modal window images. It is possible, but if you don't want to touch other css things, you need to make sure that the new image match the exact dimensions of the old images. First little introduction about modal window images. Modal window

Re: [Wicket-user] form silently failing to load data when template and pojo are different

2007-05-24 Thread Matej Knopp
This is not a bug. You need to add TextField to form if you want to use input type=text/, not TextArea. TextArea is for the textarea tag. -Matej On 5/23/07, Florian Hehlen [EMAIL PROTECTED] wrote: hi, I have just found that if a form contains an input type=text/ and the corresponding pojo

Re: [Wicket-user] form silently failing to load data when template and pojo are different

2007-05-24 Thread Johan Compagner
dont we have a check for this in onComponetTag? On 5/24/07, Matej Knopp [EMAIL PROTECTED] wrote: This is not a bug. You need to add TextField to form if you want to use input type=text/, not TextArea. TextArea is for the textarea tag. -Matej On 5/23/07, Florian Hehlen [EMAIL PROTECTED]

Re: [Wicket-user] Magic to replace ModalWindow images

2007-05-24 Thread Jonathan Locke
thanks matej! Matej Knopp-2 wrote: Okay, so if I understand correctly you want to replace modal window images. It is possible, but if you don't want to touch other css things, you need to make sure that the new image match the exact dimensions of the old images. First little

Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-24 Thread Johan Compagner
it seems that the home mount somehow does a redirect again to /home but then wicket again to /home/ so the question is who does that /home ? On 5/24/07, Sean Sullivan [EMAIL PROTECTED] wrote: Johan, My web context root is /wicketdemo and my application homepage is mounted as /home Here's

Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-24 Thread Sean Sullivan
I have an index.jsp file in the root of the WAR: jsp:forward page=/home / On 5/24/07, Johan Compagner [EMAIL PROTECTED] wrote: it seems that the home mount somehow does a redirect again to /home but then wicket again to /home/ so the question is who does that /home ? On 5/24/07, Sean

Re: [Wicket-user] Wicket 1.3 beta 1 and Websphere 6.0

2007-05-24 Thread Johan Compagner
make that home/ On 5/24/07, Sean Sullivan [EMAIL PROTECTED] wrote: I have an index.jsp file in the root of the WAR: jsp:forward page=/home / On 5/24/07, Johan Compagner [EMAIL PROTECTED] wrote: it seems that the home mount somehow does a redirect again to /home but then wicket

[Wicket-user] AutoCompleteTextField busy indicators

2007-05-24 Thread Marc Stock
I would like to add a busy indicator that functions as the user types keys on the keyboard for my AutoCompleteTextField rather then say at the end when they change focus to a different component. The reason is that a query is performed at each key press. I started off implementing this the

Re: [Wicket-user] wicket vs. struts presentation

2007-05-24 Thread Marc Stock
The company I'm currently working at is a Struts 1 shop. Like most companies, they tend to stick with technologies they know even if they are inferrior. Right now I'm working on a Wicket prototype for them but it is likely they will stay a Struts shop. Technological inertia is hard to fight.

[Wicket-user] Decorate any external link with small graphic

2007-05-24 Thread Thomas Singer
I want to decorate any a href=... link to an external website with a small graphic and ensure it will open in a separate window. Where should I start? I'm currently trying to add an IMarkupFilter implementation to insert another openClose-ComponentTag before the /a-ComponentTag, but Wicket

Re: [Wicket-user] Exception Strategy in 1.3

2007-05-24 Thread Gwyn Evans
On Wednesday, May 23, 2007, 2:53:50 AM, craigdd [EMAIL PROTECTED] wrote: Thanks Eelco, your example was extremely helpful and I agree that the API is not obvious when it comes to this type of stuff. It also doesn't help when the javadoc for RequestCycle.onRuntimeException refers to

Re: [Wicket-user] Exception Strategy in 1.3

2007-05-24 Thread craigdd
Will do Gwyn, I plan on spending a few hours tonight to see what type of update to the API would be needed to help out my type of situation. -Craig Gwyn wrote: On Wednesday, May 23, 2007, 2:53:50 AM, craigdd [EMAIL PROTECTED] wrote: Thanks Eelco, your example was extremely helpful and I

Re: [Wicket-user] Decorate any external link with small graphic

2007-05-24 Thread Scott Swank
You want a Border. Relevant wiki pages include http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html http://cwiki.apache.org/WICKET/custom-components.html http://cwiki.apache.org/WICKET/panels-and-borders.html On 5/24/07, Thomas Singer [EMAIL PROTECTED] wrote: I want to

Re: [Wicket-user] Decorate any external link with small graphic

2007-05-24 Thread Thomas Singer
No, I don't want a (border) component. I just want to convert *all* external links without the need to give each external link an extra wicket:id and add a special component in each page instance. It would be to easy to forget some external links. Tom Scott Swank wrote: You want a Border.

Re: [Wicket-user] Decorate any external link with small graphic

2007-05-24 Thread Al Maw
Thomas Singer wrote: I want to decorate any a href=... link to an external website with a small graphic and ensure it will open in a separate window. Where should I start? I'm currently trying to add an IMarkupFilter implementation to insert another openClose-ComponentTag before the

Re: [Wicket-user] Decorate any external link with small graphic

2007-05-24 Thread Thomas Singer
Thanks. The CSS approach looks very interesting. Tom Al Maw wrote: Thomas Singer wrote: I want to decorate any a href=... link to an external website with a small graphic and ensure it will open in a separate window. Where should I start? I'm currently trying to add an IMarkupFilter

Re: [Wicket-user] wicket vs. struts presentation

2007-05-24 Thread Ayodeji Aladejebi
Technological inertia is hard to fight wicket is building momentum required to handle struts' inertia, give it time. I was going to ask the wicket leads to give us a graph showing wicket's growth generally especially checking download figures this year against last year and mailing list

[Wicket-user] Creating link with a label

2007-05-24 Thread Ravindra Wankar
In a table of contacts I want to make the Name a hyperlink to the page that displays details of that contact. So I created a link and wanted to set the label of the link to the name of the contact. I could not find a suitable method on the Link classes. All examples I saw create a panel