Re: Page Expired

2010-03-04 Thread Ian Marshall

Google App Engine (GAE) seems to be very aggressive in shutting application
instances down if there is no traffic for perhaps as little as one minute.

Is it possibe that your Wicket application instance has been shut down, and
when you submit your form Wicket has to re-start a new instance? In this
case, if GAE has not stored any Wicket state, then previously-stored state
that Wicket relies on to retrieve the page version Nº required may no longer
be there.

Could this be a cause of your problem?
-- 
View this message in context: 
http://old.nabble.com/Page-Expired-tp27756201p27778483.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: wiQuery components with server side state - live demo

2010-03-04 Thread Ernesto Reinaldo Barreiro
Hi Cemal,

Yes you are right. I'll keep the details for our private communications...
My apologies if I have been a bit pushy on this matter...

Best regards,

Ernesto

On Wed, Mar 3, 2010 at 10:42 PM, Cemal Bayramoglu 
jweekend_for...@cabouge.com wrote:

 Ernesto,

 Thanks for putting so much time and thought into your project and your
 response.

 Our jqGrid implementation has been gathering dust for several months
 in our own repository but we do like to work on it when we can, and
 Richard keeps an eye on interesting features the jqGrid guys introduce
 so we can expose the ones we like via our component.
 We've only just unveiled it here, even though it is not ready to be
 opened/released, because we are keen to get the gitHub hosted wiQuery
 plugins project off the ground promptly so we can have discussions
 such as this (very detailed and specific to wiQuery plugins) in a
 central place and benefit from the ideas and effort developers like
 you are generously and eagerly already putting in! This will also give
 you the access we have not yet been able to grant you so far to our
 code base, so you can contribute directly to the evolution of these
 new wiQuery components if that makes sense for you. I can already see
 that you are in a good position to speed up the development process on
 this component,

 In the meantime, I suggest we keep the detailed emails like this on
 our own private thread that you mentioned below and that I started
 for all directly interested last week so all this useful information
 is not too scattered and hard to find.

 You will also learn tomorrow from Lionel that we have some interesting
 ideas for further, reference components that will be a great place to
 direct your contributions while we get ready to open these components
 too.

 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com



 On 3 March 2010 21:13, Ernesto Reinaldo Barreiro reier...@gmail.com
 wrote:
  Hi Richard,
 
  Some of these I already answered  in a private e-mail...
 
  Just about XML vs JSON. You can have a flag on the grid that decides XML
 or
  JSON and then transparently generate one or the other  See for
 instance
 
 
 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/GridXMLData.java
 
  and how it is used on
 
 
 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java
 
  The original grid supports either XML or JSON. Why not support both of
 them
  then?
 
  Regarding events see:
 
 
 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/#component/event
 
  Best,
 
  Ernesto
 
  On Wed, Mar 3, 2010 at 7:17 PM, Richard Wilkinson 
  richard.wilkin...@jweekend.com wrote:
 
  Hi,
 
  John - im not to sure what you mean by row expanders, is that similar
  to what is provided on the tree grid?
 
  Ernesto - see comments inline:
 
 
  On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com
  wrote:
   Hi Cemal,
  
   Other things that might be useful:
  
   -Offer (pluggable) support for grid events at client and server side
  (e.g.
   been notified when user navigates between pages, sorts a columns,
 etc).
  By
   pluggable I mean they can be enable if you need them so that no
  unnecessary
   server round trips are made.
 
  The gird always has to make a request to the server when the user
  navigates between pages, or changes the sorting, since this requires
  updated data.  However these events are handled internally to the grid
  code and are not accessible to the developer.  If required we could
  make these events accessible to the developer, either through adding a
  behaviour, or overriding a method.  Other things such as selection
  notification events, or editing, can optionally be listened to by the
  developer, but these do not make a round trip to the server unless
  they are explicitly added.
 
   -Show an example of how the grid interacts with a normal wicket form.
  E.g.
   have a form the is submitted via Wicket AJAX and get the grid
 refreshed
   either via Wicket AJAX (i.e. the whole grid component is reloaded) or
   triggering a reload event on the grid (I see the master detail example
 is
   built using this last approach?) .
 
  yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage
 )
  uses a wicket form (not automatically generated though) to edit a row
  in one grid, which then triggers a data refresh in both grids, but
  does not do a wicket ajax component replace.  However ajax component
  replace is supported as there is an AjaxRequestTarget, but I feel that
  forcing the grid to reload is cleaner.
 
   -All the examples seem to use JSON for data transfer? Is XML
 supported?
 
  The grid uses JSON, however this is all internal and transparent to
  the developer using the grid, so I dont see how supporting XML would
  be a 

Re: Page Expired

2010-03-04 Thread Ernesto Reinaldo Barreiro
adding a keep-alive timer would be a good way to test this?

Ernesto

On Thu, Mar 4, 2010 at 10:24 AM, Ian Marshall ianmarshall...@gmail.comwrote:


 Google App Engine (GAE) seems to be very aggressive in shutting application
 instances down if there is no traffic for perhaps as little as one minute.

 Is it possibe that your Wicket application instance has been shut down, and
 when you submit your form Wicket has to re-start a new instance? In this
 case, if GAE has not stored any Wicket state, then previously-stored state
 that Wicket relies on to retrieve the page version Nº required may no
 longer
 be there.

 Could this be a cause of your problem?
 --
 View this message in context:
 http://old.nabble.com/Page-Expired-tp27756201p27778483.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




With out HTML Dynamic Wicket Generation

2010-03-04 Thread sravan g
Hi All,
Can anyone have idea about With out HTML Dynamic Wicket Generation
Possible?


Re: With out HTML Dynamic Wicket Generation

2010-03-04 Thread Cemal Bayramoglu
Take a look at Wicket Web Beans [1][2] for ideas. There are other projects too,

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://code.google.com/p/wicket-web-beans/
[2] http://jweekend.com/wicketwebbeans-examples-1.1/WebBeans/


On 4 March 2010 09:48, sravan g sravangs...@gmail.com wrote:
 Hi All,
    Can anyone have idea about With out HTML Dynamic Wicket Generation
 Possible?


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



Re: setResponsePage() in AjaxSubmitLink.onSubmit() redirects to relative URL

2010-03-04 Thread Riyad Kalla
Nikita,

The wicket team started the vote on if 1.4.7 was ready to go out a few
days ago, it should be either late this week or early next when the
release goes out if that helps at all (don't know how immediate your
need is).

-R

On Wed, Mar 3, 2010 at 4:16 PM, Nikita Tovstoles
nikita.tovsto...@gmail.com wrote:
 Looks like this bug was identified, and resolved but the fix hasn't been
 released yet:
 https://issues.apache.org/jira/browse/WICKET-2717

 So, yeah, any tips on an alternative way of combining Ajax validation +
 plain form submits?

 thanks
 -nikita


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



Re: setResponsePage() in AjaxSubmitLink.onSubmit() redirects to relative URL

2010-03-04 Thread Riyad Kalla
I take that back, the vote passed, looks like 24hrs per Igor's comment
on wicket-dev?

===
the vote has passed with

