Re: Refreshing DataView component

2010-12-10 Thread Jeremy Thomerson
Data view already refreshes data on every load from the data provider. To repaint via ajax, replace the component that contains the data view rather than the data view itself. Your ajax console or server console should already have a warning telling you this if you are currently adding the data

after user closes application

2010-12-10 Thread GJT
Hi all.. I want to do something after (before) the user closes the wicket application. How can I do that? I've found out that there was a method caled renderOnBeforeUnloadJavascript.. but it doesn't exist anymore.. thx for your help your Swiss buddy -- View this message in context:

How to invalidate session after panel replacement?

2010-12-10 Thread bht
Hi, I need to invalidate the web session after a panel of the current page is replaced. All my attempts are failing because webSession.invalidate() or even webSession.replaceSession(); have an influence on the current request/response. Typically, one would just show a new page, e.g.

Re: DatePicker to pick a year

2010-12-10 Thread Nivedan Nadaraj
So did that work? Have you tried to check your model annotation? On Wed, Dec 8, 2010 at 10:24 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: It is a pure Date. On Tue, Dec 7, 2010 at 9:24 PM, nivs shravann...@gmail.com wrote: Hi If your getting the date format error from the Model

Re: Refreshing DataView component

2010-12-10 Thread Josh Kamau
Thanks Jeremy, now my question is, how do i refresh the data provider? i want it to provide a different set of data based on some parameters every time it is used by the DataView. Josh On Fri, Dec 10, 2010 at 11:06 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Data view already

Re: DatePicker to pick a year

2010-12-10 Thread Nivedan Nadaraj
So I am guessing your model is of TemporalType.Date and If it is the case and if your not yet resolved it, can you try changing the dateformat to mm-dd-yy ? or dd-mm-yy ? And see if your getting the validation error. If your not then DatePicker field is expecting that default format and to

Re: Refreshing DataView component

2010-12-10 Thread Josh Kamau
I just did it. I made my dataprovider a bit dynamic in the way it gets the search parameters. Thanks Josh. On Fri, Dec 10, 2010 at 11:58 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Jeremy, now my question is, how do i refresh the data provider? i want it to provide a different set of

Re: SV: Multiple wicket applications in a single WAR

