Re: Localizer cache

2007-11-05 Thread Johan Compagner
Do we only need it for development mode?
Because if you change the database for production it should pick them up
(live)

So caching turned off for development mode is a nice option that doesn't
matter anyway
But do we need it somehow also per StringResourceLoader what to do with it?


On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

 Hi,

 I was wondering if I could somehow turn off caching of the localizer in
 development mode (from the current source it doesn't look like it).

 The reason I ask is because now the cache is only flushed if a resource
 that is being watched is changed. However:

 * if you add a new properties file for a page or component after you
 already rendered the page once the cache is not cleared and it keeps
 finding the key=null entry in the cache.

 * if you add your own database string resource loader, the cache is
 never flushed at all.

 I know I can add a link to flush the localizer cache if and only if
 we're in development mode, but I think a Settings options could be nice
 to just turn off caching (my laptop is fast enough, I really don't care
 if it tries to resolve all the labels all the time).

 Regards,
 Sebastiaan




Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk

Johan Compagner wrote:

Do we only need it for development mode?
Because if you change the database for production it should pick them up
(live)

So caching turned off for development mode is a nice option that doesn't
matter anyway
But do we need it somehow also per StringResourceLoader what to do with it?


I think it would be quite expensive generally not to cache if the 
content is from the DB. It seems to me that if you allow content editing 
of your keys you can easily manually create a link to clear the 
localizer cache on demand on the production server. If you really want 
dynamic content I don't really know if the message mechanism is the 
right way to go?


Regards,
Sebastiaan



On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Hi,

I was wondering if I could somehow turn off caching of the localizer in
development mode (from the current source it doesn't look like it).

The reason I ask is because now the cache is only flushed if a resource
that is being watched is changed. However:

* if you add a new properties file for a page or component after you
already rendered the page once the cache is not cleared and it keeps
finding the key=null entry in the cache.

* if you add your own database string resource loader, the cache is
never flushed at all.

I know I can add a link to flush the localizer cache if and only if
we're in development mode, but I think a Settings options could be nice
to just turn off caching (my laptop is fast enough, I really don't care
if it tries to resolve all the labels all the time).

Regards,
Sebastiaan






smime.p7s
Description: S/MIME Cryptographic Signature


Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk

Ok, I created a JIRA for this:
https://issues.apache.org/jira/browse/WICKET-1128

Regards,
Sebastiaan

Eelco Hillenius wrote:

Best to open a proper feature request for this in JIRA.

Eelco

On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Hi,

I was wondering if I could somehow turn off caching of the localizer in
development mode (from the current source it doesn't look like it).

The reason I ask is because now the cache is only flushed if a resource
that is being watched is changed. However:

* if you add a new properties file for a page or component after you
already rendered the page once the cache is not cleared and it keeps
finding the key=null entry in the cache.

* if you add your own database string resource loader, the cache is
never flushed at all.

I know I can add a link to flush the localizer cache if and only if
we're in development mode, but I think a Settings options could be nice
to just turn off caching (my laptop is fast enough, I really don't care
if it tries to resolve all the labels all the time).

Regards,
Sebastiaan




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



smime.p7s
Description: S/MIME Cryptographic Signature


Re: empty wicket:message

2007-11-05 Thread Sebastiaan van Erk

BTW,

I just wanted to say how much I love Wicket!

(Which you can tell by the minor issues that I'm mailing about on this 
list, which underlines the fact that I can't find any major ones...) :-)


The resulting code is so short and so clean, Wicket it is so easy to 
work with, and everything just works. :-) It really makes web 
development fun again.


I also loved the WIA book so far and since I'm localizing my site right 
now I'm very interested in that chapter you're finishing Eelco. :-)


Regards,
Sebastiaan



Eelco Hillenius wrote:

Btw, I would mind a decision about this in this weekend, as I'm
finishing the chapter on localization right now :-)

FWIW, I don't like the silent failure we have now, and believe that
using the body as a default isn't very helpful; e.g. if you have the
default body the same as what you intended to put in the properties
file for the default locale (which is something that I often do, and I
can imagine other people doing that as well), and you make a spelling
error in the key (of either the tag or in the properties file), you'd
never notice Wicket not finding the property. Either outputting the
key as the body or throwing an exception is way better imho. However,
I wouldn't vote against people wanting to stick with the current
pattern as it is quite late in the game to change this.

Eelco


On 11/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

On 11/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

then you are violating the contract of wicket:message. if we do this
then there is little point to allowing body inside wicket:message

Erm, where is that contract defined? The body is for previewing. I
don't think I ever thought about this as a default, nor do I think we
should, since that is inconsistent with what we do elsewhere.

Eelco



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



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Localizer cache

2007-11-05 Thread Johan Compagner
i was thinking more in line with the Loader is asked a last modified time
and that time is up to the loader what to do with it. For example the loader
could
check every 5 minutes if the database is updated

But maybe this is all not needed and just make a manual flush somewhere

johan



On 11/5/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

 Johan Compagner wrote:
  Do we only need it for development mode?
  Because if you change the database for production it should pick them up
  (live)
 
  So caching turned off for development mode is a nice option that doesn't
  matter anyway
  But do we need it somehow also per StringResourceLoader what to do with
 it?

 I think it would be quite expensive generally not to cache if the
 content is from the DB. It seems to me that if you allow content editing
 of your keys you can easily manually create a link to clear the
 localizer cache on demand on the production server. If you really want
 dynamic content I don't really know if the message mechanism is the
 right way to go?

 Regards,
 Sebastiaan

 
  On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
  Hi,
 
  I was wondering if I could somehow turn off caching of the localizer in
  development mode (from the current source it doesn't look like it).
 
  The reason I ask is because now the cache is only flushed if a resource
  that is being watched is changed. However:
 
  * if you add a new properties file for a page or component after you
  already rendered the page once the cache is not cleared and it keeps
  finding the key=null entry in the cache.
 
  * if you add your own database string resource loader, the cache is
  never flushed at all.
 
  I know I can add a link to flush the localizer cache if and only if
  we're in development mode, but I think a Settings options could be nice
  to just turn off caching (my laptop is fast enough, I really don't care
  if it tries to resolve all the labels all the time).
 
  Regards,
  Sebastiaan
 
 
 




Re: empty wicket:message

2007-11-05 Thread Johan Compagner
On 11/5/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

 BTW,

 I just wanted to say how much I love Wicket!


As long as you don't give all your Love to Wicket,
you have to keep some for Morena! (and her beautiful wicket site
http://www.denherdervarga.com/ )

johan


Re: empty wicket:message

2007-11-05 Thread Sebastiaan van Erk

Johan Compagner wrote:

On 11/5/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

BTW,

I just wanted to say how much I love Wicket!



As long as you don't give all your Love to Wicket,
you have to keep some for Morena! (and her beautiful wicket site
http://www.denherdervarga.com/ )


Don't worry about that, I'll be sure to keep some in reserve. :) Haven't 
had any complaints so far. ;-)


You kinda caught me unprepared by the posting the site. ;-) But since 
it's out there now, comments and suggestions are welcome.


johan 


Sebastiaan


smime.p7s
Description: S/MIME Cryptographic Signature


Dojo tooltip disappears on click

2007-11-05 Thread Marieke Vandamme

Hello, 

When clicking the span with the widgetId on it, the tooltip disappears.. I
don't know if this is common behavior, but i want to get ride of it. Do i
need to do something extra on the onclick? 

Thanks for the replies !
-- 
View this message in context: 
http://www.nabble.com/Dojo-tooltip-disappears-on-click-tf4750509.html#a13583809
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-contrib-datepicker

2007-11-05 Thread Juha Alatalo

Silence means that you don't care?

Juha Alatalo wrote:

Hi,

could it be possible to fix old DatePicker in 1.2 and 1.X? At least 
Scandinavian letters like ä and ö is replaced with rubbish like ö or ?. 
I can sen fixed Finnish and Swedish versions but I also need languages 
like Polish. This problem was fixed year ago but now it occurs again.


- Juha

-
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: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Bruno Borges
How would be the Java classes, if multiple wicket:child were supported?!
wicket:extend and wicket:child were build under the base concept of OOP's
inheritance.

looks weird to me. :D

On Nov 4, 2007 9:29 PM, Johan Compagner [EMAIL PROTECTED] wrote:

 
  The only requirement would be that if you do choose to support multiple
  abstract/overridden sections you would need to provide identifiers (just
  like an abstract method has a name) so that the 'compiler' (wicket)
  knows which section in a superclass an extended class section is
  overriding. In pages where only one section is overridden no identifiers
  would be necessary and so existing markup works without change, the way
  it does now.


 isn't this section exactly what igor said in his post?

 make 1 page
 that has 2 identifiers (that are 2 divs like
 div wicket:id=method1/div
 div wicket:id=method2/div

 and the class had
 abstract class MyBasePage
 {
  MyBasePage()
  {
   add(method1());
   add(method2());
  }
  abstract Panel method1()
  abstract Panel method2()
 }

 as far as i know you have pretty much exactly what you describe.

 johan




-- 
Bruno Borges
blog.brunoborges.com.br
+55 1185657739

The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld


Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Johan Compagner
yes i agree,
i dont think we will change the extend-child 1 on 1 relationship. (thats
just design by inheritance)
what some others want is just do it by composition and that is perfectly
possible by using panels.
And you can mix the 2 just fine.


So

Base.java/Base.html - extend - Sub.java/Sub.html
Base.java/Base.html - composition - Sub.java with Panel1.java/Panel1.html
and Panel2.java/Panel2.html
 Base.java/Base.html - extend and composition - Sub.java/Sub.html with
Panel1.java/Panel1.html and Panel2.java/Panel2.html

So i am curious what people really think is missing.
Don't they want the Panel1.java/Panel1.html form composition? But wicket
also have something for that thats called Fragments so:

 Base.java/Base.html - composition - Sub.java with Fragment1 and Fragment2

johan








On 11/5/07, Bruno Borges [EMAIL PROTECTED] wrote:

 How would be the Java classes, if multiple wicket:child were supported?!
 wicket:extend and wicket:child were build under the base concept of OOP's
 inheritance.

 looks weird to me. :D

 On Nov 4, 2007 9:29 PM, Johan Compagner [EMAIL PROTECTED] wrote:

  
   The only requirement would be that if you do choose to support
 multiple
   abstract/overridden sections you would need to provide identifiers
 (just
   like an abstract method has a name) so that the 'compiler' (wicket)
   knows which section in a superclass an extended class section is
   overriding. In pages where only one section is overridden no
 identifiers
   would be necessary and so existing markup works without change, the
 way
   it does now.
 
 
  isn't this section exactly what igor said in his post?
 
  make 1 page
  that has 2 identifiers (that are 2 divs like
  div wicket:id=method1/div
  div wicket:id=method2/div
 
  and the class had
  abstract class MyBasePage
  {
   MyBasePage()
   {
add(method1());
add(method2());
   }
   abstract Panel method1()
   abstract Panel method2()
  }
 
  as far as i know you have pretty much exactly what you describe.
 
  johan
 



 --
 Bruno Borges
 blog.brunoborges.com.br
 +55 1185657739

 The glory of great men should always be
 measured by the means they have used to
 acquire it.
 - Francois de La Rochefoucauld



Browser capabilities

2007-11-05 Thread Uwe Schäfer

hi

i need a quick hint. is there a way to detect the browser capabilities 
other than from getRequestCycle().getClientInfo() ?


what i look for is, if the client has JavaScript enabled and if he is 
AJAX-ready.


thanks, uwe

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



Re: Browser capabilities

2007-11-05 Thread Johan Compagner
what the problem with getclientinfo then?

those things must really be asked upfront by a seperate request.

johan



On 11/5/07, Uwe Schäfer [EMAIL PROTECTED] wrote:

 hi

 i need a quick hint. is there a way to detect the browser capabilities
 other than from getRequestCycle().getClientInfo() ?

 what i look for is, if the client has JavaScript enabled and if he is
 AJAX-ready.

 thanks, uwe

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




Problem with selecting default value with DropDownChoice

2007-11-05 Thread James Perry
I have a problem with the DropDownChoice. More specifically, I have a
Product class which is like:

public class Product implements Serializable {

private static final long serialVersionUID = 1L;

private Manufacturer manufacturer;
//other states

//getters and setters

}

I have a form which allows to edit a product, which allows to change the
manufacturer object with a DropDownChoice. However, an Xbox product for
instance, it should display its Microsoft manufacturer object as selected
but it selects 'Choose One' instead. Also, the setRequired for the
DropDownChoice does not work as it allows users to select 'Choose One'. I
notice it works with primitive types but not with my compositional objects.

Here is my EditProductPage:

package net.sourceforge.springcart.wicket.pages.admin;

public class EditProductPage extends AdminPage {

private static final long serialVersionUID = 1L;

@SpringBean(name = adminService)
private AdminService adminService;

public EditProductPage() {
this(new Product());
}

public EditProductPage(Product product) {
MenuBorder border = new MenuBorder(libBorder);
border.add(new EditProductForm(productForm, product));
add(border);
}

private final class EditProductForm extends Form {

public EditProductForm(String id, Product product) {
super(id, new CompoundPropertyModel(product));
add(new RequiredTextField(name));
add(new RequiredTextArea(description));
add(new RequiredTextField(sellValue, BigDecimal.class));
add(new RequiredTextField(units, Long.class));
add(new CheckBox(onSell).setRequired(true));
add(new DropDownChoice(category, catalogService.getCategories
())
.setRequired(true));
add(new DropDownChoice(manufacturer, catalogService
.getManufacturers()).setRequired(true));
}

@Override
protected void onSubmit() {
Product product = (Product) getModelObject();
product.setEntryDate(new Timestamp(System.currentTimeMillis()));
adminService.updateProduct(product);
setResponsePage(ViewProductsPage.class);
}

}

}

Any advice please?

Cheers,
James.


[SOLVED] Re: Get Page expired after closing javascript opened window (containing a wicket page)

2007-11-05 Thread pixotec

thank you igor, you saved my project!
after using a link with popupsettings instead using a homebrewed
resquestcycle.urlFor-url it works.
(a speaking exception would have helped...)

thank you


igor.vaynberg wrote:
 
 make sure you are opening your popup in a different pagemap
 
 -igor
 
 
 On 11/2/07, pixotec [EMAIL PROTECTED] wrote:

 I'm developing a CMS in wicket and have a selfmade wysiwyg textarea in
 the
 page.
 when clicking on insert image an image dialog is opened in a new
 window.
 the dialog is a wicket page.
 I provide the url for the dialog in the textarea page by this
 (shortened):

 CharSequence charSequence = RequestCycle.get().urlFor(new
 DialogImagePage(settings));
 js.append(var dialogImageUrl=' + charSequence.toString() + ';\n);
 add(new StringHeaderContributor(js.toString()));

 the source code of the calling page is then:

 ?xml version='1.0' encoding='UTF-8'?

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
   head
   ...
   script type=text/javascript
 !--/*--![CDATA[/*!--*/
 var dialogImageUrl='/kms/app/?wicket:interface=:16::';
 /*--]]*/
   /script
   ...
   script type=text/javascript
   !--
 function openImageDialog() {
   var dialog = window.open(dialogImageUrl, Image,
 status=no,modal=yes,width=700,height=550);
 }
   --
   ...
   script type=text/javascript 
 !--/*--![CDATA[/*!--*/
 if (window.name=='') {
 window.location=/kms/app/?wicket:interface=:14::INewBrowserWindowListener;
 }
 /*--]]*/
   /script
   ...
 /head

 body
 ...
 tdlt;img width=25 height=24 title=Insert image
 wicket:id=btnImage
 onclick=openImageDialog(); onmouseup=drawButtonDown(this);
 src=/kms/app/resources/wicket.extensions.markup.html.form.wysiwyg.WysiwygTextarea/res/btnImage_up.gif
 border=0 alt=Insert image id=btnImage/gt;/td
 ...
 /body
 /html


 after closing the dialog window (using javascript's window.close() or a
 PopupCloseLink) the dialog window is closed.


 When I click then on save in the calling page containing the textarea I
 always get a Page expired.
 Why?

 (even doing a getPageSettings().setAutomaticMultiWindowSupport(true); in
 my
 application did not help...)
 --
 View this message in context:
 http://www.nabble.com/Get-Page-expired-after-closing-javascript-opened-window-%28containing-a-wicket-page%29-tf4737168.html#a13546851
 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/Get-Page-expired-after-closing-javascript-opened-window-%28containing-a-wicket-page%29-tf4737168.html#a13586488
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-contrib-datepicker

2007-11-05 Thread Bruno Borges
Post an issue at JIRA and submit your patch. This helps a lot :)

cheers!

On Nov 5, 2007 9:16 AM, Juha Alatalo [EMAIL PROTECTED] wrote:

 Silence means that you don't care?

 Juha Alatalo wrote:
  Hi,
 
  could it be possible to fix old DatePicker in 1.2 and 1.X? At least
  Scandinavian letters like ä and ö is replaced with rubbish like ö or ?.
  I can sen fixed Finnish and Swedish versions but I also need languages
  like Polish. This problem was fixed year ago but now it occurs again.
 
  - Juha
 
  -
  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]




-- 
Bruno Borges
blog.brunoborges.com.br
+55 1185657739

The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld


Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Bruno Borges
Stefan, try first giving us an example of what would you like to do. What I
can see is that you want this:

BasePage.html
html
  body
h1BasePage/h1
hr/
h3This is my child:/h3
wicket:child /
hr/
h3This is my OTHER child:/h3
wicket:child /
  /body
/html

** Example of a child page:*
ChildPage.html
html
  body
wicket:extend
  h4ChildPage/h4
  h5I'm your child/h5
/wicket:extend
  /body
/html

Now, given this html, how do you see the Java code structured? What's your
vision?

On Nov 5, 2007 11:28 AM, Stefan Fußenegger [EMAIL PROTECTED]
wrote:



 Eelco Hillenius wrote:
 
  It would be quite feasible to add support for multiple overridden
  sections using the above tag names while remaining backwards compatible
  with existing markup by continuing to support the old child/extends
  tags working the way they always have.
 
  It's kind of a predictable answer, but the best way to push new ideas
  forward is to supply us with a patch, so that we can discuss some
  working code. The current committers don't see much in the idea, but
  that doesn't mean they wouldn't want to support at least the option of
  plugging this in. And hey, maybe some working code convinces us :-)
 
  Eelco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 Hi eelco,

 I'd love to do a proof of concept here. Admittedly, I don't know wicket's
 inner workings very well. But if I get some support, I'd try implementing
 this. I am currently looking through the code, but can't find where the
 transition between parent and child takes place (in other words: the line
 of
 code that recognizes the wicket:extend tag and takes the appropriate
 action). If somebody could point me to that line I would try to implement
 this possible new feature ... well, I'll first estimate the time necessary
 to do so and see if I can afford it ;)

 Regards



 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 --
 View this message in context:
 http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13586814
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