3 +1 binding votes and 5 +1 nonbinding votes

i will upload the artifacts to mirrors and write up an announcement
after the mirrors have synced (24 hours).

cheers
===

On Thu, Mar 4, 2010 at 4:46 AM, Riyad Kalla rka...@gmail.com wrote:
 Nikita,

 The wicket team started the vote on if 1.4.7 was ready to go out a few
 days ago, it should be either late this week or early next when the
 release goes out if that helps at all (don't know how immediate your
 need is).

 -R

 On Wed, Mar 3, 2010 at 4:16 PM, Nikita Tovstoles
 nikita.tovsto...@gmail.com wrote:
 Looks like this bug was identified, and resolved but the fix hasn't been
 released yet:
 https://issues.apache.org/jira/browse/WICKET-2717

 So, yeah, any tips on an alternative way of combining Ajax validation +
 plain form submits?

 thanks
 -nikita



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



mvn jetty plugin not compatible with wicket

2010-03-04 Thread Douglas Ferguson
Apparently the mvn jetty plugin doesn't work if your pom already has a 
dependency on jetty.

I was curious if anybody else has a mechanism for stoping and starging a jetty 
instance from mvn.

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



Re: mvn jetty plugin not compatible with wicket

2010-03-04 Thread Martin Funk
it doesn't?

svn checkout http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.7
cd wicket-1.4.7/
mvn install
cd wicket-quickstart/
mvn jetty:run


works fine on this machine.

mf

2010/3/4 Douglas Ferguson doug...@douglasferguson.us

 Apparently the mvn jetty plugin doesn't work if your pom already has a
 dependency on jetty.

 I was curious if anybody else has a mechanism for stoping and starging a
 jetty instance from mvn.

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




Re: mvn jetty plugin not compatible with wicket

2010-03-04 Thread vineet semwal
you have to edit your settings.xml ,
take a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin

On Thu, Mar 4, 2010 at 5:24 PM, Douglas Ferguson doug...@douglasferguson.us
 wrote:

 Apparently the mvn jetty plugin doesn't work if your pom already has a
 dependency on jetty.

 I was curious if anybody else has a mechanism for stoping and starging a
 jetty instance from mvn.

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




-- 
regards,
Vineet Semwal


Re: mvn jetty plugin not compatible with wicket

2010-03-04 Thread vineet semwal
sorry ignore my post ..


On Thu, Mar 4, 2010 at 6:51 PM, vineet semwal vineetsemwal1...@gmail.comwrote:

 you have to edit your settings.xml ,
 take a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin


 On Thu, Mar 4, 2010 at 5:24 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 Apparently the mvn jetty plugin doesn't work if your pom already has a
 dependency on jetty.

 I was curious if anybody else has a mechanism for stoping and starging a
 jetty instance from mvn.

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




 --
 regards,
 Vineet Semwal




-- 
regards,
Vineet Semwal


Re: Page Expired

2010-03-04 Thread Alexander Monakhov
Hi, I don't think that this is problem. 'Page expired' message appears
immediately when I click link. There is no timeout or something like that. I
serf pages, then click link and 'Page Expired' message appears. As you can
see there is log's message that says there is no version manager for this
page. COuld it be problem?

Best regards, Alexander.


Re: LegUp for wiQuery

2010-03-04 Thread shetc

I guess this is an off-topic question. I want to use wiQuery and jquery UI in
the current
Wicket-based app that I am working on. This will be a public-facing app that
needs to support
IE6 and upwards. However, the rounded corners used for many of the jquery UI
widgets does
not work in IE -- jquery UI uses CSS 3 specs, which is not supported in IE.
Have you had any
success in creating rounded corners for apps that use wiQuery and are
displayed in IE?

Thanks!
-- 
View this message in context: 
http://old.nabble.com/LegUp-for-wiQuery-tp27771785p27781171.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



SubmitLink and popup window

2010-03-04 Thread Anders Sørensen
Hi everybody,

I have a page where a user inputs a number of values.
The user them clicks on a calculate button, and the form is submitted.

I would now like to display the calculated result in a popup page.

Since SubmitLink does not support PopupSettings - I was wondering if anybody
here have tried doing this before?

I have seen a previous post, where Igor suggests the following:

class popperupper extends abstractbehavior implements iheadercontributor {
  // some logic to only output the script once
}

button { onsubmit() { TextField tf=; String value=tf.getModelObject();
add(new popperupper()); }}

I must however admit, I'm not quite following the example :-$

Med venlig hilsen/Best regards

Anders Sørensen


Re: LegUp for wiQuery

2010-03-04 Thread Martijn Dashorst
I would treat the rounded corners as a bonus for users that upgrade to
something that does support it. Wow, why does the application look so
much better on your computer?

Martijn

On Thu, Mar 4, 2010 at 3:05 PM, shetc sh...@bellsouth.net wrote:

 I guess this is an off-topic question. I want to use wiQuery and jquery UI in
 the current
 Wicket-based app that I am working on. This will be a public-facing app that
 needs to support
 IE6 and upwards. However, the rounded corners used for many of the jquery UI
 widgets does
 not work in IE -- jquery UI uses CSS 3 specs, which is not supported in IE.
 Have you had any
 success in creating rounded corners for apps that use wiQuery and are
 displayed in IE?

 Thanks!
 --
 View this message in context: 
 http://old.nabble.com/LegUp-for-wiQuery-tp27771785p27781171.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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



Re: SubmitLink and popup window

2010-03-04 Thread Jeremy Thomerson
Simply add target=_results in your form tag.

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



On Thu, Mar 4, 2010 at 8:09 AM, Anders Sørensen aisz...@gmail.com wrote:

 Hi everybody,

 I have a page where a user inputs a number of values.
 The user them clicks on a calculate button, and the form is submitted.

 I would now like to display the calculated result in a popup page.

 Since SubmitLink does not support PopupSettings - I was wondering if
 anybody
 here have tried doing this before?

 I have seen a previous post, where Igor suggests the following:

 class popperupper extends abstractbehavior implements iheadercontributor {
  // some logic to only output the script once
 }

 button { onsubmit() { TextField tf=; String value=tf.getModelObject();
 add(new popperupper()); }}

 I must however admit, I'm not quite following the example :-$

 Med venlig hilsen/Best regards

 Anders Sørensen



Re: LegUp for wiQuery

2010-03-04 Thread Witold Czaplewski
You could take a look at http://www.malsup.com/jquery/corner/
It's a JS based solution using multiple div containers.

Witold



Am Thu, 4 Mar 2010 06:05:00 -0800 (PST)
schrieb shetc sh...@bellsouth.net:

 
 I guess this is an off-topic question. I want to use wiQuery and jquery UI in
 the current
 Wicket-based app that I am working on. This will be a public-facing app that
 needs to support
 IE6 and upwards. However, the rounded corners used for many of the jquery UI
 widgets does
 not work in IE -- jquery UI uses CSS 3 specs, which is not supported in IE.
 Have you had any
 success in creating rounded corners for apps that use wiQuery and are
 displayed in IE?
 
 Thanks!


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



How to keep mounted bookmarkable urls after an onclick?

