Wicket-jmx download (?)

2007-10-27 Thread Paolo Di Tommaso
Folks,

I'm looking for Wicket (1.2.x) JMX download but I'm unable to find in the
download page:

http://wicket.sourceforge.net/wicket-1.2/Download.html

Is there another location? How to get it?

Thanks,

Paolo


Re: Final Wicket course of 2007 in London November User Group

2007-10-27 Thread Uwe Schäfer

jweekend wrote:

Al and I have not had so much time of late but we have just agreed to run one
last scheduled London  http://jweekend.co.uk/dev/JW703/ 2 day Wicket course 
in 2007, over the weekend of November 3, 4. 
  

I´ve been there and i´d really recommend it. Details can be found here:
http://www.codesmell.org/confluence/display/~uwe/2007/10/27/Working+on+weekends...

cu uwe


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



Re: Wicket-jmx download (?)

2007-10-27 Thread Paolo Di Tommaso
Great .. thank you people!

On 10/27/07, Martijn Dashorst [EMAIL PROTECTED] wrote:


 http://sourceforge.net/project/showfiles.php?group_id=119783package_id=138753release_id=503024

 On 10/27/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
  Folks,
 
  I'm looking for Wicket (1.2.x) JMX download but I'm unable to find in
 the
  download page:
 
  http://wicket.sourceforge.net/wicket-1.2/Download.html
 
  Is there another location? How to get it?
 
  Thanks,
 
  Paolo
 


 --
 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]




Re: i18n feedbackmessages

2007-10-27 Thread nico

Johan Compagner schrieb:

why aren't you subclassing button and have a button that has that
modifier and use that one on all your forms?
  