-- 
Bruno Borges
blog.brunoborges.com.br
+55 1185657739

The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld


I want to implements wicket portlet on liferay

2007-11-05 Thread Arkom Rattanasiri

But I can't get any demo,documents from google :p
please help me, thank you.

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



Wicket portlet newbie questions

2007-11-05 Thread justment

I want to implements wicket portlet on liferay
but I can't get any demo,documents from google :p
Thanks in advance for any pointers and explanations

thank you.
-- 
View this message in context: 
http://www.nabble.com/Wicket-portlet-newbie-questions-tf4751819.html#a13587441
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Add Meta-Information to wicket-page

2007-11-05 Thread BatiB80

Hi,

does anybody knows how I can add MetaDataInformation like 

meta name=Keywords content=...

to a Wicket-Page. I want to set the values dynamically by the Java-Classes
so I wont hardcode the values in the .html-template!

Thanks in advance - regards,
Sebastian
-- 
View this message in context: 
http://www.nabble.com/Add-Meta-Information-to-wicket-page-tf4751820.html#a13587442
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: Problem with selecting default value with DropDownChoice

2007-11-05 Thread Dmitry Kandalov
On Monday 05 November 2007 16:39:02 James Perry wrote:
 I have a problem with the DropDownChoice. More specifically, I have a
 Product class which is like:

 public class Product implements Serializable {

 private static final long serialVersionUID = 1L;

 private Manufacturer manufacturer;
 //other states

 //getters and setters

 }

 I have a form which allows to edit a product, which allows to change the
 manufacturer object with a DropDownChoice. However, an Xbox product for
 instance, it should display its Microsoft manufacturer object as selected
 but it selects 'Choose One' instead. 

May be choices and value in the DDC are different java objects and you didn't 
implement equals(), hashCode() in Manufacturer class?

Dima

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



Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Stefan Fußenegger

Well, what I'd like to do is what I explained in my first post. One would
still have a one-one-relationship if it comes to files (Base.html, Base.java
- Sub.html, Sub.java). However, a Base.html might contain more than one
wicket:extend /. So this no longer an exact duplicate of the parent-child
relationship that is already specified by the java class hierarchy. It now
would be similar to abstract method, where the abstract class specifies one
or more extension points that are implemented by its subcasses ... abstract
methods. There isn't a restriction, that there is only one abstract method
per class!

My proof of concept would go the probably easiest way and just link the
first extend with the first child, the second extend with the second child,
the third ... you got the idea ;) At a later point it might be useful to
link them using ids (like the names of abstract methods).

You could than for instance do some hierarchies like this:

BaseClass - Application base class. Navigation on top, two columns with
wicket:extend
SectionOneBaseClass extends BaseClass - Sub-navigation in left column
SectionOneIndex extends SectionOneBaseClass - Navigation on top,
sub-navigation in left column and some fancy content in right column

I totally agree to anybody who argues that this is already possible by other
means. However, to me it seems to be the most natural and elegant way to do
this.

As I mentioned before, I don't know Wicket's inner workings too much, so I
will definitely need some pointers to the right directions.

My naive guess is that Wicket parses BasePage.html and looks for
SecionOneBaseClass.html and the first wicket:child / as soon as it finds a
wicket:extend /. The idea would know be to just add a counter to this
call, asking for the second wicket:child /, rather than the first (I doubt
that it's really going to be that easy though).




Bruno Borges wrote:
 
 Stefan, try first giving us an example of what would you like to do. What
 I
 can see is that you want this:
 
 BasePage.html
 html
   body
 h1BasePage/h1
 hr/
 h3This is my child:/h3
 wicket:child /
 hr/
 h3This is my OTHER child:/h3
 wicket:child /
   /body
 /html
 
 ** Example of a child page:*
 ChildPage.html
 html
   body
 wicket:extend
   h4ChildPage/h4
   h5I'm your child/h5
 /wicket:extend
   /body
 /html
 
 Now, given this html, how do you see the Java code structured? What's your
 vision?
 
 On Nov 5, 2007 11:28 AM, Stefan Fußenegger [EMAIL PROTECTED]
 wrote:
 


 Eelco Hillenius wrote:
 
  It would be quite feasible to add support for multiple overridden
  sections using the above tag names while remaining backwards
 compatible
  with existing markup by continuing to support the old child/extends
  tags working the way they always have.
 
  It's kind of a predictable answer, but the best way to push new ideas
  forward is to supply us with a patch, so that we can discuss some
  working code. The current committers don't see much in the idea, but
  that doesn't mean they wouldn't want to support at least the option of
  plugging this in. And hey, maybe some working code convinces us :-)
 
  Eelco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 Hi eelco,

 I'd love to do a proof of concept here. Admittedly, I don't know wicket's
 inner workings very well. But if I get some support, I'd try implementing
 this. I am currently looking through the code, but can't find where the
 transition between parent and child takes place (in other words: the line
 of
 code that recognizes the wicket:extend tag and takes the appropriate
 action). If somebody could point me to that line I would try to implement
 this possible new feature ... well, I'll first estimate the time
 necessary
 to do so and see if I can afford it ;)

 Regards



 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 --
 View this message in context:
 http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13586814
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 
 -- 
 Bruno Borges
 blog.brunoborges.com.br
 +55 1185657739
 
 The glory of great men should always be
 measured by the means they have used to
 acquire it.
 - Francois de La Rochefoucauld
 
 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13587701
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To 

Re: Howto center new window on screen?

2007-11-05 Thread Newgro

Hi *,

Sorry for reopening this.  I did all you suggested.


 Then in your page or panels or other components:
 add(HeaderContributor.forJavascript(JavaScript.CENTER_WINDOW));
 

But how can i execute the javascript in that resource? I tried a
AttributeModifier, but couldn't center the window.

Can someone push me to the right direction (maybe an example)
Thanks
Per
-- 
View this message in context: 
http://www.nabble.com/Howto-center-new-window-on-screen--tf4520337.html#a13587788
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: Add Meta-Information to wicket-page

2007-11-05 Thread Michael Sparer


BatiB80 wrote:
 
 Hi,
 
 does anybody knows how I can add MetaDataInformation like 
 
 meta name=Keywords content=...
 
 to a Wicket-Page. I want to set the values dynamically by the Java-Classes
 so I wont hardcode the values in the .html-template!
 
 Thanks in advance - regards,
 Sebastian
 

Could
http://www.wicketstuff.org/wicket13doc/org/apache/wicket/behavior/StringHeaderContributor.html
solve your problem with something like
add(new StringHeaderContributor(meta ..));
or am I missing the point?



-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Add-Meta-Information-to-wicket-page-tf4751820.html#a13587791
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: Problem with selecting default value with DropDownChoice

2007-11-05 Thread Frank Bille
Provide a ChoiceRenderer to the DropDownChoice constructor. It's in the ID
part of it.

Frank

On 11/5/07, James Perry [EMAIL PROTECTED] wrote:

 I have a problem with the DropDownChoice. More specifically, I have a
 Product class which is like:

 public class Product implements Serializable {

 private static final long serialVersionUID = 1L;

 private Manufacturer manufacturer;
 //other states

 //getters and setters

 }

 I have a form which allows to edit a product, which allows to change the
 manufacturer object with a DropDownChoice. However, an Xbox product for
 instance, it should display its Microsoft manufacturer object as selected
 but it selects 'Choose One' instead. Also, the setRequired for the
 DropDownChoice does not work as it allows users to select 'Choose One'. I
 notice it works with primitive types but not with my compositional
 objects.

 Here is my EditProductPage:

 package net.sourceforge.springcart.wicket.pages.admin;

 public class EditProductPage extends AdminPage {

 private static final long serialVersionUID = 1L;

 @SpringBean(name = adminService)
 private AdminService adminService;

 public EditProductPage() {
 this(new Product());
 }

 public EditProductPage(Product product) {
 MenuBorder border = new MenuBorder(libBorder);
 border.add(new EditProductForm(productForm, product));
 add(border);
 }

 private final class EditProductForm extends Form {

 public EditProductForm(String id, Product product) {
 super(id, new CompoundPropertyModel(product));
 add(new RequiredTextField(name));
 add(new RequiredTextArea(description));
 add(new RequiredTextField(sellValue, BigDecimal.class));
 add(new RequiredTextField(units, Long.class));
 add(new CheckBox(onSell).setRequired(true));
 add(new DropDownChoice(category,
 catalogService.getCategories
 ())
 .setRequired(true));
 add(new DropDownChoice(manufacturer, catalogService
 .getManufacturers()).setRequired(true));
 }

 @Override
 protected void onSubmit() {
 Product product = (Product) getModelObject();
 product.setEntryDate(new Timestamp(System.currentTimeMillis
 ()));
 adminService.updateProduct(product);
 setResponsePage(ViewProductsPage.class);
 }

 }

 }

 Any advice please?

 Cheers,
 James.



Re: Link text

2007-11-05 Thread Gwyn Evans
Monday, November 5, 2007, 12:16:50 PM, Sam wrote:

SH Lots of the time I just want a link with text as the body of the
SH ... ... The Link class takes an IModel so presumably uses that for
SH something but I can't see it in the source or get it to appear...

It's typically just used so the model object's available if you want
to pass arguments to the destination - see the javadoc.

For what I think you're after, you'd need to have something like

a wicket:id=link href=#span wicket:id=linkTitleLink/span/a

then do

   Link link = new Link(link) {
   public void onClick() {
   // ToDo: Implement this!
   }
   };
   Label label = new Label(linkTitle); // or new Label(linkTitle, model);
   link.add(label);
   add(link);

or similar, e.g.

add(
new Link(link) {
public void onClick() {
// ToDo: Implement this!
}
}.add(new Label(linkTitle)));

if you prefer!
-- 
/Gwyn


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



gmap2 and permissions

2007-11-05 Thread Jan Stette
I've just started playing with wicket-contrib-gmap2 but I'm having a bit of
a problem:

