I'm in need of 'optional' components, i.e. they exist in Java code but the web
designer is allowed to omit them in the HTML template.
Currently I'm using a base class (named OptionalPanel) that cooperates with the
page: In Page#renderAll() all appropriate children are marked as being
rendered,
All,The first beta release of wicket 1.2 is available for download. Wicket 1.2 has many improvements and features over Wicket 1.1, including:Native, cross-platform AJAX support: use AJAX without having to write a single line of _javascript_. Wicket's AJAX cross-platform capabilities have been
One thing you can do is turn of the render check. Would that suffice?
Eelco
On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm in need of 'optional' components, i.e. they exist in Java code but the
web designer is allowed to omit them in the HTML template.
Currently I'm using a base
Excellent work! I plan on giving this a whirl real soon :)
Gili
Eelco Hillenius wrote:
I just commited improvements for header contributions. I created
behavior HeaderContributor which allows you to contribute to the page
header without being bound to the static class structure.
On 3/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
All,The first beta release of wicket 1.2 is available for download. Wicket 1.2 has many improvements and features over Wicket 1.1, including:Woah - I kill my machine and dissapear for a few days (I still have a dead linux/development box
You are welcome :)
Eelco
On 3/7/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
aah Eelco i saw your tip on my blog. thanks
On 3/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Owk.
On 3/6/06, Nick Heudecker [EMAIL PROTECTED] wrote:
I need to redo that DateSelector and TimeSelector
The Wicket version is available in the manifest file (it is put there
automatically by maven).
more MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: Apache Maven
Built-By: martijn
Package: wicket
Build-Jdk: 1.4.2_09
Extension-Name: wicket
Specification-Title: a Java web
Hi,
setTrimValue flag would be great (maybe there should be settings
for left/right trim ?).
Model might be also a working solution, but somehow I feel that
this kind of task belongs to upper layer.
Ari S.
- Original Message -
From: Igor Vaynberg [EMAIL PROTECTED]
To:
Duplication of jsessionid was cancelled unnoticed.
And changed WicketServlet as follows, onBeginRequest called just one time.
WicketServlet#doGet
if (queryString != null)
{
// bufferId = new StringBuffer(requestUri.length() + queryString.length() +
1).append(
//
that is something websphere does.And it doesn't do that when we request with response.encodeUrl()Because that is what we do ask and that encoded url is used as the keythen it is send as a redirect. But then websphere is altering it.
I will look if i can only use the query (behind the ? ) as the
We just can't add hard jsessionid on that part.That wouldn't work for the rest of the world. Because tomcat doesn't add it if it sees that it can set a cookie.i fixed it by only using the query part.
johanOn 3/7/06, R.A [EMAIL PROTECTED] wrote:
Duplication of jsessionid was cancelled unnoticed.And
Do you know how to access that information? How do you get the jar
file name a specific class has been loaded from?
Juergen
On 3/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
The Wicket version is available in the manifest file (it is put there
automatically by maven).
more MANIFEST.MF
shouldn't wicketservlet.getClass().getResourceAsStream(/META-INF/MANIFEST.MF) work?johanOn 3/7/06, Juergen Donnerstag
[EMAIL PROTECTED] wrote:Do you know how to access that information?How do you get the jar
file name a specific class has been loaded from?JuergenOn 3/7/06, Martijn Dashorst [EMAIL
a trim flag on what?Form component? I don't like that what does it do for non text fields?trimming should belong in a model. For example a ModelWrapper where you put youre real models in.johan
On 3/7/06, Ari Suutari [EMAIL PROTECTED] wrote:
Hi,setTrimValue flag would be great (maybe there should
Hi Johan,
True.
If you will fix it by only using the query part, I wait it in the pleasure.
Thanks a lot!!
Thank you.
R.A
--
View this message in context:
http://www.nabble.com/PageLink-called-request-two-times-t1205926.html#a3277879
Sent from the Wicket - User forum at Nabble.com.
Hi;
second time I post this email, for some reason it didn't make it way
to the group.
I wanted to do something easy, which is I wanted to have a link that
do some action by overriding onClick, but after the action is done, I
don't want only to refresh the page I want it to jump to an Anchor in
Hi,
But simple validation is already on wicket level. Of course we could
argue on this, but I really think that right place for simple
input cleanup is the user interface layer:
- Let's say I have a model, which has field called code.
- If user types new value for this in a field, I (and even
may be you make it a RFE. This way it will not be lost.
Juergen
On 3/7/06, Ali Zaid [EMAIL PROTECTED] wrote:
Hi;
second time I post this email, for some reason it didn't make it way
to the group.
I wanted to do something easy, which is I wanted to have a link that
do some action by
On Tue, 2006-03-07 at 10:27 +0100, Juergen Donnerstag wrote:
Do you know how to access that information? How do you get the jar
file name a specific class has been loaded from?
getClass().getProtectionDomain().getCodeSource().getLocation() gives you
the location where the class was loaded
I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as it did not remove the WEB-INF/lib directory and was causing
SEVERE:
typo - antiResourceLocking=trueOn 3/7/06, Joshua Lim
[EMAIL PROTECTED] wrote:I was having this similiar problem, I have a few apps on my isp (kattare incidentally) and I needed to redeploy each one without shutting the whole damn (pardon me) thing down. using the tomcat manager wasn't helping as
interessting, can you test with only antiJARLocking ?because it seems to me that we have that specific problemjohanOn 3/7/06,
Joshua Lim [EMAIL PROTECTED] wrote:
typo - antiResourceLocking=true
On 3/7/06, Joshua Lim
[EMAIL PROTECTED] wrote:I was having this similiar problem, I have a few apps on
Codesource should never be null, if you class is in a jar file,
codesource points to the jar.
else it might point to a directory where your class files can be found
(or in subdirs thereof). if none of the above is available it will
point to the classfile itself.
But perhaps Martijn can tell you
I'm aware of IDebugSettings#componentUseCheck.
But with this setting I would loose the rendering check globally :(.
I'd rather keep the check for most of my components.
Sven
One thing you can do is turn of the render check. Would that suffice?
Eelco
On 3/7/06, [EMAIL PROTECTED] [EMAIL
ahh checked it outantiResourceLocking copies the complete webapp to the java.io.tmpdir and makes that the docroot. So that you can copy jars over the original location just fineAnd i guess that is the location they monitor.
antJarLocking does another trick: if (antiJARLocking) { ResourceEntry
Is there a reason why a converter is not allowed to return null?
See PropertyResolver (line 821):
Object converted = converter.convert(value, getMethod.getReturnType());
if (converted == null value != null)
{
throw new ConversionException(Can't convert value: + value + to class:
+
May be a stupid question, but isVisible is not suitable?
Juergen
On 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm aware of IDebugSettings#componentUseCheck.
But with this setting I would loose the rendering check globally :(.
I'd rather keep the check for most of my components.
Basically the way Johan said is the way we retrieve the version of our own application.Our own application tries to retrieve the version number of the war archive, so that is a different usecase.Martijn
On 3/7/06, Maurice Marrink [EMAIL PROTECTED] wrote:
Codesource should never be null, if you
it is driven by the designer not the developerSo the designer removes some markup for that page.What i don't get is if that is the case. then what is the purpose of having that component in the page anyway?
Is it added back in??johanOn 3/7/06, Juergen Donnerstag [EMAIL PROTECTED]
wrote:May be a
On 3/6/06, Frank Silbermann
[EMAIL PROTECTED]
wrote:
From 2006/02/01:
Of greater
concern is that if I try to download the Excel file a second
time (clicking
the download button again), I get an error.If from the
error page I use my
browser's back button, my page returns and
let me get this straightyou do a request to the server where the onClick is handledBut you dont send anything to the browser? Even if the browser does expect data?I guess it works in youre case because the page IS refreshed. But also jumped.
Because do you set somewhere are EmptyRequestTarget in
so you have a case where the value is something but the converter converts it to null?This is more or less a check if conversion did happen.But i can remove it and let conversion exceptions be thrown inside the converter
johanOn 3/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Is there a reason
MarkupContainer [Component id = 1, page = No Page, path =1.MyDataTable$1]] component id == 1, DataTable?It looks like a Item in the table that was removed.Which version do you use?
Because there was an error that is recently fixed that sets the parents to the right values if a markupcontainer
You also could use a Converter for this i guess.johanOn 3/7/06, Ari Suutari [EMAIL PROTECTED]
wrote:Hi,But simple validation is already on wicket level. Of course we could
argue on this, but I really think that right place for simpleinput cleanup is the user interface layer:- Let's say I have a
Title: [wicket 1.1.1]FormTester clicking a specific button
Hi
How do I click a specific button using the test wicket framework?
-regards Nino
Try this:FormTester formTester = wicketTester.newFormTester(false);formTester.setValue(myButton, whatever);formTester.submit() ;this should click the button with myButton wicketId.
On 3/7/06, Nino Wael [EMAIL PROTECTED] wrote:
Hi
How do I click a specific button using the test wicket
One way I've heard of is to do something along the lines of:-
URL url = getClass().getResource( /wicket/SomeWicketClass.class);
Now url is something like
jar:file:/path/to/the/jar!/wicket/SomeWicketClass.class
Now you have to simply strip off the !/wicket/... part and replace
with
Sorry my bad, misunderstood
clients requirements. ListChoice is dropdown correct? Has anybody made an implementation
that allows one to select if ListmutipleChoice should be multiple or single?
Nino
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan
I tried with the 1.2beta1; same
problem. /Frank
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: Tuesday, March 07, 2006 7:44
AM
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Rendering DataTable or
Hi,
for me that
WicketServlet.class.getResourceAsStream("/META-INF/MANIFEST.MF") returns
MANIFEST.MF from the JRE. How can I get Wicket manifest?
Is this method safe even if the Wicket.jar is part
of WAR/EAR?
Jan
"Martijn Dashorst" [EMAIL PROTECTED]
wrote in message news:[EMAIL
Are you absolutely sure that that is wicket 1.2b1??Because the line numbers you show in the trace doesn't match mine.johanOn 3/7/06, Frank Silbermann
[EMAIL PROTECTED] wrote:
I tried with the 1.2beta1; same
problem. /Frank
-Original Message-
From: [EMAIL PROTECTED]
No DropDownChoice is a dropdown box (single select of course)ListChoice is a List (single select)ListMultipleChoice is a List but multi select.Please look at the hierachy of the AbstractChoice class.
johanOn 3/7/06, Nino Wael [EMAIL PROTECTED] wrote:
Sorry my bad, misunderstood
i was also thinking a trim flag on the textfield and textarea only. are you opposed to that also Johan?-IgorOn 3/7/06, Johan Compagner
[EMAIL PROTECTED] wrote:
You also could use a Converter for this i guess.johanOn 3/7/06, Ari Suutari
[EMAIL PROTECTED]
wrote:Hi,But simple validation is already
heh, easier to let maven filter it into some static variable in some class i think :)-IgorOn 3/7/06, jan_bar
[EMAIL PROTECTED] wrote:
Hi,
for me that
WicketServlet.class.getResourceAsStream(/META-INF/MANIFEST.MF) returns
MANIFEST.MF from the JRE. How can I get Wicket manifest?
Is this
Yeah, it wouldn't hurt to have version info available *easy* some way :)
Eelco
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
heh, easier to let maven filter it into some static variable in some class i
think :)
-Igor
On 3/7/06, jan_bar [EMAIL PROTECTED] wrote:
Hi,
for me
I wouldn't be against a flag that says the whether component has to be
rendered. The default should be true, in which case nothing changes
from the way things are now, but if the flag returns false, it would
be ignored by the components check.
What do the other devs think of this?
Eelco
On
Yep. Sounds like a valueble feature. So please add it
http://sourceforge.net/tracker/?group_id=119783atid=684978
Eelco
On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
may be you make it a RFE. This way it will not be lost.
Juergen
On 3/7/06, Ali Zaid [EMAIL PROTECTED] wrote:
Hi;
yeah, we could have a method isOptional() {return false;} that can be overridden if really needed.On 3/7/06, Eelco Hillenius
[EMAIL PROTECTED] wrote:I wouldn't be against a flag that says the whether component has to be
rendered. The default should be true, in which case nothing changesfrom the
So before the input goes into the required/type conversion and validators we first trim itwhen that flag is set?. he also could just overwrite getInput() and trim the text when called.johan
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i was also thinking a trim flag on the textfield and
i guess thats true. you can create a subclass TrimmingTextField that overrides getInput() and trims it.-IgorOn 3/7/06, Johan Compagner
[EMAIL PROTECTED] wrote:
So before the input goes into the required/type conversion and validators we first trim itwhen that flag is set?. he also could just
i dont know if this nice feature exists in Wicket AJAX support, maybe its already there, i dont know
Its called AJAXDelayModalWindow or Splash Screen. I have seen very clumsy Ajax applications due to poor network situations and then there is no
way for the user who does not and should notknow
but do we need this in core? its a trivial subclass, why not create it in your own codebase?if you guys want it in core you can have it, just asking.-IgorOn 3/7/06,
Ryan Sonnek [EMAIL PROTECTED] wrote:
+1 for this solution.this seems to be the cleanest implementation tome and puts the
i havent gotten to implementing something like that yet.what i had in a prototype i wrote is a special link that in the onclick would show a gif that had an animation, and register an onsuccess handler with the ajax processor that would hide that gif. so it was like a busy indicator that would
I don't think we need it in core. Maybe as an example somewhere. We
have to get our users get used to working with custom components more,
as that's one of the key points of Wicket imo :)
Eelco
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
but do we need this in core? its a trivial
+1 for this solution. this seems to be the cleanest implementation to
me and puts the responsibility on the developer to *use* the correct
component.
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i guess thats true. you can create a subclass TrimmingTextField that
overrides getInput() and
:)
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i havent gotten to implementing something like that yet.what i had in a prototype i wrote is a special link that in the onclick would show a gif that had an animation, and register an onsuccess handler with the ajax processor that would hide
Finally this works for me:
URL url =
"">url
= "" URL("jar", "", url.toString() + "!/META-INF/MANIFEST.MF");
Manifest manifest = new
Manifest(url.openStream());
Jan
"Martijn Dashorst" [EMAIL PROTECTED]
wrote in message news:[EMAIL PROTECTED]...we
could check the manifest ourselves
I haven't understood the use case yet. I can read the request but
haven't understood why it is necessary. Why should the markup vary
from the java code?
Juergen
On 3/7/06, Johan Compagner [EMAIL PROTECTED] wrote:
yeah, we could have a method isOptional() {return false;} that can be
overridden
Joseph,
you change is wrong. You did
add(new MyBorder(border)); // Made MyBorder public
// add the clock component
Clock clock = new Clock(clock,
TimeZone.getTimeZone(America/Los_Angeles));
add(clock);
but you must add the clock to the
Sven is the man to answer that I guess. I can imagine that he is
providing a full component tree and that the designer chooses which
part of that tree should actually be used. Quite dangerous, but might
be usefull at times. Another thing we might consider is to hide the
check itself behind a
a strategy for a /debug/ check. dont you think this is a little overkill? :)-IgorOn 3/7/06, Eelco Hillenius
[EMAIL PROTECTED] wrote:Sven is the man to answer that I guess. I can imagine that he is
providing a full component tree and that the designer chooses whichpart of that tree should actually
I think it is. But if Sven has a good use case we should see whether
we can support it. Though you can also use AOP as a breakout I
think...
Eelco
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
a strategy for a /debug/ check. dont you think this is a little overkill? :)
-Igor
On
Ah, that explains it. In my incorrect case, shouldn't wicket throw an
error since the hierarchy is incorrect?
On 3/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
Joseph,
you change is wrong. You did
add(new MyBorder(border)); // Made MyBorder public
// add
Yes, I think it should. Strange that it doesnt. Mind you doing me a
favor? You downloaded CVS already, it contains plenty of unit tests.
Based of any of these would you please create junit test for me (which
fails as we'd expect an exception). Thanks
Juergen
On 3/7/06, Joe Toth [EMAIL PROTECTED]
**
This email and its attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed above.
Any use of the information contained herein in
I'm cc'ing the ops4j list, as they are the ones so far driving Wicket
integration with OSGi.
Comments below.
On Mon, 2006-03-06 at 08:45 -0800, Eelco Hillenius wrote:
It would be cool if Wicket came with OSGi support itself. ;-)
Indeed, and we'd be happy to have Wicket support it better if
what would be great to start is for someone to setup a quickstart that
actually launches from inside eclipse equinox with the appropriate
eclipse project file/mvn pom. once all the setup is done, we (the
committers and anyone else who is interested) can start hacking on it
because you can provide
I thought I'd bring this up again, just in case...
how old is the snapshot you are using? do you have the source
attached? if so take a look at sourcecode for MarkupParserFactory, do
you see the prepender added in the constructors?
I'm using 20060227-0200.
Yes, I did notice the
Could somebody please tell me how the PrependContextPathHandler is
intended to be overridden (if at all)?
I would like to prepend my links with a static URL (like
http://www.company.com/dir/;), and this looks like the place to do it.
Thank you!
PrependContextPathHandler is fairly simple. I guess I would copy the
code, make the modifications you want and register your handler with
the application. Please see MarkupParserFactory on how to register the
IMarkupFilter with the application.
Juergen
On 3/8/06, David Leangen [EMAIL PROTECTED]
It does sound like a weird problem though. Wouldn't the same problem
show up for people installing the current version of Wicket in the
root webcontext?
As a side note: Wicket doesn't read the context path from web.xml, but
gets it from the servlet API/ container. I'd expect this behaviour to
be
As a side note: Wicket doesn't read the context path from web.xml, but
gets it from the servlet API/ container. I'd expect this behaviour to
be the same whether you are running a standalone servlet container or
one embedded in OSGi...
That's weird, because my call to
I tried to use Converter at first, of course. But it doesn't work,
since string-string -conversion bypasses things.
(read the end of this e-mail)
Ari S.
- Original Message -
From: Johan Compagner [EMAIL PROTECTED]
To: wicket-user@lists.sourceforge.net
Sent: Tuesday, March 07, 2006
I forgot to mention that:
Converter would have been my preferred solution, because
with it I could have easily modified trimming behavour of all
my user interface components. So if this can be made to work
it would be great.
Ari S.
- Original Message -
From: Johan Compagner [EMAIL
i think i speak for most committers when i say:equinox would be easier because it can be launched directly from the eclipse ide which we all use and the project's debug/run settings contain all the necessary bundles and configuration. so to launch from eclipse you just press the debug icon and
Could someone also take a look at Converter so it could be used ?
I mean this line in Converter.java:
// Catch all cases where value is already the right type
if (c.isAssignableFrom(value.getClass()))
{
return value;
}
This is some kind of a optimization, right ? But as a side effect
it
but is it really then a conversion? why run a Integer-Integer conversion or a String-String conversion? then you are really warping the converter into an input postprocessor. why not create a simple subclass of textfield and override getInput() ?
-IgorOn 3/7/06, Ari Suutari [EMAIL PROTECTED]
Though felix is interesting too because we have several people using
it and not everyone uses Eclipse (including the committers).
Can we have both? :)
Eelco
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i think i speak for most committers when i say:
equinox would be easier because it
i think i speak for most committers when i say:
equinox would be easier because it can be launched directly from the
eclipse ide which we all use and the project's debug/run settings
contain all the necessary bundles and configuration. so to launch from
eclipse you just press the debug
On Tue, 2006-03-07 at 23:23 -0800, Eelco Hillenius wrote:
Though felix is interesting too because we have several people using
it and not everyone uses Eclipse (including the committers).
Can we have both? :)
:-)
Actually, I wouldn't mind trying out Equinox. I'm using Oscar now, and
am
sure, others use felix and other ides, but i think in the beginning most contributions would have to come from us because we will be modifying core parts of wicket.as i said, the less time i have to spend on tinkering and setup the more time i have to spend on the actually coding.
so yes felix
Agreed.
On 3/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
sure, others use felix and other ides, but i think in the beginning most
contributions would have to come from us because we will be modifying core
parts of wicket.
as i said, the less time i have to spend on tinkering and setup the
82 matches
Mail list logo