Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread Matthew Young
Instead of submit, pop up a dialog telling the user to choose a file to
upload?  As is now, the UploadProgressBar show up, form submit ,
getFileUpload returns null and error handling happens on the server.


Re: PropertyModel with default null model object ?

2008-05-02 Thread Per Newgro
The code you provided should work. The NPEs comes from within the Panel? So 
can you give us an example how you access the model in the panel (with an NPE 
throwing component)?

Cheers
Per

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



Re: Is it possible to hide /?wicket:.. from the URLs

2008-05-02 Thread Johan Compagner
it looks a lot like UrlCompressingWebRequestProcessor

On Fri, May 2, 2008 at 4:15 AM, Jonathan Locke [EMAIL PROTECTED]
wrote:



 sorry, i should have cross posted this to the dev list.  it's really a
 feature idea and not something i'd expect user to implement.


 Ritz123 wrote:
 
  I am relatively new to Wicket. So it will take me some time to digest
 what
  you just mentioned below.
 
  In the meantime, if you have time, little detailed explanation is very
  welcome.
 
 
  Jonathan Locke wrote:
 
 
  interesting idea:
 
  collapse the constant part (component hierarchy path and listener
  interface) into an interned string list in application shared by all
  components (application metadata probably).  then just encode the
 wicket
  listener url as just the index into that list.  for degenerate cases
  where the ui can grow arbitrarily large (not true of most wicket apps),
  you could limit the size of this string list.  this would turn a url
  like:
 
 
 /wicket/examples/linkomatic/;jsessionid=240331A81323E282FE78E8C8C0DC894F?wicket:interface=:0:actionLink::ILinkListener::
 
  into
 
 
 /wicket/examples/linkomatic/;jsessionid=240331A81323E282FE78E8C8C0DC894Fwicket:url=1
 
  or
 
 
 /wicket/examples/linkomatic/1;jsessionid=240331A81323E282FE78E8C8C0DC894F
 
  or whatever...
 
 
  Ritz123 wrote:
 
  Hi,
 
  Was wondering if its possible to hide wicket name from the URLs
  (stateless and stateful). One might not want to show their end users
  that wicket is being used behind the scenes.
 
  Also I noticed even if page has bookmarkable links - the links show
  relative ../../../../mount/params!! Is there anyway to have
  complete(absolute urls) with the hostname?
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Is-it-possible-to-hide---wicket%3A..-from-the-URLs-tp16972147p16996466.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: A few clustering questions

2008-05-02 Thread richardwilko

Thanks for the feedback.

You for anyone elses information, after following the instructions here:
http://docs.codehaus.org/display/JETTY/Session+Clustering+with+Terracotta

I found that I had to include the terracotta wicket module, as I was getting
terracotta exceptions without it.

But now clustering with terracotta seems to work, i can shut down the
instance im running on and my session is still valid on the other instance.




Matej Knopp-2 wrote:
 
 Hi,
 
 On Thu, May 1, 2008 at 12:38 PM, richardwilko
 [EMAIL PROTECTED] wrote:

  Hi,

  Im looking into clustering our wicket app and have a few questions.  We
 are
  using jetty 6.

  1) We have to use the SecondLevelCacheSessionStore (default in 1.3) for
  clustering to work correctly, is this correct or does it still work with
 a
  HttpSessionStore?
 It will work with httpsessionstore, but it's not really recommended to
 use.

  2) Wicket just piggybacks whatever we use for session clustering in
 jetty,
  is this correct?  So if we use Terracotta or WADI to cluster jetty,
 things
  will just work, is this right?
 Yes. But in order to leverage wicket clustering support you have to
 configure your container NOT to keep session attributes serialized
 after replication. This is default in tomcat, for other containers I'm
 not 100% sure.

  3) I've seen a wicket-cluster project in the wicketstuff repo, can
 anyone
  give me any information on this?  I'm struggling to find some
 documentation.
 Wicket-cluster is a simple session replication implementation for
 Jetty. It can be considered a simpler alternative to WADI. It also
 contains a special clustered diskpagestore, but that is irrelevate
 with the most recent wicket version (as the pagestore clustering
 support is built-in to wicket to work independently of containers).
 

  4) If we use Terracotta, does this mean we have to follow the
 instructions
  here http://www.terracotta.org/confluence/display/integrations/Wicket
 too?
 Perhaps. But this clusters actual wicket calls, so you'll get lot of
 overhead. I've was curious and been profiling this and the result was
 that clustring wicket applications with terracotta was lot slower that
 simple http session replication. but I'm not a terracotta expert, my
 setup might have been flawed and I don't really have any numbers (been
 quite some time ago).
 
 Still, due to the way secondlevelcachesessionstore works, simple
 session replication is IMHO much better alternative for Wicket.
 DiskPageStore serializes pages anyway (clustered environment or not)
 and we cache the serialized data during session replication, so there
 is very little overhead in regards of pageserialization if you deploy
 a wicket application on a cluster. The only thing to consider, as I
 mentioned before, is to configure your container to deserialize
 session attributes immediately after being replicated to another
 cluster node. Wicket uses this to save the serialized page to target
 node's diskpagestore.
 
 -Matej

  Thanks for any help anyone can give me.

  Richard
  --
  View this message in context:
 http://www.nabble.com/A-few-clustering-questions-tp16993201p16993201.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


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


 
 
 
 -- 
 Resizable and reorderable grid components.
 http://www.inmethod.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/A-few-clustering-questions-tp16993201p17010177.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Testing with IModel mocks

2008-05-02 Thread Per Newgro
Hi *,

i try to test a page with some panels. They all get their models thru the 
constructor. The assigned models are always implementing IModel. At the 
highest level (page) there is a CompoundPropertyModel and all sub-components 
use a chain of PropertyModels. So far so good.

Now i try to use easymock - interface api to unit test the page. I assign 
the mock proxy (IMpdel) to the page and the sub-components should get their 
part of the model. The problem is that i can't find a way to give the 
sub-component an appropriate new IModel mock proxy, because on the original 
IModel only getObject() will be called. I don't have the abillity to 
distinguish by property expression.

Another way would be to use the class extension of easymock. But i would like 
to avoid it. Maybe someone solved this issue somehow with only usage of the 
easymock - interface api.

I hope i made my points clear.

Thanks
Per

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



Re: Javascript error in wicket

2008-05-02 Thread Peter Ertl
Of course it's there... The script seems to be broken (Firefox issue,  
not Wicket)



Am 30.04.2008 um 16:44 schrieb Vitaly Tsaplin:


  This file exists. I can open it...

On Wed, Apr 30, 2008 at 2:52 PM, Peter Ertl [EMAIL PROTECTED]  
wrote:

that's not wicket but firefox...

try reading the filename:



file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js




Am 30.04.2008 um 12:17 schrieb Vitaly Tsaplin:






Hi everyone,

Firebug is complaining as follows:

[Exception... Component is not available nsresult: 0x80040111
(NS_ERROR_NOT_AVAILABLE) location: JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753 data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...

Any ideas?

Vitaly

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




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




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



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



Re: Testing with IModel mocks

2008-05-02 Thread James Carman
I don't usually mock the actual models.  If I'm using a
LoadableDetachableModel, I'll mock the DAO or repository that the
model is using to find its data, but I never actually mock the model
itself.

On Fri, May 2, 2008 at 5:30 AM, Per Newgro [EMAIL PROTECTED] wrote:
 Hi *,

  i try to test a page with some panels. They all get their models thru the
  constructor. The assigned models are always implementing IModel. At the
  highest level (page) there is a CompoundPropertyModel and all sub-components
  use a chain of PropertyModels. So far so good.

  Now i try to use easymock - interface api to unit test the page. I assign
  the mock proxy (IMpdel) to the page and the sub-components should get their
  part of the model. The problem is that i can't find a way to give the
  sub-component an appropriate new IModel mock proxy, because on the original
  IModel only getObject() will be called. I don't have the abillity to
  distinguish by property expression.

  Another way would be to use the class extension of easymock. But i would like
  to avoid it. Maybe someone solved this issue somehow with only usage of the
  easymock - interface api.

  I hope i made my points clear.

  Thanks
  Per

  -
  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: Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread James Carman
Can you just mark it as required?

On Fri, May 2, 2008 at 2:15 AM, Matthew Young [EMAIL PROTECTED] wrote:
 Instead of submit, pop up a dialog telling the user to choose a file to
  upload?  As is now, the UploadProgressBar show up, form submit ,
  getFileUpload returns null and error handling happens on the server.


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



Advisory question

2008-05-02 Thread Martijn Lindhout
Hi,

My web app background is from page oriented frameworks, and now while
using wicket, I find myself creating pages over and over.
I think I can miss many of them, because most of the time all I do is
adding an intelligent reusable component to it.

How do you guys handle this? Are you creating some basepage that is
suitable to contain more than one functional part of your application?
Or just create page by page?

-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29

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



Re: Unable to close modalwindow

2008-05-02 Thread Maurice Marrink
Did you try my suggestions?
What does the code look like now?
Can you reproduce this in a quickstart?
If you want our help you need to give us some more info.

Maurice

On Fri, May 2, 2008 at 7:50 AM, tsuresh [EMAIL PROTECTED] wrote:

  Hello All,
I am still unable to close this modal window. Could someone please help
  me to close it or show my mistakes in the code in the first post.

  thanks
  tsuresh
  --
  View this message in context: 
 http://www.nabble.com/Unable-to-close-modalwindow-tp16981993p16996698.html


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


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



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



Re: Advisory question

2008-05-02 Thread Maurice Marrink
The nice thing about wicket is that it will give you freedom to choose
whatever you like.
You can create individual pages but if you markup is mostly the same
it is easy to to use markup inheritance from a single basepage.
You can also have just one page and replace panels as required.
It is all a matter of personal preference / application needs.
From what you are describing you might want to take a look at
http://cwiki.apache.org/WICKET/markup-inheritance.html

Maurice

On Fri, May 2, 2008 at 12:36 PM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
 Hi,

  My web app background is from page oriented frameworks, and now while
  using wicket, I find myself creating pages over and over.
  I think I can miss many of them, because most of the time all I do is
  adding an intelligent reusable component to it.

  How do you guys handle this? Are you creating some basepage that is
  suitable to contain more than one functional part of your application?
  Or just create page by page?

  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29

  -
  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: Advisory question

2008-05-02 Thread Martijn Lindhout
thanx, I know the inheritance thing and I'm actually using is. I'm
just curious what others are doing ;-)

2008/5/2 Maurice Marrink [EMAIL PROTECTED]:
 The nice thing about wicket is that it will give you freedom to choose
  whatever you like.
  You can create individual pages but if you markup is mostly the same
  it is easy to to use markup inheritance from a single basepage.
  You can also have just one page and replace panels as required.
  It is all a matter of personal preference / application needs.
  From what you are describing you might want to take a look at
  http://cwiki.apache.org/WICKET/markup-inheritance.html

  Maurice



  On Fri, May 2, 2008 at 12:36 PM, Martijn Lindhout
  [EMAIL PROTECTED] wrote:
   Hi,
  
My web app background is from page oriented frameworks, and now while
using wicket, I find myself creating pages over and over.
I think I can miss many of them, because most of the time all I do is
adding an intelligent reusable component to it.
  
How do you guys handle this? Are you creating some basepage that is
suitable to contain more than one functional part of your application?
Or just create page by page?
  
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29
  
-
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]





-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29

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



ajax progress indicator

2008-05-02 Thread i ii

is documentation available for ajax progess indicator. i cannot find :(


Re: ajax progress indicator

2008-05-02 Thread Martin Makundi
I haven't found much. Here are some snipplets that may be of use:

public class AjaxIndicatorContainer extends WebMarkupContainer {
  /**
   * Constructor for TODO
   * @param form
   */
  public AjaxIndicatorContainer(Form form) {
super(ajaxIndicator); // wicket:id
setOutputMarkupId(true);
setMarkupId(ajaxIndicatorId); // markup:id
form.add(this);
  }

  /**
   * @see 
org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
   */
  @Override
  protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
  }
}