When I try to create a simple map inside my Wicket application, I get an
exception in Firefox saying:
  uncaught exception: Permission denied to call method XMLHttpRequest.open

I've had a look at issues surrounding security restrictions in Javascript
and I understand that Firefox will block XMLHttpRequests to hosts other than
where the page came from.  I've also seen a few workarounds such as running
proxies for the XML-HTTP requests.  Does gmap2 deal with these issues in any
way?  I suspect I'm missing something, as when I run the gmap2 examples in a
local Tomcat, everything works fine...

One additional question: after I get the above JavaScript exception, the
other AJAX controls on the same page seem to stop working as well - is this
something that Wicket ought to be handling better?  (I'm running
Wicket 1.3beta 4, with the head version of gmap2 built against this).

Regards,
Jan


Re: Link text

2007-11-05 Thread Al Maw

Sam Hough wrote:

Lots of the time I just want a link with text as the body of the  ... ...

The Link class takes an IModel so presumably uses that for something but I
can't see it in the source or get it to appear...

Sorry I'm being thick and I did search honest!


You'd typically use the model so you have something to get at in the 
onClick().


Of course, if you don't care about how much state is in your session, 
you can just make whatever it is final so you can use it in there anyway.


If you want to use the model for the text of the link instead, then you 
could write a class like this:



public abstract class TextLink extends Link {
public TextLink(String id, IModel model) {
super(id, model);
}

protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
replaceComponentTagBody(
markupStream, openTag, getModelObjectAsString()
);
}

}


If you want enabled/disabled to work properly, you'll need to copy the 
relevant bits out of AbstractLink#onComponentTagBody(...)



Regards,

Al

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



Mystery problem w/ Wicket + Glassfish v2?

2007-11-05 Thread V. Jenks

Occasionally, my application will just start doing this - throwing this
error.  I am using Wicket 1.2.4 because my application is stuck at that
version for the time being.  I do not have the time to make the changes to
upgrade to the latest version, right now.  

Rebooting the app server (Glassfish v2) usually fixes it but when it does
happen, it prevents orders from going through and frustrates customers.  Not
a good thing...

I have no idea what causes this and don't know the internals of Glassfish to
even begin to try and troubleshoot.  All I know for sure is; this NEVER
happened on JBoss 4.0.x with Wicket.  I figured it was safe to assume this
had nothing to do with my code - nowhere in the stack does it point to
anything in my application (or any application running on it, for that
matter.)

I realize this is vague so hopefully someone else is experiencing this and
can help troubleshoot.

Here's the error:

***

156) at wicket.Resource.onResourceRequested(Resource.java:119) at
wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:192)
at
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902) at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934) at
wicket.RequestCycle.step(RequestCycle.java:1010) at
wicket.RequestCycle.steps(RequestCycle.java:1084) at
wicket.RequestCycle.request(RequestCycle.java:454) at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:718) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270) at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
at
com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:361)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

***

Any help would be appreciated.

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Mystery-problem-w--Wicket-%2B-Glassfish-v2--tf4752337.html#a13589050
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: Problem with selecting default value with DropDownChoice

2007-11-05 Thread Gwyn Evans
Hi James,

While the implementation's not a big deal, and you'll probably want
one, Choose One is the default for when the selected (or
pre-selected) item's not found in the DDC list of values, so I don't
think it's directly that.  I'd be tempted to double-check (either via
logging or via a debugger) that all the data's there as expected
(although an anonymous implementation of a IChoiceRender's as good a
way as any of having somewhere to set a breakpoint!)

/Gwyn

Monday, November 5, 2007, 2:54:09 PM, you wrote:

JP Hello Dima,

JP That was my initial assumption but I already have overrided my
JP equals()/hashCode() methods for Manufacturer's business key in Hibernate
JP and ensured my HQL query retrieves Manufacturer objects. Do I need to add an
JP implementation of IChoiceRendered as an argument to DDC?

JP Thanks,
JP James.

JP On 11/5/07, Dmitry Kandalov [EMAIL PROTECTED] wrote:

 On Monday 05 November 2007 16:39:02 James Perry wrote:
  I have a problem with the DropDownChoice. More specifically, I have a
  Product class which is like:
 
  public class Product implements Serializable {
 
  private static final long serialVersionUID = 1L;
 
  private Manufacturer manufacturer;
  //other states
 
  //getters and setters
 
  }
 
  I have a form which allows to edit a product, which allows to change the
  manufacturer object with a DropDownChoice. However, an Xbox product for
  instance, it should display its Microsoft manufacturer object as
 selected
  but it selects 'Choose One' instead.

 May be choices and value in the DDC are different java objects and you
 didn't
 implement equals(), hashCode() in Manufacturer class?

 Dima



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



Re: Mystery problem w/ Wicket + Glassfish v2?

2007-11-05 Thread Johan Compagner
you miss the most importand part of the error:  the top!


On 11/5/07, V. Jenks [EMAIL PROTECTED] wrote:


 Occasionally, my application will just start doing this - throwing this
 error.  I am using Wicket 1.2.4 because my application is stuck at that
 version for the time being.  I do not have the time to make the changes to
 upgrade to the latest version, right now.

 Rebooting the app server (Glassfish v2) usually fixes it but when it
 does
 happen, it prevents orders from going through and frustrates
 customers.  Not
 a good thing...

 I have no idea what causes this and don't know the internals of Glassfish
 to
 even begin to try and troubleshoot.  All I know for sure is; this NEVER
 happened on JBoss 4.0.x with Wicket.  I figured it was safe to assume this
 had nothing to do with my code - nowhere in the stack does it point to
 anything in my application (or any application running on it, for that
 matter.)

 I realize this is vague so hopefully someone else is experiencing this and
 can help troubleshoot.

 Here's the error:

 ***

 156) at wicket.Resource.onResourceRequested(Resource.java:119) at
 wicket.request.target.resource.SharedResourceRequestTarget.respond(
 SharedResourceRequestTarget.java:192)
 at
 wicket.request.compound.DefaultResponseStrategy.respond(
 DefaultResponseStrategy.java:49)
 at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(
 AbstractCompoundRequestCycleProcessor.java:66)
 at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902) at
 wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934) at
 wicket.RequestCycle.step(RequestCycle.java:1010) at
 wicket.RequestCycle.steps(RequestCycle.java:1084) at
 wicket.RequestCycle.request(RequestCycle.java:454) at
 wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:718) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at
 org.apache.catalina.core.ApplicationFilterChain.servletService(
 ApplicationFilterChain.java:411)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(
 StandardWrapperValve.java:290)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(
 StandardContextValve.java:271)
 at
 org.apache.catalina.core.StandardContextValve.invoke(
 StandardContextValve.java:202)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
 :632)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
 :577)
 at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
 :206)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
 :632)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
 :577)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :571)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(
 StandardEngineValve.java:150)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
 :632)
 at
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java
 :577)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
 :571)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
 at
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270) at

 com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
 (DefaultProcessorTask.java:637)
 at
 com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(
 DefaultProcessorTask.java:568)
 at
 com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(
 DefaultProcessorTask.java:813)
 at

 com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
 (DefaultReadTask.java:339)
 at
 com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
 DefaultReadTask.java:261)
 at
 com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
 DefaultReadTask.java:212)
 at
 com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(
 PortUnificationPipeline.java:361)
 at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java
 :265)
 at
 com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(
 SSLWorkerThread.java:106)

 ***

 Any help would be appreciated.

 Thanks!
 --
 View this message in context:
 http://www.nabble.com/Mystery-problem-w--Wicket-%2B-Glassfish-v2--tf4752337.html#a13589050
 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-contrib-datepicker

2007-11-05 Thread Igor Vaynberg
silence means that we are too busy getting rc1 out. mailing list is
for discussions, not bug reports - that is what jira is for.

-igor


On 11/5/07, Juha Alatalo [EMAIL PROTECTED] wrote:
 Silence means that you don't care?

 Juha Alatalo wrote:
  Hi,
 
  could it be possible to fix old DatePicker in 1.2 and 1.X? At least
  Scandinavian letters like ä and ö is replaced with rubbish like ö or ?.
  I can sen fixed Finnish and Swedish versions but I also need languages
  like Polish. This problem was fixed year ago but now it occurs again.
 
  - Juha
 
  -
  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: Add Meta-Information to wicket-page

2007-11-05 Thread BatiB80

Yupp... - That's it!!!

Thanks! :-)

-- 
View this message in context: 
http://www.nabble.com/Add-Meta-Information-to-wicket-page-tf4751820.html#a13589318
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: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Igor Vaynberg
this is done in MarkupCache i believe. when you load a markup file
that has wicket:extend it traverses up the hierarchy and merges all
the markup.

-igor


On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:


 Eelco Hillenius wrote:
 
  It would be quite feasible to add support for multiple overridden
  sections using the above tag names while remaining backwards compatible
  with existing markup by continuing to support the old child/extends
  tags working the way they always have.
 
  It's kind of a predictable answer, but the best way to push new ideas
  forward is to supply us with a patch, so that we can discuss some
  working code. The current committers don't see much in the idea, but
  that doesn't mean they wouldn't want to support at least the option of
  plugging this in. And hey, maybe some working code convinces us :-)
 
  Eelco
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 Hi eelco,

 I'd love to do a proof of concept here. Admittedly, I don't know wicket's
 inner workings very well. But if I get some support, I'd try implementing
 this. I am currently looking through the code, but can't find where the
 transition between parent and child takes place (in other words: the line of
 code that recognizes the wicket:extend tag and takes the appropriate
 action). If somebody could point me to that line I would try to implement
 this possible new feature ... well, I'll first estimate the time necessary
 to do so and see if I can afford it ;)

 Regards



 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 --
 View this message in context: 
 http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13586814
 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: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Igor Vaynberg
if i were you i would use tags other then extend and child just so you
dont conflict.

-igor


On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:

 Well, what I'd like to do is what I explained in my first post. One would
 still have a one-one-relationship if it comes to files (Base.html, Base.java
 - Sub.html, Sub.java). However, a Base.html might contain more than one
 wicket:extend /. So this no longer an exact duplicate of the parent-child
 relationship that is already specified by the java class hierarchy. It now
 would be similar to abstract method, where the abstract class specifies one
 or more extension points that are implemented by its subcasses ... abstract
 methods. There isn't a restriction, that there is only one abstract method
 per class!

 My proof of concept would go the probably easiest way and just link the
 first extend with the first child, the second extend with the second child,
 the third ... you got the idea ;) At a later point it might be useful to
 link them using ids (like the names of abstract methods).

 You could than for instance do some hierarchies like this:

 BaseClass - Application base class. Navigation on top, two columns with
 wicket:extend
 SectionOneBaseClass extends BaseClass - Sub-navigation in left column
 SectionOneIndex extends SectionOneBaseClass - Navigation on top,
 sub-navigation in left column and some fancy content in right column

 I totally agree to anybody who argues that this is already possible by other
 means. However, to me it seems to be the most natural and elegant way to do
 this.

 As I mentioned before, I don't know Wicket's inner workings too much, so I
 will definitely need some pointers to the right directions.

 My naive guess is that Wicket parses BasePage.html and looks for
 SecionOneBaseClass.html and the first wicket:child / as soon as it finds a
 wicket:extend /. The idea would know be to just add a counter to this
 call, asking for the second wicket:child /, rather than the first (I doubt
 that it's really going to be that easy though).




 Bruno Borges wrote:
 
  Stefan, try first giving us an example of what would you like to do. What
  I
  can see is that you want this:
 
  BasePage.html
  html
body
  h1BasePage/h1
  hr/
  h3This is my child:/h3
  wicket:child /
  hr/
  h3This is my OTHER child:/h3
  wicket:child /
/body
  /html
 
  ** Example of a child page:*
  ChildPage.html
  html
body
  wicket:extend
h4ChildPage/h4
h5I'm your child/h5
  /wicket:extend
/body
  /html
 
  Now, given this html, how do you see the Java code structured? What's your
  vision?
 
  On Nov 5, 2007 11:28 AM, Stefan Fußenegger [EMAIL PROTECTED]
  wrote:
 
 
 
  Eelco Hillenius wrote:
  
   It would be quite feasible to add support for multiple overridden
   sections using the above tag names while remaining backwards
  compatible
   with existing markup by continuing to support the old child/extends
   tags working the way they always have.
  
   It's kind of a predictable answer, but the best way to push new ideas
   forward is to supply us with a patch, so that we can discuss some
   working code. The current committers don't see much in the idea, but
   that doesn't mean they wouldn't want to support at least the option of
   plugging this in. And hey, maybe some working code convinces us :-)
  
   Eelco
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  Hi eelco,
 
  I'd love to do a proof of concept here. Admittedly, I don't know wicket's
  inner workings very well. But if I get some support, I'd try implementing
  this. I am currently looking through the code, but can't find where the
  transition between parent and child takes place (in other words: the line
  of
  code that recognizes the wicket:extend tag and takes the appropriate
  action). If somebody could point me to that line I would try to implement
  this possible new feature ... well, I'll first estimate the time
  necessary
  to do so and see if I can afford it ;)
 
  Regards
 
 
 
  -
  ---
  Stefan Fußenegger
  http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
  --
  View this message in context:
  http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13586814
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Bruno Borges
  blog.brunoborges.com.br
  +55 1185657739
 
  The glory of great men should always be
  measured by the means they have used to
  acquire it.
  - Francois de La Rochefoucauld
 
 


 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 --
 

Re: Problem with selecting default value with DropDownChoice

2007-11-05 Thread Dmitry Kandalov
On Monday 05 November 2007 18:55:07 James Perry wrote:
 Also what about wrapping the List in a PropertyModel; would that help?

 On 11/5/07, James Perry [EMAIL PROTECTED] wrote:
  Hello Dima,
 
  That was my initial assumption but I already have overrided my
  equals()/hashCode() methods for Manufacturer's business key in
  Hibernate and ensured my HQL query retrieves Manufacturer objects. Do I
  need to add an implementation of IChoiceRendered as an argument to DDC?
 
  Thanks,
  James.

I think wrapping list in PropertyModel won't help. You can add IChoiceRendered 
but it should work without it.

If you have wicket sources you can put breakpoint at 
AbstractSingleSelectChoice#getModelValue and see if object is really in the 
choices list.

Dima

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



Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Stefan Fußenegger

thanks for that advise.

hey chris, keep your fingers crossed. finally you could get your
wicket:abstract-wicket:override ;)