2010-03-04 Thread wazzaly Ioo
Hello,

I'm new to Wicket and have to change an existing Wicket 1.4.5 application.

A requirement is that some pages must have an url that starts with
/restricted/ after the context root. For example
https://www.domain.com/context-root/restricted/easy-to-remember

This is done by mounting bookmarkable pages to urls. We do this with:
org.apache.wicket.protocol.http.WebApplication.mountBookmarkablePage(String,
ClassT);
we call application.mountBookmarkablePage(/restricted/easy-to-remember,
SomePage.class);

This works, but there is one problem:
if the onclick event on a component on the page is fired, then the url gets
something like: https://www.domain.com/context-root/?wicket:interface=:5:1:
::
instead of
https://www.domain.com/context-root/restricted/another-easy-to-remember-path/?wicket:interface=:5:1:
::

How can I fix this problem?

Thanks,

Wazzaly


Re: How to keep mounted bookmarkable urls after an onclick?

2010-03-04 Thread Jeremy Thomerson
Try using the HybridUrlEncodingStrategy

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



On Thu, Mar 4, 2010 at 9:07 AM, wazzaly Ioo wazzaly@gmail.com wrote:

 Hello,

 I'm new to Wicket and have to change an existing Wicket 1.4.5 application.

 A requirement is that some pages must have an url that starts with
 /restricted/ after the context root. For example
 https://www.domain.com/context-root/restricted/easy-to-remember

 This is done by mounting bookmarkable pages to urls. We do this with:

 org.apache.wicket.protocol.http.WebApplication.mountBookmarkablePage(String,
 ClassT);
 we call application.mountBookmarkablePage(/restricted/easy-to-remember,
 SomePage.class);

 This works, but there is one problem:
 if the onclick event on a component on the page is fired, then the url gets
 something like: https://www.domain.com/context-root/?wicket:interface=:5:1
 :
 ::
 instead of

 https://www.domain.com/context-root/restricted/another-easy-to-remember-path/?wicket:interface=:5:1
 :
 ::

 How can I fix this problem?

 Thanks,

 Wazzaly



how to use the google trends for searching wicket?

2010-03-04 Thread Jing Ge (Besitec IT DEHAM)
Hello,

 

For example, compare with GWT, I have tried 

 

GWT, Wicket 

http://www.google.de/trends?q=GWT%2C+wicket

 

and GWT, apache Wicket

http://www.google.de/trends?q=GWT%2C++apache+wicketctab=0geo=alldate=
allsort=0

 

I think both results are not correct. 

 

Any suggestion? 

 

Best regards.

Jing

 



Re: How to keep mounted bookmarkable urls after an onclick?

2010-03-04 Thread wazzaly Ioo
Thnx for your very fast reply. And even more for the correct solution! :-)

On Thu, Mar 4, 2010 at 4:08 PM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 Try using the HybridUrlEncodingStrategy

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



 On Thu, Mar 4, 2010 at 9:07 AM, wazzaly Ioo wazzaly@gmail.com wrote:

  Hello,
 
  I'm new to Wicket and have to change an existing Wicket 1.4.5
 application.
 
  A requirement is that some pages must have an url that starts with
  /restricted/ after the context root. For example
  https://www.domain.com/context-root/restricted/easy-to-remember
 
  This is done by mounting bookmarkable pages to urls. We do this with:
 
 
 org.apache.wicket.protocol.http.WebApplication.mountBookmarkablePage(String,
  ClassT);
  we call application.mountBookmarkablePage(/restricted/easy-to-remember,
  SomePage.class);
 
  This works, but there is one problem:
  if the onclick event on a component on the page is fired, then the url
 gets
  something like:
 https://www.domain.com/context-root/?wicket:interface=:5:1
  :
  ::
  instead of
 
 
 https://www.domain.com/context-root/restricted/another-easy-to-remember-path/?wicket:interface=:5:1
  :
  ::
 
  How can I fix this problem?
 
  Thanks,
 
  Wazzaly
 



Re: how to use the google trends for searching wicket?

2010-03-04 Thread Riyad Kalla
You can use grouping and AND and OR operators to improve the
accuracy... but there is no great magic to Trends, it's hard to pull
awesome stats out of commonly named things from it.

Usually the news articles help you know if it's hitting the right
search items, but a lot of times they are missing. I just tried more
specific terms:

http://www.google.com/trends?q=(gwt)|(google+web+toolkit),+(apache+wicket)|(java+wicket)|(wicket+1.3)|(wicket+1.4)ctab=0geo=alldate=allsort=0

and it comes up with garbage... using just 'wicket' isn't great
because if you Google for it, you'll notice maybe the 2nd/3rd/etc.
results are for basketing and what not.

Anyone else have suggestions?

On Thu, Mar 4, 2010 at 8:31 AM, Jing Ge (Besitec IT DEHAM)
j...@besitec.com wrote:
 Hello,



 For example, compare with GWT, I have tried



 GWT, Wicket

 http://www.google.de/trends?q=GWT%2C+wicket



 and GWT, apache Wicket

 http://www.google.de/trends?q=GWT%2C++apache+wicketctab=0geo=alldate=
 allsort=0



 I think both results are not correct.



 Any suggestion?



 Best regards.

 Jing





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



Re: Wicket tests without FormTester

2010-03-04 Thread shetc

I am trying to unit test a DropDownChoice that is not part of a form and does
not use AJAX.
I have tried something like:

wicketTester.getServletRequest().setParameter(ddc.getInputName(), 0);
wicketTester.executeListener(ddc);

which causes the DropDownChoice model to fire its setObject method but
its input object is always null.

Any ideas on the best way to do this testing?

Thanks.

-- 
View this message in context: 
http://old.nabble.com/Wicket-tests-without-FormTester-tp22609725p27782522.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Re: FormTester and Select component?

2010-03-04 Thread Jan Eriksson
well, since it looks like there's no build-in way of working with the
Select component in FormTester i guess we have to decide on one of the
ideas posted by you guys here. Thanks for you help!

/jan

On Tue, Mar 2, 2010 at 11:39 AM,  leo.erlands...@tyringe.com wrote:
 You could easily extend WicketTester and FormTester to support selecting
 in org.apache.wicket.extensions.markup.html.form.select.Select.

 Take a look at the

 public void select(String formComponentId, int index)

 method in FormTester and

 public FormTester newFormTester(String path, boolean fillBlankString)

 in BaseWicketTester on how to do it.


Thank you for the reply. Unfortunately this is not easier for me since
we already have this function implemented using the Select component.
If there is no way of getting FormTester to work with that component
i'll have a look at your code - i really want to have this test
automated without having to use a heavier test framework.



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



Can't get FormTester.submitLink to work (required testfield always missing)

2010-03-04 Thread Jan Eriksson
I'm stuck on something that seems like a very trivial problem.. I have
a form with a RequiredTextField that i want to run some tests on using
FormTester. The form is submitted using a SubmitLink located outside
of the form tags. My problem is that even when i set a value on the
RequiredTextField the form submission is failing - because of that the
required field is missing.


test-code:

tester.startPage(HomePage.class);
tester.assertRenderedPage(HomePage.class);