2010-12-10 Thread fstof
Reinhard Nägele wrote: I don't think it is a good idea to have multiple applications in one war. Well according to Igor It's not an issue, as wicket-examples makes use of it. Although it does not use the Servlet but rather the Filter, (don't know if that could make a difference)

Re: SV: SV: Multiple wicket applications in a single WAR

2010-12-10 Thread fstof
Wilhelmsen Tor Iver wrote: The ThreadLocal objects are static, yes, but the actual objects stored there are per thread and thus not static. My thoughts exactly Wilhelmsen Tor Iver wrote: The Application instance is shared between all users, but in this case there is no user state in

Re: How to invalidate session after panel replacement?

2010-12-10 Thread Ernesto Reinaldo Barreiro
Bernard, There was someone asking something similar a few day ago... One idea that might work is -Put an ajax behavior on your page (AbstractDefaultAjaxBehavior) and use it to generate a callback url. -Use a non wicket AJAX (e.g. jquery AJAX) to call this behavior. -Make your panel call back

Re: after user closes application

2010-12-10 Thread Igor Vaynberg
the only reliable place to do this is in a contet listener on session timeout -igor On Fri, Dec 10, 2010 at 10:08 AM, GJT taulant.gju...@helvetic.com wrote: Hi all.. I want to do something after (before) the user closes the wicket application. How can I do that? I've found out that there

What governs how component validators are formatted?

2010-12-10 Thread Ian Marshall
I have overridden my org.apache.wicket.protocol.http.WebApplication's newConverterLocator() method by setting my own custom IConverter for the Float class in this method's returned ConverterLocator object. This has the desired affect for my TextFieldFloat components. However, I have noticed that

RE: SQL Query casting objects

2010-12-10 Thread Bodis, Jerome
SQLQuery.addEntity(Class entityClass).list() http://docs.jboss.org/hibernate/core/3.3/api/org/hibernate/class-use/SQLQuery.html -Original Message- From: Henrique Boregio [mailto:hbore...@gmail.com] Sent: Friday, December 10, 2010 3:40 AM To: users@wicket.apache.org Subject: SQL Query

Re: Asynchronous File Uploads

2010-12-10 Thread jcgarciam
Use a hidden Iframe to make your upload using the Servlet approach that Jeremy describe. On Fri, Dec 10, 2010 at 2:12 AM, exl [via Apache Wicket] ml-node+3081409-1187169087-65...@n4.nabble.comml-node%2b3081409-1187169087-65...@n4.nabble.com wrote: Hi again, This is how I interpreted your

Re: SQL Query casting objects

2010-12-10 Thread Henrique Boregio
Thanks, I'll give it a shot! On Thu, Dec 9, 2010 at 11:39 PM, Henrique Boregio hbore...@gmail.com wrote: I have an SQL query to do a full-text search on my database: String sql = SELECT * FROM Items WHERE MATCH (title, description) AGAINST (' + searchText + ');; List items =

Re: Dynamic CSS Resources and clustered wicket app

2010-12-10 Thread Chris Wewerka
Hi, just to give some people a hint when facing the same problem like we did with dynamic CSS/JS resources that are not requested with JSESSIONID/Cookie and therefore are not routed to the correct server in a clustered tomcat/apache environment with sticky sessions. The reason in our

Basic Webpage security

2010-12-10 Thread Henrique Boregio
Just like many others, my website has parts that are “public” and parts where the user has to login to see it. Since I don’t need to manage user roles, I have this basic interface: public class SecureWebPage extends WebPage { public SecureWebPage() {

Re: Basic Webpage security

2010-12-10 Thread Bas Gooren
Well, since your page will never be constructed when the user is not logged in, it is secure. Even when your page is stateless, a user will never be able to reference components on the page. So if the isLoggedIn() method on your UserLoggedInSession works (and is tested!) you should be good to

wicket amcharts integration?

2010-12-10 Thread Fausto Argeni Bencosme Doñe
Hi, i need some project in wicket,that use amcharts. Any suggestions? Fausto A. Bencosme D. Software Developer KindleIT.net S.R.L email: fbenco...@kitsd.com cel: 809-923-0123

Fausto Argeni Bencosme Doñe has invited you to open a Google mail account

2010-12-10 Thread Fausto Argeni Bencosme Doñe
I've been using Gmail and thought you might like to try it out. Here's an invitation to create an account. You're Invited to Gmail! Fausto Argeni Bencosme Doñe has invited you to open a Gmail account. Gmail is Google's free email service, built on the idea that email can be intuitive,

Brix CMS : Based Wicket framework

2010-12-10 Thread moèz ben rhouma
It's very important for wicket users to now what is Brix CMS. So see the following link: http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread eugenebalt
As I said previously, the resource is not deployed as a URL, rather it gets created on the fly as a temp file and then streamed into the browser. So I can't use the above example either. The file is an Excel spreadsheet created dynamically with the package Apache-HSSF (which allows dynamic Excel

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread James Carman
On Fri, Dec 10, 2010 at 10:27 AM, eugenebalt eugeneb...@yahoo.com wrote: The file is an Excel spreadsheet created dynamically with the package Apache-HSSF (which allows dynamic Excel file creation). The creation of the file occurs when the user clicks OK and submits the form. It's called

Re: DatePicker to pick a year

2010-12-10 Thread Anna Simbirtsev
Thanks, I'll try it. On Fri, Dec 10, 2010 at 4:02 AM, Nivedan Nadaraj shravann...@gmail.com wrote: So I am guessing your model is of TemporalType.Date and If it is the case and if your not yet resolved it, can you try changing the dateformat to mm-dd-yy ? or dd-mm-yy ? And see if your getting

Re: Brix CMS : Based Wicket framework

2010-12-10 Thread Korbinian Bachl - privat
Hello Moez, the link to the repo is wrong. Brix is no longer on googlecode but on github: https://github.com/brix-cms/brix-cms Keep spreading the word for Brix, best, Korbinian Am 10.12.10 15:58, schrieb moèz ben rhouma: It's very important for wicket users to now what is Brix CMS. So

Re: Brix CMS : Based Wicket framework

2010-12-10 Thread moèz ben rhouma
Ok, thank you. 2010/12/10 Korbinian Bachl - privat korbinian.ba...@whiskyworld.de Hello Moez, the link to the repo is wrong. Brix is no longer on googlecode but on github: https://github.com/brix-cms/brix-cms Keep spreading the word for Brix, best, Korbinian Am 10.12.10 15:58,

Re: Brix CMS : Based Wicket framework

2010-12-10 Thread Andrea Del Bene
Thank you moèz, looks very interesting! It's very important for wicket users to now what is Brix CMS. So see the following link: http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html - To

Re: I also have the question

2010-12-10 Thread eugenebalt
UPBrandon, I tried your code, and it doesn't repaint the form. Isn't that something you wanted to do? When I tried it, it gave me the file stream, but the form was NOT updated... -- View this message in context:

Timeframe for Wicket 1.5 Release

2010-12-10 Thread Corbin, James
This question is targeted to the core Wicket product developers. The 1.5 code line is up to its 3rd Maintenance release and was curious (for planning purposes) what the anticipated public release date was... I'm not looking for a specific day, but rather, something like 1st Quarter 2011, 4th

Re: Timeframe for Wicket 1.5 Release

2010-12-10 Thread Jeremy Thomerson
On Fri, Dec 10, 2010 at 10:46 AM, Corbin, James jcor...@iqnavigator.comwrote: This question is targeted to the core Wicket product developers. The 1.5 code line is up to its 3rd Maintenance release and was curious (for planning purposes) what the anticipated public release date was... I'm

RE: Timeframe for Wicket 1.5 Release

2010-12-10 Thread Corbin, James
Thanks. That is what I was looking for. -Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Friday, December 10, 2010 10:08 AM To: users@wicket.apache.org Subject: Re: Timeframe for Wicket 1.5 Release On Fri, Dec 10, 2010 at 10:46 AM, Corbin, James

Re: Basic Webpage security

2010-12-10 Thread Jeremy Thomerson
On Fri, Dec 10, 2010 at 8:03 AM, Henrique Boregio hbore...@gmail.comwrote: Just like many others, my website has parts that are “public” and parts where the user has to login to see it. Since I don’t need to manage user roles, I have this basic interface: public class SecureWebPage extends

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-12-10 Thread Nelson Segura
The same problem is visible in the Wicket examples for data table http://wicketstuff.org/wicket14/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.DataTablePage The tfoot tags are empty, which is invalid HTML. Any ideas on how to fix this? -Nelson On Thu, Nov 25, 2010 at

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread eugenebalt
anybody? any examples/ideas? this is pretty urgent. thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-to-ResourceStream-While-Also-Refreshing-Form-tp3081069p3082445.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread Sven Meier
Hi, the link Ernesto gave you is exactly what you need: https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html I don't know why you think this solution isn't suitable for dynamically generated streams. Sven Am 10.12.2010 um 19:09 schrieb eugenebalt: anybody? any

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread eugenebalt
I don't understand that example. What is item? Where does the first section go, in onSubmit()? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-to-ResourceStream-While-Also-Refreshing-Form-tp3081069p3082558.html Sent from the Users forum mailing list archive

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread Sven Meier
The example shows using AjaxDownload inside a ListView. In your case it should look like the following: final AJAXDownload download = new AJAXDownload() { @Override protected IResourceStream getResourceStream() { return createResourceStream(); }

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread eugenebalt
Thank you, but: 1) AjaxButton constructor does not take a single ID param, syntax error 2) So I override the methods protected IResourceStream getResourceStream() {...//override } protected String getFileName() { ...//override} with my file generation logic? Or I change them to take a

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread Sven Meier
So a brace was missing, not to hard to find *if* you code in an IDE: form.add(new AjaxButton(submit) { public void onSubmit(AjaxRequestTarget target) { // do whatever with the target, e.g. refresh components target.addComponent(...); //

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread eugenebalt
Yeah, I finally got it work. Thanks a lot for that example. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-to-ResourceStream-While-Also-Refreshing-Form-tp3081069p3082669.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread eugenebalt
One more question, though. I did get it to work, but the Ajax Download kicks in before any of the form Validators do. I should only start the download if all the Validators passed. In case of any errors thrown by attached form Validators, I should not proceed. But the Ajax Button-Click is

Re: How do add an Img tag with an external link to the image?

2010-12-10 Thread Ernesto Reinaldo Barreiro
1-Use ContextImage for context-relative images? 2-Use WebMarkupContainer container = new WebMarkupContainer(img); container.add(new AttributeModifier(src, new ModelString(external URL))); for external images? Ernesto On Fri, Dec 10, 2010 at 9:31 PM, Sky sky...@hotmail.com wrote: I would

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread Ernesto Reinaldo Barreiro
Weird: if you have validation errors onSubmit() should not get called, you should get onError called instead. Ernesto On Fri, Dec 10, 2010 at 9:41 PM, eugenebalt eugeneb...@yahoo.com wrote: One more question, though. I did get it to work, but the Ajax Download kicks in before any of the form

Re: How do add an Img tag with an external link to the image?

2010-12-10 Thread James Carman
On Fri, Dec 10, 2010 at 3:31 PM, Sky sky...@hotmail.com wrote: I would like to have something like this: ul    li (the link to a URL not on my site)        img src=”http://cnn.com/cnnlogo.jpg”/    /li    li (full link to the image URL within my app - without any relative paths, etc)      

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-10 Thread eugenebalt
Ernesto: it's the Ajax Download that shouldn't get called, that is the problem. (The onSubmit() maybe doesn't get called, it's true.) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-to-ResourceStream-While-Also-Refreshing-Form-tp3081069p3082730.html Sent

right click example

2010-12-10 Thread fachhoch
are there any example for displaying links on right click on a link ? in other user words are there any examples of handing right click ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/right-click-example-tp3082875p3082875.html Sent from the Users forum mailing

Re: right click example

2010-12-10 Thread fachhoch
I tried using wicketstuff-yui here is the code I have private class ActionPanel extends Panel { Long sysAuditId; public ActionPanel(String id, final FindAuditDTO findAuditDTO, final FindAuditSearchDTO findAuditSearchDTO) {

wicket-velocity velocimacro.library

2010-12-10 Thread fachhoch
I want to use wicketstuff yui and this has dependency on wicket-velocity , this was failing my application becasue of property velocimacro.library = VM_global_library.vm its working after disabling the property , I disabled the porperty by modifying the velocity.property from the jar

Re: How do add an Img tag with an external link to the image?

2010-12-10 Thread Sky
Thank you - that was easy and it worked. I searched a lot but I didn’t see any references in my searches for ContextImage. -Original Message- From: Ernesto Reinaldo Barreiro Sent: Friday, December 10, 2010 12:43 PM To: users@wicket.apache.org Subject: Re: How do add an tag with an

Re: How do add an Img tag with an external link to the image?

2010-12-10 Thread Sky
yes. the src is calculated. -Original Message- From: James Carman Sent: Friday, December 10, 2010 1:06 PM To: users@wicket.apache.org Subject: Re: How do add an tag with an external link to the image? On Fri, Dec 10, 2010 at 3:31 PM, Sky sky...@hotmail.com wrote: I would like to

Re: right click example

2010-12-10 Thread fachhoch
I figured out the error it works now , one more question can I reuse the instance of IYuiMenuAjaxAction? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/right-click-example-tp3082875p3083032.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to add and remove css classes the right way?

2010-12-10 Thread ncollette
Obviously this is an old thread, but I just wanted to throw out another way to remove a css class whilst preserving any existing css classes. new SimpleAttributeModifier(class, String.valueOf(this.getMarkupAttributes().get(class)).replaceFirst(edit, )); In the case above - edit was the class I

Re: right click example

2010-12-10 Thread fachhoch
One more question , after adding the right click it works , in my case I right click and in onClick method I call setResponse(somepage) and setRedirect(true), so I go to a new page , now from here If I click on browsers back button I come back to initial page , but surprisingly all the

Re: right click example

2010-12-10 Thread fachhoch
Its working now , there was some serialization issue , its fixed and no more strange errors loosing history. Now still the problem of initializing velocity , please advice me how to remove property velocimacro.library org.apache.wicket.velocity.Initializer uses