stefan



igor.vaynberg wrote:
 
 if i were you i would use tags other then extend and child just so you
 dont conflict.
 
 -igor
 
 
 On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:

 Well, what I'd like to do is what I explained in my first post. One would
 still have a one-one-relationship if it comes to files (Base.html,
 Base.java
 - Sub.html, Sub.java). However, a Base.html might contain more than one
 wicket:extend /. So this no longer an exact duplicate of the
 parent-child
 relationship that is already specified by the java class hierarchy. It
 now
 would be similar to abstract method, where the abstract class specifies
 one
 or more extension points that are implemented by its subcasses ...
 abstract
 methods. There isn't a restriction, that there is only one abstract
 method
 per class!

 My proof of concept would go the probably easiest way and just link the
 first extend with the first child, the second extend with the second
 child,
 the third ... you got the idea ;) At a later point it might be useful to
 link them using ids (like the names of abstract methods).

 You could than for instance do some hierarchies like this:

 BaseClass - Application base class. Navigation on top, two columns with
 wicket:extend
 SectionOneBaseClass extends BaseClass - Sub-navigation in left column
 SectionOneIndex extends SectionOneBaseClass - Navigation on top,
 sub-navigation in left column and some fancy content in right column

 I totally agree to anybody who argues that this is already possible by
 other
 means. However, to me it seems to be the most natural and elegant way to
 do
 this.

 As I mentioned before, I don't know Wicket's inner workings too much, so
 I
 will definitely need some pointers to the right directions.

 My naive guess is that Wicket parses BasePage.html and looks for
 SecionOneBaseClass.html and the first wicket:child / as soon as it
 finds a
 wicket:extend /. The idea would know be to just add a counter to this
 call, asking for the second wicket:child /, rather than the first (I
 doubt
 that it's really going to be that easy though).




 Bruno Borges wrote:
 
  Stefan, try first giving us an example of what would you like to do.
 What
  I
  can see is that you want this:
 
  BasePage.html
  html
body
  h1BasePage/h1
  hr/
  h3This is my child:/h3
  wicket:child /
  hr/
  h3This is my OTHER child:/h3
  wicket:child /
/body
  /html
 
  ** Example of a child page:*
  ChildPage.html
  html
body
  wicket:extend
h4ChildPage/h4
h5I'm your child/h5
  /wicket:extend
/body
  /html
 
  Now, given this html, how do you see the Java code structured? What's
 your
  vision?
 
  On Nov 5, 2007 11:28 AM, Stefan Fußenegger [EMAIL PROTECTED]
  wrote:
 
 
 
  Eelco Hillenius wrote:
  
   It would be quite feasible to add support for multiple overridden
   sections using the above tag names while remaining backwards
  compatible
   with existing markup by continuing to support the old
 child/extends
   tags working the way they always have.
  
   It's kind of a predictable answer, but the best way to push new
 ideas
   forward is to supply us with a patch, so that we can discuss some
   working code. The current committers don't see much in the idea, but
   that doesn't mean they wouldn't want to support at least the option
 of
   plugging this in. And hey, maybe some working code convinces us :-)
  
   Eelco
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  Hi eelco,
 
  I'd love to do a proof of concept here. Admittedly, I don't know
 wicket's
  inner workings very well. But if I get some support, I'd try
 implementing
  this. I am currently looking through the code, but can't find where
 the
  transition between parent and child takes place (in other words: the
 line
  of
  code that recognizes the wicket:extend tag and takes the appropriate
  action). If somebody could point me to that line I would try to
 implement
  this possible new feature ... well, I'll first estimate the time
  necessary
  to do so and see if I can afford it ;)
 
  Regards
 
 
 
  -
  ---
  Stefan Fußenegger
  http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
  --
  View this message in context:
 
 http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13586814
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Bruno Borges
  blog.brunoborges.com.br
  +55 1185657739
 
  The glory of great men should always be
  measured by 

Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Igor Vaynberg
the complement to abstract is implement not override... names are important.

-igor


On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:

 thanks for that advise.

 hey chris, keep your fingers crossed. finally you could get your
 wicket:abstract-wicket:override ;)

 stefan



 igor.vaynberg wrote:
 
  if i were you i would use tags other then extend and child just so you
  dont conflict.
 
  -igor
 
 
  On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:
 
  Well, what I'd like to do is what I explained in my first post. One would
  still have a one-one-relationship if it comes to files (Base.html,
  Base.java
  - Sub.html, Sub.java). However, a Base.html might contain more than one
  wicket:extend /. So this no longer an exact duplicate of the
  parent-child
  relationship that is already specified by the java class hierarchy. It
  now
  would be similar to abstract method, where the abstract class specifies
  one
  or more extension points that are implemented by its subcasses ...
  abstract
  methods. There isn't a restriction, that there is only one abstract
  method
  per class!
 
  My proof of concept would go the probably easiest way and just link the
  first extend with the first child, the second extend with the second
  child,
  the third ... you got the idea ;) At a later point it might be useful to
  link them using ids (like the names of abstract methods).
 
  You could than for instance do some hierarchies like this:
 
  BaseClass - Application base class. Navigation on top, two columns with
  wicket:extend
  SectionOneBaseClass extends BaseClass - Sub-navigation in left column
  SectionOneIndex extends SectionOneBaseClass - Navigation on top,
  sub-navigation in left column and some fancy content in right column
 
  I totally agree to anybody who argues that this is already possible by
  other
  means. However, to me it seems to be the most natural and elegant way to
  do
  this.
 
  As I mentioned before, I don't know Wicket's inner workings too much, so
  I
  will definitely need some pointers to the right directions.
 
  My naive guess is that Wicket parses BasePage.html and looks for
  SecionOneBaseClass.html and the first wicket:child / as soon as it
  finds a
  wicket:extend /. The idea would know be to just add a counter to this
  call, asking for the second wicket:child /, rather than the first (I
  doubt
  that it's really going to be that easy though).
 
 
 
 
  Bruno Borges wrote:
  
   Stefan, try first giving us an example of what would you like to do.
  What
   I
   can see is that you want this:
  
   BasePage.html
   html
 body
   h1BasePage/h1
   hr/
   h3This is my child:/h3
   wicket:child /
   hr/
   h3This is my OTHER child:/h3
   wicket:child /
 /body
   /html
  
   ** Example of a child page:*
   ChildPage.html
   html
 body
   wicket:extend
 h4ChildPage/h4
 h5I'm your child/h5
   /wicket:extend
 /body
   /html
  
   Now, given this html, how do you see the Java code structured? What's
  your
   vision?
  
   On Nov 5, 2007 11:28 AM, Stefan Fußenegger [EMAIL PROTECTED]
   wrote:
  
  
  
   Eelco Hillenius wrote:
   
It would be quite feasible to add support for multiple overridden
sections using the above tag names while remaining backwards
   compatible
with existing markup by continuing to support the old
  child/extends
tags working the way they always have.
   
It's kind of a predictable answer, but the best way to push new
  ideas
forward is to supply us with a patch, so that we can discuss some
working code. The current committers don't see much in the idea, but
that doesn't mean they wouldn't want to support at least the option
  of
plugging this in. And hey, maybe some working code convinces us :-)
   
Eelco
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
  
   Hi eelco,
  
   I'd love to do a proof of concept here. Admittedly, I don't know
  wicket's
   inner workings very well. But if I get some support, I'd try
  implementing
   this. I am currently looking through the code, but can't find where
  the
   transition between parent and child takes place (in other words: the
  line
   of
   code that recognizes the wicket:extend tag and takes the appropriate
   action). If somebody could point me to that line I would try to
  implement
   this possible new feature ... well, I'll first estimate the time
   necessary
   to do so and see if I can afford it ;)
  
   Regards
  
  
  
   -
   ---
   Stefan Fußenegger
   http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
   --
   View this message in context:
  
  http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13586814
   Sent from the Wicket - User mailing list archive at Nabble.com.
  

Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Stefan Fußenegger

well, i thought chris' suggestion to use abstract and override in order to
align it with the java keyword/annotation. I don't care whether it is
implement or override (but yes, names are important). i think i'll go for
implement though ... but if it finally becomes part of wicket, it will
become extend/child anyway, wouldn't it? but let's see what i can do here
first.



igor.vaynberg wrote:
 
 the complement to abstract is implement not override... names are
 important.
 
 -igor
 
 
 On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:

 thanks for that advise.

 hey chris, keep your fingers crossed. finally you could get your
 wicket:abstract-wicket:override ;)

 stefan



 igor.vaynberg wrote:
 
  if i were you i would use tags other then extend and child just so you
  dont conflict.
 
  -igor
 
 
  On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:
 
  Well, what I'd like to do is what I explained in my first post. One
 would
  still have a one-one-relationship if it comes to files (Base.html,
  Base.java
  - Sub.html, Sub.java). However, a Base.html might contain more than
 one
  wicket:extend /. So this no longer an exact duplicate of the
  parent-child
  relationship that is already specified by the java class hierarchy. It
  now
  would be similar to abstract method, where the abstract class
 specifies
  one
  or more extension points that are implemented by its subcasses ...
  abstract
  methods. There isn't a restriction, that there is only one abstract
  method
  per class!
 
  My proof of concept would go the probably easiest way and just link
 the
  first extend with the first child, the second extend with the second
  child,
  the third ... you got the idea ;) At a later point it might be useful
 to
  link them using ids (like the names of abstract methods).
 
  You could than for instance do some hierarchies like this:
 
  BaseClass - Application base class. Navigation on top, two columns
 with
  wicket:extend
  SectionOneBaseClass extends BaseClass - Sub-navigation in left column
  SectionOneIndex extends SectionOneBaseClass - Navigation on top,
  sub-navigation in left column and some fancy content in right column
 
  I totally agree to anybody who argues that this is already possible by
  other
  means. However, to me it seems to be the most natural and elegant way
 to
  do
  this.
 
  As I mentioned before, I don't know Wicket's inner workings too much,
 so
  I
  will definitely need some pointers to the right directions.
 
  My naive guess is that Wicket parses BasePage.html and looks for
  SecionOneBaseClass.html and the first wicket:child / as soon as it
  finds a
  wicket:extend /. The idea would know be to just add a counter to
 this
  call, asking for the second wicket:child /, rather than the first (I
  doubt
  that it's really going to be that easy though).
 
 
 
 
  Bruno Borges wrote:
  
   Stefan, try first giving us an example of what would you like to do.
  What
   I
   can see is that you want this:
  
   BasePage.html
   html
 body
   h1BasePage/h1
   hr/
   h3This is my child:/h3
   wicket:child /
   hr/
   h3This is my OTHER child:/h3
   wicket:child /
 /body
   /html
  
   ** Example of a child page:*
   ChildPage.html
   html
 body
   wicket:extend
 h4ChildPage/h4
 h5I'm your child/h5
   /wicket:extend
 /body
   /html
  
   Now, given this html, how do you see the Java code structured?
 What's
  your
   vision?
  
   On Nov 5, 2007 11:28 AM, Stefan Fußenegger
 [EMAIL PROTECTED]
   wrote:
  
  
  
   Eelco Hillenius wrote:
   
It would be quite feasible to add support for multiple
 overridden
sections using the above tag names while remaining backwards
   compatible
with existing markup by continuing to support the old
  child/extends
tags working the way they always have.
   
It's kind of a predictable answer, but the best way to push new
  ideas
forward is to supply us with a patch, so that we can discuss some
working code. The current committers don't see much in the idea,
 but
that doesn't mean they wouldn't want to support at least the
 option
  of
plugging this in. And hey, maybe some working code convinces us
 :-)
   
Eelco
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
  
   Hi eelco,
  
   I'd love to do a proof of concept here. Admittedly, I don't know
  wicket's
   inner workings very well. But if I get some support, I'd try
  implementing
   this. I am currently looking through the code, but can't find where
  the
   transition between parent and child takes place (in other words:
 the
  line
   of
   code that recognizes the wicket:extend tag and takes the
 appropriate
   action). If somebody could point me to that line I would try to
  implement
   this possible new feature ... well, I'll first 

Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Eelco Hillenius
 we are already in the month of the great Wicket meetup in the netherlands
 So does anybody have idea's what you would like to see ?
 Do you want to see some short presentations? What would be good topics?

This is your chance to do some practicing on presenting Johan! One
idea that comes in mind is to let Arje or someone else from Hippo talk
about how they plan to use Wicket (or are already doing so) and/ or
have a talk on why and how to use portlets with Wicket.

Eelco

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



Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Igor Vaynberg
On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:

 well, i thought chris' suggestion to use abstract and override in order to
 align it with the java keyword/annotation. I don't care whether it is
 implement or override (but yes, names are important). i think i'll go for
 implement though ... but if it finally becomes part of wicket, it will
 become extend/child anyway, wouldn't it?

no it would not.

as mentioned numerous times before, we like how it currently works
because it aligns with how class inheritance works in java and thus is
easy to understand.

this would be an in-addion-to feature that people may choose to use.

-igor

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



Question regarding navigation with the browser's back button

2007-11-05 Thread Christian Alejandro Marquez Grabia
I am using Wicket version 1.2.6

I have been looking for this or related issues in the list, but couldn't
find any to solve my problem.

I have a page that show a Tree with many items. These items can be deleted
using a link. When the item is deleted the page is reloaded using
SetResponsePage(). Then if I click the browser's back button, I go to the
previous page in which this item was not deleted, causing an inconsistence
between the tree and the real thing, that will eventually cause an internal
error leading the user to the internal error page.

Is there a way to tell wicket that if the back button is pressed, to reload
the page fully, i.e. rebuild it, not using cache?

Thanks in advanced,
Chris


Re: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Stefan Fußenegger

but why choose another name? as long as there is only one pair of however
named tags, the behaviour wouldn't change at all. It would only extend the
current functionality for those who place a second extension point in there
html files. 

But I am not in the core team, but curious to look under the hood. While I
would love to see this extension becoming part of wicket, I don't care too
much what happens with it as long as I have fun implementing it. ;)

And as numerous times mentioned before: This extension still aligns with how
class inheritance works in java, you only have to see html files as classes
and extension points as (abstract) methods. That's the only conceptual
change.

But there is still some time left to argue while I am hacking ;) 

Regards