FormTester formTester = tester.newFormTester(testForm, false);
formTester.setValue(name, a name);

formTester.submitLink(mySubmitLink, true);
tester.assertNoErrorMessage();


java-code:

public class HomePage extends WebPage {

  private static final long serialVersionUID = 1L;
  private final ValueMap properties = new ValueMap();

  public HomePage(final PageParameters parameters) {
  FormObject f = new FormObject(testForm, new
CompoundPropertyModelObject(properties));
  add(f);
  f.add(new RequiredTextFieldString(name)); 
  add(new SubmitLink(mySubmitLink, f));
}
}


markup:

html 
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd;

body
form wicket:id=testForm
input wicket:id=name/input
/form
a href=# wicket:id=mySubmitLinksubmit/a
/body
/html


stacktrace:

junit.framework.AssertionFailedError: expect no error message, but contains
   Field 'name' is required.
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at 
org.apache.wicket.util.tester.WicketTester.assertNoErrorMessage(WicketTester.java:501)
at 
com.metria.test.atest.TestHomePage.testRenderMyPage(TestHomePage.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)



Any help would be appreciated! Thanks,
jan

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



mod_proxy + ssl + HttpsRequestCycleProcessor

2010-03-04 Thread Istvan Soos
Hi,

We are using HttpsRequestCycleProcessor + @RequireHttps annotation in
our local dev environment (the server is a jetty executed directly
from Eclipse). In the production environment, we have Apache +
mod_proxy, and I'd prefer if Apache could handle the SSL part (in that
case we are not required to configure SSL on the application server -
glassfish v3). Is there any best practice how to achieve this?

Thanks and regards,
   Istvan

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



Re: setResponsePage() in AjaxSubmitLink.onSubmit() redirects to relative URL

2010-03-04 Thread Nikita Tovstoles
just tested with 1.4.7 - can confirm that the issue's been resolved. thanks
for a prompt response and congrats on the release

On Thu, Mar 4, 2010 at 3:51 AM, Riyad Kalla rka...@gmail.com wrote:

 I take that back, the vote passed, looks like 24hrs per Igor's comment
 on wicket-dev?

 ===
 the vote has passed with

 3 +1 binding votes and 5 +1 nonbinding votes

 i will upload the artifacts to mirrors and write up an announcement
 after the mirrors have synced (24 hours).

 cheers
 ===

 On Thu, Mar 4, 2010 at 4:46 AM, Riyad Kalla rka...@gmail.com wrote:
  Nikita,
 
  The wicket team started the vote on if 1.4.7 was ready to go out a few
  days ago, it should be either late this week or early next when the
  release goes out if that helps at all (don't know how immediate your
  need is).
 
  -R
 
  On Wed, Mar 3, 2010 at 4:16 PM, Nikita Tovstoles
  nikita.tovsto...@gmail.com wrote:
  Looks like this bug was identified, and resolved but the fix hasn't been
  released yet:
  https://issues.apache.org/jira/browse/WICKET-2717
 
  So, yeah, any tips on an alternative way of combining Ajax validation +
  plain form submits?
 
  thanks
  -nikita
 
 

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




-- 
---
Nikita Tovstoles
CTO, CastaneaLabs.com
(m) +1-650-996-8173
(e) ntovsto...@castanealabs.com
---


RE: mod_proxy + ssl + HttpsRequestCycleProcessor

2010-03-04 Thread Josh Chappelle
In your Application class you could check to see if you are running in
Production or Development mode. If you are running in Development mode then
use the HttpsRequestCycleProcessor. Otherwise use the default
RequestCycleProcessor. 

Josh

-Original Message-
From: Istvan Soos [mailto:istvan.s...@gmail.com] 
Sent: Thursday, March 04, 2010 11:05 AM
To: users@wicket.apache.org
Subject: mod_proxy + ssl + HttpsRequestCycleProcessor

Hi,

We are using HttpsRequestCycleProcessor + @RequireHttps annotation in
our local dev environment (the server is a jetty executed directly
from Eclipse). In the production environment, we have Apache +
mod_proxy, and I'd prefer if Apache could handle the SSL part (in that
case we are not required to configure SSL on the application server -
glassfish v3). Is there any best practice how to achieve this?

Thanks and regards,
   Istvan

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


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



Re: mod_proxy + ssl + HttpsRequestCycleProcessor

2010-03-04 Thread Istvan Soos
That is ok, however in production I still would like to benefit of the
@RequireHttps. Will it work? I suppose there should be a setup that
uses mod_headers to inject a header in the request or something like
that, but I'm only guessing this...

Istvan

On Thu, Mar 4, 2010 at 6:23 PM, Josh Chappelle jchappe...@4redi.com wrote:
 In your Application class you could check to see if you are running in
 Production or Development mode. If you are running in Development mode then
 use the HttpsRequestCycleProcessor. Otherwise use the default
 RequestCycleProcessor.

 Josh

 -Original Message-
 From: Istvan Soos [mailto:istvan.s...@gmail.com]
 Sent: Thursday, March 04, 2010 11:05 AM
 To: users@wicket.apache.org
 Subject: mod_proxy + ssl + HttpsRequestCycleProcessor

 Hi,

 We are using HttpsRequestCycleProcessor + @RequireHttps annotation in
 our local dev environment (the server is a jetty executed directly
 from Eclipse). In the production environment, we have Apache +
 mod_proxy, and I'd prefer if Apache could handle the SSL part (in that
 case we are not required to configure SSL on the application server -
 glassfish v3). Is there any best practice how to achieve this?

 Thanks and regards,
   Istvan

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


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



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



Re: image from outside web application directory

2010-03-04 Thread Gw
Hi Riyad n Ernesto,

Thx a lot for your help.
I've found the solution among those search results.
The class name is FileResource.
Quite simple, yet I wonder why the class isn't included in Wicket,
bcoz it's a common need.
Many thanks for the clues...
GBU


On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla rka...@gmail.com wrote:
 Mike,

 The solution is writing a wicket component that finds the image on-disk and
 streams the bits back to the browser. Try these search results:
 http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image

 http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+imageand
 these:
 http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=

 http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=Your
 answer is in there somewhere. The thread recently (3 weeks ago?) about it
 was pretty long and someone pasted a complete impl that they were using that
 folks said worked great. I just don't recall the class name otherwise I'd
 search for it :)

 -R

 On Tue, Mar 2, 2010 at 4:46 AM, Gw not4spamm...@gmail.com wrote:

 Hi all,

 I'd like to know how to display an image which is located outside web
 application directory (eg: C:\images) .
 Many thanks in advance for your assists.

 Regards,
 Mike

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




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



Planned 1.4.7 Release?

2010-03-04 Thread Corbin, James
Hi,

We are currently using Wicket Version 1.4.4 and I believe the release of 1.4.7 
is fairly imminent?

Could someone shed some light on the expected release timeframe for 1.4.7 and 
what the recommendation is on upgrading from 1.4.4 to 1.4.7?

We have a lot of Ajax behaviors in our code and if there are significant fixes 
around Ajax in the releases subsequent to 1.4.4 then my gut says I should 
upgrade.

