Re: Noob question: Wicket and statefull/stateless

2008-11-19 Thread James Carman
He's not suggesting going stateless. He's suggesting an alternate way of maintaining state (by pushing it to the client in hidden fields). Tapestry supports (or supported) this as an option, but it made for some pretty gnarly URLs (all the state had to be appended to the end) for links. On

Re: Reading an attribute that is set in a CSS file as a class

2008-11-19 Thread James Carman
org.apache.wicket.util.time.Time; import java.util.Map; /** * @author James Carman */ public class TextTemplateResourceReference extends ResourceReference implements IClusterable, IDetachable

Re: Set the HTML id programmatically

2008-11-21 Thread James Carman
Have you tried using setMarkupId()? On Fri, Nov 21, 2008 at 3:08 PM, Martin Letendre [EMAIL PROTECTED] wrote: I am usign this version of Wicket: 1.3.5 1- I would like to override an id for a TextArea programmatically textarea wicket:id=description id=toOverride

Re: Set the HTML id programmatically

2008-11-21 Thread James Carman
Sorry, didn't see that second point there. Disregard On Fri, Nov 21, 2008 at 3:18 PM, James Carman [EMAIL PROTECTED] wrote: Have you tried using setMarkupId()? On Fri, Nov 21, 2008 at 3:08 PM, Martin Letendre [EMAIL PROTECTED] wrote: I am usign this version of Wicket: 1.3.5 1- I would

Re: Authorization and authentication

2008-11-21 Thread James Carman
It never was part of core. It's in wicket-auth-roles. On Fri, Nov 21, 2008 at 3:36 PM, Casper Bang [EMAIL PROTECTED] wrote: I'm trying to use the build-in authentication and authorization stuff of Wicket (1.4-rc1), as demonstrated on the examples page:

Re: Passing simple data between java code and the template

2008-11-22 Thread James Carman
Try using TextTemplate? I've just created a WIKI page that outlines how to do so for a CSS file. Perhaps you could borrow some of that for a JS template (or write your own WIKI page as a result). The key piece you want to look for is how it creates the PackagedTextTemplate and supplies values

Re: datatable and access to toolbars

2008-11-23 Thread James Carman
How about you have your toolbar replace its own contents based on what mode it's in? On Sun, Nov 23, 2008 at 7:59 AM, Alex Parvulescu [EMAIL PROTECTED] wrote: Hi, Perhaps i did not make myself clear, After adding the toolbar , i need to replace it with another toolbar. Let's say that I have

Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread James Carman
[X] YES On Mon, Nov 24, 2008 at 1:13 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Hello everyone, I would like to get your opinion on an idea regarding the Wicket Stuff project(s). As you are familiar with, Wicket Stuff is where anyone can create anything related to Wicket, small or large.

Re: Proper place to post questions about Wicket in Action examples?

2008-11-24 Thread James Carman
I'd say this forum is fine for questions about WIA. Most of us are quite familiar with the book. On Mon, Nov 24, 2008 at 5:42 PM, Susan Liebeskind [EMAIL PROTECTED] wrote: Should I be posting on the Wicket in Action forum on the Manning Publishing website? That forum doesn't look very active.

Re: SOLUTION:Hibernate Lazy initialazation issues and multi page wizard!

2008-11-25 Thread James Carman
doing initialize anyhow so using clone and a simple compound property model are just as fine plus more simple.. James Carman wrote: So, what's wrong with using shadow models and letting them eventually write into the real model (which is a LDM) at the very end? On Tue, Nov 25, 2008 at 2:25

Re: SOLUTION:Hibernate Lazy initialazation issues and multi page wizard!

2008-11-25 Thread James Carman
So, what's wrong with using shadow models and letting them eventually write into the real model (which is a LDM) at the very end? On Tue, Nov 25, 2008 at 2:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Guys I've been having a little trouble with hibernate and a

Re: AjaxSelfUpdatingTimerBehavior not updating

2008-11-25 Thread James Carman
] -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: 25 November 2008 03:19 PM To: users@wicket.apache.org Subject: Re: AjaxSelfUpdatingTimerBehavior not updating On Tue, Nov 25, 2008 at 7:41 AM, Yazeed Isaacs [EMAIL PROTECTED] wrote: If the AjaxSelfUpdatingTimerBehavior

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-25 Thread James Carman
Yes, our entire project at work is like this. The top-level project holds multiple modules. Each has a common, server, and client submodule. Works like a charm. On Tue, Nov 25, 2008 at 5:45 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Great idea! Yes. I have not nested any projects three