igor.vaynberg wrote:
 
 On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:

 well, i thought chris' suggestion to use abstract and override in order
 to
 align it with the java keyword/annotation. I don't care whether it is
 implement or override (but yes, names are important). i think i'll go for
 implement though ... but if it finally becomes part of wicket, it will
 become extend/child anyway, wouldn't it?
 
 no it would not.
 
 as mentioned numerous times before, we like how it currently works
 because it aligns with how class inheritance works in java and thus is
 easy to understand.
 
 this would be an in-addion-to feature that people may choose to use.
 
 -igor
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Multiple-%3Cwicket%3Achild--%3E-tags-on-a-single-base-page--tf4738673.html#a13590818
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: Link text

2007-11-05 Thread Sam Hough

Thanks Al,

That is what I was after. The rendering stuff is waaay over my head.

Gwyn : nabble cut most of my post for some reason, I've been using two
components (link and label) but it seems very verbose when 90% of my links
are to text... Many thanks.

Cheers

Sam



Al Maw wrote:
 
 Sam Hough wrote:
 Lots of the time I just want a link with text as the body of the  ... ...
 
 The Link class takes an IModel so presumably uses that for something but
 I
 can't see it in the source or get it to appear...
 
 Sorry I'm being thick and I did search honest!
 
 You'd typically use the model so you have something to get at in the 
 onClick().
 
 Of course, if you don't care about how much state is in your session, 
 you can just make whatever it is final so you can use it in there anyway.
 
 If you want to use the model for the text of the link instead, then you 
 could write a class like this:
 
 
 public abstract class TextLink extends Link {
  public TextLink(String id, IModel model) {
  super(id, model);
  }
 
  protected void onComponentTagBody(final MarkupStream markupStream,
  final ComponentTag openTag)
  {
  replaceComponentTagBody(
  markupStream, openTag, getModelObjectAsString()
  );
  }
 
 }
 
 
 If you want enabled/disabled to work properly, you'll need to copy the 
 relevant bits out of AbstractLink#onComponentTagBody(...)
 
 
 Regards,
 
 Al
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Link-text-tf4751114.html#a13591081
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: Link text

2007-11-05 Thread Igor Vaynberg
yes, but is the text dynamic on 90% of your links???

most of the time if you want i18n its just

a wicket:id=linkwicket:message key=foo/wicekt:message/a

-igor


On 11/5/07, Sam Hough [EMAIL PROTECTED] wrote:

 Thanks Al,

 That is what I was after. The rendering stuff is waaay over my head.

 Gwyn : nabble cut most of my post for some reason, I've been using two
 components (link and label) but it seems very verbose when 90% of my links
 are to text... Many thanks.

 Cheers

 Sam



 Al Maw wrote:
 
  Sam Hough wrote:
  Lots of the time I just want a link with text as the body of the  ... ...
 
  The Link class takes an IModel so presumably uses that for something but
  I
  can't see it in the source or get it to appear...
 
  Sorry I'm being thick and I did search honest!
 
  You'd typically use the model so you have something to get at in the
  onClick().
 
  Of course, if you don't care about how much state is in your session,
  you can just make whatever it is final so you can use it in there anyway.
 
  If you want to use the model for the text of the link instead, then you
  could write a class like this:
 
 
  public abstract class TextLink extends Link {
   public TextLink(String id, IModel model) {
   super(id, model);
   }
 
   protected void onComponentTagBody(final MarkupStream markupStream,
   final ComponentTag openTag)
   {
   replaceComponentTagBody(
   markupStream, openTag, getModelObjectAsString()
   );
   }
 
  }
 
 
  If you want enabled/disabled to work properly, you'll need to copy the
  relevant bits out of AbstractLink#onComponentTagBody(...)
 
 
  Regards,
 
  Al
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Link-text-tf4751114.html#a13591081
 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: Question regarding navigation with the browser's back button

2007-11-05 Thread Igor Vaynberg
override webpage#setheaders() and instead of no-cache set a no-store
header. that should force the browser to reload the page on
backbutton...

-igor


On 11/5/07, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote:
 I am using Wicket version 1.2.6

 I have been looking for this or related issues in the list, but couldn't
 find any to solve my problem.

 I have a page that show a Tree with many items. These items can be deleted
 using a link. When the item is deleted the page is reloaded using
 SetResponsePage(). Then if I click the browser's back button, I go to the
 previous page in which this item was not deleted, causing an inconsistence
 between the tree and the real thing, that will eventually cause an internal
 error leading the user to the internal error page.

 Is there a way to tell wicket that if the back button is pressed, to reload
 the page fully, i.e. rebuild it, not using cache?

 Thanks in advanced,
 Chris


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



Re: Spring Authenticated Web Application

2007-11-05 Thread Suad AlShamsi

Thanks alot I will check it out .


Michael Sparer wrote:
Hi, 


all steps required for integrating acegi into your wicket-app are described
on http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html. however
you'll get problems if you want to chain multiple filters, especially the
concurrentsessionfilter since you've got to configure your own
authentication object. i.e. you'll have to call the
authentication.setDetails method on your own, or you'll end up seeking a bug
for hours, just like I did :-)
for me personally, the wicket-security implementation (wasp+swarm) is enough
for authentication and authorization (that being said in the development
phase, I'll post it here if it makes problems in production).
the wicket-security stuff including tutorials etc. can be found here:
http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security

regards


alshamsi wrote:
  

Hi All,

I am currently working on a project which uses Wicket as view layer 
and Spring as service layer, therefore my web application class extends 
Spring Web Application. I want to integrate Acegi in order to handle the 
security issues. I came across this article 
http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html that 
explains the integration between wicket and acegi. However it mentions 
that I need to extend AuthenticatedWebApplication.


So, what should I do in this case? is there any other class the I can 
extend that combine both Spring and Acegi? is there any other way to 
integrate Acegi?


Regards,
Suad

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







-
Michael Sparer
http://talk-on-tech.blogspot.com
  




Disable Ajax Buttons/Links while a in request progress

2007-11-05 Thread Francisco Diaz Trepat - gmail
Hi, I wish to discuss best practices for disabling an AjaxLink and a
AjaxButton while a previous request is being process.

f(t)


Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Johan Compagner
yeah yeah, i already did some practicing on servoywold with 2
sessions.. But the thing is what should it be about. An intoduction
doesn't look vey needfull.. :)

On 11/5/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  we are already in the month of the great Wicket meetup in the netherlands
  So does anybody have idea's what you would like to see ?
  Do you want to see some short presentations? What would be good topics?

 This is your chance to do some practicing on presenting Johan! One
 idea that comes in mind is to let Arje or someone else from Hippo talk
 about how they plan to use Wicket (or are already doing so) and/ or
 have a talk on why and how to use portlets with Wicket.

 Eelco

 -
 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: How to Jquery, Json, wicket spring?

2007-11-05 Thread Pen



David Bernard-2 wrote:
 
 Hi,
 
 I started the wicketstuff-jquery project, currently there is no doc/wiki,
 only the [source][1] is available and a demo application ([source][2],
 [war][3]).
 For the communication with between client and server, I used the native
 Wicket API, simpler than trying to write it in JSON (client and server).
 
 every feedbacks, helps,... are welcome through this mailing list (please
 prefix subject with [wicketstuff-jquery] or via the issue tracker) [4].
 
 [1]:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery/
 [2]:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery-examples/
 [3]:
 http://alchim.sourceforge.net/download/wicketstuff-jquery-examples-0.1-SNAPSHOT.war
 [4]: http://wicketstuff.org/jira/browse/WSJQUERY
 
  thanks I will take look into it.
 
 Pen wrote:
 
 We are developing a new web based application in wicket, we need to
 integrate Ajax(Jquery 1.2) with JSON data format and wicket(1.3). 
 Does anybody know how to do this? any sample example or pointer will be
 great full. I have googled and could not find anything.
 Also is there any example to integrate Wicket(1.3) with spring using new
 spring annotations 2.5?
 
 thanks
 Pen
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-Jquery%2C-Json%2C-wicket-spring--tf4749547.html#a13592076
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 meetup (the netherlands) ideas

2007-11-05 Thread Eelco Hillenius
On 11/5/07, Johan Compagner [EMAIL PROTECTED] wrote:
 yeah yeah, i already did some practicing on servoywold with 2
 sessions.. But the thing is what should it be about. An intoduction
 doesn't look vey needfull.. :)

Tell how you used Wicket it for Servoy. Or have a tips  tricks for
production sites session. Or just have wine  tapas. :-)

Eelco

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



AjaxCheckBox label appears twice when...

2007-11-05 Thread Cristi Manole
Hello,

Any ideas why adding the ajaxcheckbox component to an
ajaxrequesttarget would make its label be displayed twice?

Is there any other way to update an ajaxcheckbox without adding it to
required target?

Maybe i'm missing something here.

Tks in advance.

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



Re: gmap2 and permissions

2007-11-05 Thread Jan Stette
Some more information after looking further into this - it looks like I'm
seeing the same problem as mentioned in this thread:
http://www.nabble.com/Google-Maps-and-AJAX-tf4591408.html

It only occurs when a Google Map is added via an AJAX request to a page that
previously had no Google maps on it.

It's easy to reproduce the same problem in the Many example in
wicket-contrib-gmap2-examples, by commenting out the call to addPanel() at
the end of the ManyPage constructor, line 42 in ManyPage.java.  Normally
this example starts with a single Google map on the page and adds more when
the user clicks an AjaxFallbackLink.  When this line is commented out, the
page starts up with no maps on it, and will fail to add more when the user
clicks the link.

In Firefox, the error is an uncaught exception: Permission denied to call
method XMLHttpRequest.open, but this is only visible when I have the
Firebug debugger enabled.  The Ajax link stops working after this error
happens.

In Konqueror, it shows up as a JavaScript error with code 304, and renders
the rest of the page, but the maps aren't drawn, presumably because the
XmlHttpRequests are blocked here as well.  Subsequent Ajax requests work OK
here though.

Is this a bug in the gmap2 component that could be addressed?

Regards,
Jan


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

 I've just started playing with wicket-contrib-gmap2 but I'm having a bit
 of a problem:

 When I try to create a simple map inside my Wicket application, I get an
 exception in Firefox saying:
   uncaught exception: Permission denied to call method
 XMLHttpRequest.open

 I've had a look at issues surrounding security restrictions in Javascript
 and I understand that Firefox will block XMLHttpRequests to hosts other than
 where the page came from.  I've also seen a few workarounds such as running
 proxies for the XML-HTTP requests.  Does gmap2 deal with these issues in any
 way?  I suspect I'm missing something, as when I run the gmap2 examples in a
 local Tomcat, everything works fine...

 One additional question: after I get the above JavaScript exception, the
 other AJAX controls on the same page seem to stop working as well - is this
 something that Wicket ought to be handling better?  (I'm running Wicket
 1.3 beta 4, with the head version of gmap2 built against this).

 Regards,
 Jan




Re: Question regarding navigation with the browser's back button

2007-11-05 Thread Christian Alejandro Marquez Grabia
Thanks Igor.

Indeed, the browser now reloads the page, but the Internal Error occurs now,
instead of watching the cached page. It seems that the Java page is
somewhere cached, and the tree is attempted to be reloaded, and since some
of the methods use the objects in the tree, it brings up the internal error.