Also, are there any notable performance improvements in 1.4.5, 1.4.6 or 1.4.7?

Thanks,
J.D.


Re: SubmitLink and popup window

2010-03-04 Thread Anders Sørensen
Hi Jeremy,

What a simple solution.
If you just knew what I have tried.

Many, many thanks.

Med venlig hilsen/Best regards

Anders Sørensen


On Thu, Mar 4, 2010 at 9:35 AM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 Simply add target=_results in your form tag.

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



 On Thu, Mar 4, 2010 at 8:09 AM, Anders Sørensen aisz...@gmail.com wrote:

  Hi everybody,
 
  I have a page where a user inputs a number of values.
  The user them clicks on a calculate button, and the form is submitted.
 
  I would now like to display the calculated result in a popup page.
 
  Since SubmitLink does not support PopupSettings - I was wondering if
  anybody
  here have tried doing this before?
 
  I have seen a previous post, where Igor suggests the following:
 
  class popperupper extends abstractbehavior implements iheadercontributor
 {
   // some logic to only output the script once
  }
 
  button { onsubmit() { TextField tf=; String
 value=tf.getModelObject();
  add(new popperupper()); }}
 
  I must however admit, I'm not quite following the example :-$
 
  Med venlig hilsen/Best regards
 
  Anders Sørensen
 



how to get domain name

2010-03-04 Thread Gw
Hi all,

I've searched around to no avail for an example on how to get the
domain name of the server where the wicket application runs on.
Can anybody help with this?
Lots of thanks in advance

Regards,

Mike

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



Re: Planned 1.4.7 Release?

2010-03-04 Thread Jeremy Thomerson
It was announced - however the announcement is not up yet, and it may not be
synced out to the mirrors yet, either.

http://old.nabble.com/Re:--vote--release-wicket-1.4.7-p27776080.html

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



On Thu, Mar 4, 2010 at 11:55 AM, Corbin, James jcor...@iqnavigator.comwrote:

 Hi,

 We are currently using Wicket Version 1.4.4 and I believe the release of
 1.4.7 is fairly imminent?

 Could someone shed some light on the expected release timeframe for 1.4.7
 and what the recommendation is on upgrading from 1.4.4 to 1.4.7?

 We have a lot of Ajax behaviors in our code and if there are significant
 fixes around Ajax in the releases subsequent to 1.4.4 then my gut says I
 should upgrade.

 Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
 1.4.7?

 Thanks,
 J.D.



Re: image from outside web application directory

2010-03-04 Thread Riyad Kalla
GW,

Good pt... at the least it should probably be in the Wiki. I think it's just
an issue of one of the leads not having time to go through it's impl and
figure out if it should go in or not? I'm sure there are probably a few
different ways to write such a component.

-R

On Thu, Mar 4, 2010 at 10:55 AM, Gw not4spamm...@gmail.com wrote:

 Hi Riyad n Ernesto,

 Thx a lot for your help.
 I've found the solution among those search results.
 The class name is FileResource.
 Quite simple, yet I wonder why the class isn't included in Wicket,
 bcoz it's a common need.
 Many thanks for the clues...
 GBU


 On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla rka...@gmail.com wrote:
  Mike,
 
  The solution is writing a wicket component that finds the image on-disk
 and
  streams the bits back to the browser. Try these search results:
 
 http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image
 
  
 http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image
 and
  these:
 
 http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=
 
  
 http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=
 Your
  answer is in there somewhere. The thread recently (3 weeks ago?) about it
  was pretty long and someone pasted a complete impl that they were using
 that
  folks said worked great. I just don't recall the class name otherwise I'd
  search for it :)
 
  -R
 
  On Tue, Mar 2, 2010 at 4:46 AM, Gw not4spamm...@gmail.com wrote:
 
  Hi all,
 
  I'd like to know how to display an image which is located outside web
  application directory (eg: C:\images) .
  Many thanks in advance for your assists.
 
  Regards,
  Mike
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

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




Re: how to get domain name

2010-03-04 Thread Jeremy Thomerson
from the httpservletrequest

http://www.jguru.com/faq/view.jsp?EID=734942

note that if you use mod_proxy with apache, this may not work

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



On Thu, Mar 4, 2010 at 12:01 PM, Gw not4spamm...@gmail.com wrote:

 Hi all,

 I've searched around to no avail for an example on how to get the
 domain name of the server where the wicket application runs on.
 Can anybody help with this?
 Lots of thanks in advance

 Regards,

 Mike

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




Re: Planned 1.4.7 Release?

2010-03-04 Thread Riyad Kalla
The hot item in 1.4.7 I am aware of is the fix for redirected/relative
paths when using Ajax components that was broken in 1.4.6 -- and yesterday
Igor said he would begin promotion to the mirrors and writeup an
announcement, so I think the release is... any minute now?

On Thu, Mar 4, 2010 at 10:55 AM, Corbin, James jcor...@iqnavigator.comwrote:

 Hi,

 We are currently using Wicket Version 1.4.4 and I believe the release of
 1.4.7 is fairly imminent?

 Could someone shed some light on the expected release timeframe for 1.4.7
 and what the recommendation is on upgrading from 1.4.4 to 1.4.7?

 We have a lot of Ajax behaviors in our code and if there are significant
 fixes around Ajax in the releases subsequent to 1.4.4 then my gut says I
 should upgrade.

 Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
 1.4.7?

 Thanks,
 J.D.



RE: Planned 1.4.7 Release?

2010-03-04 Thread Corbin, James
Awesome.  Thanks for the response.

I was hoping it was this week so I could test out 1.4.7 with our application 
over the weekend.

J.D.

-Original Message-
From: Riyad Kalla [mailto:rka...@gmail.com] 
Sent: Thursday, March 04, 2010 11:05 AM
To: users@wicket.apache.org
Subject: Re: Planned 1.4.7 Release?

The hot item in 1.4.7 I am aware of is the fix for redirected/relative
paths when using Ajax components that was broken in 1.4.6 -- and yesterday
Igor said he would begin promotion to the mirrors and writeup an
announcement, so I think the release is... any minute now?

On Thu, Mar 4, 2010 at 10:55 AM, Corbin, James jcor...@iqnavigator.comwrote:

 Hi,

 We are currently using Wicket Version 1.4.4 and I believe the release of
 1.4.7 is fairly imminent?

 Could someone shed some light on the expected release timeframe for 1.4.7
 and what the recommendation is on upgrading from 1.4.4 to 1.4.7?

 We have a lot of Ajax behaviors in our code and if there are significant
 fixes around Ajax in the releases subsequent to 1.4.4 then my gut says I
 should upgrade.

 Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
 1.4.7?

 Thanks,
 J.D.



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



Re: Planned 1.4.7 Release?

2010-03-04 Thread Jeremy Thomerson
Look in that release vote - you can download the jars from the temp repo and
use them now (or a few days ago).  They'll be in the main repo(s) in the
next few days.

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