Re: triggering post of a form, from client side

2008-11-26 Thread James Carman
You may want to look at AjaxFormSubmitBehavior. If you can't use that directly, the code might give you an idea of how to write your Javascript to do form submissions manually. On Wed, Nov 26, 2008 at 6:27 AM, dshapi [EMAIL PROTECTED]wrote: hi, I need to trigger the post of a form - from the

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
code that may not take much to get working and maintain on the newer branch. On Wed, Nov 26, 2008 at 2:06 AM, James Carman [EMAIL PROTECTED] wrote: Yes, our entire project at work is like this. The top-level project holds multiple modules. Each has a common, server, and client submodule

Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread James Carman
The best way would be to file a JIRA (or search for an existing one that explains this issue) and attach your patch there. We're not allowed to apply patches unless they're submitted through JIRA and they have the Grant license to ASF for inclusion in ASF works thing checked. On Wed, Nov 26,

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread James Carman
We just issue a count(*) query first to get the count. Then, we use individual queries to get each page's data. If you feel confident enough that the count won't change (or you don't really care if it does), you can cache the value returned from it the count query (I don't know how often that

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread James Carman
first to get the count Yes so this will be called every time the page is rendered no unless you cache as you stated, but you run the risk changing dataset? thanks Wayne On Wed, Nov 26, 2008 at 5:05 PM, James Carman [EMAIL PROTECTED]wrote: We just issue a count(*) query first

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
On Wed, Nov 26, 2008 at 11:38 AM, Jeremy Thomerson [EMAIL PROTECTED] wrote: I think Wayne was referring not to your post, but in general - if we package most of the projects up neatly under one parent, then other projects that aren't in the same subdirectory / build cycle may get lost. I

Re: Wicket Session grows too big real fast

2008-11-26 Thread James Carman
Not exactly. It might be okay for web projects like this, but if you need to do any remoting, this won't work. Our domain entities have to be serializable. On Wed, Nov 26, 2008 at 11:22 AM, Bruno Cesar Borges [EMAIL PROTECTED] wrote: Now that is a really good advice. :-) -Mensagem

Re: Is there any other way? DataProviders must hit the Db twice for (possible) large datasets

2008-11-26 Thread James Carman
You've overloaded my sarcasm meter! Darn it, now I have to go buy a new one. On Wed, Nov 26, 2008 at 11:58 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: On Wed, Nov 26, 2008 at 7:32 AM, Wayne Pope [EMAIL PROTECTED] wrote: I'm sure I must be missing something still, as I can't beleive that we

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
Thomerson http://www.wickettraining.com On Wed, Nov 26, 2008 at 7:10 AM, James Carman [EMAIL PROTECTED] wrote: Merely bundling the examples with the code itself shouldn't cause this, do you think? On Wed, Nov 26, 2008 at 2:17 AM, Wayne Pope [EMAIL PROTECTED] wrote: YES. However I

Re: [discuss] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-26 Thread James Carman
}/SCM-Revision SCM-url${scm.url}/SCM-url /manifestEntries /archive /configuration /plugin On Nov 26, 2008, at 3:24 PM, James Carman wrote: The revision doesn't tell you

Re: Label Link item within a same table cell