doh! thanks, i haven't seen that obvious possibility
..is it right, to check wether the button is enabled in the 
onComponentTag event before putting the attribute?
to use the class simply add it by calling this.add(new 
I18nButton(button.id, new Model(buttontxt.key)); from

within your component.

import org.apache.wicket.Component;
import org.apache.wicket.behavior.AbstractBehavior;
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.model.IModel;

/**
* Internationalized button class
*/
public class I18nButton extends Button {

   /**
* The attribute modifier for i18n
*/
   private class I18nAttributeModifier extends AbstractBehavior {
  
   private String attribute;

   private String value;
  
   public I18nAttributeModifier(String attribute, String value) {

   this.attribute = attribute;
   this.value = value;
   }
  
   /**
* @see 
org.apache.wicket.behavior.AbstractBehavior#onComponentTag(org.apache.wicket.Component,

*  org.apache.wicket.markup.ComponentTag)
*/
   public void onComponentTag(final Component component, final 
ComponentTag tag)

   {
   if (isEnabled(component))
   {
   tag.getAttributes().put(attribute, getString(value));
   }
   }
   }   
  
   public I18nButton(final String id, final IModel model) {

   super(id, model);
   if (model.getObject() instanceof String) {
   String key = (String)model.getObject();
   add(this.new I18nAttributeModifier(value, key));
   } else
   new OperationNotSupportedException(Model needs to contain 
an object of type String.);

   }
}



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



Re: Best practises and advice for integrating Wicket with Spring

2007-10-27 Thread Timo Rantalaiho
On Fri, 19 Oct 2007, James Perry wrote:
 annotations. I am also interested to know if I should just keep an Spring
 ApplicationContext in Wicket's Application class, inject the proxy-based
 Service POJOs into the Application or just inject them into each component
 that needs to use my service's methods?

We have found it clearer to inject to each component,
otherwise each component gets a dependency to the Application
subclass which in turn gets dependencies to all services.

And you can easily inject to many non-Component classes, too

public class MyModel implements IModel {
@SpringBean(id = myDao) private MyDao myDao;

public MyModel() {
InjectorHolder.getInjector().inject(this);
}
...
}

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: Final Wicket course of 2007 in London November User Group

2007-10-27 Thread Uwe Schäfer

Uwe Schäfer schrieb:

jweekend wrote:
Al and I have not had so much time of late but we have just agreed to 
run one
last scheduled London http://jweekend.co.uk/dev/JW703/ 2 day Wicket 
course in 2007, over the weekend of November 3, 4. 

I´ve been there and i´d really recommend it. Details can be found here:

Link was broken, sorry. Here´s the correct address:
http://TinyURL.com/yw99e8

cu uwe


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



Re: i18n feedbackmessages

2007-10-27 Thread Johan Compagner
yes checking for enabled there is fine
(thats why wicket also does for setting the enabled attribute)

johan



On 10/27/07, nico [EMAIL PROTECTED] wrote:

 Johan Compagner schrieb:
  why aren't you subclassing button and have a button that has that
  modifier and use that one on all your forms?
 
 doh! thanks, i haven't seen that obvious possibility
 ..is it right, to check wether the button is enabled in the
 onComponentTag event before putting the attribute?
 to use the class simply add it by calling this.add(new
 I18nButton(button.id, new Model(buttontxt.key)); from
 within your component.

 import org.apache.wicket.Component;
 import org.apache.wicket.behavior.AbstractBehavior;
 import org.apache.wicket.markup.ComponentTag;
 import org.apache.wicket.markup.html.form.Button;
 import org.apache.wicket.model.IModel;

 /**
 * Internationalized button class
 */
 public class I18nButton extends Button {

/**
 * The attribute modifier for i18n
 */
private class I18nAttributeModifier extends AbstractBehavior {

private String attribute;
private String value;

public I18nAttributeModifier(String attribute, String value) {
this.attribute = attribute;
this.value = value;
}

/**
 * @see
 org.apache.wicket.behavior.AbstractBehavior#onComponentTag(
 org.apache.wicket.Component,
 *  org.apache.wicket.markup.ComponentTag)
 */
public void onComponentTag(final Component component, final
 ComponentTag tag)
{
if (isEnabled(component))
{
tag.getAttributes().put(attribute, getString(value));
}
}
}

public I18nButton(final String id, final IModel model) {
super(id, model);
if (model.getObject() instanceof String) {
String key = (String)model.getObject();
add(this.new I18nAttributeModifier(value, key));
} else
new OperationNotSupportedException(Model needs to contain
 an object of type String.);
}
 }



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




Re: OT: API to calculate distances from zip code

2007-10-27 Thread Matt Jensen


If you want to implement this for yourself, you need to start with two 
pieces: a database of zip code data including latitude/longitude, and 
(to make things as simple as possible) an OpenGIS extension package for 
your database.  This gives you the ability to index on 
latitude/longitude and do quick lookups using a distance function in 
the WHERE clause of your query.  The implementation for PostgreSQL is 
called PostGIS (http://www.postgis.org); if you're using some other 
database then you will have to find the equivalent extension on your 
own.  I wouldn't be surprised if some high end databases have this 
functionality built in.


Zip code databases are available from about a million different 
sources.  I was most pleased with the offering from 
http://www.zipcodeworld.com, but I'm sure that I did not investigate 
them all.  In my experience, the data is a bit shoddy in all of these 
collections.  You may not have problems with that until you try to 
combine it with something like gazetteer data.  In about 2,000 cases, 
that becomes a nightmare.  If you can avoid that...do!


I have an SQL INSERT script which was generated off of the September 
topical gazetteer and zip code databases, but with everything pulled in 
I believe it weighs in at something like 40MB. :-/


Tauren Mills wrote:

I apologize for this being off topic, but I have a feeling some of you
might have some ideas for me.

I'd like to implement a feature that will search for all physical
locations in my database that are within a radius of a zip code.  In
other words, the user enters a zip code and selects a distance from a
drop down list (5 mi, 10 mi, 25 mi, 50 mi, etc.) and a list of all
locations within that distance of the zip code will be displayed.  You
can see something similar to this at:
http://www.restaurant.com/

Are there any web services out there that would simplify this task?  I
have been looking at the Google Geocoding API
(http://www.google.com/apis/maps/documentation/services.html), but am
not sure how much it will help.  I could geocode locations as they are
added to my database and store the lat/long, but I get fuzzy on how to
proceed from there.  Somehow my SQL query (using hibernate) would need
to do some computation to see if the lat/long stored in the DB is
within the specified radius from the lat/long of the specified zip
code.

I guess I mostly want to hear from others if this would be the way
they would do it, or if there is some other way that would work better
or be simpler.

Thanks!
Tauren

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


  



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



Re: wicket-1.3.0-beta4 source?

2007-10-27 Thread Frank Bille
What do you mean?

src/jdk-1.4/wicket
src/jdk-1.4/wicket-extensions
src/jdk-1.5/wicket-examples
etc.

Frank

On 10/27/07, SamImari [EMAIL PROTECTED] wrote:


 Hello,

 Where can I download the source for wicket 1.3.0-Beta4

 I have download the files from
 http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

 But they do not include the wicket-sourcecode.

 Regards,

 SAM
 --
 View this message in context:
 http://www.nabble.com/wicket-1.3.0-beta4-source--tf4703795.html#a13445136
 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: how to add a confirm window to a Link button?

2007-10-27 Thread Eelco Hillenius
 That's great sample, thanks so much Jan, I will try that soon!

Also see this: 
http://chillenious.wordpress.com/2006/11/30/ask-confirmation-on-link-clicks-with-wicket/

Eelco

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



Re: TagTester - Howto get the value?

2007-10-27 Thread Frank Bille
Hi,

You can use the TagTester#getMarkup():

Get markup for this tag. This includes every markup which is between the
open tag and the close tag.

If this doesn't work for you please add an RFE.

Frank

On 10/26/07, Per Newgro [EMAIL PROTECTED] wrote:

 Hi,

 should i add an RFE for this?

 Per
 --
 Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
 Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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




recommend a CMS to integrate w/our wicket-based webapp?

2007-10-27 Thread dukehoops

Hi,

We're developing our (social networking ;- ) site using wicket talking to
our Spring-managed services layer. We're going to need to provide content
management features for our internal users (admins, moderators, marketers)
and I'm exploring possible solutions. 

I realize we can build our own CMS but I wonder whether any of the existing
(mature) systems would play nicely with a wicket based app. 

I see pages on our site being divided into three groups: 
1. dynamic pages composed and rendered by wicket (ex: user profile page)
2. static pages composed and rendered by some CMS (say opencms, joomla or
whatever else) (ex: faq, legal section, static promo)
3. hybrid pages: a wicket page that someone includes a cms-managed module.
(ex: marketing wants to add  and mange a promo area to user profile pages)

What I'd like to avoid is to have the CMS dictate the way our dynamic
(wicket-based) pages are built.

Have you added a pre-made CMS to your wicket-based webapp? Or, in other
words, do you have a site where pages divide into the above 3 catogories? If
so, could you please share with CMS did you choose and how did you
integrate?

thanks
-nikita
-- 
View this message in context: 
http://www.nabble.com/recommend-a-CMS-to-integrate-w-our-wicket-based-webapp--tf4704210.html#a13446376
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Nov 6, London Wicket User Group Event - new location/presentation

2007-10-27 Thread jweekend

This time I am going to talk about Trees in Wicket (yes Matej, that
probably means I'll have a few more questions for you next week ;-). Let
me know in the next couple of days if anyone is interested in this topic or
has another idea. Al will also post his presentation's topic here early next
week. As always, bring along your laptops and questions.
There'll also be a free prize-draw with one lucky guest (other than Al and
I) winning MEAP access to  http://chillenious.wordpress.com/ Eelco  and 
http://martijndashorst.com/blog/ Martijn 's excellent 
http://manning.com/dashorst/ Wicket In Action . 

jWeekend have hired a room for Tuesday, Nov 6 at the Academy of Management
Studies, London 
http://maps.google.co.uk/maps?f=qhl=engeocode=time=date=ttype=q=nw6+4hyie=UTF8om=1ll=51.538648,-0.178785spn=0.027173,0.061026z=14
NW6 4HY . The event is still free to all, as always; jWeekend will cover all
costs and provide the equipment.  If you want to make a presentation just
let us know when you register. 
The full address (including which buzzer to ring) will be on the 
http://jweekend.co.uk/dev/LWUGReg/ registration page . 

The location is about 10-15 minutes away from just about anywhere in central
London and also very easy to get to - it is 10 minutes or less walk from all
of the following:

Tube:
Kiburn Park (Bakerloo)
Kilburn (Jubilee)
West Hampstead (Jubilee)

Train:
Kilburn High Road
Brondesbury Park
West Hampstead
West Hampstead Thameslink

Bus:
The bus-stops just outside the offices are on all sorts of routes throughout
London. 
http://www.tfl.gov.uk/tfl/gettingaround/maps/buses/pdf/kilburnhighroad-2148.pdf
(bus map) .

It's a bit smaller than our previous locations, so please register early if
you'd like to come (and importantly, please remember to use  the link in the
automated email to either confirm or cancel your booking so we can give the
maximum number of people the opportunity to join us).
Obviously, this lively part of London also has plenty of places for food and
drink as well.
See you there.

Regards - Cemal
http://jWeekend.co.uk jWeekend.co.uk 
-- 
View this message in context: 
http://www.nabble.com/Nov-6%2C-London-Wicket-User-Group-Event---new-location-presentation-tf4704430.html#a13447115
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Repeaters' use of WebMarkupContainer question

2007-10-27 Thread skatz

Hi,

Could someone give me some insight into the use of WebMarkupContainers with
repeaters.  In particular, I was wondering how come there does not need to
be markup that has the id of the interposed WebMarkupContainer?  (Also, a
pointer to the code, if it exists, where repeaters do special handing of
their direct children.)

Here is a code snippet from the examples:

...

RepeatingView repeating = new RepeatingView(repeating);
add(repeating);

int index = 0;
while (contacts.hasNext())
{
WebMarkupContainer item = new
WebMarkupContainer(repeating.newChildId());
repeating.add(item);
Contact contact = (Contact)contacts.next();

item.add(new ActionPanel(actions, new
DetachableContactModel(contact)));
item.add(new Label(contactid,
String.valueOf(contact.getId(;
item.add(new Label(firstname, contact.getFirstName()));
item.add(new Label(lastname, contact.getLastName()));
item.add(new Label(homephone, contact.getHomePhone()));
item.add(new Label(cellphone, contact.getCellPhone()));
...

How come the markup parser doesn't get upset that there is no component with
the wicket:id=repeating.newChildId()?



-- 
View this message in context: 
http://www.nabble.com/Repeaters%27-use-of-WebMarkupContainer-question-tf4704749.html#a13448018
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Pointer to example use of non-deprecated Fragment contructor

2007-10-27 Thread skatz

Hi,

The examples seem to use the deprecated constructor for Fragment.  Is there
an example/explanation of the non-deprecated ones?
-- 
View this message in context: 
http://www.nabble.com/Pointer-to-example-use-of-non-deprecated--Fragment-contructor-tf4704754.html#a13448026
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: TagTester - Howto get the value?

2007-10-27 Thread Frank Bille
I have added a getValue to TagTester. See
https://issues.apache.org/jira/browse/WICKET-1106

Frank


On 10/27/07, Frank Bille [EMAIL PROTECTED] wrote:

 Hi,

 You can use the TagTester#getMarkup():

 Get markup for this tag. This includes every markup which is between the
 open tag and the close tag.

 If this doesn't work for you please add an RFE.

 Frank

 On 10/26/07, Per Newgro [EMAIL PROTECTED] wrote:
 
  Hi,
 
  should i add an RFE for this?
 
  Per
  --
  Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
  Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: Repeaters' use of WebMarkupContainer question

2007-10-27 Thread Igor Vaynberg
direct children of a repeater inherit the markup, so you can do
something like this:

a wicket:id=repeaterspan wicket:id=label//a

repeatingview repeater=new repeatingview(repeater);
for (int i=0;i10;i++) {
  Link link=new Link(repeater.newchildid()) { };
  repeater.add(link);
  link.add(new label(label, +i));
}

this works fine when a repeater only contains one direct child per
iteration - the link we added does not have siblings

but now lets say inside repeater you want two siblings

div wicket:id=repeaterspan wicket:id=label/input
wicket:id=textfield type=text//div

so each item has two siblings - a label and a textfield. so what do we
add to a repeater? it has to be something that can be attached to a
div tag, has no behavior, yet can contain any number of components -
best thing that fits is a WebMarkupContainer.

so our code is like this:

repeatingview repeater=new repeatingview(repeater);
for (int i=0;i10;i++) {
  webmarkupcontainer container=new webmarkupcontainer(repeater.newchildid());
  repeater.add(item);
  item.add(new label(label, text field +i));
  item.add(new textfield(textfield));
}

hope this helps...

-igor


On 10/27/07, skatz [EMAIL PROTECTED] wrote:

 Hi,

 Could someone give me some insight into the use of WebMarkupContainers with
 repeaters.  In particular, I was wondering how come there does not need to
 be markup that has the id of the interposed WebMarkupContainer?  (Also, a
 pointer to the code, if it exists, where repeaters do special handing of
 their direct children.)

 Here is a code snippet from the examples:

 ...

 RepeatingView repeating = new RepeatingView(repeating);
 add(repeating);

 int index = 0;
 while (contacts.hasNext())
 {
 WebMarkupContainer item = new
 WebMarkupContainer(repeating.newChildId());
 repeating.add(item);
 Contact contact = (Contact)contacts.next();

 item.add(new ActionPanel(actions, new
 DetachableContactModel(contact)));
 item.add(new Label(contactid,
 String.valueOf(contact.getId(;
 item.add(new Label(firstname, contact.getFirstName()));
 item.add(new Label(lastname, contact.getLastName()));
 item.add(new Label(homephone, contact.getHomePhone()));
 item.add(new Label(cellphone, contact.getCellPhone()));
 ...

 How come the markup parser doesn't get upset that there is no component with
 the wicket:id=repeating.newChildId()?



 --
 View this message in context: 
 http://www.nabble.com/Repeaters%27-use-of-WebMarkupContainer-question-tf4704749.html#a13448018
 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: Pointer to example use of non-deprecated Fragment contructor

2007-10-27 Thread Igor Vaynberg
javadoc on the nondeprecated constructor is not good enough?

-igor


On 10/27/07, skatz [EMAIL PROTECTED] wrote:

 Hi,

 The examples seem to use the deprecated constructor for Fragment.  Is there
 an example/explanation of the non-deprecated ones?
 --
 View this message in context: 
 http://www.nabble.com/Pointer-to-example-use-of-non-deprecated--Fragment-contructor-tf4704754.html#a13448026
 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]