Is there anyway to make the Java web page to be regenerated, instead of
using the previous one? So that the tree is re-drawn without the item. ( in
the address bar the url ends with :4::. after deleting it becomes :5::, but
when I press the back button, the :4:: appears, and so does the internal
error.

any ideas on how to make it re-draw the tree, using real data?

Chris

On 11/5/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 override webpage#setheaders() and instead of no-cache set a no-store
 header. that should force the browser to reload the page on
 backbutton...

 -igor


 On 11/5/07, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote:
  I am using Wicket version 1.2.6
 
  I have been looking for this or related issues in the list, but couldn't
  find any to solve my problem.
 
  I have a page that show a Tree with many items. These items can be
 deleted
  using a link. When the item is deleted the page is reloaded using
  SetResponsePage(). Then if I click the browser's back button, I go to
 the
  previous page in which this item was not deleted, causing an
 inconsistence
  between the tree and the real thing, that will eventually cause an
 internal
  error leading the user to the internal error page.
 
  Is there a way to tell wicket that if the back button is pressed, to
 reload
  the page fully, i.e. rebuild it, not using cache?
 
  Thanks in advanced,
  Chris
 

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




Re: Problem with selecting default value with DropDownChoice

2007-11-05 Thread James Perry
Hello all,

Thanks for the replies so far.

Well I have taken the feedback and my manufacturer object and category
object are certainly are there when it passed to my form.

It is really bizarre as if I select a manufactuer and persist the product
obejct upon the form's onSubmit, it's correctly persisted. So I don't
understand why it can correctly set the manufacturer object when changing a
manufacturer yet it doesn't select the correct manufacturer upon going to
EditProductPage.

Any thoughts? I tried it with a RadioChoice and it has the same problem. :-(


On 11/5/07, Gwyn Evans [EMAIL PROTECTED] wrote:

 Hi James,

 While the implementation's not a big deal, and you'll probably want
 one, Choose One is the default for when the selected (or
 pre-selected) item's not found in the DDC list of values, so I don't
 think it's directly that.  I'd be tempted to double-check (either via
 logging or via a debugger) that all the data's there as expected
 (although an anonymous implementation of a IChoiceRender's as good a
 way as any of having somewhere to set a breakpoint!)

 /Gwyn

 Monday, November 5, 2007, 2:54:09 PM, you wrote:

 JP Hello Dima,

 JP That was my initial assumption but I already have overrided my
 JP equals()/hashCode() methods for Manufacturer's business key in
 Hibernate
 JP and ensured my HQL query retrieves Manufacturer objects. Do I need to
 add an
 JP implementation of IChoiceRendered as an argument to DDC?

 JP Thanks,
 JP James.

 JP On 11/5/07, Dmitry Kandalov [EMAIL PROTECTED] wrote:
 
  On Monday 05 November 2007 16:39:02 James Perry wrote:
   I have a problem with the DropDownChoice. More specifically, I have a
   Product class which is like:
  
   public class Product implements Serializable {
  
   private static final long serialVersionUID = 1L;
  
   private Manufacturer manufacturer;
   //other states
  
   //getters and setters
  
   }
  
   I have a form which allows to edit a product, which allows to change
 the
   manufacturer object with a DropDownChoice. However, an Xbox product
 for
   instance, it should display its Microsoft manufacturer object as
  selected
   but it selects 'Choose One' instead.
 
  May be choices and value in the DDC are different java objects and you
  didn't
  implement equals(), hashCode() in Manufacturer class?
 
  Dima



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




Re: Question regarding navigation with the browser's back button

2007-11-05 Thread Igor Vaynberg
maybe your tree model caches more then it should, not sure. if you
want regen the page then its url has to be bookmarkable, but the tree
doesnt work with that really without some extra work...

-igor


On 11/5/07, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote:
 Thanks Igor.

 Indeed, the browser now reloads the page, but the Internal Error occurs now,
 instead of watching the cached page. It seems that the Java page is
 somewhere cached, and the tree is attempted to be reloaded, and since some
 of the methods use the objects in the tree, it brings up the internal error.

 Is there anyway to make the Java web page to be regenerated, instead of
 using the previous one? So that the tree is re-drawn without the item. ( in
 the address bar the url ends with :4::. after deleting it becomes :5::, but
 when I press the back button, the :4:: appears, and so does the internal
 error.

 any ideas on how to make it re-draw the tree, using real data?

 Chris

 On 11/5/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  override webpage#setheaders() and instead of no-cache set a no-store
  header. that should force the browser to reload the page on
  backbutton...
 
  -igor
 
 
  On 11/5/07, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote:
   I am using Wicket version 1.2.6
  
   I have been looking for this or related issues in the list, but couldn't
   find any to solve my problem.
  
   I have a page that show a Tree with many items. These items can be
  deleted
   using a link. When the item is deleted the page is reloaded using
   SetResponsePage(). Then if I click the browser's back button, I go to
  the
   previous page in which this item was not deleted, causing an
  inconsistence
   between the tree and the real thing, that will eventually cause an
  internal
   error leading the user to the internal error page.
  
   Is there a way to tell wicket that if the back button is pressed, to
  reload
   the page fully, i.e. rebuild it, not using cache?
  
   Thanks in advanced,
   Chris
  
 
  -
  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: AjaxCheckBox label appears twice when...

2007-11-05 Thread Cristi Manole
is was because of this :input type = checkbox wicket:id =
togglecheckbox2Toggle Check All/input
changed to this : input .../Toggle Check All

[although question remains... why would it display toggle check all twice?]

On Nov 5, 2007 9:16 PM, Cristi Manole [EMAIL PROTECTED] wrote:
 Hello,

 Any ideas why adding the ajaxcheckbox component to an
 ajaxrequesttarget would make its label be displayed twice?

 Is there any other way to update an ajaxcheckbox without adding it to
 required target?

 Maybe i'm missing something here.

 Tks in advance.


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



Re: Problem with selecting default value with DropDownChoice

2007-11-05 Thread James Perry
Some notes I have observed.

* All my objects within the list are correctly in the DDC
* All my objects within the list have an implemented equals/hashcode.
* It doesn't correctly pre-select both my Manufacturer associations within
Product; it just goes to 'Choose One'
* It correctly sets Manufacturer if we change the pre-selected 'Choose One'
to any object within the DDC.

So why is it not correctly pre-selecting? For example, my Xbox is not
pre-selecting to Microsoft instead going to 'Choose One'.

Cheers,
James.

On 11/5/07, James Perry [EMAIL PROTECTED] wrote:

 Hello all,

 Thanks for the replies so far.

 Well I have taken the feedback and my manufacturer object and category
 object are certainly are there when it passed to my form.

 It is really bizarre as if I select a manufactuer and persist the product
 obejct upon the form's onSubmit, it's correctly persisted. So I don't
 understand why it can correctly set the manufacturer object when changing a
 manufacturer yet it doesn't select the correct manufacturer upon going to
 EditProductPage.

 Any thoughts? I tried it with a RadioChoice and it has the same problem.
 :-(

 On 11/5/07, Gwyn Evans  [EMAIL PROTECTED] wrote:
 
  Hi James,
 
  While the implementation's not a big deal, and you'll probably want
  one, Choose One is the default for when the selected (or
  pre-selected) item's not found in the DDC list of values, so I don't
  think it's directly that.  I'd be tempted to double-check (either via
  logging or via a debugger) that all the data's there as expected
  (although an anonymous implementation of a IChoiceRender's as good a
  way as any of having somewhere to set a breakpoint!)
 
  /Gwyn
 
  Monday, November 5, 2007, 2:54:09 PM, you wrote:
 
  JP Hello Dima,
 
  JP That was my initial assumption but I already have overrided my
  JP equals()/hashCode() methods for Manufacturer's business key in
  Hibernate
  JP and ensured my HQL query retrieves Manufacturer objects. Do I need
  to add an
  JP implementation of IChoiceRendered as an argument to DDC?
 
  JP Thanks,
  JP James.
 
  JP On 11/5/07, Dmitry Kandalov  [EMAIL PROTECTED] wrote:
  
   On Monday 05 November 2007 16:39:02 James Perry wrote:
I have a problem with the DropDownChoice. More specifically, I have
  a
Product class which is like:
   
public class Product implements Serializable {
   
private static final long serialVersionUID = 1L;
   
private Manufacturer manufacturer;
//other states
   
//getters and setters
   
}
   
I have a form which allows to edit a product, which allows to
  change the
manufacturer object with a DropDownChoice. However, an Xbox product
  for
instance, it should display its Microsoft manufacturer object as
   selected
but it selects 'Choose One' instead.
  
   May be choices and value in the DDC are different java objects and
  you
   didn't
   implement equals(), hashCode() in Manufacturer class?
  
   Dima
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Wicket portlet newbie questions

2007-11-05 Thread Thijs

Check out http://www.nabble.com/Portlet-howto-tf4587073.html#a13093514

justment wrote:

I want to implements wicket portlet on liferay
but I can't get any demo,documents from google :p
Thanks in advance for any pointers and explanations

thank you.
  



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



Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Eelco Hillenius
  Also a tips and tricks kinda thing would be great. To show some nice tricks
 to my employer and fellow colleges.
  I haven't been using Wicket professionally jet. I only used it to build my
 own blog with it. I'm trying to get my employer to look at Wicket but I need
 working portlet support for Liferay to get that done) :)

Did someone open a JIRA ticket for that yet?

Eelco

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



Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Eelco Hillenius
On 11/5/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   Also a tips and tricks kinda thing would be great. To show some nice tricks
  to my employer and fellow colleges.
   I haven't been using Wicket professionally jet. I only used it to build my
  own blog with it. I'm trying to get my employer to look at Wicket but I need
  working portlet support for Liferay to get that done) :)

 Did someone open a JIRA ticket for that yet?

/s/someone/anyone/

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



Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Johan Compagner
The best man for this would be Ate ...
Dont know if he can attend?


On 11/5/07, Thijs [EMAIL PROTECTED] wrote:

 It would be grate to get some more info on the portlet implementation.
 I've been trying to get that working on another portal server then Jetspeed
 without much luck :)

 Also a tips and tricks kinda thing would be great. To show some nice
 tricks to my employer and fellow colleges.
 I haven't been using Wicket professionally jet. I only used it to build my
 own blog with it. I'm trying to get my employer to look at Wicket but I need
 working portlet support for Liferay to get that done) :)



 Eelco Hillenius wrote:

 we are already in the month of the great Wicket meetup in the netherlands
 So does anybody have idea's what you would like to see ?
 Do you want to see some short presentations? What would be good topics?


 This is your chance to do some practicing on presenting Johan! One
 idea that comes in mind is to let Arje or someone else from Hippo talk
 about how they plan to use Wicket (or are already doing so) and/ or
 have a talk on why and how to use portlets with Wicket.

 Eelco

 -
 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: Localizer cache

2007-11-05 Thread Sebastiaan van Erk
There's a discussion on the JIRA whether or not to make the localizer 
cache in development mode, but just for reference (and for other people 
searching for localizer and cache), Juergen showed me how to get what I 
want by adding the following code in the init() method of my application:


  if (!isDeployment()) {
getResourceSettings().setLocalizer(new Localizer() {
  @Override
protected void putIntoCache(String cacheKey, String string) {
  // Do not cache.
}
});
  }

where isDeployment() returns whether your application is in deployment 
mode or not.


Regards,
Sebastiaan

Sebastiaan van Erk wrote:

Ok, I created a JIRA for this:
https://issues.apache.org/jira/browse/WICKET-1128

Regards,
Sebastiaan

Eelco Hillenius wrote:

Best to open a proper feature request for this in JIRA.

Eelco

On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote:

Hi,

I was wondering if I could somehow turn off caching of the localizer in
development mode (from the current source it doesn't look like it).

The reason I ask is because now the cache is only flushed if a resource
that is being watched is changed. However:

* if you add a new properties file for a page or component after you
already rendered the page once the cache is not cleared and it keeps
finding the key=null entry in the cache.

* if you add your own database string resource loader, the cache is
never flushed at all.

I know I can add a link to flush the localizer cache if and only if
we're in development mode, but I think a Settings options could be nice
to just turn off caching (my laptop is fast enough, I really don't care
if it tries to resolve all the labels all the time).

Regards,
Sebastiaan




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



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problem with selecting default value with DropDownChoice

2007-11-05 Thread Gwyn Evans
Hi James,

Monday, November 5, 2007, 8:05:58 PM, you wrote:

JP Some notes I have observed. * All my objects within the list are
JP correctly in the DDC * All my objects within the list have an
JP implemented equals/hashcode. * It doesn't correctly pre-select
JP both my Manufacturer associations within Product; it just goes to
JP 'Choose One' * It correctly sets Manufacturer if we change the
JP pre-selected 'Choose One' to any object within the DDC.

JP So why is it not correctly pre-selecting? For example, my Xbox is not
JP pre-selecting to Microsoft instead going to 'Choose One'.

I'm afraid that it does sound as if the pre-selected manufacturer
isn't matching the ones in the list, although I'd want to run through
the Wicket sources before I was happy it wasn't down to something like
an Object to String conversion going on somewhere. (Random guessing,
though.)

Maybe trying to reproduce it in a QuickStart would help - certainly
isolating the problem normally helps point to the issue and if not,
would let others investigate.

/Gwyn



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



Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Martin Funk

Johan Compagner schrieb:

Guys,

we are already in the month of the great Wicket meetup in the netherlands
So does anybody have idea's what you would like to see ?
Do you want to see some short presentations? What would be good topics?

Does anybody want to give a short presentation?

  
my presentenion skills could need some practicing. I'd be more than 
happy to chip in a 10 or up to 15 minute thing on wicket-contrib-gmap2.


Is there anything known about the infrastructure? Will there be a 
connection to the internet?
That would give a chance for examples and take the emphasis away from 
the code.
Also, I don't own a laptop, so I'll have to ask for someones to do the 
presentation on.


Martin

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



Re: Mystery problem w/ Wicket + Glassfish v2?

2007-11-05 Thread Johan Compagner
please upgrade to at least the latest version of 1.2 (1.2.7) because if i
look at getContentType of an innerclass of DynamicWebResource
then that is now a abstract method. So there are changes in that area.

johan



On 11/5/07, V. Jenks [EMAIL PROTECTED] wrote:


 OOps!  Sorry, in the Glassfish log-viewer they separate the top line of
 the
 stack from the rest, for some reason.  Here it is:

 null java.lang.NullPointerException at
 wicket.markup.html.DynamicWebResource$1.getContentType(
 DynamicWebResource.java



 Johan Compagner wrote:
 
  you miss the most importand part of the error:  the top!
 
 
  On 11/5/07, V. Jenks [EMAIL PROTECTED] wrote:
 
 
  Occasionally, my application will just start doing this - throwing
 this
  error.  I am using Wicket 1.2.4 because my application is stuck at
 that
  version for the time being.  I do not have the time to make the changes
  to
  upgrade to the latest version, right now.
 
  Rebooting the app server (Glassfish v2) usually fixes it but when it
  does
  happen, it prevents orders from going through and frustrates
  customers.  Not
  a good thing...
 
  I have no idea what causes this and don't know the internals of
 Glassfish
  to
  even begin to try and troubleshoot.  All I know for sure is; this NEVER
  happened on JBoss 4.0.x with Wicket.  I figured it was safe to assume
  this
  had nothing to do with my code - nowhere in the stack does it point to
  anything in my application (or any application running on it, for that
  matter.)
 
  I realize this is vague so hopefully someone else is experiencing this
  and
  can help troubleshoot.
 
  Here's the error:
 
  ***
 
  156) at wicket.Resource.onResourceRequested(Resource.java:119) at
  wicket.request.target.resource.SharedResourceRequestTarget.respond(
  SharedResourceRequestTarget.java:192)
  at
  wicket.request.compound.DefaultResponseStrategy.respond(
  DefaultResponseStrategy.java:49)
  at
  wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(
  AbstractCompoundRequestCycleProcessor.java:66)
  at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
  at
  wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934) at
  wicket.RequestCycle.step(RequestCycle.java:1010) at
  wicket.RequestCycle.steps(RequestCycle.java:1084) at
  wicket.RequestCycle.request(RequestCycle.java:454) at
  wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:718) at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at
  org.apache.catalina.core.ApplicationFilterChain.servletService(
  ApplicationFilterChain.java:411)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(
  StandardWrapperValve.java:290)
  at
  org.apache.catalina.core.StandardContextValve.invokeInternal(
  StandardContextValve.java:271)
  at
  org.apache.catalina.core.StandardContextValve.invoke(
  StandardContextValve.java:202)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(
 StandardPipeline.java
  :632)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(
 StandardPipeline.java
  :577)
  at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at
  org.apache.catalina.core.StandardHostValve.invoke(
 StandardHostValve.java
  :206)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(
 StandardPipeline.java
  :632)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(
 StandardPipeline.java
  :577)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
  :571)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
 :1080)
  at
  org.apache.catalina.core.StandardEngineValve.invoke(
  StandardEngineValve.java:150)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(
 StandardPipeline.java
  :632)
  at
  org.apache.catalina.core.StandardPipeline.doInvoke(
 StandardPipeline.java
  :577)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
  :571)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
 :1080)
  at
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
  at
 
 
 com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
  (DefaultProcessorTask.java:637)
  at
  com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
 (
  DefaultProcessorTask.java:568)
  at
  com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(
  DefaultProcessorTask.java:813)
  at
 
 
 com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
  (DefaultReadTask.java:339)
  at
  com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
  DefaultReadTask.java:261)
  at
  com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
  DefaultReadTask.java:212)
  at
  com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(
  PortUnificationPipeline.java:361)
  at 

Re: gmap2 and permissions