final AjaxIndicatorContainer indicatorContainer = new
AjaxIndicatorContainer(loginForm);

{
  final AjaxButton loginButton = new
AbstractAjaxIndicatorAwareButton(LOGIN_BUTTON, loginForm) {

/**
 * @see
org.apache.wicket.ajax.markup.html.form.AjaxButton#onSubmit(org.apache.wicket.ajax.AjaxRequestTarget,
org.apache.wicket.markup.html.form.Form)
 */
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
  processLogin(userIdField, passwdField);
  target.addComponent(feedbackPanel); // Update feedback panel too
}

public String getAjaxIndicatorMarkupId() {
  return indicatorContainer.getMarkupId();
}
  };
  loginForm.add(loginButton);
}

2008/5/2 i ii [EMAIL PROTECTED]:

  is documentation available for ajax progess indicator. i cannot find :(


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



questions about Matt Raible's web framework comparison

2008-05-02 Thread David Chang
I just started migrating from Spring MVC to Wicket. I
found Matt Raible's interesting slides at this place:

http://static.raibledesigns.com/repository/presentations/ComparingJavaWebFrameworks-ApacheConUS2007.pdf

Matt's says 

1. regarding Bookmarking and URLs, Wicket allows
pages/URLs to be mounted. What does this mounted
mean? Can somebody provide an example?

2. regarding Post and Redirect, Wicket has flash
support. What is flash support?

3. regarding Page Decoration, SiteMesh is not
supported or recommended for use with Wicket. This
worries me since I am Sitemesh fan. Can Sitemesh be
FULLY integrated with Wicket? Any Wicket user did
this?

Thank you so much for help!

David


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: questions about Matt Raible's web framework comparison

2008-05-02 Thread Johan Compagner
 Matt's says

 1. regarding Bookmarking and URLs, Wicket allows
 pages/URLs to be mounted. What does this mounted
 mean? Can somebody provide an example?


you can mount a (bookmarkable) page on an url of your choice like:

application.mount(/login, LoginPage.class)

then the login page will be shown when somebody does http://host/login



 2. regarding Post and Redirect, Wicket has flash
 support. What is flash support?


If you have error or info messages that these are  shown over multiply
requests
So if you do a redirect you dont loose those messages.

Wicket just cleans the messages when they are rendered once (when ever that
happens)



 3. regarding Page Decoration, SiteMesh is not
 supported or recommended for use with Wicket. This
 worries me since I am Sitemesh fan. Can Sitemesh be
 FULLY integrated with Wicket? Any Wicket user did
 this?


I dont think sitemesh will be a great match for wicket at an time
It is really build for different  frameworks.
Wicket has for that build in support with Markup Inheritance and Panels

I guess if you are in mixed world (wicket and a jsp x framework) you could
try to mix that with sitemesh

johan


RE: ajax progress indicator

2008-05-02 Thread i ii

much work for simple feature, no?

 Date: Fri, 2 May 2008 15:46:04 +0300
 From: [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Subject: Re: ajax progress indicator
 
 I haven't found much. Here are some snipplets that may be of use:
 
 public class AjaxIndicatorContainer extends WebMarkupContainer {
   /**
* Constructor for TODO
* @param form
*/
   public AjaxIndicatorContainer(Form form) {
 super(ajaxIndicator); // wicket:id
 setOutputMarkupId(true);
 setMarkupId(ajaxIndicatorId); // markup:id
 form.add(this);
   }
 
   /**
* @see 
 org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
*/
   @Override
   protected void onComponentTag(ComponentTag tag) {
 super.onComponentTag(tag);
 tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
   }
 }
 
 
 final AjaxIndicatorContainer indicatorContainer = new
 AjaxIndicatorContainer(loginForm);
 
 {
   final AjaxButton loginButton = new
 AbstractAjaxIndicatorAwareButton(LOGIN_BUTTON, loginForm) {
 
 /**
  * @see
 org.apache.wicket.ajax.markup.html.form.AjaxButton#onSubmit(org.apache.wicket.ajax.AjaxRequestTarget,
 org.apache.wicket.markup.html.form.Form)
  */
 @Override
 protected void onSubmit(AjaxRequestTarget target, Form form) {
   processLogin(userIdField, passwdField);
   target.addComponent(feedbackPanel); // Update feedback panel too
 }
 
 public String getAjaxIndicatorMarkupId() {
   return indicatorContainer.getMarkupId();
 }
   };
   loginForm.add(loginButton);
 }
 
 2008/5/2 i ii [EMAIL PROTECTED]:
 
   is documentation available for ajax progess indicator. i cannot find :(
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: ListView is not gettting updated

2008-05-02 Thread Patel, Sanjay
Does anyone have any input on this? Help will be appreciated.

Thanks,
Sanjay

-Original Message-
From: Patel, Sanjay [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 01, 2008 8:52 AM
To: users@wicket.apache.org
Subject: RE: ListView is not gettting updated

I set model of the radio on the group because I want one of the radio in
the group to be selected based on some condition.

Let me tell you my exact requirement. There are 12 diff. rows having
three radio buttons in each row.  I can select only one radio in each
row so I put all three radios in radio group. Also I want one of the
radio in the group to be selected by default based on some condition so
I set model of radio on the group.

Please let me know the better way of doing this.

Thanks,
Sanjay.

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 30, 2008 7:27 PM
To: users@wicket.apache.org
Subject: Re: ListView is not gettting updated

And thats logical, your code looks weird.
You cant set the model of a radio also on the group.
Then the submit will update the selected in the radio groups model.
Butthen the radio model is also uopdated. So that one is still
selected..

On 4/30/08, Patel, Sanjay [EMAIL PROTECTED] wrote:
 I already tried it but it is not working.

 I have to do following (which I don't want) to update the listView 
 after I submit the form.

 listView.setModel(new Model((Serializable) updatedList));

 -Original Message-
 From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 30, 2008 2:02 PM
 To: users@wicket.apache.org
 Subject: Re: ListView is not gettting updated

 listview.setreuseitems(true), read listview's javadoc

 -igor

 On Wed, Apr 30, 2008 at 10:59 AM, Patel, Sanjay [EMAIL PROTECTED]
 wrote:
 
   Hi,
 
   I am using ListView and and each item in the listview is
RadioGroup.
  Now  the problem is, If radio1 is selected and I select radio2 and 
  submit  the form the selection goes back to radio1. What is wrong 
  with

  following  code?
 
   final ListView listView = new ListView(abc, myList) {
  protected final void populateItem(final 
  ListItem
   item) {
  final MyObject object = (MyObject) 
  item.getModelObject();
  final RadioGroup radioGroup = new 
  RadioGroup(radio-group, new Model());
 
  final Model radioModel1 = new 
  Model(myObject1);
  final Model radioModel2 = new 
  Model(myObject2);
  final Model radioModel3 = new 
  Model(myObject3);
 
  radioGroup.add(new Radio(radio1, 
  radioModel1));
  radioGroup.add(new Radio(radio2, 
  radioModel2));
  radioGroup.add(new Radio(radio2, 
  radioModel3));
 
  // set default value for radio.
  if (object.isTrue() != null 
   object.isTrue()) {
 
   radioGroup.setModel(radioModel1);
  } else if (object.isFalse() != null 
  
   object.isFalse()) {
 
   radioGroup.setModel(radioModel2);
  } else {
 
   radioGroup.setModel(radioModel3);
  }
  item.add(radioGroup);
  }
  };
  form.add(listView);
 
 
   
  
  -  To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



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


-
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: Difficulty getting QuickStart

2008-05-02 Thread Frank Silbermann
Of course I am.  Who isn't, these days?  /Frank 

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

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

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

 requires Maven,  which I've never before used.  I downloaded and 
 installed Maven (I  assume correctly) and then followed the 
 instructions to get the  QuckStart application, but the Maven command 
 failed with the following  output.  Can anyone tell me what I did 
 wrong?  (I apologize if this is  really a Maven question, but 
 obtaining QuickStart is my only reason for  messing with Maven.)

   C:\mvn archetype:create -DarchetypeGroupId=org.apache.wicket
  -DarchetypeArtifactId=wicket-archetype-quickstart
  -DarchetypeVersion=1.3.3 -DgroupId=com.mycompany 
 -DartifactId=myproject  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [INFO] org.apache.maven.plugins: checking for updates from central  
 [WARNING] repository metadata for: 'org.apache.maven.plugins' could 
 not  be retrieved from repository: central due to an error: Error  
 transferring file  [INFO] Repository 'central' will be blacklisted  
 [INFO]
  
 --
 --
  [ERROR] BUILD ERROR
  [INFO]
  
 --
 --  [INFO] The plugin 
 'org.apache.maven.plugins:maven-archetype-plugin' does  not exist or 
 no valid version could be found  [INFO]
  
 --
 --  [INFO] For more information, run Maven with the -e switch  [INFO]
  
 --
 --
  [INFO] Total time: 21 seconds
  [INFO] Finished at: Thu May 01 15:42:12 CDT 2008  [INFO] Final 
 Memory: 1M/2M  [INFO]
  
 --
 --



  /Frank



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


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



RE: Advisory question

2008-05-02 Thread Frank Silbermann
So when do we get the Addison-Wesley book on _Wicket_Patterns_?  :-) 

-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 02, 2008 5:51 AM
To: users@wicket.apache.org
Subject: Re: Advisory question

The nice thing about wicket is that it will give you freedom to choose
whatever you like.
You can create individual pages but if you markup is mostly the same it
is easy to to use markup inheritance from a single basepage.
You can also have just one page and replace panels as required.
It is all a matter of personal preference / application needs.
From what you are describing you might want to take a look at
http://cwiki.apache.org/WICKET/markup-inheritance.html

Maurice

On Fri, May 2, 2008 at 12:36 PM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
 Hi,

  My web app background is from page oriented frameworks, and now while

 using wicket, I find myself creating pages over and over.
  I think I can miss many of them, because most of the time all I do is

 adding an intelligent reusable component to it.

  How do you guys handle this? Are you creating some basepage that is  
 suitable to contain more than one functional part of your application?
  Or just create page by page?

  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29

  -
  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: Difficulty getting QuickStart

2008-05-02 Thread James Carman
Maven requires some setup to get through your proxy server.  Look for
your MAVEN_HOME/conf/settings.xml file.  There's an example of how to
set up a proxy server.  That should fix it, I would think.  The
central repository is working for me. :)  Good luck!


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


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


 Subject: Re: Difficulty getting QuickStart

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

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

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



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


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



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



Re: questions about Matt Raible's web framework comparison

2008-05-02 Thread John Krasnay
On Fri, May 02, 2008 at 05:48:36AM -0700, David Chang wrote:
 I just started migrating from Spring MVC to Wicket. I
 found Matt Raible's interesting slides at this place:
 
 http://static.raibledesigns.com/repository/presentations/ComparingJavaWebFrameworks-ApacheConUS2007.pdf
 
 Matt's says 
 
 1. regarding Bookmarking and URLs, Wicket allows
 pages/URLs to be mounted. What does this mounted
 mean? Can somebody provide an example?
 

It means to attach a relative URL to the page, e.g. mounting LoginPage
to /login means you can get to the LoginPage via the URL
http://foo.com/myapp/login. If you don't mount the page, Wicket
generates a URL that's not as nice.

 2. regarding Post and Redirect, Wicket has flash
 support. What is flash support?
 

A common pattern is to post a form to one page, then redirect to the
next page. If your post handling code needs to send a message to the
user (e.g. Your order successfully placed!), it stores the message in
a well-known place in the session. Then when the subsequent page
renders, it looks for a message in the session. If one is there, it
displays it and removes it from the session so it is only displayed once.

In other words, it's a way to flash a message to the user.

 3. regarding Page Decoration, SiteMesh is not
 supported or recommended for use with Wicket. This
 worries me since I am Sitemesh fan. Can Sitemesh be
 FULLY integrated with Wicket? Any Wicket user did
 this?

Look into Wicket markup inheritance. One think I disliked about Sitemesh
was the limited ability of each page to affect what was going on in the
decoration. With Wicket's markup inheritance, the decoration is just
rendered by your page's superclass, so you can have full programmatic
control over it by calling or overriding methods in the base class. Much
more powerful than Sitemesh, IMHO.

jk

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



JS/CSS references different in Jetty versus Tomcat

2008-05-02 Thread Scott Sauyet
I'm having a problem with different behavior when my Wicket application 
runs on Jetty versus on Tomcat, and I'm wondering if anyone has a 
suggestion as to why.


I'm running Wicket 1.3.0 inside Jetty 6.1.8 or Tomcat 5.5.26.

The only place I'm seeing this right now is the second and subsequent 
pages of a PageableListView.  This is one of the few places where I 
don't have clean URLs, and I don't know if that's a cause.  (Aside: is 
there a way to get cleaner URLs in pages with PageableListViews?) 
Almost every page the user sees is a BookmarkablePage, but this one 
isn't, so maybe that's the difference; I just don't know.


A search form with a GET method is on every page.  When searching for 
the term acct, the form redirects to a BookmarkablePage with a URL 
that looks like:


http://jetty-host:port/app/FindTagByName/tagname/acct/

and on that page there are Javascript and CSS elements with SRC and HREF 
attributes like this:


 ../../../css/standard.css

Links in the PagingNavigator point to pages like this:

http://jetty-host:port/app/?wicket:interface=:6:1:::

and the SRC/HREF attributes here look like this:

css/standard.css

Which works fine.  But when running on Tomcat, starting from here:

http://tomcat-host:port/app/FindTagByName/tagname/acct/

the links are fine, and the subsequent pages have URLs like

http://tomcat-host:port/app/?wicket:interface=:3:1:::

All my SRC/HREF attributes here are wrong, pointing to the Tomcat 
directory and not my web application:


../css/standard.css

Anyone have a suggestion as to what I might be doing wrong?

Thanks,

  -- Scott

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



Re: questions about Matt Raible's web framework comparison

2008-05-02 Thread David Chang
Johan,

Thank you for your information. 

If I want an entire site to have nice URLs, I have to
MANUALL add the line such as this

application.mount(/login, LoginPage.class)

for each WebPage component of this application?

Regards,

David


you can mount a (bookmarkable) page on an url of your
choice like:

application.mount(/login, LoginPage.class)

then the login page will be shown when somebody does
http://host/login


--- Johan Compagner [EMAIL PROTECTED] wrote:

  Matt's says
 
  1. regarding Bookmarking and URLs, Wicket allows
  pages/URLs to be mounted. What does this
 mounted
  mean? Can somebody provide an example?
 
 
 you can mount a (bookmarkable) page on an url of
 your choice like:
 
 application.mount(/login, LoginPage.class)
 
 then the login page will be shown when somebody does
 http://host/login
 
 
 
  2. regarding Post and Redirect, Wicket has flash
  support. What is flash support?
 
 
 If you have error or info messages that these are 
 shown over multiply
 requests
 So if you do a redirect you dont loose those
 messages.
 
 Wicket just cleans the messages when they are
 rendered once (when ever that
 happens)
 
 
 
  3. regarding Page Decoration, SiteMesh is not
  supported or recommended for use with Wicket. This
  worries me since I am Sitemesh fan. Can Sitemesh
 be
  FULLY integrated with Wicket? Any Wicket user did
  this?
 
 
 I dont think sitemesh will be a great match for
 wicket at an time
 It is really build for different  frameworks.
 Wicket has for that build in support with Markup
 Inheritance and Panels
 
 I guess if you are in mixed world (wicket and a jsp
 x framework) you could
 try to mix that with sitemesh
 
 johan
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: questions about Matt Raible's web framework comparison

2008-05-02 Thread Johan Compagner
yes but you also can mount 1 package is 1 go.
But are all pages that you make accessible directly from the outside world?
So they should really all be bookmarkable?

On Fri, May 2, 2008 at 3:44 PM, David Chang [EMAIL PROTECTED] wrote:

 Johan,

 Thank you for your information.

 If I want an entire site to have nice URLs, I have to
 MANUALL add the line such as this

 application.mount(/login, LoginPage.class)

 for each WebPage component of this application?

 Regards,

 David


 you can mount a (bookmarkable) page on an url of your
 choice like:

 application.mount(/login, LoginPage.class)

 then the login page will be shown when somebody does
 http://host/login


 --- Johan Compagner [EMAIL PROTECTED] wrote:

   Matt's says
  
   1. regarding Bookmarking and URLs, Wicket allows
   pages/URLs to be mounted. What does this
  mounted
   mean? Can somebody provide an example?
 
 
  you can mount a (bookmarkable) page on an url of
  your choice like:
 
  application.mount(/login, LoginPage.class)
 
  then the login page will be shown when somebody does
  http://host/login
 
 
  
   2. regarding Post and Redirect, Wicket has flash
   support. What is flash support?
 
 
  If you have error or info messages that these are
  shown over multiply
  requests
  So if you do a redirect you dont loose those
  messages.
 
  Wicket just cleans the messages when they are
  rendered once (when ever that
  happens)
 
 
  
   3. regarding Page Decoration, SiteMesh is not
   supported or recommended for use with Wicket. This
   worries me since I am Sitemesh fan. Can Sitemesh
  be
   FULLY integrated with Wicket? Any Wicket user did
   this?
  
 
  I dont think sitemesh will be a great match for
  wicket at an time
  It is really build for different  frameworks.
  Wicket has for that build in support with Markup
  Inheritance and Panels
 
  I guess if you are in mixed world (wicket and a jsp
  x framework) you could
  try to mix that with sitemesh
 
  johan
 




  
 
 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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




RE: ajax progress indicator

2008-05-02 Thread Martin Grigorov
It depends what you want to achieve.
For simple things just use IndicatingAjaxButton/Link from
wicket-extensions.

On Fri, 2008-05-02 at 13:09 +, i ii wrote:
 much work for simple feature, no?
 
  Date: Fri, 2 May 2008 15:46:04 +0300
  From: [EMAIL PROTECTED]
  To: users@wicket.apache.org
  Subject: Re: ajax progress indicator
  
  I haven't found much. Here are some snipplets that may be of use:
  
  public class AjaxIndicatorContainer extends WebMarkupContainer {
/**
 * Constructor for TODO
 * @param form
 */
public AjaxIndicatorContainer(Form form) {
  super(ajaxIndicator); // wicket:id
  setOutputMarkupId(true);
  setMarkupId(ajaxIndicatorId); // markup:id
  form.add(this);
}
  
/**
 * @see 
  org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
 */
@Override
protected void onComponentTag(ComponentTag tag) {
  super.onComponentTag(tag);
  tag.put(src,urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
}
  }
  
  
  final AjaxIndicatorContainer indicatorContainer = new
  AjaxIndicatorContainer(loginForm);
  
  {
final AjaxButton loginButton = new
  AbstractAjaxIndicatorAwareButton(LOGIN_BUTTON, loginForm) {
  
  /**
   * @see
  org.apache.wicket.ajax.markup.html.form.AjaxButton#onSubmit(org.apache.wicket.ajax.AjaxRequestTarget,
  org.apache.wicket.markup.html.form.Form)
   */
  @Override
  protected void onSubmit(AjaxRequestTarget target, Form form) {
processLogin(userIdField, passwdField);
target.addComponent(feedbackPanel); // Update feedback panel too
  }
  
  public String getAjaxIndicatorMarkupId() {
return indicatorContainer.getMarkupId();
  }
};
loginForm.add(loginButton);
  }
  
  2008/5/2 i ii [EMAIL PROTECTED]:
  
is documentation available for ajax progess indicator. i cannot find :(
  
  
  -
  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: ajax progress indicator

2008-05-02 Thread michalb_cz


i ii wrote:
 
 is documentation available for ajax progess indicator. i cannot find :(
 

see http://blog.ehour.nl/index.php/archives/18
scroll straight to bottom of the entry and look at the comments from Lock
and other wicket commiters too


Jonathan Locke:
Wicket.Ajax.registerPreCallHandler(onStartAjax);
Wicket.Ajax.registerPostCallHandler(onStopAjax);
Wicket.Ajax.registerFailureHandler(onStopAjax);

then just hide and show your indicator in onStartAjax() and onStopAjax() and
every single AJAX request on your site will magically spin that little
wheel.

-- 
View this message in context: 
http://www.nabble.com/ajax-progress-indicator-tp17018664p17020185.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



way to traverse / get all form validators

2008-05-02 Thread michalb_cz

Is there some way how to traverse all validators which are associated (added
through the add(IValidator) method) with the form? I look for something like
get(IValidator) [like List.get(Object obj) method] or ListIValidator
getValidators() methods on Form component 
-- 
View this message in context: 
http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17020385.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: RTFM messages

2008-05-02 Thread Johan Compagner
yeah! reading code!
thats also my philosophy:

Doc lies, code doesn't

johan

On Thu, May 1, 2008 at 10:17 PM, Matthew Young [EMAIL PROTECTED] wrote:

 Just want to add my appreciation to all the help I got here, especially
 from
 Igor.  Sometime I receive the answer instantly, even on weekend!  One
 thing
 I learn to do is not only read the javadoc but read the code.  A lot of
 the
 component stuffs are pretty easy to follow, especially if you use
 something
 like Eclipse's Java Browsing.  Go Wicket!



validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread David Chang
I am migrating from JSP+Valang+...+SpringMVC to Wicket
and am also still evaluting it. So far so good until I
saw this instance about using Form Validator to
validate two related form fields.

Problem (p81-82, book Enjoy Web Development with
Wicket, PDF version only):

Suppose a postage calculation form has two fields that
accept weight and patron discount code. For a
particular patron p1, you will never ship a package
that is weighted more than 50kg. Here is the code from
the book:

public class LightValidator extends
AbstractFormValidator {
  private TextField weight;
  private TextField patronCode;

  public LightValidator(TextField weight, TextField
patronCode) {
this.weight = weight;
this.patronCode = patronCode;
  }

  public FormComponent[] getDependentFormComponents()
{
return new FormComponent[] { weight, patronCode };
  }

  public void validate(Form form) {
String patronCodeEntered = (String)
patronCode.getConvertedInput();
if (patronCodeEntered != null) {
  if (patronCodeEntered.equals(p1)
   ((Integer)
weight.getConvertedInput()).intValue()  50) {
error(weight);
  }
}
  }
}

I have the bad feeling about this way of validation

1. It is too much coding. Anybody used Valang in
Spring Module? By using Valang, the validation code is
much clean and a lot fewer and you dont need to create
a class simply for this simple validation.

2. Valang covers both client AND server-side
validation. Please note that client-side validation is
equally important as server-side's. I feel it is a
must for web apps in terms of user experience.

3. In Valang + Spring MVD, you have all the validation
code for a form in one place in stark contrast to
spreading it in controller code as in Wicket and
mixing validation code with visual manipulation code.
Valang's way is much easier to understand and
management.

So in terms of elegance, productivity, management,
..., I am not sure Wicket's is right.

Can Wicket provide a better solution? 

I would like to share my concern regarding the
Wicket's WebPage, where you put a form's code for some
visual aspects, validation, ajax, etc. in one place. A
big object. I feel it is too ambitious and it looks
like spaghetti code and mixes concerns/modules in one
place. Comment?


I am very new to Wicket and don't know the best ways
of using Wicket. I love to hear from expereinced
users/guru here.

Thanks for your input!

Warm regards,

David


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: JS/CSS references different in Jetty versus Tomcat

2008-05-02 Thread Jeremy Levy
Scott,

It sounds like this:

https://issues.apache.org/jira/browse/WICKET-1205

Jeremy

On Fri, May 2, 2008 at 9:37 AM, Scott Sauyet [EMAIL PROTECTED] wrote:

 I'm having a problem with different behavior when my Wicket application
 runs on Jetty versus on Tomcat, and I'm wondering if anyone has a suggestion
 as to why.

 I'm running Wicket 1.3.0 inside Jetty 6.1.8 or Tomcat 5.5.26.

 The only place I'm seeing this right now is the second and subsequent
 pages of a PageableListView.  This is one of the few places where I don't
 have clean URLs, and I don't know if that's a cause.  (Aside: is there a way
 to get cleaner URLs in pages with PageableListViews?) Almost every page the
 user sees is a BookmarkablePage, but this one isn't, so maybe that's the
 difference; I just don't know.

 A search form with a GET method is on every page.  When searching for the
 term acct, the form redirects to a BookmarkablePage with a URL that looks
 like:

http://jetty-host:port/app/FindTagByName/tagname/acct/

 and on that page there are Javascript and CSS elements with SRC and HREF
 attributes like this:

 ../../../css/standard.css

 Links in the PagingNavigator point to pages like this:

http://jetty-host:port/app/?wicket:interface=:6:1:::

 and the SRC/HREF attributes here look like this:

css/standard.css

 Which works fine.  But when running on Tomcat, starting from here:

http://tomcat-host:port/app/FindTagByName/tagname/acct/

 the links are fine, and the subsequent pages have URLs like

http://tomcat-host:port/app/?wicket:interface=:3:1:::

 All my SRC/HREF attributes here are wrong, pointing to the Tomcat
 directory and not my web application:

../css/standard.css

 Anyone have a suggestion as to what I might be doing wrong?

 Thanks,

  -- Scott

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




What is session.dirty() for?

2008-05-02 Thread Martin Makundi
Hi!

I have been coding without invoking session.dirty. Browsing framework
code, I can see it is used. What does it accomplish and where should I
have used it in my own code?

**
Martin

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



RE: ListView is not gettting updated

2008-05-02 Thread Patel, Sanjay
 Thanks a lot. It works now. I appreciate.

 Sanjay.

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 02, 2008 9:53 AM
To: Wicket Users List
Subject: Re: ListView is not gettting updated

   final MyObject object = (MyObject)
item.getModelObject();
   final RadioGroup radioGroup = new
RadioGroup(radio-group, new Model());

   final Model radioModel1 = new
Model(myObject1);
   final Model radioModel2 = new
Model(myObject2);
   final Model radioModel3 = new
Model(myObject3);
   radioGroup.add(new
Radio(radio1,radioModel1));
   radioGroup.add(new
Radio(radio2,radioModel2));
   radioGroup.add(new
Radio(radio2,radioModel3));

   // set default value for radio.
   if (object.isTrue() != null 
object.isTrue()) {

radioGroup.setModel(radioModel1);
   } else if (object.isFalse() != null 
object.isFalse()) {

radioGroup.setModelObject(radioModel2.getObject());
   } else {

radioGroup.setModelObject(radioModel3.getObject());
   }
   item.add(radioGroup);


On Fri, May 2, 2008 at 3:09 PM, Patel, Sanjay [EMAIL PROTECTED]
wrote:

 Does anyone have any input on this? Help will be appreciated.

 Thanks,
 Sanjay

 -Original Message-
 From: Patel, Sanjay [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 01, 2008 8:52 AM
 To: users@wicket.apache.org
 Subject: RE: ListView is not gettting updated

 I set model of the radio on the group because I want one of the radio 
 in the group to be selected based on some condition.

 Let me tell you my exact requirement. There are 12 diff. rows having 
 three radio buttons in each row.  I can select only one radio in each 
 row so I put all three radios in radio group. Also I want one of the 
 radio in the group to be selected by default based on some condition 
 so I set model of radio on the group.

 Please let me know the better way of doing this.

 Thanks,
 Sanjay.

 -Original Message-
 From: Johan Compagner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 30, 2008 7:27 PM
 To: users@wicket.apache.org
 Subject: Re: ListView is not gettting updated

 And thats logical, your code looks weird.
 You cant set the model of a radio also on the group.
 Then the submit will update the selected in the radio groups model.
 Butthen the radio model is also uopdated. So that one is still 
 selected..

 On 4/30/08, Patel, Sanjay [EMAIL PROTECTED] wrote:
  I already tried it but it is not working.
 
  I have to do following (which I don't want) to update the listView 
  after I submit the form.
 
  listView.setModel(new Model((Serializable) updatedList));
 
  -Original Message-
  From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 30, 2008 2:02 PM
  To: users@wicket.apache.org
  Subject: Re: ListView is not gettting updated
 
  listview.setreuseitems(true), read listview's javadoc
 
  -igor
 
  On Wed, Apr 30, 2008 at 10:59 AM, Patel, Sanjay 
  [EMAIL PROTECTED]
  wrote:
  
Hi,
  
I am using ListView and and each item in the listview is
 RadioGroup.
   Now  the problem is, If radio1 is selected and I select radio2 and

   submit  the form the selection goes back to radio1. What is wrong 
   with
 
   following  code?
  
final ListView listView = new ListView(abc, myList) {
   protected final void populateItem(final 
   ListItem
item) {
   final MyObject object = (MyObject)

   item.getModelObject();
   final RadioGroup radioGroup = new 
   RadioGroup(radio-group, new Model());
  
   final Model radioModel1 = new 
   Model(myObject1);
   final Model radioModel2 = new 
   Model(myObject2);
   final Model radioModel3 = new 
   Model(myObject3);
  
   radioGroup.add(new Radio(radio1,

   radioModel1));
   radioGroup.add(new Radio(radio2,

   radioModel2));
   radioGroup.add(new Radio(radio2,

   radioModel3));
  
   // set default value for radio.
   if (object.isTrue() != null 
object.isTrue()) {
  
radioGroup.setModel(radioModel1);
   } else if (object.isFalse() != 
   null 
object.isFalse()) {
  
radioGroup.setModel(radioModel2);
   } else {
  
radioGroup.setModel(radioModel3);
   }
   item.add(radioGroup);

Re: What is session.dirty() for?

2008-05-02 Thread Matej Knopp
Hi,

session.dirty() should be invoked when the session object has changed,
so that wicket changes the http session attribute to make cluster
replicate the session object (assuming you're running in clustered
environment).

I think the only case when you need to call dirty() yourself is when
your application has only stateless pages and you have a statefull
session object that you need to replicate accros cluster. But IMHO
that's not very common usecase.

-Matej

On Fri, May 2, 2008 at 4:46 PM, Martin Makundi
[EMAIL PROTECTED] wrote:
 Hi!

  I have been coding without invoking session.dirty. Browsing framework
  code, I can see it is used. What does it accomplish and where should I
  have used it in my own code?

  **
  Martin

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





-- 
Resizable and reorderable grid components.
http://www.inmethod.com

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



Re: What is session.dirty() for?

2008-05-02 Thread Martin Makundi
Could you please elaborate what you mean by session object has changed?

Let's say I have some variables in my session. If these variables
change, do I have to call session.dirty?

**
Martin

2008/5/2 Matej Knopp [EMAIL PROTECTED]:
 Hi,

  session.dirty() should be invoked when the session object has changed,
  so that wicket changes the http session attribute to make cluster
  replicate the session object (assuming you're running in clustered
  environment).

  I think the only case when you need to call dirty() yourself is when
  your application has only stateless pages and you have a statefull
  session object that you need to replicate accros cluster. But IMHO
  that's not very common usecase.

  -Matej



  On Fri, May 2, 2008 at 4:46 PM, Martin Makundi
  [EMAIL PROTECTED] wrote:
   Hi!
  
I have been coding without invoking session.dirty. Browsing framework
code, I can see it is used. What does it accomplish and where should I
have used it in my own code?
  
**
Martin
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  



  --
  Resizable and reorderable grid components.
  http://www.inmethod.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: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread John Krasnay
On Fri, May 02, 2008 at 07:25:01AM -0700, David Chang wrote:
 
 I have the bad feeling about this way of validation
 
 1. It is too much coding. Anybody used Valang in
 Spring Module? By using Valang, the validation code is
 much clean and a lot fewer and you dont need to create
 a class simply for this simple validation.
 

I think you'll find the Wicket team has very strong aversion to doing
things declaratively rather than with Java code. The problem is that
with declarative approaches, once you step outside of the use-cases
envisioned by the designer of the declarative system things become much
more difficult.

 2. Valang covers both client AND server-side
 validation. Please note that client-side validation is
 equally important as server-side's. I feel it is a
 must for web apps in terms of user experience.

Wicket doesn't come with a client-side validation framework by default;
however, the validators have an opportunity to participate in the
component rendering, so it wouldn't be too tough to create your own set
of validators that also rendered the appropriate Javascript to do
client-side validation.

 3. In Valang + Spring MVD, you have all the validation
 code for a form in one place in stark contrast to
 spreading it in controller code as in Wicket and
 mixing validation code with visual manipulation code.
 Valang's way is much easier to understand and
 management.

A Wicketer would view it differently: in Valang+Spring MVC you have Java
code for your controller and validation code in XML, whereas in Wicket
it's all in Java code.

That said, it probably wouldn't be too hard to implement a FormValidator
that accepted valang syntax and applied it to a form.

 So in terms of elegance, productivity, management,
 ..., I am not sure Wicket's is right.
 
 Can Wicket provide a better solution? 
 
 I would like to share my concern regarding the
 Wicket's WebPage, where you put a form's code for some
 visual aspects, validation, ajax, etc. in one place. A
 big object. I feel it is too ambitious and it looks
 like spaghetti code and mixes concerns/modules in one
 place. Comment?

Weird. Your experience is exactly opposite to mine. I found Spring MVC
to be hopelessly scattered: declarations in XML, controller code in
Java, view code in templates. In Wicket, I can create self-contained
components, each including all the functionality, markup, validation,
JS, etc. it needs to get along in the world. I can then stitch these
components together into pages that can be re-jigged and reorganized
very quickly.

It feels to me like Wicket allows me to work at a higher level of
abstraction, while with Spring MVC I was always down in the weeds
dealing directly with the request/response cycle.

jk

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



Re: JS/CSS references different in Jetty versus Tomcat

2008-05-02 Thread Scott Sauyet

Jeremy Levy wrote:

On Fri, May 2, 2008 at 9:37 AM, Scott Sauyet [EMAIL PROTECTED] wrote:

I'm having a problem with different behavior when my Wicket application
runs on Jetty versus on Tomcat, and I'm wondering if anyone has a suggestion
as to why. [ ... ]


It sounds like this:

https://issues.apache.org/jira/browse/WICKET-1205


That was exactly it.  Thank you.

Unfortunately, this issue has not been resolved as of Wicket 1.3.3. 
There was a bizarre note at the end of that issue from Al Maw that it 
had something to do with having an index.jsp page in the application. 
 Sure enough, when I removed that page, it seems to work fine.


The client wanted that index.jsp for consistency with the application 
that I'm replacing.  I will find out exactly how important that is.  I'd 
really rather not go with the app/* route unless necessary.  But I'm 
curious if anyone has figured out a solution to the underlying problem.


Thanks again, Jeremy.

Al,

I'm CC'ing you because in the last notes I saw for issue 1205 you were 
off to try to fix this.  Did you ever get a useful test project to 
duplicate the error?  If not, I can try to create something, although 
I'm not much of a Maven user.  Just let me know.


  -- Scott

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



Re: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread Jonathan Locke


don't agree at all of course.  ;-)  and i'm going to give you about the same
stock answer i always give: if you're repeating yourself, stop doing that.

writing redundant form code?  writing redundant validators?  think.  use OO
design patterns.  it's amazing what you can do with objects.  at thoof i
never wrote validation code.  we adopted the sun constraint library more or
less as described in this video:
 
http://londonwicket.org/content/LondonWicket-BeanEditor.mov


David Chang-5 wrote:
 
 I am migrating from JSP+Valang+...+SpringMVC to Wicket
 and am also still evaluting it. So far so good until I
 saw this instance about using Form Validator to
 validate two related form fields.
 
 Problem (p81-82, book Enjoy Web Development with
 Wicket, PDF version only):
 
 Suppose a postage calculation form has two fields that
 accept weight and patron discount code. For a
 particular patron p1, you will never ship a package
 that is weighted more than 50kg. Here is the code from
 the book:
 
 public class LightValidator extends
 AbstractFormValidator {
   private TextField weight;
   private TextField patronCode;
 
   public LightValidator(TextField weight, TextField
 patronCode) {
 this.weight = weight;
 this.patronCode = patronCode;
   }
 
   public FormComponent[] getDependentFormComponents()
 {
 return new FormComponent[] { weight, patronCode };
   }
 
   public void validate(Form form) {
 String patronCodeEntered = (String)
 patronCode.getConvertedInput();
 if (patronCodeEntered != null) {
   if (patronCodeEntered.equals(p1)
((Integer)
 weight.getConvertedInput()).intValue()  50) {
 error(weight);
   }
 }
   }
 }
 
 I have the bad feeling about this way of validation
 
 1. It is too much coding. Anybody used Valang in
 Spring Module? By using Valang, the validation code is
 much clean and a lot fewer and you dont need to create
 a class simply for this simple validation.
 
 2. Valang covers both client AND server-side
 validation. Please note that client-side validation is
 equally important as server-side's. I feel it is a
 must for web apps in terms of user experience.
 
 3. In Valang + Spring MVD, you have all the validation
 code for a form in one place in stark contrast to
 spreading it in controller code as in Wicket and
 mixing validation code with visual manipulation code.
 Valang's way is much easier to understand and
 management.
 
 So in terms of elegance, productivity, management,
 ..., I am not sure Wicket's is right.
 
 Can Wicket provide a better solution? 
 
 I would like to share my concern regarding the
 Wicket's WebPage, where you put a form's code for some
 visual aspects, validation, ajax, etc. in one place. A
 big object. I feel it is too ambitious and it looks
 like spaghetti code and mixes concerns/modules in one
 place. Comment?
 
 
 I am very new to Wicket and don't know the best ways
 of using Wicket. I love to hear from expereinced
 users/guru here.
 
 Thanks for your input!
 
 Warm regards,
 
 David
 
 
  
 
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now. 
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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


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



Re: Modal window and height

2008-05-02 Thread Mathias P.W Nilsson

Ok. I haven't resolved this yet. any more pointers?
-- 
View this message in context: 
http://www.nabble.com/Modal-window-and-height-tp16960447p17022538.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: South African Wicket Users?

2008-05-02 Thread iwessels



Wicket User-3 wrote:
 
 Hey,
 
 Are there any South African wicket users, if so where are you base, JHB or
 CT?
 
 Cheers
 Simon
 
 

Hello Simon, 

There are a couple of Wicket users here in Joburg that I know of. 
-- 
View this message in context: 
http://www.nabble.com/South-African-Wicket-Users--tp13857261p17022565.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Difficulty getting QuickStart

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

/Gwyn

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


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


 Subject: Re: Difficulty getting QuickStart

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

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

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

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


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



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



Re: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread David Chang
The problem is that with declarative approaches,
once you step outside of the use-cases envisioned by
the designer of the declarative system things become
much more difficult.

I would like to think practical. How many such
unexpected situations would happen? Besides, you can
always code extra validation in Java in controllers
using things such as Wicket's form validators.



A Wicketer would view it differently: in
Valang+Spring MVC you have Java code for your
controller and validation code in XML, whereas in 
Wicket it's all in Java code. That said, it probably
wouldn't be too hard to implement a FormValidator
that accepted valang syntax and applied it to a form.

I really want to see such a thing in place.
Auto-generation of client-side validation code, IMHO,
is a much needed thing. At least, Wicket should have
this capability. It would be nightmare to wrtie
validation twice: one for the WebPage, one for
client-side validation.



Weird. Your experience is exactly opposite to mine.
I found Spring MVC to be hopelessly scattered:
declarations in XML, controller code in Java, view
code in templates.

I dont have any real experience yet. It is mere my
observation and thinking. I am learning but still
evaluating. 

One thing I have is really the opposite to your
experience. I feel this scatter is not hopeless; but
it is a nice separation of concerns. Think about it. I
have no objection to puting everything in WebPage, but
these different concerns should be separated in Wicket
somehow, code should look clean and good...

Thank you for sharing your thought and experience,
which is immensely helpful!

Regards.






 previous emails =



--- John Krasnay [EMAIL PROTECTED] wrote:

 On Fri, May 02, 2008 at 07:25:01AM -0700, David
 Chang wrote:
  
  I have the bad feeling about this way of
 validation
  
  1. It is too much coding. Anybody used Valang in
  Spring Module? By using Valang, the validation
 code is
  much clean and a lot fewer and you dont need to
 create
  a class simply for this simple validation.
  
 
 I think you'll find the Wicket team has very strong
 aversion to doing
 things declaratively rather than with Java code. The
 problem is that
 with declarative approaches, once you step outside
 of the use-cases
 envisioned by the designer of the declarative system
 things become much
 more difficult.
 
  2. Valang covers both client AND server-side
  validation. Please note that client-side
 validation is
  equally important as server-side's. I feel it is a
  must for web apps in terms of user experience.
 
 Wicket doesn't come with a client-side validation
 framework by default;
 however, the validators have an opportunity to
 participate in the
 component rendering, so it wouldn't be too tough to
 create your own set
 of validators that also rendered the appropriate
 Javascript to do
 client-side validation.
 
  3. In Valang + Spring MVD, you have all the
 validation
  code for a form in one place in stark contrast to
  spreading it in controller code as in Wicket and
  mixing validation code with visual manipulation
 code.
  Valang's way is much easier to understand and
  management.
 
 A Wicketer would view it differently: in
 Valang+Spring MVC you have Java
 code for your controller and validation code in
 XML, whereas in Wicket
 it's all in Java code.
 
 That said, it probably wouldn't be too hard to
 implement a FormValidator
 that accepted valang syntax and applied it to a
 form.
 
  So in terms of elegance, productivity, management,
  ..., I am not sure Wicket's is right.
  
  Can Wicket provide a better solution? 
  
  I would like to share my concern regarding the
  Wicket's WebPage, where you put a form's code for
 some
  visual aspects, validation, ajax, etc. in one
 place. A
  big object. I feel it is too ambitious and it
 looks
  like spaghetti code and mixes concerns/modules in
 one
  place. Comment?
 
 Weird. Your experience is exactly opposite to mine.
 I found Spring MVC
 to be hopelessly scattered: declarations in XML,
 controller code in
 Java, view code in templates. In Wicket, I can
 create self-contained
 components, each including all the functionality,
 markup, validation,
 JS, etc. it needs to get along in the world. I can
 then stitch these
 components together into pages that can be re-jigged
 and reorganized
 very quickly.
 
 It feels to me like Wicket allows me to work at a
 higher level of
 abstraction, while with Spring MVC I was always down
 in the weeds
 dealing directly with the request/response cycle.
 
 jk
 

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



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


Wicket : Navigation Test Case Failure

2008-05-02 Thread iwessels

Hello all, 

I am trying to write a test case to simulate that when the user clicks on a
button, they are navigated to a new page.

// Test Case 
public void testProgramPageNavigation() {
   WicketTester tester = new WicketTester();
   FormTester formTester = tester.newFormTester(programForm);
   formTester.submit(programButton);
  
   // this line fails (expected NewProgramPage but was ProgramPage)  
  tester.assertRenderedPage(NewProgramPage.class);
}

// Program Page
public class ProgramPage extends WebPage {
 
 public ProgramPage() {
Form programForm = new Form(programForm);

programForm.add(new Button(programButton) {
public void onSubmit() { 
   setReponsePage(NewProgramPage.class);
}
}

add(programForm);

  }
}

Any help would be much appreciated

-- 
View this message in context: 
http://www.nabble.com/Wicket-%3A-Navigation-Test-Case-Failure-tp17022776p17022776.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Advisory question

2008-05-02 Thread Jonathan Locke


as soon as we can find a sucker.


Frank Silbermann wrote:
 
 So when do we get the Addison-Wesley book on _Wicket_Patterns_?  :-) 
 
 -Original Message-
 From: Maurice Marrink [mailto:[EMAIL PROTECTED] 
 Sent: Friday, May 02, 2008 5:51 AM
 To: users@wicket.apache.org
 Subject: Re: Advisory question
 
 The nice thing about wicket is that it will give you freedom to choose
 whatever you like.
 You can create individual pages but if you markup is mostly the same it
 is easy to to use markup inheritance from a single basepage.
 You can also have just one page and replace panels as required.
 It is all a matter of personal preference / application needs.
 From what you are describing you might want to take a look at
 http://cwiki.apache.org/WICKET/markup-inheritance.html
 
 Maurice
 
 On Fri, May 2, 2008 at 12:36 PM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
 Hi,

  My web app background is from page oriented frameworks, and now while
 
 using wicket, I find myself creating pages over and over.
  I think I can miss many of them, because most of the time all I do is
 
 adding an intelligent reusable component to it.

  How do you guys handle this? Are you creating some basepage that is  
 suitable to contain more than one functional part of your application?
  Or just create page by page?

  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29

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

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


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



Re: Wicket : Navigation Test Case Failure

2008-05-02 Thread Maurice Marrink
Do you do tester.startPage(ProgramPage.class) before you use the FormTester?
You should get a different error if you didn't but i don't see where
you tell wicket which page to load, so i am just checking.

Maurice

On Fri, May 2, 2008 at 6:14 PM, iwessels [EMAIL PROTECTED] wrote:

  Hello all,

  I am trying to write a test case to simulate that when the user clicks on a
  button, they are navigated to a new page.

  // Test Case
  public void testProgramPageNavigation() {
WicketTester tester = new WicketTester();
FormTester formTester = tester.newFormTester(programForm);
formTester.submit(programButton);

// this line fails (expected NewProgramPage but was ProgramPage)
   tester.assertRenderedPage(NewProgramPage.class);
  }

  // Program Page
  public class ProgramPage extends WebPage {

   public ProgramPage() {
 Form programForm = new Form(programForm);

 programForm.add(new Button(programButton) {
 public void onSubmit() {
setReponsePage(NewProgramPage.class);
 }
 }

 add(programForm);

   }
  }

  Any help would be much appreciated

  --
  View this message in context: 
 http://www.nabble.com/Wicket-%3A-Navigation-Test-Case-Failure-tp17022776p17022776.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread Jonathan Locke


auto-generation of anything is a horrible idea.  it's a computer-driven
violation of the DRY principle and you'll get what you deserve.  there are
pretty much always smarter approaches than code generation.

you ought to be able to use wicket to create a constraint driven validation
system that does:

 - client side validation
 - server side validation
 - database validation
 - automatic limits unit testing

we did the last 3 at thoof, and while the client-side validation was not a
goal, it should be possible to integrate and drive a JS validation lib using
the same annotations.


David Chang-5 wrote:
 
The problem is that with declarative approaches,
 once you step outside of the use-cases envisioned by
 the designer of the declarative system things become
 much more difficult.
 
 I would like to think practical. How many such
 unexpected situations would happen? Besides, you can
 always code extra validation in Java in controllers
 using things such as Wicket's form validators.
 
 
 
A Wicketer would view it differently: in
 Valang+Spring MVC you have Java code for your
 controller and validation code in XML, whereas in 
 Wicket it's all in Java code. That said, it probably
 wouldn't be too hard to implement a FormValidator
 that accepted valang syntax and applied it to a form.
 
 I really want to see such a thing in place.
 Auto-generation of client-side validation code, IMHO,
 is a much needed thing. At least, Wicket should have
 this capability. It would be nightmare to wrtie
 validation twice: one for the WebPage, one for
 client-side validation.
 
 
 
Weird. Your experience is exactly opposite to mine.
 I found Spring MVC to be hopelessly scattered:
 declarations in XML, controller code in Java, view
 code in templates.
 
 I dont have any real experience yet. It is mere my
 observation and thinking. I am learning but still
 evaluating. 
 
 One thing I have is really the opposite to your
 experience. I feel this scatter is not hopeless; but
 it is a nice separation of concerns. Think about it. I
 have no objection to puting everything in WebPage, but
 these different concerns should be separated in Wicket
 somehow, code should look clean and good...
 
 Thank you for sharing your thought and experience,
 which is immensely helpful!
 
 Regards.
 
 
 
 
 
 
  previous emails =
 
 
 
 --- John Krasnay [EMAIL PROTECTED] wrote:
 
 On Fri, May 02, 2008 at 07:25:01AM -0700, David
 Chang wrote:
  
  I have the bad feeling about this way of
 validation
  
  1. It is too much coding. Anybody used Valang in
  Spring Module? By using Valang, the validation
 code is
  much clean and a lot fewer and you dont need to
 create
  a class simply for this simple validation.
  
 
 I think you'll find the Wicket team has very strong
 aversion to doing
 things declaratively rather than with Java code. The
 problem is that
 with declarative approaches, once you step outside
 of the use-cases
 envisioned by the designer of the declarative system
 things become much
 more difficult.
 
  2. Valang covers both client AND server-side
  validation. Please note that client-side
 validation is
  equally important as server-side's. I feel it is a
  must for web apps in terms of user experience.
 
 Wicket doesn't come with a client-side validation
 framework by default;
 however, the validators have an opportunity to
 participate in the
 component rendering, so it wouldn't be too tough to
 create your own set
 of validators that also rendered the appropriate
 Javascript to do
 client-side validation.
 
  3. In Valang + Spring MVD, you have all the
 validation
  code for a form in one place in stark contrast to
  spreading it in controller code as in Wicket and
  mixing validation code with visual manipulation
 code.
  Valang's way is much easier to understand and
  management.
 
 A Wicketer would view it differently: in
 Valang+Spring MVC you have Java
 code for your controller and validation code in
 XML, whereas in Wicket
 it's all in Java code.
 
 That said, it probably wouldn't be too hard to
 implement a FormValidator
 that accepted valang syntax and applied it to a
 form.
 
  So in terms of elegance, productivity, management,
  ..., I am not sure Wicket's is right.
  
  Can Wicket provide a better solution? 
  
  I would like to share my concern regarding the
  Wicket's WebPage, where you put a form's code for
 some
  visual aspects, validation, ajax, etc. in one
 place. A
  big object. I feel it is too ambitious and it
 looks
  like spaghetti code and mixes concerns/modules in
 one
  place. Comment?
 
 Weird. Your experience is exactly opposite to mine.
 I found Spring MVC
 to be hopelessly scattered: declarations in XML,
 controller code in
 Java, view code in templates. In Wicket, I can
 create self-contained
 components, each including all the functionality,
 markup, validation,
 JS, etc. it needs to get along in the world. I can
 then stitch these
 components together into pages that can be 

Re: Wicket : Navigation Test Case Failure

2008-05-02 Thread Izak Wessels

You are correct, I omitted it, due to it being done in the superclass, but
tester.startPage(ProgramPage.class) is def being called


Mr Mean wrote:
 
 Do you do tester.startPage(ProgramPage.class) before you use the
 FormTester?
 You should get a different error if you didn't but i don't see where
 you tell wicket which page to load, so i am just checking.
 
 Maurice
 
 On Fri, May 2, 2008 at 6:14 PM, iwessels [EMAIL PROTECTED] wrote:

  Hello all,

  I am trying to write a test case to simulate that when the user clicks
 on a
  button, they are navigated to a new page.

  // Test Case
  public void testProgramPageNavigation() {
WicketTester tester = new WicketTester();
FormTester formTester = tester.newFormTester(programForm);
formTester.submit(programButton);

// this line fails (expected NewProgramPage but was ProgramPage)
   tester.assertRenderedPage(NewProgramPage.class);
  }

  // Program Page
  public class ProgramPage extends WebPage {

   public ProgramPage() {
 Form programForm = new Form(programForm);

 programForm.add(new Button(programButton) {
 public void onSubmit() {
setReponsePage(NewProgramPage.class);
 }
 }

 add(programForm);

   }
  }

  Any help would be much appreciated

  --
  View this message in context:
 http://www.nabble.com/Wicket-%3A-Navigation-Test-Case-Failure-tp17022776p17022776.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Wicket-%3A-Navigation-Test-Case-Failure-tp17022776p17022970.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread John Krasnay
On Fri, May 02, 2008 at 09:13:40AM -0700, David Chang wrote:
 
 Weird. Your experience is exactly opposite to mine.
 I found Spring MVC to be hopelessly scattered:
 declarations in XML, controller code in Java, view
 code in templates.
 
 I dont have any real experience yet. It is mere my
 observation and thinking. I am learning but still
 evaluating. 
 

I just realized that you may not be clear on the role of FormValidators
in Wicket. A FormValidator is only used when the validation of one field
depends on the value the user entered for another field. The vast
majority of validation uses only field-level validators, which are much
less verbose than FormValidators:

  new TextField(name).setRequired(true);

  new TextField(ccNumber).add(new CreditCardValidator());

My current Wicket application (~35,000 LoC, ported from SpringMVC BTW,
so I speak from experience!) has no more than a handful of
FormValidators.

 One thing I have is really the opposite to your
 experience. I feel this scatter is not hopeless; but
 it is a nice separation of concerns.

In this case I think separation of concerns is just a nice way of
saying lack of cohesion/encapsulation. I *want* my validation to
follow my component around, especially when I have a form composed from
several re-usable panels. 

Here's a real-world example. In my app we have a component that captures
credit card info (card number, expiry, etc). It's not a form, just a
Panel with a bunch of form components on it. We re-use this panel in
several very different forms, each of which has various additional
fields.

Each time this panel is re-used, I just drop it into the form like this:

  form.add(new CreditCardPanel(ccModel));

I don't have to add the CreditCardValidator to each one of these forms.
It comes pre-wired in the CreditCardPanel.

 have no objection to puting everything in WebPage, but
 these different concerns should be separated in Wicket
 somehow, code should look clean and good...

Very few Wicket applications put everything in WebPage. Pages are
usually componentized into various Panels, which in turn can be composed
from other Panels and components. Each of these panels/components can
come with their own validators, as well as with other contributions to
the page such as JS, CSS, etc.

jk

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



RE: RTFM messages

2008-05-02 Thread Andrew Broderick
Maybe that is the problem - 10% of the people give 90% of the answers. This 
means they have less time to explain stuff in detail. However, you are right - 
the answers are fast (within minutes) and, even if not complete, usually give 
enough information to find the right place to dig.

I do in fact search all the sources I can find before asking the list, 
including: wicketstuff.org, Google (Nabble has excellent Wicket stuff), the 
list archives, and Wicket In Action.

As for explaining it to new users myself, I would if I knew the answer! I am 
still a newbie, although if I have anything to say about it, we will be using 
Wicket for a long time to come, so I will eventually become expert at it. The 
code is of extremely high quality, and one taste of using it is enough to make 
me never want to touch another front-end framework again. Good work all.

-Andrew

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Thomerson
Sent: Thursday, May 01, 2008 2:26 PM
To: users@wicket.apache.org
Subject: Re: RTFM messages

I have to add here that I have asked quite a few questions on this list, and
always received a plethora of helpful information - 90% of the time from
core contributors.  This list is the best open source mailing list I have
ever subscribed to or asked questions on.  Many times I have sent emails to
other user lists, even active ones, with questions I could not find the
answer to, and never received a response - at all.

The entire Wicket community is very friendly and helpful.  And, honestly, if
I asked a question for which there were an answer in the javadoc - I would
appreciate Martijn's answer - it would remind me to look for it myself
(which we sometimes get so busy we forget) - and it has much better longterm
benefit than giving a direct answer, or even copy-and-paste the javadoc.

Of course, Andrew, you always have the option of explaining it to the new
user, too - that might help with the wide spread adoption.  I see from your
message history that you love Wicket like the rest of it, and have received
many fine answers from the same core committers that you criticize here.
Just saying - it goes both ways.

THANK YOU WONDERFUL WICKET COMMUNITY AND ESPECIALLY THE CORE COMMITTERS
(Igor, Martijn, Johan, and everyone)

My 2 cents

On Thu, May 1, 2008 at 2:13 PM, C. Bergström [EMAIL PROTECTED]
wrote:


 On Thu, 2008-05-01 at 21:01 +0200, Martijn Dashorst wrote:
  On 5/1/08, Andrew Broderick [EMAIL PROTECTED] wrote:
   The guy asked a simple question.
 
  And I answered it is a simple manner: read the javadoc, if that
  doesn't help you, tell us what is wrong. All condensed in a single
  question. You chose to read it as a RTFM. Did you ever read [1]?
 

 commentary
 I've worked with Martijn a bit and overall I really appreciate his
 concise and clear answers.  On first read of his post you can surely
 feel a defensive tone, but really this is more an example of how
 passionate Wicket devs are about quality not only in code but
 documentation.

 Tact sold separately
 /commentary

 ./C

 
  [1] 
  http://www.catb.org/~esr/faqs/smart-questions.htmlhttp://www.catb.org/%7Eesr/faqs/smart-questions.html


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



___

The  information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial  use  of  the individual or entity to which it is
addressed and may contain information that is  propri-
etary  and  confidential.  If you are not the intended
recipient of this message you are hereby notified that
any  review, dissemination, distribution or copying of
this message is strictly prohibited.  This  communica-
tion  is  for information purposes only and should not
be regarded as an offer to sell or as  a  solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be  secure  or  error-
free. P6070214

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



Re: Dynamic DataTable columns, paging by columns

2008-05-02 Thread liza6218

I see, thank you for the reply.

- Liza


igor.vaynberg wrote:
 
 you will have to roll your own component. i would take a look at how
 datatable works: it is basically a repeater (for columns) inside
 another repeater(for rows)
 
 -igor
 
 
 On Thu, Apr 17, 2008 at 9:36 AM, liza6218 [EMAIL PROTECTED] wrote:

  Hi,

  I have to show a table where the number of columns and
  their titles are Dynamic.  And since there could be hundreds of columns,
  how can I do paging by columns and/or paging by rows.

  Thanks,
  Liza
  --
  View this message in context:
 http://www.nabble.com/Dynamic-DataTable-columns%2C--paging-by-columns-tp16746544p16746544.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Dynamic-DataTable-columns%2C--paging-by-columns-tp16746544p17025256.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: PropertyModel with default null model object ?

2008-05-02 Thread smallufo
Yes .
In the WebPage , I add MyPanel like this :

myPanel = new MyPanel(myPanel , new PropertyModel(this , myobj));
myPanel.setVisible(false);
myPanel.setOutputMarkupPlaceholderTag(true);
add(myPanel);

And in the MyPanel :

public class MyPanel extends Panel
{
  private MyObj myObj;

  public MyPanel(String id , IModel model)
  {
super(id);
this.myObj = (MyObj) model.getObject();

add(new Label(xxx , myObj.getFieldX.toString()));
add(new Label(yyy , myObj.getFieldY.toString()));

  }
}

Because myObj passed to MyPanel is initially null ,
In the MyPanel construction time , myObj.getFieldX , myObj.getFieldY will
throw NPEs here...

I don't know how to solve it .



2008/5/2 Per Newgro [EMAIL PROTECTED]:

 The code you provided should work. The NPEs comes from within the Panel?
 So
 can you give us an example how you access the model in the panel (with an
 NPE
 throwing component)?

 Cheers
 Per

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




Re: RTFM messages

2008-05-02 Thread Jonathan Locke


i am quite amazed by the quality of help people get on wicket-user and
##wicket.  most highly paid service contracts don't give this level of
service.


Martijn Dashorst wrote:
 
 On 5/1/08, Andrew Broderick [EMAIL PROTECTED] wrote:
 The guy asked a simple question.
 
 And I answered it is a simple manner: read the javadoc, if that
 doesn't help you, tell us what is wrong. All condensed in a single
 question. You chose to read it as a RTFM. Did you ever read [1]?
 
 If there's one fault with this otherwise great mailing list, it's the
 attitude that
 the old-timers have towards the newbies.
 
 WTF? Why is it so hard to actually use the stuff we have provided? We
 write javadoc, we have a wiki, we are writing a book, spend a lot of
 our free time working on wicket related stuff, including answering
 questions on this list. There is no payment for us in all of this (if
 you think that the book will bring us money, then write your own and
 see if it works out for you)
 
 Is it then too much to ask that people actually read the javadoc and
 if you don't understand the javadoc, *THEN* ask the question related
 to the javadoc?
 
 So, guys, if you want Wicket to attain widespread adoption, please don't
 shoot
 back at anyone who asks a question with a response of RTFM. Take the time
 to explain stuff.
 
 users@ had 2186 messages in April, 37% of that traffic came from 10
 people. 4 of them were so-called old-timers, not asking questions but
 helping out. 25% of traffic in April came from core contributors. So
 please don't tell me we are not helping out.
 
 What do you think the javadoc is for? Do you think we write javadoc to
 increase our commit count? Didn't we already put in the time to
 explain it? Did you consider that the ratio of users asking questions
 that they can answer themselves versus the contributors that actually
 answer is roughly 30 : 1, putting us (the old-timers) at a serious
 disadvantage?
 
 (This also contributes to the Wicket knowledge base, as it
 remains in the list archives, and hence shows up in Google searches).
 
 Why do you think we write the javadocs? So people can READ them. When
 people don't take the time to actually read the fricking javadoc, what
 does make you think that people will use google, the wiki or the
 mailing list archive?
 
 Martijn
 
 [1] http://www.catb.org/~esr/faqs/smart-questions.html
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-RTFM-messages-tp17007353p17025623.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: way to traverse / get all form validators

2008-05-02 Thread Gerolf Seitz
there is
final ListIValidator getValidators() {...} on FormComponent

  Gerolf

On Fri, May 2, 2008 at 4:17 PM, michalb_cz [EMAIL PROTECTED] wrote:


 Is there some way how to traverse all validators which are associated
 (added
 through the add(IValidator) method) with the form? I look for something
 like
 get(IValidator) [like List.get(Object obj) method] or ListIValidator
 getValidators() methods on Form component
 --
 View this message in context:
 http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17020385.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: PropertyModel with default null model object ?

2008-05-02 Thread Per Newgro
Hello smallufo:

 public class MyPanel extends Panel
 {
   private MyObj myObj;

   public MyPanel(String id , IModel model)
   {
 super(id);
 this.myObj = (MyObj) model.getObject();

 add(new Label(xxx , myObj.getFieldX.toString()));
 add(new Label(yyy , myObj.getFieldY.toString()));

   }
 }

This is the problem. Don't store the instance in the panel. Use the provided 
model. The Labels can get their data by a PropertyModel related to that 
model.
 public class MyPanel extends Panel
 {
  // removed while not required private MyObj myObj;

   public MyPanel(String id , IModel model)
   {
 super(id, model); -- use this constructor
 // removed while not required this.myObj = (MyObj) model.getObject();

 // instead add(new Label(xxx , myObj.getFieldX.toString()));
 add(new Label(xxx , new PropertyModel(model, fieldX)));
 // instead add(new Label(yyy , myObj.getFieldY.toString()));
 add(new Label(yyy , new PropertyModel(model, fieldY)));
   }
 }

You simply wire the models together. So a model related to view can't be null 
(instanciated in panel self). That's what i mean if i always say path to 
data. It's a description which properties have to be used to get the data. 
So the underlying business object can be null. The behavior if a null will be 
return will be determined by the component. A label for instance is 
displaying simply a blank. Textfield to.

HTH
Per

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



Pros and cons of WicketBench

2008-05-02 Thread Frank Silbermann
 
When I was developing in Wicket 1.2 I used Jbuilder 2006; it was what
the employer provided.  Other developers, however, use Eclipse for their
(non-Wicket) projects, and Jbuilder 2007/8 are Eclipse-based, so I
figured might might as well start my Wicket 1.3 experiments using
Eclipse.

What are the pros and (if any) cons of using the Wicket Bench plug-in?
Is it worth setting up if all I'm really going to be doing is (perhaps)
to upgrade a Wicket 1.2 application to Wicket 1.3?  

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



WicketStuff.org Is Down

2008-05-02 Thread Hoover, William
Does anyone have an ETA when wicketstuff.org will be back up?


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



Re: WicketStuff.org Is Down

2008-05-02 Thread Martijn Dashorst
No. bamboo is doing its upgrade stuff. and has been doing that for
about 3 hours.

If you are looking for the examples, install them on your own box.
They're only a download away.

Martijn

On 5/2/08, Hoover, William [EMAIL PROTECTED] wrote:
 Does anyone have an ETA when wicketstuff.org will be back up?


  -
  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.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



RE: WicketStuff.org Is Down

2008-05-02 Thread Hoover, William
okay... thanks for the info 

-Original Message-
From: Martijn Dashorst [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 02, 2008 3:31 PM
To: users@wicket.apache.org
Subject: Re: WicketStuff.org Is Down

No. bamboo is doing its upgrade stuff. and has been doing that for about
3 hours.

If you are looking for the examples, install them on your own box.
They're only a download away.

Martijn

On 5/2/08, Hoover, William [EMAIL PROTECTED] wrote:
 Does anyone have an ETA when wicketstuff.org will be back up?


  -
  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.3 is
released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



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



Re: Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread Matthew Young
Can you just mark it as required?

It's not the validation part I have problem with. I want to prevent the
UploadProgressBar from showing up when the field is blank and show a
javascript alert in that case.  There is no need to submit to the server.

The UploadProgressBar installs an 'onsubmit' event handler to show itself.
It's installed by adding a AttributeModifier to the form. Is there any way I
can put stuff *in front* of its javascript?  So I can have something like
this:

if (field.value == null || field.value==){alert(You must choose a file
to upload);return false;}[the rest of UploadProgressBar stuff]



On Fri, May 2, 2008 at 3:19 AM, James Carman [EMAIL PROTECTED]
wrote:

 Can you just mark it as required?

 On Fri, May 2, 2008 at 2:15 AM, Matthew Young [EMAIL PROTECTED] wrote:
  Instead of submit, pop up a dialog telling the user to choose a file to
   upload?  As is now, the UploadProgressBar show up, form submit ,
   getFileUpload returns null and error handling happens on the server.
 

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




Re: PropertyModel with default null model object ?

2008-05-02 Thread Martijn Dashorst
You can nest models and use a model as the value for a PropertyModel.
A PropertyModel knows how to cope with null values as it will return a
null. Components and the label component in particular will render an
empty string when the model value was found to be null.

So nest or chain your model inside PropertyModels:

add(new Label(xxx, new PropertyModel(model, fieldX)));
add(new Label(yyy, new PropertyModel(model, fieldY)));

Read the model documentation on the wiki [1]. Try to understand it and
commit it to your brain. Print the page, and put it under your pillow
at night. Read it while on the toilet, pin it to the side of your
monitor, stick it to your rear view mirror, print it on transparent
foil and stick it to the inside of your glasses.

Martijn

[1] 
http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-Chainingmodels

On 5/2/08, smallufo [EMAIL PROTECTED] wrote:
 Yes .

 In the WebPage , I add MyPanel like this :

  myPanel = new MyPanel(myPanel , new PropertyModel(this , myobj));

 myPanel.setVisible(false);
  myPanel.setOutputMarkupPlaceholderTag(true);
  add(myPanel);


 And in the MyPanel :

  public class MyPanel extends Panel
  {
   private MyObj myObj;

   public MyPanel(String id , IModel model)
   {
 super(id);
 this.myObj = (MyObj) model.getObject();

 add(new Label(xxx , myObj.getFieldX.toString()));
 add(new Label(yyy , myObj.getFieldY.toString()));

   }
  }

  Because myObj passed to MyPanel is initially null ,
  In the MyPanel construction time , myObj.getFieldX , myObj.getFieldY will
  throw NPEs here...

  I don't know how to solve it .



  2008/5/2 Per Newgro [EMAIL PROTECTED]:


   The code you provided should work. The NPEs comes from within the Panel?
   So
   can you give us an example how you access the model in the panel (with an
   NPE
   throwing component)?
  
   Cheers
   Per
  
   -
   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.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



Re: WicketStuff.org Is Down

2008-05-02 Thread Ryan Gravener
I have the examples running on http://wmwm.us/wicket-examples .  The session
doesn't expire for 55 minutes also.  Enjoy.

On Fri, May 2, 2008 at 3:34 PM, Hoover, William [EMAIL PROTECTED] wrote:

 okay... thanks for the info

 -Original Message-
 From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 02, 2008 3:31 PM
 To: users@wicket.apache.org
 Subject: Re: WicketStuff.org Is Down

 No. bamboo is doing its upgrade stuff. and has been doing that for about
 3 hours.

 If you are looking for the examples, install them on your own box.
 They're only a download away.

 Martijn

 On 5/2/08, Hoover, William [EMAIL PROTECTED] wrote:
  Does anyone have an ETA when wicketstuff.org will be back up?
 
 
   -
   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.3 is
 released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



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




-- 
Ryan Gravener
http://wmwm.us/wmwm-date


Re: Pros and cons of WicketBench

2008-05-02 Thread Igor Vaynberg
for me there are two cool aspects to wicket-bench:
1) refactor support - if you rename a class that extends Component it
will find any matching .html and .properties file and rename those
also

2) editor - wicketbench replaces java editor with a tabbed editor that
lets you quickly switch between java/html/properties files when you
open a class that extends Component. very handy.

however, it does have its problems. eclipse' java editor is not built
with embedding in mind, so once you start using (2) you will miss out
on such useful things as mark occurences, double clicking the left
border to set a breakpoint ( right clicking still works ), ctrl
clicking into a class wont always work, etc.

i think the idea is awesome, too bad eclipse makes it so hard to implement :(

-igor


On Fri, May 2, 2008 at 12:15 PM, Frank Silbermann
[EMAIL PROTECTED] wrote:

  When I was developing in Wicket 1.2 I used Jbuilder 2006; it was what
  the employer provided.  Other developers, however, use Eclipse for their
  (non-Wicket) projects, and Jbuilder 2007/8 are Eclipse-based, so I
  figured might might as well start my Wicket 1.3 experiments using
  Eclipse.

  What are the pros and (if any) cons of using the Wicket Bench plug-in?
  Is it worth setting up if all I'm really going to be doing is (perhaps)
  to upgrade a Wicket 1.2 application to Wicket 1.3?

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



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



RE: WicketStuff.org Is Down

2008-05-02 Thread Andrew Broderick
Also see http://www.wicket-library.com/wicket-examples/

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener
Sent: Friday, May 02, 2008 2:58 PM
To: users@wicket.apache.org
Subject: Re: WicketStuff.org Is Down

I have the examples running on http://wmwm.us/wicket-examples .  The session
doesn't expire for 55 minutes also.  Enjoy.

On Fri, May 2, 2008 at 3:34 PM, Hoover, William [EMAIL PROTECTED] wrote:

 okay... thanks for the info

 -Original Message-
 From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 02, 2008 3:31 PM
 To: users@wicket.apache.org
 Subject: Re: WicketStuff.org Is Down

 No. bamboo is doing its upgrade stuff. and has been doing that for about
 3 hours.

 If you are looking for the examples, install them on your own box.
 They're only a download away.

 Martijn

 On 5/2/08, Hoover, William [EMAIL PROTECTED] wrote:
  Does anyone have an ETA when wicketstuff.org will be back up?
 
 
   -
   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.3 is
 released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



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




--
Ryan Gravener
http://wmwm.us/wmwm-date

___

The  information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial  use  of  the individual or entity to which it is
addressed and may contain information that is  propri-
etary  and  confidential.  If you are not the intended
recipient of this message you are hereby notified that
any  review, dissemination, distribution or copying of
this message is strictly prohibited.  This  communica-
tion  is  for information purposes only and should not
be regarded as an offer to sell or as  a  solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be  secure  or  error-
free. P6070214


[ANNOUNCE] Apache Wicket 1.4-M1

2008-05-02 Thread Frank Bille
The Apache Wicket team is proud to announce the availability of the
first milestone release of our first java 1.5 Wicket version: Apache
Wicket 1.4-m1.

Eager people click here to download the distribution, others can read further:

http://www.apache.org/dyn/closer.cgi/wicket/1.4-m1

We thank you for your patience and support.

The Wicket Team

=== Apache Wicket ===

Apache Wicket is a component oriented Java web application framework.
With proper mark-up/logic separation, a POJO data model, and a
refreshing lack of XML, Apache Wicket makes developing web-apps simple
and enjoyable again. Swap the boilerplate, complex debugging and
brittle code for powerful, reusable components written with plain Java
and HTML.

You can find out more about Apache Wicket on our website:

http://wicket.apache.org

=== This release ===

The Apache Wicket team is proud to announce the availability of the
first milestone release of our first java 1.5 Wicket version: Apache
Wicket 1.4-m1. This is the first release with java 1.5 as a minimum.
Not everything has been converted to java 1.5 yet but we are getting
there.

=== Migrating from 1.3 ===

If you are coming from Wicket 1.3, you really want to read our
migration guide, found on the wiki:

http://cwiki.apache.org/WICKET/migrate-14.html

=== Downloading the release ===

You can download the release from the official Apache mirror system,
and you can find it through the following link:

http://www.apache.org/dyn/closer.cgi/wicket/1.4-m1/

For the Maven and Ivy fans out there: update your pom's to the
following, and everything will be downloaded automatically:

   dependency
   groupIdorg.apache.wicket/groupId
   artifactIdwicket/artifactId
   version1.4-m1/version
   /dependency

Substitute the artifact ID with the projects of your liking to get the
other projects.

Please note that we don't prescribe a Logging implementation for
SLF4J. You need to specify yourself which one you prefer. Read more
about SLF4J here: [http://slf4j.org]

=== Validating the release ===

The release has been signed by Frank Bille, your release manager for
today. The public key can be found in the KEYS file in the download
area. Download the KEYS file only from the Apache website.

http://www.apache.org/dist/wicket/1.4-m1/KEYS

Instructions on how to validate the release can be found here:

http://www.apache.org/dev/release-signing.html#check-integrity

=== Reporting bugs ===

In case you do encounter a bug, we would appreciate a report in our JIRA:

http://issues.apache.org/jira/browse/WICKET

=== The distribution ===

In the distribution you will find a README. The README contains
instructions on how to build from source yourself. You also find a
CHANEGELOG-1.4 which contains a list of all things that have been
fixed, added and/or removed since the first release in the 1.4 branch.

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



Re: WicketStuff.org Is Down

2008-05-02 Thread Martijn Dashorst
On 5/2/08, Andrew Broderick [EMAIL PROTECTED] wrote:
 Also see http://www.wicket-library.com/wicket-examples/

Please don't. These examples are *OLD* and not maintained much. We
have been telling folks to not look at those examples for over a year.
Wicket stuff is the place to look for the examples. For
debugging/learning/running corporate demos you really should download
the examples and run them locally.

Martijn

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



Re: What is session.dirty() for?

2008-05-02 Thread Matej Knopp
On Fri, May 2, 2008 at 5:12 PM, Martin Makundi
[EMAIL PROTECTED] wrote:
 Could you please elaborate what you mean by session object has changed?

  Let's say I have some variables in my session. If these variables
  change, do I have to call session.dirty?

If you subclassed the Session class and your attributes are properties
of the subclass.

But you are required to call session.dirty() only if your pages are
stateless and your application is deployed on cluster.

-Matej


  **
  Martin

  2008/5/2 Matej Knopp [EMAIL PROTECTED]:


  Hi,
  
session.dirty() should be invoked when the session object has changed,
so that wicket changes the http session attribute to make cluster
replicate the session object (assuming you're running in clustered
environment).
  
I think the only case when you need to call dirty() yourself is when
your application has only stateless pages and you have a statefull
session object that you need to replicate accros cluster. But IMHO
that's not very common usecase.
  
-Matej
  
  
  
On Fri, May 2, 2008 at 4:46 PM, Martin Makundi
[EMAIL PROTECTED] wrote:
 Hi!

  I have been coding without invoking session.dirty. Browsing framework
  code, I can see it is used. What does it accomplish and where should I
  have used it in my own code?

  **
  Martin

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


  
  
  
--
Resizable and reorderable grid components.
http://www.inmethod.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]





-- 
Resizable and reorderable grid components.
http://www.inmethod.com

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



Re: PropertyModel with default null model object ?

2008-05-02 Thread smallufo
A very good lesson learned.
Thanks to Per and Martijn very much..

2008/5/3 Martijn Dashorst [EMAIL PROTECTED]:

 You can nest models and use a model as the value for a PropertyModel.
 A PropertyModel knows how to cope with null values as it will return a
 null. Components and the label component in particular will render an
 empty string when the model value was found to be null.

 So nest or chain your model inside PropertyModels:

 add(new Label(xxx, new PropertyModel(model, fieldX)));
 add(new Label(yyy, new PropertyModel(model, fieldY)));

 Read the model documentation on the wiki [1]. Try to understand it and
 commit it to your brain. Print the page, and put it under your pillow
 at night. Read it while on the toilet, pin it to the side of your
 monitor, stick it to your rear view mirror, print it on transparent
 foil and stick it to the inside of your glasses.

 Martijn

 [1]
 http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-Chainingmodels

 On 5/2/08, smallufo [EMAIL PROTECTED] wrote:
  Yes .
 
  In the WebPage , I add MyPanel like this :
 
   myPanel = new MyPanel(myPanel , new PropertyModel(this , myobj));
 
  myPanel.setVisible(false);
   myPanel.setOutputMarkupPlaceholderTag(true);
   add(myPanel);
 
 
  And in the MyPanel :
 
   public class MyPanel extends Panel
   {
private MyObj myObj;
 
public MyPanel(String id , IModel model)
{
  super(id);
  this.myObj = (MyObj) model.getObject();
 
  add(new Label(xxx , myObj.getFieldX.toString()));
  add(new Label(yyy , myObj.getFieldY.toString()));
 
}
   }
 
   Because myObj passed to MyPanel is initially null ,
   In the MyPanel construction time , myObj.getFieldX , myObj.getFieldY
 will
   throw NPEs here...
 
   I don't know how to solve it .
 
 
 
   2008/5/2 Per Newgro [EMAIL PROTECTED]:
 
 
The code you provided should work. The NPEs comes from within the
 Panel?
So
can you give us an example how you access the model in the panel
 (with an
NPE
throwing component)?
   
Cheers
Per
   
-
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.3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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




Re: FileResourceStream

2008-05-02 Thread Jeremy Levy
implements IMarkupCacheKeyProvider
.
.
public String getCacheKey(MarkupContainer arg0, Class arg1) {
return null;
}

Jeremy


On Tue, Apr 29, 2008 at 3:01 PM, Johan Compagner [EMAIL PROTECTED]
wrote:

 So through a  Wicket Page impl you serve static pages?
 The wicket page self doesnt have any components?

 Dont know the exact api but you have to make sure that the cache key =
 null then nothing will be cached

 On 4/29/08, Ed _ [EMAIL PROTECTED] wrote:
 
  I end up using FileResourceStream to serve up static web pages from a
 Wicket
  page.
 
  But I am having issues with the fact that the page gets cached and -
  returning clients with different url params - keep getting served the
  original static page.
 
  Is there a way for me to force a refresh and make sure the
  newMarkupResourceStream() gets called each time.
 
  thanks!
 
  _
  Make i'm yours.  Create a custom banner to support your cause.
 
 http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours

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




Fragment markup in extended page possible?

2008-05-02 Thread Ritz123

Hi,

Is it possible to have wicket:fragment in the extended page like the
following?

I get Markup not found exception. But when I move wicket:fragment to
basepage, it finds it correctly!!
  

BasePage.html
...
wicket:child/
..

ExtendedPage.html

html
body
wicket:extend
...
/wicket:extend

wicket:fragment

/wicket:fragment
/body
/html

-- 
View this message in context: 
http://www.nabble.com/Fragment-markup-in-extended-page-possible--tp17028654p17028654.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Fragment markup in extended page possible?

2008-05-02 Thread Igor Vaynberg
put fragment tags inside wicket:extend

-igor

On Fri, May 2, 2008 at 3:06 PM, Ritz123 [EMAIL PROTECTED] wrote:

  Hi,

  Is it possible to have wicket:fragment in the extended page like the
  following?

  I get Markup not found exception. But when I move wicket:fragment to
  basepage, it finds it correctly!!


  BasePage.html
  ...
  wicket:child/
  ..

  ExtendedPage.html

  html
  body
  wicket:extend
  ...
  /wicket:extend

  wicket:fragment
  
  /wicket:fragment
  /body
  /html

  --
  View this message in context: 
 http://www.nabble.com/Fragment-markup-in-extended-page-possible--tp17028654p17028654.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: questions about Matt Raible's web framework comparison

2008-05-02 Thread Eelco Hillenius
On Fri, May 2, 2008 at 6:48 AM, Johan Compagner [EMAIL PROTECTED] wrote:
 yes but you also can mount 1 package is 1 go.

Or use a custom encoding strategy.

Eelco

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



Re: Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread Matthew Young
I solve this problem by putting an 'onclick' handler on the Submit button to
check for blank input.


Re: How to show a bottom-of-the-page feedback panel?

2008-05-02 Thread nate roe
Excellent.  Thank you!

On Thu, May 1, 2008 at 10:32 PM, Matthew Young [EMAIL PROTECTED] wrote:

 public class YourPage extends WebPage implement IHeadContributor {

 

// in case form has error, scroll down
@Override public void renderHead(IHeaderResponse r) {
if (form.hasError()) {
r.renderOnLoadJavascript(location.hash='YOUR-ANCHOR');
 }
}

 }

 On Thu, May 1, 2008 at 4:08 PM, nate roe [EMAIL PROTECTED] wrote:

  If I have a feedback panel positioned together with a form at the bottom
  of
  a very long page, how can I cause the browser to snap to that feedback
  panel
  upon validation error?
 
  I could use an anchor tag at the feedback panel, but how would I tell
  Wicket
  to go to that anchor upon validation error?
 
  Thanks,
  Nate Roe
 



Is there a setGatherAbbreviatedBrowserInfo(true) as appose to setGatherExtendedBrowserInfo(true)?

2008-05-02 Thread Matthew Young
I only want to find out the user's timezone.
setGatherExtendedBrowserInfo(true) redirect page take too long, sometimes it
stays on the screen many seconds.


Re: WicketStuff.org Is Down

2008-05-02 Thread Eelco Hillenius
On Fri, May 2, 2008 at 1:10 PM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 On 5/2/08, Andrew Broderick [EMAIL PROTECTED] wrote:
   Also see http://www.wicket-library.com/wicket-examples/

  Please don't. These examples are *OLD* and not maintained much. We
  have been telling folks to not look at those examples for over a year.
  Wicket stuff is the place to look for the examples. For
  debugging/learning/running corporate demos you really should download
  the examples and run them locally.

How about taking that site down? I thought that was the plan quite
some time ago?

Eelco

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