Hi,
Looking at LocalizedImageResource.java and other resource-related
source code it seems to me that we assume that resources will be shared
in the scope of wicket.Application.class
Doesn't this imply that if you have 10 Wicket applications running,
their combined resources are either cre
Thanks :-)
Eelco Hillenius wrote:
Yeah. We will move to SVN is soon is that is supported good enough by
sourceforge, which is hopefully soon.
Eelco
On 3/1/06, John Patterson <[EMAIL PROTECTED]> wrote:
Sourceforge anonymous cvs access is hopeless. You will need to try during off
peak hours
Hi Johan,
I use iBATIS to access database and set the log to debugging mode.
I take notice of two times database access by logs, so I write the following
code.
protected void onBeginRequest() {
System.out.println("Entering onBeginRequest");
}
Then logs are made to output as follows.
Ente
It helped me to understand Wicket Models as an implementation of the
Facade pattern.
The intention is to have a clean separation between the code providing
the data (Model) and the code presenting the data (Component).
The IModel interface and its implementations serve as glue between Model
Eelco Hillenius schrieb:
And programatically you can do:
/**
* @see
wicket.Component#renderHead(wicket.markup.html.internal.HtmlHeaderContainer)
*/
public void renderHead(HtmlHeaderContainer container)
{
((WebPage)getPage()).getBodyConta
only 10 minutes?Really?i think i need 11.. So then you can do it better then we gain 1 minute!johanOn 3/1/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:so make one! its going to take you what? like 10 minutes maybe. you lazy bum!
-IgorOn 3/1/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:Thats why
so make one! its going to take you what? like 10 minutes maybe. you lazy bum!-IgorOn 3/1/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:Thats why we need a LabelLink where the model is the text.
We can't do that we oure current Link objects, because it could be used by something elsejohan
On 3/1/06
Thats why we need a LabelLink where the model is the text.We can't do that we oure current Link objects, because it could be used by something elsejohanOn 3/1/06,
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
but where do we specify the text? i, and im sure others, use the model for other things.Label(
but where do we specify the text? i, and im sure others, use the model for other things.Label(String, IModel, IModel) ? kinda nasty if you ask me-IgorOn 3/1/06,
Johan Compagner <[EMAIL PROTECTED]> wrote:
yeah.. i still like to have such a link inside the core (called LabelLink or something)I still
don't know why that is called twicethe onBeginRequest should be called once, from the page.doRender()can you debug and see where the 2 calls come from?johanOn 3/1/06,
R.A <[EMAIL PROTECTED]> wrote:
Hi,I create PageLink in the FirstPage class's constructor.ex. Link nextLink = new PageLink("nextLink
yeah.. i still like to have such a link inside the core (called LabelLink or something)I still think that most beginnners always look at this and ask "Why do i need to add an extra label"The link text, if it is pushed by the javacode" is in my eyes many times just something of that link.
johanOn 3/
headers are set when the resource IS cacheable when not cacheable we don't set any headers and the lastmodified time will be -1johanOn 3/1/06,
Anders Peterson <[EMAIL PROTECTED]> wrote:
I was just about to suggest that some of Gwyn Evans' headers were set bywicket.I found the setHeaders(...) metho
or even better prepare a unit test case which I can copy/add to the
existing once.
Juergen
On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> many committers dont have the time to setup deployment to tomcat, ide setup,
> etc.
>
> you have a better chance of having people look at your code if y
many committers dont have the time to setup deployment to tomcat, ide setup, etc. you have a better chance of having people look at your code if you post it with jetty and eclipse project files so that we can import it, click run, and have a look. see quickstart for how its setup.
if you want you a
Should I file a bug report because of the link problems?
--
Best regards,
Thomas Singer
Thomas Singer schrieb:
Hi David and others,
I've converted my tiny project to Wicket 1.2, but encounter the same
problems as with Wicket 1.1.1.
- the image on the first page is not found,
- clicking the Ab
uhmno thankswho would want to be the head of something so broken? wouldnt be a fun place to be i would imagine :)-IgorOn 3/1/06, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
Igor, head of cvs :)On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> arent they one and the same?>> -Igor>>>
> On
arent they one and the same?-IgorOn 3/1/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Your's or CVS? ;)On 3/1/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:> done in head>>> -Igor>>> On 3/1/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> >> > Yeah, that will work very well.> >> >> >> > On 3/1/06, I
Igor, head of cvs :)
On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> arent they one and the same?
>
> -Igor
>
>
>
> On 3/1/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> Your's or CVS? ;)
>
> On 3/1/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > done in head
> >
> >
> > -Igor
> >
>
It's okay to use it in situations like this. We just don't want to
make it too easy for people to use for the wrong reasons. You might
want to take a look at
wicket.protocol.http.servlet.WicketSessionFilter too. That filter
exposes the wicket session object, so that you can use it in a
strongly typ
doh... thanks Igor.
Igor Vaynberg wrote:
here is a wiki page on the matter: http://www.wicket-wiki.org.uk/wiki/index.php/Models
-Igor
On 3/1/06,
Riyad Kalla <[EMAIL PROTECTED]>
wrote:
I
realized that 90% of my confusion when working with wicket is due to
my lack of understanding mod
On Wednesday 01 Mar 2006 13:51, Juergen Donnerstag wrote:
> What do you need it for?
>
I am migrating my web application from WebWork to Wicket. All new
functionality is written in Wicket but I need to share some objects with the
old code such as the currently logged in user. This is stored in
Your's or CVS? ;)
On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> done in head
>
>
> -Igor
>
>
> On 3/1/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> >
> > Yeah, that will work very well.
> >
> >
> >
> > On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > >
> > > with my recent refacto
You should use a custom session for that. See for example
wicket.examples.signin.
Eelco
On 3/1/06, Riyad Kalla <[EMAIL PROTECTED]> wrote:
> Igor,
> Is there a wicket-preferred way to manage a Visit-esque type of Session
> bean that can be placed into a session scope for a user? For example, if
Igor,
Is there a wicket-preferred way to manage a Visit-esque type of Session
bean that can be placed into a session scope for a user? For example,
if a user logs in or sets some preferences or clicks some filters and
say you want to store all that info in a central bean instance that
represent
What do you need it for?
Juergen
On 3/1/06, John Patterson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using a wicket 1.2 version from cvs from about 2 wekks ago. There seems
> to be no way to access the HttpSession. Is this still true?
>
> John.
>
>
>
here is a wiki page on the matter: http://www.wicket-wiki.org.uk/wiki/index.php/Models-IgorOn 3/1/06,
Riyad Kalla <[EMAIL PROTECTED]> wrote:
I realized that 90% of my confusion when working with wicket is due tomy lack of understanding models properly. Is there one or more goodresources covering m
I realized that 90% of my confusion when working with wicket is due to
my lack of understanding models properly. Is there one or more good
resources covering models, the basic idea behind them, how they were
designed, how they function in a few well known components, etc.? Sort
of a bottom-up a
it is discouraged to directly access the http session. that said you can do ((WebRequest)getRequest()).getHttpServletRequest().getSession()-IgorOn 3/1/06,
John Patterson <[EMAIL PROTECTED]> wrote:
Hi,I am using a wicket 1.2 version from cvs from about 2 wekks ago. There seemsto be no way to acces
Hi,
I am using a wicket 1.2 version from cvs from about 2 wekks ago. There seems
to be no way to access the HttpSession. Is this still true?
John.
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends
Igor Vaynberg wrote:
i dont know of any examples like that.
what it entails is something like this
wrappermodel extends model {
private IModel delegate;
[ ... ]
Yeah, that sounds like a lot of work, but maybe I'm missing something.
or you can do the inverse, implement your own IChoiceRen
done in head-IgorOn 3/1/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
Yeah, that will work very well.On 3/1/06, Igor Vaynberg
<[EMAIL PROTECTED]> wrote:
with my recent refactorings i can add another key to be searched that is "TypeValidator".Typeso keys like TypeValidator.BigDecimal will take pri
Yeah, that will work very well.On 3/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
with my recent refactorings i can add another key to be searched that is "TypeValidator".Typeso keys like TypeValidator.BigDecimal will take priority over TypeValidator
that way you can create the keys for different
then he would have to write his own TypeValidator. currently we perform type conversion internally (w/out typevalidator which is deprecated now) so i dont see how he can override that.best thing i can do is search for different keys.
-IgorOn 3/1/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
You ca
yeah, thats true.you can always composite a link and a label into a panel.-IgorOn 3/1/06, Karl-Erik Rønsen <
[EMAIL PROTECTED]> wrote:Thank you, Igor.I have now looked into extending Link, but overriding onComponentTagBody the
way that Label does is not possible. Link declares it final.For now I'll
You can override method messageModel to deliver your own map.
Eelco
On 3/1/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> TypeValidator adds a "${type}" key for validation messages. Is there any
> way to customize this for the specific case? For instance, I use
> TypeValidator for BigDecimals
Yeah. We will move to SVN is soon is that is supported good enough by
sourceforge, which is hopefully soon.
Eelco
On 3/1/06, John Patterson <[EMAIL PROTECTED]> wrote:
> Sourceforge anonymous cvs access is hopeless. You will need to try during off
> peak hours or retry many times until you can ge
with my recent refactorings i can add another key to be searched that is "TypeValidator".Typeso keys like TypeValidator.BigDecimal will take priority over TypeValidatorthat way you can create the keys for different types.
sound good?-IgorOn 3/1/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
TypeVali
Thank you, Igor.
I have now looked into extending Link, but overriding onComponentTagBody the
way that Label does is not possible. Link declares it final.
For now I'll just add a Label inside, like you suggested.
Karl-Erik
On 01-03-06 17:03, "Igor Vaynberg" <[EMAIL PROTECTED]> wrote:
> link
Igor Vaynberg wrote:
your list consists of Items, but the model object that the choice
component is bound to is a String. wicket expects the model object's
type be the same as the item type in the list, thus the problem.
I told you my brain was getting fuzzy.
> [ ...]
either change your mod
i dont know of any examples like that.what it entails is something like thiswrappermodel extends model { private IModel delegate; setObject(Object o) { Item item=(Item)o;
delegate.setObject(item.getid()); } Object getObject() { // this is the tricker one String id=de
TypeValidator adds a "${type}" key for validation messages. Is there any way to customize this for the specific case? For instance, I use TypeValidator for BigDecimals and Dates. I don't want my users seeing "
java.math.BigDecimal" or "java.util.Date" in the validation messages.Thanks for your t
i dont think it works like that.the localizer searches up the component hierarchy, RequiredValidator is not in it so the validators have to explicitly ask localizer for both keys: formcompid.validator-key and validator-key. i dont think localizer knows enough to do it for us.
-IgorOn 3/1/06, [EMAIL
I made the exception a bit more helpfull (component path is appended)I think we need to document and look how it exactly should work. johanOn 3/1/06,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
While you're at it, perhaps we could improve the error message on missing resources for validators? Cur
link is a generic link container that can wrap anything. so no, there is no direct way to do it unless you are using ExternalLink.you would have to do:Link link=new Link("link")link.add(new Label("lbl"..
and in your markupmy linkif you want you are free to create a simple subclass of link t
I was just about to suggest that some of Gwyn Evans' headers were set by
wicket.
I found the setHeaders(...) method in WebResource that sets a couple of
headers when/if it is not cacheable. Which headers are set if it is
cacheable, and where is that done? (I don't find my way around the
wicke
ok i will remove it then. the validation messages will stay the same as they are with the default factory.-IgorOn 3/1/06, Nick Heudecker <
[EMAIL PROTECTED]> wrote:You can remove it now and I'll just wait to update to the latest snapshot. IIRC, there's a wiki page on the new validation messages, c
no that was a pretty big change that affects quite a lot.Please use 1.2 for thisjohanOn 3/1/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:wicket 1.2 properly handles headers ( it remembers which ones youve set and when the buffer renders after a redirect it issues them)
i dont know if this is going
your list consists of Items, but the model object that the choice component is bound to is a String. wicket expects the model object's type be the same as the item type in the list, thus the problem.it thinks the model is an Item so its pulling it out and getting "ABC" then it is trying to get an i
wicket 1.2 properly handles headers ( it remembers which ones youve set and when the buffer renders after a redirect it issues them)i dont know if this is going to be rolled back into 1.1 branch, johan?-Igor
On 3/1/06, jan_bar <[EMAIL PROTECTED]> wrote:
Hi,Wicket 1.1 doesn't have good support for m
if you set cacheable to false then it should work for you out of the boxbecause then no caching is set and the lastmodified time is set to -1The most browsers shouldn't cache it at all.The problem you had is that when it is enabled then we are setting some default caching headers
and we set the las
Hi,
I create PageLink in the FirstPage class's constructor.
ex. Link nextLink = new PageLink("nextLink",
NextPage.class).setAutoEnable(true);
In the NextPage class's constructor, I create DataView with IDataProvider.
ex. DataView dataView = new DataView("dataView", new
CustomDataProvider(model))
I think you can add a Label to the link and it will render... but I'm
not a wicket guru, just an interested 3rd party :)
Karl-Erik Rønsen wrote:
I am creating tabs that should get their titles generated by code. What's
the best way to set the link text?
I am new to Wicket, but so far i really
Thank you, Juergen. That was easy and works well!
Is there a way of setting the link text without adding the extra markup?
(The )
Karl-Erik
On 01-03-06 15:54, "Juergen Donnerstag" <[EMAIL PROTECTED]>
wrote:
> Use a Label.
> Text
>
> Juergen
>
> On 3/1/06, Karl-Erik Rønsen <[EMAIL PROTECTED]
I am creating tabs that should get their titles generated by code. What's
the best way to set the link text?
I am new to Wicket, but so far i really enjoy the way that Java and HTML
work together with this framework.
Thanks,
Karl-Erik
---
T
Use a Label.
Text
Juergen
On 3/1/06, Karl-Erik Rønsen <[EMAIL PROTECTED]> wrote:
>
> I am creating tabs that should get their titles generated by code. What's
> the best way to set the link text?
>
> I am new to Wicket, but so far i really enjoy the way that Java and HTML
> work together with thi
Sourceforge anonymous cvs access is hopeless. You will need to try during off
peak hours or retry many times until you can get a connection.
On Wednesday 01 Mar 2006 08:30, Nili Adoram wrote:
> Hi,
> I tried to checkout wicket-stuff from cvs at sourceforge according to
> the instructions at
> ht
Well each time the page is rendered I believe it's a new instance of
your page, so in your constructor can't you just set a param as
tag=Math.random()
or something along those lines?
Anders Peterson wrote:
On a BookmarkablePageLink I can call setParameter(...) which has this
effect.
How do I
I simply do:
theme = themeDAO.getById(theme.getId());
where theme is my Hibernate object. So I never run into "object with
same id is already loaded" problem you described. You gave me a good
idea though with regard to only storing the object ID. The thing is I
have one detachable m
While you're at it, perhaps we could improve the error message on missing
resources for validators? Currently all we get is:
>java.util.MissingResourceException: Unable to find resource: RequiredValidator
Not very helpful :(. I'd preferred if Localizer (line 228) included the
component's path,
On a BookmarkablePageLink I can call setParameter(...) which has this
effect.
How do I, with each request/response cycle, add or change a page
parameter - I can't figure this out?
/Anders
Igor Vaynberg wrote:
the trick is to append a random number as a query parameter. that way the
browser
You can remove it now and I'll just wait to update to the latest snapshot. IIRC, there's a wiki page on the new validation messages, correct?
Hi,
I tried to checkout wicket-stuff from cvs at sourceforge according to
the instructions at
http://wicket-stuff.sourceforge.net/cvs-usage.html:
I tried:
cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/wicket-stuff login
I pressed Enter when asked for password and the reply was:
cvs [login aborted]
On 01/03/06, Anders Peterson <[EMAIL PROTECTED]> wrote:
> 3) "Set the headers on the response": You mean some header that tells
> the browser(s) not to cache the page - is there a standard for that?
Quite a few, all covering different aspects of your problem! :-)
> I have no idea which browsers
Oh, I'm glad to be back to Wicket. I've been off on a Struts project
for several months, and am so happy to be using simple Wicket again!
But I'm having a problem with my brain. This should be easy to figure
out, but I keep getting stuck. Maybe it's the late nights... I'm trying
to add a dr
Hi,
Wicket 1.1 doesn't have good support for manipulating HTTP headers, the
Page.configureResponse() cannot access headers when
ApplicationSettings.REDIRECT_TO_BUFFER is used.
Is there solution for Wicket 1.1 (other then using Filters)?
Will Wicket 1.2 change it? I have found this:
http://thr
1) "setCacheable": Done! With dynamic images it seems like a good idea
to have this set to false by default.
2) "random number as a query parameter": I had thought about giving the
images different names with each request, but I didn't know (still
don't) how to do that. The generated html loo
what problem?
Please take a look at my sample project and try it out yourself. I'll cite
myself:
- the image on the first page is not found,
- clicking the About link shows the about page, but does not render the
links correctly (About is still a link).
BTW, I'm using /foo as Application
if nick can migrate before 1.2 i would like to remove it. its causing an extra resource lookup in my refactored code. its not a big deal but its bugging me because i know its there.-Igor
On 2/28/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Deprecate and remove in 1.3MartijnOn 3/1/06, Igor Vaynbe
68 matches
Mail list logo