getTestPage() {
return new PageA()...
}
though I'm not sure if it's in 1.2.
There's also TestPanelSource that you can use
similarly with startPanel.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
:)
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events
the servlet as a workaround and it
worked as expected (with non-empty context path).
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download
On Tue, 17 Jul 2007, Ingram Chen wrote:
We also suffer the same issues here. But due to unmanaged nature of Wicket,
there is no chance to intercept construction of page B unless you build your
own factory for page.
class Page A {
MyFactory myFactory ;
public Page A {
think that it anyway also has the side effect of calling
setOutputMarkupId(true).
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download
data that is in another kind of IModel
elsewhere.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version
happens.
Please show us the code and the error (stack trace if any,
and the full error message).
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2
Model(tab+index), ));
Or maybe there could just be a hook in the
protected void populateItem(LoopItem item) method inside
TabbedPanel, something like in the attached patch.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
Index:
wicket-extensions/src
of the
limitations of the web as an UI platform.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version
in a Repeater that gets refreshed, you might
end up with references to replaced components that should be
garbage (because they are no longer on the page).
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
.
That's much for any kind of UI framework.
Merci beaucoup,
Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE
On Tue, 26 Jun 2007, Timo Rantalaiho wrote:
In fact we just discovered a workaround to a DropDownChoice
ajax issue with WicketTester in our app yesterday; I was
going to file an issue or talk about it here, but didn't
have time yet. It was something similar to the one just
discussed here, so
a marker interface and visitChildren / findParent. If
you show us some code maybe we can give more specific help.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email
On Tue, 26 Jun 2007, Nili Adoram wrote:
I am afraid I cannot upgrade at the moment since we don't have the time
for massive API changes of 1.3.
1.2.2 is really ancient, you should use 1.2.6.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
like that? We've thought that it
would be safer to always get the components dynamically, so
that you wouldn't get the danger of stale references.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
checked that the DataProvider of your DataView gets
called (and returns the new item)?
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
components
to return e.g. myId + domainObject.getdId() or something
such.
(Btw, now that we're on it, all-numeric ids that repeaters
produce by default are invalid HTML. Maybe I should file a
Jira issue about that.)
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http
On Sun, 24 Jun 2007, Timo Rantalaiho wrote:
Maybe you can override getMarkupId() for your item components
to return e.g. myId + domainObject.getdId() or something
myId- + domainObject.getId() surely.
- Timmo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
in this case) and then just use the
IDE autocomplete to see what kind of methods they have.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
On Thu, 21 Jun 2007, Toscano wrote:
Any ideas?
Use DropDownChoice. With that you provide one model for
all the choices (a list) and another model for the default
selection (a single item of the same type as the list
contents).
- Timo
--
Timo Rantalaiho
Reaktor Innovations Oy
On Tue, 19 Jun 2007, Saad, Salma wrote:
So it looks like I cannot have a textfield inside of a span.
I think that in HTML, span isn't supposed to contain any
tags.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
why your issue only occurs
in load testing. Could it be an issue of state being
shared incorrectly between concurrent requests? Do your
load test users have separate HTTP sessions?
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
).
Best wishes,
Timo
P.S. Congratulations to Apache Wicket for graduating!
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C
for getting into it is
welcome!)
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version
or reusable solution.
We develop on 1.3.0 trunk.
Visiting all relevant components (e.g. marked with an
interface) from a parent might be possible too.
Thanks,
Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
).
This makes it a lot easier to notice and fix this kind of
problems, as we can easily see from commits / dev / user
mailing lists what is going on, and just diff the whole
wicket source code when needed. A couple of days of diff is
perfectly readable, but one month not.
- Timo
--
Timo Rantalaiho
the framework and I hope coding in
general :)
Attaching sources to the IDE should be a standard way of
working with any open source code (or any software that
you have sources of). Fortunately it's nowadays pretty easy
with maven IDE integration.
- Timo
--
Timo Rantalaiho
Reaktor
in the Eclipse plugin settings. I
think that you can even put it globally in settings.xml.
In the maven2 IDEA plugin (also) that feature is broken, but
I just download the sources with eclipse:eclipse then :/
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
On Tue, 12 Jun 2007, Justin Morgan (Logic Sector) wrote:
My question is: How to I create a label that displays an error
message correctly, yet also contains hyperlinks within the label?
Make it a WebMarkupContainer that has the logic and
necessary child components.
- Timo
--
Timo
super.onBeforeRender()
in the overriding implementation.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE
of
your loggedin / loggedout components. I too have noticed
that isVisible() gets called several times per request, but
I suppose it has its reasons.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
also like using the debugger of the IDE sometimes, like
that you can easily see whether some method gets called and
what's the state of the components and variables run-time.
It works best if you are running just a little code at a
time, e.g. a WicketTester test.
- Timo
--
Timo Rantalaiho
On Tue, 12 Jun 2007, Francisco Diaz Trepat - gmail wrote:
One more thing. Do I get version 1.3 through the svn?
Or
http://www.wicketstuff.org/maven/repository/org/apache/wicket/wicket-jdk14/
(examples one level above)
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http
valdiation message?
Yep, via resource bundles. e.g.
[webapplication-subclass-name].properties
RequiredValidator=Field '${label}' is required
LengthValidator=Field '${label}' must be between ${min} and ${max} characters
http://cwiki.apache.org/WICKET/form-validation-messages.html
- Timo
--
Timo
and frustration of falling into such a sandtrap. Maybe a note in
Yep, generic models, once that feature of the old 2.0 will be
resurrected in some more fortunate version.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
(and
then ask its path from itself).
It depends on the case which is wiser. We also use a the
hardcoded path a lot in tests, but with repeaters it can
get a bit fragile.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
wicket:ids in HTML and java code a good
thing.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2
.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML
On Thu, 31 May 2007, Lowell Kirsh wrote:
Cool. So no need to 'add' it?
Yes of course. You must add to a parent every component that
you want to render, otherwise it's just garbage (for the JVM).
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
) {
protected void onBeforeRender() {
super.onBeforeRender();
setVisible(sometimesFalse());
}
}
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2
(or something such that
DataTable uses) this is already implemented, so you
could have a look at that.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored
On Wed, 23 May 2007, Lec wrote:
I don't think you can do that with onClick(). i verified it by
writing that in wicket code. It hit error
-/form]]/componentevaluate![CDATA[document.getElementById('paragraph').onClick();]]/evaluate/ajax-response
We're using onclick() like that without
is the error message / stack trace, if any?
Looking quickly it occurs to me that maybe you should set
outputMarkupId(true) to the Fragment. If this is the case,
it should be obvious from the error message on Ajax debug
console.
- Timo
--
Timo Rantalaiho +358-45-6709709
Reaktor Innovations Oy
On Tue, 22 May 2007, Martijn Dashorst wrote:
Could you file an issue with this please? It would be nice to make the
dtd work better.
Sure, here it is:
https://issues.apache.org/jira/browse/WICKET-587
- Timo
--
Timo Rantalaiho +358-45-6709709
Reaktor Innovations OyURL: http
On Mon, 21 May 2007, Lec wrote:
component. But the thing now is that, button doesn't provide any method to
set an anchor. How do we do that?
Override Button.onSubmit()
- Timo
--
Timo Rantalaiho +358-45-6709709
Reaktor Innovations OyURL: http://www.ri.fi
class?
Sure. I think it works with any Component (that has associated
markup).
- Timo
--
Timo Rantalaiho +358-45-6709709
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2
, and the other is the select
list.
You do have wicket source in your IDE right? It should be
more obvious from there.
- Timo
--
Timo Rantalaiho +358-45-6709709
Reaktor Innovations OyURL: http://www.ri.fi
if this is the ideal way.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control
things (such as working with models :)) come up
a lot and often with realistic examples.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C
a constructor that only
determines the default choice.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get
://cwiki.apache.org/WICKET/backporting-features-from-trunk.html
We'll just keep on using 2.0 until 1.4 (current 2.0 minus
the add / constructor change) will come up.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
own code.
I don't remember too well, but at least some methods were
removed from IModel at some point, slf4j was introduced
(though this might have been before December already) etc.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
uses a real browser, unlike
HttpUnit and friends.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay
. This depends on the size
of the project though and I have no experience of
Databinder, but I wouldn't bind UI code directly to
Hibernate except in a small program.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
(and any open source framework
really) is always best used with the source attachments in
the IDE, so that you can directly browse Wicket source code
in your project.
Also wicket-examples source code should be open in another
IDE window for great reference.
Best wishes,
Timo
--
Timo
quite differently from Sun
JVM (at least Sun's client JVM).
And yet another one to file a case to BEA support with a
reproducable test case.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take
);
wicketTester.processRequestCycle();
but this does not work on the submit button.
FormTester tester = wicketTester.newFormTester(wicket:path:to:form);
tester.submit(wicketIdOfButton);
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
(IDEA: Wicket Assistant, Shift+Alt+w, Eclipse: Wicket Bench, switch
tabs with ctrl-alt-,/. (AFAIK, I don't use Eclipse)).
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash
or if paths are produced by wicket components, tweaking your
own versions of the components.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash. Influence the Future of IT
Join
recreate the whole list component on update (do a new
MyListView()...).
This works for me, but if there is a better way to update
ListViews via ajax, I'd be happy to know it.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
do a lot but anyway is a help.
And I got it via the normal IDEA plugin system.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Using Tomcat but need to do more? Need to support web services
/wicket:component
/wicket:component
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre
for it
:)
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4910812
To deploy your webapp in development, ou can run any java
application (such as embedded jetty or winstone) with a
normal run configuration, and then just start it with run or
debug symbol depending on what you want.
--
Timo
/test/java/test/DictionaryPanelTest.java
This complements WicketTester nicely.
With Selenium IDE, you can record Selenium RC java (or other
language) code, which is good for the cases when you can't
figure out what kind of Selenium code would emulate the user
interaction you want.
- Timo
--
Timo
On Sun, 04 Feb 2007, Dmitry Kandalov wrote:
I tried this one. It doesn't work either. I wonder how autocompletion
can work for you because I couldn't find any notion of wicket tags in
this dtd. Guess you put them in custom tags. Don't you?
Most probably yes.
--
Timo Rantalaiho
Reaktor
.
On Fri, 02 Feb 2007, Johan Compagner wrote:
please do make a issue for this in jira
Here it is:
https://issues.apache.org/jira/browse/WICKET-254
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
)
that looks for a sequence in the produced HTML.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre
e.g.
(WicketTester)tester.startPage(WelcomePage.class);
Handling the session directly sounds very un-wickety.
Normally you should keep state in your components. They are
all(?) stateful in Wicket.
However, did you try
tester.getServletSession()
?
- Timo
--
Timo Rantalaiho
Reaktor
implementation to
WicketTester you can do that by overriding
Session newSession(Request request).
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Using Tomcat but need to do more? Need to support web
think that I also added some tags to IDEA custom tags and
maybe did something more.
Anyway now I am content as I can pretty much validate the
HTML templates with IDEA.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
can cook up a quickstart
representing the WicketTester-with-ajaxified-form problem.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Using Tomcat but need to do more? Need to support web services
.
And JUnit 3 with both.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions
, timeFieldId, timeField.getMarkupId());
or something such. Normally 1) is more straight forward
though.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash. Influence the Future of IT
Join
('endDate','ddmmm',true,24)
img src=images/cal.gif width=16 height=16 border=0 /
/a
It might be I don't understand the issue correctly though.
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi
. : I'll make sure to copy the details into the wiki after :)
Is it publicly editable?
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash. Influence the Future of IT
Join
.
Everything below is more complicated than necessary.
:)
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel
that failed validation highlighted. What would you
suggest is a best way to approach it.
I would look at Form.add(IFormValidator validator).
To put a common error message at top, just add a FeedbackPanel
that is a direct child of the form.
- Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL
77 matches
Mail list logo