Re: WicketStuff version bumping?

2010-05-05 Thread James Carman
Wouldn't you release a 1.4.8 version (which goes with wicket 1.4.8) and then go to 1.4.9-SNAPSHOT? 2010/5/5 Major Péter majorpe...@sch.bme.hu: Hi, We have 1.4.7-SNAPSHOT for quite some time now, shouldn't we release an 1.4.8 edition and bump to 1.4.8-SNAPSHOT? Regards, Peter

Re: WicketStuff version bumping?

2010-05-05 Thread James Carman
Just checking. :) 2010/5/5 Major Péter majorpe...@sch.bme.hu: Right, this would make more sense :) 2010-05-06 01:07 keltezéssel, James Carman írta: Wouldn't you release a 1.4.8 version (which goes with wicket 1.4.8) and then go to 1.4.9-SNAPSHOT? 2010/5/5 Major Péter majorpe...@sch.bme.hu

Re: Panel without HTML

2010-05-04 Thread James Carman
Wicketopia does some of this kind of stuff, but it's based on class/property metadata. Basically, it auto-creates forms for you on the fly based on annotations you put on the field values. You *could* also use Velocity to dynamically generate your markup at runtime, also. That's an interesting

RE: AjaxFallbackDefaultDataTable Model Not Updating

2010-04-30 Thread Corbin, James
Is the solution to add AjaxFormComponentUpdatingBehavior/AjaxFormChoiceComponentUpdatingBehavior to each of the editable form components? -Original Message- From: Corbin, James [mailto:jcor...@iqnavigator.com] Sent: Thursday, April 29, 2010 4:42 PM To: users@wicket.apache.org Subject

AjaxFallbackDefaultDataTable Model Not Updating

2010-04-29 Thread Corbin, James
A co-worker of mine created an AjaxFallbackDefaultDataTable with editable cells. In this case they are dropdowns. She is dynamically adding rows to the table. If she modifies one of the component drop down (PropertyModel) values in one of the cells and then adds a new row, the changes she

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread James Carman
. On Wed, Apr 28, 2010 at 6:18 AM, Giovanni pino_o...@yahoo.com wrote: James, can you share your SpringSecurityWebApplication and SpringSecurityWebSession classes? If you also write a  small tutorial on how to use them, it will be great. Best regards, giovanni

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-28 Thread James Carman
wrote: James, can you share your SpringSecurityWebApplication and SpringSecurityWebSession classes? If you also write a  small tutorial on how to use them, it will be great. Best regards, giovanni From: James Carman jcar...@carmanconsulting.com

Re: Wicket survey?

2010-04-27 Thread James Carman
I got this email too and was wondering the same thing. If you find out it's legit, let me/us know. On Tue, Apr 27, 2010 at 5:53 PM, Russell Morrisey russell.morri...@missionse.com wrote: I received a personal e-mail from somebody's g-mail account, claiming to be from the Wroclaw University of

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-04-27 Thread James Carman
I have a SpringSecurityWebApplication and SpringSecurityWebSession class you can use if you want. On Tue, Apr 27, 2010 at 7:49 PM, Ben Tilford bentilf...@gmail.com wrote: You can use Spring security with wicket auth-roles, I works out pretty nice compared to the alternatives.  iirc You need do

Re: Back button

2010-04-25 Thread James Carman
That means one of your fields might *not* be Serializable. The error message usually tells you the exact field that caused the problem (in development mode). On Sun, Apr 25, 2010 at 8:26 AM, Nico Guba ng...@mac.com wrote: Hmmm, does that imply that one of the member variables may be

Re: Back button

2010-04-25 Thread James Carman
failed to lazy load exception, then I hit the back button, the links on the page all throw a component not found on page D/ On Apr 25, 2010, at 7:45 AM, James Carman wrote: That means one of your fields might *not* be Serializable.  The error message usually tells you the exact field

Re: Back button