On Thu, Mar 4, 2010 at 12:15 PM, Corbin, James jcor...@iqnavigator.comwrote:

 Awesome.  Thanks for the response.

 I was hoping it was this week so I could test out 1.4.7 with our
 application over the weekend.

 J.D.

 -Original Message-
 From: Riyad Kalla [mailto:rka...@gmail.com]
 Sent: Thursday, March 04, 2010 11:05 AM
 To: users@wicket.apache.org
 Subject: Re: Planned 1.4.7 Release?

 The hot item in 1.4.7 I am aware of is the fix for redirected/relative
 paths when using Ajax components that was broken in 1.4.6 -- and yesterday
 Igor said he would begin promotion to the mirrors and writeup an
 announcement, so I think the release is... any minute now?

 On Thu, Mar 4, 2010 at 10:55 AM, Corbin, James jcor...@iqnavigator.com
 wrote:

  Hi,
 
  We are currently using Wicket Version 1.4.4 and I believe the release of
  1.4.7 is fairly imminent?
 
  Could someone shed some light on the expected release timeframe for 1.4.7
  and what the recommendation is on upgrading from 1.4.4 to 1.4.7?
 
  We have a lot of Ajax behaviors in our code and if there are significant
  fixes around Ajax in the releases subsequent to 1.4.4 then my gut says I
  should upgrade.
 
  Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
  1.4.7?
 
  Thanks,
  J.D.
 


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




Prettyfy URLs

2010-03-04 Thread srm
Hi List,

I have a WebShop that uses only 2 Pages.
A DetailPage to view item-details and the HomePage
StorePage. StorePage holds a Panel (currentPanel)
and for navigation this one is just replaced with the 
corresponding panel (cartPanel, checkoutPanel, et al.).

Now I wanted to prettyfy the URLs.
For the DetailPage that seems to be no problem, as 
this should be bookmarkable anyway. *working

Not the StorePage, which produces URLs like:
http://localhost:8080/Increment18/?wicket:interface=:5:currentPanel:items:6:add:5:ILinkListener::;
- this link means add an item to the cart

How would I go to prettyfy these ones?
Or wouldn't I at all?

Anyone has done this before?

Share your thoughts!

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



Re: Prettyfy URLs

2010-03-04 Thread Jeremy Thomerson
try the hybridurlcodingstrategy

also, search the list - there is a ton of information about this subject

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



On Thu, Mar 4, 2010 at 12:27 PM, srm s...@schokokeks.org wrote:

 Hi List,

 I have a WebShop that uses only 2 Pages.
 A DetailPage to view item-details and the HomePage
 StorePage. StorePage holds a Panel (currentPanel)
 and for navigation this one is just replaced with the
 corresponding panel (cartPanel, checkoutPanel, et al.).

 Now I wanted to prettyfy the URLs.
 For the DetailPage that seems to be no problem, as
 this should be bookmarkable anyway. *working

 Not the StorePage, which produces URLs like:
 
 http://localhost:8080/Increment18/?wicket:interface=:5:currentPanel:items:6:add:5:ILinkListener:
 :
 - this link means add an item to the cart

 How would I go to prettyfy these ones?
 Or wouldn't I at all?

 Anyone has done this before?

 Share your thoughts!

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




RE: Planned 1.4.7 Release?

2010-03-04 Thread Corbin, James
Is this a valid download URL: http://apache.tradebit.com/pub/wicket/1.4.7/

-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: Thursday, March 04, 2010 11:19 AM
To: users@wicket.apache.org
Subject: Re: Planned 1.4.7 Release?

Look in that release vote - you can download the jars from the temp repo and
use them now (or a few days ago).  They'll be in the main repo(s) in the
next few days.

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



On Thu, Mar 4, 2010 at 12:15 PM, Corbin, James jcor...@iqnavigator.comwrote:

 Awesome.  Thanks for the response.

 I was hoping it was this week so I could test out 1.4.7 with our
 application over the weekend.

 J.D.

 -Original Message-
 From: Riyad Kalla [mailto:rka...@gmail.com]
 Sent: Thursday, March 04, 2010 11:05 AM
 To: users@wicket.apache.org
 Subject: Re: Planned 1.4.7 Release?

 The hot item in 1.4.7 I am aware of is the fix for redirected/relative
 paths when using Ajax components that was broken in 1.4.6 -- and yesterday
 Igor said he would begin promotion to the mirrors and writeup an
 announcement, so I think the release is... any minute now?

 On Thu, Mar 4, 2010 at 10:55 AM, Corbin, James jcor...@iqnavigator.com
 wrote:

  Hi,
 
  We are currently using Wicket Version 1.4.4 and I believe the release of
  1.4.7 is fairly imminent?
 
  Could someone shed some light on the expected release timeframe for 1.4.7
  and what the recommendation is on upgrading from 1.4.4 to 1.4.7?
 
  We have a lot of Ajax behaviors in our code and if there are significant
  fixes around Ajax in the releases subsequent to 1.4.4 then my gut says I
  should upgrade.
 
  Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
  1.4.7?
 
  Thanks,
  J.D.
 


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




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



Re: mvn jetty plugin not compatible with wicket

2010-03-04 Thread Douglas Ferguson
Well...  Jetty starts but the wicket filter doesn't work.

D/

On Mar 4, 2010, at 6:08 AM, Martin Funk wrote:

 it doesn't?
 
 svn checkout http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.7
 cd wicket-1.4.7/
 mvn install
 cd wicket-quickstart/
 mvn jetty:run
 
 
 works fine on this machine.
 
 mf
 
 2010/3/4 Douglas Ferguson doug...@douglasferguson.us
 
 Apparently the mvn jetty plugin doesn't work if your pom already has a
 dependency on jetty.
 
 I was curious if anybody else has a mechanism for stoping and starging a
 jetty instance from mvn.
 
 D/
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


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



Re: Planned 1.4.7 Release?

2010-03-04 Thread Jeremy Thomerson
Here's the one from the release announcement:
http://people.apache.org/~ivaynberg/wicket-1.4.7/

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



On Thu, Mar 4, 2010 at 12:46 PM, Corbin, James jcor...@iqnavigator.comwrote:

 Is this a valid download URL: http://apache.tradebit.com/pub/wicket/1.4.7/

 -Original Message-
 From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
 Sent: Thursday, March 04, 2010 11:19 AM
 To: users@wicket.apache.org
 Subject: Re: Planned 1.4.7 Release?

 Look in that release vote - you can download the jars from the temp repo
 and
 use them now (or a few days ago).  They'll be in the main repo(s) in the
 next few days.

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



 On Thu, Mar 4, 2010 at 12:15 PM, Corbin, James jcor...@iqnavigator.com
 wrote:

  Awesome.  Thanks for the response.
 
  I was hoping it was this week so I could test out 1.4.7 with our
  application over the weekend.
 
  J.D.
 
  -Original Message-
  From: Riyad Kalla [mailto:rka...@gmail.com]
  Sent: Thursday, March 04, 2010 11:05 AM
  To: users@wicket.apache.org
  Subject: Re: Planned 1.4.7 Release?
 
  The hot item in 1.4.7 I am aware of is the fix for redirected/relative
  paths when using Ajax components that was broken in 1.4.6 -- and
 yesterday
  Igor said he would begin promotion to the mirrors and writeup an
  announcement, so I think the release is... any minute now?
 
  On Thu, Mar 4, 2010 at 10:55 AM, Corbin, James jcor...@iqnavigator.com
  wrote:
 
   Hi,
  
   We are currently using Wicket Version 1.4.4 and I believe the release
 of
   1.4.7 is fairly imminent?
  
   Could someone shed some light on the expected release timeframe for
 1.4.7
   and what the recommendation is on upgrading from 1.4.4 to 1.4.7?
  
   We have a lot of Ajax behaviors in our code and if there are
 significant
   fixes around Ajax in the releases subsequent to 1.4.4 then my gut says
 I
   should upgrade.
  
   Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
   1.4.7?
  
   Thanks,
   J.D.
  
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


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




