Upload ok - how about downloading a bytestream?

2008-05-23 Thread Martin Makundi
Hi! I have bytes[] stored in the db LONGBLOB column. How do I make a clickable link for downloading the contents? ** Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: (Class>) casting troubles

2008-05-23 Thread Daniel Walmsley
Just to quickly weigh in on the verbosity argument:As someone who has coded Java (and Perl, C++, etc) in every environment from individual projects to multinational finance systems, I will say that verbosity of code runs a far, far, distant third (or twentieth) to:1. Readability/Understandability,

Re: Background image that resizes with window?

2008-05-23 Thread John Krasnay
On Fri, May 23, 2008 at 05:11:58PM -0400, David Nedrow wrote: > > When I try to use this in a Wicket page, I'm getting a JavaScript > error noting: > > "Value undefined (result of expression $(window).width) is not > object." > > and the image doesn't resize with the window. I'm c

Re: Wicket and inline JavaScript

2008-05-23 Thread Matej Knopp
Hi, I don't think current wicket output is that bad, just look at what some JSF implementation produce :) Seriously, we might consider different approach (the one like you suggest) for 1.5. But I don't think current wicket approach is something that desperately needs to be fixed, though there cert

Re: Background image that resizes with window?

2008-05-23 Thread Igor Vaynberg
make sure you strip wicket tags from the output -igor On Fri, May 23, 2008 at 2:11 PM, David Nedrow <[EMAIL PROTECTED]> wrote: > > On May 23, 2008, at 1:46 PM, John Krasnay wrote: > >> On Fri, May 23, 2008 at 11:57:48AM -0400, David Nedrow wrote: >>> >>> Might be your CSS. Is your image styled as

Re: Background image that resizes with window?

2008-05-23 Thread David Nedrow
On May 23, 2008, at 1:46 PM, John Krasnay wrote: On Fri, May 23, 2008 at 11:57:48AM -0400, David Nedrow wrote: Might be your CSS. Is your image styled as position:absolute? (Again, nothing to with Wicket...) The odd thing is that I can get this going with zero problem using a static HTM

Problems disabling componets and submitting them to validation

2008-05-23 Thread alesp
Hi, this is my problem: I have a form and 2 date fields. When the form is submitted for the first time, I do some validation on those fields and if everything goes ok, then I store the model object. Eventually, I have to disable the first of the 2 date fields to prevent modification, but the secon

Re: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-05-23 Thread Kirk Israel
So these pallet controls are inside of a ListView that is ultimately nested in a Form. I *want* the button to do it's stuff of moving things from one list to the other, and unsetting the checkbox-- I don't want it to do any other kind of form processing. It was suggested maybe the checkbox value i

Re: Label visibility dependend on Model value

2008-05-23 Thread Igor Vaynberg
the result is whatever you gave the label as the model, if i look at your code above it is the firstname property of whatever user you gave to the compound model -igor On Fri, May 23, 2008 at 11:02 AM, greeklinux <[EMAIL PROTECTED]> wrote: > > Hello Igor, > > thank you for the help, but I tried i

Re: Label visibility dependend on Model value

2008-05-23 Thread greeklinux
Hello Igor, thank you for the help, but I tried it and it does not work. I print out getModelObjectAsString() but there was "nothing". I am confused about what getModelObjectAsString() returns. Is the result my User that is loaded in my ProfileModel? igor.vaynberg wrote: > > class mylabel ex

Testing components not added directly to page

2008-05-23 Thread Ryan O'Hara
Hello, I'm trying to test a component that is added to another component that is added to the page. For example, I'd like to test the FeedbackPanel below that is added to the Form which is added to the page. I'm unsure of how to do this. Any help would be appreciated. Thanks! Ryan

Detachable confusion

2008-05-23 Thread David Nedrow
Assume the following... v @Entity @Table(name = "user", catalog = "blah") public class User implements java.io.Serializable { private Long id; private String name; // getters/setters for both } public interface IUserDA

Re: Background image that resizes with window?

2008-05-23 Thread John Krasnay
On Fri, May 23, 2008 at 11:57:48AM -0400, David Nedrow wrote: > > On May 23, 2008, at 11:20 AM, Igor Vaynberg wrote: > > >dont really see what this has to do with wicket...sounds like you are > >after some javascript. > > I have the JavaScript, but I was having trouble with other Wicket > elem

Re: Ajax ListView as Gmail

2008-05-23 Thread Davidoff
it just exists...it's in the code i posted IModel mailList = new LoadableDetachableModel() { protected Object load() { user.openPopServer(); try { messages=folder.getMessages();

User has to log in twice(Using example from "Wicket In Action")

2008-05-23 Thread jchappelle
In Chapter 12 of the book "Wicket In Action" that is still being written, there is some sample code on how to provide authentication pages for users. I had trouble when using this code and this post is intended to help other users that may encounter this problem. I created the SignIn page class

Re: how can ..

2008-05-23 Thread Eelco Hillenius
On Fri, May 23, 2008 at 3:03 AM, Tomasz Prus <[EMAIL PROTECTED]> wrote: > What strategy should i use to achive such url: > http://isport.eu/en/premier-league/liverpool-fc/news-19-2008-0.html ? Please take a look at QueryStringUrlCodingStrategy and MixedParamUrlCodingStrategy. Wicket-examples has t

Re: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-05-23 Thread Thijs Vonk
I'm not sure what you are saying here. But if it is what I'm thinking then you have misunderstood the meaning of .setDefaultFormProcessing. If your component is in a form, the 'defaultFormProcessing' will try to write any changes in the form to the model, and then call the onSubmit of the form

Re: Wasp

2008-05-23 Thread Uwe Schäfer
Maurice Marrink schrieb: Yes that is exactly what wasp is for. cool, at least one thing i got right ;) You can either extend WaspAuthorizationStrategy or ClassAuthorizationStrategy. The latter provides a basic implementation to do component instantiation checks based on static fields availab

Re: Ajax ListView as Gmail

