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.
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
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
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
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
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
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
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
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
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.
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
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
is documentation available for ajax progess indicator. i cannot find :(
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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!
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
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
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]
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 =
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
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
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
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:
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
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.
-
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:
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
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
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);
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:
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,
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
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
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
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
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
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
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
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
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 ,
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
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]
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
I solve this problem by putting an 'onclick' handler on the Submit button to
check for blank input.
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
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.
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
75 matches
Mail list logo