2010-04-25 Thread James Carman
I meant page store, not session store. On Sun, Apr 25, 2010 at 12:26 PM, James Carman jcar...@carmanconsulting.com wrote: It would affect the back button because when Wicket tries to go get the specific version of the page back from the session store (only the current version is kept

Wicket Developer Role in Portsmouth, Hampshire, England

2010-04-23 Thread James Perry
Services, XML Schema, XLST and Linux. Please email your CV to martin.sum...@cpg-logistics.com to apply. Any non UK applicants must have good written and verbal English skills and the relevant Visa to work lawfully in the UK. -- Best, James

Re: DropDownList

2010-04-19 Thread James Carman
; it's just a mindset change. Good luck! James On Mon, Apr 19, 2010 at 8:52 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks alot Martin and MattyDE,   Martin's solution is exactly what i wanted. Regards. On Mon, Apr 19, 2010 at 3:42 PM, MattyDE ufer.mar...@gmail.com wrote: just override

Re: Type Inference for Wicket 1.4

2010-04-16 Thread James Carman
of them, and you would need even more of them on your extended model and component classes. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Apr 15, 2010 at 8:51 AM, Thomas Kappler thomas.kapp...@isb-sib.chwrote: On 04/15/10 13:06, James Perry wrote: I can sympathise

Re: Repeating form on a page

2010-04-16 Thread James Carman
The forms are all based on models. So, just make sure you use a different model for each form. I'd look into ListView, perhaps. On Fri, Apr 16, 2010 at 9:48 AM, David Hamilton dhamil...@hermitagelighting.com wrote: I am new to Wicket (and have had great help from this community so far - thank

Re: Type Inference for Wicket 1.4

2010-04-15 Thread James Perry
I can sympathise with that. However I don't think it would be a maintenance nightmare if the constructors are set to private; but that would mean a dramatic API change for such convenience and I'm guessing you're not willing to do this. Best, James. On 14 April 2010 17:01, Igor Vaynberg

Type Inference for Wicket 1.4

2010-04-14 Thread James Perry
: ModelMySuperLongNameForASimpleFooObject model = Model.newModel(); public static T ModelT newModel() { return new ModelT(); } Feedback welcomed. :-) -- Best, James. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Newbie Question about populating form values

2010-04-14 Thread James Carman
Why not use a LoadableDetachableModel instead of setting on onBeforeRender()? On Wed, Apr 14, 2010 at 12:10 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: If you're using a CPM there's no need to explicitly set models  for child components. Also think about what you want to happen on

Re: Newbie Question about populating form values

2010-04-14 Thread James Carman
. On Wed, Apr 14, 2010 at 9:24 AM, James Carman jcar...@carmanconsulting.comwrote: Why not use a LoadableDetachableModel instead of setting on onBeforeRender()? On Wed, Apr 14, 2010 at 12:10 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: If you're using a CPM there's no need

Re: How does IAjaxIndicatorAware really works?

2010-04-13 Thread James Carman
There's a veil component in wicketstuff-minis (I believe it's still there). I'd look there first. On Tue, Apr 13, 2010 at 3:47 AM, Ilia Poliakov ipol...@web.de wrote: My goal is to show a modal div with loading animation gif during AJAX requests. The easiest way I found is to use jQuery

Re: How does IAjaxIndicatorAware really works?

2010-04-13 Thread James Carman
is not modal. There is an option to write my own modal dialog but it's the last thing I want to do James Carman-3 wrote: There's a veil component in wicketstuff-minis (I believe it's still there).  I'd look there first. -- View this message in context: http://old.nabble.com/How-does

Re: How does IAjaxIndicatorAware really works?

2010-04-13 Thread James Carman
Sorry, not javadocs, but comments. Too early yet. :) On Tue, Apr 13, 2010 at 8:27 AM, James Carman jcar...@carmanconsulting.com wrote: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/minis-parent/minis/src/main/java/org/wicketstuff/minis/veil/wicket-veil.js

Re: Re: how to make a wicket web editor

2010-04-13 Thread James Carman
Have you tried using visrual wicket's rich text editor? There's an example here: http://visural-wicket-examples.appspot.com/app/ I've never used it, but it looks pretty cool (so does the other stuff). On Tue, Apr 13, 2010 at 6:49 AM, wicketyan wicket...@gmail.com wrote: thanks mj! it looks

Re: BookmarkablePageLink functionality in a Button