2008-11-27 Thread James Carman
I typically use Fragments for these kinds of situations, unless of course, the same type of component will need to be used elsewhere. Then, I use a custom Panel class. On Thu, Nov 27, 2008 at 8:01 AM, Nicolas Castin [EMAIL PROTECTED]wrote: Hello, I had approxymatly the same think to do (with

Re: [VOTE] Consistent naming for Wicket Stuff projects

2008-11-27 Thread James Carman
[X] YES - I would like consistent naming! On Thu, Nov 27, 2008 at 4:54 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: I am beginning the WS reorg as noted in previous emails. You can monitor progress here:

Re: Switch db connection when Local Remote

2008-12-03 Thread James Carman
We use profiles in Maven2 to decide which configuration parameters to build with. Take a look at the example project for Wicketopia for an example of how we do that: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/example/ Basically, we add in a special resources directory that's

Re: Why can't I initialize PasswordTextField?

2008-12-03 Thread James Carman
On Wed, Dec 3, 2008 at 6:55 AM, Casper Bang [EMAIL PROTECTED] wrote: Yeah I thought of the security issue, it seems though quite a few PHP sites works like that (not to mention, build-in browser functionality which does the same kind of unsafe client side caching). The browser's saved

Re: Why can't I initialize PasswordTextField?

2008-12-03 Thread James Carman
You could also encrypt the information in the cookie. Make sure you use some salt. On Wed, Dec 3, 2008 at 10:50 AM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Yes, you need a token to look up the user by. But username sent in the cookie isn't secure enough (i could send cookie w/ your un and

Re: Switch db connection when Local Remote

2008-12-03 Thread James Carman
an in-memory HSQLDB database). On Wed, Dec 3, 2008 at 11:25 AM, Anton Veretennikov [EMAIL PROTECTED] wrote: Thank you, James! On Wed, Dec 3, 2008 at 7:45 PM, James Carman [EMAIL PROTECTED] wrote: We use profiles in Maven2 to decide which configuration parameters to build with. Take a look

Re: How to feed ListMultipleChoice with comma separated String via PropertyModel)

2008-12-04 Thread James Carman
I would just create a model that wraps the property model and does the conversion. On Thu, Dec 4, 2008 at 9:12 AM, pixologe [EMAIL PROTECTED] wrote: Hi everybody, I wonder if there is an elegant way to feed a ListMultipleChoice component with a comma separated string (using a PropertyModel)

Re: How to feed ListMultipleChoice with comma separated String via PropertyModel)

