Re: Wicket meeting in Amsterdam?

2009-05-26 Thread nino martinez wael
Ahh.. No problemo, I would'nt be able todo that.. 2009/5/25 francisco treacy francisco.tre...@gmail.com: Well, would be great Nino if you came over :)  But I was talking about a regular meetup... If not, there's Kings of Code in Amsterdam soon, seems interesting - not very Java-ish though.

Re: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Brill Pappin
Tried that :) and it always seems to be null. I switched to AjaxButtons, but the problem is that the are fired *after* the form submits, not before as a normal Button is. I'm essentially trying to set a value on the form's model depending on which button was pressed, and then close the

Re: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Steve Swinsburg
Brill this is what I do for a window of mine, it has a few buttons and the parent page needs to know what one was clicked. Doing it in the button's onSubmit works. I pass an object into the ModalWindow's constructor, which was initialised in the parent page, then I set a property into an

Re: Wicket meeting in Amsterdam?

2009-05-26 Thread Linda van der Pal
I've heard of it, but I'm not planning to go there. So for now there's just two of us in Amsterdam. Guess we'll have to convert a few more people over here to Wicket. :) Linda francisco treacy wrote: Well, would be great Nino if you came over :) But I was talking about a regular meetup...

Re: AutoComplete results disappear when using scrollbar in IE

2009-05-26 Thread Jan Grathwohl
Hi Igor, my specific use case does not allow to limit the number of results, but I found another solution that seems to work so far. I modified the wicket-autocomplete.js to the following behaviour: If the browser is IE and not running in Quirks mode, an event handler function is added

Re: Whats wrong with my component?

2009-05-26 Thread HHB
Please all forgive my ignorance as this is my first component. My custom component is just a text area and a couple of client side JavaScript links. This component is supposed to be used inside a form and should be bound to text property of MessageVO What am I doing wrong? Per Lundholm wrote:

Re: Whats wrong with my component?

2009-05-26 Thread Johan Compagner
doe NOT give the compound model to the FormComponents itself! only to the parent of the form component (so the panel) On Tue, May 26, 2009 at 10:53, HHB hubaghd...@yahoo.ca wrote: Please all forgive my ignorance as this is my first component. My custom component is just a text area and a

Tips to start writing tests

2009-05-26 Thread HHB
Hey, I want to write tests for my Wicket pages and panels. The application is guarded via login functionality and all the pages and panels are depending on a User object in the session. I know who to write tests for Wicket, but I'm not sure what to do in my case due the authentication and

Re: Storing css and image files

2009-05-26 Thread Martijn Dashorst
Why wouldn't it be a viable solution? It gives you the opportunity to let the resources be served by your container, which should be speedier than letting wicket handle it (such requests are filtered through and go to your container). The relative paths are just that: relative, and they always

Re: Tips to start writing tests