2010-04-12 Thread James Carman
Have you tried just attaching your link to a button? button wicket:id=myButtonSomeText/button On Mon, Apr 12, 2010 at 3:44 AM, Martin Asenov mase...@velti.com wrote: Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage {  public LogoutPage() {    add(new

Re: BookmarkablePageLink functionality in a Button

2010-04-12 Thread James Carman
No, do exactly what I put. 2010/4/12 Martin Asenov mase...@velti.com: You mean to put an anchor inside the button's body? Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12, 2010 1:41 PM To: users@wicket.apache.org

Re: BookmarkablePageLink functionality in a Button

2010-04-12 Thread James Carman
In your code... add(new BookmarkablePageLink(mylink, myurl)); In your markup: button wicket:id=mylinkWhatever You Want the Button to Say/button 2010/4/12 Martin Asenov mase...@velti.com: James :) I can't get it... Put what where? Best, Martin -Original Message- From: James

Re: BookmarkablePageLink functionality in a Button

2010-04-12 Thread James Carman
You can put a wicket link on almost anything! 2010/4/12 Martin Asenov mase...@velti.com: Never knew I could put a wicket link in a button tag... :-) Thank you, James! Best, Martin -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 12

Re: How to centrally handle common exceptions from the databsae layer?

2010-04-12 Thread James Carman
Those type of exceptions should be guarded against in your code (with validators, etc.). You shouldn't typically want to see them in production. I don't do anything special to handle unchecked exceptions for database problems because it's usually one of the following issues: 1. My code isn't

Re: Wicket and JEE6

2010-04-11 Thread James Carman
I would imagine that most implementations would cache their injectors (it's part of the BeanT) On Sun, Apr 11, 2010 at 4:30 PM, Erik Brakkee erik.brak...@gmail.com wrote: Just have a look at https://wamblee.org/svn/public/wicket-cdi The main thing I did was to make the injection and caching

Re: Wicket and JEE6

2010-04-10 Thread James Carman
My implementation is available at: http://svn.carmanconsulting.com/public/wicket-cdi/trunk/ The CdiPlugin class has an inject() method that can be used to inject anything, also. On Sat, Apr 10, 2010 at 5:11 PM, Erik Brakkee erik.brak...@gmail.com wrote: On Mon, Apr 5, 2010 at 11:58 PM, James

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread James Carman
Yeah, I think telling him that IE6 is dead isn't quite accurate: http://www.w3schools.com/browsers/browsers_stats.asp Yes, it's declining, but it's not dead. It is still used 58% as much as IE8 and roughly 83% as much as IE7. So, it is still used by folks. I agree that people should upgrade,

Re: JavaOne in San Francisco

2010-04-09 Thread James Carman
There's an app for that: http://www.gadgettastic.com/2008/07/07/iphone-beer-app/ On Fri, Apr 9, 2010 at 9:25 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I'd like to have a beer too, but I fear it has to be viirtual. Budget this year are only for geeCon and Devoxx. Maybe overseas

Re: JavaOne in San Francisco

2010-04-09 Thread James Carman
I've got a G1. Unfortunately T-Mobile won't give me the new OS update yet. :( On Fri, Apr 9, 2010 at 11:12 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: but i just switched to htc hero :| -igor On Fri, Apr 9, 2010 at 7:10 AM, James Carman jcar...@carmanconsulting.com wrote: There's

Re: What happens after browser's 'back' button?

2010-04-06 Thread James Carman
On Tue, Apr 6, 2010 at 8:07 AM, McIlwee, Craig craig.mcil...@openroadsconsulting.com wrote: As long as you prevent the browser from caching the page with the form (just the page itself, caching the resources is fine) then when the user hits back wicket will pull the old page instance from the

Re: What happens after browser's 'back' button?

2010-04-06 Thread James Carman
Thanks for the tip! I'll make sure I set that up in my base page. On Tue, Apr 6, 2010 at 3:53 PM, Craig McIlwee craig.mcil...@openroadsconsulting.com wrote: You're right James, I failed to mention that my approach will not work for stateless pages.  A stateful URL is needed to identify

Re: LoadableDetachable Models

2010-04-06 Thread James Carman
...@missionse.com | www.missionse.com 304 West Route 38, Moorestown, NJ 08057 -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, April 05, 2010 10:16 PM To: users@wicket.apache.org Subject: Re: LoadableDetachable Models It doesn't hold onto

Re: Wicket and JEE6

2010-04-05 Thread James Carman
Did you not look at what I put together? I've already got all the injection stuff (and conversations) working and I've got example applications illustrating it. On Mon, Apr 5, 2010 at 3:47 PM, Erik Brakkee erik.brak...@gmail.com wrote: I wonder what the use would be for the request, session,

Re: Wicket and JEE6

2010-04-05 Thread James Carman
It's apparently down again. That's what I get for hosting my server at my in-law's house. Cheaper isn't necessarily better. If you want, I can email you the code. On Mon, Apr 5, 2010 at 4:32 PM, Erik Brakkee erik.brak...@gmail.com wrote: On Mon, Apr 5, 2010 at 9:54 PM, James Carman jcar

Re: Wicket and JEE6

2010-04-05 Thread James Carman
On Mon, Apr 5, 2010 at 5:27 PM, Erik Brakkee erik.brak...@gmail.com wrote: I think in general, the code should become part of a wicket-cdi project just like wicket-spring and wicket-guice already are. I think the wicket community is probably a better place to maintain this then the weld

Re: LoadableDetachable Models

2010-04-05 Thread James Carman
You can use what we call a shadow model or a proxy model. https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/model/proxy/ProxyModelManager.java This approach will work for you. Basically, you use the ProxyModelManager to wrap all of your real

Re: LoadableDetachable Models

2010-04-05 Thread James Carman
) It may be you don't hit this problem in your use case. RUSSELL E. MORRISEY Programmer Analyst Professional Mission Solutions Engineering, LLC | russell.morri...@missionse.com | www.missionse.com 304 West Route 38, Moorestown, NJ 08057 -Original Message- From: James Carman

Re: Click link

2010-04-04 Thread James Carman
For this, why are you having to write your own JavaScript? On Sun, Apr 4, 2010 at 6:00 AM, Mathias Nilsson wicket.program...@gmail.com wrote: I solved it. I needed to set return false; in the javascript to get it to work in all browsers. -- View this message in context:

Re: Click link

2010-04-04 Thread James Carman
Sorry, I didn't notice the part where you're looking for the enter key to be pressed. I thought you were just looking to do the callback on any key press. You might want to override getPreconditionScript() to check for that key code, though. That might be a bit cleaner and a bit less brittle.

Re: Click link

2010-04-03 Thread James Carman
Move the logic in the onClick() into a helper method (that takes an AjaxRequestTarget) and just call that from the onUpdate() method? On Sat, Apr 3, 2010 at 11:17 AM, Mathias Nilsson wicket.program...@gmail.com wrote: Hi, I have a a listview in a form that contains cart items. Every list

Re: Click link

2010-04-03 Thread James Carman
How does it cause it to post? Both of those methods are ajax-based. You should be good to go. On Sat, Apr 3, 2010 at 11:35 AM, Mathias Nilsson wicket.program...@gmail.com wrote: yes, I have done that but the it causes the page to post. I want the scroll to remain and no postback. -- View

Re: Hibernate - OSIV

2010-04-01 Thread James Carman
They have to be different sessions. Hibernate's cache (the first level) guarantees that you get the same object for any given entity within the same session. On Thu, Apr 1, 2010 at 3:47 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: The issue was the object was being evicted from the

Re: Hibernate - OSIV

2010-04-01 Thread James Carman
Why do you need different objects? On Thu, Apr 1, 2010 at 4:25 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: So by using the OSIV, I am out of luck?  Any ideas? -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Thursday, April 01, 2010 3

Re: RE: Hibernate - OSIV

2010-04-01 Thread James Carman
-nameopensessioninview/filter-name filter-classorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class init-param param-namesingleSession/param-name param-valuefalse/param-value /init-param /filter -Original Message- From: James

Re: Wicket and JEE6

2010-03-31 Thread James Carman
CDI can do in the near future. Please feel free to check it out. If there is enough interest, I'll just move this stuff into wicketstuff SVN (and change the package names), so other folks can contribute. On Tue, Mar 30, 2010 at 8:54 AM, James Carman jcar...@carmanconsulting.com wrote: I think

Re: Hibernate - OSIV

2010-03-31 Thread James Carman
Loadabledetachablemodel? On Mar 31, 2010 5:47 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I think I have the OSIV filter setup correctly but I can't access any lazy loaded properties of my objects. I am not even between requests when this is happening. Does anyone have any ideas?

Re: RE: Hibernate - OSIV

2010-03-31 Thread James Carman
Have you tried tuning up logging? See when the session is being opened/closed. On Mar 31, 2010 6:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I don't think that is it. I haven't even put the object into any model yet. I am just calling the dao and then calling the getter. I

Re: Wicket and JEE6

2010-03-30 Thread James Carman
, James On Tue, Mar 30, 2010 at 7:05 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Olivier, I got Jame's stuff [1] up and running (thanks James) with just a few small changes to the POMs - maybe he has stuff already in his local Maven repo that is no longer on the main public repos

Re: Wicket and JEE6

2010-03-30 Thread James Carman
I was using M4 of OWB, but I had to patch it. Are you sure it works for you? I was getting a NPE. On Tue, Mar 30, 2010 at 7:22 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: James, See the patch below; please double-check but it should be still valid if you haven't updated your

Re: Wicket and JEE6

2010-03-30 Thread James Carman
wrote: James, I'm pretty sure mvn test ran successfully on all your projects once I patched the POMs. I ran some (maybe not all) of the demo apps too. Send me your patches if you like too (they must not have been deployed yet on Sunday) and I may be able to take another look this evening

Re: Wicket and JEE6

2010-03-30 Thread James Carman
On Tue, Mar 30, 2010 at 10:21 AM, Olivier Bourgeois olivier.bourgeois@gmail.com wrote: James,  you need an empty beans.xml file to let Weld know what to scan, this is explained much further in this blog entry : http://relation.to/Bloggers/WhyIsBeansxmlRequiredInCDI Yeah, I guess I

Re: better way setting up ID for a Wicket component?

2010-03-30 Thread James Carman
additional method for a Componment:    Component setMarkupIdToWicketId().    Re-using a Wicket Id as markup id as convention should be best practice. Am I right? I am new in wicket and sorry if I am wrong.    Best.    --- On Mon, 3/29/10, James Carman jcar

Re: Passing / Persisting an object without PageParameters

2010-03-29 Thread James Carman
Well, what I have done in this situation is I use a breadcrumb: public class Breadcrumb implements Serializable { private final PageReference destination; public Breadcrumb() { this.destination = PageReference.forRequestedPage(); } public Link createCancelLink(String

Re: Wicket and JEE6

2010-03-29 Thread James Carman
Olivier, Iskandar, and James! After getting Weld integration to work with the weld-wicket jar I realized that the integration is limited to classes that subclass from WebPage (or Page I suppose) to work within a request cycle. I cannot inject a DAO into a session or a singleton

Re: WicketFilter Config

2010-03-29 Thread James Carman
Do you want/need to configure your application via Spring? On Mon, Mar 29, 2010 at 4:27 PM, mzem...@osc.state.ny.us wrote: Igor, We are using WicketFilter with SpringWebApplicationFactory. This works fine, but I've noticed SpringWebApplication has been deprecated, and since

Re: WicketFilter Config

2010-03-29 Thread James Carman
we are using Spring. Our Spring configuration works with either the SpringWebApplicationFactory or ContextParamWebApplicationFactory. James Carman jcar...@carmanconsulting.com 03/29/2010 04:31 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread James Carman
that it would be much nice if Wicket could have the following additional method for a Componment: Component setMarkupIdToWicketId(). Re-using a Wicket Id as markup id as convention should be best practice. Am I right? I am new in wicket and sorry if I am wrong. Best. --- On Mon, 3/29/10, James

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread James Carman
do the trick, but it feels not so natural as a convenince method as mentioned in my previous email. Would it be possible for such a method make its way into a future release? Regards. --- On Mon, 3/29/10, James Carman jcar...@carmanconsulting.com wrote: From: James Carman jcar

Re: better way setting up ID for a Wicket component?

2010-03-29 Thread James Carman
such trivial methods that will be useful to you, this is what static imports are for. -igor On Mon, Mar 29, 2010 at 6:18 PM, James Carman jcar...@carmanconsulting.com wrote: Perhaps. File a JIRA report ( https://issues.apache.org/jira/browse/WICKET) and ask for it as a New Feature

Re: PROBLEM WITH PAY PAL INTEGRATION

2010-03-28 Thread James Perry
It not a wicket issue. You have two input elements with the same name: 1.input type=text name=item_name 2.input type=text name=item_name wicket:id=itemName Remove the line 1 and voila! Best, James. On 28 March 2010 22:06, victorTrapiello vic...@trapiello.net wrote: Hello guys! I´m trying

Re: How to put a validation error message near its field?

2010-03-27 Thread James Carman
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/panel/ComponentFeedbackPanel.html On Sat, Mar 27, 2010 at 10:11 PM, David Chang david_q_zh...@yahoo.comwrote: FeedbackPanel is great in in terms of gathering messages in a central place. But I saw many great sites have messages

Re: Wicket and JEE6

2010-03-27 Thread James Carman
Ok, I've got the OWB examples working now with my local patched version of OWB (patches submitted to JIRA). Also, note I've renamed the library to wicket-cdi: http://svn.carmanconsulting.com/public/wicket-cdi/trunk On Sat, Mar 27, 2010 at 1:39 AM, James Carman jcar...@carmanconsulting.comwrote

Re: Wicket and JEE6

2010-03-26 Thread James Carman
Weld has wicket support built-in I believe. On Fri, Mar 26, 2010 at 12:52 PM, Ericksen, Mark W (IS) mark.erick...@ngc.com wrote: Hi, I'm building a new java project using all JEE6 technologies. That means I'm using JPA, CDI, and JSF2 for example. Each layer came together great with

Re: Wicket and JEE6

2010-03-26 Thread James Carman
additional help is greatly appreciated! -Mark -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Friday, March 26, 2010 10:52 AM To: users@wicket.apache.org Subject: Re: Wicket and JEE6 Weld has wicket support built-in I believe. On Fri, Mar 26, 2010 at 12

Re: Wicket and JEE6

2010-03-26 Thread James Carman
I've got a working example with Weld. Check out: http://svn.carmanconsulting.com/public/wicket-candi/trunk There's a weld-example subdirectory in there. Currently, I don't have the conversation stuff working, but the injections appear to be working. Unfortunately, the implementation doesn't

Re: AW: signout and redirect

2010-03-25 Thread James Carman
This works for me: final Link signOutLink = new Link(signOutLink) { public void onClick() { getSession().invalidate(); setResponsePage(getApplication().getHomePage()); setRedirect(true); }

Re: AW: signout and redirect

2010-03-25 Thread James Carman
);                        }                }                return null;        } it fails at this line String queryString = urlCrypt.decryptUrlSafe(secureParam); why decrypt fails  if session is  invalidated ? James Carman-3 wrote: This works for me: final Link signOutLink = new Link(signOutLink)         {             public void

Re: Required Border...

2010-03-24 Thread James Carman
Well, per the example in the forms with flair demo, I'm adding these borders to my components on the fly using a visitor. So, I don't think the FormComponentFeedbackBorder thing will work, since I would have to actually change the hierarchy by adding my component *to* the border component (it

Re: Required Border...

2010-03-24 Thread James Carman
(field); final FormComponentFeedbackIndicator indicator = new FormComponentFeedbackIndicator(indicator); indicator.setOutputMarkupPlaceholderTag(true); indicator.setIndicatorFor(field); form.add(indicator); Regards, Gabriel. James Carman-3 wrote: Well, per the example in the forms

Re: Spring problems

2010-03-24 Thread James Carman
If you want an example that works out-of-the-box, check out: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Wed, Mar 24, 2010 at 3:29 PM, Eric Reagan reaga...@gmail.com wrote: I am trying to setup a spring application and I can't seam to get past a NoWebApplicationContext

Re: Required Border...

2010-03-24 Thread James Carman
FormComponentFeedbackIndicator(indicator); indicator.setOutputMarkupPlaceholderTag(true); indicator.setIndicatorFor(field); form.add(indicator); Regards, Gabriel. James Carman-3 wrote: Well, per the example in the forms with flair demo, I'm adding these borders to my components on the fly using a visitor.  So, I

Re: Palette Problem

2010-03-24 Thread James Carman
Doesn't your current have to be a subset of available? On Wed, Mar 24, 2010 at 2:58 PM, Josh Chappelle jchappe...@4redi.com wrote: Hi, I'm having a problem that is about to drive me nuts. I have a Palette that won't display the selected values. I am able to reproduce my problem with a

Re: Palette Problem

2010-03-24 Thread James Carman
No problem, man. Sorry about the 4 hours. That's what paired programming is for! :) Glad to help. On Wed, Mar 24, 2010 at 4:44 PM, Josh Chappelle jchappe...@4redi.com wrote: Yes that was it. I wish I had those 4 hours back. Thank you. -Original Message- From: James Carman

Re: Simple way to use button as link?

2010-03-23 Thread James Carman
Try button wicket:id=myLinkwicket:message key=i18nkey //button. Then, just add any type of link object to your page with id myLink. You can attach a link to darn-near anything and it will work. On Tue, Mar 23, 2010 at 5:09 AM, Sergey Olefir solf.li...@gmail.com wrote: Hi, for user interface

Required Border...

2010-03-23 Thread James Carman
Does anyone have a required border class (something that automatically puts a little red * next to a required field)? I have one that I'm using, but it doesn't work under ajax! When the component gets updated via ajax, it keeps appending little red *s to the markup. Don't get me wrong, it's

Re: Required Border...

2010-03-23 Thread James Carman
I'm using that exact code. It doesn't work for my ajax situation. On Tue, Mar 23, 2010 at 4:59 PM, Fernando Wermus fernando.wer...@gmail.com wrote: see london wicket. I dont know if it is an *, but looks nice. On Tue, Mar 23, 2010 at 5:52 PM, James Carman ja...@carmanconsulting.comwrote

Re: Required Border...

2010-03-23 Thread James Carman
causing it to become enabled (if a user types in a certain field, other required fields become visible/required). So, I actually do need it to render during a particular ajax request. :( On Tue, Mar 23, 2010 at 5:00 PM, James Carman jcar...@carmanconsulting.com wrote: I'm using that exact code

Re: Reasons against using Acegi with Wicket?

2010-03-22 Thread James Carman
David, My example application I pointed out to you contains a Spring Security (formerly Acegi) configuration for Wicket (with a superclass for the application/session). That should help get you off the ground quickly if you want to go with Spring Security. James On Mon, Mar 22, 2010 at 8:15 AM

Re: TextField hosting an Integer

2010-03-22 Thread James Carman
Change your property to Integer and not int? That way, it can be null (which would show up as empty on the text field). On Mon, Mar 22, 2010 at 11:09 AM, Steven Haines lyg...@yahoo.com wrote: Hi, I'm creating a text field to host an integer, namely the year that a house was built:

Re: Handling Composite Data Table Efficiently

2010-03-22 Thread James Carman
You could use Fragments instead of Panels. They're a bit more lightweight. On Mon, Mar 22, 2010 at 3:59 PM, Pedro Santos pedros...@gmail.com wrote: Take a look at:

Re: How to specify different log4j.properties for production and WicketTester servlet container?

2010-03-19 Thread James Carman
You can look at how I set up configuration stuff in my Advanced Wicket example code: http://svn.carmanconsulting.com/public/wicket-advanced/trunk Basically, I use maven profiles to point to different configuration directories for each environment (dev, test, prod). Perhaps that would help. On

Re: Select the Choose one of a required DropDownChoice

2010-03-18 Thread James Carman
Perhaps put logic in onsubmit to check for required country? On Mar 18, 2010 6:45 PM, David Chang david_q_zh...@yahoo.com wrote: Martin, the following is the code for the country dropdown list, which can control the state dropdown list. The problem is that when the country list's value is

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread James Carman
You can try my demo application I used for my Advanced Wicket presentation: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Mon, Mar 15, 2010 at 10:05 PM, David Chang david_q_zh...@yahoo.com wrote: Can anybody recommend to me two good complete clean sample or open source

Re: Recommend two good complete clean Wicket+Spring+Hibernate apps?

2010-03-15 Thread James Carman
On Mon, Mar 15, 2010 at 10:57 PM, David Chang david_q_zh...@yahoo.com wrote: James, I just downloaded your application. Do you have any documentation/presentation about this application? I didn't really have a slide presentation for this talk. I basically just walked through code. I did

Re: A question about using Spring in Wicket 1.4

2010-03-11 Thread James Carman
yes On Thu, Mar 11, 2010 at 8:56 AM, David Chang david_q_zh...@yahoo.com wrote: Yesterday I was looking at the page Migrating to Wicket 1.4 http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html Regarding SpringWebApplication, it says: SpringWebApplication has been deprecated in favor

RE: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Corbin, James
Is there a wicket version where it works ? I tried with 1.4.6 and 1.4.7 but i get the same error which James got. My use case : I'm trying to submit a form via ajax to upload a file inside modal window. After debug: FileUploadBase.isMultipartContent get false because

Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread James Carman
get the same error which James got. My use case : I'm trying to submit a form via ajax to upload a file  inside modal window. After debug: FileUploadBase.isMultipartContent get false because if (contentType.toLowerCase().startsWith(MULTIPART))   - contentType = application/x-www-form-urlencoded

RE: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread Corbin, James
Hmmm...I thought the Wicket Team already implemented something similar to this into the framework some time ago. -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Wednesday, March 10, 2010 11:15 AM To: users@wicket.apache.org Subject: Re: Nested Forms

Re: Nested Forms and Multipart Fileupload Issue

2010-03-10 Thread James Carman
Perhaps it's in Wicket-stuff? I don't know. On Wed, Mar 10, 2010 at 1:19 PM, Corbin, James jcor...@iqnavigator.com wrote: Hmmm...I thought the Wicket Team already implemented something similar to this into the framework some time ago. -Original Message- From: James Carman

Re: Label state after submit

2010-03-09 Thread James Carman
Perhaps you need to update your form via ajax so that the submit button is pointing to the correct version of the page? On Tue, Mar 9, 2010 at 9:19 AM, Gustavo Henrique gustavo...@gmail.com wrote: Hi! How I can keep the label's states values after form submit? My app update the values of 3

Nested Forms and Multipart Fileupload Issue

2010-03-09 Thread Corbin, James
This issue seems to pop up in our environment from time to time and trying to figure out how to fix it once and for all. We have a page with a form that pops up modal window with a form specified as well. When we try to submit, we get the following exception: java.lang.IllegalStateException:

Re: Nested Forms and Multipart Fileupload Issue

2010-03-09 Thread James Carman
You're trying to submit a form via ajax to upload a file? On Tue, Mar 9, 2010 at 4:26 PM, Corbin, James jcor...@iqnavigator.com wrote: This issue seems to pop up in our environment from time to time and trying to figure out how to fix it once and for all. We have a page with a form that pops

RE: Nested Forms and Multipart Fileupload Issue

2010-03-09 Thread Corbin, James
that does so via Ajax (e.g., AjaxButton). Once we click the ajax submit button, we get the error below. -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Tuesday, March 09, 2010 2:30 PM To: users@wicket.apache.org Subject: Re: Nested Forms and Multipart

Re: Where to put an application's configuration parameters?

2010-03-08 Thread James Carman
have a class that retrieves the properties. On Sun, Mar 7, 2010 at 8:33 PM, James Carman ja...@carmanconsulting.com wrote: And if you want live redeployment, you could use jrebel and their spring plugin. I think it wi...

Re: Session expired drives me mad!

2010-03-08 Thread James Carman
Are you using @SpringBean? 2010/3/8 Martin Asenov mase...@velti.com: Hello everyone! The session expired problem really drives me mad, because it's been couple of months or so since it started bothering me. Please advice me on what to do, because I'm despaired. Wicket tries to serialize

<    3   4   5   6   7   8   9   10   11   12   >