2007-11-05 Thread Martin Funk

Hi Jan,

not sure if Sven or I can come up with something tonight,
but it won't be forgotten.

http://wicketstuff.org/jira/browse/WSGMAPP-3

Martin

Jan Stette schrieb:

Some more information after looking further into this - it looks like I'm
seeing the same problem as mentioned in this thread:
http://www.nabble.com/Google-Maps-and-AJAX-tf4591408.html

It only occurs when a Google Map is added via an AJAX request to a page that
previously had no Google maps on it.

It's easy to reproduce the same problem in the Many example in
wicket-contrib-gmap2-examples, by commenting out the call to addPanel() at
the end of the ManyPage constructor, line 42 in ManyPage.java.  Normally
this example starts with a single Google map on the page and adds more when
the user clicks an AjaxFallbackLink.  When this line is commented out, the
page starts up with no maps on it, and will fail to add more when the user
clicks the link.

In Firefox, the error is an uncaught exception: Permission denied to call
method XMLHttpRequest.open, but this is only visible when I have the
Firebug debugger enabled.  The Ajax link stops working after this error
happens.

In Konqueror, it shows up as a JavaScript error with code 304, and renders
the rest of the page, but the maps aren't drawn, presumably because the
XmlHttpRequests are blocked here as well.  Subsequent Ajax requests work OK
here though.

Is this a bug in the gmap2 component that could be addressed?

Regards,
Jan


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

I've just started playing with wicket-contrib-gmap2 but I'm having a bit
of a problem:

When I try to create a simple map inside my Wicket application, I get an
exception in Firefox saying:
  uncaught exception: Permission denied to call method
XMLHttpRequest.open

I've had a look at issues surrounding security restrictions in Javascript
and I understand that Firefox will block XMLHttpRequests to hosts other than
where the page came from.  I've also seen a few workarounds such as running
proxies for the XML-HTTP requests.  Does gmap2 deal with these issues in any
way?  I suspect I'm missing something, as when I run the gmap2 examples in a
local Tomcat, everything works fine...

One additional question: after I get the above JavaScript exception, the
other AJAX controls on the same page seem to stop working as well - is this
something that Wicket ought to be handling better?  (I'm running Wicket
1.3 beta 4, with the head version of gmap2 built against this).

Regards,
Jan





  



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



Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-11-05 Thread landry soules
Hello guys

I finally won't take your time anymore with my problem of dependencies : it
was a simple PEBCAK !
I got the following error :
Exception in thread ModificationWatcher Task java.lang.NoSuchMethodError:
org.apache.log4j.Logger.isTraceEnabled()Z

It was coming from log4j.Logger, not from slf4j.Logger, and the cause was i
used cayenne.jar (wich contains cayenne and all its dependencies, including
an older version of log4j) , instead of  cayenne-nodeps.jar !

Al, i owe you a beer if you come to Paris  ;-)

Thanks a lot for your patience.



2007/11/4, Al Maw [EMAIL PROTECTED]:

 landry soules wrote:
  Sorry Al, but you lost your money  ;-)
 
  I put back slf4j-api-1.4.2.jar , and still the same problem... Using the
  jars suggested by Cristi doesn't help either. But since it seems i'm the
  only one to still have the problem, must be a problem with my classpath.
 I
  will recheck after deploying the project in a war. Maybe it's just
 eclipse
  WTP that does some weird things with my classpath.
  As always, thanks a lot for your support, guys.

 Gah. Can't believe you haven't sorted this issue out yet!

 It's conceptually really simple...

 org.slf4j.Logger#isTraceEnabled()

 ...is a method in the org.slf4j.Logger interface. That interface is in
 the main SLF4J API JAR.

 The isTraceEnabled() method, according to the javadoc, has been
 available in that interface since version 1.4.

 So you either don't have slf4j-api-1.4.x on your classpath, or you also
 have a version prior to 1.4 also your classpath which is being picked up
 instead.

 If both of those two things weren't the case, you wouldn't be having
 this issue.

 To check the classpath of a running project in Eclipse, Right click on
 the root node in the debug dialog and choose Properties. You can find
 the classpath in the dialog that is shown.


 Regards,

 Al

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




Re: Wicket namespace?

2007-11-05 Thread Will Jackson
no one knows what the Wicket namespace is?

Will Jackson [EMAIL PROTECTED] wrote: Is there a Wicket xhtml namespace that 
will work with Eclipse content assist? I searched the forums, but can't find 
anything.

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-11-05 Thread Eelco Hillenius
 I finally won't take your time anymore with my problem of dependencies : it
 was a simple PEBCAK !
 I got the following error :
 Exception in thread ModificationWatcher Task java.lang.NoSuchMethodError:
 org.apache.log4j.Logger.isTraceEnabled()Z

 It was coming from log4j.Logger, not from slf4j.Logger, and the cause was i
 used cayenne.jar (wich contains cayenne and all its dependencies, including
 an older version of log4j) , instead of  cayenne-nodeps.jar !

Nasty :-)

Eelco

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



Re: Wicket namespace?

2007-11-05 Thread Frank Bille
There is no schema for it if thats what you mean.

But you can set the namespace to wicket:xmlns=http://wicket.apache.org;

Frank

On Nov 5, 2007 10:42 PM, Will Jackson [EMAIL PROTECTED] wrote:

 no one knows what the Wicket namespace is?

 Will Jackson [EMAIL PROTECTED] wrote: Is there a Wicket xhtml
 namespace that will work with Eclipse content assist? I searched the forums,
 but can't find anything.

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com



Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Ate Douma

Johan Compagner wrote:

The best man for this would be Ate ...
Dont know if he can attend?

I'll attend and definitely will do my best to answer any questions about the 
portlet support as much as I can.
I haven't really planned a presentation yet, but if there is enough interest 
I guess I can come up with something ;)




On 11/5/07, Thijs [EMAIL PROTECTED] wrote:

It would be grate to get some more info on the portlet implementation.
I've been trying to get that working on another portal server then Jetspeed
without much luck :)

Also a tips and tricks kinda thing would be great. To show some nice
tricks to my employer and fellow colleges.
I haven't been using Wicket professionally jet. I only used it to build my
own blog with it. I'm trying to get my employer to look at Wicket but I need
working portlet support for Liferay to get that done) :)

About Liferay specifics, I'm willing to help of course but as I don't know much 
of its internals my knowledge is limited.
What I can do is try to contact Brian Chan or Jorge Ferrer from Liferay 
directly who I know personally from our JSR-286 meetings.
But that'll have to wait until after ApacheCon US next week as I really don't have time for anything else right now (besides supporting several custom portal 
projects).


Please do ping me again if I don't follow up in 2 weeks time.

Regards,

Ate





Eelco Hillenius wrote:

we are already in the month of the great Wicket meetup in the netherlands
So does anybody have idea's what you would like to see ?
Do you want to see some short presentations? What would be good topics?


This is your chance to do some practicing on presenting Johan! One
idea that comes in mind is to let Arje or someone else from Hippo talk
about how they plan to use Wicket (or are already doing so) and/ or
have a talk on why and how to use portlets with Wicket.

Eelco

-
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: creating RSS feeds with Wicket

2007-11-05 Thread Sean Sullivan
I wrote an example application that uses Ryan's wicketstuff-rome library.

wicketstuff-rome-examples is available in WicketStuff's SVN repository:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-rome-examples/

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-rome/

Sean


On 8/23/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
 http://www.jroller.com/wireframe/entry/wicket_and_rss_feeds

 Just wanted to post an announcement that there's a new wicket stuff project
 (wicketstuff-rome) to allow for creation of RSS (or Atom) feeds from within
 Wicket.  I've been using it for the past several weeks and it's allowed me
 to integrate RSS feeds into my Wicket app *very* quickly.

 This new project is a definite step up from the existing wicket wiki article
 for Rss pages, but I'm not sure what to do about that info.  Please let me
 know if anyone has suggestions or issues with the project.  Now that it's on
 wicketstuff, feel free to tweak or add features!


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



ResourceStream

2007-11-05 Thread Andrew MacKenzie
Wicket 1.2


I've created my own implmentation of AbstractResourceStream to fetch the
content for some pages from another location (they are generated by another
site).

One thing I'm not sure of is how often wicket will re-fetch this resource
from my code.  I notice a lastModifiedTime() function I have to
implement, and I wonder if wicket uses that to determine a timeout?  Does
wicket do caching here or should I?

-- 
// Andrew MacKenzie  |  http://www.edespot.com
// GPG public key: http://www.edespot.com/~amackenz/public.key
// If my theory of relativity is proven successful, Germany will claim
//  me as a German and France will declare that I am a citizen of the
//  world. Should my theory prove untrue, France will say that I am a
//  German and Germany will declare that I am a Jew.
// -- Albert Einstein


pgpqabuHLZqqC.pgp
Description: PGP signature


RE: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Chris Colman
 if i were you i would use tags other then extend and child just so you
 dont conflict.

Yes Stefan, I would think that would be a better approach to use a new set of 
tags. It also allows you to choose more correct naming (because inheritance 
isn't actually a parent/child relationship so the word child just confuses the 
issue).

Maybe wicket:abstract in the base and wicket:implements (nice - thanks to 
whoever suggested that) or wicket:override in the derived (extended) markup.

I think using IDs up front would also be great, if not necessary, because in 
Java as would probably occur in wicket mark up, you can have intermediate 
classes that don't implement all abstract methods in a base class. Without IDs 
you won't know exactly which abstract method an intermediate class is 
implementing.

This example hopefully demonstrates what I mean:

Base

wicket:abstract id=header /
wicket:abstract id=body /

PumpsBase
-
wicket:implements id=header
A header for all pages to do with pumps
/wicket:implements

Note: no body implemented here - deferred until a more specialized 
class/markups: WaterPumpsBase and OilPumpsBase

WaterPumpBase
-
Note: no header implemented here - the general PumpsBase one suffices for all 
pumps pages

wicket:implements id=body
A body discussing water pumps
/wicket:implements


OilPumpBase
---
Note: no header implemented here - the general PumpsBase one suffices for all 
pumps pages

wicket:implements id=body
A body discussing oil pumps
/wicket:implements


