Re: [Wicket-user] Help:Migration from 1.2.4 to 1.2.6

2007-05-15 Thread Alex Objelean

I have also migrated from 1.2.4 to 1.2.6 but without any problems. How have
you included your CSS in the page?


Ayodeji Aladejebi wrote:
 
 The migration wasnt seamless at all as before.
 I just changed jar file from 1.2.4 to 1.2.6 and CSS and images were being
 reported not found. I havent even changed a line of code.
 
 i taught it was a mapping issue and i changed my mapping from /app/* to
 /app
 and then the home page loaded fine with the CSS at this time and all to my
 suprise non of my other BookmarkableLinks are working again. Tomcat will
 say
 the requested resource was not found.
 
 Really, due to the short time on my project, i had to switch back to
 1.2.4now just to overcome the deadline.
 
 But if there is any help I can get that can explain what i can do to
 ensure
 that i can easily migrate to 1.2.6 without all the headaches, please i
 could
 use some help
 
 I have been on a swing project for a while so i lost a litte track of my
 wicket trails
 
 I need assistance on this
 
 thank you
 
 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Help%3AMigration-from-1.2.4-to-1.2.6-tf3755254.html#a10617348
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help:Migration from 1.2.4 to 1.2.6

2007-05-15 Thread Igor Vaynberg

this might help

https://issues.apache.org/jira/browse/WICKET-290

-igor


On 5/14/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:


The migration wasnt seamless at all as before.
I just changed jar file from 1.2.4 to 1.2.6 and CSS and images were being
reported not found. I havent even changed a line of code.

i taught it was a mapping issue and i changed my mapping from /app/* to
/app and then the home page loaded fine with the CSS at this time and all to
my suprise non of my other BookmarkableLinks are working again. Tomcat will
say the requested resource was not found.

Really, due to the short time on my project, i had to switch back to 1.2.4now 
just to overcome the deadline.

But if there is any help I can get that can explain what i can do to
ensure that i can easily migrate to 1.2.6 without all the headaches,
please i could use some help

I have been on a swing project for a while so i lost a litte track of my
wicket trails

I need assistance on this

thank you

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Anti-Wicket?

2007-05-15 Thread Ashley Aitken

Hi Jonathan (et al.),

Thanks for your post.

On 15/05/2007, at 1:17 PM, Jonathan Locke wrote:

 i don't understand how you can have a component-oriented web
 framework that generates markup and css without having layout
 managers.  browsers are not consistent enough in the way they
 render to just position everything absolutely.  even if they were
 consistent, you still couldn't use fixed layouts because fonts vary
 from platform to platform.  what you're asking for doesn't make
 any sense to me because programmatically specifying the place
 of all widgets and content, is /exactly what a layout manager does/.

Thank you again, you may have pointed out problems with my approach  
(which, of course, are better to find out earlier rather than  
later).  That said, I don't see why programmatically specifying the  
place of all widgets and content can't be done in a browser- 
independent way (compensating for browser differences, even perhaps  
adjusting font sizes, I don't know) without using a layout manager.

To me, a layout manager is something that adapts the layout according  
to some generalised rules (e.g. a row or column layout manager) to  
fit the current display area size, and are specifically made to  
handle resizing of that display area.  I am not that interested in  
resizing, but a static structure derived from the content, styles,  
and layout data. I guess an example would be a page layout program.

I think in pretty much any Web framework, I could have a single  
custom component on a page, and use the application to generate all  
the HTML to go into that component and build most (if not all) of the  
page.  I guess I am looking for a framework that would help me  
generate that HTML programmatically.  As I mentioned, I used to do  
this in PERL, I was looking for something in Java and higher-level.

That's just reminded me of the Apache Element Construction Set (ECS)  
at http://jakarta.apache.org/ecs/. It does something like I think I  
want in Java but hasn't been updated for a number of years (since  
2003) so it lacks the latest HTML constructs (e.g. CSS).

 my personal opinion (and one of the driving forces behind wicket)
 is that designers should not code and coders should not design.

Sure, that's great for most Web applications.  I would hope you could  
understand though that, perhaps, there were a class of Web  
applications for which this wasn't the optimal approach.  Further, I  
wasn't suggesting the designers code, but that code was used to  
generate the whole page (i.e. no template).  This doesn't preclude  
designers from designing the page in another way (e.g. in another  
part of the application).

 in any case, i am not aware of other solutions to this problem
 outside those already mentioned.

No problem, I'm thinking that the AJAX Web frameworks like Echo2 or  
wingS (or one of the others, frameworks like these seem to be popping  
up everywhere these days) may be the way to go, with a custom  
component (that I write) that does the rendering for the content I  
want to render, in the way I want to render it (i.e. data driven).
I just need to find which one allows me to do that most easily.

Cheers,
Ashley.

--
Ashley Aitken
Perth, Western Australia
mrhatken at mac dot com
Skype Name: MrHatken (GMT + 8 Hours!)




-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread Eelco Hillenius
 i am not saying we shouldntve fixed it to return an array always, what i am
 saying is that it is inconsistent because when we put things into that map
 we dont wrap them in an array, and we should, no?

I don't know whether we should. Those are parameters we ourselves
added, so however we'd add them, it wouldn't lead to inconsistencies
with the servlet request parameters other than that the servlet API
returns an immutable map to start with.

 why is that map mutable?

I think that's in the commit comments somewhere. If I remember
correctly, I wanted to make it immutable, but other parts broke. Note
that it's a copy btw.

Eelco

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Popup Window onPageLoad

2007-05-15 Thread Eelco Hillenius
Eeeevil ;)

IHeaderResponse has renderOnLoadJavascript. Add your window.open script there.

add(new HeaderContributor(new IHeaderContributor() {

public void renderHead(IHeaderResponse response) {
response.renderOnLoadJavascript(window.open(););
}
});

Something like that. If you want to use popup settings, you can use
the object directly and call getPopupJavaScript to get the script you
need I think.

Eelco


On 5/15/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 i mean a Window with its WebPage Instance and PopupSettings, probably the
 Page runs an ad rotator code. something like dat

 just for adverts


 On 5/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  If you mean an altert, you can just add a header contribution with the
  alert('foo'); script.
 
  Eelco
 
  On 5/14/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   Hi,
  
Please how do I popup a window (for an advert use case) on Page load.
 For
   instance, I wont a popup window as soon as they home page loads.
  
any tips.. i can use javascript in a static context but whats a wicket
   controlled way for this
   /
  
   Get A Free Blog:
   http://blogs.cowblock.net/
  
 -
   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. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -
  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. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 





 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Johan Compagner
can you look at the first request if the wicket session is really
pushed to the http session (so is the http session created?) you can
look at that in the set atribute of the session store

On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:
 I think I found the crux of the problem.  When you first go to the app, as
 I've mentioned, it puts the jsessionid in the URL.  Well, I compared that
 sessionid to the one in the cookie created and they are different!  That has
 to be the reason it creates a new session.  Now to figure out why it's doing
 that.

 On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:
 
  Spring MVC does put the jsessionid in the URL.  What I don't understand is
  that when coming into the Wicket app for the first time, it goes to the
 home
  page fine with the jsessionid in the URL, and then I click any link and
 all
  session attributes are gone.  Literally a brand new session is created no
  matter what link I click.  However, once I click that next link, all is
 fine
  and that second new session is the one that is used.  Just doesn't make
 any
  sense.
 
  On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  
Definitely not what I want, but it's the only thing that
   works.  There's
clearly a problem in how Wicket is getting the session from the
   cookie.  My
Spring MVC app which uses the same WAR has no issues pulling the
   session
info.
  
   I don't really understand the problem though. Like Johan said, the
   first time a persistent session is made, Tomcat puts the session id in
   the URL as it doesn't know yet whether it can rely on cookies (if I
   understand correctly). Spring MVC might not do that for the particular
   things you test it for as it doesn't create a session? If you would
   use stateless pages Wicket wouldn't either.
  
   Anyway, there have been discussions about jsessionid on the lists
   before, and typically it was from people worrying it would mess up
   search bots etc. If you are worried about that, don't, as bots can
   filter it. Also, the url is stable as it is not part of the parameters
   part (which comes after the question mark). It's a universal Java app
   server thingy, and Wicket has nothing to do with it other than it
   probably relies on the HttpSession sooner than e.g. model 2
   frameworks.
  
   Eelco
  
  
  
 -
   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. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Jean-Baptiste Quenot
* Chris Colman:

 I load the markups from a directory that I specify in the init of Wicket
 application object (if that's relevant):
 
 CompoundResourceStreamLocator locator =
   (CompoundResourceStreamLocator)getResourceSettings().
   getResourceStreamLocator();
   
 WebApplicationPath resourceFinder = 
   (WebApplicationPath)getResourceSettings().getResourceFinder();
   
 resourceFinder.add(c:/webserver/tomcat/wicket/markupfiles);
 
 locator.add(0, new WebPageResourceStreamLocator(resourceFinder));

I use it like this:

getResourceSettings().setResourceFinder(new Path(new 
Folder(src/main/resources)));

Have you tried a relative path?  Are you sure the path you mention
is in the right form?  What version of Wicket are you using?
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Eelco Hillenius
Also, sessions are managed by the app server, not by Wicket or Spring
MVC. I had a problem a while ago losing sessions going from
foo.mydomain.com to bar.mydomain.com, and that only worked well when I
configured Jetty's session manager to use .mydomain.com as it's
session domain. Maybe your problem is similar? Or even if it isn't,
what I'm saying is that it is very unlikely Wicket or any other
framework is the bad guy as Wicket just uses the servlet API as-is.

Eelco


On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
 can you look at the first request if the wicket session is really
 pushed to the http session (so is the http session created?) you can
 look at that in the set atribute of the session store

 On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:
  I think I found the crux of the problem.  When you first go to the app, as
  I've mentioned, it puts the jsessionid in the URL.  Well, I compared that
  sessionid to the one in the cookie created and they are different!  That has
  to be the reason it creates a new session.  Now to figure out why it's doing
  that.
 
  On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:
  
   Spring MVC does put the jsessionid in the URL.  What I don't understand is
   that when coming into the Wicket app for the first time, it goes to the
  home
   page fine with the jsessionid in the URL, and then I click any link and
  all
   session attributes are gone.  Literally a brand new session is created no
   matter what link I click.  However, once I click that next link, all is
  fine
   and that second new session is the one that is used.  Just doesn't make
  any
   sense.
  
   On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   
 Definitely not what I want, but it's the only thing that
works.  There's
 clearly a problem in how Wicket is getting the session from the
cookie.  My
 Spring MVC app which uses the same WAR has no issues pulling the
session
 info.
   
I don't really understand the problem though. Like Johan said, the
first time a persistent session is made, Tomcat puts the session id in
the URL as it doesn't know yet whether it can rely on cookies (if I
understand correctly). Spring MVC might not do that for the particular
things you test it for as it doesn't create a session? If you would
use stateless pages Wicket wouldn't either.
   
Anyway, there have been discussions about jsessionid on the lists
before, and typically it was from people worrying it would mess up
search bots etc. If you are worried about that, don't, as bots can
filter it. Also, the url is stable as it is not part of the parameters
part (which comes after the question mark). It's a universal Java app
server thingy, and Wicket has nothing to do with it other than it
probably relies on the HttpSession sooner than e.g. model 2
frameworks.
   
Eelco
   
   
   
  -
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 

 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread Johan Compagner

see my comment on: https://issues.apache.org/jira/browse/WICKET-400

i think we should change the RequestParamters.getParamters()
don't return a map there but return a ValueMap so that we shield it that it
could be request parameters directly (with things from use added)
then they can call directly what the want (like getString or getInt) and we
do the converstion String[] - string/int and so on there

johan


On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:


we do add internally some things i thing that we later on need, i
thinkg this is commented in the code. maybe we could move that to
RequestParameters itself? We should try to abstract everything in that
class so that people dont have to use it directly?

On 5/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  i am not saying we shouldntve fixed it to return an array always, what
i
 am
  saying is that it is inconsistent because when we put things into that
map
  we dont wrap them in an array, and we should, no?

 I don't know whether we should. Those are parameters we ourselves
 added, so however we'd add them, it wouldn't lead to inconsistencies
 with the servlet request parameters other than that the servlet API
 returns an immutable map to start with.

  why is that map mutable?

 I think that's in the commit comments somewhere. If I remember
 correctly, I wanted to make it immutable, but other parts broke. Note
 that it's a copy btw.

 Eelco


-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Andrew Berman

I'm going to debug it a bit more to see what's going on.  The jsessionid is
not appended to the URL until Wicket performs a redirect from the context to
the actual home page (e.g. from http://blah.com/context redirects to
http://blah.com/context/app/HomePage), so I'm wondering if the redirect is
doing something that's causing Tomcat to think it's a new session, thereby
making the jsessionid in the URL not equal the one in the cookie.

Eelco, I'll take a look at what you're saying too and see if I can
reconfigure Tomcat as well.

On 5/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Also, sessions are managed by the app server, not by Wicket or Spring
MVC. I had a problem a while ago losing sessions going from
foo.mydomain.com to bar.mydomain.com, and that only worked well when I
configured Jetty's session manager to use .mydomain.com as it's
session domain. Maybe your problem is similar? Or even if it isn't,
what I'm saying is that it is very unlikely Wicket or any other
framework is the bad guy as Wicket just uses the servlet API as-is.

Eelco


On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
 can you look at the first request if the wicket session is really
 pushed to the http session (so is the http session created?) you can
 look at that in the set atribute of the session store

 On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:
  I think I found the crux of the problem.  When you first go to the
app, as
  I've mentioned, it puts the jsessionid in the URL.  Well, I compared
that
  sessionid to the one in the cookie created and they are
different!  That has
  to be the reason it creates a new session.  Now to figure out why it's
doing
  that.
 
  On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:
  
   Spring MVC does put the jsessionid in the URL.  What I don't
understand is
   that when coming into the Wicket app for the first time, it goes to
the
  home
   page fine with the jsessionid in the URL, and then I click any link
and
  all
   session attributes are gone.  Literally a brand new session is
created no
   matter what link I click.  However, once I click that next link, all
is
  fine
   and that second new session is the one that is used.  Just doesn't
make
  any
   sense.
  
   On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   
 Definitely not what I want, but it's the only thing that
works.  There's
 clearly a problem in how Wicket is getting the session from the
cookie.  My
 Spring MVC app which uses the same WAR has no issues pulling the
session
 info.
   
I don't really understand the problem though. Like Johan said, the
first time a persistent session is made, Tomcat puts the session
id in
the URL as it doesn't know yet whether it can rely on cookies (if
I
understand correctly). Spring MVC might not do that for the
particular
things you test it for as it doesn't create a session? If you
would
use stateless pages Wicket wouldn't either.
   
Anyway, there have been discussions about jsessionid on the lists
before, and typically it was from people worrying it would mess up
search bots etc. If you are worried about that, don't, as bots can
filter it. Also, the url is stable as it is not part of the
parameters
part (which comes after the question mark). It's a universal Java
app
server thingy, and Wicket has nothing to do with it other than it
probably relies on the HttpSession sooner than e.g. model 2
frameworks.
   
Eelco
   
   
   
 
-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 


-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-

[Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Chris Colman
 Please open a JIRA entry, I need to think about it a little bit more.

Done: WICKET-570

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Chris Colman
 Subject: Re: [Wicket-user] Need to reload app in tomcat aftering
   
 To: wicket-user@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=utf-8
 
 
  resourceFinder.add(c:/webserver/tomcat/wicket/markupfiles);
 
  locator.add(0, new WebPageResourceStreamLocator(resourceFinder));
 
 I use it like this:
 
 getResourceSettings().setResourceFinder(new Path(new
 Folder(src/main/resources)));
 
 Have you tried a relative path?  Are you sure the path you mention
 is in the right form?  What version of Wicket are you using?

It has no problem finding the ones that are there when the web app is
started. It's just that it only looks once at startup. If I add a new
one after the web app has started it never finds it.

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread Johan Compagner



http://localhost:8080/NT/front/?wicket:bookmarkablePage=:mypackage.EntryPointPageDATA=MOGToh0GbqF%7Et3MZzj8cLc9ruPY-ArazzQcA9%7EFO1e6ivBTv-2tSFD8gd4L0MAtXL2xnud0JujjIhjBUVpDHcE82KiBJ7PK-1T3BamoQyx9QnzEsz7PD1li0Wq%7EvOU87


As you see there, the DATA parameter sent has been mysteriously
transformed to String[1].





that DATA thing you did encrypt it yourself?
that it is String[1] is logical because it is a direct servlet param and
those are all String[]
but how do you get access to the DATA value?
through the PageParameters?

then call pp.getString(DATA)

johan
-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] repeating the same text in several places on one page

2007-05-15 Thread Johan Compagner

if you use a repeater then the labels have the same name
because you have a repeating element (list item)
that constantly have the same kind of labels

johan


On 5/14/07, Lowell Kirsh [EMAIL PROTECTED] wrote:


Is there an idiom for naming these labels, or do people tend to call
them user1, user2, user3...?

On 5/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you cannot reuse the same label more then once in markup. there are
various
 reasons for this that have to do with how wicket works internally.

 what you can do is reuse the instance of model that drives the labels.

 -igor



 On 5/13/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
 
  I'd like to repeat the same thing in several spots on the same page.
  Does this mean that I have to create several labels? Or is there a way
  I could have them all reference the same label?
 
  Thanks,
  Lowell
 
 

-
  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. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread manuel barzi
Hi, Johan,

Switching all

... = (String)pageParam.get(...);

to

... = pageParam.getString(...);

made it work.

Why didnt you mention switching to getString before?

Nevertheless, should we understand that get does not behaves as
1.2.5, where String was returned, and not String[1] as 1.2.6.

That's the point, so we might be adviced to refactor our code and
avoid using old get, and use getString in its place.

I guess this clue-point is closing doubts, then ending the thread...

Thank you ;)


On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:

 
 http://localhost:8080/NT/front/?wicket:bookmarkablePage=:mypackage.EntryPointPageDATA=MOGToh0GbqF%7Et3MZzj8cLc9ruPY-ArazzQcA9%7EFO1e6ivBTv-2tSFD8gd4L0MAtXL2xnud0JujjIhjBUVpDHcE82KiBJ7PK-1T3BamoQyx9QnzEsz7PD1li0Wq%7EvOU87
 
 
  As you see there, the DATA parameter sent has been mysteriously
  transformed to String[1].



 that DATA thing you did encrypt it yourself?
 that it is String[1] is logical because it is a direct servlet param and
 those are all String[]
 but how do you get access to the DATA value?
 through the PageParameters?

 then call pp.getString(DATA)

 johan


 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread Johan Compagner

i didn't exactly know at what place you get what from where.

for example if you did it through: request.getRequestParameters
().getParameters()
then we just return a map which i think we should fix.. (we should return a
ValueMap there)
so that you also can do getString()

johan


On 5/15/07, manuel barzi [EMAIL PROTECTED] wrote:


Hi, Johan,

Switching all

... = (String)pageParam.get(...);

to

... = pageParam.getString(...);

made it work.

Why didnt you mention switching to getString before?

Nevertheless, should we understand that get does not behaves as
1.2.5, where String was returned, and not String[1] as 1.2.6.

That's the point, so we might be adviced to refactor our code and
avoid using old get, and use getString in its place.

I guess this clue-point is closing doubts, then ending the thread...

Thank you ;)


On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:

 

http://localhost:8080/NT/front/?wicket:bookmarkablePage=:mypackage.EntryPointPageDATA=MOGToh0GbqF%7Et3MZzj8cLc9ruPY-ArazzQcA9%7EFO1e6ivBTv-2tSFD8gd4L0MAtXL2xnud0JujjIhjBUVpDHcE82KiBJ7PK-1T3BamoQyx9QnzEsz7PD1li0Wq%7EvOU87
 
 
  As you see there, the DATA parameter sent has been mysteriously
  transformed to String[1].



 that DATA thing you did encrypt it yourself?
 that it is String[1] is logical because it is a direct servlet param and
 those are all String[]
 but how do you get access to the DATA value?
 through the PageParameters?

 then call pp.getString(DATA)

 johan



-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] for IDEA users that wish a wicket plugin

2007-05-15 Thread Justin Lee
There's a plugin in wicket-stuff already.  An older version is already 
in the plugin repository called Wicket Assistant

ali wrote:
 IDEA ade the online Wish List survey where everybody is welcome to leave  
 their opinion, let it be a request for a new plugin or suggestion to  
 improve the existing one.

 please vote and add your features for wicket plugin
 a href=http://plugins.intellij.net/wishlist/item/?wid=95;wicket  
 plugin/a

   


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] dynamically populate tree

2007-05-15 Thread galbu

Hello world
I have a problem with a data tree: I need to generate a data tree that shows
the structure of products' classification from this table:

Object: ClasseCND
id| anno | livello | descrizione | classemadre|
A| 2005 |0| d   | null  |
A01| 2005 |1|  g  |  A|
B| 2005 |0| gg | null  |
B01| 2005 |1| g   |  B|
B02| 2005 |1| g   |  B|  etc...
I have more levels of depth in the tree...and I have a great number of
classes to show
At first time I would show to the user only the level 0 of my data structure
and, when the user select one node of the
tree, I would show the requested subtree expanded. There is a way to do
something like that without generate and cache all the classification tree
in the session ? Some way to dynamically populate the tree when the user
select the node he wants to see expanded ?
Any suggest will be appreciate
Thanks in advance
  Galbu
-- 
View this message in context: 
http://www.nabble.com/dynamically-populate-tree-tf3758317.html#a10622286
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Highlander - 1 Template, Some Sub Pages, Many Components

2007-05-15 Thread Fábio Bombonato

Hi Folks,

I´m newbie in Wicket, but until last week I trying to figure out how to
organize the code and html markup with wicket to get a template page to
work. Let me explain,

I´m want to create a Template web page that contains markup´s that I called
containers, for example:

Template.html:
html
   head
   /head
   body
   div id=header1 wicket:id=header1/div
   div id=content1 wicket:id=content1/div
   div id=content2 wicket:id=content2/div
   /body
/html

In this containers I could insert many components in each one, or simple no
one, depends on which web page will use this template.

Than, I create a web page to use the containers of theTemplate.html and
insert in it the components that I want. For example,

MainPage.html
html
   head
   /head
   body
   div id=header1 wicket:id=header1
  span wicket:id=login/span
   /div
   div id=content1 wicket:id=content1
  span wicket:id=lastNews/span
   /div
   div id=content2 wicket:id=content2
   span wicket:id=blogContent/span
   /div
   /body
/html

In above example I repeat the Template html code to exemplify the situation,
however the problem is that I don´t want to repeat the Template page all
time to create some web page, I want to reuse the template web page and not
repeat that in sub pages. The template page is used for all the pages, so
it´s easy if the design is centralized in that template page the only place
that I need to modify that design if I want to change the main template page
and not in all sub pages. Reading the Maillist, the people call this the
Dreamweaver centric.

Remembering, the pages that use template could change the components used in
it. For example:

UserProfilePage.html
html
   head
   /head
   body
   div id=header1 wicket:id=header1
  span wicket:id=showAd/span
   /div
   div id=content1 wicket:id=content1
  span wicket:id=userProfileDetails/span
   /div
   div id=content2 wicket:id=content2
   span wicket:id=lastUsers/span
   /div
   /body
/html

Note that all components was changed. So, it´s not the simple Header,
Content and Footer centric, which header and footer is static, but all parts
in the containers could be changed. Them, use the markup inheritance and
wicket:child / it isn´t sufficient, because all content could change and
not a specific part (like only the Content part).


Read some topics in Wicket WiKi, I searched and readed many topics in
maillist, like:
Border and markup inheritance problem

http://www.nabble.com/Border-and-markup-inheritance-problem-t1639150.html#a4475258
Inheritance and wicket:child / inside a tag with wicket:id

http://www.nabble.com/Inheritance-and-%3Cwicket%3Achild--%3E-inside-a-tag-with-wicket%3Aid-tf1811521.html#a4936866
More than one wicket:child

http://www.nabble.com/More-than-one-%3Cwicket%3Achild%3E-tf3584957.html#a10017716

I´m little lost ;-), The problem is that I couldn't´t figure out what I need
to use and how implement something to do this. I don´t know if a need to use
wicket Panels, Borders, Fragments or perhaps MarkupContainer. In the end, I
think it´s necessary to group many panels, but I don´t know how.

I really, really appreciate some simple example.

Thanks for any help,
and excuse me for my bad English.
--
Bombonato
-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] BookmarkablePageLink converts String parameters to String[]? (Wicket 1.2.6)

2007-05-15 Thread manuel barzi
 for example if you did it through:
 request.getRequestParameters().getParameters()
 then we just return a map which i think we should fix.. (we should return a
 ValueMap there)
 so that you also can do getString()

Yes, that's the point. Sometimes I was doing this in 1.2.5:

public class the-page extends WebPage {
private Map pageParam = null;
public page-constructor() {
pageParam = this.getRequestCycle().getRequest().getParameterMap();
...
}
private a-method() {
String dataParam = (String)pageParam.get(DATA);
}
...
}

by inertia, I also was doing the same with PageParameters, I mean,
using get instead of getString... and so on...

So, I agree, to avoid misunderstandings, it might be fixed, likely by
returning a ValueMap, instead, as you say.

Cheers

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] for IDEA users that wish a wicket plugin

2007-05-15 Thread Nick Heudecker

I'm updating the code today to work with Wicket 1.3's package structure.
Currently, the only way to get the current version of the plugin is to build
from wicket-stuff's SVN.

On 5/15/07, Justin Lee [EMAIL PROTECTED] wrote:


There's a plugin in wicket-stuff already.  An older version is already
in the plugin repository called Wicket Assistant

ali wrote:
 IDEA ade the online Wish List survey where everybody is welcome to leave
 their opinion, let it be a request for a new plugin or suggestion to
 improve the existing one.

 please vote and add your features for wicket plugin
 a href=http://plugins.intellij.net/wishlist/item/?wid=95;wicket
 plugin/a




-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com
-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Igor Vaynberg

i dont think that is it. jsessionid is only appended when there is a
session.

when you hit blah.com/context you are probably hitting index.html that does
a metaredirect to blah.com/context/app/homepage. so on the first hit to
blah.com/context there is no session. now when you hit /app/home a session
is created, and cookie is set.

-igor


On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:


I'm going to debug it a bit more to see what's going on.  The jsessionid
is not appended to the URL until Wicket performs a redirect from the context
to the actual home page (e.g. from http://blah.com/context redirects to
http://blah.com/context/app/HomePage), so I'm wondering if the redirect is
doing something that's causing Tomcat to think it's a new session, thereby
making the jsessionid in the URL not equal the one in the cookie.

Eelco, I'll take a look at what you're saying too and see if I can
reconfigure Tomcat as well.

On 5/15/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:

 Also, sessions are managed by the app server, not by Wicket or Spring
 MVC. I had a problem a while ago losing sessions going from
 foo.mydomain.com to bar.mydomain.com, and that only worked well when I
 configured Jetty's session manager to use .mydomain.com as it's
 session domain. Maybe your problem is similar? Or even if it isn't,
 what I'm saying is that it is very unlikely Wicket or any other
 framework is the bad guy as Wicket just uses the servlet API as-is.

 Eelco


 On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
  can you look at the first request if the wicket session is really
  pushed to the http session (so is the http session created?) you can
  look at that in the set atribute of the session store
 
  On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:
   I think I found the crux of the problem.  When you first go to the
 app, as
   I've mentioned, it puts the jsessionid in the URL.  Well, I compared
 that
   sessionid to the one in the cookie created and they are
 different!  That has
   to be the reason it creates a new session.  Now to figure out why
 it's doing
   that.
  
   On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:
   
Spring MVC does put the jsessionid in the URL.  What I don't
 understand is
that when coming into the Wicket app for the first time, it goes
 to the
   home
page fine with the jsessionid in the URL, and then I click any
 link and
   all
session attributes are gone.  Literally a brand new session is
 created no
matter what link I click.  However, once I click that next link,
 all is
   fine
and that second new session is the one that is used.  Just doesn't
 make
   any
sense.
   
On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

  Definitely not what I want, but it's the only thing that
 works.  There's
  clearly a problem in how Wicket is getting the session from
 the
 cookie.  My
  Spring MVC app which uses the same WAR has no issues pulling
 the
 session
  info.

 I don't really understand the problem though. Like Johan said,
 the
 first time a persistent session is made, Tomcat puts the session
 id in
 the URL as it doesn't know yet whether it can rely on cookies
 (if I
 understand correctly). Spring MVC might not do that for the
 particular
 things you test it for as it doesn't create a session? If you
 would
 use stateless pages Wicket wouldn't either.

 Anyway, there have been discussions about jsessionid on the
 lists
 before, and typically it was from people worrying it would mess
 up
 search bots etc. If you are worried about that, don't, as bots
 can
 filter it. Also, the url is stable as it is not part of the
 parameters
 part (which comes after the question mark). It's a universal
 Java app
 server thingy, and Wicket has nothing to do with it other than
 it
 probably relies on the HttpSession sooner than e.g. model 2
 frameworks.

 Eelco



  
 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
  
 
 
 -
  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. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 

Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Igor Vaynberg

On 5/15/07, Chris Colman [EMAIL PROTECTED] wrote:



It has no problem finding the ones that are there when the web app is
started. It's just that it only looks once at startup. If I add a new
one after the web app has started it never finds it.



it looks only the first time you ask it for it, and it caches the
not-found result. so if you add things after you performed a failed lookup
and not-found was cached it will never see the new stuff.

-igor



-

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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Highlander - 1 Template, Some Sub Pages, Many Components

2007-05-15 Thread Igor Vaynberg

class templatepage extends webpage {
  private boolean initialized=false;
  private final RepeatingView header1,content1;
  public templatepage() {

   add(header1=new RepeatingView(header1));
   add(header2=new RepeatingView(content1));
   }

   protected void addToHeader(Component c) { header1.add(c); }
   protected void addToContent1(Component c) { content1.add(c); }

   protected abstract initialize();

   onBeforeRender() { if (!initialized) { initialize(); initialized=true; }
}

templatepage.html
htmlbody...
div id=header1div wicket:id=header1/div/div
div id=header1div wicket:id=content1/div/div
wicket:child/!-- needed for markup inheritance --
/body
/html

class page1 extends templatepage {
 initialize() {
 addToHeader1(new HeaderPanel(panel));
 Fragment f=new Fragment(1,contentfrag);
 f.add(new Label(hello,hello));
 addToContent1(f);
  }
}

page1.html
wicket:extend

wicket:fragment wicket:id=contentfrag
div wicket:id=hello/div
/wicket:fragment

/wicket:extend

you can add two types of components into those containers: panels and
fragments. if you use a fragment then you have to define its markup in the
page's html.

-igor



On 5/15/07, Fábio Bombonato [EMAIL PROTECTED] wrote:


Hi Folks,

I´m newbie in Wicket, but until last week I trying to figure out how to
organize the code and html markup with wicket to get a template page to
work. Let me explain,

I´m want to create a Template web page that contains markup´s that I
called containers, for example:

Template.html:
html
head
/head
body
div id=header1 wicket:id=header1/div
div id=content1 wicket:id=content1/div
div id=content2 wicket:id=content2/div
/body
/html

In this containers I could insert many components in each one, or simple
no one, depends on which web page will use this template.

Than, I create a web page to use the containers of theTemplate.html and
insert in it the components that I want. For example,

MainPage.html
html
head
/head
body
div id=header1 wicket:id=header1
   span wicket:id=login/span
/div
div id=content1 wicket:id=content1
   span wicket:id=lastNews/span
/div
div id=content2 wicket:id=content2
span wicket:id=blogContent/span
/div
/body
/html

In above example I repeat the Template html code to exemplify the
situation, however the problem is that I don´t want to repeat the Template
page all time to create some web page, I want to reuse the template web page
and not repeat that in sub pages. The template page is used for all the
pages, so it´s easy if the design is centralized in that template page the
only place that I need to modify that design if I want to change the main
template page and not in all sub pages. Reading the Maillist, the people
call this the Dreamweaver centric.

Remembering, the pages that use template could change the components used
in it. For example:

UserProfilePage.html
html
head
/head
body
div id=header1 wicket:id=header1
   span wicket:id=showAd/span
/div
div id=content1 wicket:id=content1
   span wicket:id=userProfileDetails/span
/div
div id=content2 wicket:id=content2
span wicket:id=lastUsers/span
/div
/body
/html

Note that all components was changed. So, it´s not the simple Header,
Content and Footer centric, which header and footer is static, but all parts
in the containers could be changed. Them, use the markup inheritance and
wicket:child / it isn´t sufficient, because all content could change and
not a specific part (like only the Content part).


Read some topics in Wicket WiKi, I searched and readed many topics in
maillist, like:
Border and markup inheritance problem
 
http://www.nabble.com/Border-and-markup-inheritance-problem-t1639150.html#a4475258
Inheritance and wicket:child / inside a tag with wicket:id
 
http://www.nabble.com/Inheritance-and-%3Cwicket%3Achild--%3E-inside-a-tag-with-wicket%3Aid-tf1811521.html#a4936866
More than one wicket:child
 
http://www.nabble.com/More-than-one-%3Cwicket%3Achild%3E-tf3584957.html#a10017716

I´m little lost ;-), The problem is that I couldn't´t figure out what I
need to use and how implement something to do this. I don´t know if a need
to use wicket Panels, Borders, Fragments or perhaps MarkupContainer. In the
end, I think it´s necessary to group many panels, but I don´t know how.

I really, really appreciate some simple example.

Thanks for any help,
and excuse me for my bad English.
--
Bombonato

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Re: [Wicket-user] repeating the same text in several places on one page

2007-05-15 Thread Rüdiger Schulz
If you're not displaying a list of users, but want to display the same
username on several places on your page, there is no real idiom. Maybe
call them according to where they are put, like userMenuBar,
userSideBar, etc.

.rue

2007/5/14, Lowell Kirsh [EMAIL PROTECTED]:
 Is there an idiom for naming these labels, or do people tend to call
 them user1, user2, user3...?

 On 5/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  you cannot reuse the same label more then once in markup. there are various
  reasons for this that have to do with how wicket works internally.
 
  what you can do is reuse the instance of model that drives the labels.
 
  -igor
 
 
 
  On 5/13/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
  
   I'd like to repeat the same thing in several spots on the same page.
   Does this mean that I have to create several labels? Or is there a way
   I could have them all reference the same label?
  
   Thanks,
   Lowell
  
  
  -
   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. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  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. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Jean-Baptiste Quenot
* Chris Colman:

 It has no  problem finding the ones that are  there when the web
 app is started. It's just that it only looks once at startup. If
 I add a new one after the web app has started it never finds it.

Indeed  this is  a known  problem, but  surprisingly never  fixed.
Igor mentions it  is done like this by design,  but I think you've
got a perfectly valid usecase that Wicket should address.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WicketTester Sessions (1.3.0-incubating-beta1)

2007-05-15 Thread Igor Vaynberg

please fire a jira bug

-igor

On 5/15/07, severian [EMAIL PROTECTED] wrote:



I've been having trouble using sessions with WicketTester, even after
looking
over the old messages on this list.  I've been trying to implement
something
like the example in Gurumurthy's Pro Wicket book, where a Login page
places a User object in the session, and other pages subsequently have
access to the cached User object.

When trying to unit test one of the subsequent pages in isolation (i.e.
without first going through the Login page), I figured I just had to place
a
User object in the test instance of my session class, like this:



--
WicketTester tester = new WicketTester(myApp, myPath);

MySession mySession = (MySession) tester.getWicketSession();
mySession.setCurrentUser(getCurrentUser());

tester.startPage(MyPage.class);

--


Unfortunately, this didn't work.  The WicketTester constructor correctly
creates an instance of MySession, but never binds it to the session store.
Consequently, the later call to tester.startPage() creates a new instance
of
MySession, which obviously contains no User object, causing my tests to
fail.

As a workaround, I forced the bind() call myself, after the WicketTester
constructor:



--
WicketTester tester = new WicketTester(myApp, myPath);
tester.getApplication().getSessionStore().bind(tester.getWicketRequest(),
tester.getWicketSession());

MySession mySession = (MySession) tester.getWicketSession();
mySession.setCurrentUser(getCurrentUser());

tester.startPage(MyPage.class);

--


This allows my tests to succeed.  However, I'm suspicious that either I'm
missing something subtle, or there's a bug in the wicket test framework.
For example, should MockWebApplication.createRequestCycle() force a bind
after setting up its session via:
this.wicketSession = (WebSession) Session.findOrCreate();

It seems to me that it should, but I'm a Wicket newbie...
--
View this message in context:
http://www.nabble.com/WicketTester---Sessions-%281.3.0-incubating-beta1%29-tf3759412.html#a10625617
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] weird url behaviour for bookmarkable pages

2007-05-15 Thread Jonathan Locke


I'm also getting this and I don't have multiple windows open.  Is this a bug
in the new browser window check?


Johan Compagner wrote:
 
 i think in 2.0 the newBrowserWindow check is still enabled.
 
 this makes sure that for one pagemap only one window is open.
 If the checker finds another tab (or window) in a browser that is new and
 the pagemap
 is already used by another window then it will redirect and the same page
 will be moved
 to the new pagemap (wicket-1%3A)
 
 this can be disabled (and is already disabled in 1.3 by default when using
 the SecondLevelCache)
 
 johan
 
 
 On 5/14/07, Wouter de Vaal [EMAIL PROTECTED] wrote:

 Hi,

 I get some strange behaviour using bookmarkeable pages. My home page
 class has a default constructor and I am using a simple   href=/Home 
 link to get to it. Now most of the time, this works
 just fine, but sometimes a client redirect turns the browser location
 into
 /?wicket:bookmarkablePage=wicket-1%3Amypackage.Home

 Any idea what triggers this behaviour, and more important, how to avoid
 it?

 I also get infrequent pageMap additions to the urls with bookmarkable
 pages, why are those necessary and can they be avoided?

 No session specific data is used in above cases.
 I'm using a 2.0 snapshot.

 Regards,
 Wouter

 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/weird-url-behaviour-for-bookmarkable-pages-tf3752813.html#a10626209
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxSubmitLink throws ClassCastException in 1.2.6

2007-05-15 Thread Jeremy Levy

After upgrading to Wicket 1.2.6 all AjaxSubmitLinks throw the exception
listed below.  I have also opened the following bug:

https://issues.apache.org/jira/browse/WICKET-571

12:11:38,841 ERROR [RequestCycle] ::: [Ljava.lang.String; cannot be cast to
java.lang.String
java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to
java.lang.String
   at
wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy$DecodedUrlRequest.getParameter
(CryptedUrlWebRequestCodingStrategy.java:432)
   at wicket.protocol.http.request.WebRequestCodingStrategy.decode(
WebRequestCodingStrategy.java:161)
   at
wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(
CryptedUrlWebRequestCodingStrategy.java:98)
   at wicket.Request.getRequestParameters(Request.java:163)
   at wicket.RequestCycle.step(RequestCycle.java:992)
   at wicket.RequestCycle.steps(RequestCycle.java:1084)
   at wicket.RequestCycle.request(RequestCycle.java:454)
   at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(
CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:856)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:744)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(
MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:619)
-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Igor Vaynberg

im not so sure we should address it.

everytime you request a page wicket performs a fallback-search

you say you want page A, variation B. then wicket has to look for

A_EN_US_B -- not found
A_EN_B -- not found
A_B -- found

in case of markup inheritance this is also done for parents

that is 3 lookups just for a variation. what you are saying is you do not
want to cache not-found, then that means this search lookup will be
performed every time you render a page, which will slow down the hell out of
the application.

if we can find a way to do this nicely, then fine. but we cannot do what
devmode does and monitor the files becuase that leaves file handles open, so
there needs to be another way.

furthermore, this is not typical of every application out there, in fact it
is quiet atypical. given that, i think chris should implement his own markup
finding using IResourceStreamLocator. i assume he knows when he adds a new
variation, so that event can work in conjunction with his own
iresourcestream to evict some lookup path from the markup.

maybe really all we need to add is markupcache.clear(class), and then chris
can call that when he adds a new variation. also he can probably make all
this happen by implementing IMarkupCacheKeyProvider on components for which
he adds variations.

just some food for thought

-igor


On 5/15/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:


* Chris Colman:

 It has no  problem finding the ones that are  there when the web
 app is started. It's just that it only looks once at startup. If
 I add a new one after the web app has started it never finds it.

Indeed  this is  a known  problem, but  surprisingly never  fixed.
Igor mentions it  is done like this by design,  but I think you've
got a perfectly valid usecase that Wicket should address.
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] dynamically populate tree

2007-05-15 Thread Matej Knopp
It's not really question about the wicket component. It's about the
TreeModel you need to implement.

-Matej

On 5/15/07, galbu [EMAIL PROTECTED] wrote:

 Hello world
 I have a problem with a data tree: I need to generate a data tree that shows
 the structure of products' classification from this table:

 Object: ClasseCND
 id| anno | livello | descrizione | classemadre|
 A| 2005 |0| d   | null  |
 A01| 2005 |1|  g  |  A|
 B| 2005 |0| gg | null  |
 B01| 2005 |1| g   |  B|
 B02| 2005 |1| g   |  B|  etc...
 I have more levels of depth in the tree...and I have a great number of
 classes to show
 At first time I would show to the user only the level 0 of my data structure
 and, when the user select one node of the
 tree, I would show the requested subtree expanded. There is a way to do
 something like that without generate and cache all the classification tree
 in the session ? Some way to dynamically populate the tree when the user
 select the node he wants to see expanded ?
 Any suggest will be appreciate
 Thanks in advance
   Galbu
 --
 View this message in context: 
 http://www.nabble.com/dynamically-populate-tree-tf3758317.html#a10622286
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Date Validation occured on formatted field (dd.MM.yyyy)

2007-05-15 Thread Francisco Diaz Trepat - gmail

Hi I have the following TextField and DatePicket.

When I submit I get a validation of type: '15.05.1959' is not a valid Date.

   //create textfield - validate it with the Date type
   TextField dateOfBirth = new TextField(dateOfBirth, Date.class);
   //add a validator for range between a person born a maximum of 100
years ago and today
   
dateOfBirth.add(DateValidator.range(getMinimumDateAllowedForDateOfBirth(),
getMaximumDateAllowedForDateOfBirth()));
   //set also as required
   dateOfBirth.setRequired(true);
   //add the textfield
   form.add(dateOfBirth);
   //Create DatePicker
   DatePicker datePicker = new DatePicker(datePicker,
dateOfBirthLabel, dateOfBirth);
   //create date converter
   DateConverter dateConverter = new DateConverter();
   //Set the DateFormat and Locales
   dateConverter.setDateFormat(getWicketSession().getLocale(), new
SimpleDateFormat(dd.MM.));
   //asign the converter to the date picker
   datePicker.setDateConverter(dateConverter);
   //Add the datepicker
   form.add(datePicker);



What Am I missing, can't see it.

f(t)
-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Highlander - 1 Template, Some Sub Pages, Many Components

2007-05-15 Thread Igor Vaynberg

youre welcome

-igor


On 5/15/07, Fábio Bombonato [EMAIL PROTECTED] wrote:


Igor,

  Thanks so much for the fast response. It seems exactly what I
want. I´ll try to use your examples.

   I need to send you a postal card ;-)

And again, thanks !
Bombonato.


On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 class templatepage extends webpage {
private boolean initialized=false;
private final RepeatingView header1,content1;
public templatepage() {

 add(header1=new RepeatingView(header1));
 add(header2=new RepeatingView(content1));
 }

 protected void addToHeader(Component c) { header1.add(c); }
 protected void addToContent1(Component c) { content1.add(c); }


 protected abstract initialize();

 onBeforeRender() { if (!initialized) { initialize();
 initialized=true; }
 }

 templatepage.html
 htmlbody...
 div id=header1div wicket:id=header1/div/div
 div id=header1div wicket:id=content1/div/div
 wicket:child/!-- needed for markup inheritance --
 /body
 /html

 class page1 extends templatepage {
   initialize() {
   addToHeader1(new HeaderPanel(panel));
   Fragment f=new Fragment(1,contentfrag);
   f.add(new Label(hello,hello));
   addToContent1(f);
}
 }

 page1.html
 wicket:extend

 wicket:fragment wicket:id=contentfrag
 div wicket:id=hello/div
 /wicket:fragment

 /wicket:extend

 you can add two types of components into those containers: panels and
 fragments. if you use a fragment then you have to define its markup in the
 page's html.

 -igor



  On 5/15/07, Fábio Bombonato [EMAIL PROTECTED] wrote:

  Hi Folks,
 
  I´m newbie in Wicket, but until last week I trying to figure out how
  to organize the code and html markup with wicket to get a template page to
  work. Let me explain,
 
  I´m want to create a Template web page that contains markup´s that I
  called containers, for example:
 
  Template.html:
  html
  head
  /head
  body
  div id=header1 wicket:id=header1/div
  div id=content1 wicket:id=content1/div
  div id=content2 wicket:id=content2/div
  /body
  /html
 
  In this containers I could insert many components in each one, or
  simple no one, depends on which web page will use this template.
 
  Than, I create a web page to use the containers of theTemplate.htmland 
insert in it the components that I want. For example,
 
  MainPage.html
  html
  head
  /head
  body
  div id=header1 wicket:id=header1
 span wicket:id=login/span
  /div
  div id=content1 wicket:id=content1
 span wicket:id=lastNews/span
  /div
  div id=content2 wicket:id=content2
  span wicket:id=blogContent/span
  /div
  /body
  /html
 
  In above example I repeat the Template html code to exemplify the
  situation, however the problem is that I don´t want to repeat the Template
  page all time to create some web page, I want to reuse the template web page
  and not repeat that in sub pages. The template page is used for all the
  pages, so it´s easy if the design is centralized in that template page the
  only place that I need to modify that design if I want to change the main
  template page and not in all sub pages. Reading the Maillist, the people
  call this the Dreamweaver centric.
 
  Remembering, the pages that use template could change the components
  used in it. For example:
 
  UserProfilePage.html
  html
  head
  /head
  body
  div id=header1 wicket:id=header1
 span wicket:id=showAd/span
  /div
  div id=content1 wicket:id=content1
 span wicket:id=userProfileDetails/span
  /div
  div id=content2 wicket:id=content2
  span wicket:id=lastUsers/span
  /div
  /body
  /html
 
  Note that all components was changed. So, it´s not the simple
  Header, Content and Footer centric, which header and footer is static, but
  all parts in the containers could be changed. Them, use the markup
  inheritance and wicket:child / it isn´t sufficient, because all content
  could change and not a specific part (like only the Content part).
 
 
  Read some topics in Wicket WiKi, I searched and readed many topics in
  maillist, like:
  Border and markup inheritance problem
   
http://www.nabble.com/Border-and-markup-inheritance-problem-t1639150.html#a4475258
  Inheritance and wicket:child / inside a tag with wicket:id
   
http://www.nabble.com/Inheritance-and-%3Cwicket%3Achild--%3E-inside-a-tag-with-wicket%3Aid-tf1811521.html#a4936866
  More than one wicket:child
   
http://www.nabble.com/More-than-one-%3Cwicket%3Achild%3E-tf3584957.html#a10017716
 
  I´m little lost ;-), The problem is that I couldn't´t figure out what
  I need to use and how implement something to do this. I don´t know if a need
  to use wicket 

[Wicket-user] Tapestry vs. Wicket

2007-05-15 Thread craigdd

I started looking at tapestry today, for some reason through out all my
webapp development experience I never have taken a look at it.  With that
said I see a lot of similarities to wicket.  Can someone point out the
advantages that wicket has over tapestry.

Kind of a side note, and I little off subject, but does anyone know the
process of the Wicket in Action book?

-Craig
-- 
View this message in context: 
http://www.nabble.com/Tapestry-vs.-Wicket-tf3760084.html#a10627847
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tapestry vs. Wicket

2007-05-15 Thread Francisco Diaz Trepat - gmail

Elco is at it but last time we asked him I think he said something about
2/3rds.

f(t)

On 5/15/07, craigdd [EMAIL PROTECTED] wrote:



I started looking at tapestry today, for some reason through out all my
webapp development experience I never have taken a look at it.  With that
said I see a lot of similarities to wicket.  Can someone point out the
advantages that wicket has over tapestry.

Kind of a side note, and I little off subject, but does anyone know the
process of the Wicket in Action book?

-Craig
--
View this message in context:
http://www.nabble.com/Tapestry-vs.-Wicket-tf3760084.html#a10627847
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Tremelune

The overview of my goal is to replace   1 2 3 4   with prev next. I
can't see how it can be done through subclassing, so I'm rolling my own
Panel, similar to PagingNavigator (but with a new template).

I'm trying to get AJAX pagination working, and I have--without custom stuff.
If I use AjaxPagingNavigator, everything works fine:

pre
  public Home() {
PageableListView topDogs = new SongListView(topDogs, dogs, 10);

WebMarkupContainer container = new WebMarkupContainer(topDogsBlock);
container.setOutputMarkupId(true);

container.add(topDogs);
container.add(new AjaxPagingNavigator(pager, topDogs));

//Add container to main page
add(container);
  }
/pre

Now, the weird thing is, if I copy the source code from AjaxPagingNavigator,
create a new class in my own source tree, and use that completely identical
class (except for package), it does NOT work. I have to click links twice,
and it refreshes the whole page. The Wicket AJAX debugger says some error
500 or some such.

Do I have to register behavior with custom classes or what? Line for line,
it's the same code, but one works, the other does not. There has to be
something I'm missing.
-- 
View this message in context: 
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628431
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Tremelune

INFO: 
INFO: Initiating Ajax GET request on
/app?wicket:interface=:1:topDogsBlock:pager:next::IBehaviorListenerwicket:behaviorId=0random=0.28339447129400336
INFO: Invoking pre-call handler(s)...
ERROR: Received Ajax response with code: 500
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...

-- 
View this message in context: 
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628665
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] weird url behaviour for bookmarkable pages

2007-05-15 Thread Johan Compagner

but you are using the latest wicket code of 1.3 yes?
and the default second level cache?

then it should be disabled by default.

johan


On 5/15/07, Jonathan Locke [EMAIL PROTECTED] wrote:




I'm also getting this and I don't have multiple windows open.  Is this a
bug
in the new browser window check?


Johan Compagner wrote:

 i think in 2.0 the newBrowserWindow check is still enabled.

 this makes sure that for one pagemap only one window is open.
 If the checker finds another tab (or window) in a browser that is new
and
 the pagemap
 is already used by another window then it will redirect and the same
page
 will be moved
 to the new pagemap (wicket-1%3A)

 this can be disabled (and is already disabled in 1.3 by default when
using
 the SecondLevelCache)

 johan


 On 5/14/07, Wouter de Vaal [EMAIL PROTECTED] wrote:

 Hi,

 I get some strange behaviour using bookmarkeable pages. My home page
 class has a default constructor and I am using a simple   href=/Home
 link to get to it. Now most of the time, this works
 just fine, but sometimes a client redirect turns the browser location
 into
 /?wicket:bookmarkablePage=wicket-1%3Amypackage.Home

 Any idea what triggers this behaviour, and more important, how to avoid
 it?

 I also get infrequent pageMap additions to the urls with bookmarkable
 pages, why are those necessary and can they be avoided?

 No session specific data is used in above cases.
 I'm using a 2.0 snapshot.

 Regards,
 Wouter


-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/weird-url-behaviour-for-bookmarkable-pages-tf3752813.html#a10626209
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Matej Knopp
That is an internal error. Which means that you got an exception. We
need to see the exception (from your server logs).

-Matej

On 5/15/07, Tremelune [EMAIL PROTECTED] wrote:

 INFO:
 INFO: Initiating Ajax GET request on
 /app?wicket:interface=:1:topDogsBlock:pager:next::IBehaviorListenerwicket:behaviorId=0random=0.28339447129400336
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 500
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

 --
 View this message in context: 
 http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628665
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Tremelune

No exceptions thrown, at least nothing reported by my app.
AjaxPagingNavigator doesn't get hit at all. What would come before that? I
don't think it's in any of my code before it gets to AjaxPagingNavigator.

The question remains, how can identical code be failing in one case and not
the other unless there is some kind of class-level registration or
reflection (including the package) going on?

I'm boggled.




Matej Knopp-2 wrote:
 
 That is an internal error. Which means that you got an exception. We
 need to see the exception (from your server logs).
 
 -Matej
 
 On 5/15/07, Tremelune [EMAIL PROTECTED] wrote:

 INFO:
 INFO: Initiating Ajax GET request on
 /app?wicket:interface=:1:topDogsBlock:pager:next::IBehaviorListenerwicket:behaviorId=0random=0.28339447129400336
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 500
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

 --
 View this message in context:
 http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628665
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10629231
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Juergen Donnerstag
I hoping to be able to modify MarkupCache.loadMarkupAndWatchForChanges
in a way that it not only checks if existing files have changed but
also that not-found entries are checked by ModificationWatcher.

Juergen

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 im not so sure we should address it.

 everytime you request a page wicket performs a fallback-search

 you say you want page A, variation B. then wicket has to look for

 A_EN_US_B -- not found
 A_EN_B -- not found
 A_B -- found

 in case of markup inheritance this is also done for parents

 that is 3 lookups just for a variation. what you are saying is you do not
 want to cache not-found, then that means this search lookup will be
 performed every time you render a page, which will slow down the hell out of
 the application.

 if we can find a way to do this nicely, then fine. but we cannot do what
 devmode does and monitor the files becuase that leaves file handles open, so
 there needs to be another way.

 furthermore, this is not typical of every application out there, in fact it
 is quiet atypical. given that, i think chris should implement his own markup
 finding using IResourceStreamLocator. i assume he knows when he adds a new
 variation, so that event can work in conjunction with his own
 iresourcestream to evict some lookup path from the markup.

 maybe really all we need to add is markupcache.clear(class), and then chris
 can call that when he adds a new variation. also he can probably make all
 this happen by implementing IMarkupCacheKeyProvider on components for which
 he adds variations.

 just some food for thought

 -igor



 On 5/15/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
  * Chris Colman:
 
   It has no  problem finding the ones that are  there when the web
   app is started. It's just that it only looks once at startup. If
   I add a new one after the web app has started it never finds it.
 
  Indeed  this is  a known  problem, but  surprisingly never  fixed.
  Igor mentions it  is done like this by design,  but I think you've
  got a perfectly valid usecase that Wicket should address.
  --
   Jean-Baptiste Quenot
  aka  John Banana   Qwerty
  http://caraldi.com/jbq/
 
 
 -
  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. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Igor Vaynberg

On 5/15/07, Tremelune [EMAIL PROTECTED] wrote:



No exceptions thrown, at least nothing reported by my app.



something cause error code 500, so there must be an exception somewhere in
the logs.

AjaxPagingNavigator doesn't get hit at all. What would come before that?


before that wicket has to find the right page, and find the component on it.
then invoke the interface from the url on that component.

I

don't think it's in any of my code before it gets to AjaxPagingNavigator.



doesnt look like it, but who knows. without the stack trace its hard to
tell.

The question remains, how can identical code be failing in one case and not

the other unless there is some kind of class-level registration or
reflection (including the package) going on?



i am not aware of anything like that going on if all you did was copy
ajaxpagingnavigator, that simply extends pagingnavigator

I'm boggled.


so are we without that stacktrace. set a breakpoint in requestcycle.request()
and see what happens when that ajax request comes in.

-igor


Matej Knopp-2 wrote:


 That is an internal error. Which means that you got an exception. We
 need to see the exception (from your server logs).

 -Matej

 On 5/15/07, Tremelune [EMAIL PROTECTED] wrote:

 INFO:
 INFO: Initiating Ajax GET request on

/app?wicket:interface=:1:topDogsBlock:pager:next::IBehaviorListenerwicket:behaviorId=0random=
0.28339447129400336
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 500
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

 --
 View this message in context:

http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628665
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



--
View this message in context:
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10629231
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Igor Vaynberg

but the modification watcher is disabled in deployment mode, so this is a
fix only in dev mode?

-igor


On 5/15/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:


I hoping to be able to modify MarkupCache.loadMarkupAndWatchForChanges
in a way that it not only checks if existing files have changed but
also that not-found entries are checked by ModificationWatcher.

Juergen

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 im not so sure we should address it.

 everytime you request a page wicket performs a fallback-search

 you say you want page A, variation B. then wicket has to look for

 A_EN_US_B -- not found
 A_EN_B -- not found
 A_B -- found

 in case of markup inheritance this is also done for parents

 that is 3 lookups just for a variation. what you are saying is you do
not
 want to cache not-found, then that means this search lookup will be
 performed every time you render a page, which will slow down the hell
out of
 the application.

 if we can find a way to do this nicely, then fine. but we cannot do what
 devmode does and monitor the files becuase that leaves file handles
open, so
 there needs to be another way.

 furthermore, this is not typical of every application out there, in fact
it
 is quiet atypical. given that, i think chris should implement his own
markup
 finding using IResourceStreamLocator. i assume he knows when he adds a
new
 variation, so that event can work in conjunction with his own
 iresourcestream to evict some lookup path from the markup.

 maybe really all we need to add is markupcache.clear(class), and then
chris
 can call that when he adds a new variation. also he can probably make
all
 this happen by implementing IMarkupCacheKeyProvider on components for
which
 he adds variations.

 just some food for thought

 -igor



 On 5/15/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
  * Chris Colman:
 
   It has no  problem finding the ones that are  there when the web
   app is started. It's just that it only looks once at startup. If
   I add a new one after the web app has started it never finds it.
 
  Indeed  this is  a known  problem, but  surprisingly never  fixed.
  Igor mentions it  is done like this by design,  but I think you've
  got a perfectly valid usecase that Wicket should address.
  --
   Jean-Baptiste Quenot
  aka  John Banana   Qwerty
  http://caraldi.com/jbq/
 
 

-
  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. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



-
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] StackOverflowError when using FeedBack messages

2007-05-15 Thread remco bos
I hope someone can help me, I just don't know if I'm doing something really 
stupid, or if this is a bug.. A big stacktrace appears after the following 
actions: add / submit / add / submit.

I'm using the latest 1.3.0 incubating snapshot.

info(product added);  -- causing the stacktrace (I think...)

Code:

ProductListPage.java
public class ProductListPage extends WebPage {
public ProductListPage() {
add(new FeedbackPanel(status));
add(new Link(add){
@Override
public void onClick() {
setResponsePage(new ProductDetailPage(getPage(), new Model(new 
Product(;
}
});
}
}


ProductListPage.html
a href=# wicket:id=addAdd New Product/a
pspan wicket:id=status//p


ProductDetailPage.java
public class ProductDetailPage extends WebPage {

private Page backPage;

public ProductDetailPage(Page backPage, IModel model) {
this.backPage = backPage;
add(new FeedbackPanel(status));
add(new ProductForm(productForm, new CompoundPropertyModel(model)));
}
public final class ProductForm extends Form {
public ProductForm(String id, IModel model) {
super(id, model);
add(new Button(submitQuery) {
public void onSubmit() {
info(product added); // causing StackOverflowError
setResponsePage(backPage);
}
});
}
}
}


   
-
You snooze, you lose. Get messages ASAP with AutoCheck
 in the all-new Yahoo! Mail Beta. -
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Tremelune

Running direct with the source code, it throws an Exception in
AjaxPagingNavigationBehavior:

protected void onEvent(AjaxRequestTarget target)
{
// handle the event
owner.onClick(target);

// find the PagingNavigator parent of this link
AjaxPagingNavigator navigator = 
(AjaxPagingNavigator)((Component)owner)
.findParent(AjaxPagingNavigator.class);
if (navigator == null)
{
throw new WicketRuntimeException(
Unable to find AjaxPagingNavigator 
component in hierarchy starting
from 
+ owner);
}

// tell the PagingNavigator to update the IPageable
navigator.onAjaxEvent(target);  
}

navigator is null at this point, and the WicketRuntimeException is thrown.
Should I be explicitly setting the parent or something?
AjaxPagingNavigationBehavior seems tied to AjaxPagingNavigator, which I do
not intend to use.

Dunno why my app is swallowing this Exception, but that's my own problem.
-- 
View this message in context: 
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10629869
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Andrew Berman

I'm not doing any redirect using index.html and a meta redirect.  I just
call blah.com/context and Wicket is doing the redirect to /app/homepage.
/app is what I use for the mount point.

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


i dont think that is it. jsessionid is only appended when there is a
session.

when you hit blah.com/context you are probably hitting index.html that
does a metaredirect to blah.com/context/app/homepage. so on the first hit
to blah.com/context there is no session. now when you hit /app/home a
session is created, and cookie is set.

-igor


On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:

 I'm going to debug it a bit more to see what's going on.  The jsessionid
 is not appended to the URL until Wicket performs a redirect from the context
 to the actual home page (e.g. from http://blah.com/context redirects to
 http://blah.com/context/app/HomePage), so I'm wondering if the redirect
 is doing something that's causing Tomcat to think it's a new session,
 thereby making the jsessionid in the URL not equal the one in the cookie.

 Eelco, I'll take a look at what you're saying too and see if I can
 reconfigure Tomcat as well.

 On 5/15/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
 
  Also, sessions are managed by the app server, not by Wicket or Spring
  MVC. I had a problem a while ago losing sessions going from
  foo.mydomain.com to bar.mydomain.com, and that only worked well when I
  configured Jetty's session manager to use .mydomain.com as it's
  session domain. Maybe your problem is similar? Or even if it isn't,
  what I'm saying is that it is very unlikely Wicket or any other
  framework is the bad guy as Wicket just uses the servlet API as-is.
 
  Eelco
 
 
  On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
   can you look at the first request if the wicket session is really
   pushed to the http session (so is the http session created?) you can
 
   look at that in the set atribute of the session store
  
   On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:
I think I found the crux of the problem.  When you first go to the
  app, as
I've mentioned, it puts the jsessionid in the URL.  Well, I
  compared that
sessionid to the one in the cookie created and they are
  different!  That has
to be the reason it creates a new session.  Now to figure out why
  it's doing
that.
   
On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:

 Spring MVC does put the jsessionid in the URL.  What I don't
  understand is
 that when coming into the Wicket app for the first time, it goes
  to the
home
 page fine with the jsessionid in the URL, and then I click any
  link and
all
 session attributes are gone.  Literally a brand new session is
  created no
 matter what link I click.  However, once I click that next link,
  all is
fine
 and that second new session is the one that is used.  Just
  doesn't make
any
 sense.

 On 5/14/07, Eelco Hillenius [EMAIL PROTECTED]  wrote:
 
   Definitely not what I want, but it's the only thing that
  works.  There's
   clearly a problem in how Wicket is getting the session from
  the
  cookie.  My
   Spring MVC app which uses the same WAR has no issues pulling
  the
  session
   info.
 
  I don't really understand the problem though. Like Johan said,
  the
  first time a persistent session is made, Tomcat puts the
  session id in
  the URL as it doesn't know yet whether it can rely on cookies
  (if I
  understand correctly). Spring MVC might not do that for the
  particular
  things you test it for as it doesn't create a session? If you
  would
  use stateless pages Wicket wouldn't either.
 
  Anyway, there have been discussions about jsessionid on the
  lists
  before, and typically it was from people worrying it would
  mess up
  search bots etc. If you are worried about that, don't, as bots
  can
  filter it. Also, the url is stable as it is not part of the
  parameters
  part (which comes after the question mark). It's a universal
  Java app
  server thingy, and Wicket has nothing to do with it other than
  it
  probably relies on the HttpSession sooner than e.g. model 2
  frameworks.
 
  Eelco
 
 
 
   
  -
  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. No limits. Just data. Click to get it
  now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


   
  
  
  -
   This SF.net email is sponsored by DB2 Express
  

Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Igor Vaynberg

so wicket is mapped to /* but homepage is mounted to /app/homepage?

-igor


On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:


I'm not doing any redirect using index.html and a meta redirect.  I just
call blah.com/context and Wicket is doing the redirect to /app/homepage.
/app is what I use for the mount point.

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 i dont think that is it. jsessionid is only appended when there is a
 session.

 when you hit blah.com/context you are probably hitting index.html that
 does a metaredirect to blah.com/context/app/homepage. so on the first
 hit to blah.com/context there is no session. now when you hit /app/home
 a session is created, and cookie is set.

 -igor


 On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:
 
  I'm going to debug it a bit more to see what's going on.  The
  jsessionid is not appended to the URL until Wicket performs a redirect from
  the context to the actual home page (e.g. from 
http://blah.com/contextredirects to
  http://blah.com/context/app/HomePage), so I'm wondering if the
  redirect is doing something that's causing Tomcat to think it's a new
  session, thereby making the jsessionid in the URL not equal the one in the
  cookie.
 
  Eelco, I'll take a look at what you're saying too and see if I can
  reconfigure Tomcat as well.
 
  On 5/15/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  
   Also, sessions are managed by the app server, not by Wicket or
   Spring
   MVC. I had a problem a while ago losing sessions going from
   foo.mydomain.com to bar.mydomain.com, and that only worked well when
   I
   configured Jetty's session manager to use .mydomain.com as it's
   session domain. Maybe your problem is similar? Or even if it isn't,
   what I'm saying is that it is very unlikely Wicket or any other
   framework is the bad guy as Wicket just uses the servlet API as-is.
  
   Eelco
  
  
   On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
can you look at the first request if the wicket session is really
pushed to the http session (so is the http session created?) you
   can
look at that in the set atribute of the session store
   
On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:
 I think I found the crux of the problem.  When you first go to
   the app, as
 I've mentioned, it puts the jsessionid in the URL.  Well, I
   compared that
 sessionid to the one in the cookie created and they are
   different!  That has
 to be the reason it creates a new session.  Now to figure out
   why it's doing
 that.

 On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:
 
  Spring MVC does put the jsessionid in the URL.  What I don't
   understand is
  that when coming into the Wicket app for the first time, it
   goes to the
 home
  page fine with the jsessionid in the URL, and then I click any
   link and
 all
  session attributes are gone.  Literally a brand new session is
   created no
  matter what link I click.  However, once I click that next
   link, all is
 fine
  and that second new session is the one that is used.  Just
   doesn't make
 any
  sense.
 
  On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] 
   wrote:
  
Definitely not what I want, but it's the only thing that
   works.  There's
clearly a problem in how Wicket is getting the session
   from the
   cookie.  My
Spring MVC app which uses the same WAR has no issues
   pulling the
   session
info.
  
   I don't really understand the problem though. Like Johan
   said, the
   first time a persistent session is made, Tomcat puts the
   session id in
   the URL as it doesn't know yet whether it can rely on
   cookies (if I
   understand correctly). Spring MVC might not do that for the
   particular
   things you test it for as it doesn't create a session? If
   you would
   use stateless pages Wicket wouldn't either.
  
   Anyway, there have been discussions about jsessionid on the
   lists
   before, and typically it was from people worrying it would
   mess up
   search bots etc. If you are worried about that, don't, as
   bots can
   filter it. Also, the url is stable as it is not part of the
   parameters
   part (which comes after the question mark). It's a universal
   Java app
   server thingy, and Wicket has nothing to do with it other
   than it
   probably relies on the HttpSession sooner than e.g. model 2
   frameworks.
  
   Eelco
  
  
  

   -
   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. No limits. Just data. Click to get it
   now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user 

Re: [Wicket-user] StackOverflowError when using FeedBack messages

2007-05-15 Thread Igor Vaynberg

where is the stack trace?

-igor


On 5/15/07, remco bos [EMAIL PROTECTED] wrote:


I hope someone can help me, I just don't know if I'm doing something
really stupid, or if this is a bug.. A big stacktrace appears after the
following actions: add / submit / add / submit.

I'm using the latest 1.3.0 incubating snapshot.

info(product added);  -- causing the stacktrace (I think...)

Code:

ProductListPage.java
public class ProductListPage extends WebPage {
public ProductListPage() {
add(new FeedbackPanel(status));
add(new Link(add){
@Override
public void onClick() {
setResponsePage(new ProductDetailPage(getPage(), new
Model(new Product(;
}
});
}
}


ProductListPage.html
a href=# wicket:id=addAdd New Product/a
pspan wicket:id=status//p


ProductDetailPage.java
public class ProductDetailPage extends WebPage {

private Page backPage;

public ProductDetailPage(Page backPage, IModel model) {
this.backPage = backPage;
add(new FeedbackPanel(status));
add(new ProductForm(productForm, new
CompoundPropertyModel(model)));
}
public final class ProductForm extends Form {
public ProductForm(String id, IModel model) {
super(id, model);
add(new Button(submitQuery) {
public void onSubmit() {
info(product added); // causing StackOverflowError
setResponsePage(backPage);
}
});
}
}
}

--
You snooze, you lose. Get messages ASAP with 
AutoCheckhttp://us.rd.yahoo.com/evt=47959/*http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
in the all-new Yahoo! Mail Beta.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Erik van Oosten

Did you think of copying the templates (ie the html files) that are
associated with the navigator components?

I did succeed in extending the navigator, and also made it work with Ajax. I
must say, it was not an easy thing to do.

Regards,
Erik.


Tremelune wrote:
 
 Line for line,
 it's the same code, but one works, the other does not. There has to be
 something I'm missing.
 

-- 
Erik van Oosten
http://2007.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/

-- 
View this message in context: 
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10630134
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AutoCompleteTextField

2007-05-15 Thread Marc Stock

Hello, I'm a wicket newbie so bear with me.  

I'm trying to use the AutoCompleteTextField and I have three questions:

1) The auto complete feature appears to work well in Firefox but does not
work at all in IE 6.  Is there something special I need to do to get it
working with IE 6?

2) On my page, I have two autocomplete fields.  I need the second one to
populate its list based on what they selected in the first one, however,
when I inspect the value in the getChoices() method, it hasn't been updated
yet.  Is there a way to get the model updated without doing a submit?  If
so, how?

3) I have a custom type I use to populate the autocomplete fields.  It has
an id and description.  I override toString() it it all displays nicely in
the list that appears to the user.  However, it appears that the custom type
I created gets lost and wicket only keeps the string values.  Is there a way
to get to the custom type I inserted (and the user selected) or do I have to
write code to map the descriptive text back to an ID?

Thanks for the help.  Sorry if these are very easy questions but I'm still
new to wicket and trying to figure it out from reading example codes.

-- Marc
-- 
View this message in context: 
http://www.nabble.com/AutoCompleteTextField-tf3760833.html#a10630272
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Tremelune

So I have to register my AJAX stuff with a particular behavior? That is what
I suspected, but I'm having trouble figuring out where/how that takes place.
The examples don't bother with this since they're using the default classes.
Something googlable besides wicket ajax behavior would point me in a good
direction...




well, i see what is going on. you copied the class rather then subclassing.
the behavior is made to work with that class, and that is why that line
fails. so you will have to create your own behavior that looks for your
class instead.

-igor


-- 
View this message in context: 
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10630391
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Igor Vaynberg

class mynav extends ajaxpagingnavigator {

newnavigation(...) {
// hide the 1 2 3 4
return super.newnavigation(..).setvisible(false);
}

newpagingnavigationlink(..) {
//hide first last
return super.newpagingnavigationlink(..).setvisible(False);
}

}

thats all you want right? you will be left with only  

-igor

On 5/15/07, Tremelune [EMAIL PROTECTED] wrote:



The overview of my goal is to replace   1 2 3 4   with prev
next. I
can't see how it can be done through subclassing, so I'm rolling my own
Panel, similar to PagingNavigator (but with a new template).

I'm trying to get AJAX pagination working, and I have--without custom
stuff.
If I use AjaxPagingNavigator, everything works fine:

pre
  public Home() {
PageableListView topDogs = new SongListView(topDogs, dogs, 10);

WebMarkupContainer container = new WebMarkupContainer(topDogsBlock);
container.setOutputMarkupId(true);

container.add(topDogs);
container.add(new AjaxPagingNavigator(pager, topDogs));

//Add container to main page
add(container);
  }
/pre

Now, the weird thing is, if I copy the source code from
AjaxPagingNavigator,
create a new class in my own source tree, and use that completely
identical
class (except for package), it does NOT work. I have to click links twice,
and it refreshes the whole page. The Wicket AJAX debugger says some error
500 or some such.

Do I have to register behavior with custom classes or what? Line for line,
it's the same code, but one works, the other does not. There has to be
something I'm missing.
--
View this message in context:
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628431
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as custom class

2007-05-15 Thread Igor Vaynberg

or you can simply roll your own class since building a   navigator should
be pretty trivial.

-igor


On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


class mynav extends ajaxpagingnavigator {

newnavigation(...) {
// hide the 1 2 3 4
 return super.newnavigation(..).setvisible(false);
}

newpagingnavigationlink(..) {
//hide first last
return super.newpagingnavigationlink (..).setvisible(False);
}

}

thats all you want right? you will be left with only  

-igor

On 5/15/07, Tremelune  [EMAIL PROTECTED] wrote:


 The overview of my goal is to replace   1 2 3 4   with prev
 next. I
 can't see how it can be done through subclassing, so I'm rolling my own
 Panel, similar to PagingNavigator (but with a new template).

 I'm trying to get AJAX pagination working, and I have--without custom
 stuff.
 If I use AjaxPagingNavigator, everything works fine:

 pre
   public Home() {
 PageableListView topDogs = new SongListView(topDogs, dogs, 10);

 WebMarkupContainer container = new
 WebMarkupContainer(topDogsBlock);
 container.setOutputMarkupId(true);

 container.add(topDogs);
 container.add(new AjaxPagingNavigator(pager, topDogs));

 //Add container to main page
 add(container);
   }
 /pre

 Now, the weird thing is, if I copy the source code from
 AjaxPagingNavigator,
 create a new class in my own source tree, and use that completely
 identical
 class (except for package), it does NOT work. I have to click links
 twice,
 and it refreshes the whole page. The Wicket AJAX debugger says some
 error
 500 or some such.

 Do I have to register behavior with custom classes or what? Line for
 line,
 it's the same code, but one works, the other does not. There has to be
 something I'm missing.
 --
 View this message in context: 
http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628431

 Sent from the Wicket - User mailing list archive at Nabble.com.



 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] autolink-problem with img and relative path

2007-05-15 Thread Thomas Singer
I have a WebPage pages.Index (mapping to /index.html) whose markup 
contains an img-tag with the relative path ../../../screenshots/foo.png 
(the 1st ../ to get out of the pages-package, the 2nd ../ to get out 
of the classes-directory, the third ../ to get out of the 
WEB-INF-directory). This has the advantage, that the path is already valid 
in my undeployed project.

Unfortunately, the autolink resolver seems not able to convert it to a valid 
path:

 java.lang.IllegalArgumentException: Invalid path ../../../screenshots/foo.png
  at wicket.util.lang.Packages.absolutePath(Packages.java:109)
  at wicket.util.lang.Packages.absolutePath(Packages.java:46)
  at wicket.markup.html.PackageResource.exists(PackageResource.java:263)
  at 
 wicket.markup.resolver.AutoLinkResolver$ResourceReferenceAutolink.init(AutoLinkResolver.java:547)
  at 
 wicket.markup.resolver.AutoLinkResolver$AbstractAutolinkResolverDelegate.newPackageResourceReferenceAutoComponent(AutoLinkResolver.java:118)
  at 
 wicket.markup.resolver.AutoLinkResolver$ResourceReferenceResolverDelegate.newAutoComponent(AutoLinkResolver.java:620)
  at 
 wicket.markup.resolver.AutoLinkResolver.resolveAutomaticLink(AutoLinkResolver.java:832)
  at 
 wicket.markup.resolver.AutoLinkResolver.resolve(AutoLinkResolver.java:763)
  at wicket.MarkupContainer.renderNext(MarkupContainer.java:1361)
 ...

I would have expected it to convert the path to /screenshots/foo.png. How 
can I work around this issue? Is it possible to plug in an own resolver 
implementation? If so, where can I find some documentation (beside digging 
the source code)?

Tom

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AutoCompleteTextField

2007-05-15 Thread Erik van Oosten

Hi Marc,

1: IE 6 should work (I have autocompletion in production where most users
have IE6). If it does not work for you, it must be a regression. If you are
absolutely sure, you can file an issue.

2: Use the behavior attached to
https://issues.apache.org/jira/browse/WICKET-176.

3: I found the javadoc of the autocomplete fields quite informative. You may
find your answer to question 3 there.

Regards,
   Erik. 


Marc Stock wrote:
 
 Hello, I'm a wicket newbie so bear with me.  
 
 I'm trying to use the AutoCompleteTextField and I have three questions:
 
 1) The auto complete feature appears to work well in Firefox but does not
 work at all in IE 6.  Is there something special I need to do to get it
 working with IE 6?
 
 2) On my page, I have two autocomplete fields.  I need the second one to
 populate its list based on what they selected in the first one, however,
 when I inspect the value in the getChoices() method, it hasn't been
 updated yet.  Is there a way to get the model updated without doing a
 submit?  If so, how?
 
 3) I have a custom type I use to populate the autocomplete fields.  It has
 an id and description.  I override toString() it it all displays nicely in
 the list that appears to the user.  However, it appears that the custom
 type I created gets lost and wicket only keeps the string values.  Is
 there a way to get to the custom type I inserted (and the user selected)
 or do I have to write code to map the descriptive text back to an ID?
 
 Thanks for the help.  Sorry if these are very easy questions but I'm still
 new to wicket and trying to figure it out from reading example codes.
 
 -- Marc
 

-- 
Erik van Oosten
http://2007.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/ 

-- 
View this message in context: 
http://www.nabble.com/AutoCompleteTextField-tf3760833.html#a10631615
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Juergen Donnerstag
This is true, but I understand Chris has a general need for markup
reloading in production as well (though I haven't understood yet how
Chris creates the markup files at runtime). Or did I misunderstand
that? And though disabled in deployment mode by default, he could
enable it for his specific application.

Juergen

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 but the modification watcher is disabled in deployment mode, so this is a
 fix only in dev mode?

 -igor



 On 5/15/07, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
 
  I hoping to be able to modify
 MarkupCache.loadMarkupAndWatchForChanges
  in a way that it not only checks if existing files have changed but
  also that not-found entries are checked by ModificationWatcher.
 
  Juergen
 
  On 5/15/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   im not so sure we should address it.
  
   everytime you request a page wicket performs a fallback-search
  
   you say you want page A, variation B. then wicket has to look for
  
   A_EN_US_B -- not found
   A_EN_B -- not found
   A_B -- found
  
   in case of markup inheritance this is also done for parents
  
   that is 3 lookups just for a variation. what you are saying is you do
 not
   want to cache not-found, then that means this search lookup will be
   performed every time you render a page, which will slow down the hell
 out of
   the application.
  
   if we can find a way to do this nicely, then fine. but we cannot do what
   devmode does and monitor the files becuase that leaves file handles
 open, so
   there needs to be another way.
  
   furthermore, this is not typical of every application out there, in fact
 it
   is quiet atypical. given that, i think chris should implement his own
 markup
   finding using IResourceStreamLocator. i assume he knows when he adds a
 new
   variation, so that event can work in conjunction with his own
   iresourcestream to evict some lookup path from the markup.
  
   maybe really all we need to add is markupcache.clear(class), and then
 chris
   can call that when he adds a new variation. also he can probably make
 all
   this happen by implementing IMarkupCacheKeyProvider on components for
 which
   he adds variations.
  
   just some food for thought
  
   -igor
  
  
  
   On 5/15/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
* Chris Colman:
   
 It has no  problem finding the ones that are  there when the web
 app is started. It's just that it only looks once at startup. If
 I add a new one after the web app has started it never finds it.
   
Indeed  this is  a known  problem, but  surprisingly never  fixed.
Igor mentions it  is done like this by design,  but I think you've
got a perfectly valid usecase that Wicket should address.
--
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/
   
   
  
 -
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   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. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -
  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. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 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. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your 

[Wicket-user] Accessing a static resource in my webapp dir

2007-05-15 Thread Matt Welch

I have a stylesheet called base.css that sits in a directory called styles
that is in my base webapp directory. I have the following stylesheet
reference in an HTML template called Login.html:

   link rel=stylesheet type=text/css href=styles/base.css
media=screen /

When I go to the login page, the browser URL looks like the following:

   http://132.253.103.70:8080/daily/app/pages/Login

Note that daily is the name of the webapp, and app is the name of the
wicket application.

If I look at the source of the page in my browser, the stylesheet reference
has been modified to look like:

   link href=../../../styles/base.css rel=stylesheet type=text/css
media=screen/

It looks like this was resolved with one too many ../. Is this a bug or am
I doing something wrong in my configuration? Is there a better way to deal
with my stylesheets and other static resources that aren't explicitly part
of a component?

Thanks!
Matt
-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Accessing a static resource in my webapp dir

2007-05-15 Thread Igor Vaynberg

what version are you using? if you are using a recent trunk (1 day old)
please report this as a bug.

-igor


On 5/15/07, Matt Welch [EMAIL PROTECTED] wrote:


I have a stylesheet called base.css that sits in a directory called
styles that is in my base webapp directory. I have the following
stylesheet reference in an HTML template called Login.html:

link rel=stylesheet type=text/css href=styles/base.css
media=screen /

When I go to the login page, the browser URL looks like the following:

http://132.253.103.70:8080/daily/app/pages/Login

Note that daily is the name of the webapp, and app is the name of the
wicket application.

If I look at the source of the page in my browser, the stylesheet
reference has been modified to look like:

link href=../../../styles/base.css rel=stylesheet type=text/css
media=screen/

It looks like this was resolved with one too many ../. Is this a bug or
am I doing something wrong in my configuration? Is there a better way to
deal with my stylesheets and other static resources that aren't explicitly
part of a component?

Thanks!
Matt



-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Andrew Berman

It's mapped to /context/* and the HomePage class is mounted to /app, so the
url for the homepage is http://blah.com/context/app/HomePage.  Going
directly to http://blah.com/context redirects to
http://blah.com/context/app/HomePage

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


so wicket is mapped to /* but homepage is mounted to /app/homepage?

-igor


On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:

 I'm not doing any redirect using index.html and a meta redirect.  I just
 call blah.com/context and Wicket is doing the redirect to
 /app/homepage.  /app is what I use for the mount point.

 On 5/15/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  i dont think that is it. jsessionid is only appended when there is a
  session.
 
  when you hit blah.com/context you are probably hitting index.html that
  does a metaredirect to blah.com/context/app/homepage. so on the first
  hit to blah.com/context there is no session. now when you hit
  /app/home a session is created, and cookie is set.
 
  -igor
 
 
  On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:
  
   I'm going to debug it a bit more to see what's going on.  The
   jsessionid is not appended to the URL until Wicket performs a redirect 
from
   the context to the actual home page (e.g. from
   http://blah.com/context redirects to
   http://blah.com/context/app/HomePage), so I'm wondering if the
   redirect is doing something that's causing Tomcat to think it's a new
   session, thereby making the jsessionid in the URL not equal the one in the
   cookie.
  
   Eelco, I'll take a look at what you're saying too and see if I can
   reconfigure Tomcat as well.
  
   On 5/15/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
   
Also, sessions are managed by the app server, not by Wicket or
Spring
MVC. I had a problem a while ago losing sessions going from
foo.mydomain.com to bar.mydomain.com, and that only worked well
when I
configured Jetty's session manager to use .mydomain.com as it's
session domain. Maybe your problem is similar? Or even if it
isn't,
what I'm saying is that it is very unlikely Wicket or any other
framework is the bad guy as Wicket just uses the servlet API
as-is.
   
Eelco
   
   
On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
 can you look at the first request if the wicket session is
really
 pushed to the http session (so is the http session created?) you
can
 look at that in the set atribute of the session store

 On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:
  I think I found the crux of the problem.  When you first go to
the app, as
  I've mentioned, it puts the jsessionid in the URL.  Well, I
compared that
  sessionid to the one in the cookie created and they are
different!  That has
  to be the reason it creates a new session.  Now to figure out
why it's doing
  that.
 
  On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:
  
   Spring MVC does put the jsessionid in the URL.  What I don't
understand is
   that when coming into the Wicket app for the first time, it
goes to the
  home
   page fine with the jsessionid in the URL, and then I click
any link and
  all
   session attributes are gone.  Literally a brand new session
is created no
   matter what link I click.  However, once I click that next
link, all is
  fine
   and that second new session is the one that is used.  Just
doesn't make
  any
   sense.
  
   On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] 
wrote:
   
 Definitely not what I want, but it's the only thing that
   
works.  There's
 clearly a problem in how Wicket is getting the session
from the
cookie.  My
 Spring MVC app which uses the same WAR has no issues
pulling the
session
 info.
   
I don't really understand the problem though. Like Johan
said, the
first time a persistent session is made, Tomcat puts the
session id in
the URL as it doesn't know yet whether it can rely on
cookies (if I
understand correctly). Spring MVC might not do that for
the particular
things you test it for as it doesn't create a session? If
you would
use stateless pages Wicket wouldn't either.
   
Anyway, there have been discussions about jsessionid on
the lists
before, and typically it was from people worrying it would
mess up
search bots etc. If you are worried about that, don't, as
bots can
filter it. Also, the url is stable as it is not part of
the parameters
part (which comes after the question mark). It's a
universal Java app
server thingy, and Wicket has nothing to do with it other
than it
probably relies on the HttpSession sooner than e.g. model
2
frameworks.
   

[Wicket-user] Need to reload app in tomcat aftering adding a variant markup

2007-05-15 Thread Chris Colman
 This is true, but I understand Chris has a general need for markup
 reloading in production as well (though I haven't understood yet how
 Chris creates the markup files at runtime). 

Yes that is true - production reloading is a must. Our staff will create
new markup and add it - while the app is running. We can't afford to
restart the server each time a new markup is added.

 Or did I misunderstand that? And though disabled in deployment mode by
 default, he could enable it for his specific application.

Possibly that could work or perhaps the idea of explicitly calling a
'clear(markup)' method on the cache might work after a new markup has
been added. Perhaps it could analyse the markup to be cleared and also
clear any super class markups as well.

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page Expiration when first clicking AJAX

2007-05-15 Thread Igor Vaynberg

if your homepage is mounted to /app then the url should be /context/app. so
where does HomePage come from?

-igor


On 5/15/07, Andrew Berman [EMAIL PROTECTED] wrote:


It's mapped to /context/* and the HomePage class is mounted to /app, so
the url for the homepage is http://blah.com/context/app/HomePage.  Going
directly to http://blah.com/context redirects to
http://blah.com/context/app/HomePage

On 5/15/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 so wicket is mapped to /* but homepage is mounted to /app/homepage?

 -igor


 On 5/15/07, Andrew Berman  [EMAIL PROTECTED]  wrote:
 
  I'm not doing any redirect using index.html and a meta redirect.  I
  just call blah.com/context and Wicket is doing the redirect to
  /app/homepage.  /app is what I use for the mount point.
 
  On 5/15/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  
   i dont think that is it. jsessionid is only appended when there is a
   session.
  
   when you hit blah.com/context you are probably hitting index.htmlthat 
does a metaredirect to
   blah.com/context/app/homepage. so on the first hit to
   blah.com/context there is no session. now when you hit /app/home a
   session is created, and cookie is set.
  
   -igor
  
  
   On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:
   
I'm going to debug it a bit more to see what's going on.  The
jsessionid is not appended to the URL until Wicket performs a redirect 
from
the context to the actual home page (e.g. from
http://blah.com/context redirects to
http://blah.com/context/app/HomePage), so I'm wondering if the
redirect is doing something that's causing Tomcat to think it's a new
session, thereby making the jsessionid in the URL not equal the one in 
the
cookie.
   
Eelco, I'll take a look at what you're saying too and see if I can
reconfigure Tomcat as well.
   
On 5/15/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:

 Also, sessions are managed by the app server, not by Wicket or
 Spring
 MVC. I had a problem a while ago losing sessions going from
 foo.mydomain.com to bar.mydomain.com, and that only worked well
 when I
 configured Jetty's session manager to use .mydomain.com as it's
 session domain. Maybe your problem is similar? Or even if it
 isn't,
 what I'm saying is that it is very unlikely Wicket or any other
 framework is the bad guy as Wicket just uses the servlet API
 as-is.

 Eelco


 On 5/15/07, Johan Compagner [EMAIL PROTECTED] wrote:
  can you look at the first request if the wicket session is
 really
  pushed to the http session (so is the http session created?)
 you can
  look at that in the set atribute of the session store
 
  On 5/15/07, Andrew Berman [EMAIL PROTECTED]  wrote:
   I think I found the crux of the problem.  When you first go
 to the app, as
   I've mentioned, it puts the jsessionid in the URL.  Well, I
 compared that
   sessionid to the one in the cookie created and they are
 different!  That has
   to be the reason it creates a new session.  Now to figure
 out why it's doing
   that.
  
   On 5/14/07, Andrew Berman [EMAIL PROTECTED] wrote:
   
Spring MVC does put the jsessionid in the URL.  What I
 don't understand is
that when coming into the Wicket app for the first time,
 it goes to the
   home
page fine with the jsessionid in the URL, and then I click
 any link and
   all
session attributes are gone.  Literally a brand new
 session is created no
matter what link I click.  However, once I click that next
 link, all is
   fine
and that second new session is the one that is used.  Just
 doesn't make
   any
sense.
   
On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] 
 wrote:

  Definitely not what I want, but it's the only thing
 that
 works.  There's
  clearly a problem in how Wicket is getting the session
 from the
 cookie.  My
  Spring MVC app which uses the same WAR has no issues
 pulling the
 session
  info.

 I don't really understand the problem though. Like Johan
 said, the
 first time a persistent session is made, Tomcat puts the
 session id in
 the URL as it doesn't know yet whether it can rely on
 cookies (if I
 understand correctly). Spring MVC might not do that for
 the particular
 things you test it for as it doesn't create a session?
 If you would
 use stateless pages Wicket wouldn't either.

 Anyway, there have been discussions about jsessionid on
 the lists
 before, and typically it was from people worrying it
 would mess up
 search bots etc. If you are worried about that, don't,
 as bots can
 filter it. Also, the url is stable as it is not part 

[Wicket-user] Partial page rendering with AjaxSubmitButton

2007-05-15 Thread Mark van Leeuwen
I have a form on a page which I want to replace with another form when a
Next button is pressed. I want to do this with AJAX. The form should only be
replaced if there are no validation errors.

Two questions:
- the AjaxSubmitButton.onSubmit method is not being invoked when the button
is clicked. Should I expect it to be?
- assuming that it was invoked, how can can I replace the enclosing form
with a new form?

Mark
 

-
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. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user