Re: Planned 1.4.7 Release?

2010-03-04 Thread James Carman
Why not just try it:

http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.4.7/

Change your version in Maven and see if it picks it up.

On Thu, Mar 4, 2010 at 1:15 PM, Corbin, James jcor...@iqnavigator.com wrote:
 Awesome.  Thanks for the response.

 I was hoping it was this week so I could test out 1.4.7 with our application 
 over the weekend.

 J.D.

 -Original Message-
 From: Riyad Kalla [mailto:rka...@gmail.com]
 Sent: Thursday, March 04, 2010 11:05 AM
 To: users@wicket.apache.org
 Subject: Re: Planned 1.4.7 Release?

 The hot item in 1.4.7 I am aware of is the fix for redirected/relative
 paths when using Ajax components that was broken in 1.4.6 -- and yesterday
 Igor said he would begin promotion to the mirrors and writeup an
 announcement, so I think the release is... any minute now?

 On Thu, Mar 4, 2010 at 10:55 AM, Corbin, James jcor...@iqnavigator.comwrote:

 Hi,

 We are currently using Wicket Version 1.4.4 and I believe the release of
 1.4.7 is fairly imminent?

 Could someone shed some light on the expected release timeframe for 1.4.7
 and what the recommendation is on upgrading from 1.4.4 to 1.4.7?

 We have a lot of Ajax behaviors in our code and if there are significant
 fixes around Ajax in the releases subsequent to 1.4.4 then my gut says I
 should upgrade.

 Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
 1.4.7?

 Thanks,
 J.D.



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



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



RE: Planned 1.4.7 Release?

2010-03-04 Thread Corbin, James
Thanks, I already downloaded it and have our application running on 1.4.7.

So far so good.  Seems a bit snappier than our version that was using 1.4.4.

J.D.

-Original Message-
From: James Carman [mailto:jcar...@carmanconsulting.com] 
Sent: Thursday, March 04, 2010 2:03 PM
To: users@wicket.apache.org
Subject: Re: Planned 1.4.7 Release?

Why not just try it:

http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.4.7/

Change your version in Maven and see if it picks it up.

On Thu, Mar 4, 2010 at 1:15 PM, Corbin, James jcor...@iqnavigator.com wrote:
 Awesome.  Thanks for the response.

 I was hoping it was this week so I could test out 1.4.7 with our application 
 over the weekend.

 J.D.

 -Original Message-
 From: Riyad Kalla [mailto:rka...@gmail.com]
 Sent: Thursday, March 04, 2010 11:05 AM
 To: users@wicket.apache.org
 Subject: Re: Planned 1.4.7 Release?

 The hot item in 1.4.7 I am aware of is the fix for redirected/relative
 paths when using Ajax components that was broken in 1.4.6 -- and yesterday
 Igor said he would begin promotion to the mirrors and writeup an
 announcement, so I think the release is... any minute now?

 On Thu, Mar 4, 2010 at 10:55 AM, Corbin, James jcor...@iqnavigator.comwrote:

 Hi,

 We are currently using Wicket Version 1.4.4 and I believe the release of
 1.4.7 is fairly imminent?

 Could someone shed some light on the expected release timeframe for 1.4.7
 and what the recommendation is on upgrading from 1.4.4 to 1.4.7?

 We have a lot of Ajax behaviors in our code and if there are significant
 fixes around Ajax in the releases subsequent to 1.4.4 then my gut says I
 should upgrade.

 Also, are there any notable performance improvements in 1.4.5, 1.4.6 or
 1.4.7?

 Thanks,
 J.D.



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



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



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



OnlyTargetActivePage param

2010-03-04 Thread David Skuben
Hi everybody,

I'm now looking in classes AbstractAjaxBehavior and
AbstractDefaultAjaxBehavior.
There are two similar methods: getCallbackUrl() and getCallbackScript() and
I don't understand why
first set onlyTargetActivePage to  true and second to false. Is it right
?

If someone know about that, please let me know.
Thanks a lot.
Dave

AbstractAjaxBehavior:
public CharSequence getCallbackUrl()
{
return getCallbackUrl(true);
}

AbstractDefaultAjaxBehavior:
protected CharSequence getCallbackScript()
{
return getCallbackScript(false);
}


How to strip Wicket tags in development mode?

2010-03-04 Thread David Chang

I understand that in deployment, all Wicket tags are stripped from the rendered 
markup that is sent to the client. 

How can I strip all Wicket tags from the rendered markup in development mode. I 
want to see clean HTML content in the client.

Thanks for help!




  

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



Re: How to strip Wicket tags in development mode?

2010-03-04 Thread James Carman
http://wicket.apache.org/docs/1.4/org/apache/wicket/settings/IMarkupSettings.html#setStripWicketTags%28boolean%29

On Thu, Mar 4, 2010 at 6:44 PM, David Chang david_q_zh...@yahoo.com wrote:

 I understand that in deployment, all Wicket tags are stripped from the 
 rendered markup that is sent to the client.

 How can I strip all Wicket tags from the rendered markup in development mode. 
 I want to see clean HTML content in the client.

 Thanks for help!






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



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



Re: How to strip Wicket tags in development mode?

2010-03-04 Thread Cemal Bayramoglu
David,

Take a look here [1].

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html


On 4 March 2010 23:44, David Chang david_q_zh...@yahoo.com wrote:

 I understand that in deployment, all Wicket tags are stripped from the 
 rendered markup that is sent to the client.

 How can I strip all Wicket tags from the rendered markup in development mode. 
 I want to see clean HTML content in the client.

 Thanks for help!






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



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



Re: Can't get FormTester.submitLink to work (required testfield always missing)

2010-03-04 Thread Kent Tong


jn73 wrote:
 
 My problem is that even when i set a value on the
 RequiredTextField the form submission is failing - because of that the
 required field is missing.
 

Please try http://wicketpagetest.sourceforge.net. It should work.

-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/Can%27t-get-FormTester.submitLink-to-work-%28required-testfield-always--missing%29-tp27783318p27788850.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket tests without FormTester

2010-03-04 Thread Kent Tong


alexander.elsholz wrote:
 
 exists a possibility to test, for example a dropdownchoice without
 formtester?
 

Try http://wicketpagetest.sourceforge.net which should work fine.

-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/Wicket-tests-without-FormTester-tp22609725p27788858.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How to strip Wicket tags in development mode?

2010-03-04 Thread David Chang
James and Cemal,

Thanks so much for your kind help!