I think the tag pairs abstract/implements flow much better from an OO 
perspective than child/extends. It hurts my brain way to much to think of a 
base class as a child.

 
 -igor
 
 
 On 11/5/07, Stefan Fußenegger [EMAIL PROTECTED] wrote:
 
  Well, what I'd like to do is what I explained in my first post. One
 would
  still have a one-one-relationship if it comes to files (Base.html,
 Base.java
  - Sub.html, Sub.java). However, a Base.html might contain more than one
  wicket:extend /. So this no longer an exact duplicate of the parent-
 child
  relationship that is already specified by the java class hierarchy. It
 now
  would be similar to abstract method, where the abstract class specifies
 one
  or more extension points that are implemented by its subcasses ...
 abstract
  methods. There isn't a restriction, that there is only one abstract
 method
  per class!
 
  My proof of concept would go the probably easiest way and just link the
  first extend with the first child, the second extend with the second
 child,
  the third ... you got the idea ;) At a later point it might be useful to
  link them using ids (like the names of abstract methods).
 
  You could than for instance do some hierarchies like this:
 
  BaseClass - Application base class. Navigation on top, two columns with
  wicket:extend
  SectionOneBaseClass extends BaseClass - Sub-navigation in left column
  SectionOneIndex extends SectionOneBaseClass - Navigation on top,
  sub-navigation in left column and some fancy content in right column
 
  I totally agree to anybody who argues that this is already possible by
 other
  means. However, to me it seems to be the most natural and elegant way to
 do
  this.
 
  As I mentioned before, I don't know Wicket's inner workings too much, so
 I
  will definitely need some pointers to the right directions.
 
  My naive guess is that Wicket parses BasePage.html and looks for
  SecionOneBaseClass.html and the first wicket:child / as soon as it
 finds a
  wicket:extend /. The idea would know be to just add a counter to this
  call, asking for the second wicket:child /, rather than the first (I
 doubt
  that it's really going to be that easy though).
 
 
 
 
  Bruno Borges wrote:
  
   Stefan, try first giving us an example of what would you like to do.
 What
   I
   can see is that you want this:
  
   BasePage.html
   html
 body
   h1BasePage/h1
   hr/
   h3This is my child:/h3
   wicket:child /
   hr/
   h3This is my OTHER child:/h3
   wicket:child /
 /body
   /html
  
   ** Example of a child page:*
   ChildPage.html
   html
 body
   wicket:extend
 h4ChildPage/h4
 h5I'm your child/h5
   /wicket:extend
 /body
   /html
  
   Now, given this html, how do you see the Java code structured? What's
 your
   vision?
  
   On Nov 5, 2007 11:28 AM, Stefan Fußenegger [EMAIL PROTECTED]
   wrote:
  
  
  
   Eelco Hillenius wrote:
   
It would be quite feasible to add support for multiple overridden
sections using the above tag names while remaining backwards
   compatible
with existing markup by continuing to support the old
 child/extends
tags working the way they always have.
   
It's kind of a predictable answer, but the best way to push new
 ideas
forward is to supply us with a patch, so that we can discuss some
working code. The current committers don't see much in the idea,
 but

RE: Multiple wicket:child / tags on a single base page?

2007-11-05 Thread Chris Colman
 the complement to abstract is implement not override... names are
 important.

Arh, sorry, I made my last post before reading yours Igor. Yes, I agree
abstract/implement make a great complimentary pair.


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



Re: Wicket namespace?

2007-11-05 Thread Will Jackson
Thanks for the info... hmmm... I wonder why it is not supported? I would have 
assumed that they would use a xsd rather than a dtd. How would this be used? 
Using multiple dtds can get messy (not to mention they may cause issues in 
Internet Exploder).

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml; lang=en xml:lang=en

Better:
?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:wicket=http://wicket.apache.org;
xsi:schemaLocation=http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd 
http://wicket.apache.org/someWicketSchema;
xml:lang=en

Stefan Fußenegger [EMAIL PROTECTED] wrote: 
I was asking myself the same a while ago. Today I found a file named
wicket-xhtml1-strict.dtd in the SVN. You can find it at
http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1-strict.dtd
 

But I don't know whether this file is supported or not, as I haven't found
anything in the docs. Does somebody know more?

Regards, Stefan



Frank Bille-2 wrote:
 
 There is no schema for it if thats what you mean.
 
 But you can set the namespace to wicket:xmlns=http://wicket.apache.org;
 
 Frank
 
 On Nov 5, 2007 10:42 PM, Will Jackson  wrote:
 
 no one knows what the Wicket namespace is?

 Will Jackson  wrote: Is there a Wicket xhtml
 namespace that will work with Eclipse content assist? I searched the
 forums,
 but can't find anything.

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 
 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Wicket-namespace--tf4753975.html#a13597017
Sent from the Wicket - User mailing list archive at Nabble.com.


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



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Wicket namespace?

2007-11-05 Thread Stefan Fußenegger

I was asking myself the same a while ago. Today I found a file named
wicket-xhtml1-strict.dtd in the SVN. You can find it at
http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1-strict.dtd
 

But I don't know whether this file is supported or not, as I haven't found
anything in the docs. Does somebody know more?

Regards, Stefan



Frank Bille-2 wrote:
 
 There is no schema for it if thats what you mean.
 
 But you can set the namespace to wicket:xmlns=http://wicket.apache.org;
 
 Frank
 
 On Nov 5, 2007 10:42 PM, Will Jackson [EMAIL PROTECTED] wrote:
 
 no one knows what the Wicket namespace is?

 Will Jackson [EMAIL PROTECTED] wrote: Is there a Wicket xhtml
 namespace that will work with Eclipse content assist? I searched the
 forums,
 but can't find anything.

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 
 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Wicket-namespace--tf4753975.html#a13597017
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 namespace?

2007-11-05 Thread Stefan Fußenegger

I didn't say it's not supported, I was just asking. And I don't think you
have to use 2 DTDs. I think it rather is an extension of the standard XHTML
DTD (that's why it is a DTD and not an XML schema). 

-- Stefan



Will Jackson-2 wrote:
 
 Thanks for the info... hmmm... I wonder why it is not supported? I would
 have assumed that they would use a xsd rather than a dtd. How would this
 be used? Using multiple dtds can get messy (not to mention they may cause
 issues in Internet Exploder).
 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; lang=en xml:lang=en
 
 Better:
 ?xml version=1.0 encoding=UTF-8?
 html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:wicket=http://wicket.apache.org;
 xsi:schemaLocation=http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd
 http://wicket.apache.org/someWicketSchema;
 xml:lang=en
 
 Stefan Fußenegger [EMAIL PROTECTED] wrote: 
 I was asking myself the same a while ago. Today I found a file named
 wicket-xhtml1-strict.dtd in the SVN. You can find it at
 http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1-strict.dtd
  
 
 But I don't know whether this file is supported or not, as I haven't found
 anything in the docs. Does somebody know more?
 
 Regards, Stefan
 
 
 
 Frank Bille-2 wrote:
 
 There is no schema for it if thats what you mean.
 
 But you can set the namespace to wicket:xmlns=http://wicket.apache.org;
 
 Frank
 
 On Nov 5, 2007 10:42 PM, Will Jackson  wrote:
 
 no one knows what the Wicket namespace is?

 Will Jackson  wrote: Is there a Wicket xhtml
 namespace that will work with Eclipse content assist? I searched the
 forums,
 but can't find anything.

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 
 
 
 
 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 -- 
 View this message in context:
 http://www.nabble.com/Wicket-namespace--tf4753975.html#a13597017
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Wicket-namespace--tf4753975.html#a13597735
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 namespace?

2007-11-05 Thread Will Jackson
I know you were not saying that it's not supported. I was assuming that it was 
not supported because I can't find a public url for that supports it :) 

afaik extending the dtd is really just adding another dtd 
(http://www.w3.org/TR/1999/xhtml-modularization-19990406/developing.html#sec_6.5.2.).
  as far as the schema is concerned anything that can be done in a dtd can be 
done in a more elegant manner in an xsd (dtd = old way, xsd = new way). still 
curious why there isn't a public url that is published somewhere on it's use :(

Stefan Fußenegger [EMAIL PROTECTED] wrote: 
I didn't say it's not supported, I was just asking. And I don't think you
have to use 2 DTDs. I think it rather is an extension of the standard XHTML
DTD (that's why it is a DTD and not an XML schema). 

-- Stefan



Will Jackson-2 wrote:
 
 Thanks for the info... hmmm... I wonder why it is not supported? I would
 have assumed that they would use a xsd rather than a dtd. How would this
 be used? Using multiple dtds can get messy (not to mention they may cause
 issues in Internet Exploder).
 
 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 
 
 Better:
 
 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:wicket=http://wicket.apache.org;
 xsi:schemaLocation=http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd
 http://wicket.apache.org/someWicketSchema;
 xml:lang=en
 
 Stefan Fußenegger  wrote: 
 I was asking myself the same a while ago. Today I found a file named
 wicket-xhtml1-strict.dtd in the SVN. You can find it at
 http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1-strict.dtd
  
 
 But I don't know whether this file is supported or not, as I haven't found
 anything in the docs. Does somebody know more?
 
 Regards, Stefan
 
 
 
 Frank Bille-2 wrote:
 
 There is no schema for it if thats what you mean.
 
 But you can set the namespace to wicket:xmlns=http://wicket.apache.org;
 
 Frank
 
 On Nov 5, 2007 10:42 PM, Will Jackson  wrote:
 
 no one knows what the Wicket namespace is?

 Will Jackson  wrote: Is there a Wicket xhtml
 namespace that will work with Eclipse content assist? I searched the
 forums,
 but can't find anything.

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 
 
 
 
 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 -- 
 View this message in context:
 http://www.nabble.com/Wicket-namespace--tf4753975.html#a13597017
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 


-
---
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: 
http://www.nabble.com/Wicket-namespace--tf4753975.html#a13597735
Sent from the Wicket - User mailing list archive at Nabble.com.


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



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: gmap2 and permissions

2007-11-05 Thread Jan Stette
Great, thanks!

Jan


On 05/11/2007, Martin Funk [EMAIL PROTECTED] wrote:

 Hi Jan,

 not sure if Sven or I can come up with something tonight,
 but it won't be forgotten.

 http://wicketstuff.org/jira/browse/WSGMAPP-3

 Martin

 Jan Stette schrieb:
  Some more information after looking further into this - it looks like
 I'm
  seeing the same problem as mentioned in this thread:
  http://www.nabble.com/Google-Maps-and-AJAX-tf4591408.html
 
  It only occurs when a Google Map is added via an AJAX request to a page
 that
  previously had no Google maps on it.
 
  It's easy to reproduce the same problem in the Many example in
  wicket-contrib-gmap2-examples, by commenting out the call to addPanel()
 at
  the end of the ManyPage constructor, line 42 in ManyPage.java.  Normally
  this example starts with a single Google map on the page and adds more
 when
  the user clicks an AjaxFallbackLink.  When this line is commented out,
 the
  page starts up with no maps on it, and will fail to add more when the
 user
  clicks the link.
 
  In Firefox, the error is an uncaught exception: Permission denied to
 call
  method XMLHttpRequest.open, but this is only visible when I have the
  Firebug debugger enabled.  The Ajax link stops working after this error
  happens.
 
  In Konqueror, it shows up as a JavaScript error with code 304, and
 renders
  the rest of the page, but the maps aren't drawn, presumably because the
  XmlHttpRequests are blocked here as well.  Subsequent Ajax requests work
 OK
  here though.
 
  Is this a bug in the gmap2 component that could be addressed?
 
  Regards,
  Jan
 
 
  On 05/11/2007, Jan Stette [EMAIL PROTECTED] wrote:
 
  I've just started playing with wicket-contrib-gmap2 but I'm having a
 bit
  of a problem:
 
  When I try to create a simple map inside my Wicket application, I get
 an
  exception in Firefox saying:
uncaught exception: Permission denied to call method
  XMLHttpRequest.open
 
  I've had a look at issues surrounding security restrictions in
 Javascript
  and I understand that Firefox will block XMLHttpRequests to hosts other
 than
  where the page came from.  I've also seen a few workarounds such as
 running
  proxies for the XML-HTTP requests.  Does gmap2 deal with these issues
 in any
  way?  I suspect I'm missing something, as when I run the gmap2 examples
 in a
  local Tomcat, everything works fine...
 
  One additional question: after I get the above JavaScript exception,
 the
  other AJAX controls on the same page seem to stop working as well - is
 this
  something that Wicket ought to be handling better?  (I'm running Wicket
  1.3 beta 4, with the head version of gmap2 built against this).
 
  Regards,
  Jan
 
 
 
 
 


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




[ANNOUNCE] Eventful Launches

2007-11-05 Thread Nick Heudecker
Hi,

After quite a bit of development, I'm happy to announce Eventful (
http://www.eventfulhq.com) has launched to the general public.  Eventful is
an online registration and event management application.  With Eventful, you
can:

   - Import your contact database
   - Send personalized email campaigns
   - Support registering guests and sending invitations
   - Securely collect credit card information
   - Manage staff, speakers and various pricing options
   - Stay on top of your event with several real-time reports

Eventful allows you to lower your event management cost while increasing
revenue.  Unlike some competitors, Eventful doesn't have expensive annual
contracts or per-attendee fees.  Eventful offers flexible, low-cost monthly
subscriptions.  You can find out more about Eventful on the home page:
http://www.eventfulhq.com.

Eventful is built with Wicket, Hibernate, Spring, JasperReports and several
other frameworks.  Feel free to contact me if you have questions about
implementation.

-- 
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com


Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Orion Letizi

If you think a talk on scaling Wicket with Terracotta would be interesting,
we'd love to come...

Cheers,
Orion


Johan Compagner wrote:
 
 Guys,
 
 we are already in the month of the great Wicket meetup in the netherlands
 So does anybody have idea's what you would like to see ?
 Do you want to see some short presentations? What would be good topics?
 
 Does anybody want to give a short presentation?
 
 johan
 
 
 
 On 10/16/07, Arje Cahn [EMAIL PROTECTED] wrote:



 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Wicket-meetup-%28the-netherlands%29-ideas-tf4751271.html#a13599620
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Looking for Wicket contract work

2007-11-05 Thread Julian Klappenbach
I have 15 years of software development experience, and I'm venturing into
self employment / contracting.  I would enjoy spending my time developing
applications with wicket, and thought that perhaps members here might know
of opportunities.

Resume and references available upon request.  Please respond in private to:

[EMAIL PROTECTED]

Regards,

Julian Klappenbach


Re: Wicket namespace?

2007-11-05 Thread Timo Rantalaiho
On Mon, 05 Nov 2007, Stefan Fußenegger wrote:
 I was asking myself the same a while ago. Today I found a file named
 wicket-xhtml1-strict.dtd in the SVN. You can find it at
 http://svn.apache.org/repos/asf/wicket/trunk/jdk-1.4/wicket/wicket-xhtml1-strict.dtd
  
 
 But I don't know whether this file is supported or not, as I haven't found
 anything in the docs. Does somebody know more?

I just know that I have used it and sometimes it has helped 
me. I had to add the wicket: attributes to my editor (IDEA)
by quick fix though, but that's just once per project.

Your mileage may vary.

I think that there is a Jira issue about this as well 
(What to do with the Wicket DTD or something such), so if
you have good ideas put them there :)

Best wishes,
Timo


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



Re: [ANNOUNCE] Eventful Launches

2007-11-05 Thread Eelco Hillenius
 After quite a bit of development, I'm happy to announce Eventful (
 http://www.eventfulhq.com) has launched to the general public.  Eventful is
 an online registration and event management application.  With Eventful, you
 can:

- Import your contact database
- Send personalized email campaigns
- Support registering guests and sending invitations
- Securely collect credit card information
- Manage staff, speakers and various pricing options
- Stay on top of your event with several real-time reports

 Eventful allows you to lower your event management cost while increasing
 revenue.  Unlike some competitors, Eventful doesn't have expensive annual
 contracts or per-attendee fees.  Eventful offers flexible, low-cost monthly
 subscriptions.  You can find out more about Eventful on the home page:
 http://www.eventfulhq.com.

 Eventful is built with Wicket, Hibernate, Spring, JasperReports and several
 other frameworks.  Feel free to contact me if you have questions about
 implementation.

Very nice!

Eelco

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



Re: Problem with selecting default value with DropDownChoice

2007-11-05 Thread Dmitry Kandalov
On Tuesday 06 November 2007 00:55:23 James Perry wrote:
 I empirically found out what the solution was to the problem of not
 selecting the correct default choice of the Manufacturer within Product!

 I added a ChoiceRendered to the constructor of DDC and it did the trick!

It seems like equals() doesn't work correctly.

Dima

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



Re: Wicket meetup (the netherlands) ideas

2007-11-05 Thread Martijn Dashorst
+1

On 11/6/07, Orion Letizi [EMAIL PROTECTED] wrote:

 If you think a talk on scaling Wicket with Terracotta would be interesting,
 we'd love to come...

 Cheers,
 Orion


 Johan Compagner wrote:
 
  Guys,
 
  we are already in the month of the great Wicket meetup in the netherlands
  So does anybody have idea's what you would like to see ?
  Do you want to see some short presentations? What would be good topics?
 
  Does anybody want to give a short presentation?
 
  johan
 
 
 
  On 10/16/07, Arje Cahn [EMAIL PROTECTED] wrote:
 
 
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Re%3A-Wicket-meetup-%28the-netherlands%29-ideas-tf4751271.html#a13599620
 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-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

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



strange error causing jetty to die without any real info

2007-11-05 Thread Brill Pappin
I'm getting a strange error that is cause my dev jetty instance to die.
The error is from wicket, but I'm not getting enough information in the
output to determine where to look.
 
Anyone have any idea what this is about?
 
I'm running this in Maven of course, with the jetty6 plugin.
Here is the output I do have:
 
 
:WARN:  failed MyApplication
:WARN:  failed
mailto:[EMAIL PROTECTED]/tourmaline,file:/D:/lobbythem-workspace/t
[EMAIL PROTECTED]/tourmaline,file:/D:/workspace/tourmaline/src/main/we
bapp/}
:WARN:  failed  mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED]
:WARN:  failed  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
:INFO:  Started SelectChannelConnector @ 0.0.0.0:8080
:WARN:  failed  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
[INFO] Jetty server exiting.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failure
 
Embedded error: wicket.Initializer cannot be cast to
org.apache.wicket.IInitializer
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Nov 06 02:39:23 EST 2007
[INFO] Final Memory: 10M/19M
[INFO]

:INFO:  Shutdown hook executing
:INFO:  Shutdown hook complete
 
- Brill Pappin