2009-05-26 Thread Per Lundholm
Hi How about inserting the User object into the session before each test? private WicketTester tester; @Before public void beforeEachTest() { User fakeUser = new User(); tester.setupRequestAndResponse(); MySession wicketSession = (MySession) tester.getWicketSession();

Re: Generate markup for hidden framework form field?

2009-05-26 Thread Jörn Zaefferer
How is that going the fix the problem? I'd end up with markup, but no behaviour on top of it. Jörn On Mon, May 25, 2009 at 5:52 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: right, so remove that code since you have replaced that component with pure markup. -igor On Mon, May 25, 2009 at

Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Carl-Eric Menzel
Hi, when creating a fresh Wicket project with the following line as generated by the quickstart page on wicket.apache.org: mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-rc4 -DgroupId=com.mycompany

MultiFileUploadField: How to filter file types

2009-05-26 Thread Marco Santos
Hello there. Im using the MultiFileUploadField but i would like that the user could just see/choose some type of files. for instance, he could only select jpeg or/and png files. I notice that is possible to specify the max size of a file. Is possible to specify the type files that the user can

Refresh page after downloading file

2009-05-26 Thread Humberto N. Castejon Martinez
Hi! I have a page with several links to download files. After one file is downloaded I would like the corresponding link to dissapear from the page. In principle this would be as simple as refreshing the page once a link has been clicked. However, I am not sure how to do this, since using

AW: Refresh page after downloading file

2009-05-26 Thread Dorothée Giernoth
How about setting the visibility to false (yourComponentOrLink.setVisibility(false);) on click or something. Dunno if it works with links as well, but should if it is bound to a wicket-id ... -Ursprüngliche Nachricht- Von: humberto.castejon.marti...@gmail.com

Re: Generate markup for hidden framework form field?

2009-05-26 Thread Maarten Bosteels
When you write it out with oncomponenttagbody it's not part of the component hierarchy, it's just rendered markup. Once the form is submitted, you can retrieve the value using the servlet API. What behavior would you want to add on top ? Maarten On Tue, May 26, 2009 at 12:17 PM, Jörn Zaefferer

Re: Storing css and image files

2009-05-26 Thread Luther Baker
On Tue, May 26, 2009 at 4:41 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Why wouldn't it be a viable solution? It gives you the opportunity to let the resources be served by your container, which should be speedier than letting wicket handle it (such requests are filtered through

ResourceLink and ResponsePage

2009-05-26 Thread Humberto N. Castejon Martinez
Hi! I have a web page that shows a list of items, each of them with an associated link (a ResourceLink) to download a file. I would like the web page to be refreshed once a file has been downloaded (I want the associted item to be removed from the list). I tried overriding the onClick() method of

Problems using wicket with web.xml security

2009-05-26 Thread Matthias Keller
Hi We have a wicket application which should be completely secured by FORM authentication by the webserver. For that, we have the following in web.xml: security-constraint display-nameSecured pages/display-name web-resource-collection web-resource-nameAll

Re: Any forum (bb) components / applications written using Wicket?

2009-05-26 Thread Fernando Wermus
Please, release it when you finish On Mon, May 25, 2009 at 8:25 AM, Cristi Manole cristiman...@gmail.comwrote: Hi, Thanks to both of you. I've checked JForum in the past, and while I like it a lot (I think we have it implemented on one of the sites we did for a client), I thought back then

Expandable row in datatable

2009-05-26 Thread Hakan . Steisjo
Hi, I need som help with how to create an expandable row in a datatable. The idea would be to have functionality like an accordion where you click the table row and it expands to show more details of the object in the current row. I've seen different examples of solutions and they all seem to

Re: Generate markup for hidden framework form field?

2009-05-26 Thread Jörn Zaefferer
The current component (the HiddenField) checks that the same value that it started with, is submitted. I'll try to replace that using a form validator that reads the parameter directly. Thanks Jörn On Tue, May 26, 2009 at 1:32 PM, Maarten Bosteels mbosteels@gmail.com wrote: When you write

Re: Generate markup for hidden framework form field?

2009-05-26 Thread Jörn Zaefferer
Thanks guys! The end result looks like this, works fine, and removed a lot of html boilderplate from our templates: public SecureForm(String id, IModelT model) { super(id, model); setMarkupId(id); add(new IFormValidator() { @Override public

Re: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Brill Pappin
Thanks Steve, I did attempt something like that, but my real issue is that the form is submitted from the modalwindow, and the onSubmit of the AJaxButton is actually called after the form is successfully submitted, so by the time I know something happened, its already made the round trip

Re: Misfunctionality in WIA source code

2009-05-26 Thread David Brown
Hello, did you ever resolve the issue with the book code?. I am on chapter 5.x in the WIA and I have posted a couple of issues but no response here either. David. - Original Message - From: HHB hubaghd...@yahoo.ca To: users@wicket.apache.org Sent: Sunday, May 17, 2009 7:09:57 AM GMT

Re: Tips to start writing tests

2009-05-26 Thread HHB
Thanks a lot !! Per Lundholm wrote: Hi How about inserting the User object into the session before each test? private WicketTester tester; @Before public void beforeEachTest() { User fakeUser = new User(); tester.setupRequestAndResponse(); MySession

Re: How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-26 Thread David Brown
Hello, if you don't get a Wicket solution you might want to try real-time testing for re-direction using something like the Apache JMeter: http://jakarta.apache.org/jmeter/ - Original Message - From: Jörn Zaefferer joern.zaeffe...@googlemail.com To: Wicket Users

Re: adjusting form model on submit with AjaxButton -- Was: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Brill Pappin
Ok, so have resolved my issue by reorganizing and refactoring a complex form so as not to use submit buttons to determine final state. However I do have one idea I didn't try (and won't at this point because I need to get on with things). I remember in the bad old days of JSP, one project i

Re: DownloadLink (Javadoc)

2009-05-26 Thread David Brown
Hello Steve, thanks, this worked. I imported the entire wicket 1.3.6 into Eclipse and a whole bunch of other things started working a whole lot better in the WIA Eclipse project. Since you got unlucky and I have you on the hook is there anyway of getting the mvn jetty:run to import into Eclipse

Re: Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Juan Carlos Garcia M.
The first problem you mention is due to a change in how the maven eclipse plugins works, documented as a bug in: http://www.mail-archive.com/d...@maven.apache.org/msg80176.html http://www.mail-archive.com/d...@maven.apache.org/msg80176.html Known Issues: * [MECLIPSE-443] - Only include

Re: How to test for a redirect after form submit, eg. setting RedirectRequestTarget?

2009-05-26 Thread Igor Vaynberg
subclass requestcycle, override onrequesttargetset (may only be in 1.4) and set some flag when you see the redirect, or add it to some list you have visibility into. -igor On Mon, May 25, 2009 at 8:32 AM, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Hi, in one of my Wicket unit tests

Re: MultiFileUploadField: How to filter file types

2009-05-26 Thread Igor Vaynberg
even max size is checked serverside, you may be able to do the same for file types. alternatively you can hook in with a javascript by adding an onchange event and possibly rejecting a file. -igor On Tue, May 26, 2009 at 3:46 AM, Marco Santos mpssan...@gmail.com wrote: Hello there. Im using

Re: Problems using wicket with web.xml security

2009-05-26 Thread Igor Vaynberg
try in a different servlet container -igor On Tue, May 26, 2009 at 4:56 AM, Matthias Keller matthias.kel...@ergon.ch wrote: Hi We have a wicket application which should be completely secured by FORM authentication by the webserver. For that, we have the following in web.xml:  

Re: ResourceLink and ResponsePage

2009-05-26 Thread Igor Vaynberg
you should use a different link - when the user clicks a file you should remove the item first, and then use a redirect to send the user to the url that will start downloading the file. -igor On Mon, May 25, 2009 at 7:54 AM, Humberto N. Castejon Martinez humca...@gmail.com wrote: Hi! I have a

Re: Expandable row in datatable

2009-05-26 Thread Igor Vaynberg
datatable is meant to work with columns, if you need to manipulate rows you are probably better off not using it. -igor On Tue, May 26, 2009 at 5:17 AM, hakan.stei...@foxt.com wrote: Hi, I need som help with how to create an expandable row in a datatable. The idea would be to have

Re: AjaxEditableLabel ... but how to get the changed value?

2009-05-26 Thread Carl-Eric Menzel
On Tue, 26 May 2009 16:27:18 +0200 Dorothée Giernoth dorothee.giern...@kds-kg.de wrote: Now I want to write the changed information from these labels back into the database after the content has changed. Wouldn't be too much of a problem if I knew how to retrieve the changed value from the

Re: Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Igor Vaynberg
On Tue, May 26, 2009 at 3:25 AM, Carl-Eric Menzel cm.wic...@users.bitforce.com wrote: - The classpath file generated by 'mvn eclipse:eclipse' has an  include-pattern of '**/*.java' for both src/test/java and  src/main/java. This means that by default none of the HTML files or  other resources

Re: DownloadLink (Javadoc)

2009-05-26 Thread Martijn Dashorst
Read the free downloadable bonus chapter 15 to WIA, downloadable from http://wicketinaction.com/downloads This explains all this stuff, including setting up your Eclipse workspace from maven, and running the embedded Jetty server. Martijn On Tue, May 26, 2009 at 4:52 PM, David Brown

Re: Storing css and image files

2009-05-26 Thread Igor Vaynberg
it may be helpful to create wicket:context analog of wicket:link, we already have the framework for getting the path prefix to get to context path. this is of course only useful for application-specific resources as those will not be reused across projects. in our case our SA extracts the war and

Refreshing a list while using ListDataProvider

2009-05-26 Thread Vasu Srinivasan
Hello: I have a simple search form , where some criteria refreshes the table based on the db. I got it working with ListView, but im trying to use ListDataProvider, I feel missing something: class MyForm { List myList; MyDataView myDataView; MyDataProvider myDataProvider; public MyForm()

how to control/locate which html to load

2009-05-26 Thread Anirban Basak
Hi! I’m writing a mobile web interface using wicket. Since there are mobile devices with various screen resolutions, I need to maintain separate set of htmls (per component class) based on category/resolution. I’m able to define custom place for htmls (thanks to

Re: Framework sales pitch

2009-05-26 Thread Ricky
That would make sense, but personally I have not seen much of the articles etc written on wicket by the framework developers themselves, So am I missing something? The word has to get out somehow at some point ... how does that happen? is it random? Regards Vyas, Anirudh On Sun, May 24, 2009

Re: Refreshing a list while using ListDataProvider

2009-05-26 Thread Igor Vaynberg
you can build your own analog of listdataprovider that pulls the list directly from whatever property contains the latest. -igor On Tue, May 26, 2009 at 9:38 AM, Vasu Srinivasan vasy...@gmail.com wrote: Hello: I have a simple search form , where some criteria refreshes the table based on the

Re: how to control/locate which html to load

2009-05-26 Thread Igor Vaynberg
you should use session.setstyle() and have a seperate style per screen resolution variant -igor 2009/5/26 Anirban Basak anirban.ba...@rebaca.com: Hi! I’m writing a mobile web interface using wicket. Since there are mobile devices with various screen resolutions, I need to maintain separate

Re: Storing css and image files

2009-05-26 Thread Luther Baker
I like that idea! On Tue, May 26, 2009 at 10:33 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: it may be helpful to create wicket:context analog of wicket:link, we already have the framework for getting the path prefix to get to context path. this is of course only useful for

[announce] WicketStuff Artwork new release

2009-05-26 Thread nino martinez wael
Hi Guys Just wanted to tell that theres a new release of wicketstuff artwork out. This time including niftycornerscube. Artwork, will pimp the graphics of your web site by adding some small javascript behaviors to your components that for example can make round corners.. See here for more info

Re: [announce] WicketStuff Artwork new release

2009-05-26 Thread Daniel Toffetti
nino martinez wael nino.martinez.wael at gmail.com writes: Hi Guys Just wanted to tell that theres a new release of wicketstuff artwork out. This time including niftycornerscube. Artwork, will pimp the graphics of your web site by adding some small javascript behaviors to your

Re: [announce] WicketStuff Artwork new release

2009-05-26 Thread nino martinez wael
Thanks for correcting:) 2009/5/26 Daniel Toffetti dto...@yahoo.com.ar: nino martinez wael nino.martinez.wael at gmail.com writes: Hi Guys Just wanted to tell that theres a new release of wicketstuff artwork out.  This time including niftycornerscube. Artwork, will pimp the graphics of

Exception message somewhat unhelpful

2009-05-26 Thread Daniel Toffetti
Hi all, I'm getting The model must provide a non-null object exception, from PackagedResourceReference, line 177. I guess the message would be a lot more useful if for componentId + id, was added to the message. I've noticed this happens in a lot of other similar exception messages as

Re: Refreshing a list while using ListDataProvider

2009-05-26 Thread Vasu Srinivasan
Thanks for the reply ... I tried doing this : class MyDataProvider extends ListDataProvider { DataDao dataDao; Criteria criteria; public MyDataProvider(List list, Criteria criteria) { super(list); ... } //providing my own iterator which goes to the dataDao and gets the

Re: Refreshing a list while using ListDataProvider

2009-05-26 Thread Igor Vaynberg
i meant implement IDataProvider directly if ListDataProvider doesnt work for you. most of the time you modify an existing instance of List, not create a new one, so ListDataProvider is useful there. -igor On Tue, May 26, 2009 at 1:15 PM, Vasu Srinivasan vasy...@gmail.com wrote: Thanks for the

Re: Exception message somewhat unhelpful

2009-05-26 Thread Igor Vaynberg
a jira with a patch is very welcome. -igor On Tue, May 26, 2009 at 1:10 PM, Daniel Toffetti dto...@yahoo.com.ar wrote: Hi all,    I'm getting The model must provide a non-null object exception, from PackagedResourceReference, line 177.    I guess the message would be a lot more useful if

Re: Refreshing a list while using ListDataProvider

2009-05-26 Thread Vasu Srinivasan
Ok I think I am understanding it a little better now. For now Im still extending myDataProvider from ListDataProvider, but no longer using a new ArrayList() for every search. Im clearing it out and adding new data, which is okay. One question though -- What is the responsibility scope of the

Re: Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Carl-Eric Menzel
On Tue, 26 May 2009 08:31:04 -0700 Igor Vaynberg igor.vaynb...@gmail.com wrote: go to preferences/compiler/building/output folder and remove *.html from Filtered Resources list. I know that :-) I was proposing making this the default in the archetype. test is for tests :) the proper way

Expired sign in link after signing out

2009-05-26 Thread Tim Moose
Hi, This seems like a FAQ but I couldn't find it. All of my pages have a common header with sign in / sign out links. When the user clicks the sign in link, I want to display the sign in page and then return to the previous page after the user signs in. My sign in link looks like this:

Fw: Problem with Maven archetype, Eclipse Classpath and jetty:run

2009-05-26 Thread Carl-Eric Menzel
On Tue, 26 May 2009 08:39:36 -0700 (PDT) Juan Carlos Garcia M. jcgarc...@gmail.com wrote: [MECLIPSE ticket and workaround] Hope this help. Yes it does, thank you. Carl-Eric - To unsubscribe, e-mail:

Re: Expired sign in link after signing out

2009-05-26 Thread Ryan Gravener
add(new BookmarkablePageLink(signin, SigninPage.class)); Ryan Gravener http://isithotinhereorisitjust.me | http://twitter.com/ryangravener On Tue, May 26, 2009 at 6:32 PM, Tim Moose hungl...@gmail.com wrote: Hi, This seems like a FAQ but I couldn't find it. All of my pages have a common

Re: Storing css and image files

2009-05-26 Thread Vasu Srinivasan
I too have been trying to find the right way about where to put the resources (image, css, js). I work in an environment where the images/css/js are maintained by a separate team and is in apache server as they are reused across several apps/projects in different app servers. So putting it as part

Re: MultiFileUploadField: How to filter file types

2009-05-26 Thread Marco Santos
I already thought about that, but like it implicates to change the original javascript file, i was trying not to do it, but i already changed it a little bit, i guess it would not make worse to change more a little bit. I changed it to short the name of the selected file from the path to just the

CompoundPropertyModel and Combobox

2009-05-26 Thread Marco Santos
Hello there. Im trying to submit a form, a simple one, that have some textfields, checkboxes and some comboboxes (DropDownChoice class). The model of the form is the CompoundPropertyModel which is setted like this: setModel(new CompoundPropertyModel(userInput)); The userInput is an instance of a

What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Ben Hutchison
Hi all, I am tech leading our first Wicket project, and I and my co-workers are new to Wicket, but we have been having a good experience in the first few weeks. We have come across an challenge relating to security authorization that I would appreciate some advice regarding. Here are the

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Marco Santos
On the book Wicket in Action there is a chapter (12) that cover the Authentication and the Authorization. It will be very useful to you, and is very easy to understand and implement. This book is very good and i advise you to have, so you can consult as you need. Marco Santos Ben Hutchison-2

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Ben Hutchison
Marco Santos wrote: On the book Wicket in Action there is a chapter (12) that cover the Authentication and the Authorization. It will be very useful to you, and is very easy to understand and implement. Well no.. actually. As I made clear in my question, I need to do _context-sensitive_

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Igor Vaynberg
class EditListingLink extends LinkListing { protected void isEnabled() { Listing listing=getModelObject(); return MySession.get().getUser().equals(listing.getAuthor()); } } -igor On Tue, May 26, 2009 at 6:12 PM, Ben Hutchison b...@ibsglobalweb.com wrote: Marco Santos wrote: On

Re: Storing css and image files

2009-05-26 Thread Luther Baker
You may have to look at this case by case ... In this example, what are you doing with the input field? Submitting a form? Were that the case, how about using a raw input tag and moving any wicket logic to the submit handler? -Luther On Tue, May 26, 2009 at 6:02 PM, Vasu Srinivasan

Re: Storing css and image files

2009-05-26 Thread Luther Baker
@Vasu Try overriding the *src* attribute with a SimpleAttributeModifier :-) You'll need to manage your static paths in Java (Constants.IMG_PATH ... etc) ... but it works as expected: final ImageButton submit = new ImageButton(i-thunder); submit.add(new

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Ben Hutchison
Igor, Your suggestion seems to be based on security through obscurity, ie hiding the Edit link rather than securing the Edit page? Thus, if an unauthorized user knows or discovers the URL of the edit page (eg from browser history), what stops them from editing another user's listing? -Ben

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Igor Vaynberg
if the edit page is not bookmarkable - and edit pages are not unless you make them so for whatever reason - then there is no way for the user to build the url unless wicket builds it. so this is hardly security by obscurity. security pages is trivial class mystrategy implements

Re: Storing css and image files

2009-05-26 Thread Vasu Srinivasan
@Luther: Yes - I'm using the ImageButton it to submit a form. Thanks for the suggestion to use the modifier. I will try that. On a side note, I thought that having the images/css/js etc served from webserver is pretty common and would be supported by wicket without having to add the names

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Jeremy Thomerson
I have built an auth strategy similar to the one below, but more generic that could be applied through my whole application. i.e.: I have an interface IUserOwnedEntity I have an interface IEntity Then, it is basically as follows (mine is actually much more complex and dynamic than yours, but

RE: how to control/locate which html to load

2009-05-26 Thread Anirban Basak
Thanks Igor! But in my case, this is not about changing the css properties only. I need few html changes as well. For example, in higher resolution screen form input fields needs to be displayed besides label to make it look professional. Is there any other way (or hack!) to determine markup file

Re: What's the simplest way to do Context-sensitive Authorization in Wicket?

2009-05-26 Thread Igor Vaynberg
On Tue, May 26, 2009 at 9:57 PM, Jeremy Thomerson jer...@wickettraining.com wrote: (mine is actually much more complex and dynamic than yours, but this is the basic idea that you could apply to yours and build with your domain) i hope so - seeing how mine was written in about ten seconds :)

Re: Storing css and image files

2009-05-26 Thread Luther Baker
On Tue, May 26, 2009 at 11:43 PM, Vasu Srinivasan vasy...@gmail.com wrote: @Luther: Yes - I'm using the ImageButton it to submit a form. Thanks for the suggestion to use the modifier. I will try that. Great. I think it should work for you. On a side note, I thought that having the