2008-12-04 Thread James Carman
How about something like this: public class CommaSeparatedToStringListModel implements IModelListString { private final IModelString csvModel; public CommaSeparatedToStringListModel(final IModelString csvModel) { this.csvModel = csvModel; } public ListString

Re: using annotation @AuthorizeInstantiation

2008-12-04 Thread James Carman
I don't know about this. It would work (and break existing code, unless you use something other than value for the annotation). I don't know if I would want to have to create a new class for each role in my project. Yes, it would be a small price to pay, but it just feels wrong. On Thu, Dec 4,

Re: using annotation @AuthorizeInstantiation

2008-12-04 Thread James Carman
showing a possibility. :-) I really did't understand why Sun decided to reject Enums as Objects in this context of annotations. cheers, Bruno James Carman wrote: I don't know about this. It would work (and break existing code, unless you use something other than value for the annotation

Re: using annotation @AuthorizeInstantiation

2008-12-04 Thread James Carman
of an enum, doesn't it? On Thu, Dec 4, 2008 at 11:51 PM, Bruno Borges [EMAIL PROTECTED]wrote: Well... you can't do this: @Foo(values={MyEnum.FOO, MyEnum.BAR}); @interface Foo { Object[] values() default {}; } James Carman wrote: What do you mean by Enums as Objects? On Thu, Dec 4, 2008

Re: Thread.sleep() for only one session

2008-12-05 Thread James Carman
But, if you only show the captcha after so many failed logins, wouldn't that be okay? You let them try a few times and if they are still failing, you initiate the captcha. On Fri, Dec 5, 2008 at 12:48 PM, Bruno Cesar Borges [EMAIL PROTECTED] wrote: I'm totally against captcha. It's annoying

Re: Thread.sleep() for only one session

2008-12-05 Thread James Carman
- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 3:52 PM To: users@wicket.apache.org Subject: Re: Thread.sleep() for only one session But, if you only show the captcha after so many failed logins, wouldn't that be okay? You let them try a few times

Re: CheckGroup model only has one element

2008-12-06 Thread James Carman
Can you show us more code? You're not showing us what is being added to what (like form, group, contacts, etc.). We don't see the nesting here. On Fri, Dec 5, 2008 at 8:31 PM, jchappelle [EMAIL PROTECTED] wrote: I have a CheckGroup inside of a WizardStep panel. In the constructor I am

Re: Best way to implement OSIV (open session in view) pattern in Wicket

2008-12-06 Thread James Carman
I would recommend just using Spring (if you can of course). It just makes things easier, IMHO (and I'm on the HiveMind team!). On Sat, Dec 6, 2008 at 11:38 AM, Azzeddine Daddah [EMAIL PROTECTED]wrote: Hi guys, I want to use Hibernate in my Wicket web application. I've found a way to to this

Re: Changing appearance of ModalWindow?

2008-12-08 Thread James Carman
Yes, Firebug can be very helpful. I especially like the feature they have where you can turn off certain CSS rules to see what happens. This is very useful when you want to learn what certain CSS rules do. On Mon, Dec 8, 2008 at 7:22 AM, Eyal Golan [EMAIL PROTECTED] wrote: You are most

Re: LoadableDetachableModel in Listview

2008-12-08 Thread James Carman
: Hi James, thanks for your help. I think shadow models could work, when I only access non-lazy fields. Otherwise I would get a LazyInitializationException. Or what do you exactly mean by shadow models? - Benjamin On Mon, Dec 8, 2008 at 1:32 PM, James Carman [EMAIL PROTECTED] wrote

Re: LoadableDetachableModel in Listview

2008-12-08 Thread James Carman
dec 2008, om 19:45 heeft James Carman het volgende geschreven: Sorry for the delay. A shadow model basically grabs the actual model's value in the beginning and caches it. You actually edit the shadowed model. Then, when you're done with all of your edits you call commit on all of your

Re: LoadableDetachableModel in Listview

2008-12-08 Thread James Carman
:28 PM, Erik van Oosten [EMAIL PROTECTED]wrote: So I guess you're not levering the optimistic locking of Hibernate. Regards, Erik. James Carman wrote: It would work the same way, since it grabs its stuff up-front. Behind the scenes, you use a LDM as the actual model. On Mon, Dec 8

Re: LoadableDetachableModel in Listview

2008-12-08 Thread James Carman
values... that is why there's optimistic locking in place. One solution would be to clear the user input and have them re-enter the data. Martijn On Mon, Dec 8, 2008 at 9:23 PM, James Carman [EMAIL PROTECTED] wrote: Right, you'll have to figure out what you want to do at that point. You

Re: LoadableDetachableModel in Listview

2008-12-08 Thread James Carman
(); } return entity; } Martijn On Mon, Dec 8, 2008 at 10:00 PM, James Carman [EMAIL PROTECTED] wrote: Somehow you have to reset the cached version value (assume you'd use a validator for this I guess), since it's not the same as the one in the db, right? On Mon, Dec 8, 2008 at 3:34 PM

Re: LoadableDetachableModel in Listview

2008-12-08 Thread James Carman
doesn't seem right to me. On Mon, Dec 8, 2008 at 4:32 PM, James Carman [EMAIL PROTECTED]wrote: Using this, you have to make sure this model gets reset on form submit, too, right? With this, you have to make sure you reset the model's cached version value upon successful form submit, too, right

Re: Component with id [[feedback]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.

2008-12-08 Thread James Carman
How about setOutputMarkupPlaceholderTag(true)? On Mon, Dec 8, 2008 at 9:20 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: There's another method that you need to set true on construction - I can't remember the exact name now, but it's something like setTransparentPlaceholder or something.

Re: Component with id [[feedback]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.

2008-12-08 Thread James Carman
://www.wickettraining.com -- sent from a wireless device -Original Message- From: James Carman [EMAIL PROTECTED] Sent: Monday, December 08, 2008 8:27 PM To: users@wicket.apache.org Subject: Re: Component with id [[feedback]] a was not found while trying to perform markup update

Re: LoadableDetachableModel in Listview

2008-12-09 Thread James Carman
Indeed. He is a mean competitor on Mario Sonic at the Olympic Games! :) On Tue, Dec 9, 2008 at 6:41 PM, Ned Collyer [EMAIL PROTECTED] wrote: jwcarman wrote: I like shadow much better. He was an awesome hedgehog hey ;) -- View this message in context:

Re: Adding buttons to a DataTable

2008-12-10 Thread James Carman
You could use a Fragment. On Wed, Dec 10, 2008 at 10:26 AM, Steve Flasby [EMAIL PROTECTED] wrote: Chaps, I am trying to add a button to a DataTable. Sadly, the button is rendered as text saying [cell] Is this expected behavior? If it is then I guess I need to wrap my button in a Panel to

Re: Child page with no html

2008-12-11 Thread James Carman
, Dec 11, 2008 at 7:18 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Huh? protected void onBeforeRender() { if(!hasBeenRendered()) { } } On Thu, Dec 11, 2008 at 1:05 PM, James Carman [EMAIL PROTECTED] wrote: When we discussed this before (http://markmail.org/message/kjpunkvlvh5ofajp

Re: [OT] wicket users around the world

2008-12-11 Thread James Carman
Check this out: http://www.frappr.com/wicket On Thu, Dec 11, 2008 at 1:57 PM, francisco treacy francisco.tre...@gmail.com wrote: to know a little bit more of our great (and vast) community, i was just wondering if you're keen on sharing where you come from and/or where you work with wicket...

Re: how to reuse a label in the same page?

2008-12-11 Thread James Carman
Create multiple copies. On Thu, Dec 11, 2008 at 3:57 PM, novotny novo...@gridsphere.org wrote: I have a simple label hello and I want to display it twice in the same page, but wicket complains the wicket:id needs to be unique in my page what do I need to do, is there an alias or

Re: NPE when wicket:link embedding input type=image src...

2008-12-12 Thread James Carman
I would also link the issues On Fri, Dec 12, 2008 at 12:02 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Your ticket is already in JIRA as https://issues.apache.org/jira/browse/WICKET-1513 - reported in April. I attached a patch to fix it last month. Please close the ticket you just

Re: What are your suggestions to ease separation of UI and dev teams?

2008-12-12 Thread James Carman
I wouldn't use the bookmarkablePage= syntax. I'd mount my pages. On Fri, Dec 12, 2008 at 5:48 PM, Trent Larson tr...@trentlarson.com wrote: Please help (documentation references, etc) with good ways to work with Wicket where we have separate UI and dev teams. I'm looking for any practices

Re: How to donate to Wicket Project

2008-12-13 Thread James Carman
Of course, the ASF would always love donations: http://www.apache.org/foundation/contributing.html Also, you can buy from the Wicket store and part of the proceeds will help the ASF (I believe that's how it's set up): http://www.cafepress.com/apachewicket The coffee mug is very nice and I also

Re: Recording component paths for WicketTester

2008-12-14 Thread James Carman
What version of Wicket are you running? There was a JIRA request to spit out the component paths in development mode: https://issues.apache.org/jira/browse/WICKET-1830 Apparently it was fixed in 1.3.5 and 1.4-rc1. On Sun, Dec 14, 2008 at 6:41 PM, Martin Makundi

Re: No WebApplicationContext found: no ContextLoaderListener registered?

2008-12-15 Thread James Carman
No, you want the ContextLoaderListener, I believe. On Mon, Dec 15, 2008 at 10:07 AM, wicketworker siva.mad...@gmail.com wrote: I think I did. The below listner is what you are referring to right. I still get the same exception

Re: No WebApplicationContext found: no ContextLoaderListener registered?

2008-12-15 Thread James Carman
listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener On Mon, Dec 15, 2008 at 10:45 AM, James Carman jcar...@carmanconsulting.com wrote: No, you want the ContextLoaderListener, I believe. On Mon, Dec 15, 2008 at 10:07 AM

Re: No WebApplicationContext found: no ContextLoaderListener registered?

2008-12-15 Thread James Carman
Yep. Here's an example of what I typically use: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/webapp/WEB-INF/web.xml On Mon, Dec 15, 2008 at 10:51 AM, wicketworker siva.mad...@gmail.com wrote: Figured out the issue. basically we need to have two listeners in the

Re: How to determine which page I am on?

2008-12-17 Thread James Carman
You might also want to check out the linksTo(Page p) method: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/link/Link.html#linksTo(org.apache.wicket.Page) On Wed, Dec 17, 2008 at 7:14 AM, pieter claassen pieter.claas...@gmail.com wrote: Adriano, that

Re: indicating AjaxFallbackDefaultDataTable

2008-12-18 Thread James Carman
There's a veil project in wicketstuff-minis On Thu, Dec 18, 2008 at 11:16 AM, miro miroconn...@yahoo.com wrote: Is there any other indicator which disables the page so that user is not cannot perform any other action ? Michael Sparer wrote: Create your own, it's quite easy. Extend from

Re: HR as Component

2008-12-23 Thread James Carman
You can use a WebMarkupContainer. On Tue, Dec 23, 2008 at 12:37 PM, HITECH79 hitec...@web.de wrote: Hallo, is there any way to create a hr as Wicket Component? Thanks HITECH79 -- View this message in context: http://www.nabble.com/%3CHR%3E-as-Component-tp21148370p21148370.html Sent

Re: AjaxFallbackDefaultDataTable problem

2008-12-29 Thread James Carman
Are you using an AjaxLink to do the delete? If so, are you adding the table to the ajax request target, so that it gets updated? On Mon, Dec 29, 2008 at 10:15 AM, Björn-Peter Tietjens bjor...@web.de wrote: Hi there, I would need some help on the AjaxFallbackDefaultDataTable please. I am

Re: feedback message without a form

2008-12-29 Thread James Carman
Component.info(String message)? On Mon, Dec 29, 2008 at 12:24 PM, miro miroconn...@yahoo.com wrote: How to add feed back messages to page with out a form , in my case when the link is clicked I call some external service and that might return me some message and I want to show this message

Re: Filter or update content of AjaxFallbackDefaultDataTable

2009-01-05 Thread James Carman
Have you looked at the classes in this package? http://wicket.apache.org/docs/wicket-1.3.2/wicket-extensions/apidocs/org/apache/wicket/extensions/markup/html/repeater/data/table/filter/package-summary.html On Mon, Jan 5, 2009 at 11:06 AM, David Ojeda dojeda-l...@integra.la wrote: Hello

Re: Extending to all components

2009-01-06 Thread James Carman
You don't need a helper if you do what Mr. Swank recommended. With JDK5, you can have covariant return types. So, just set up a new get() method that returns your exact session type. On Tue, Jan 6, 2009 at 1:11 PM, Per Newgro per.new...@gmx.ch wrote: If i'm not completly wrong there is a

Re: Extending to all components

2009-01-06 Thread James Carman
Duh! :) Good point. On Tue, Jan 6, 2009 at 1:40 PM, Scott Swank scott.sw...@gmail.com wrote: Since get() is a static method there is no relationship (i.e. overriding) between MySession.get() and Session.get(). Hence you do not even need Java 5. On Tue, Jan 6, 2009 at 10:25 AM, James

Re: lucene document property resolve with datatable?

2009-01-15 Thread James Carman
What I would probably do is write a LucenePropertyColumn that extends AbstractColumn. On Thu, Jan 15, 2009 at 4:14 PM, Phillip Rhodes spamsu...@rhoderunner.com wrote: Hi, I am trying to display a lucene document as a row in the datatable. Here is how I am defining my column: PropertyColumn

Re: Things I miss in Wicket

2009-01-16 Thread James Carman
On Fri, Jan 16, 2009 at 7:47 AM, Tobias Marx superoverdr...@gmx.de wrote: What about merging Wicket and Tapestry? Similiar to Wicket with Tapestry templates? I don't think this would work very well. The Tapestry team's philosophy doesn't really work well with how the Wicket community

Re: setEnabled() adds markup. Another way of disabling a link?

2009-01-16 Thread James Carman
Override isVisible()? Or, do you want it to show text, just not be clickable? On Fri, Jan 16, 2009 at 12:51 PM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, I have a link which, depending on certain conditions, I need unlinked (ie disabled). //link (if allowed, or none, just

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread James Carman
A Model is serialized, therefore the object contained within it must be serializable. Perhaps you need a LoadableDetachableModel of some sort? On Tue, Jan 20, 2009 at 2:03 PM, Per Newgro per.new...@gmx.ch wrote: Do you mean that way? public class MyPanel extends

Re: Wicket / Spring bean annotations

2009-01-20 Thread James Carman
However, if you're not writing those other components, you have no choice. So, this case does show up. On Tue, Jan 20, 2009 at 7:15 PM, Andrew Humphries (MEL) andrew.humphr...@foxtel.com.au wrote: Thanks for your quick answer Jeremy. However, I would ask *why* do this? If you're passing it

Re: wicket-auth-roles and spring security 2.x

2009-01-21 Thread James Carman
Lars, My wicket-advanced example code uses Spring security and wicket-auth-roles. You can download it here: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/ Hope that helps. James On Wed, Jan 21, 2009 at 5:07 AM, Lars Vonk lars.v...@gmail.com wrote: Hi, I am currently

Re: wicket-auth-roles and spring security 2.x

2009-01-21 Thread James Carman
haven't touched that example in quite a while (I gave my advanced wicket talk last year sometime). Lars On Wed, Jan 21, 2009 at 1:35 PM, James Carman jcar...@carmanconsulting.comwrote: Lars, My wicket-advanced example code uses Spring security and wicket-auth-roles. You can download it here

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread James Carman
You could start by declaring the wicket namespace: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html On Mon, Feb 2, 2009 at 7:33 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, If I have some HTML with Wicket attributes in it: html head titleNew User Registration/title

Re: Servlet container authentication in Wicket

2009-02-02 Thread James Carman
j_security_check is part of the Servlet Specification section SRV.12.5.3.1 Login Form Notes (at least for version 2.5). It did exist in earlier versions but I've only quoted the latest. On Sun, Feb 1, 2009 at 5:03 PM, Philipp Daumke dau...@averbis.de wrote: Hi all, I followed the Servlet

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread James Carman
I don't know that I'd point your xmlns at the Apache Subversion server. Can't you just use the URL mentioned in the wiki? On Mon, Feb 2, 2009 at 10:55 PM, Timo Rantalaiho timo.rantala...@ri.fi wrote: On Mon, 02 Feb 2009, jWeekend wrote: We've been using:

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-03 Thread James Carman
You'd need to make sure the DTD matches what version of Wicket they chose, wouldn't you? On Tue, Feb 3, 2009 at 5:33 PM, jWeekend jweekend_for...@cabouge.com wrote: Timo, It's very simple change to the archetype: just replace the html open tag with html

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-03 Thread James Carman
-DarchetypeVersion=1.3.5). The chosen version of the archetype will have the right xmlns in its \archetype-resources\src\main\java\HomePage.html, right? Regards - Cemal http://www.jWeekend.co.uk jWeekend James Carman-3 wrote: You'd need to make sure the DTD matches what version of Wicket they chose

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-06 Thread James Carman
If the interface extends Serializable and you implement it, you implement Serializable. That's not a good idea for service/dao classes. On Thu, Feb 5, 2009 at 7:12 PM, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Andreas Petersson wrote: hi timo, thanks for the links. well, i've

Re: Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread James Carman
Here's the demo code I used for a talk on wicket a while back. It includes OSIV and has an example of doing a repository (think DAO) http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Tue, Feb 10, 2009 at 3:15 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, I'm thinking

Re: HTML can't reference a component (Label) multiple times?

2009-02-12 Thread James Carman
Use a repeater? On Thu, Feb 12, 2009 at 2:54 PM, Phil Grimm phil.gr...@gmail.com wrote: Guys, If I need to reference a Label multiple times on the page. Is there a better way than creating multiple redundant but distinct labels? Is this the only option? add(new Label(authorName1));

Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

2009-02-13 Thread James Carman
A lot of folks say they want to avoid the overhead that maven provides, but now that I'm used to maven I don't know what I would do without it. I use it for ALL projects big and small. On Fri, Feb 13, 2009 at 12:19 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: even if you do not use maven it

Re: DefaultDataTable - how to get index of selected element

2009-02-14 Thread James Carman
You could put a link on each row On Sat, Feb 14, 2009 at 12:19 PM, Christoph Grün chris...@gmx.at wrote: Hi all, I have a datatable and following method that delivers the selected item in the table. How can I get the index of the selected element? There are methods for getting the current

Re: propertycolumn - date column, checkbox column

2009-02-14 Thread James Carman
Perhaps a subclass of AbstractColumn? public class MessageFormatColumnT extends AbstractColumnT { private final String pattern; public MessageFormatColumn(IModelString displayModel, String pattern) { super(displayModel); this.pattern = pattern; } public void

Re: How to make wicket text in a td bold?

2009-02-17 Thread James Carman
It's not supposed to be bold. In no way did you tell it to be bold. What you can do is add a class attribute to the td element (using AttributeAppender behavior) to set a css class and then you use a stylesheet to style your text as bold. On Tue, Feb 17, 2009 at 10:54 AM, Edwin Ansicodd

Re: How to make wicket text in a td bold?

2009-02-17 Thread James Carman
Styling the markup in-line is frowned upon, though. It's better to use stylesheets for this. However, for a quick and dirty solution, this will work quite well! :) On Tue, Feb 17, 2009 at 11:01 AM, Jonas barney...@gmail.com wrote: or like this: [td width=20%][b wicket:id=personname]Person

Re: @SpringBean vs getApplication().getDao()

2009-02-18 Thread James Carman
Well, in order for the reference to be set, the object used must adhere to the same API. The object is, indeed a proxy. So, the proxy either implements the same interface as the type of the field or extends the class of the type of the field (you should be using interfaces if at all possible).

Re: Yet another Wicket quick start application...

2009-02-18 Thread James Carman
On Wed, Feb 18, 2009 at 6:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: 2009/2/18 Patrick A. patrickange...@gmail.com Hey Nino, Apptizer is not really a framework. It's more like AppFuse or Qwicket in spirit... with the goal of showing how Spring, Hibernate/JPA and Wicket

Re: AW: AW: Avoid serialization troubles with static members

2009-02-19 Thread James Carman
Yes, but if the frameworks and tools can make you actually more productive, why not use them? The @SpringBean annotation-based approach just works. I've never had any troubles with it and I really don't have to think about it. There's a very shallow learning curve, especially if you're already

Re: Linking to an image in resources with just html

2009-02-22 Thread James Carman
You can do: wicket:link img src=img/bar.png / /wicket:link However, the image itself must be in a subpackage of the page/component's package called img. That turns out to not be so bad in our case, but it may be too much of a restriction for you. On Sun, Feb 22, 2009 at 8:28 AM, svfarmer

Re: markup inheritance: wicket:border + wicket:body VS wicket:extend + wicket:child

2009-02-22 Thread James Carman
It depends on what you're trying to do. If you just want a common layout for all of your pages in your application, then I'd just use markup inheritance (and I do). On Sun, Feb 22, 2009 at 6:49 AM, Sergey Didenko sergey.dide...@gmail.com wrote: Hi, What are pros and cons of using

Re: Linking to an image in resources with just html

2009-02-22 Thread James Carman
, since you cannot use a package such as the java/main/img everywhere. Thanks though :) Maybe my only option is writing a custom component for this (seemingly) trivial case? James Carman-3 wrote: You can do: wicket:link img/bar.png /wicket:link However, the image itself must

Re: Application.CONFIGURATION

2009-02-24 Thread James Carman
If you're using Spring, you can set up your application instance in your spring context and then use a PropertyPlaceholderConfigurer to substitute in what you want. Wicketopia's archetype uses this method (along with Maven profiles to choose which property files to include). On Tue, Feb 24,

Re: What IDE best fits with Wicket?

2009-02-24 Thread James Carman
+1! We had an awful lot of trouble getting it to work for us. On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: m2eclipse is absolutely worthless for anything beyond a quickstart. It is constantly reparsing poms, grinding eclipse to a halt. It failed to

Re: Application.CONFIGURATION

2009-02-26 Thread James Carman
On Thu, Feb 26, 2009 at 11:11 AM, Brill Pappin br...@pappin.ca wrote: But don't you run the risk of deploying a development version to production by mistake? If you simple start the container in production with the runtime flag, it will be the same WAR (EAR) for both... no rebuild after

Re: NullPointerExceptions due to missing Spring constructor injection

2009-02-28 Thread James Carman
Also, it will inject prior to your constructor is called. On Feb 28, 2009 11:03 AM, Martijn Reuvers martijn.reuv...@gmail.com wrote: Hi Christian, I think you should not use use the static modifier with this, instead use: @SpringBean private ArticleRepository repos; This should work fine and

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread James Carman
I vote -0.99 on this (non-binding of course). I'd vote +1 to making ListView accept List? extends T rather than making DDC less flexible. On Mon, Mar 2, 2009 at 3:11 PM, Brill Pappin br...@pappin.ca wrote: Ok, as suggested, here is the thread, and the first vote. +1 for making the generic

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread James Carman
tried to do either one of your usecases (I always consider them read-only). On Mon, Mar 2, 2009 at 3:24 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: see WICKET-2126 -igor On Mon, Mar 2, 2009 at 12:19 PM, James Carman jcar...@carmanconsulting.com wrote: I vote -0.99 on this (non-binding

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-02 Thread James Carman
they'd use a list because anything else, such as an LDM, would tend to be read-only)? On Mon, Mar 2, 2009 at 3:47 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: depends on your coding style. -igor On Mon, Mar 2, 2009 at 12:44 PM, James Carman jcar...@carmanconsulting.com wrote: Aren't both

  1   2   3   4   5   6   7   8   9   10   >