Cheers.

--- On Thu, 3/4/10, Cemal Bayramoglu jweekend_for...@cabouge.com wrote:

 From: Cemal Bayramoglu jweekend_for...@cabouge.com
 Subject: Re: How to strip Wicket tags in development mode?
 To: users@wicket.apache.org
 Date: Thursday, March 4, 2010, 6:47 PM
 David,
 
 Take a look here [1].
 
 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com
 
 [1] 
 http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html
 
 
 On 4 March 2010 23:44, David Chang david_q_zh...@yahoo.com
 wrote:
 
  I understand that in deployment, all Wicket tags are
 stripped from the rendered markup that is sent to the
 client.
 
  How can I strip all Wicket tags from the rendered
 markup in development mode. I want to see clean HTML content
 in the client.
 
  Thanks for help!
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

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



Wicket 1.4.7 released

2010-03-04 Thread Igor Vaynberg
Wicket 1.4.7 is released!

This is the seventh maintenance release of 1.4.x series and brings over
30 bug fixes and improvements.

tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.7/

maven:

dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket/artifactId
 version1.4.7/version
/dependency

download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7

changelog:https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310561fixfor=12314560

cheers,

-igor

PS. the website has been updated with the release announcement but is
still waiting to be replicated.

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



Dynamically change feedback panel border color?

2010-03-04 Thread David Chang

I am using a div with border color to enclose feedback messages. I can control 
whether to generate the feedback div based on whether there is any message to 
render. Now I hope to change its border color depending on the severity of the 
message. But (1) always causes error:

Cannot modify component hierarchy after render phase has started (page version 
cant change then anymore).

How can I change the border color when there is message to render? What is the 
best way?

Thanks!


-

HTML:

div wicket:id=feedbackHolder /

Java code:

add(new FeedbackPanel(feedbackHolder) {
@Override
 public boolean isVisible() {
(1)  if (anyErrorMessage()) 
   add(new SimpleAttributeModifier(class, redBox));
  return anyMessage();
 }
});



  

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



Re: Dynamically change feedback panel border color?

2010-03-04 Thread Riyad Kalla
I *think* you want to handle that inside of onRender:
http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#onRender(org.apache.wicket.markup.MarkupStream)

On Thu, Mar 4, 2010 at 7:58 PM, David Chang david_q_zh...@yahoo.com wrote:


 I am using a div with border color to enclose feedback messages. I can
 control whether to generate the feedback div based on whether there is any
 message to render. Now I hope to change its border color depending on the
 severity of the message. But (1) always causes error:

 Cannot modify component hierarchy after render phase has started (page
 version cant change then anymore).

 How can I change the border color when there is message to render? What is
 the best way?

 Thanks!


 -

 HTML:

 div wicket:id=feedbackHolder /

 Java code:

 add(new FeedbackPanel(feedbackHolder) {
 @Override
  public boolean isVisible() {
 (1)  if (anyErrorMessage())
   add(new SimpleAttributeModifier(class, redBox));
  return anyMessage();
  }
 });





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




Re: Dynamically change feedback panel border color?

2010-03-04 Thread David Chang
For FeedbackPanel, I am not sure how to do this. I tried onComponentTag(), etc. 
and it seems there is always compile error. Looks like FeedbackPanel is a 
special beast.


--- On Thu, 3/4/10, Riyad Kalla rka...@gmail.com wrote:

 From: Riyad Kalla rka...@gmail.com
 Subject: Re: Dynamically change feedback panel border color?
 To: users@wicket.apache.org
 Date: Thursday, March 4, 2010, 10:28 PM
 I *think* you want to handle that
 inside of onRender:
 http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#onRender(org.apache.wicket.markup.MarkupStream)
 
 On Thu, Mar 4, 2010 at 7:58 PM, David Chang david_q_zh...@yahoo.com
 wrote:
 
 
  I am using a div with border color to enclose feedback
 messages. I can
  control whether to generate the feedback div based on
 whether there is any
  message to render. Now I hope to change its border
 color depending on the
  severity of the message. But (1) always causes error:
 
  Cannot modify component hierarchy after render phase
 has started (page
  version cant change then anymore).
 
  How can I change the border color when there is
 message to render? What is
  the best way?
 
  Thanks!
 
 
  -
 
  HTML:
 
  div wicket:id=feedbackHolder /
 
  Java code:
 
  add(new FeedbackPanel(feedbackHolder) {
  @Override
   public boolean isVisible() {
  (1)  if (anyErrorMessage())
        add(new
 SimpleAttributeModifier(class, redBox));
   return anyMessage();
   }
  });
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 




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



Re: Wicket 1.4.7 released

2010-03-04 Thread Andrew Lombardi
Congratulations!

On Mar 4, 2010, at 6:35 PM, Igor Vaynberg wrote:

 Wicket 1.4.7 is released!
 
 This is the seventh maintenance release of 1.4.x series and brings over
 30 bug fixes and improvements.
 
 tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.7/
 
 maven:
 
 dependency
 groupIdorg.apache.wicket/groupId
 artifactIdwicket/artifactId
 version1.4.7/version
 /dependency
 
 download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.7
 
 changelog:https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truepid=12310561fixfor=12314560
 
 cheers,
 
 -igor
 
 PS. the website has been updated with the release announcement but is
 still waiting to be replicated.


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.




Re: image from outside web application directory

2010-03-04 Thread Gw
I believe so, Riyad.
Anyway, you guys did a great job at Wicket.
2 thumbs up.
Thx a lot, bro...
Good day..

On 3/5/10, Riyad Kalla rka...@gmail.com wrote:
 GW,

 Good pt... at the least it should probably be in the Wiki. I think it's just
 an issue of one of the leads not having time to go through it's impl and
 figure out if it should go in or not? I'm sure there are probably a few
 different ways to write such a component.

 -R

 On Thu, Mar 4, 2010 at 10:55 AM, Gw not4spamm...@gmail.com wrote:

 Hi Riyad n Ernesto,

 Thx a lot for your help.
 I've found the solution among those search results.
 The class name is FileResource.
 Quite simple, yet I wonder why the class isn't included in Wicket,
 bcoz it's a common need.
 Many thanks for the clues...
 GBU


 On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla rka...@gmail.com wrote:
  Mike,
 
  The solution is writing a wicket component that finds the image on-disk
 and
  streams the bits back to the browser. Try these search results:
 
 http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image
 
  
 http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image
 and
  these:
 
 http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=
 
  
 http://old.nabble.com/forum/Search.jtp?query=image+on+disklocal=yforum=13974daterange=0startdate=enddate=
 Your
  answer is in there somewhere. The thread recently (3 weeks ago?) about
  it
  was pretty long and someone pasted a complete impl that they were using
 that
  folks said worked great. I just don't recall the class name otherwise
  I'd
  search for it :)
 
  -R
 
  On Tue, Mar 2, 2010 at 4:46 AM, Gw not4spamm...@gmail.com wrote:
 
  Hi all,
 
  I'd like to know how to display an image which is located outside web
  application directory (eg: C:\images) .
  Many thanks in advance for your assists.
 
  Regards,
  Mike
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

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




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