Possible issue - Component value missing from Form POST via AjaxSubmit after Ajax'd DropDownChoice?

2013-09-19 Thread Gwyn Evans
Hi,
  I've not had a chance to try  reproduce this with a QuickStart yet,
so this is just a post in case it's something obvious I'm
overlooking...

I'm using v6.10.0, and have a page with a form with 4 DropDownChoices
and a Button, with which I use an AjaxSubmitLink.

If I just use them as described, then all works as expected, but if I
add the code to update DDC4's model depending upon the value of DDC3,
using the AjaxFormUpdatingComponent (or whatever it is), then I see
DDC4's choices change as expected, but when I submitted the form,
DDC4's selected value wasn't being set and was set to null in the
underlying object (accessed via a PropertyModel).

A bit of digging seemed to show that it wasn't being passed in the
POST from the browser (while the other 3 values were), but that's as
far as I could investigate as I needed to leave for the day, but I
thought I'd ask if anyone had seen anything similar?

Note that commenting out DDC3's Ajax behaviour and giving DDC4 a
static list of choices resulted in all 4 values being available in the
AjaxSubmitLink callback, so I'm ruling out anything with the
Model/Object configuration...

/Gwyn

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Eclipse or IntelliJ

2013-02-22 Thread Gwyn Evans
On 20 February 2013 17:54, Stephen Walsh step...@connectwithawalsh.comwrote:

 I definitely like the look and feel of IDEA better, but time will tell if
 it's more productive.  It will certainly take the full 30 day trial
 period to evaluate whether it's worth the cost.


 Don't forget that they also do a free Community Edition that has a good
chancehttp://www.jetbrains.com/idea/features/editions_comparison_matrix.html?IUof
being all you need for a longer evaluation[*].  (I've got a old
personal
licence but when I changed employers, the corporate standard's Eclipse  I
can't use non-corporate commercially licensed apps there - I can however
legitimately use open-source-licensed apps, so was able to switch to using
the CE with no major issues.)

/Gwyn


Re: http://cwiki.apache.org/WICKET is down

2010-04-15 Thread Gwyn Evans
Not much - the last news was here - https://blogs.apache.org/infra/ - and it
looks as if the CWiki system's being restored at present as some of the
area's are there, but many aren't, yet.

/Gwyn

On 14 April 2010 23:26, Carl Sziebert car...@gmail.com wrote:

 Any updates on when the reference site will be available again?


 On Sat, Apr 10, 2010 at 11:02 AM, Brian Topping topp...@codehaus.org
 wrote:
  Yes, I saw that too.  Apache infrastructure was attacked this week, I
 presume they are working on repairing things right now.
 
  On Apr 10, 2010, at 2:00 PM, Carlos Chávez wrote:
 
  Hello everyone.
 
  I just want to let all know that the wiki is seems down,
  can anyone confirm this ?
 
  I understand the wiki is on http://cwiki.apache.org/WICKET
 



Re: Wicket Wiki

2010-04-15 Thread Gwyn Evans
Not really, but it looks as if there's some progress and the machines
restore is underway, although it's not got to the Wicket spaces yet.  Note
that Apache was attacked  the CWiki machine was one of the ones open to
compromise - see https://blogs.apache.org/infra/ - but while it looks as if
it's presently being restored, I'd expect that the other systems were more
critical to restore first.
/Gwyn

On 14 April 2010 15:12, Jeffrey Schneller jeffrey.schnel...@envisa.comwrote:

 Any ideas on when the Wicket Wiki will be back up?
 http://cwiki.apache.org/WICKET



 Thanks.












Re: A question about using Spring in Wicket 1.4

2010-03-18 Thread Gwyn Evans
Fixed the Javadoc in 1.4.x  trunk.  Thanks for reporting.
/Gwyn

On 11 March 2010 14:14, David Chang david_q_zh...@yahoo.com wrote:

 James, thanks for quick reply. I guess I am a little confused is that in
 the init method, I use

 addComponentInstantiationListener(new SpringComponentInjector(this));

 instead of

 add(new SpringComponentInjector(this));

 as Migrating guide specified. The Guide-specified approach actually
 generates compiler error.

 Regards.


 --- On Thu, 3/11/10, James Carman jcar...@carmanconsulting.com wrote:

  From: James Carman jcar...@carmanconsulting.com
  Subject: Re: A question about using Spring in Wicket 1.4
  To: users@wicket.apache.org
  Date: Thursday, March 11, 2010, 9:09 AM
  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 of
  SpringBean annotation. See SpringWebApplication javadoc for
  how to setup SpringBean based injection.
  
   I went to Wicket API about SpringWebApplication and it
  says:
  
   Deprecated. when using java5 it is preferrable to use
  SpringBean annotations for injection rather then this
  spring-specific application subclass with its helpers. To
  setup SpringBean add the following line to your
  WebApplication subclass init method add(new
  SpringComponentInjector(this));
  
   Here is my way of using Spring in my wicket app.
  
   1. In the init method:
  
   addComponentInstantiationListener(new
  SpringComponentInjector(this));
  
   Please note that it is not: add(new
  SpringComponentInjector(this));
  
   2. In wicket components that access Spring beans:
  
   @SpringBean
   private SupportService supportService;
  
  
   Am I doing Spring in Wicket right way?
  
   Thanks for input!
  
  
  
  
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Exceptions after Tomcat restart

2009-06-30 Thread Gwyn Evans
I've not explictly checked, but I seem to recall something in the
forthcoming RC6 release notes that sounded as if it addressed that
issue...

/Gwyn

On Tue, Jun 30, 2009 at 1:03 AM, niaoulimickae...@gmail.com wrote:

 Hi,

 I have quite the same problem using Eclipse WTP and Tomcat : a
 NoClassDefFoundError on my template page class, after Tomcat restart or
 reload. It works when I manually Clean the module work directory, but it's
 boring to do this each time I modify the source code.

 Did you finally find a solution?

 Thanks
 --
 View this message in context: 
 http://www.nabble.com/Exceptions-after-Tomcat-restart-tp23194161p24261895.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Gwyn Evans
On Fri, Apr 3, 2009 at 3:42 PM, John Krasnay j...@krasnay.ca wrote:
 FYI to anyone who's been bitten by this, there's a simple workaround.

Yes - use IDEA!  :-)

/Gwyn

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Have a feature, want to contribute

2009-03-16 Thread Gwyn Evans
Created https://issues.apache.org/jira/browse/WICKET-2170 to track
/Gwyn

On Mon, Mar 16, 2009 at 7:11 AM, Marat Radchenko
slonopotamusor...@gmail.com wrote:
 Sorry, was busy at work last week.

 Please find attached sources and jar with compiled classes.

 Usage is extremely simple: add ru.pronto.wicketextras.StatelessChecker
 to postComponentOnBeforeRenderListener list and add
 @StatelessComponent to any components you want to guarantee be
 stateless. If any of them will become statefull (either directly or
 because of any child) then exception will be thrown with explanation
 what component is to blame.

 2009/3/13 Alex Objelean alexandru.objel...@isdc.ro:

 Marat, as you can see people are interested and waiting for this feature
 to be published somewhere

 Alex


 Marat Radchenko-2 wrote:

 Wicket pages/components can be either stateful or stateless. Wicket
 manages hem transparently and it is very easy to write any complex
 page you want. Stateful pages are much more powerful than stateless.
 However that comes at  a cost of using page store for their state. On
 highload sites it is usually desired to minimize session-scope data,
 and move it to request-scope. That's when Wicket users approach a task
 of making stateful pages stateless. However stateless state (sic!) is
 very fragile, if you add a single stateful component to a page, it
 instantly becomes stateful (and you even might not notice that if your
 other page content can work in both modes. And here comes my lovely
 feature - @StatelessComponent. It is an annotation that you should put
 on components which you want to be stateless. It doesn't do any magic,
 it simply uses postComponentOnBeforeRender to assert that annotated
 component (and all its children) are stateless. If it doesn't, an
 exception is thrown, indicating what component tries to be stateful.

 This feature isn't large enough to be put in a separate project (just
 one annotation and one listener) but wee find it extremely useful on
 our project.

 I'd be happy to give it to Wicket project (or wicketstuff?) at
 absolutely no cost (tests included) under same license as wicket
 itself, if Wicket developers are interested in it.

 I'll file a feature request with a patch, if Wicket team finds this
 useful in Wicket core.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 View this message in context: 
 http://www.nabble.com/Have-a-feature%2C-want-to-contribute-tp21079751p22498471.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Twenty Six Wicket Tricks

2009-01-08 Thread Gwyn Evans
Not sure if it qualifies as enough of a topic, but would some form of
overview/comparison/when to use syummary of the various URL coding
strategies be worth considering?

/Gwyn

On Mon, Jan 5, 2009 at 8:37 AM, Jonathan Locke jonathan.lo...@gmail.com wrote:


 well, i got bored enough over the break to sink some hours into
 this and i'm liking what happened pretty well now. any other really
 ugly problems people want neat solutions to? ;-)


 Jonathan Locke wrote:


 yes.  this is a good one, but it might be too big for the book...
 although i've been pondering the possibility of something more
 general which is more in the neighborhood of arbitrarily-
 driven component factories (where property editors and
 bean editors are specializations).

 for property/bean editors you may want to take a look
 at will faler's wicket-rad which does this already.
 although i don't know if it's as ideal as it could be yet,
 i think he'd like some help with it seems open to working
 with people.

   jon


 walnutmon wrote:

 A component that takes some domain object, and for every property
 dynamically loads an appropriate form element.

 @Test
 {
 private class DomainObject{
 ListProperty1 prop1s;
 Boolean prop2;
 }
 panel = new DynamicPropertyPanel(new DomainObject());
 assertComponent(panel:form:formElement:0, DropDownChoice.class);
 assertComponent(panel:form:formElement:1, Checkbox.class);

 //test customization
 panel = new DynamicPropertyPanel(new DomainObject());
 panel.setProperty(prop1s, RadioGroup.class);
 assertComponent(panel:form:formElement:0, RadioGroup.class);
 assertComponent(panel:form:formElement:1, Checkbox.class);
 }

 My company would purchase several copies of the book if I recommended to
 do so; which I would.

 Jonathan Locke wrote:

 Well, over the break here I've started something I swore I would never
 do again (well, two things, if you include the JavaOne talk I'm working
 on). I'm writing a (hopefully relatively short) book. It's called
 Twenty-Six Wicket Tricks. Each trick in the book (lettered from A-Z)
 demonstrates something that people typically want to do and in the
 process builds a reusable and educational component. I've got 13 tricks
 coded up now and ideas for a handful more, but if there are any requests
 out there, please let me know. I'd also be interested in getting some
 idea how many people would be interested in this book (would provide
 some fuel for me to get it done). It does not cover any of the same
 ground as Wicket in Action (which you should buy if you have not
 already!), BTW. It's more of a companion to that book.

 Happy Holidays!

 Best,

Jonathan








 --
 View this message in context: 
 http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21287125.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Gwyn Evans