2008-05-23 Thread Igor Vaynberg
you should use a loadable detachable model for your listview, that way it will work transparently. -igor On Fri, May 23, 2008 at 9:25 AM, Davidoff <[EMAIL PROTECTED]> wrote: > > this is code for the mail list (i implemented modal windows in order to show > emails but JWebUnit tests returned error

Re: busy indicator for AjaxFormComponentUpdatingBehavior

2008-05-23 Thread Igor Vaynberg
see how indicatingajaxlink does it -igor On Fri, May 23, 2008 at 9:15 AM, nitinkc <[EMAIL PROTECTED]> wrote: > > I have added a AjaxFormComponentUpdatingBehavior to a DropDownChoice > component to process the "onchange" request. I would like to show an ajax > busy indicator while the request is p

Re: Ajax ListView as Gmail

2008-05-23 Thread Davidoff
this is code for the mail list (i implemented modal windows in order to show emails but JWebUnit tests returned errors then i have to find some other way to show mails...my priority now is to find the way to refresh the mail listview: public class MailAccount extends WebPage { private Mo

busy indicator for AjaxFormComponentUpdatingBehavior

2008-05-23 Thread nitinkc
I have added a AjaxFormComponentUpdatingBehavior to a DropDownChoice component to process the "onchange" request. I would like to show an ajax busy indicator while the request is processed. Any ideas? AjaxFormComponentUpdatingBehavior updateBehavior = new AjaxFormComponentUpdatingBehavior("onchan

Re: Wasp

2008-05-23 Thread Maurice Marrink
Hi Uwe, Yes that is exactly what wasp is for. You can either extend WaspAuthorizationStrategy or ClassAuthorizationStrategy. The latter provides a basic implementation to do component instantiation checks based on static fields available on the class. if you use java 1.5+ you could build your imp

Re: Background image that resizes with window?

2008-05-23 Thread David Nedrow
On May 23, 2008, at 11:20 AM, Igor Vaynberg wrote: dont really see what this has to do with wicket...sounds like you are after some javascript. I have the JavaScript, but I was having trouble with other Wicket elements being shunted aside by the image. I'll poke around again. -David

Re: Null model with CheckGroup

2008-05-23 Thread Igor Vaynberg
in the example checkgroup inherits a property of the compoundpropertymodel as its model. i suggest you read the models wiki page. -igor On Fri, May 23, 2008 at 8:36 AM, seanblaes <[EMAIL PROTECTED]> wrote: > > That's how the example at > http://wicketstuff.org/wicket13/compref/?wicket:bookmarkabl

Re: Label visibility dependend on Model value

2008-05-23 Thread Igor Vaynberg
class mylabel extends label { protected boolean isvisible() { return !Strings.isEmpty(getModelObjectAsString()); } } -igor On Fri, May 23, 2008 at 8:13 AM, greeklinux <[EMAIL PROTECTED]> wrote: > > Hello, > > I want to display diffent values. For this purpose I am > using the Label compon

Re: Null model with CheckGroup

2008-05-23 Thread seanblaes
That's how the example at http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.CheckGroupPage shows it. I added an empty ArrayList as the model, and it works now. Should I send a message to the bugs list to update the examples page above? I did

Re: Background image that resizes with window?

2008-05-23 Thread Igor Vaynberg
dont really see what this has to do with wicket...sounds like you are after some javascript. -igor On Fri, May 23, 2008 at 6:51 AM, David Nedrow <[EMAIL PROTECTED]> wrote: > I'd like to use an SVG file for a background image on every page. I'd like > the image to fill 100% of the browser window a

Wasp

2008-05-23 Thread Uwe Schäfer
hi i have my own authentication and authorization stuff ready and want to hook it into wicket. that´s what wasp is for, right ? ok, after reading a few pages and browsing trough the code, i THINK what i want then, is using WASP without that SWARM thingy. is there any tutorial/presentaation/co

Re: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-05-23 Thread Kirk Israel
According to The PropertyModel javadoc refers to the PropertyResolver javadoc which says "This can can then be a bean property with get and set method. Or if a map is given as an object it will be lookup with the property as a key when there is not get method for that property." -- http://people.a

Re: Ajax ListView as Gmail

2008-05-23 Thread Igor Vaynberg
On Fri, May 23, 2008 at 2:20 AM, Davidoff <[EMAIL PROTECTED]> wrote: > > I'm creating a simple webmail application: i've created a listview where the > items are rows containing the number of the message, the subject and so > on... my target is to reproduce what Gmail does: clicking on the number o

Label visibility dependend on Model value

2008-05-23 Thread greeklinux
Hello, I want to display diffent values. For this purpose I am using the Label component with a CompoundPropertyModel. I want to show user details on a profile page. But not all user values are set. So I want to display only values that are not empty strings. I was thinking about to extend the

Re: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-05-23 Thread Thomas Mäder
I would think so, too. I was looking more closely at your code, and this seems fishy: new PropertyModel(mTargetModel.getManufacturersAsMap(), manufacturerName)) as I understand it, PropertyModel doesn't work with Maps, does it? It works on Java Beans. Thomas On Fri, May 23, 2008 at 3:16 PM, Ki

Re: Possible BUG - discrepancy in component.onBeforeRender and IBehavior.beforeRender.

2008-05-23 Thread Johan Compagner
and what is a good name? :) On Fri, May 23, 2008 at 4:03 PM, Matej Knopp <[EMAIL PROTECTED]> wrote: > Hi, > > beforeRender on behavior has different semantics than onBeforeRender > on component. I agree that this is confusing and it i think it should > be improved in 1.4. > > beforeRender and aft

Re: Possible BUG - discrepancy in component.onBeforeRender and IBehavior.beforeRender.

2008-05-23 Thread Matej Knopp
Hi, beforeRender on behavior has different semantics than onBeforeRender on component. I agree that this is confusing and it i think it should be improved in 1.4. beforeRender and afterRender can be used to render markup before component and after component output. Currently there is no method in

Background image that resizes with window?

2008-05-23 Thread David Nedrow
I'd like to use an SVG file for a background image on every page. I'd like the image to fill 100% of the browser window and have it automatically resize if/when the user changes the size of the client window. This clearly can't be done via CSS2 (maybe via CSS3?), so I'm looking for anyone

Re: packaging images/css in a jar?

2008-05-23 Thread Blackbird
I faced this exact problem (images in "src/main/resources/images"). This is what I chose to do (interested in cleaner way though): 1) In MyPage.java: URL noProgramImageURL = getClass().getClassLoader().getResource("images/transparentPixel.png"); File noProgramImageFile = n

Re: how can ..

2008-05-23 Thread Tomasz Prus
hey, can you help me ?!!! 2008/5/23 Tomasz Prus <[EMAIL PROTECTED]>: > What strategy should i use to achive such url: > http://isport.eu/en/premier-league/liverpool-fc/news-19-2008-0.html ? > > 2008/5/23 Jonas <[EMAIL PROTECTED]>: > > Have you looked in the wiki? >> http://cwiki.apache.org/WICKET

Re: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-05-23 Thread Kirk Israel
the left/right moves ARE being done in the buttons onSubmit, I was hoping calling .setDefaultFormProcessing(false); when adding the button to the page would have prevented that? On Fri, May 23, 2008 at 4:50 AM, Thomas Mäder <[EMAIL PROTECTED]> wrote: > Do the move left/move right controls do a su

Re: GMap2 problem with displaying in IE 6/7

2008-05-23 Thread Java Programmer
On Wed, May 21, 2008 at 4:55 PM, Martin Funk <[EMAIL PROTECTED]> wrote: > Just to make shure, > do you still see a bug? > > Or are things fine now? > > mf We do not use current version of GMap2, but have older snapshot (we cannot change API right now), but as I see in sources that bug is now fixed.

Re: how can ..

2008-05-23 Thread Tomasz Prus
What strategy should i use to achive such url: http://isport.eu/en/premier-league/liverpool-fc/news-19-2008-0.html ? 2008/5/23 Jonas <[EMAIL PROTECTED]>: > Have you looked in the wiki? > http://cwiki.apache.org/WICKET/reference-library.html > This might be what you're looking for: > http://cwiki.

Re: Data Access Design for Pagination

2008-05-23 Thread Thomas Mäder
How long does the query take? How many copies of the DataProvider do you construct (check with the debugger)? Thomas On Thu, May 22, 2008 at 3:51 PM, wfroud <[EMAIL PROTECTED]> wrote: > > > > WicketMessage: After 1 minute the Pagemap null is still locked by: > Thread[http-8080-1,5,main], giving

Ajax ListView as Gmail

2008-05-23 Thread Davidoff
I'm creating a simple webmail application: i've created a listview where the items are rows containing the number of the message, the subject and so on... my target is to reproduce what Gmail does: clicking on the number of a mail i wanto to read its content, and clicking again i want to return to

Re: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-05-23 Thread Thomas Mäder
Do the move left/move right controls do a submit? If so you might also be resubmitting the (old) check box value. Thomas > > > We have a list view that iterates over manufacturers, and each > manufacturer has a "pallet control" of devices > (two list boxes w/ move selection to right list, move se

Re: how can ..

2008-05-23 Thread Jonas
Have you looked in the wiki? http://cwiki.apache.org/WICKET/reference-library.html This might be what you're looking for: http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html On Fri, May 23, 2008 at 9:46 AM, Tomasz Prus <[EMAIL PROTECTED]> wrote: > My boss wants such urls > > 2008/5

Re: how can ..

2008-05-23 Thread Tomasz Prus
My boss wants such urls 2008/5/23 Tomasz Prus <[EMAIL PROTECTED]>: > Do You know SEO optimized urls like > http://www.nabble.com/Page-reload-after-file-upload-td15869570.html ? > > 2008/5/23 Thomas Mäder <[EMAIL PROTECTED]>: > > What are you trying to achieve? Why do you need a text url instead o

Re: how can ..

2008-05-23 Thread Tomasz Prus
Do You know SEO optimized urls like http://www.nabble.com/Page-reload-after-file-upload-td15869570.html ? 2008/5/23 Thomas Mäder <[EMAIL PROTECTED]>: > What are you trying to achieve? Why do you need a text url instead of a > link > to a page? > > Thomas > > On Fri, May 23, 2008 at 9:07 AM, Tomas

Re: how can ..

2008-05-23 Thread Thomas Mäder
What are you trying to achieve? Why do you need a text url instead of a link to a page? Thomas On Fri, May 23, 2008 at 9:07 AM, Tomasz Prus <[EMAIL PROTECTED]> wrote: > How can i prepare url like this: ../London/9.html > > I need that city and advertNumber parameters be always at the end of url.

Re: Null model with CheckGroup

2008-05-23 Thread Igor Vaynberg
CheckGroup group = new CheckGroup("merchantCheckboxGroup", **model**); you are never setting the model you are passing in. -igor On Fri, May 23, 2008 at 12:09 AM, seanblaes <[EMAIL PROTECTED]> wrote: > > Hello all, I'm beating my head on the wall and not really sure what I'm doing > wrong... :(

Null model with CheckGroup

2008-05-23 Thread seanblaes
Hello all, I'm beating my head on the wall and not really sure what I'm doing wrong... :( I am attempting to use a CheckGroup to contain several choices - maybe it's even the wrong way to go about it. I followed the example on the Wicket webpage, but it's not working for me. Here's my HTML: M

how can ..

2008-05-23 Thread Tomasz Prus
How can i prepare url like this: ../London/9.html I need that city and advertNumber parameters be always at the end of url. Can You help me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO