Re: Ajaxifying existing application

2011-05-01 Thread James Carman
On Sat, Apr 30, 2011 at 5:36 PM, splitshade wrote: > Hi, > > i have a general question, > we have an exisiting application, that now needs to be ajaxified (no page > reloads etc..). > This has never been a requirement, so the application is not prepared at all > for this. > So, why is this a requ

Re: Ajaxifying existing application

2011-05-01 Thread James Carman
I think he meant that rather than using a page-oriented design, that they'd need to switch to more of a one page, switch panels design? On Sun, May 1, 2011 at 4:09 AM, meduolis wrote: > Why do you want to switch page using ajax? :D If you redownload all page > contents, do not use ajax :), it onl

Re: [osgi] package org.apache.wicket.request exported either from core and request packages

2011-04-25 Thread James Carman
On Mon, Apr 25, 2011 at 10:15 AM, Daniele Dellafiore wrote: > > I think that the wicket package layout should be changed now that -util and > -request bundles have been detached from -core. > >From an OSGi perspective, we should probably try to make sure that packages don't span jar files. Every

Re: Nesting "RepeatingView" components: "Possible attempt to embed component(s)" error

2011-04-24 Thread James Carman
Check out the YUI menu support in wicketstuff. It works great for us. On Sun, Apr 24, 2011 at 4:41 PM, Alexandros Karypidis wrote: > Hello, > > I want to add menus (as in a menu bar with drop-down menus) on my pages. > In order to achieve that, I must use a nested RepeatingView (see further > do

Re: Wicket and youtube browser based upload

2011-04-19 Thread James Carman
ket with validation. After submit creating a > page with > custom form which will automatically do submit? > > Thanx, > pavol > > On Tue, Apr 19, 2011 at 10:00 AM, James Carman > wrote: > >> The problem with the first approach is that using Wicket would >> e

Re: Wicket and youtube browser based upload

2011-04-19 Thread James Carman
The problem with the first approach is that using Wicket would essentially buy you nothing in that case. You couldn't use Wicket's validation. Binding the input fields to models wouldn't buy you anything since the form isn't submitted to Wicket. Also, the form fields would have to be set up manu

Re: Wicket and youtube browser based upload

2011-04-19 Thread James Carman
t, as I was writing. How do I create >> a >> > form where I can specify target url to be going, and return url where the >> > youtube should sent the response to my application again. >> > >> > can anyone help me with that? >> > >> > Thanx,

Re: Wicket and youtube browser based upload

2011-04-19 Thread James Carman
> > Thanx, > Pavol > > On Tue, Apr 19, 2011 at 9:31 AM, James Carman > wrote: > >> Why not look at the source for YTD and see if there's anything you can >> "borrow" from them? >> >> On Tue, Apr 19, 2011 at 2:11 AM, Pavol Zibrita >

Re: Wicket and youtube browser based upload

2011-04-19 Thread James Carman
Why not look at the source for YTD and see if there's anything you can "borrow" from them? On Tue, Apr 19, 2011 at 2:11 AM, Pavol Zibrita wrote: > Hi! > >  Ytd is bunch of servlets and jsp. And I want it to work in wicket. But I > have problems I have described. > > Thanx, > Pavol > On Apr 19, 20

Re: wicketopia or other form generator

2011-04-17 Thread James Carman
Good question! I'm definitely still working on the documentation, but the example application does show you how to use the framework. The documentation will show you how to use the framework in a custom fashion On Apr 17, 2011 12:39 PM, "Marcus Breier" wrote: > Dear all, > > I am a novice using

Re: Wicket Sessions, serialization and Cayenne

2011-04-15 Thread James Carman
Use a dto if you're that worried about it On Apr 15, 2011 2:55 PM, "david ruescas" wrote: > YK and Chris > > Thanks for your replies. I already have the cayenne filter installed, and > the datacontext is accessible via > > BaseContext.getThreadObjectContext(); > > but this is not the problem. The

Re: Using one component's value as input for the other

2011-04-13 Thread James Carman
You just use a normal reference if you can. Or, use a more "listenery" approach. On Wed, Apr 13, 2011 at 7:19 PM, Reinout van Schouwen wrote: > Hello all, > > This would seem like a simple question but I've been tearing my hair > out all evening about it. > I have one form component, a wiquery a

Re: Ajax is Modifying Field When It Shouldn't

2011-04-13 Thread James Carman
How about some code? On Wed, Apr 13, 2011 at 12:15 PM, eugenebalt wrote: > New Ajax issue: > > I have a CheckBoxMultipleChoice which is disabled upon initialization. > > There is another component which can enable this CheckBoxMultipleChoice in > Ajax IF a certain condition is true. There is no "

Re: How to know what RadioGroup was selected?

2011-04-06 Thread James Carman
On Wed, Apr 6, 2011 at 10:28 PM, Paolo wrote: > Great!! You was very fast to reply! And I solved my problem with: > > System.out.println ("Tipo pagamento:"+bean.getMyInt()); > > Thank you very much!!! > No problem. That's what Wicket is all about, models. Your RadioGroup "edits" the model you g

[ANNOUNCE] Wicketopia 0.9.2 Released...

2011-04-06 Thread James Carman
Wicketopia is a Rapid Application Development (RAD) library for Wicket. The documentation is available at: http://wicketopia.sourceforge.net The official release will be available in the main maven repository shortly, but you can download it via SVN (and run the example application) by doing: s

Re: How to know what RadioGroup was selected?

2011-04-06 Thread James Carman
What is the value of "myInt"? That should tell you which one was selected. On Wed, Apr 6, 2011 at 10:15 PM, Paolo wrote: > I implemented this example in my application > > https://cwiki.apache.org/WICKET/using-radiogroups.html > > But, how I can know what radio button of radiogroup the user sele

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-06 Thread James Carman
it is an informative poll that will help the core developers figure out what the heck to do with this issue. Thanks for all who voted! On Fri, Apr 1, 2011 at 1:34 PM, James Carman wrote: > This has been discussed before > (https://issues.apache.org/jira/browse/WICKET-1221), but I can'

Re: Page to select something and use the selection in another page

2011-04-04 Thread James Carman
n, Apr 4, 2011 at 1:24 PM, fernandospr wrote: > I guess this is a common functionality. > It's weird it was not included as part of the framework, right? > > > > On Mon, Apr 4, 2011 at 2:19 PM, James Carman [via Apache Wicket] < > ml-node+3426105-1808787178-210...@n4.nabbl

Re: Page to select something and use the selection in another page

2011-04-04 Thread James Carman
That was a tricky part, getting the selected or created value back to the original page. Perhaps it would have been better implemented with an event-driven approach, but I just went with what I could get working quickly. I'm sure I could come up with something more elegant if I had the time to po

Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread James Carman
That's not entirely correct. Wicket uses the models to populate form components On Apr 3, 2011 9:11 AM, "Sven Meier" wrote: > Yes, take a look at org.apache.wicket.util.lang.PropertyResolver > > Sven > > On 04/03/2011 03:01 PM, Carlo Camerino wrote: >> Does wicket use reflection for this purpose?

Re: Anyone using wicket-velocity 1.4.16 on java 1.5?

2011-04-02 Thread James Carman
That's what usually happens. :) On Sat, Apr 2, 2011 at 4:56 PM, Emmanouil Batsis wrote: > > > > Quoting Emmanouil Batsis : >> >> Quoting James Carman : >> >>> Quickstart? >> >> Bear with me; are you asking for a minimal testcase based

Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-04-02 Thread James Carman
to avoid them), but i'll take a > look during the week. > > Thanks > > On Sat, Apr 2, 2011 at 8:19 AM, James Carman [via Apache Wicket] < > ml-node+3421978-831030994-65...@n4.nabble.com> wrote: > >> On Fri, Apr 1, 2011 at 10:59 PM, Chris Colman >> <[hi

Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-04-02 Thread James Carman
On Fri, Apr 1, 2011 at 10:59 PM, Chris Colman wrote: > > We created and maintain the open source persistence abstraction framework > called exPOJO (expojo.com) than can support any persistence technology under > the hood upon which your application (or indeed other framework) can with be > writ

Re: Anyone using wicket-velocity 1.4.16 on java 1.5?

2011-04-01 Thread James Carman
Quickstart? On Apr 1, 2011 7:57 PM, "Emmanouil Batsis" wrote: > Stuck on a win machine, but checked out my classpath, even deleted my > maven repo .m2/repository/org/apache/wicket to verify what i'm seeing > in my pom but no dice. > > I'm using 1.4.16 or wicket-xx including velocity. This code: >

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-01 Thread James Carman
On Fri, Apr 1, 2011 at 2:33 PM, Matthew Pennington wrote: > > (1) > > I can't think of any useful benefit to (2) but I *can* think of a very > useful benefit for (1) The classic "tick this box to indicate that you have > read and agreed to sell us your soul EULA  would be the obvious time to use >

[VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-01 Thread James Carman
This has been discussed before (https://issues.apache.org/jira/browse/WICKET-1221), but I can't find the old vote thread to see what folks think. The problem is that a checkbox is a weird bird when it comes to HTTP. If it's unchecked, it doesn't send a value which makes Wicket think you haven't p

Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-04-01 Thread James Carman
On Fri, Apr 1, 2011 at 11:20 AM, Emmanouil Batsis wrote: > > I have to agree with Maarten on points; without more documentation, > prospective users will just dismiss this shortly after visitinga couple of > webpages. Some questions: > I appreciate you guys taking the time to give feedback. Plea

Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-04-01 Thread James Carman
. On Fri, Apr 1, 2011 at 7:01 AM, James Carman wrote: > On Fri, Apr 1, 2011 at 3:02 AM, nino martinez wael > wrote: >> very nice with the scaffold component!! >> >> Any examples of it? > > The example application includes an example: > > https://wicketopia.svn.sour

Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-04-01 Thread James Carman
On Fri, Apr 1, 2011 at 3:02 AM, nino martinez wael wrote: > very nice with the scaffold component!! > > Any examples of it? The example application includes an example: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/example/src/main/java/org/wicketopia/example/web/page/HomePage.

Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-04-01 Thread James Carman
On Fri, Apr 1, 2011 at 4:45 AM, Maarten Billemont wrote: > Without knowing what RAD or Scaffolding is about, the examples on your site > really make very little sense to me. > The scaffolding term is borrowed from the Rails/Grails folks. Basically, it automatically generates a view that will sho

Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-03-31 Thread James Carman
pia-parent-0.9.1 On Thu, Mar 31, 2011 at 1:34 PM, James Carman wrote: > Wicketopia is a Rapid Application Development (RAD) library for > Wicket.  There is some documentation available at: > > http://wicketopia.sourceforge.net > > The official release will be available in the mai

[ANNOUNCE] Wicketopia 0.9 Released...

2011-03-31 Thread James Carman
Wicketopia is a Rapid Application Development (RAD) library for Wicket. There is some documentation available at: http://wicketopia.sourceforge.net The official release will be available in the main maven repository shortly, but you can download it via SVN (and run the example application) by do

Re: problems with spring integration

2011-03-30 Thread James Carman
Are you using maven? If so, you should have all the dependencies you need. If not, you'll need wicket-ioc.jar On Wed, Mar 30, 2011 at 11:23 AM, hrbaer wrote: > I added wicket-spring-annot to my project, removed all of the previous spring > code and just added getComponentInstantiationListeners(

Re: HTML comment tag

2011-03-28 Thread James Carman
We do this in our application by doing: add(new Label("debugInfo", new DebugInfoModel()).setEscapeModelStrings(false).setRenderBodyOnly(true)); private static class DebugInfoModel extends LoadableDetachableModel { @Override protected String load() { return

Re: Page to select something and use the selection in another page

2011-03-27 Thread James Carman
On Sun, Mar 27, 2011 at 10:19 PM, fernandospr wrote: > @James thanks for the example code, but I'm not quite sure if I'm following. > Please could you please put an example on which would be the first page, > second page(selection)? In our application, you would be on a page where you need to cho

Re: Set all form fields to output markup id automatically

2011-03-27 Thread James Carman
re it." >  - Francois de La Rochefoucauld > > > > On Sun, Mar 27, 2011 at 9:56 PM, James Carman > wrote: > >> A quick way to set it by default would be to use a >> IComponentInitializationListener. >> >> On Sun, Mar 27, 2011 at 8:52 PM, Bruno Borges

Re: Set all form fields to output markup id automatically

2011-03-27 Thread James Carman
A quick way to set it by default would be to use a IComponentInitializationListener. On Sun, Mar 27, 2011 at 8:52 PM, Bruno Borges wrote: > I'm developing a project with Scala + Wicket and I wanted to set that all > form components have their markup id output automatically > (setOutputMarkupId(tr

Re: Page to select something and use the selection in another page

2011-03-27 Thread James Carman
In our application, we call these "loop" pages. Here's how we implemented it: public abstract class LoopLink extends SubmitLink { public LoopLink(String id) { super(id); setDefaultFormProcessing(false); } protected abstract Page getLoopPage(); @Override p

Re: IDE / Server Support

2011-03-24 Thread James Carman
Most of us run our app servers locally in debug mode. Also, you should check out JRebel. On Fri, Mar 25, 2011 at 12:23 AM, wrote: > Hi, > > How do you get fast deployment in development with large Wicket EJB > applications? > > Wicket pages are ordinary class files that do not always seem to ha

Re: PackageResourceReference, MetaInfStaticResourceReference and timestamps

2011-03-24 Thread James Carman
Yes, but you would have to change how you refer to them, right? On Thu, Mar 24, 2011 at 6:33 AM, Martijn Dashorst wrote: > For development you can keep the resources in the usual, wicket > preferred location (next to the class files), and when you package > your jars you can instruct your build t

Re: validation with link only

2011-03-22 Thread James Carman
Why do you need a form? Just use an AjaxLink. And, do the check in the onClick() method. On Tue, Mar 22, 2011 at 4:58 PM, Steve Lowery wrote: > I have a Form object whose only child is an AjaxSubmitLink.  The Form's > onSubmit() calls to a service to delete its model object (from the > underlyi

Re: Wicket Auth-Roles and Spring Security 3

2011-03-22 Thread James Carman
Have you ever done this in a non-wicket environment? I would get that working first before you try to introduce Wicket to the mix. On Tue, Mar 22, 2011 at 2:52 PM, RBC Bankster wrote: > JSESSIONID > > On Tue, Mar 22, 2011 at 2:49 PM, James Carman > wrote: >> >> What c

Re: Wicket Auth-Roles and Spring Security 3

2011-03-22 Thread James Carman
> PostMethod filePost = new PostMethod("http://...";); > filePost.setRequestHeader("Cookie", StringUtils.join(cookies)); > HttpClient client = new HttpClient(); > client.executeMethod(filePost); > > Except that the cookies are empty. > > On Tue, Mar 22, 2011 at 2

Re: Wicket Auth-Roles and Spring Security 3

2011-03-22 Thread James Carman
How are you "talking to" your services? On Tue, Mar 22, 2011 at 2:16 PM, RBC Bankster wrote: > Hi, > > I'm using Wicket 1.4 with Auth Roles and Spring Security 3.  My application > is split into two parts: a web application in Wicket and a service > application, and they are deployed as separate

Re: Getting data from dynamically constructed elements

2011-03-21 Thread James Carman
The state of the checkboxes is determined by the model. So, just make sure the model doesn't contain those values. Take a look at: http://wicketstuff.org/wicket14/forminput/ for an example. The model isn't completely obvious (which is why I dislike CompoundPropertyModels), but the values that

Re: Getting data from dynamically constructed elements

2011-03-20 Thread James Carman
What model is your checkgroup bound to? On Mar 20, 2011 2:41 PM, "tech7" wrote: > Hi to everyone, > I have a loop and inside this loop; i am constructing checkgroups in the > listview but I dont know how to get data after the user has selected.Do you > have any idea?I need your suggestions. > With

Re: Wicket-Spring Hibernate dao

2011-03-02 Thread James Carman
I believe you want to look into using a factory to create your cats. You can inject DAOs and whatever you want into your factory. The factory would be a spring-managed bean, but the entities wouldn't. On Wed, Mar 2, 2011 at 10:36 PM, ookpalm wrote: > Thanks everyone. I will go for using the new

Re: Displaying table in a modalDialog

2011-03-01 Thread James Carman
Did you check the javadocs for ModalWindow? "If you want to use form in modal window component make sure that you put the modal window itself in another form (nesting forms is legal in Wicket) and that the form on modal window is submitted before the window get closed." I don't know if that will

Re: Perfomance of IDataProvider

2011-03-01 Thread James Carman
It is referenced by the superclass (LoadableDetachableModel in this case). It will "cache" the list until after the request cycle is complete. Upon subsequent request cycles, the load() method will be called to re-load the list. On Tue, Mar 1, 2011 at 12:51 PM, Juansoft wrote: > Thank for the r

Re: Perfomance of IDataProvider

2011-02-28 Thread James Carman
ans that if you dataview have 100 rows > you have 100 Model stored in your session? > > ¿To avoid this do not exist LoadableDetachableModel what is detached after > page rendering? > > > @James Carman: > > This is the aspect of the most LoadableDetachableModel used in D

Re: Perfomance of IDataProvider

2011-02-28 Thread James Carman
Typically, the LDM that's used to obtain each row in your result set is only called one time, you shouldn't be re-querying individually for each item in the list. LDM's constructor that takes a value will cache that value for the duration of the current request cycle. On Mon, Feb 28, 2011 at 11:

Re: Panel Inheritance

2011-02-24 Thread James Carman
gt; sufficient. I will review the examples. > > Thanks > > -Original Message- > From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On > Behalf Of James Carman > Sent: Thursday, February 24, 2011 12:26 PM > To: users@wicket.apache.org > S

Re: Panel Inheritance

2011-02-24 Thread James Carman
However, sometimes that just doesn't work, because you want to inject stuff at different places in the subpanel. You can override the entire markup file if you want in that case, right? On Thu, Feb 24, 2011 at 12:24 PM, Martin Grigorov wrote: > The Wicket way is to use in MyPanel.html and > ...

Re: EmailAddressValidator triggers on empty input field

2011-02-18 Thread James Carman
Right, but for this validator you are forced to use the singleton, which doesn't allow you to customize this feature. On Fri, Feb 18, 2011 at 9:53 AM, Mike Mander wrote: > Am 18.02.2011 15:39, schrieb hrbaer: >> >> Any idea? > > Did you check INullAcceptingValidator and > AbstractValidator.valida

Re: Storing and retrieving user uploaded images

2011-02-18 Thread James Carman
On Fri, Feb 18, 2011 at 9:21 AM, Martin Grigorov wrote: > if you need the uploads to be persistent (to be there after server restart) > then create your own folder (e.g. /apps/myapp/image-uploads) > Or a database. - To unsubscri

Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread James Carman
In my case, they are final local variables in my constructor. Basically, you just need to be able to figure out a way to refer to the components. If this validator is reusable in different contexts, you could perhaps pass the dependent components into the constructor of the validator? On Wed, Feb

Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread James Carman
You need to return a list of components that the form-level validator depends on. Here's one of mine: public FormComponent[] getDependentFormComponents() { return new FormComponent[]{textArea1, textArea2}; } On Wed, Feb 16, 2011 at 1:41 PM, eugenebalt wrote: > > James Carman, c

Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread James Carman
If you're using a form validator, you need to override the getDependentFormComponents() method so that it knows that it shouldn't fire if those components fail. On Wed, Feb 16, 2011 at 12:26 PM, Igor Vaynberg wrote: > if X and Y are on the same component then Y will not run if X fails. > > -i

Re: How to pass parameters from one page to other

2011-02-16 Thread James Carman
PageParameters? On Wed, Feb 16, 2011 at 12:12 PM, Mr Jehan wrote: > Dear all > > How to pass parameters from one page to other page. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: How run Wicket Application

2011-02-16 Thread James Carman
on it is done > > On Wed, Feb 16, 2011 at 9:44 PM, James Carman > wrote: > >> How about we go about this a different way?  Why don't you try >> generating a Wicket Quickstart example application?  If that doesn't >> run, then you've got other problems.

Re: How run Wicket Application

2011-02-16 Thread James Carman
t;plugins"). On Wed, Feb 16, 2011 at 11:41 AM, Mr Jehan wrote: > The issue with me is installing jetty plugin , please read previous message > > On Wed, Feb 16, 2011 at 9:22 PM, James Carman > wrote: >> >> You don't have to install anything.  Maven will download

Re: How run Wicket Application

2011-02-16 Thread James Carman
- > [INFO] For more information, run Maven with the -e switch > [INFO] > -------- > [INFO] Total time: < 1 second > [INFO] Finished at: Wed Feb 16 2

Re: How run Wicket Application

2011-02-16 Thread James Carman
n-1.x/plugins/jetty/downloads.html > but all mirror links are down. > > please help > > > > On Wed, Feb 16, 2011 at 6:44 PM, James Carman > wrote: > >> On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro >> wrote: >> > mvn jetty:run? >> > >

Re: How run Wicket Application

2011-02-16 Thread James Carman
On Wed, Feb 16, 2011 at 4:07 AM, Ernesto Reinaldo Barreiro wrote: > mvn jetty:run? > Yes, mvn install doesn't run anything. It just puts the jars into your local maven repository. You need to run the jetty plugin. - To unsubsc

Re: how do I get the selected entity of a table

2011-02-15 Thread James Carman
No, I mean in case the model is a LDM and they would be getting a "fresh" copy of the entity from the database, as opposed to a detached one. On Tue, Feb 15, 2011 at 10:47 AM, Hans Lesmeister 2 wrote: > > Hi, > > > James Carman wrote: >> >> For safety, you

Re: how do I get the selected entity of a table

2011-02-15 Thread James Carman
For safety, you probably want to get the entity from the item again, right? On Tue, Feb 15, 2011 at 9:18 AM, Pedro Santos wrote: > Hi Hans, the object pointed by entity variable is already the selected one. > > On Tue, Feb 15, 2011 at 12:11 PM, Hans Lesmeister 2 < > hans.lesmeis...@lessy-software

Re: DropDownChoice-Choose One Selected Item

2011-02-09 Thread James Carman
The DDC will reflect whatever is in its model (the model for the selected value, not the one for the list of items to choose from). So, just set your model. On Wed, Feb 9, 2011 at 10:52 PM, Niv wrote: > > Hi > Is there a way I can have the selected option on a DropDownChoice to be set > with  one

Re: How to set Wicket with embedded Jetty?

2011-02-06 Thread James Carman
apol > > On 02/07/2011 11:28 AM, James Carman wrote: >> >> Why don't you try creating a quickstart >> (http://wicket.apache.org/start/quickstart.html) and just copy the >> code from the Start class that's provided for you there? >> >> >> On S

Re: How to set Wicket with embedded Jetty?

2011-02-06 Thread James Carman
Why don't you try creating a quickstart (http://wicket.apache.org/start/quickstart.html) and just copy the code from the Start class that's provided for you there? On Sun, Feb 6, 2011 at 8:58 PM, Surapol Pairojtanachai wrote: > Please guide me on how to set Wicket to run with embedded Jetty. I r

Re: Wicket auth-roles and Spring Security 3

2011-02-06 Thread James Carman
Yes, you can do it. You just have to figure out how to maintain all of that role <-> user stuff. On Sun, Feb 6, 2011 at 10:20 PM, ookpalm wrote: > > Hello everyone, > > Can we provide a principle with many roles? My idea is to create role per > page. Something like. > > @AuthorizeInstantiation("

Re: File upload progress bar

2011-02-04 Thread James Carman
http://wicket.apache.org/start/quickstart.html On Fri, Feb 4, 2011 at 8:17 AM, Valentin Avksentyev wrote: > So has anyone out there has been able to get the upload progress bar working? >  If so, please advise. > > I definitely don't mind putting together a quickstart, are there directions > fo

Re: Does Wicket 1.5 requires Wicket-auth-roles if I want to use Spring Security 3?

2011-02-03 Thread James Carman
Technically, you don't *have* to use it. You can roll your own if you want. It's just much easier with auth-roles, because you have something to start with. On Thu, Feb 3, 2011 at 10:33 PM, ookpalm wrote: > > I found example of Spring Security 3 and Wicket using wicket-auth-roles here > https:/

Re: Image Tag Wicket Processing

2011-02-03 Thread James Carman
ders in wicket by default,it becomes > >   style="padding-right:4px;vertical-align:text-top;" > onclick="window.location.href='images/tree10.png';return false;"/> > > As simple as that > > Any tips > > > > On Thu, Feb 3, 2011 at 7:38 P

Re: Image Tag Wicket Processing

2011-02-03 Thread James Carman
Can you create a quickstart that exhibits that behavior? I have never seen this. On Thu, Feb 3, 2011 at 1:34 PM, Ayodeji Aladejebi wrote: > Pleas how can I stop wicket from processing my images and inserting onclick > ="window.location.href" > > thanks >

Re: How to Replace "Choose One" with Blank ("") in DropDown

2011-02-02 Thread James Carman
Well, I would urge you to look around at how to do internationalization (no wonder folks usually just type i18n). That will show you how to set up properties files. In your case, if you're just dealing with a page and no panels, then just create a property called MyPage.properties (assuming your

Re: How to Replace "Choose One" with Blank ("") in DropDown

2011-02-02 Thread James Carman
https://cwiki.apache.org/WICKET/dropdownchoice.html On Feb 2, 2011 5:47 PM, "eugenebalt" wrote: > > Please advise, I need to replace "Choose One" with a BLANK choice ("") in my > dropdown. > > I know I can either create some kind of properties file, or override > something, but I'm not sure exactl

Re: Using non-Model fields in Form

2011-02-01 Thread James Carman
This is exactly why I tell folks not to use CPM. People start relying on them too heavily and when all doesn't work as planned, they freak out. It's like the blonde that got locked in her car because the battery died and her automatic locks didn't work. On Tue, Feb 1, 2011 at 10:25 AM, nimmy wr

Re: Mapping wicket:id to component without changing Java code

2011-02-01 Thread James Carman
On Tue, Feb 1, 2011 at 10:27 AM, msj121 wrote: > > You can add an empty label to replace the content if not adding the > component. Or, use EmptyPanel or a plain ole WebMarkupContainer? - To unsubscribe, e-mail: users-unsubscr..

Re: Static member wicket version... post 1.4.13

2011-01-31 Thread James Carman
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/settings/IFrameworkSettings.html#getVersion%28%29 On Mon, Jan 31, 2011 at 11:16 AM, Brown, Berlin [GCG-PFS] wrote: > Is there a way to print the wicket version number from wicket class > files or property files? > > E.g. Version.buildNum or s

Re: User configuration files

2011-01-29 Thread James Carman
Are you using Spring? On Sat, Jan 29, 2011 at 11:17 AM, Christian Grobmeier wrote: > Hello > > I tried to figure out how one can load own configuration files into > wicket, for example with configuration on smtp host or something like > that. > > It seems there is no standard way- is this correct

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
a conversion > service which throws the business exception.  Not really a solution to > your question, but it would clean up your code a bit and take conversion > logic out of the frontend. > > > > From:   James Carman > To:     users@wicket.apache.org > Date:   01/2

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
The problem with that approach is that you don't get all of the errors at once. The user would have to submit, see an error, fix, resubmit, see another error, etc. On Fri, Jan 28, 2011 at 3:59 PM, fernandospr wrote: > > Thanks James I'll investigate on extending PropertyModel. > > Currently I'm

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
But, then you lose the component-specific error messages. On Fri, Jan 28, 2011 at 4:08 PM, wrote: > Just a suggestion, pass the UserDto to the service layer and let the > service layer do the conversion.  Then you can look at http://code.google.com/p/simple-object-assembler/";>Simple Object > As

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
Well, you could create your own BusinessPropertyModel class that subclasses PropertyModel and catches those exceptions, perhaps. You'd have to figure out an elegant way to propagate the error message to the FormComponent that caused the issue. If you don't need component-specific error messages y

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread James Carman
What about having a Validatable interface instead? I realize that this would allow you to put your business objects into an invalid state, but it would help make things easier :) On Fri, Jan 28, 2011 at 3:18 PM, fernandospr wrote: > > Hi all, > > I'm new to Wicket. > I'm building an application,

Re: Free wicket from component hierarchy hell

2011-01-20 Thread James Carman
t; -igor > > On Thu, Jan 20, 2011 at 1:43 PM, James Carman > wrote: >> On Thu, Jan 20, 2011 at 3:34 PM, Martin Makundi >> wrote: >>> >>> The largest production I am responsible for is stuck with >>> 1.4.9  because some of the later >>> releases

Re: Free wicket from component hierarchy hell

2011-01-20 Thread James Carman
On Thu, Jan 20, 2011 at 3:34 PM, Martin Makundi wrote: > > The largest production I am responsible for is stuck with > 1.4.9  because some of the later > releases have not been monotonically improving. So we are stuck with > some patches etc. and we haven't had time to refactor to 1.4.x > We're s

Re: Automatic ajax feedback panel

2011-01-20 Thread James Carman
Wicketopia has something similar called "autofeedback." It's not as robust, but I believe Igor and I discussed this a while back, so I decided to make it reusable. On Thu, Jan 20, 2011 at 12:21 PM, Martin Makundi wrote: > Hi! > > Referring to > http://apache-wicket.1842946.n4.nabble.com/HowTo-i

Re: export to excel AjaxFallbackDefaultDataTable

2011-01-20 Thread James Carman
Are you using a DownloadLink? http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/link/DownloadLink.html#setDeleteAfterDownload%28boolean%29 On Thu, Jan 20, 2011 at 11:26 AM, fachhoch wrote: > > Thanks for your reply , I tried using apache poi call the data provider get > data a

Re: Modal Window defined in actionpanel

2011-01-17 Thread James Carman
Just use one modal window. The "edit" link would be an ajax link and it would set the model for the window and show it. On Mon, Jan 17, 2011 at 12:30 PM, gnugrf wrote: > > I'm trying to get a modal window to popup to make edits on line items from a > Listview. I have an actionpanel with an "edit

Re: Check for User-Modified ("Dirty") Fields before Form Submission

2011-01-17 Thread James Carman
Couldn't you do this with JavaScript? Just modify a hidden form field if a field is modified by the user? On Mon, Jan 17, 2011 at 11:23 AM, Pedro Santos wrote: > or you can test if the formComponent.getConvertedInput() is different from > formComponent.getModelObject() at validation time (insid

Re: How to add tooltips to components?

2011-01-17 Thread James Carman
Do you need Ajax tooltips? Or, do you just need static ones that are known at page render time? For static ones, I've used overLIB ( http://www.bosrup.com/web/overlib/) and it worked fairly well. If you want to see some Wicket-based code for supporting overLIB, let me know. On Mon, Jan 17, 2011

Re: Automatic Ajax after page load and redirect to PageExpiredErrorPage

2011-01-16 Thread James Carman
On Sun, Jan 16, 2011 at 11:36 PM, Jeremy Thomerson wrote: > > Could you disable the links until the AJAX is finished? Or use a veil? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Should Logger classes be transient?

2011-01-15 Thread James Carman
try static On Sat, Jan 15, 2011 at 3:59 PM, Alexandros Karypidis wrote: > Hello, > > I'm using SLF4J and was wondering whether pages should declare: > >private transient final Logger log = LoggerFactory >.getLogger(SomePage.class); > > as members. I guess that accessing a page tha

Re: Can't get a SortableDataProvider class to accept DI of service class

2011-01-14 Thread James Carman
Only components are automatically injected. Google a bit On Jan 14, 2011 8:08 PM, "lchalupa" wrote: > > The class SortableDataProvider throws a NPE. The PersonService and the > GUIService that should be getting injected both end up being null values. > I've tried both annotations @Autowired and @

Re: Spring Security: SecurityContext changes

2011-01-14 Thread James Carman
Try using the HTTP Session Integration stuff. On Fri, Jan 14, 2011 at 11:53 AM, ilde...@gmail.com wrote: > Debugging deeper, it seems that in class > ThreadLocalSecurityContextHolderStrategy > the field "ThreadLocal contextHolder" when called for > the stored SecurityContext instance with > >  co

Re: OT: app throws java.lang.NoClassDefFoundError sometimes, and sometimes it doesnt

2011-01-13 Thread James Carman
Send this to the Tomcat list. On Thu, Jan 13, 2011 at 6:58 AM, Sam Zilverberg wrote: > Hi, > > I'm running a wicket app on tomcat 6.0.20. > Once in a while I need to redeploy it (after fixing some stuff, adding > features and so on). > This is how I redeploy: > 1.Use tomcat manager to undeploy th

Re: Modal widow slow?

2011-01-12 Thread James Carman
and I am >> worrying that clicking the table cell and waiting for the editor to >> pop up will be slow (or annoyingly slow). >> >> ** >> Martin >> >> 2011/1/12 James Carman : >>> I'm asking because I had that sort of trouble with IE a while back

Re: Modal widow slow?

2011-01-12 Thread James Carman
e > network is not really an option ;) > > ** > Martin > > 2011/1/12 James Carman : >> What browser? >> >> On Wed, Jan 12, 2011 at 1:46 PM, Martin Makundi >> wrote: >>> Hi! >>> >>> Has anybody noticed that Wicket ajax ModalWindow

Re: Modal widow slow?

2011-01-12 Thread James Carman
What browser? On Wed, Jan 12, 2011 at 1:46 PM, Martin Makundi wrote: > Hi! > > Has anybody noticed that Wicket ajax ModalWindow is bit slow to load, > or is it just me? > > Has anybody tried to overcome it by switching to another > implementation/styling or is it totally dependent on the content

<    1   2   3   4   5   6   7   8   9   10   >