I'd suggest taking a look at CityDesk -
(http://www.fogcreek.com/CityDesk/), which doesn't require any
server-side support.  It's a Windows program that generates a site and
transfers it to any web server automatically, using FTP or file copy.
You can setup the site look  feel, etc, in 'design mode', switch that
off then pass the site over to someone who can then easily add/update
it using standard Windows functionality.  The starter edition's free
and supports up to 50 pages on a site, which would cover most small
sites.  It's not actively developed, but that doesn't mean it doesn't
work  might be what's needed!

/Gwyn

On Thu, Nov 13, 2008 at 2:48 AM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 This is off-topic, but I figured there couldn't be a better pool of people
 to ask.  I have several friends and family members that want to set up small
 websites for their businesses or hobbies.  Of course, then they'll want to
 customize them and make them look like this or like that.  And add a page,
 and edit a page, etc.  You've probably been in the same spot - you're the
 computer guy in the family - obviously I can't build them something custom
 (we're talking free).  And I don't want to maintain it for them forever,
 etc...

 So - do you know of any good website packages out there?  I'm not even sure
 what the right name would be.  But it would need to have these requirements:

   - Total non-technical control over adding and editing pages / content
   (wysiwyg)
   - Control looks by using themes that can be downloaded or maybe editing
   CSS
   - Possibly plugins for things like RSS feeds / contact pages / and/or
   e-commerce stores
   - Can be any language - I have a server to put it on, so I'm not adverse
   to PHP / Python / MySQL / etc...
   - Preferably I unzip a copy of it to a directory for them, give them
   access to the admin (maybe setup a MySQL DB for them), and I'm DONE!

 I've even thought of trying to build this out of BRIX, but I'm not sure
 that's the right answer, plus then there wouldn't be any plugins already
 available.

 Any tips?

 --
 Jeremy Thomerson
 http://www.wickettraining.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: example application for spring wicket hibernate

2008-11-03 Thread Gwyn Evans
See at 
http://cwiki.apache.org/WICKET/documentation-index.html#DocumentationIndex-Codeasdocumentation

On Sun, Nov 2, 2008 at 7:45 PM, miro [EMAIL PROTECTED] wrote:

 are there any  examples for spring, wicket and hibernate ?
 --
 View this message in context: 
 http://www.nabble.com/example-application-for-spring-wicket-hibernate-tp20293119p20293119.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket sample application

2008-09-19 Thread Gwyn Evans
http://cwiki.apache.org/WICKET/documentation-index.html#DocumentationIndex-Codeasdocumentation

On Fri, Sep 19, 2008 at 7:00 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
 Phonebook has db access. And one of the examples that come with Wicket
 In Action has that too.

 Eelco

 On Fri, Sep 19, 2008 at 10:54 AM,  [EMAIL PROTECTED] wrote:
 But none with database access ?

  Original-Nachricht 
 Datum: Thu, 18 Sep 2008 05:05:21 -0700 (PDT)
 Von: Michael Sparer [EMAIL PROTECTED]
 An: users@wicket.apache.org
 Betreff: Re: Wicket sample application


 just go a click further and you'll find plenty
 http://www.wicketstuff.org/wicket13/
 http://www.wicketstuff.org/wicket13/ajax/
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-examples
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook


 superoverdrive wrote:
 
  Hi there!
 
  I am looking for a Wicket sample application (e.g. something like a
  Petshop) - ideally once that includes things such as: User
 registration,
  Admin area, editing data (e.g. with Ajax auto-complete) and an example
 of
  displaying data in a table that is read incrementally from the database
  (e.g. displaying huge database tables without crashing)
 
  On the Wicket homepage there are just small examples, but no complete
  websites done in Wicket
 
  Something like:
 
  http://bakery.cakephp.org/categories/view/3
 
  would be good for Wicket:
 
  Thanks!
 
  Toby
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 -
 Michael Sparer
 http://talk-on-tech.blogspot.com
 --
 View this message in context:
 http://www.nabble.com/Wicket-sample-application-tp19549890p19551321.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [announce] Wicketstuff Iolite 0.3

2008-09-18 Thread Gwyn Evans
This looks a little sparse?

[DEBUG] Trying repository wicketstuff-iolite-repo
Downloading: 
http://wicketstuff.org/maven/repository/org/wicketstuff/iolite/wicketstuff-iolite/0.3-SNAPSHOT/wicketstuff-iolite-0.3-SNAPSHOT.jar
13K downloaded
.
.
$ jar tvf 
\Java\Maven2_Repository\org\wicketstuff\iolite\wicketstuff-iolite\0.3-SNAPSHOT\wicketstuff-iolite-0.3-SNAPSHOT.jar
 2087 Wed Sep 03 14:55:12 BST 2008 META-INF/maven/archetype-metadata.xml
 2013 Wed Sep 03 14:55:12 BST 2008 META-INF/maven/archetype.xml
  545 Wed Sep 03 14:55:12 BST 2008 META-INF/NOTICE
11358 Wed Sep 03 14:55:12 BST 2008 META-INF/LICENSE
  448 Wed Sep 03 14:55:12 BST 2008
archetype-resources/core/src/main/resources/META-INF/persistence.xml
 2579 Wed Sep 03 14:55:12 BST 2008
archetype-resources/core/src/main/resources/AllInOneRepositoryContext.xml
  260 Wed Sep 03 14:55:12 BST 2008
archetype-resources/core/src/main/resources/log4j.properties
 2467 Wed Sep 03 14:55:12 BST 2008 archetype-resources/core/pom.xml
 6696 Wed Sep 03 14:55:12 BST 2008 archetype-resources/pom.xml
  401 Wed Sep 03 14:55:12 BST 2008
archetype-resources/web/src/main/java/pages/HomePage.html
  448 Wed Sep 03 14:55:12 BST 2008
archetype-resources/web/src/main/java/pages/BasePage.html
  443 Wed Sep 03 14:55:12 BST 2008
archetype-resources/web/src/main/java/pages/AddMessagePage.html
  417 Wed Sep 03 14:55:12 BST 2008
archetype-resources/web/src/main/resources/log4j.properties
 1827 Wed Sep 03 14:55:12 BST 2008
archetype-resources/web/src/main/webapp/WEB-INF/web.xml
 3710 Wed Sep 03 14:55:12 BST 2008 archetype-resources/web/pom.xml

$

/Gwyn


On Thu, Sep 18, 2008 at 8:57 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hmmm wierd

 It should be working, it are on my pc... Could you try once more.. Im not
 sure if you can cache an archetype when specifying a remote repo?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Wicket in Action Jubilation

2008-09-10 Thread Gwyn Evans
Mine arrived here in the UK yesterday too!

/Gwyn

On Wed, Sep 10, 2008 at 8:19 AM, Frank Bille [EMAIL PROTECTED] wrote:
 Yay, I got mine (yesterday, when I wasn't at work). Looks very nice.


 On Thu, Sep 4, 2008 at 8:10 AM, Jonathan Locke [EMAIL PROTECTED]wrote:



 i just got mine today.

 it is really really nice!!!


 Martijn Dashorst wrote:
 
  Thanks for the report, I've notified Manning of this issue and they're
  looking into it.
 
  I also asked when the books should arrive. If you've ordered from
  Manning, you should receive your copy one of these days. As I
  understand it, shipping was happening today or tomorrow. I'm not sure
  if you get a message that the book was shipped.
 
  If you ordered your copy with Amazon, you might have to wait longer as
  the books need to go to Amazon first before they get shipped out (and
  that happens on Amazon's schedule, nothing much Manning can do about).
  This may be a bit disappointing, but remember that you got a great
  discount.
 
  A big thanks to everybody that reviewed/bought the book, hang on just
  a little more—the book is coming (provided you ordered the print
  edition).
 
  Martijn
 
  On Mon, Sep 1, 2008 at 12:23 AM, James Carman
  [EMAIL PROTECTED] wrote:
  I called my local Barnes  Noble today asking if they had a copy of
  WIA and the lady said that book is out of print; perhaps you can get
  one used through BN.com.  The Waldenbooks in our mall said it was on
  back order (I'm assuming this is because of my two talks I gave to
  the Cincinnati Java Users Group).  Is anyone else having issues
  getting a copy at brick and mortar stores?
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.4 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/-OT--Wicket-in-Action-Woes-tp19246776p19303970.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: (Wicket + Netbeans) without (Maven + NB.WicketPlugin)

2008-07-10 Thread Gwyn Evans
You don't *need* Maven, but if you want to do your own thing, chances are
you're going to have to do more of the investigations into issues yourself
(e.g. provide details )  may find it easier to actually install  use
Maven.  For a start, it doesn't need to download hundreds of libraries to
function - the first time a project is run, it'll try  download what it
needs, but it has an offline mode too if you want to download the
dependencies seperately.

Anyway, no idea about velocity, other than are you sure you downloaded 
installed the velocity jar itself, not just the wicket-velocity extension?
With SLF4J, did you add an implementation as well as the API?  Maybe see the
jars in the wicket-examples WAR 's WEB-INF/lib/?  Beyond that, I can't help,
as I use IDEA  Maven!

/Gwyn

On Thu, Jul 10, 2008 at 10:43 AM, wickid [EMAIL PROTECTED] wrote:


 hello, community!

 i am using the latest wicket plugin for netbeans (bundeled with
 wicket-1.3.3). but i want to use wicket-1.4-m2 (generics are my friends).

 this doesn't work: tomcat and glassfish are telling me, they can't find
 velocity and slf4j (ClassNotFoundException). but i have both installed and
 listed in project's dependencies.

 i'm glad, that netbeans' wicket plugin doesn't need maven.
 i am using an offline machine, while maven needs to download hundreds of
 libraries to function.

 but, i think, the wicket package itself (not the netbeans plugin) needs
 maven, right?

 anyway: is there a possibility to use wicket inside netbeans WITHOUT the
 wicket-netbeans plugin, but also without using maven?

 thanks in advice!

 --
 View this message in context:
 http://www.nabble.com/%28Wicket-%2B-Netbeans%29-without-%28Maven-%2B-NB.WicketPlugin%29-tp18379298p18379298.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Session is not my Session?

2008-06-27 Thread Gwyn Evans
Guessing, but could different class loaders be involved?
/Gwyn

On Fri, Jun 27, 2008 at 2:26 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 How can this happen, it clearly states that it are a ZeuzSession.class in
 the log?:



   if (ZeuzSession.class.isInstance(getSession())) {
   } else {

   log
   .error(Got an non zeuzSession on authorized
 page, should not be posssible:
   + getSession().toString());
   }



 ERROR [btpool0-2] (ZeuzAuthorizedPage.java:73) - Got an non zeuzSession on
 authorized page, should not be
 posssible:[EMAIL PROTECTED]

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Trying to make bookmarkablelink

2008-06-25 Thread Gwyn Evans
I think that MixedParamUrlCodingStrategy is expecting you to specify at
least one parameter - Are you sure you don't want HybridUrlCodingStrategy?

/Gwyn

On Wed, Jun 25, 2008 at 5:18 PM, Mathias P.W Nilsson [EMAIL PROTECTED]
wrote:


 Hi!

 I get this error when trying to make a bookmarkable page.

 java.lang.IllegalArgumentException: Too many path parts, please provide
 sufficient number of path parameter names

 This is my mouting, mount(new
 MixedParamUrlCodingStrategy(ItemInterceptor,
 ItemInterceptor.class,new String[]{}));

 This is the code for making the link

 Brand brand = (Brand) item.getModelObject();
PageParameters params = new
 PageParameters();
params.add( Brand,
  brand.getId().toString() );
Link brandLink = new BookmarkablePageLink(
 brandLink
 ,ItemInterceptor.class, params );

 And it generates this url... I don't know why the slash is there. Anyone

 https://localhost/hairless-web/ItemInterceptor/?Brand=76
 --
 View this message in context:
 http://www.nabble.com/Trying-to-make-bookmarkablelink-tp18115889p18115889.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: [Newbie]Session lost in an AjaxFallbackLink onClick()

2008-06-21 Thread Gwyn Evans
Try  reproduce it in a QuickStart, so someone else can investigate?

/Gwyn

On Fri, Jun 20, 2008 at 9:36 PM, A nono life [EMAIL PROTECTED] wrote:


 hi again

 A nono life wrote:
 
  I did the following try in between :
  - I rightly get the user and its content. So this part is properly
 working
  - I've  tried the form's onSubmit, and there I get some part of my
  creature data but not all of it (I get the name but not others
  attributes...).
 
 I'm planning to display messages when my creature data are changed, maybe
 it
 could help. If you've any other ideas of things I could try, let me know !

 This issue is very annoying, looking so strange for something normally so
 easy :'(

 bye
 nono
 --
 View this message in context:
 http://www.nabble.com/-Newbie-Session-lost-in-an-AjaxFallbackLink-onClick%28%29-tp18016504p18036976.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: wicket servlet mapping to subdirectory

2008-06-19 Thread Gwyn Evans
When you say I always get redirected to the root of the webapp, do you
mean when first trying to access your app, you have to go via a redirect or
some such that takes you to http://www.mysite.com/; or similar?

The 'traditional' trick was to have an index.html that redirected to app/
as below - any uise?

html
head
meta http-equiv=Refresh content=0; url=app
/head
/html

/Gwyn

On Thu, Jun 19, 2008 at 5:30 PM, Thomas Lutz [EMAIL PROTECTED] wrote:

 Hi list !

 I am forced to use the wicket servlet (1.3.3) instead of the filter because
 of oc4j.

 I mapped the servlet to

 servlet-mapping
   servlet-nameWicket Webapp/servlet-name
   url-pattern/app/*/url-pattern
 /servlet-mapping

 This does not work, I always get redirected to the root of the webapp, and
 therefore none of my pages shows up. If I map to /*, everything works fine,
 but then my acegi filters to not work...

 Is there any parameter I need to set to tell wicket about the different
 location ? Or, is it possible to configure some fake name in front of the
 request strings ? ?

 Thanks a lot,
 Tom

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Browser not jumping to Wicket Anchor

2008-06-18 Thread Gwyn Evans
Google suggests with the hash - e.g.
http://www.devguru.com/technologies/ecmascript/QuickRef/location_hash.html -
although if it doesn't work I'd go back to basics with a QuickStart and
check it works with just minimal pages, then see about adding your other
page elements.

/Gwyn

On Wed, Jun 18, 2008 at 2:22 AM, Michael Mehrle [EMAIL PROTECTED]
wrote:

 Oh, and for the anchor string - do I include the hash as well? I added
 the call below without the hash and it's not jumping to that anchor.
 Frustrating...

 Michael

 -Original Message-
 From: Michael Mehrle [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 17, 2008 6:19 PM
 To: users@wicket.apache.org
 Subject: RE: Browser not jumping to Wicket Anchor

 Just curious - what does 'location.hash' stand for? In any case, is this
 supposed to cause the page to jump to the anchor?

 Michael

 -Original Message-
 From: Gwyn Evans [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2008 2:51 PM
 To: users@wicket.apache.org
 Subject: Re: Browser not jumping to Wicket Anchor

 Not an issue I've come across but also not an area I've explored... A
 quick
 search through the mailing list did suggest one possible approach as
 below,
 but I've no idea how viable it might be!

 public Page extends WebPage implements IHeadContributor {

@Override
public void renderHead(IHeaderResponse r) {
   r.renderOnLoadJavascript(location.hash='YOUR-ANCHOR');
}
 }

 /Gwyn

 On Mon, Jun 16, 2008 at 10:33 PM, Michael Mehrle
 [EMAIL PROTECTED]
 wrote:

  Yes - they do match - you're right, always check the basics first. The
  problem is that even if I bookmark the anchored page (with the anchor
  tagged on), and load the page it won't jump there. So, I don't think
  it's the way I create the anchor (because the URL looks correct) -
 it's
  all the other wicket AJAX stuff that somehow prevents the anchor from
  being recognized on page load. Is there a work around for this?
 
  Thanks,
 
  Michael
 
  -Original Message-
  From: Gwyn Evans [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 16, 2008 1:02 PM
  To: users@wicket.apache.org
  Subject: Re: Browser not jumping to Wicket Anchor
 
  Just looking at the HTML, do the anchor  the destination match
  correctly?
  Is the destination url just a normal page, or a form of some sort?
 
  /Gwyn
 
  On Mon, Jun 16, 2008 at 6:58 PM, Michael Mehrle
 [EMAIL PROTECTED]
  wrote:
 
   I created an Link to another page's anchor similar to the code shown
   below. The anchor actually gets tagged on to the bookmarkable URL.
   However, for some reason the browser does not jump to my anchor.
  
  
  
   Not sure what's going on - is there a particular way I have to
 create
  an
   anchor in Wicket so that the URL causes the browser to scroll
 further
   down in the page?
  
  
  
   Thanks,
  
  
  
   Michael
  
  
  
  
  
   public class AnchoredBookmarkablePageLink extends
 BookmarkablePageLink
  {
  
  
  
private static final long serialVersionUID = 1L;
  
  
  
private IModel stringAnchor;
  
  
  
public AnchoredBookmarkablePageLink(String id, Class pageClass,
  IModel
  
  
   anchor) {
  
  super(id, pageClass);
  
  this.stringAnchor = anchor;
  
}
  
  
  
public AnchoredBookmarkablePageLink(String id, Class pageClass,
  
   PageParameters params, IModel anchor) {
  
  super(id, pageClass, params);
  
  this.stringAnchor = anchor;
  
}
  
  
  
@Override
  
protected CharSequence appendAnchor(ComponentTag tag, CharSequence
   url) {
  
  url = url + # + stringAnchor.getObject().toString();
  
  return url;
  
}
  
  
  
   }
  
  
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Controlling the application name

2008-06-18 Thread Gwyn Evans
Or finalName${project.artifactId}/finalName


On Wed, Jun 18, 2008 at 8:57 PM, James Carman [EMAIL PROTECTED]
wrote:

 It's a maven question.  Put a finalName element inside your build
 element in your pom.xml file:

 build
  finalNamemycoolapp/finalName
  ...
 /build


 On Wed, Jun 18, 2008 at 3:36 PM, Frank Silbermann
 [EMAIL PROTECTED] wrote:
  This question pertains to the infrastructure provided with the
  QuickStart, but not specifically with Wicket, so you might want to
  replay via e-mail rather than to the list.
 
  When I use Maven to package my application, it appends a version number
  (or SNAPSHOT indicator) into the name of my .war file.  When I drop my
  .war file into Tomcat's webapp folder, the .war filename becomes the
  application name, part of the URL that users must enter.
 
  I do not want the version number to be part of the web application's
  URL.  I want to be able to change the version without making the user
  update all bookmarks.  One way to do this is to manually change the name
  of the .war file to eliminate the version information before providing
  it to Tomcat, but that seems clumsy.  Is there some way I can tell Maven
  to deploy the .war file to my Tomcat directory without the version
  number?  Alternately, is there something I can put in my application's
  context.xml file to tell Tomcat to use something other than the .war
  filename as the application name?
 
  What is the right way to do this?  Is this a Maven question or a Tomcat
  question?
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Browser not jumping to Wicket Anchor

2008-06-16 Thread Gwyn Evans
Not an issue I've come across but also not an area I've explored... A quick
search through the mailing list did suggest one possible approach as below,
but I've no idea how viable it might be!

public Page extends WebPage implements IHeadContributor {

@Override
public void renderHead(IHeaderResponse r) {
   r.renderOnLoadJavascript(location.hash='YOUR-ANCHOR');
}
}

/Gwyn

On Mon, Jun 16, 2008 at 10:33 PM, Michael Mehrle [EMAIL PROTECTED]
wrote:

 Yes - they do match - you're right, always check the basics first. The
 problem is that even if I bookmark the anchored page (with the anchor
 tagged on), and load the page it won't jump there. So, I don't think
 it's the way I create the anchor (because the URL looks correct) - it's
 all the other wicket AJAX stuff that somehow prevents the anchor from
 being recognized on page load. Is there a work around for this?

 Thanks,

 Michael

 -Original Message-
 From: Gwyn Evans [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2008 1:02 PM
 To: users@wicket.apache.org
 Subject: Re: Browser not jumping to Wicket Anchor

 Just looking at the HTML, do the anchor  the destination match
 correctly?
 Is the destination url just a normal page, or a form of some sort?

 /Gwyn

 On Mon, Jun 16, 2008 at 6:58 PM, Michael Mehrle [EMAIL PROTECTED]
 wrote:

  I created an Link to another page's anchor similar to the code shown
  below. The anchor actually gets tagged on to the bookmarkable URL.
  However, for some reason the browser does not jump to my anchor.
 
 
 
  Not sure what's going on - is there a particular way I have to create
 an
  anchor in Wicket so that the URL causes the browser to scroll further
  down in the page?
 
 
 
  Thanks,
 
 
 
  Michael
 
 
 
 
 
  public class AnchoredBookmarkablePageLink extends BookmarkablePageLink
 {
 
 
 
   private static final long serialVersionUID = 1L;
 
 
 
   private IModel stringAnchor;
 
 
 
   public AnchoredBookmarkablePageLink(String id, Class pageClass,
 IModel
 
 
  anchor) {
 
 super(id, pageClass);
 
 this.stringAnchor = anchor;
 
   }
 
 
 
   public AnchoredBookmarkablePageLink(String id, Class pageClass,
 
  PageParameters params, IModel anchor) {
 
 super(id, pageClass, params);
 
 this.stringAnchor = anchor;
 
   }
 
 
 
   @Override
 
   protected CharSequence appendAnchor(ComponentTag tag, CharSequence
  url) {
 
 url = url + # + stringAnchor.getObject().toString();
 
 return url;
 
   }
 
 
 
  }
 
 
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Making Component easier to Generify

2008-06-14 Thread Gwyn Evans
Hmm...  (As an aside, I wonder if they mean pray in the jungle or prey in
the jungle? :-))

/Gwyn

On Sat, Jun 14, 2008 at 8:23 AM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 Or with qi4j (http://qi4j.org)

 Martijn

 On Sat, Jun 14, 2008 at 5:37 AM, Eelco Hillenius
 [EMAIL PROTECTED] wrote:
  It's good to know that when you reach the same conclusion it is a
 deliberate
  one.
  BTW, interfaces are useful for this, but not a necessity. Or am I the
 only
  one thinking that
 
  No, I agree with you mostly. However, I was trying (back then) to
  define separate dimensions of components (the fact that they can be
  rendered is one, and for form components for instance, the fact that
  they can validate is another). If you have a bunch of useful
  distinctions like that, you can just decorate them for specific
  purposes. Maybe.
 
  (I seem to be... hmm...). More interfaces mean even more
  scrolling through the I's in the javadoc, no, lol.
 
  Indeed, it gets ugly pretty fast. Mixins and interfaces with
  implementations like scala has would be wonderful here, but alas,
  we'll have to work with Java.
 
  Eelco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: beginner question about models when having more than one component of the same type on the same page

2008-06-12 Thread Gwyn Evans
Just to come back to your original question (as I was intrigued  dug into
it), the reason why Wicket didn't find the properties as expected is that
the ResourceModel is relative to the component, so it was looking for
properties such as:
vacancyForm.hrContactPanel.nameLabel.nameLabel=HR Contact:

While that would have worked, a better solution would be to replace the
ResourceModel call by a new StringResourceModel(nameLabel, this, null),
where the 'this' would then be the parent ContactPanel.

Having said that, in my opinion the even better solution is the
wicket:message one you did find...

/Gwyn

On Thu, Jun 12, 2008 at 6:53 AM, Peter Eriksson [EMAIL PROTECTED] wrote:

 Thanks Timo for your very helpful suggestion!

 Best Regards,
 /Peter

 2008/6/11 Timo Rantalaiho [EMAIL PROTECTED]:

  On Wed, 11 Jun 2008, Peter Eriksson wrote:
   I will answer my own post, just in case somebody else is looking for a
   solution to the same problem. I have found two ways to get the resource
   loading to do exactly what I want (There are probably a lot more out
  there):
 
  Thanks for posting that, and cool that you found it out!
 
   add(new Label(nameLabel, new StringResourceModel(nameLabel,
   this, null)));
   add(new Label(name));
 
  These Label pairs smell like a custom component to me, e.g.
 
   public class LabeledText extends WebMarkupContainer {
   public LabeledText(String textId, MarkupContainer parent) {
   super(textId + Container);
   String labelId = textId + Label;
   add(new Label(labelId, new StringResourceModel(labelId, parent,
  null)));
   add(new Label(textId);
   }
   }
 
  Then in ContactPanel constructor you do
 
 add(new LabeledText(userName, this));
 add(new LabeledText(phone, this));
 add(new LabeledText(email, this));
 
  and change the markup accordingly (to something like
  wicket:panel
  table
  tr wicket:id=nameContainer
   tdspan wicket:id=nameLabel/span/td
  tdspan wicket:id=name/span/td
  /tr
...
  )
 
  Best wishes,
  Timo
 
  --
  Timo Rantalaiho
  Reaktor Innovations OyURL: http://www.ri.fi/ 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Modifying QuickStart to serve static content in embedded Jetty (was: RE: Tomcat 5.5.9 isn't running Quickstart)

2008-06-12 Thread Gwyn Evans
  org.apache.wicket.behavior.IBehaviorListener.onRequest()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IFormSubmitListener, method=public
  abstract void
  org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitte
  d
  ()
  ]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IFormSubmitListener, method=public
  abstract void
  org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitte
  d
  ()
  ]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=ILinkListener, method=public abstract
  void
 org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=ILinkListener, method=public abstract
  void
 org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IOnChangeListener, method=public
  abstract void
  org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChang
  e
  d(
  )]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IOnChangeListener, method=public
  abstract void
  org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChang
  e
  d(
  )]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IRedirectListener, method=public
  abstract void org.apache.wicket.IRedirectListener.onRedirect()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IRedirectListener, method=public
  abstract void org.apache.wicket.IRedirectListener.onRedirect()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IResourceListener, method=public
  abstract void
  org.apache.wicket.IResourceListener.onResourceRequested()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IResourceListener, method=public
  abstract void
  org.apache.wicket.IResourceListener.onResourceRequested()]
  INFO  - Application- [TestApplication] init: Wicket
  extensions initializer
  INFO  - WebApplication - [TestApplication] Started Wicket
  version 1.3.3 in development mode
  
  *** WARNING: Wicket is running in DEVELOPMENT mode.  ***
  ***   ^^^***
  *** Do NOT deploy to your live server(s) without changing this.  ***
  *** See Application#getConfigurationType() for more information. ***
  
  INFO  - log- Started
  [EMAIL PROTECTED]:8080
 
 
 
 
 
  -Original Message-
  From: Frank Silbermann [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 11, 2008 4:41 PM
  To: users@wicket.apache.org
  Subject: RE: Tomcat 5.5.9 isn't running Quickstart
 
  It's the identical .war file which shows the images when run in
  Tomcat
 
  6 but not when run in Jetty configured as per the QuickStart
  application.
  The actual HTML in the rendered pages is exactly what I showed you --

  Wicket generated it using AttributeModifier, and I copied the
  generated HTML by doing show source in my browser.
 
  I'm guessing the Jetty has some default security not done in Tomcat
  that is protecting my image files, which I need to override
 somehow.
 
  Or maybe it is not automatically recognizing .png files as a
  MIME-type.  Or maybe there's something else that must be configured
  in
 
  Jetty to tell it to look in the webapp folder for static content.  I
  posted about this on the jetty-support mailing list last week
  (http://www.nabble.com/-Jetty-support--Embedded-jetty-td8400457.html#
  a
  17
  679320), but no one answered it.
 
  -Original Message-
  From: Gwyn Evans [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 11, 2008 3:51 PM
  To: users@wicket.apache.org
  Subject: Re: Tomcat 5.5.9 isn't running Quickstart
 
  On Wed, Jun 11, 2008 at 9:00 PM, Frank Silbermann 
  [EMAIL PROTECTED] wrote:
 
 
  My application uses images much as does in Wicket's images
 example.
 
  I have some image files (e.g. image1.png) stored directly inside
  the
 
  webapp folder, and my application references the images by
  generating HTML like so:
 
  ...
 
img wicket:id=picture src=image1.png alt=Picture/ 
 
  The image appears when I run the application in Tomcat, but not when

  I
 
  run it in Eclipse with Jetty
 
  ...
 
  That seems odd to me - the same web-app?  I'm probably way off base,
  but I'd be double-checking where it's actually serving it from  the
  HTML in the rendered pages...
 
  /Gwyn

Re: enclosure around listview

2008-06-11 Thread Gwyn Evans
On Wed, Jun 11, 2008 at 10:34 AM, Matthijs Wensveen [EMAIL PROTECTED]
wrote:

 Is there a way to hide a listview with an enclosure when there are no items
 to display? One way to get it working is to toggle the visibility of the
 listview based on wheter or not the list is empty or not.


I think that's the normal way, in that you'd typically have both the list
and a No items found label, then set one or the other as visible...


 I was expecting this would work out-of-the-box though...


JIRA (https://issues.apache.org/jira/browse/WICKET) covers Wishes as well
as Bugs! :-)

/Gwyn


Re: wicket url links

2008-06-11 Thread Gwyn Evans
Hmm... some (all) of us have jobs to do as well as this...

Anyway, is component#urlFor() what you're looking for?
What 1.2 version were you using, as 1.2.6 has the above but no
component#forUrl()?

/Gwyn

On Wed, Jun 11, 2008 at 4:34 PM, i ii [EMAIL PROTECTED] wrote:


 no answer?

  From: [EMAIL PROTECTED]
  To: users@wicket.apache.org
  Subject: wicket url links
  Date: Wed, 11 Jun 2008 10:59:22 +
 
 
  wicket 1.2 has component#forUrl(). what to use in 1.3?
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Dropdownchoice without default option choose one

2008-06-11 Thread Gwyn Evans
Just to summarise, you need to do two things: set a 'current selection' and
call setNullValid(false).

/Gwyn

On Wed, Jun 11, 2008 at 6:14 PM, nitinkc [EMAIL PROTECTED] wrote:


 I would like to remove the default choose one option from the
 DropDownChoice component.
 Does anyone know how to do this. Thanks.
 --
 View this message in context:
 http://www.nabble.com/Dropdownchoice-without-default-option-%22choose-one%22-tp17782776p17782776.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-11 Thread Gwyn Evans
On Wed, Jun 11, 2008 at 9:00 PM, Frank Silbermann 
[EMAIL PROTECTED] wrote:

 (My Wicket 1.3 QuickStart adds log4j-1.2.14.jar, slf4j-api-1.4.2.jar,
 and slf4j-log4j12-1.4.2.jar to the application's lib directory; my
 Wicket 1.2 application does not add these.)


If I recall, 1.2 would have been common-logging based, hence the appearance
of the slf4j jars with 1.3...


 My application uses images much as does in Wicket's images example.  I
 have some image files (e.g. image1.png) stored directly inside the
 webapp folder, and my application references the images by generating
 HTML like so:

...

   img wicket:id=picture src=image1.png alt=Picture/ 

 The image appears when I run the application in Tomcat, but not when I
 run it in Eclipse with Jetty

...

That seems odd to me - the same web-app?  I'm probably way off base, but I'd
be double-checking where it's actually serving it from  the HTML in the
rendered pages...

/Gwyn


 ...


Re: Multiple Layouts using Inheritance

2008-06-11 Thread Gwyn Evans
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/Session.html#setStyle(java.lang.String)

On Wed, Jun 11, 2008 at 9:33 PM, Kram.V [EMAIL PROTECTED] wrote:


 No, I have not. I am going to start looking. If you have any
 links/documentation do let me know.
 Thank you for your help.



 jwcarman wrote:
 
  Have you looked at using styles?
 
  On Wed, Jun 11, 2008 at 4:21 PM, Kram.V [EMAIL PROTECTED] wrote:
 
  In Wicket is it possible to inherit from multiple layouts?
 
  What we are trying to do is introduce different skins for the same
  application (We could control all of this in CSS and forget about it,
 but
  want to try this first)
 
  Each skin is a different Layout Page/Class in Wicket, how can we switch
  the
  inheriting Page/Class's layout.
 
  For instance:
 
  Class Skin1 extends WebPage
  Class Skin2 extends WebPage
 
  abstract BasePage() - Don't know how to design this one yet!
 
  MyPage extends BasePage
 
  and MyPage should use either Skin1 or Skin2 based on some criteria
 inside
  of
  BasePage.
 
  Is this even doable ?
 
  Thanks
 
 
 
 
  --
  View this message in context:
 
 http://www.nabble.com/Multiple-Layouts-using-Inheritance-tp17786400p17786400.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Multiple-Layouts-using-Inheritance-tp17786400p17786644.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: stateless vs. stateful

2008-06-10 Thread Gwyn Evans
The two pages that point to that one are
http://cwiki.apache.org/WICKET/page-maps.html and
http://cwiki.apache.org/WICKET/page-maps.html.

Nathan's latest Wicket article[*] on JavaWorld also has a discussion on
stateless vs. stateful which might be useful.

/Gwyn

[*] http://www.javaworld.com/javaworld/jw-06-2008/jw-06-wicket1.html

On Tue, Jun 10, 2008 at 12:48 PM, Eyal Golan [EMAIL PROTECTED] wrote:

 A while ago there was a thread that had a link to an explanation of
 stateless vs. stateful pages in Wicket.
 I can't find the location in Wicket Wiki.
 There's a page that describes stateless pages in the site
 http://cwiki.apache.org/WICKET/stateless-pages.html

 This is one of the pages that the page i'm looking for points to.

 Can anyone direct me to that page please?

 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74



Re: wicket generics

2008-06-07 Thread Gwyn Evans
On Sat, Jun 7, 2008 at 8:20 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 thoughts and ideas?

Is there much else apart from Generic's that's in 1.4 that would
benefit from a release 'sooner' rather than 'later'?

I know the intentions's not to have it much different, but not
changing 1.3's overridden that, so arent't there were a few things,
such as making org.apache.wicket.MarkupContainer#getMarkupType
overridable allowing non-HTML pages, which might be worth considering?
 That's been my reason for using 1.4 so I know about that, but are
there other things?

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-06 Thread Gwyn Evans
That's a bit odd then...  One thing you could try is adding in SLF4J's
jcl-over-slf4j.jar instead of any commons-logging jars.  That would
redirect any Commons-Logging logging to SLF4J.

(Personally I'd also be looking to go with James' suggestion of
switching to Jetty, as I find that to be both clearer to debug and
more forgiving in terms of class-loading issues, but that may not be
possible...)

/Gwyn

On Fri, Jun 6, 2008 at 5:31 PM, Frank Silbermann
[EMAIL PROTECTED] wrote:
 The lib directory in the QuickStart's WEB-INF contains:

log4j-1.2.14.jar
slf4j-api-1.4.2.jar
slf4j-log4j12-1.4.2.jar

 -Original Message-
 From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 06, 2008 11:27 AM
 To: users@wicket.apache.org
 Subject: Re: Tomcat 5.5.9 isn't running Quickstart

 you have to at least also have log4j in there somewhere.
 commons-logging is just the pipeline..

 -igor

 On Fri, Jun 6, 2008 at 9:15 AM, Frank Silbermann
 [EMAIL PROTECTED] wrote:
 Well, aside from the logging-oriented jars that maven packs into the
 QuickStart's lib folder, the only logging jar I can see in Tomcat is
 in Tomcat's bin folder, named

 commons-logging-api.jar

 dated 3/26/2005.

 Do I need to replace that with a more recent version?  Would you
 recommend moving to the current version of Tomcat to avoid
 side-effects?


 -Original Message-
 From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 06, 2008 11:07 AM
 To: users@wicket.apache.org
 Subject: Re: Tomcat 5.5.9 isn't running Quickstart

 well, there you go, something funky with your logger jars

 -igor

 On Fri, Jun 6, 2008 at 9:03 AM, Frank Silbermann
 [EMAIL PROTECTED] wrote:
 Ah, yes, I thought I had checked those, but I must have missed the
 right log.  The error messages are:

 The catalina.log file contains:

 INFO: Stopping service Catalina
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 findResourceInternal
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load commons-logging.properties.  The eventual
 following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused
 the illegal access, and has no functional impact.
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 findResourceInternal
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load
 META-INF/services/org.apache.commons.logging.LogFactory.  The
 eventual

 following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused
 the illegal access, and has no functional impact.
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load org.apache.log4j.Logger.  The eventual
 following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused
 the illegal access, and has no functional impact.
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load java.util.logging.Logger.  The eventual
 following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused
 the illegal access, and has no functional impact.
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load org.apache.log4j.Logger.  The eventual
 following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused
 the illegal access, and has no functional impact.
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load java.util.logging.Logger.  The eventual
 following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused
 the illegal access, and has no functional impact.
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load java.util.logging.Logger.  The eventual
 following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused
 the illegal access, and has no functional impact.
 Jun 6, 2008 10:58:23 AM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load org.apache.commons.logging.impl.SimpleLog.
 The eventual following 

Re: Contructor model

2008-06-05 Thread Gwyn Evans
Are you looking for something like:

public class MyPage extends WebPage {
  public MyPage(String name) {
setModel(new Model(new Customer(name));
...

/Gwyn

On Thu, Jun 5, 2008 at 2:22 PM, Manuel Corrales
[EMAIL PROTECTED] wrote:
 Hi, i will rephrase. I have a class Customer on my domain, and Customer do
 not have a default constructor. Lets assume Customer have a constructor with
 a String:

 public class Customer {
   Customer(String name) {
   ...
   }
 }

 It is possible to create a wicket model, to create a new instance of
 Customer? I mean, if i am not getting it wrong the wicket model use
 accessors (get, set) to fill the objects, so how can i do to use the
 Customer constructor from a wicket model?

 On Wed, Jun 4, 2008 at 5:41 PM, Maurice Marrink [EMAIL PROTECTED] wrote:

 What do you mean?
 If your page accepts a certain model in its constructor you can do
 with it whatever you want.
 Any page (with or without empty constructor) can be created from
 within another page. Although typically you will do this on a link
 click or form submit.
 Just do setResponsePage(new MyPage(whatever_args_here);

 Maurice

 On Wed, Jun 4, 2008 at 6:27 PM, Manuel Corrales
 [EMAIL PROTECTED] wrote:
  Hi, let assume i have a class with no empty constructors (at least no
  publics). And i want to use a wicket page to instantiate this class. It
 is
  possible to create a model for this, so i dont have to use another object
 or
  add setters. I dont know if i made myself clear. Please feel free to ask.
 
  Thanks in advance!
 
  Regards.
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Contructor model

2008-06-05 Thread Gwyn Evans
In which case, maybe something along the lines of...

MyPage() {
  displayedName = ;
  setModel(new CompoundPropertyModel(new Customer(displayedName));
  Form form = new Form() {
void onSubmit() {
  Customer customer = (Customer)getModelObject();
  if (!displayedName.equals(customer.getName()) {
setModelObject(new Customer(customer.getName()));
  } else {
  ...
  }
  }
  add(form);
  form.add(new TextField(name));
  ...

/Gwyn

On Thu, Jun 5, 2008 at 3:09 PM, Manuel Corrales
[EMAIL PROTECTED] wrote:
 Half way there :)

 public class MyPage extends WebPage {
  public MyPage(String name) {
   setModel(new Model(new Customer(name));

 that what i want, but instead of having name as a parameter on the page
 constructor, i would like to have it from the same form the other Customer
 data is being filled.


 On Thu, Jun 5, 2008 at 10:40 AM, Gwyn Evans [EMAIL PROTECTED] wrote:

 Are you looking for something like:

 public class MyPage extends WebPage {
  public MyPage(String name) {
setModel(new Model(new Customer(name));
...

 /Gwyn

 On Thu, Jun 5, 2008 at 2:22 PM, Manuel Corrales
 [EMAIL PROTECTED] wrote:
  Hi, i will rephrase. I have a class Customer on my domain, and Customer
 do
  not have a default constructor. Lets assume Customer have a constructor
 with
  a String:
 
  public class Customer {
Customer(String name) {
...
}
  }
 
  It is possible to create a wicket model, to create a new instance of
  Customer? I mean, if i am not getting it wrong the wicket model use
  accessors (get, set) to fill the objects, so how can i do to use the
  Customer constructor from a wicket model?
 
  On Wed, Jun 4, 2008 at 5:41 PM, Maurice Marrink [EMAIL PROTECTED]
 wrote:
 
  What do you mean?
  If your page accepts a certain model in its constructor you can do
  with it whatever you want.
  Any page (with or without empty constructor) can be created from
  within another page. Although typically you will do this on a link
  click or form submit.
  Just do setResponsePage(new MyPage(whatever_args_here);
 
  Maurice
 
  On Wed, Jun 4, 2008 at 6:27 PM, Manuel Corrales
  [EMAIL PROTECTED] wrote:
   Hi, let assume i have a class with no empty constructors (at least no
   publics). And i want to use a wicket page to instantiate this class.
 It
  is
   possible to create a model for this, so i dont have to use another
 object
  or
   add setters. I dont know if i made myself clear. Please feel free to
 ask.
  
   Thanks in advance!
  
   Regards.
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread Gwyn Evans
On Tue, Jun 3, 2008 at 9:19 AM, jd17 [EMAIL PROTECTED] wrote:

 The first and most important one is the fact that per default Wicket now
 makes css ids unique, which isn't even mentioned in the migration guide (Can
 you please add it?). I make heavy use of css in my application and it was
 really a nuisance to have to set setOutputMarkupId(false) for a lot of
 controls (at least I use markup inheritance a lot, so this wasn't much of an
 issue for the WebPage subclasses). I understand that the ids must be unique
 and that things crash in case one makes use of nested components. But in my
 whole application I do not yet make use of such nesting (of course, coming
 from 1.2.6...). So I would find it much more natural if the default would be
 setOutputMarkupId(false) instead of the other way around.

Take Igor's word for it, the default /is/ false!  :-)   There's got to
be something else involved if you're seeing them being generated...

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What is cool on Wicket?

2008-06-03 Thread Gwyn Evans
Have a look here
(http://cwiki.apache.org/confluence/display/WICKET/Articles+about+Wicket)
and a quick seach with Nabble, as I think there were similar requests
on the list not too long ago.

/Gwyn

On Tue, Jun 3, 2008 at 8:37 PM, Eyal Golan [EMAIL PROTECTED] wrote:
 Hi,
 I'm going to give an intro presentation about Wicket at my home company (I
 work as an outsource).
 There are so many cool things in Wicket and I probably know some / most of
 them.
 Can you give your advice / thoughts?

 Things like Ajax support, markup inheritance, POJO usage, clear and clean
 separation of view and logic, learning curve etc.

 Thanks

 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bean properties from view?

2008-06-03 Thread Gwyn Evans
On Tue, Jun 3, 2008 at 9:38 PM, FastGorilla [EMAIL PROTECTED] wrote:

 I have knowledgde of Servlets, JSP and JSF, and reading a bit about Wicket.

 Something that turns me immediately off is that you have to use something
 like
 add(new Label(firstName, person.getName()));
 add(new Label(lastName, person.getName()));
 add(new Label(address, person.getAdress()));
 add(new Label(postalcode, person.getPostalcode()));
 etc
 to send data to the view. Which is a lot of hardcoded duplicated property
 mapping code.

 Isn't it possible to just send the whole person object to the view, just
 like in JSP, JSF, Facelets? Instead of manally putting all person bean using
 the add-method.

Yes - the part that you're missing is the Modal usage in Wicket and
particulalry, the way that components can work their way up their
hierarchy.  See
http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels,
for example.

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bean properties from view?

2008-06-03 Thread Gwyn Evans
Also http://cwiki.apache.org/WICKET/more-on-models.html

On Tue, Jun 3, 2008 at 9:58 PM, Gwyn Evans [EMAIL PROTECTED] wrote:
 On Tue, Jun 3, 2008 at 9:38 PM, FastGorilla [EMAIL PROTECTED] wrote:

 I have knowledgde of Servlets, JSP and JSF, and reading a bit about Wicket.

 Something that turns me immediately off is that you have to use something
 like
 add(new Label(firstName, person.getName()));
 add(new Label(lastName, person.getName()));
 add(new Label(address, person.getAdress()));
 add(new Label(postalcode, person.getPostalcode()));
 etc
 to send data to the view. Which is a lot of hardcoded duplicated property
 mapping code.

 Isn't it possible to just send the whole person object to the view, just
 like in JSP, JSF, Facelets? Instead of manally putting all person bean using
 the add-method.

 Yes - the part that you're missing is the Modal usage in Wicket and
 particulalry, the way that components can work their way up their
 hierarchy.  See
 http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels,
 for example.

 /Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-02 Thread Gwyn Evans
Interesting idea - I'd encourage you to expand a bit on the the Are
you using models? stage though, as that could be take the wrong way!
:-)

Incidently, for non-visibles, you might want to consider
Component.setOutputMarkupPlaceholderTag() as an alternative such as
when the parent contains a number of elements that may not need
updating.

/Gwyn

On Mon, Jun 2, 2008 at 9:33 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hi

 I've created a small wicket cheat sheet for issues and features, please see
 here :  http://www.flyupload.com/?fid=9436254

 It's based on my experience so it's certainly not complete and you should
 consider it a draft.

 Any comment will be welcome:)

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-02 Thread Gwyn Evans
On Mon, Jun 2, 2008 at 1:59 PM, Ames, Tim [EMAIL PROTECTED] wrote:
 Sorry, I don't understand how to access the pdf from this link

You probably need to scoll down - here, at least, the page seems to
have some info about the file, then a number of blank lines  only
then the Download Now link you need.

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-02 Thread Gwyn Evans
Ah, I was using AdBlock Plus, so had a slightly cleaner display!

The Add Attatchment on the wiki is restricted to the Confluence
wicket-committers group (which is probably out of sync with the real
Wicket committers list).

/Gwyn

On Mon, Jun 2, 2008 at 3:39 PM, Frank Bille [EMAIL PROTECTED] wrote:
 Nino makes a profit on every ad you accidently click on, trying to find the
 correct download link ;-)
 BTW, isn't the apache wiki having a Add diagram button now?

 Frank

 On Mon, Jun 2, 2008 at 3:46 PM, Brill Pappin [EMAIL PROTECTED] wrote:

 It's there, but tiny and hidden in among the ads (centred, middle/bottom).

 - Brill Pappin

 -Original Message-
 From: Ames, Tim [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 02, 2008 8:59 AM
 To: users@wicket.apache.org
 Subject: RE: Wicket cheat sheet, solve your wicket problem fast?

 Sorry, I don't understand how to access the pdf from this link

 -Original Message-
 From: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTECTED]
 ]
 Sent: Monday, June 02, 2008 4:34 AM
 To: users@wicket.apache.org
 Subject: Wicket cheat sheet, solve your wicket problem fast?

 Hi

 I've created a small wicket cheat sheet for issues and features, please see
 here :  http://www.flyupload.com/?fid=9436254

 It's based on my experience so it's certainly not complete and you should
 consider it a draft.

 Any comment will be welcome:)

 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-02 Thread Gwyn Evans
On Mon, Jun 2, 2008 at 7:24 PM, Frank Bille [EMAIL PROTECTED] wrote:
 On Mon, Jun 2, 2008 at 8:19 PM, Frank Bille [EMAIL PROTECTED] wrote:

 On Mon, Jun 2, 2008 at 5:37 PM, Gwyn Evans [EMAIL PROTECTED] wrote:

 The Add Attatchment on the wiki is restricted to the Confluence
 wicket-committers group (which is probably out of sync with the real
 Wicket committers list).


 Also the Add Diagram button on this page?

 http://cwiki.apache.org/confluence/display/WICKET/Index

 Frank


 (I think I'm also asking where you see those restrictions?)

Not sure about the Add Diagram, but
http://cwiki.apache.org/confluence/spaces/spacepermissions.action?key=WICKET
for the standard Confluence permissions.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wrap a ListView and it cannot be updated via AJAX ?

2008-06-02 Thread Gwyn Evans
If you're hiding the container, try setting it to output a placeholder id too.

/Gwyn

On Mon, Jun 2, 2008 at 11:21 PM, smallufo [EMAIL PROTECTED] wrote:
 Hi

 I tried to export the listViewContainer with getListViewContainer()
 and in the gmap2's ClickListener : onClick() :
 target.addComponent(panel);
 target.addComponent(panel.getListViewContainer());

 But it's still not updated.


 2008/6/3 greeklinux [EMAIL PROTECTED]:


 Hello,

 I do not work with wicket ajax so far...but I think you have to update
 the whole container.

 regards


 smallufo wrote:
 
  I have a WebPage , containing a gmap2 and a Panel with a ListView inside.
  I added the panel to the gmap2's onClick(AjaxRequestTarget ...) ,
  So when user clicks the gmap , the ListView (in the Panel) will be
  updated.
  It worked fine.
 
  Today , I want to add a show/hide link in the panel , to show/hide the
  ListView.
 
  Because of the error :
  This component is a repeater and cannot be repainted via ajax directly
  so , I wrap the ListView with a WebMarkupContainer : listViewContainer.
  And I also added this :
  listViewContainer.setOutputMarkupPlaceholderTag(true);
 
  The listView show/hide now works fine.
  BUT , when user clicks the gmap , the ListView doesn't update anymore.
  Why ?
  Is there any solutions ? Thanks a lot.
 
 

 --
 View this message in context:
 http://www.nabble.com/Wrap-a-ListView-and-it-cannot-be-updated-via-AJAX---tp17609927p17611958.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Clone a WebPage

2008-05-30 Thread Gwyn Evans
On Thu, May 29, 2008 at 8:48 PM, Mathias P.W Nilsson
[EMAIL PROTECTED] wrote:
 In my item page I update the cart via Ajax and call updateCart(
 AjaxRequestTarget target )
 this add a container with the cart fragment

And you've checked updateCart /does/ add the fragment to the AJAX
target?  Does the Ajax debugging show anything?

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassCastException with ListView()

2008-05-30 Thread Gwyn Evans
On Fri, May 30, 2008 at 5:14 PM, David Nedrow [EMAIL PROTECTED] wrote:

 On May 30, 2008, at 11:47 AM, Thomas Mäder wrote:

 2) You're being done in by the BoundCompoundPropertyModel you have in the
 item. Fire up the debugger and check the values directly (relying on
 toString() is bad; some object might be lying to you. Step into the
 item.getModelObject().

 After stepping into getModelObject(), I can clearly see that there is a list
 of protocol items containing expected data.

Just to double-check Thomas's point (1), are there any of the jars
being loaded from the AppServer's class-path rather than the Web-App's
classpath?  (What AppServer anyway?)

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: more getting started documents

2008-05-29 Thread Gwyn Evans
On Wed, May 28, 2008 at 10:30 PM, anirelles [EMAIL PROTECTED] wrote:

 is there any step by step CRUD for wicket?

 i would like to use wicked for a personal website but i'm losing to much
 time
 integrating the live examples in my own project

 i'll return to wicket when more documentation for new users will be
 available

Or you could just look at the available documentation now - For a
start, http://cwiki.apache.org/WICKET/documentation-index.html will
provide you with pointers to Wicket-phonebook, QWicket  Databinder,
all of which would help.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: (Class? extends Page?) casting troubles

2008-05-25 Thread Gwyn Evans
Yes, that's fine as long as you're aware of the GenericLink
alternative, but if you're not, then when you auto-complete
L[i[n[k]]], if you use LinkGeneric, it'll show up whereas if
GenericLink, it won't.

/Gwyn

On Sat, May 24, 2008 at 9:51 PM, Matej Knopp [EMAIL PROTECTED] wrote:
 I don't buy the autocompletion as argument. Not with eclipse. It might
 be difference when you do it first time and don't know the classes,
 but every other time you just write GLink and eclipse autocompletes it
 just fine.

 -Matej

 On Sat, May 24, 2008 at 3:17 PM, Gwyn Evans [EMAIL PROTECTED] wrote:
 On Sat, May 24, 2008 at 11:42 AM, John Patterson [EMAIL PROTECTED] wrote:

 The reason I put LinkGeneric rather than GenericLink was simply so that the
 two options would appear next to each other in code completions.  But of
 course in English GenericLink is more correct.

 Good point regarding completions.  Anyway, flexible, english is!  Hmm.

 /Gwyn
 - http://www.yodaspeak.co.uk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: (Class? extends Page?) casting troubles

2008-05-24 Thread Gwyn Evans
On Sat, May 24, 2008 at 11:42 AM, John Patterson [EMAIL PROTECTED] wrote:

 The reason I put LinkGeneric rather than GenericLink was simply so that the
 two options would appear next to each other in code completions.  But of
 course in English GenericLink is more correct.

Good point regarding completions.  Anyway, flexible, english is!  Hmm.

/Gwyn
- http://www.yodaspeak.co.uk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: localization properties file

2008-05-22 Thread Gwyn Evans
See http://cwiki.apache.org/WICKET/i18n-and-resource-bundles.html for
more options

On Thu, May 22, 2008 at 8:05 AM, Maurice Marrink [EMAIL PROTECTED] wrote:
 That would be the easiest yes.

 Maurice

 On Thu, May 22, 2008 at 7:45 AM, Eyal Golan [EMAIL PROTECTED] wrote:
 Hi,
 If I want a centralized properties file for localization, where should I put
 it and how should I call it?
 Is it supposed to be in the same folder as my WebApplication class?
 Is is supposed to have the same name as this class (with extension
 properties)?

 Thanks

 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Repeating suggestions...

2008-05-21 Thread Gwyn Evans
Thanks, yes, I'd been looking at RepeatingView and hadn't noticed
ListView, which was what I really needed, as I needed to have embedded
components, which RV doesn't do but LV does...

That and:
listItem.setMarkupId(PREFIX + index);
listItem.setOutputMarkupId(true);
pretty much sorted it...

/Gwyn

On Wed, May 21, 2008 at 5:37 AM, Martin Makundi
[EMAIL PROTECTED] wrote:
 You are being a bit ambiguous about your goals, but I will try.

 Think of repeaters like for-iterators, get started here:
 http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html

 **
 Martin

 2008/5/21 Gwyn Evans [EMAIL PROTECTED]:
 I've not got into the repeaters as yet, so wondering if anyone has any
 pointers to help get started...

 Hopefully this will come through as understandable...

 I'm currently using something like the following markup:

 card id=A   p   select wicket:id=mycomponent
option
 /select  /p  /card

 with my component based on the dropdown component (but cutdown), to
 produce something like:

 card id=A   p  select
option value=1 a
option value=2 b
option ...
option value=9 i
  /select  /p  /card

 What I want, however, is to be able to produce something where rather
 than getting a single select with 9 options, I can produce something
 more like the following...

 card id=A  p select
option value=1 a
option value=2 b
option value=3 c
option onpick=#A1 more...
  /select /p /card

 card id=A1  p select
option value=4 d
option value=5 e
option value=6 f
option onpick=#A2 more...
  /select /p /card

 card id=A2  p select
option value=7 g
option value=8 h
option value=9 i
  /select /p /card

 Anyone fancy making suggestions as to the best approach?

 /Gwyn

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Contribution for Wicket

2008-05-20 Thread Gwyn Evans
Well, the 'official' Apache line is at
http://www.apache.org/foundation/contributing.html - the Apache Swag!
at http://www.cafepress.com/meepzor/230676 looks interesting, but
there's no Wicket stuff there yet! :-)

Have you got a copy of Wicket in Action?

/Gwyn

On Tue, May 20, 2008 at 8:12 AM, Johan Compagner [EMAIL PROTECTED] wrote:
 I think Matej can give you his paypal number ;)

 But kidding aside i dont know if this happens with individual apache
 projects. The thing i could think of is that you sponsor a wicket
 meeting or the apache foundation in general.

 Johan

 On 5/20/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 Hi!

 I was wondering how I could make a contribution for wicket. I'm not talking
 about a code contribution but rather a small money contribution. I have got
 a lot of help here on this forum and in fact I don't think I have ever
 experienced this kind of help elsewhere!


 --
 View this message in context:
 http://www.nabble.com/Contribution-for-Wicket-tp17330946p17330946.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Repeating suggestions...

2008-05-20 Thread Gwyn Evans
I've not got into the repeaters as yet, so wondering if anyone has any
pointers to help get started...

Hopefully this will come through as understandable...

I'm currently using something like the following markup:

card id=A   p   select wicket:id=mycomponent
option
/select  /p  /card

with my component based on the dropdown component (but cutdown), to
produce something like:

card id=A   p  select
option value=1 a
option value=2 b
option ...
option value=9 i
  /select  /p  /card

What I want, however, is to be able to produce something where rather
than getting a single select with 9 options, I can produce something
more like the following...

card id=A  p select
option value=1 a
option value=2 b
option value=3 c
option onpick=#A1 more...
 /select /p /card

card id=A1  p select
option value=4 d
option value=5 e
option value=6 f
option onpick=#A2 more...
 /select /p /card

card id=A2  p select
option value=7 g
option value=8 h
option value=9 i
 /select /p /card

Anyone fancy making suggestions as to the best approach?

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Quote replacement in document prologue?

2008-05-20 Thread Gwyn Evans
Just noticed that even though I specify a prologue as:
  ?xml version=1.0 encoding=UTF-8?
it gets delivered as:
  ?xml version='1.0' encoding='UTF-8'?

Anyone able to point me to where this is happening, as the particular
document spec variant I'm trying to work to here requires the
former...

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Quote replacement in document prologue?

2008-05-20 Thread Gwyn Evans
Ah - org.apache.wicket.Page#configureResponse doesn't take account of
the specified template, just uses it's hard-coded one...  Tomorrow...

/Gwyn

On Wed, May 21, 2008 at 12:10 AM, Gwyn Evans [EMAIL PROTECTED] wrote:
 Just noticed that even though I specify a prologue as:
  ?xml version=1.0 encoding=UTF-8?
 it gets delivered as:
  ?xml version='1.0' encoding='UTF-8'?

 Anyone able to point me to where this is happening, as the particular
 document spec variant I'm trying to work to here requires the
 former...

 /Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need Help

2008-05-18 Thread Gwyn Evans
At a guess, the m1 quickstart's not been genericised...

If you're getting started, I'd suggest sticking to a release 1.3
version, as 1.4-m1 is just a milestone against a moving target  not a
good starting point if new to Wicket.

/Gwyn

On Sat, May 17, 2008 at 6:24 PM, Depak Shidu [EMAIL PROTECTED] wrote:
 i try wicket 4.1-m1 maven using mvn archetype:create
 -DarchetypeGroupId=org.apache.wicket
 -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4-m1
 -DgroupId=com.shidu -DartifactId=mywicket from website wicket and have
 problem. i soon fix pom with 1.3-SNAPSHOT to 1.4-m1 but now compile error

 [INFO] Compilation failure
 /home/depak/mywicketsrc/main/java/com/shidu/HomePage.java:[25,8] cannot find
 symbol
 symbol  : method add(org.apache.wicket.markup.html.basic.Label)

 i try remove wicket from repository and redo and not work still

 i run hardy with this maven version
 Maven version: 2.0.9
 Java version: 1.6.0_06
 OS name: linux version: 2.6.24-17-generic arch: i386 Family: unix

 help?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Difficulty getting QuickStart

2008-05-02 Thread Gwyn Evans
Yes, Frank was meaning anything that limits you from directly
accessing 'external' resouces, rather than anyhting stopping incoming
traffic!

/Gwyn

On Fri, May 2, 2008 at 2:09 PM, Frank Silbermann
[EMAIL PROTECTED] wrote:
 Of course I am.  Who isn't, these days?  /Frank


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  On Behalf Of James Carman
  Sent: Thursday, May 01, 2008 4:16 PM
  To: users@wicket.apache.org


 Subject: Re: Difficulty getting QuickStart

  Are you behind a firewall of some sort?  Or, perhaps an HTTP proxy
  server?

  On Thu, May 1, 2008 at 4:51 PM, Frank Silbermann
  [EMAIL PROTECTED] wrote:
   I wrote in earlier about a problem I had in less-old releases of
   Wicket  1.2.  Since no more work is being done on that version, I
   thought I'd  try the sample on Wicket 1.2.  I figured the easiest
   approach was to  download the Wicket 1.3 QuickStart application.  That

   requires Maven,  which I've never before used.  I downloaded and
   installed Maven (I  assume correctly) and then followed the
   instructions to get the  QuckStart application, but the Maven command
   failed with the following  output.  Can anyone tell me what I did
   wrong?  (I apologize if this is  really a Maven question, but
   obtaining QuickStart is my only reason for  messing with Maven.)
  
 C:\mvn archetype:create -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=1.3.3 -DgroupId=com.mycompany
   -DartifactId=myproject  [INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
   [WARNING] repository metadata for: 'org.apache.maven.plugins' could
   not  be retrieved from repository: central due to an error: Error
   transferring file  [INFO] Repository 'central' will be blacklisted
   [INFO]
  
   --
   --
[ERROR] BUILD ERROR
[INFO]
  
   --
   --  [INFO] The plugin
   'org.apache.maven.plugins:maven-archetype-plugin' does  not exist or
   no valid version could be found  [INFO]
  
   --
   --  [INFO] For more information, run Maven with the -e switch  [INFO]
  
   --
   --
[INFO] Total time: 21 seconds
[INFO] Finished at: Thu May 01 15:42:12 CDT 2008  [INFO] Final
   Memory: 1M/2M  [INFO]
  
   --
   --
  
  
  
/Frank
  
  

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket maven dependency

2008-04-25 Thread Gwyn Evans
That doesn't sound correct - are you sure your Maven installation
hasn't been pointed somewhere else, as we don't manually install them
locally  they are on repo1 - What particular artifacts are showing as
unavailable?

See http://repo1.maven.org/maven2/org/slf4j/ 
http://repo1.maven.org/maven2/javax/portlet/portlet-api/1.0/

Did you check out /all/ of the wicket 1.3.3 branch - specifically have
you got wicket-parent?

/Gwyn

On Fri, Apr 25, 2008 at 11:25 AM,  [EMAIL PROTECTED] wrote:
 Hello:
  A dumb question. I tried to build wicket from its source (say 1.3.3) 
 (thinking about working on wicket) and realized that several dependent 
 artifacts such as slf4j ,portlet were not on repo1.maven.org.  Does wicket 
 team (or anyone building from source) have to install those locally or is 
 there larger maven repo that I could  use?  I can install them locally but 
 just incase there are easier ways.
  Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Gwyn Evans
On Mon, Apr 14, 2008 at 11:40 AM, Sebastiaan van Erk
[EMAIL PROTECTED] wrote:

  However they're still workarounds for something that I think is
 conceptually not quite right in Wicket currently: the fact that it should be
 possible to mount different locales of a page on different urls, for
 *whatever* coding strategy I choose to use.

I suspect that it's just that the default behaviour (automatically
using the user's locale to return the locale-specific page) covers the
majority of requirements  no-one's raised an issue to modify the url
coding strategies, let alone contributed code!  A quick search back on
the list suggested something similar had been asked by various people
a couple of times before, but it's not clear if anything was then
coded or if they found a different approach.

Note that even if you think you can't contribute code for one reason
or another, an discussion here followed by a JIRA issue with specific
use-cases will mean it's not forgotten, at least.

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-04-11 Thread Gwyn Evans
Anything new on this issue?

/Gwyn

On Wed, Apr 9, 2008 at 5:55 PM, Niels Bo [EMAIL PROTECTED] wrote:

  ok, I can put a try-catch(Throwable t) around the service() and log that
  together with the request-url.
  But since it is a production server, I am not able to get it deployed until
  tomorrow evening, and right now we are doing ok with the workaround.

  Niels




  Johan Compagner wrote:
  
   if there was an error before that
   that should then be logged just before you log that there is a wrong state
  
   The way you do it now is in reverse
  
   the wrong state was already set in X number of request back
   so when you log it, You can;'t really tie it to a a specific request that
   did go wrong.
  
   If you log it later after the service method. Then you know that it did
   happen for that request
   And most likely there should be some error before that.. Because i dont
   see
   another way
   how it would be possible when the normal flow without exceptions would
   happen.
  
   johan
  
  
   On Wed, Apr 9, 2008 at 3:28 PM, Niels Bo [EMAIL PROTECTED] wrote:
  
  
   Hi
   How can I check/log if there are error for that thread?
   Niels
  
  
   Johan Compagner wrote:
   
could you change that method that it checks this after the fact?
and then see if there is an error for that thread before? for example
   also
log the url call so that we can see
what kind of request did let one thread local be there?
   
Which one is it by the way?
is it app, session or request cycle?
   
i just checked our code and we have finally blocks pretty much every
   where
in WicketFilter.doGet
and in RequestCycle.steps
   
And i have no idea how those can be jumped over.
   
johan
   
  
   --
   View this message in context:
   
 http://www.nabble.com/Invoulentary-session-sharing-leakage-in-Wicket-1.3.x-tp16550360p16585768.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/Invoulentary-session-sharing-leakage-in-Wicket-1.3.x-tp16550360p16590574.html


 Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: After 1 minute the Pagemap null is still locked

2008-03-19 Thread Gwyn Evans
Along the same lines, if/when you're able to run with Java 6, there
are a number of new  interesting options that become available for
monitoring without needing to run the app with special arguments...
(jstack, jconsole, visualvm  btrace for a start.)

/Gwyn

On 18/03/2008, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Glad to be of help. kill -3 is one of those gems you should never
  forget as it can save your life. Kill to save your life: nice
  slogan... :D


  Martijn


  On 3/19/08, Jeremy Levy [EMAIL PROTECTED] wrote:
   Thanks Igor / Martijn for your help.
  
As you mentioned Wicket had nothing to do with it.  I had a piece of code
that was executed when a user clicked a certain link and was blocking by
accident, caught in a loop peging the CPU.  Your suggestions of kill -3 to
get the thread dump over a couple of samples helped me to narrow down the
issue and fix it.
  
Thanks very much.
  
  
Jeremy
  
  
On Tue, Mar 18, 2008 at 4:26 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:
  
 I suggest getting a thread dump at the time of the exception, to see
 which threads are stuck. You can do that by sending a kill -3 to the
 java process running your webapp. The stack traces should be in your
 console output captured by your server.

 Martijn

 On 3/18/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
  i think the only way this can happen is that you have something that
   really takes longer then 1 minute to execute. i dont see how wicket
   can take over your cpuso may be it is that runaway process that
   does that...
 
   i think to debug it you might want to attach a profiler to the server
   and wait for it to happen, take a cpu timing profile and see what was
   going on during the spike...
 
   does the message tell you who it is locked by? which page or
   otherwise? if not that is possibly something we can improve also...
 
   -igor
 
 
   On Tue, Mar 18, 2008 at 1:06 PM, Jeremy Levy [EMAIL PROTECTED] 
 wrote:
I am seeing the After 1 minute the Pagemap null is still locked
 error in
 production a couple of times a day for about the last week or so.
  We put in
 a major update to our site about 3 weeks ago, but only recently
 started
 seeing this error.  I suspect they are related.
   
 From doing some research on the mailinglist it seems that this 
 comes
 up when
 a user requests a new page while there is an open request still
 processing.
   
 http://www.nabble.com/pagemap-locking-to11350774.html#a11350774
   
 At the same time (or a few seconds before) the CPU is pegged at 
 100%
 and
 stays that way.  Overtime the CPU usage progressively gets more 
 and
 more
 backed up (I assume because this issue keeps happening and 
 compounds
 the
 load).
   
 The longest page request on the site is a panel which has 4 child
 lazy
 loading panels but none of them take longer then a max of 4 
 seconds,
 which
 is pretty strictly enforced.
   
 The CPU getting pegged is a huge problem because it is forcing us 
 to
 restart
 the server every some often.
   
 For now we have not been able to reproduce this error in a
 development
 environment, any suggestions, or troubleshooting ideas?
   
 Jeremy
   
 
 
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


  



 --

 Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.1 now! - http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Autolinking Relative Paths

2008-03-18 Thread Gwyn Evans
On 16/03/2008, James Carman [EMAIL PROTECTED] wrote:

3. Document the valid path syntax (and limitations) in the Wiki, WIA, etc.
  

 +1 - but it should at least be in the Wiki, though.  I remember
  getting frustrated when seeing replies on the Tapestry lists that said
  Buy Kent Tong's book.  Don't get me wrong, his book was/is good, but
  having to pay for documentation for an Apache project just seems wrong
  to me.

Don't forget that the Wiki is open to anyone to update.

If info appears through discussions on the list but someone feels it
should be on the wiki, we /want/ them to add it there!

/Gwyn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploy Wicket 1.3 project to Websphere 6.1

2008-03-14 Thread Gwyn Evans
Does http://cwiki.apache.org/WICKET/websphere.html apply?
/Gwyn

On 12/03/2008, Justine Yan [EMAIL PROTECTED] wrote:
 Hi,

  I am getting Error 404 when running the helloworld example. I read it
  somewhere that I should use WicketServlet instead of WicketFilter.
  Anyone has experiences deploy to Websphere? Any suggestion?



  Thank you very much!


  Justine



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Linking two DropDownChoices

2008-02-16 Thread Gwyn Evans
Also see the DropDownChoice wiki page -
http://cwiki.apache.org/confluence/display/WICKET/DropDownChoice+Examples

/Gwyn

On 15/02/2008, James Carman [EMAIL PROTECTED] wrote:
 Here's an Ajax-based example:

 http://www.wicketstuff.org/wicket13/ajax/choice.1


 On 2/15/08, Bruce McGuire [EMAIL PROTECTED] wrote:
  Hello.
 
 
 
   I have two DropDownChoices, both with Models (Databinder's
   HibernateObjectModel). One is subordinate to the other, in that when the
   first one's value changes, I would like to clear the second one, forcing 
  the
   user to select from the second one, or perhaps setting the second one to a
   default value.
 
 
 
   However, I am stumped as to how to accomplish this.
 
 
 
   Any hints you have would be greatly appreciated.
 
 
 
   Thanks,
 
 
 
 
   Bruce.
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.1 now! - http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: the flow of wicket

2008-01-23 Thread Gwyn Evans
On 21/01/2008, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Fine, this can be a good compromise: documentation written by the
  skilled community and reviewed by the developers themselves. I'm not
  that hardcore now, but the more I get into Wicket, the more I'll try
  to help out as much as I can.

 I just came across http://cwiki.apache.org/WICKET/wicket-inside.html
 and - though I just skimmed through it quickly - it seems that someone
 (syl?) already made quite an effort explaining how Wicket works
 internally. Pretty cool, and hopefully this will help people in this
 thread who were looking for a more high level (compared to javadocs
 and your debugger) explanation.

 Please, take those documents as your starting point and improve/ ask
 specific questions when you work through them.

While I'd uploaded Dmitry's diagrams, they'd not got replicated
through to the static site until the page was re-edited.  I've just
done so, to trigger the copy, so if you looked at the pages  saw
missing diagrams, please take another look!


 Thanks syl (whoever you are),

Dmitry Kandalov, take a bow!

/Gwyn
-- 
Download Wicket 1.3.0 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Javascript call to wicket

2008-01-10 Thread Gwyn Evans
As Cemel suggested, if you have time to put a summary up on the Wiki,
it would be appreciated!

/Gwyn

On 09/01/2008, Pills [EMAIL PROTECTED] wrote:

 Thank you, now everything works fine, and it's clean ;)



 Michael Sparer wrote:
 
  You can do that like so: Map map =
  ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();
  Maybe there's also an easier way but I'm not really into wicket's
  requestcycle ...
 

 --
 View this message in context: 
 http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14707957.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket posts missing on nabble

2007-12-20 Thread Gwyn Evans
Sure, we like Nabble; we just don't have any more influence with it
that anyone else, so as far as reporting any issues go, (as far as I'm
aware), there's nothing we could do that anyone else couldn't equally
well do!

/Gwyn

On 20/12/2007, jweekend [EMAIL PROTECTED] wrote:

 Your suggestion would indeed appear to solve the immediate problem (it must
 be quite annoying to regularly receive the same post several times,
 especially for committers like yourself who probably feel almost duty-bound
 to not just ignore too many posts from the same person, only to discover
 some of these are in fact just repeats anyway ;-), but it is much better if
 nabble fix this properly so it works as it should: one of the key benefits
 of using nabble is that their site is almost always accessible, even from
 behind most corporate firewalls, whereas access to gmail, hotmail,
 you_name_itmail is quite often barred.
 Regards - Cemal
 http://jWeekend.co.uk http://jWeekend.co.uk


 Martijn Dashorst wrote:
 
  This would explain why we sometimes get 3 or more messages sent from
  nabble
  users.
  Anyway: the tip for the wicket user list is to use gmail. This is the
  power
  tool the committers use to keep up with the users list. Despite the volume
  we are able to keep track of most messages that are sent.
 
  Martijn
 
  On Dec 20, 2007 12:12 PM, jweekend [EMAIL PROTECTED] wrote:
 
 
  We've just had confirmation from nabble that some messages are not
  appearing
  on their wicket-user list despite coming up in matching search results
  (eg
  I
  posted yesterday about how we used the forum to successfully find a
  Wicket
  developer, and that never appeared on the list, despite being visible
 
  http://www.nabble.com/Wicket-training-reviews-contract-work-to13616515.html#a14408227
  here ). It seems in particular to be messages posted via their site
  (rather
  than posts sent to the mailing-list directly, by email) that are not
  appearing.
  nabble say there is no good reason for this (ie it's not ratings related
  etc...) and they have passed the issue on to their developers. If you are
  experiencing any such problems (ie you're not getting answers to
  questions
  or your announcements relating to Wicket are not getting on the forum
  because your posts are not visible at
  http://www.nabble.com/Apache-Wicket-f13974.html), it's probably a good
  idea
  to help nabble look into these issues by posting a note to their support
  forum  http://www.nabble.com/Nabble-Support-f1.html here  with any other
  known cases (include information about how you posted, by email or via
  nabble).
  Regards - Cemal
  http://jWeekend.co.uk http://jWeekend.co.uk
  --
  View this message in context:
  http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434422.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0-rc2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
 
 

 --
 View this message in context: 
 http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434956.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Strange wicket bug in DataView?

2007-12-20 Thread Gwyn Evans
No real idea, but I'd be tempted to stick in some diagnostic logging
to log the calls to the DataProvider  the details of the lists it
returns, just to check there's nothing odd happening there...

/Gwyn

On 20/12/2007, Tauren Mills [EMAIL PROTECTED] wrote:
 Thanks.  I will try to put together a quickstart, but I'm not sure I
 can duplicate the problem in it.

 Tauren


 On Dec 19, 2007 3:23 PM, Matej Knopp [EMAIL PROTECTED] wrote:
  This is definitely strange. However without posting more code (or
  preferably a complete testcase to reproduce) I don't really know how
  to help you with it.
 
  -Matej
 
 
  On Dec 20, 2007 12:05 AM, Tauren Mills [EMAIL PROTECTED] wrote:
   Does anyone have any thoughts on this problem?  I realize this it may
   seem unique and isolated, but are there any suggestions even on how to
   figure out what is wrong?  How can I figure out why the component path
   in the URLs for the Links in the DataView are not matching the
   component hierarchy?  These are the URLs output at initial page
   creation time:
  
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener::
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener::
  
   However, at the time that onClick is processed, the component
   hierarchy seems to have changed and now have the value of 3 and 4
   instead of 1 and 2.  The links above don't work, but the following
   links do if I manually enter them:
  
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:3:actions:select::ILinkListener::
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:4:actions:select::ILinkListener::
  
   Its almost as if a secondary page render has occurred.  But I've added
   logging to my page and don't see any extra log output.
  
   My project is basically done and ready to launch, but this is holding
   it up.  Any ideas or suggestions?
  
   Thanks!
   Tauren
  
  
  
   On Dec 18, 2007 11:21 PM, Tauren Mills [EMAIL PROTECTED] wrote:
I'm having an Exception that is happening before any of my
Link.onClick() code is executed, making me wonder if there is a wicket
bug of some sort.
   
I have a DataView with an ActionPanel in each row that contains a
Link. There is no AJAX on this page.  When I load the page with the
DataView for the first time, clicking the Link doesn't work and I get
an Exception (see below).  But if I click the browser back button,
then click the same link, it works.  However, this problem only occurs
for some of the data records, not all of them.  But the same data
records always break.  I thought it was a data problem because of
this, but tracing back into the wicket code seems to indicate
otherwise.  Also, I'm running on the latest wicket trunk that I
updated to about 15 minutes ago.
   
The URLs that are output for the Links in the dataview when the page
is first loaded is (dataview has only 2 data records):
   
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener::
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener::
   
When I hit the back button, the URLs for that same links are:
   
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:5:actions:select::ILinkListener::
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:6:actions:select::ILinkListener::
   
The exception that is thrown is this (only when the first links are
clicked, not the links after hitting the back button):
   
WicketMessage: component reports:reports:1:actions:select not found on
page 
com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id
= 6], listener interface = [RequestListenerInterface
name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
   
Root cause:
   
org.apache.wicket.WicketRuntimeException: component
reports:reports:1:actions:select not found on page
com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id
= 6], listener interface = [RequestListenerInterface
name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:411)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:456)
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
at 

Re: In appfuse example, UserForm instantiate static abstract inner class ?

2007-12-19 Thread Gwyn Evans
The point is that in the constructor, you're actually instantiating an
anonymous class that *extends* EditForm.  It won't work without the
abstract, because the onXXX methods are abstract and need
implementing.

/Gwyn

On 19/12/2007, bryan0101 [EMAIL PROTECTED] wrote:

 I have googled this question in many forms without much success. The problem
 is I'm trying to understand the appfuse wicket example. And the only thing
 I'm not getting is the use of private static abstract class inner member
 class.

 code
 public class UserForm extends BasePage {
 @SpringBean
 private UserManager userManager;
 private final Page backPage;

 public UserForm(Page backPage) {
 this(backPage, new User());
 }

 public UserForm(final Page backPage, User user) {
 this.backPage = backPage;

 // Create and add the form
 EditForm form = new EditForm(user-form, user) {
 protected void onSave(User user) {
 onSaveUser(user);
 }

 protected void onCancel() {
 onCancelEditing();
 }

 protected void onDelete(User user) {
 onDeleteUser(user);
 }
 };
 add(form);
 }
...
...
private void onCancelEditing() {
 setResponsePage(backPage);
 }
 private static abstract class EditForm extends Form {
  private void add(FormComponent fc, IModel label) {
  .
 /code

 Now I understand inner class, static etc etc... But what is the use of
 abstract in this instant, (all the while instantiating it in enclosing
 class's constructor. Would it work with just private static class?
 --
 View this message in context: 
 http://www.nabble.com/In-appfuse-example%2C-UserForm-instantiate-static-abstract-inner-class---tp14425471p14425471.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AjaxCheckBox not receiving onUpdate Event

2007-12-19 Thread Gwyn Evans
Something else going on, as that's fine without the
onChangeNotification - try  simplify it to a test case (which'll
work)  then work back is all I can suggest.

/Gwyn

On 19/12/2007, Advanced Technology(R) [EMAIL PROTECTED] wrote:
 Thanks Stefan, But the error persist , still not notifing when Checkbox is
 unchecked.


 AT


 2007/12/19, Stefan Lindner [EMAIL PROTECTED]:
 
  Override a methode calles something like wantChangeNotificatoin and meke
  it return true
 
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: Advanced Technology(R) [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 19. Dezember 2007 08:32
  An: users@wicket.apache.org
  Betreff: AjaxCheckBox not receiving onUpdate Event
 
  Hi,
  I have this code :
  final AjaxCheckBox bbcaucao = new AjaxCheckBox(bbcaucao) {
  protected void onUpdate(AjaxRequestTarget target) {
  System.out.println(new Date());
  }
  };
 
  The Date gets printed only if the checkbox is  unchecked.
 
  Could someone give me some light.
 
  Thanks in Advance.
  AT(R)
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 302 vs. 301 Redirect

2007-12-05 Thread Gwyn Evans
I think the one thread was Consistent homepage URL from 2005Q2 - I
think the gist was that in the scenario there, it wasn't desirable
having the redirected URL becoming the one that the search engines
would always go to.

/Gwyn

On 04/12/2007, Johan Compagner [EMAIL PROTECTED] wrote:
 Long long time ago we had discussions about this, i think also related
 to what google expects. I guess what we now have is a result of that.
 But i cant remember what the pros and cons are

 2007/12/4, Joe Toth [EMAIL PROTECTED]:
  When you setRedirect(true), wicket does a 302, temporary, redirect. The
  basic rule of thumb in SEO is if you want to pass all authority to a
  different page use 301 (permanent).
 
  http://www.seotoday.com/browse.php/category/articles/id/477/index.php
 
  Thoughts on adding something to Wicket to support this functionality?
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to secure passwords?

2007-12-05 Thread Gwyn Evans
Following on with the MD5 + salt advice, the Jasypt project
(http://www.jasypt.org/) looks to be the way I'd go if I needed to do
this.

See http://www.jasypt.org/howtoencryptuserpasswords.html for a recap
of what's been discussed here.

/Gwyn

On 04/12/2007, John Krasnay [EMAIL PROTECTED] wrote:
 On Tue, Dec 04, 2007 at 03:41:03PM +0100, Sebastiaan van Erk wrote:
 
  My original point was that MD5 hash plus salt is adequate in most use
  cases; and I still stand by that. If you're developing a high profile
  site, then I STRONGLY suggest you hire a security expert to audit your
  entire site: security policy, operating procedures, and systems.

 Agreed on both points.

 jk


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Populate form according to selected item in dropdownchoice

2007-11-26 Thread Gwyn Evans
Indeed - See the Wiki for more info, e.g.
http://cwiki.apache.org/WICKET/dropdownchoice-examples.html

/Gwyn

On 26/11/2007, Dipu Seminlal [EMAIL PROTECTED] wrote:
 there are two ways to do it

 override the wantOnSelectionChangedNotifications of the user dropdown
 to return true and override onSelectionChanged to do what you want,
 but this will result in server round trips ( refer the java of
 DropDownChoice )

 or use an AjaxFormComponentUpdatingBehavior on the onChange event of
 the dropdown.

 regards
 Dipu

 On Nov 26, 2007 7:14 AM, tsuresh [EMAIL PROTECTED] wrote:
 
  Hello wicketeers,
  I have a form to edit the attributes of User. User has the attributes
  username, mail and role.I have a dropdownchoice filled with list of users.
  When I select the user his mail should be displayed in textfield and his
  role should be displayed in dropdownchoice. And i should be able to edit his
  mail and role. I have already made the form to fill the first drop down
  choice.I have made function view(username) in User class which helps in
  viewing attributes of the user(user selected in dropdown), But I have no
  idea to populate the remaining form components.How to do this? My code for
  form is as below:
 
  public UserEdit(){
 
  User user= new user();
  CompoundPropertyModel userEditModel = new
  CompoundPropertyModel(user);
  Form form = new userEditForm(user,userEditModel);
  add(form);
  add(new FeedbackPanel(feedback).setOutputMarkupId(true));
  DropDownChoice ddc = null;
  try{
  ddc = new DropDownChoice(username,user.list());
  }catch(SQLException e){
  String err = e.getMessage();
  }
 
  TextField mailComp = new TextField(mail);
  DropDownChoice roleDdc =null;
  try{
  roleDdc = new DropDownChoice(role.name,r.list());
  }catch(SQLException e){
  String err = e.getMessage();
  }
  form.add(ddc);
  form.add(mailComp);
  form.add(roleDdc);
  }
 
  class UserEditForm extends Form {
  public UserEditForm(String id,IModel model) {
  super(id,model);
  }
  --
  View this message in context: 
  http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13944776
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Repeater View with an empty List

2007-11-23 Thread Gwyn Evans
Simplest way might be to just have two components in the markup, and
to just set one visible  the other visible depending on the data.
/Gwyn

On 23/11/2007, James Perry [EMAIL PROTECTED] wrote:
 Hello fellow Wicket users,

 If I have a FooDataProvider going to a DataView which provides a ListFoo.
 How do I get the DataView to display default markup, for example: trtd
 colspan=2There are no Foos fool!/td/tr, if this list is empty. At the
 moment, my table is empty and I want to give indication that there are no
 Foos.

 I am asking as I have convinced my boss to re-write our SilverStream legacy
 information system using Wicket.

 Cheers,
 James.



-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting started

2007-11-22 Thread Gwyn Evans
On 22/11/2007, Gervais [EMAIL PROTECTED] wrote:
 I'm new in the famous wicket world ! I need to start learning Wicket but
 i can't found docs that explain more than just doing a HelloWrold or a
 GuestBook.

http://wicket.apache.org/examples.html

http://www.wicketstuff.org/wicket13/compref/ 
http://www.wicketstuff.org/wicket13/

http://cwiki.apache.org/WICKET/documentation-index.html

-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Forms and Listview questions..?

2007-11-21 Thread Gwyn Evans
Just to check that, as you're looking at more complex displays, you've
had a look at the wicket-extension facilities, e.g. those below
org.apache.wicket.extensions.markup.html.repeater.data, for instance?

Examples at http://www.wicketstuff.org/wicket13/repeater/

/Gwyn

On 21/11/2007, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:


 Gwyn Evans wrote:
  On 20/11/2007, Nino Saturnino Martinez Vazquez Wael
  [EMAIL PROTECTED] wrote:
 
  Gwyn Evans wrote:
 
  On 20/11/2007, Nino Saturnino Martinez Vazquez Wael
  [EMAIL PROTECTED] wrote:
 
 
  Bump for replies..? Does my mail make sense? Do I need to specify
  anything further?
 
  Nino Saturnino Martinez Vazquez Wael wrote:
 
 
  Hi
 
  I've been playing with both forms and listviews. And I wanted to
  extend a form creating my own form that has captcha validation as
  standard, I cant just seem to find where to place the markup when
  extending Form?
 
 
  Well, off-hand, I'd expect that the easiest way would be to do it
  using markup inheritance -
  http://wicket.apache.org/examplemarkupinheritance.html.
 
 
 
  Hm  the link you gave  talks about inheritance for a page. However this
  would mean that I had to put the wicket:child into the form in order
  to add stuff to the form right? What about inheritance for a panel, that
  way I could use it as a form. However I got some strange errors when
  trying todo this. Heres some pseduo
 
 
  panel.html
 
  wicket:panel
 
  img wicket:id=myCaptchaimg/img
 
  form wicket:id=form
 
  input wicket:id=captchamatchingtext /
  wicket:child
  /form
  /wicket:panel
 
  panel.java
 
  private final Form form
 
  panel(String id)
  {
  super(id);
  form=new Form(form);
  add(form);
 
  form.add(new textfield..)
  add(new captcha...);
  }
 
  public addToForm(Component child){
  form.add(child);
  }
 
  Then the extending panels can add more stuff to the form.. Is this
  supposed to work?
 
 
  If I understand it correctly, I'd have thought so, yes, although if
  just getting started, I'd be tempted to get things going on a basic
  page, then start refactoring.
 
 Ok, i'll try to redo the panel, and if I run into troubles i'll provide
 a quickstart...
 
  I then tried doing it with a panel but also ran into
  sometroubles.
 
 
 
  Also I've been noticing that if you use a compound model with a
  listview forexample my page has a  compound model called article I add
  the listview new listview(comments). I would expect my item in the
  populate implementation to get fed a comment compoundmodel, but it
  does only get the compound model for the page, I then have to call
  item.getModelObject and set the compundmodel manually. Is this
  something that has been overseen, or am I missing the bigger picture?
 
 
  I think so...  Compare this...
 
  HTML:
  ul wicket:id=comments
li wicket:id=commentDummy comment/li
  /ul
 
  Java: (compressed for vertical size!)
 
class Article {
  private List comments = Arrays.asList(new String[]{Comment One,
  Comment Two, Comment Three});
  public List getComments() { return comments; }
}
 
  and
 
public MyPage(final PageParameters parameters) {
  setModel(new CompoundPropertyModel(new Article()));
  ListView listView = new ListView(comments) {
protected void populateItem(ListItem item) {
  item.add(new Label(comment, (String)item.getModelObject()));
}
  };
}
add(listView);
 
  gives the following output:
 
  * Comment One
  * Comment Two
  * Comment Three
 
 
  /Gwyn
 
 
  This is what I meant extending your example a but, it feels odd to make
  an extra compoundpropertymodel:
 
   class Article {
  private Listcomment comments=new arraylistcomments...
  public List getComments() { return comments; }
}
  class Comment{
  private String text...
  private String author
  trival getters and setters...
  }
 
   public MyPage(final PageParameters parameters) {
  setModel(new CompoundPropertyModel(new Article()));
  ListView listView = new ListView(comments) {
protected void populateItem(ListItem item) {
  setModel(new *CompundPropertyModel*(item.getModelObject()
  ))
  item.add(new Label(comment));
  item.add(new Label(author));
 
}
  };
}
add(listView);
 
 
  I see.  You can do it like that, but personally, for just a cople of
  labels I'd just implement populateItem() as follows:
 
 
 Sure, this was meant to be a simple example.. If you add some complexity
 to it it's much simpler to use the compound propertymodel, and theres
 not need for all that code calling all the different acessors since this
 is what a compoundmodel does.. Im not sure if something else can be
 gained if you make it detachable?
   protected void populateItem(ListItem item) {
 final Comment comment = (Comment)item.getModelObject();
 item.add(new Label(text, comment.getText()));
 item.add

Re: wicket preloader

2007-11-20 Thread Gwyn Evans
It's part of the standard release build, so either as part of the
1.3.0-RC1 kit (http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/)
or via Maven

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-extensions/artifactId
version1.3.0-rc1/version
/dependency

/Gwyn

On 20/11/2007, tbt [EMAIL PROTECTED] wrote:

 is there a stable release of wicket-extensions 1.3

 Where can I download wicket-extensions 1.3



 Thijs wrote:
 
  Why redirect?
  Use a lazyloading panel.
 
  Thijs
 
  tbt wrote:
  Hi
 
  I like to implement a preloader the wicket way. For example when a user
  does
  a search my code looks up the db and retrieves the relevent data. But
  this
  takes up a lot of time and i want to show a html page(preloader page)
  while
  the db search is done. When the search is completed it will automatically
  be
  redirected to a page displaying the results. Can anyone show me an
  example
  as how to do this using wicket.
 
  Thanks
 

-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Forms and Listview questions..?

2007-11-20 Thread Gwyn Evans
On 20/11/2007, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Bump for replies..? Does my mail make sense? Do I need to specify
 anything further?

 Nino Saturnino Martinez Vazquez Wael wrote:
  Hi
 
  I've been playing with both forms and listviews. And I wanted to
  extend a form creating my own form that has captcha validation as
  standard, I cant just seem to find where to place the markup when
  extending Form?

Well, off-hand, I'd expect that the easiest way would be to do it
using markup inheritance -
http://wicket.apache.org/examplemarkupinheritance.html.

  I then tried doing it with a panel but also ran into
  sometroubles.

 
  Also I've been noticing that if you use a compound model with a
  listview forexample my page has a  compound model called article I add
  the listview new listview(comments). I would expect my item in the
  populate implementation to get fed a comment compoundmodel, but it
  does only get the compound model for the page, I then have to call
  item.getModelObject and set the compundmodel manually. Is this
  something that has been overseen, or am I missing the bigger picture?

I think so...  Compare this...

HTML:
ul wicket:id=comments
li wicket:id=commentDummy comment/li
/ul

Java: (compressed for vertical size!)

  class Article {
private List comments = Arrays.asList(new String[]{Comment One,
Comment Two, Comment Three});
public List getComments() { return comments; }
  }

and

  public MyPage(final PageParameters parameters) {
setModel(new CompoundPropertyModel(new Article()));
ListView listView = new ListView(comments) {
  protected void populateItem(ListItem item) {
item.add(new Label(comment, (String)item.getModelObject()));
  }
};
  }
  add(listView);

gives the following output:

* Comment One
* Comment Two
* Comment Three


/Gwyn
-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Forms and Listview questions..?

2007-11-20 Thread Gwyn Evans
On 20/11/2007, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:


 Gwyn Evans wrote:
  On 20/11/2007, Nino Saturnino Martinez Vazquez Wael
  [EMAIL PROTECTED] wrote:
 
  Bump for replies..? Does my mail make sense? Do I need to specify
  anything further?
 
  Nino Saturnino Martinez Vazquez Wael wrote:
 
  Hi
 
  I've been playing with both forms and listviews. And I wanted to
  extend a form creating my own form that has captcha validation as
  standard, I cant just seem to find where to place the markup when
  extending Form?
 
 
  Well, off-hand, I'd expect that the easiest way would be to do it
  using markup inheritance -
  http://wicket.apache.org/examplemarkupinheritance.html.
 
 
 Hm  the link you gave  talks about inheritance for a page. However this
 would mean that I had to put the wicket:child into the form in order
 to add stuff to the form right? What about inheritance for a panel, that
 way I could use it as a form. However I got some strange errors when
 trying todo this. Heres some pseduo


 panel.html

 wicket:panel

 img wicket:id=myCaptchaimg/img

 form wicket:id=form

 input wicket:id=captchamatchingtext /
 wicket:child
 /form
 /wicket:panel

 panel.java

 private final Form form

 panel(String id)
 {
 super(id);
 form=new Form(form);
 add(form);

 form.add(new textfield..)
 add(new captcha...);
 }

 public addToForm(Component child){
 form.add(child);
 }

 Then the extending panels can add more stuff to the form.. Is this
 supposed to work?

If I understand it correctly, I'd have thought so, yes, although if
just getting started, I'd be tempted to get things going on a basic
page, then start refactoring.

  I then tried doing it with a panel but also ran into
  sometroubles.
 
 
 
  Also I've been noticing that if you use a compound model with a
  listview forexample my page has a  compound model called article I add
  the listview new listview(comments). I would expect my item in the
  populate implementation to get fed a comment compoundmodel, but it
  does only get the compound model for the page, I then have to call
  item.getModelObject and set the compundmodel manually. Is this
  something that has been overseen, or am I missing the bigger picture?
 
 
  I think so...  Compare this...
 
  HTML:
  ul wicket:id=comments
li wicket:id=commentDummy comment/li
  /ul
 
  Java: (compressed for vertical size!)
 
class Article {
  private List comments = Arrays.asList(new String[]{Comment One,
  Comment Two, Comment Three});
  public List getComments() { return comments; }
}
 
  and
 
public MyPage(final PageParameters parameters) {
  setModel(new CompoundPropertyModel(new Article()));
  ListView listView = new ListView(comments) {
protected void populateItem(ListItem item) {
  item.add(new Label(comment, (String)item.getModelObject()));
}
  };
}
add(listView);
 
  gives the following output:
 
  * Comment One
  * Comment Two
  * Comment Three
 
 
  /Gwyn
 
 This is what I meant extending your example a but, it feels odd to make
 an extra compoundpropertymodel:

  class Article {
 private Listcomment comments=new arraylistcomments...
 public List getComments() { return comments; }
   }
 class Comment{
 private String text...
 private String author
 trival getters and setters...
 }

  public MyPage(final PageParameters parameters) {
 setModel(new CompoundPropertyModel(new Article()));
 ListView listView = new ListView(comments) {
   protected void populateItem(ListItem item) {
 setModel(new *CompundPropertyModel*(item.getModelObject()
 ))
 item.add(new Label(comment));
 item.add(new Label(author));

   }
 };
   }
   add(listView);

I see.  You can do it like that, but personally, for just a cople of
labels I'd just implement populateItem() as follows:

 protected void populateItem(ListItem item) {
   final Comment comment = (Comment)item.getModelObject();
   item.add(new Label(text, comment.getText()));
   item.add(new Label(author, comment.getAuthor()));
 }

By the way, my HTML was incorrect before.  If should be more like this...

ul
  li wicket:id=comments
span wicket:id=author/span: span wicket:id=text/span
  /li
/ul

/Gwyn
-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TextTemplate

2007-11-20 Thread Gwyn Evans
Fixed in next release...
(Jira issues  patches always welcome, of course! :-)

/Gwyn

On 20/11/2007, Lars Hoss [EMAIL PROTECTED] wrote:
 Hi there!

 What JavaDocs has to say about TextTemplate:
 Represents a text template that can do variable interpolation

 Uhm, yeah :-)
 Maybe you could add VariableInterpolator to the See also list?

 Yours,
 Lars


-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to add sortable header into ListView

2007-11-20 Thread Gwyn Evans
I think you might also want to take a look at the Wicket Stuff[*]
Wicket-Phonebook example, as from memory, that does what you're
looking to do.

[*] http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki

On 20/11/2007, Joshua Jackson [EMAIL PROTECTED] wrote:
 Thanks Erik.

 Could you provide me an input for me regarding the situation I'm facing.

 What I see is that I must create a class that extend
 SortableDataProvider. But I don't know how to get my spring bean into
 this class without using the @SpringBean annotation.

 Have you been into this situation before?

 Thanks in advance

 On 11/19/07, Erik van Oosten [EMAIL PROTECTED] wrote:
  Hi Joshua,
 
  There are many examples on http://www.wicketstuff.org/wicket13/repeater/.
 
  Regards,
 Erik.
 
 
  Joshua Jackson wrote:
   Dear all,
  
   Is there any Sortable header component in wicket? I could not find it
   under wicket core library. And is there any tutorial on how to add
   sortable header?
  
   Thanks in advance
  
  
 
  --
  Erik van Oosten
  http://2008.rubyenrails.nl/
  http://www.day-to-day-stuff.blogspot.com/
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 What you want today, may not exist tommorrow

 Blog: http://joshuajava.wordpress.com/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IOC problem

2007-11-16 Thread Gwyn Evans
There's nothing on the Wiki at the moment, but I'd suggest that the
correct place would be in a page below the Integration guides page
at http://cwiki.apache.org/WICKET/integration-guides.html.  Just go
there, then Add page and it should automatically appear in the
Reference page/Integration Guides list.

/Gwyn

On 15/11/2007, Uwe Schäfer [EMAIL PROTECTED] wrote:
 Uwe Schäfer schrieb:

  Is it currently impossible to use constructor injection ?

 To quickly answer my own question: no, but little tricky! :)
 I´d like to share the experience to the wiki or wherever the right place
 for 'little gotchas' is.

 Is there a place where you can find wicket-guice notes already?

 Al?

 cu uwe


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ping2

2007-11-15 Thread Gwyn Evans
Talking about GMail, did you notice that you can now use IMAP with GMail?

/Gwyn

On 14/11/2007, Johan Compagner [EMAIL PROTECTED] wrote:
 this attempt seems to work!

 Why not use gmail? That works great, especially with lists

 johan



 On Nov 14, 2007 1:53 PM, [EMAIL PROTECTED] wrote:

  Please ignore this test message.
 
  This is my 4th attempt to send a message to this list already since
  yesterday of which so far none has come through.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Matt Raible's ApacheCon presentation

2007-11-15 Thread Gwyn Evans
I think that I'd have to say that the main cons are:-

  (a) It does demand a certain level of OO coding, in terms of being
happy to override classes  typically to be able to create anonymous
classes - not a huge amount, but coders grounded in procedural code
will feel lost.

  (b) The documention is scattered - partly because there are so many
ways that it can go beyond the basic web-page (i.e. page inheritance,
panels/fragments, embeded forms, built-in AJAX, security, etc,) that
not much short of an encylopedia could do it justice!

/Gwyn

On 15/11/2007, mraible [EMAIL PROTECTED] wrote:

 I didn't say my cons were valid - but I do believe there *are* cons to
 Wicket. What are they - in your opinion?

 matt


 igor.vaynberg wrote:
 
  * HTML templates live next to Java code
  this is easily changed - just a default
 
  * Need to have a good grasp of OO
  why is this a con? you are saying not knowing oo is a good thing? you
  can say this is a pro - learning wicket will make you a better
  developer :)
 
  * The Wicket Way - everything done in Java
  as opposed to embedding logic in views which has been something
  plaguing other frameworks for ages?
 
  -igor
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Matt-Raible%27s-ApacheCon-presentation-tf4815955.html#a13780519
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket 1.4 expectations (was Re: Apache Wicket 1.3.0-rc1 released!)

2007-11-12 Thread Gwyn Evans
As I understand it, that's still the plan, but having said that, I'd
not expect to see too much work on a 1.4 until we've got a reasonable
amount of confidence that the released 1.3 is stable, so expect to see
a 1.3.1 before 1.4.  If we jump into 1.4 too quickly, we'll be back to
dual-branch working!

Does generification of the core make that much difference to a user of
the API?  I've been focused on JDK 1.4, so didn't have a change to
look at Wicket 2 in practice.

/Gwyn

On 12/11/2007, Anders Peterson [EMAIL PROTECTED] wrote:
 Thanks, everyone who contributed!

 Is Wicket 1.4 still planned to be a Java 5 version of Wicket 1.3? How
 far away is Wicket 1.4?

 I have a small prototype application built using Wicket 1.2.6. I believe
 that little prototype may soon graduate to a real application, and when
 that happens I'd like it to be using a generified version of Wicket.

 /Anders
 ---
 http://ojalgo.org/

 Martijn Dashorst wrote:
  This is the first release candidate for Apache Wicket we have prepared
  for your pleasure. It contains over 80 fixes to issues with previous
  releases and todo items we have cleared.
...

-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Download-Links broken

2007-11-11 Thread Gwyn Evans
Thanks - fixed  waiting for the site to update.
/Gwyn

On 11/11/2007, Jan Moxter [EMAIL PROTECTED] wrote:

 The download links on http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc14
 are broken due to typo 4

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Show and hide panel with radio-choice

2007-11-10 Thread Gwyn Evans
Instead of using setOutputMarkupId() for the panels, use
setOutputMarkupPlaceholderTag() - See the javadoc, but this will both
call setOutputMarkupId() and set things so that even not visible,
there's be a placeholder component you can use as the Ajax target.

/Gwyn

On 10/11/2007, BatiB80 [EMAIL PROTECTED] wrote:

 One more information:

 when I change the source to:
   target.addComponent(singlePersonPanel);
   target.addComponent(companyPanel);
 (that means I add the panels instead of the form) I get the following error
 in ajax debug view:

 ERROR: Component with id [[registerForm_registerCompanyPanel]] 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.
 ERROR: Component with id [[registerForm_registerSinglePersonPanel]] 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.

 Seems to be clear, but I also added:
  singlePersonPanel.setOutputMarkupId(true);
  companyPanel.setOutputMarkupId(true);

 If I had a look into the sourcecode I can find the component id's:

 span wicket:id=registerSinglePersonPanel
 id=registerForm_registerSinglePersonPanel
   wicket:panel
 ...
   /wicket:panel
 /span

 span wicket:id=registerCompanyPanel id=registerForm_registerCompanyPanel
   wicket:panel
 ...
   /wicket:panel
 /span

 any ideas???

 --
 View this message in context: 
 http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13682081
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.2.6 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Show and hide panel with radio-choice

2007-11-10 Thread Gwyn Evans
Sure - what you need to do is have an enclosing span tag, and use
that as the target, so at the moment you have

Page
 +- Form
  +- Username
  +- Panel1
  +- Panel2

Instead, you need to have
Page
 +- Form
  +- Username
   +- Span
+- Panel1
+- Panel2
with the span being a WebMarkupContainer.

Then you add the panels to the span, rather than the form, and use the
span as the target to refresh, but this way the form doesn't get
refreshed, which is why you lost the 'username' value.

/Gwyn

On 10/11/2007, BatiB80 [EMAIL PROTECTED] wrote:

 Hmm - I think this method is new in version 1.3, but I use version 1.2.
 And I think it's not included there...

 Do you know how to solve the problem with this version?

 Thanks!
 --
 View this message in context: 
 http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13684798
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.2.6 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page Expired issue

2007-11-09 Thread Gwyn Evans
Hi Joshua,

One point to note might be that the 'traditional' Wicket advice for
using a Servlet mapping was not to use the root context /* but
rather use a sub mapping, e.g. /app/*, which leaves you with the
option of having static files not having to be served by Wicket.  You
can always put a index.html that does a meta-redirect to /app/ in
the root folder if needed.

Another thing would be to search the mailing list (e,g, via Nabble -
http://www.nabble.com/Apache-Wicket-f13974.html) for any WAS-specific
issues, as I believe there have been some come by...

/Gwyn

On 09 November 2007, 8:36:10 AM, Joshua Jackson wrote:
JJ Thanks Eelco. I already did that.

JJ It worked with StatelessLink and StatelessForm. Anyway is there any
JJ issue if we use WicketServlet instead of WicketFilter as such:
JJ servlet
JJ servlet-namewicket.wicket/servlet-name
JJ
JJ servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
JJ init-param
JJ param-nameapplicationClassName/param-name
JJ
JJ param-valuecom.aig.lab.wicket.web.WicketApplication/param-value
JJ /init-param
JJ init-param
JJ param-nameapplicationFactoryClassName/param-name
JJ
JJ 
param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value
JJ /init-param
JJ load-on-startup1/load-on-startup
JJ /servlet
JJ 
JJ servlet-mapping
JJ servlet-namewicket.wicket/servlet-name
JJ url-pattern/*/url-pattern
JJ /servlet-mapping


JJ Since my spring will be started using ContextLoaderServlet because
JJ ContextLoaderListener doesn't work in WAS 5


-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Gwyn Evans
Hi,

It's not hard to do it with Wicket, but I'm fairly sure that
for the typical web-app, the metrics showed that the a re-request to
database wasn't a big issue, whereas the gain in terms of reducing the
session size was, especially where it needs replicating.

As such, the recommendation is as it is, but it's not
one-size-fits-all, and if you have a large enough percentage of
non-DB-cachable operations in the DB-layer, you can store the results
in the session, etc, without much of a problem.

It's not going to be so built-in as to be trivial, though, as we want
to make it clear that anyone doing that is going against the flow.

On 09 November 2007, 9:03:31 AM, serban.balamaci wrote:
sb Most database expensive operations come from the result of stored
sb procedures(my current experience at least). A cache solution can be
sb implemented by caching the method results with spring(in case of using
sb spring) but is a heavy(difficult) thing to maintain that cache per user -
sb http session is a nice and easy storage for that-.


sb Eelco Hillenius wrote:
 
 You should use a second level cache to cache objects and queries from
 your database; and that's not Wicket's job, Wicket is a Web framework.

 For example, use Hibernate + ehcache.
 
 Yep. That way you'll avoid redundancy in caching, and have caching
 regardless of whatever UI framework you're using. and using e.g.
 ehcache can do things for you like limit the RAM cache and overflow to
 disk. Etc.
 
 Eelco


-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real World Ajax Examples/Tutorials/Help

2007-11-09 Thread Gwyn Evans
For the best chance of someone looking into it, reproduce it in a
quickstart and raise it as a Jira issue.

/Gwyn

On 09/11/2007, Curtis Cooley [EMAIL PROTECTED] wrote:
 JulianS wrote:
  Curtis Cooley-2 wrote:
 
  Also, it seems that when I attempt to enable ajax, whenever I click on
  another tab, I get the page expired link. What's up with that?
 
 
 
  I am also seeing the page expired problem frequently with 1.3.0-beta4. We
  are just in the process of upgrading to 1.3 from 1.2.6 and did not see this
  problem with 1.2.6, although our code is somewhat different so I can't
  compare apples to apples. It seems to happen more often when there are
  multiple ajax controls on a page.
 
  If anyone can shed light on this, I'd appreciate it.
  Julian
 
 
 I've fixed my other issues, so the ajax timer is now firing, but now
 whenever it fires, instead of updating the label, I get the Paged
 Expired page. I went back to basics and reproduced the world clock
 example, but I still get the page expired problem.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Download Wicket 1.2.6 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Show and hide panel with radio-choice

2007-11-09 Thread Gwyn Evans
If an Ajax call, in which case target will be non-null, you'll need to
add the changed components (or an enclosing component) to it!

/Gwyn

On 09/11/2007, BatiB80 [EMAIL PROTECTED] wrote:

 one additional information:

 when I change the choice nothing happens. But it seems, that internally the
 state of the component is beeing changed, when I reload the page the panels
 will be swapped. So it seems, that there must be some re-render request???

 Does anybody has an idea?
 --
 View this message in context: 
 http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13674117
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Download Wicket 1.2.6 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] CSS issues - suggestions?

2007-11-07 Thread Gwyn Evans
Hi Al,

On 07 November 2007, 9:42:36 AM, Gwyn Evans wrote:
AM Gwyn Evans wrote:
 I've got some text that shows up fine in Firefox but only when
 selected in IE (IE7) and I've no idea what the real issue is, so I'm
 hoping someone can take a glance.

AM That bug tends to be triggered by floats, but there are various things
AM that can cause it. You can almost always work around it by giving the 
AM affected element layout.

AM See: http://www.satzansatz.de/cssd/onhavinglayout.html

AM You could also try making the element position: relative and see if that
AM fixes it.

Thanks - still to go through the doc, but at first glance, it looks
very promising.  I've managed to get it down to this (wonder if it'll
come through!)

html
body
div style=background: #f0fff0;
 div
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed 
condimentum consequat urna.
 /div
 select style=float:left;option 
value=LoremLorem/option/select
/div
/body
/html 

so should be able to test it easy enough.

-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why dioes this error occur?

2007-11-07 Thread Gwyn Evans
Hi salmas,

On 07 November 2007, 7:05:26 PM, salmas wrote:
s Every once in awhile if I am clicking around for awhile in the UI of my
s application I get the following error. What causes this?

s java.lang.NullPointerException
s at
s 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)

What version of Wicket are you using?

-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real World Ajax Examples/Tutorials/Help

2007-11-07 Thread Gwyn Evans
Hi Curtis,

On 07 November 2007, 11:20:00 PM, Curtis Cooley wrote:
CC Where can I get more info on using ajax with wicket? The examples I've
CC found so far do not include round trips. Sure, writing a clock label is
CC cool and all, but I have real time data on a page that I don't want to
CC have to reload the whole page for all the time.

http://wicket.apache.org/exampleajaxcounter.html

http://wicketstuff.org/wicket13/ajax/

http://cwiki.apache.org/WICKET/dropdownchoice-examples.html#DropDownChoiceExamples-UsingAjax

http://day-to-day-stuff.blogspot.com/2007/01/backward-compatible-ajax-development.html


CC Also, I'm using a TabbedPanel with nested panels and even the simple
CC ajax examples won't run.

CC Also, it seems that when I attempt to enable ajax, whenever I click on
CC another tab, I get the page expired link. What's up with that? I'm
CC assuming wicket has detected that the page has changed, but the labels
CC on the page have not updated. Can this be disabled?

Did you call .setOutputMarkupId(true) on any components you want to
update via Ajax (or setOutputMarkupPlaceholderTag(true) if they're
starting out invisible)  add them to the 'target' in the Ajax
callback?

-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why dioes this error occur?

2007-11-07 Thread Gwyn Evans
Hi,

  Looking at the code, it's looking like there's some race condition
going on, with the request coming in for a component that no longer
exists.  Comparing with the 1.3 code (in
AbstractRequestCycleProcessor#resolveListenerInterfaceTarget()),
there's an explicit check for a null, but there's nothing that can
really be done to recover, i.e. even the 1.3 code is as follows...

if (component == null)
{
throw new WicketRuntimeException(component  + pageRelativeComponentPath +
 not found on page  + page.getClass().getName() + [id =  +
page.getNumericId() + ], listener interface =  + listener);
}

Maybe you could disable the button via client-side javascript once
clicked?

/Gwyn

On 07 November 2007, 9:45:24 PM, salmas wrote:
s I tried disabling the button during the event and while this was easy enough
s to implement it did not help. My page contains a table which has panels in
s different cells. I swap these panels in and out depending on wether the user
s is in 'edit' mode or 'submit' mode and also according to where they are in
s the workflow. 
s I noticed that the method of PropertyColumn which I am overriding
s populateItem(Item item, String componentId, IModel model) completes, as does
s the event handling code at the button press so I am not sure what is
s breaking down. It's easy to reproduce this error. All I have to do is to
s click a button which is present in one of the panels rapidly, at every click
s I do toggle the name of the button from edit to save so I don't know if
s this has something to do with it. 
s I do need this problem resolved because this is not acceptable for a
s production application. I would really appreciate any ideas that you have.


s salmas wrote:
 
 
 I am using wicket-1.2.6. Unfortunately it is not possible for me to
 upgrade to a newer version.
 
 Hi salmas,

 On 07 November 2007, 7:05:26 PM, salmas wrote:
 s Every once in awhile if I am clicking around for awhile in the UI of
 my
 s application I get the following error. What causes this?

 s java.lang.NullPointerException
 s at
 s
 wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)

 What version of Wicket are you using?

 --
 /Gwyn




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real World Ajax Examples/Tutorials/Help

2007-11-07 Thread Gwyn Evans

CC The only difference between my java file and the WorldClock
CC example is that it extends BasePage and I extend Panel. I'm also
CC updating a label that is in a ListView. I'm trying to build a
CC table of data that updates dynamically.

That might be significant.  Could it be a case for
ListView.setReuseItems()?

-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form: onSubmit not called

2007-11-07 Thread Gwyn Evans

On 07 November 2007, 7:55:50 AM, Brill Pappin wrote:
BP For some reason onSubmit is never called on a simple form. Has
BP anyone seen this problem before?

Validation errors but no feedback panel to see them?

-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



New page from Ajax form issues - What am I missing?

2007-11-06 Thread Gwyn Evans
Hi,
  I've got a form, which I'm processing with Ajax, but I need to go
onto a different page once it submits correctly.  The problem I'm
seeing is that if I do a
   setResponsePage(Sent.class);

then the URL that's being generated is:
  http://.../xyz/?wicket:bookmarkablePage=%3Acom.s.c.web.xyz.Sent

The problem might be that my Home page is mounted as /sc (using
HybridUrlCodingStrategy) but as a result there's no '/' page, so the
request isn't picked up by the Wicket filter  goes to the default
index.html.

  (I'll try mounting the 'Sent' page  see what effect that has, but
wanted to run that by people  I can't access the IRC at the moment!)

/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: New page from Ajax form issues - What am I missing?

2007-11-06 Thread Gwyn Evans
Hi Al,

Tuesday, November 6, 2007, 12:30:00 PM, you wrote:

AM Gwyn Evans wrote:
 Hi,
   I've got a form, which I'm processing with Ajax, but I need to go
 onto a different page once it submits correctly.  The problem I'm
 seeing is that if I do a
setResponsePage(Sent.class);
 
 then the URL that's being generated is:
   http://.../xyz/?wicket:bookmarkablePage=%3Acom.s.c.web.xyz.Sent
 
 The problem might be that my Home page is mounted as /sc (using
 HybridUrlCodingStrategy) but as a result there's no '/' page, so the
 request isn't picked up by the Wicket filter  goes to the default
 index.html.
 
   (I'll try mounting the 'Sent' page  see what effect that has, but
 wanted to run that by people  I can't access the IRC at the moment!)

AM Sounds like a bug. As luck would have it, I'm looking at the code around
AM there for another bug at the moment, so give me a quickstart and a JIRA
AM issue and I'll fix it.

Thanks - I've added https://issues.apache.org/jira/browse/WICKET-1133
although I then tested it in Jetty as well as Winstone  it was fine
in Jetty/failed in Winstone, so chances are it's not Wicket.

It's just the ?wicket:... processing though - mounting the
destination page means it works in both containers.
-- 
/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >