Re: [Wicket-user] Wicket Real World Performance!

2007-06-22 Thread Igor Vaynberg

believe me, i know that. but hopefully the way i repsonded has cured at
least one person, no hard feelings :)

-igor


On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:



cool your jets mate... your never going to get rid of stupidity...


igor.vaynberg wrote:

 maybe if you wouldve bothered searching this list for performance info
you
 wouldve seen this topic is a beaten horse. it is very tiring answering
the
 same questions from every new user who do not bother searching for
 previous
 knowledge. especailly when they are not backed by something concrete.

 -igor


 On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:


 whoa, okay guys, slow down a second... we need to get something clear
 here...

 I am not smearing wicket, this is an impression I got when 5/5 wicket
 websites i visited were slow there is nothing wrong with that and
It
 was
 a perfectly natural judgement to draw.

 I apologise if it looked like I was attacking the project.

 I came here looking for advice from the veterans... and I definately
got
 it... in a crude form.. but never the less ... i got it...

 Thanks guys !





 igor.vaynberg wrote:
 
  and somehow you magically know that it is wicket that is slow and not
 the
  database of those webapplications? damn, i wish i had your tools :)
 
  -igor
 
  On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:
 
 
  Hey guys,
 
  i have been checking out a few sites using wicket at the moment on
the
  Wicket Wiki...
 
  And they all seem extremely slow... I was wondering if anyone knew
of
 any
  other fancy websites that are pretty advanced into wicket
development
  that
  I
  could check out, cause so far the real world performance i have seen
 from
  wicket has been dissapointing thus far :(
  --
  View this message in context:
 

http://www.nabble.com/Wicket-Real-World-Performance%21-tf3962027.html#a11243897
  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/Wicket-Real-World-Performance%21-tf3962027.html#a11244194
 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/Wicket-Real-World-Performance%21-tf3962027.html#a11246381
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

Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-22 Thread Eelco Hillenius
Yes. Markup inheritance is meant to go one-on-one with Java
inheritance which is limited to single parents. If people feel a
markup inheritance-like pattern would be useful, we could discuss it,
but it has to be a different kind of concept.

Eelco


On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 natural is an extremely subjective term. the core team does not entirely
 think so. but there is nothing stopping you from writing tag handlers to do
 exactly what you want.

 -igor



  On 6/21/07, rc.china [EMAIL PROTECTED] wrote:
 
  Panels and fragments are useful. As of page layout, however,
 wicket:extend
  / wicket:child is more natual than Panels and fragments.
 
  Some possible solutions is:
  1) use different tag values to differentiate:
  ...
  wicket:child childid=1/
  ...
  wicket:child childid=2/
  ...
  ==
  ...
  wicket:extend extendid=1
  ...
  /wicket:extend
  ...
  wicket:extend extendid=2
  ...
  /wicket:extend
  ...
 
  2)use wicket:extendN wicket:childN (N=1,2,3,...) instead of
  wicket:extend wicket:child
  ...
  wicket:child1/
  ...
  wicket:child2/
  ...
  ==
  ...
  wicket:extend1
  ...
  /wicket:extend1
  ...
  wicket:extend2
  ...
  /wicket:extend2
  ...
  --
  View this message in context:
 http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11245019
  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



-
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] Wicket Real World Performance!

2007-06-22 Thread Ballist1c

cure??? there is no cure... i promise you   :D 



igor.vaynberg wrote:
 
 believe me, i know that. but hopefully the way i repsonded has cured at
 least one person, no hard feelings :)
 
 -igor
 
 
 On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:


 cool your jets mate... your never going to get rid of stupidity...


 igor.vaynberg wrote:
 
  maybe if you wouldve bothered searching this list for performance info
 you
  wouldve seen this topic is a beaten horse. it is very tiring answering
 the
  same questions from every new user who do not bother searching for
  previous
  knowledge. especailly when they are not backed by something concrete.
 
  -igor
 
 
  On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:
 
 
  whoa, okay guys, slow down a second... we need to get something clear
  here...
 
  I am not smearing wicket, this is an impression I got when 5/5 wicket
  websites i visited were slow there is nothing wrong with that and
 It
  was
  a perfectly natural judgement to draw.
 
  I apologise if it looked like I was attacking the project.
 
  I came here looking for advice from the veterans... and I definately
 got
  it... in a crude form.. but never the less ... i got it...
 
  Thanks guys !
 
 
 
 
 
  igor.vaynberg wrote:
  
   and somehow you magically know that it is wicket that is slow and
 not
  the
   database of those webapplications? damn, i wish i had your tools :)
  
   -igor
  
   On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:
  
  
   Hey guys,
  
   i have been checking out a few sites using wicket at the moment on
 the
   Wicket Wiki...
  
   And they all seem extremely slow... I was wondering if anyone knew
 of
  any
   other fancy websites that are pretty advanced into wicket
 development
   that
   I
   could check out, cause so far the real world performance i have
 seen
  from
   wicket has been dissapointing thus far :(
   --
   View this message in context:
  
 
 http://www.nabble.com/Wicket-Real-World-Performance%21-tf3962027.html#a11243897
   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/Wicket-Real-World-Performance%21-tf3962027.html#a11244194
  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/Wicket-Real-World-Performance%21-tf3962027.html#a11246381
 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 

Re: [Wicket-user] State selection from imagemap

2007-06-22 Thread Eelco Hillenius
You could use the image map component (see the example in
org.apache.wicket.examples.linkomatic), but that would indeed result
in a lot of components for not that much gains.

I'm pretty sure that at least in Wicket 1.3 you don't need to put the
servlet context in your hrefs yourself, as Wicket will automatically
prepend that for you. Which version are you using, and did you try it
without?

Eelco


On 6/19/07, Tauren Mills [EMAIL PROTECTED] wrote:
 I'm wondering if I should wicketize this form, or leave it as a
 basic html form and would like to hear your thoughts.

 I have a map of the USA with an imagemap.  Clicking onto a state goes
 to another page that displays a list of metro areas in the state.

 img src=img/map.png usemap=#map border=0 alt=US Map/
 map id=map name=map
   area shape=poly alt=Maine
 coords=409,19,403,43,411,64,433,39,416,17 href=app/lookup/state/ME
 title=Maine/
   area shape=poly alt=New Hampshire coords=401,43,399,69,411,65
 href=app/lookup/state/NH title=New Hampshire/
   area shape=poly alt=Vermont
 coords=400,47,388,48,393,70,398,69 href=app/lookup/state/VT
 title=Vermont/
 ...
 /map

 I did this by using a bookmarkable page with pageparameters:

 mountBookmarkablePage(/lookup, StateLookupPage.class);

 ---

 public StateLookupPage(PageParameters params) {
 super(params);
 String state = (String) params.get(state);
 add(new Label(state,state));
 }

 The main issue I have with this is I have hardcoded my servlet context
 (app) into the HTML, so changing my web.xml will require lots of
 html edits.

 And I also want to have a drop down select of all states and have it
 get to the same place as clicking on the map.  The following form
 using either post or get doesn't work:

 form action=lookup method=post name=StateForm
 select name=state id=state
   option selected=selected value=Choose State.../option
   option value=ALAlabama/option
   option value=AKAlaska/option
   option value=AZArizona/option
 ...
 /select
 /form

 So my first thought is to make the form a wicket form with a wicket
 DropDownChoice component, but then I'm unclear of the best way to make
 the imagemap go to the same place.  There are about 70 polygons in the
 imagemap, and making them all wicket components seems overkill.  Or is
 that really the best way to deal with this?

 Thanks,
 Tauren

 -
 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] Form inside a modalWindow inside a Form :-/

2007-06-22 Thread Eelco Hillenius
I think the best thing you can do is somehow trying to really get it
reproducable and try to fit it in a quickstart or junit test and open
a JIRA issue for it.

Eelco


On 6/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi, i'm having an strange behavior in my application.
 i have a form with a listview inside and the items in this listview can be
 reordered using buttons (that's why the list is inside a form). In the
 form i have a link that opens a modalWindow to add a new element to my
 list (the link and the modal are defined as elements inside the form).
 This modalWindow contains a new form to complete the necesary information
 and a button to close the modal and add it to the original (reorderable)
 listview.
 The thing is that the 'second' form created inside the modal does not
 write the html correctly and thus the javascript fails with form has no
 properties.
 Using firebug i could find that the modal doesn't have the form tag
 inside, after the div defining the window it just have the all the
 inputs and selects, so when javascript is looking for it to make the
 submition, it fails.
 I added setOutputMarkupId(true) to all my involved components to check if
 i was missing something but still has the same issue.
 I think there is a bug in somewhere... what do you think? there's some
 workaround for this?

 thanks a lot.

 --
 D.


 -
 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] Wicket Real World Performance!

2007-06-22 Thread shumbola
Здравствуйте, Ballist1c.

Вы писали Friday, June 22, 2007, 5:32:27 AM:


 whoa, okay guys, slow down a second... we need to get something clear here...

 I am not smearing wicket, this is an impression I got when 5/5 wicket
 websites i visited were slow there is nothing wrong with that and It was
 a perfectly natural judgement to draw. 

 I apologise if it looked like I was attacking the project.

 I came here looking for advice from the veterans... and I definately got
 it... in a crude form.. but never the less ... i got it...

 Thanks guys !

I'm not veteran wicket user, but I'm going to use wicket for every
project I'll get. Recently I built a non-public payment service site
with wicket. The application was tested with jmeter and I was more
then happy with performance. On my toy test PC with Athlon XP 1800
(1.4GHz), 767Mb RAM, Java 1.4.2, Tomcat-5.5, Windows XP and Oracle 9i
I've got 200requests/sec and no drops/or errors. Actually it could do
more, but DB was the main bottleneck here. It is on production now,
and during peak hours it serves some 1000hits/s and we expect this
number will grow. Again, the main problem we will face will be
persistence layer (Persistence+DB).
I suggest you to build some prototype yourself (it is very easy with
wicket to build prototypes) and check the performance. Or check out
the threadtest project as guys suggested already and play with it.


 igor.vaynberg wrote:
 
 and somehow you magically know that it is wicket that is slow and not the
 database of those webapplications? damn, i wish i had your tools :)
 
 -igor
 
 On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:


 Hey guys,

 i have been checking out a few sites using wicket at the moment on the
 Wicket Wiki...

 And they all seem extremely slow... I was wondering if anyone knew of any
 other fancy websites that are pretty advanced into wicket development
 that
 I
 could check out, cause so far the real world performance i have seen from
 wicket has been dissapointing thus far :(
 --
 View this message in context:
 http://www.nabble.com/Wicket-Real-World-Performance%21-tf3962027.html#a11243897
 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

 
 shumbola  mailto:[EMAIL PROTECTED]


-
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] Wicket Real World Performance!

2007-06-22 Thread David Leangen

That's right. I've been afflicted, too. Look at some of the questions I
was asking today. Sigh.



On Thu, 2007-06-21 at 23:24 -0700, Ballist1c wrote:
 cure??? there is no cure... i promise you   :D 
 
 
 
 igor.vaynberg wrote:
  
  believe me, i know that. but hopefully the way i repsonded has cured at
  least one person, no hard feelings :)
  
  -igor
  
  
  On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:
 
 
  cool your jets mate... your never going to get rid of stupidity...
 
 
  igor.vaynberg wrote:
  
   maybe if you wouldve bothered searching this list for performance info
  you
   wouldve seen this topic is a beaten horse. it is very tiring answering
  the
   same questions from every new user who do not bother searching for
   previous
   knowledge. especailly when they are not backed by something concrete.
  
   -igor
  
  
   On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:
  
  
   whoa, okay guys, slow down a second... we need to get something clear
   here...
  
   I am not smearing wicket, this is an impression I got when 5/5 wicket
   websites i visited were slow there is nothing wrong with that and
  It
   was
   a perfectly natural judgement to draw.
  
   I apologise if it looked like I was attacking the project.
  
   I came here looking for advice from the veterans... and I definately
  got
   it... in a crude form.. but never the less ... i got it...
  
   Thanks guys !
  
  
  
  
  
   igor.vaynberg wrote:
   
and somehow you magically know that it is wicket that is slow and
  not
   the
database of those webapplications? damn, i wish i had your tools :)
   
-igor
   
On 6/21/07, Ballist1c [EMAIL PROTECTED] wrote:
   
   
Hey guys,
   
i have been checking out a few sites using wicket at the moment on
  the
Wicket Wiki...
   
And they all seem extremely slow... I was wondering if anyone knew
  of
   any
other fancy websites that are pretty advanced into wicket
  development
that
I
could check out, cause so far the real world performance i have
  seen
   from
wicket has been dissapointing thus far :(
--
View this message in context:
   
  
  http://www.nabble.com/Wicket-Real-World-Performance%21-tf3962027.html#a11243897
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/Wicket-Real-World-Performance%21-tf3962027.html#a11244194
   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/Wicket-Real-World-Performance%21-tf3962027.html#a11246381
  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/
  

Re: [Wicket-user] html wicket:id=html CSS

2007-06-22 Thread Juergen Donnerstag
I'll try my best to find some spare time to do it. Hopefully over the weekend.

I already tried to open your tar.gz with Winzip 10, unfortunately
winzip only comes up with an error. Could you please either zip them
or send them to me separately. Thanks.

Juergen

On 6/21/07, Jan Kriesten [EMAIL PROTECTED] wrote:

 hi,

 could someone verify that the given code doesn't work for him, too?

 i'm lost a bit in this matter.

 thanks!

 best regards, --- jan.



 -
 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] TreeTable with nodes that are not links + rows with alternate background colours

2007-06-22 Thread Eelco Hillenius
Did you try overriding #newLink, #newJunctionLink or #newNodeLink? I
don't really know the component, but it looks like you can return any
markup component you like there...

I think your best best is to browse around the code of the component
and it's superclasses and experiment a bit.

Eelco


I have no experience with the component, but it

On 6/17/07, howzat [EMAIL PROTECTED] wrote:

 Does any body have any ideas re the below from a few weeks ago?
 wicket: 1.2.6
 wicket-extensions: 1.2.6

 A couple of questions re TreeTable

 Is it possible to configure a TreeTable so its nodes are not links?
 So far, I have only found/tried
 tree.setLinkType(null)
 without achieving the desired effect.

 Is it possible to have rows with different background colours based on the
 value of fields in that row? (eg red if variance to budget is worse than
 -10%, green if variance to budget  +5%  etc...




 howzat wrote:
 
  Has anybody got any further thoughts on this?
 
 
  howzat wrote:
 
  wicket: 1.2.6
  wicket-extensions: 1.2.6
 
  A couple of questions re TreeTable
 
  Is it possible to configure a TreeTable so its nodes are not links?
  So far, I have only found/tried
  tree.setLinkType(null)
  without achieving the desired effect.
 
  Is it possible to have rows with different background colours based on
  the value of fields in that row? (eg red if variance to budget is worse
  than -10%, green if variance to budget  +5%  etc...
 
  PS Now that I've spent a few more hours looking at wicket, I must say
  that it is not always easy to work out the best (or, at least a good) way
  to do something (possibly partly down to lack of complete and/or up to
  date documentation), but once one works out how to do things, it's quite
  satisfying (in an OO and clever sort of way) and generally, very neat;
  the amount of reuse I have benefited from already just by using markup
  inheritance and panels has already covered the time I have put into
  learning (some of the) the basics.
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/TreeTable-with-nodes-that-are-not-links-%2B-rows-with-alternate-background-colours-tf3822476.html#a11162491
 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] Binding the Enter key with a button

2007-06-22 Thread David Leangen

I am indeed talking about the Go button in my form. It is providing
the correct behaviour.

Now, what I'm looking for is to allow the user to submit the form by
just hitting enter rather than having to click the Go button.

I thought that I would need to bind the enter key to the go button...
are you suggesting that there is a way of capturing the enter key and
binding it somehow to the form submission?


If there is, then that would be fine, too.

So I guess there's two ways of going about this:

 1. Bind enter to a button

 2. Capture enter and bind to form submission


Either way, I don't know how to do this. Can anybody provide any hints?


Thanks!
Dave





On Fri, 2007-06-22 at 10:05 +0530, Swaroop Belur wrote:
 Hi
 
 One solution but not the ideal one would be (assuming go is a submit
 button),
 to override the onSubmit of the form  and to perform the action which
 you would do in your Go.So when u hit enter form would be submitted 
 and action for go would be invoked.
 
 But may not what u r actally looking for
 
 
 
 On 6/22/07, David Leangen [EMAIL PROTECTED] wrote:
 
 I hope this isn't an obvious question again... I did try
 searching. ;-) 
 
 Could somebody kindly point me to some doc that explains how
 to bind a
 key to a form component?
 
 In this case, I want to bind the Enter key with my Go
 button.
 
 
 Thanks!
 
 
 
 
 
 -
 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] setBorderBodyContainer in 1.3

2007-06-22 Thread Juergen Donnerstag
This feature has not yet been backported to 1.3 the reason being that
we first need to backport all of the markup fragment/render changes.
That will not happen in 1.3.

yes, open a jira issue please.

Juergen

On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 open a jira issue please

 -igor



 On 6/21/07, Alberto Bueno [EMAIL PROTECTED] wrote:
  This problem was solved in the 2.0 version, but I don't how we can
  implement a solution in version 1.3...
  Because it's a very tipical situation if you are using borders...
  Waiting responses... :)
 
   Sorry if I'm mistaken, but I think this is related to an issue that I
 posted
   about here:
  
 http://www.nabble.com/Borders-Containing-Embedded-Components-tf3776704.html#a10679274
   previous post .
  
   I'm afraid that post didn't get any response, and I never solved it on
 my
   own...
  
   Severian.
  
 
 
 
 -
  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] Binding the Enter key with a button

2007-06-22 Thread Joe Toth
Hope this helps

http://www.nabble.com/forum/ViewPost.jtp?post=10675702framed=y


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Leangen
Sent: Friday, June 22, 2007 2:33 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Binding the Enter key with a button


I am indeed talking about the Go button in my form. It is providing
the correct behaviour.

Now, what I'm looking for is to allow the user to submit the form by
just hitting enter rather than having to click the Go button.

I thought that I would need to bind the enter key to the go button...
are you suggesting that there is a way of capturing the enter key and
binding it somehow to the form submission?


If there is, then that would be fine, too.

So I guess there's two ways of going about this:

 1. Bind enter to a button

 2. Capture enter and bind to form submission


Either way, I don't know how to do this. Can anybody provide any hints?


Thanks!
Dave





On Fri, 2007-06-22 at 10:05 +0530, Swaroop Belur wrote:
 Hi
 
 One solution but not the ideal one would be (assuming go is a submit
 button),
 to override the onSubmit of the form  and to perform the action which
 you would do in your Go.So when u hit enter form would be submitted 
 and action for go would be invoked.
 
 But may not what u r actally looking for
 
 
 
 On 6/22/07, David Leangen [EMAIL PROTECTED] wrote:
 
 I hope this isn't an obvious question again... I did try
 searching. ;-) 
 
 Could somebody kindly point me to some doc that explains how
 to bind a
 key to a form component?
 
 In this case, I want to bind the Enter key with my Go
 button.
 
 
 Thanks!
 
 
 
 

-
 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] Binding the Enter key with a button

2007-06-22 Thread Eelco Hillenius
Also, I think that Julian Klappenbach had some good ideas on how to
build in good key binding support in Wicket. Julian, are you reading
with us?

Eelco


On 6/21/07, Joe Toth [EMAIL PROTECTED] wrote:
 Hope this helps

 http://www.nabble.com/forum/ViewPost.jtp?post=10675702framed=y


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of David
 Leangen
 Sent: Friday, June 22, 2007 2:33 AM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Binding the Enter key with a button


 I am indeed talking about the Go button in my form. It is providing
 the correct behaviour.

 Now, what I'm looking for is to allow the user to submit the form by
 just hitting enter rather than having to click the Go button.

 I thought that I would need to bind the enter key to the go button...
 are you suggesting that there is a way of capturing the enter key and
 binding it somehow to the form submission?


 If there is, then that would be fine, too.

 So I guess there's two ways of going about this:

  1. Bind enter to a button

  2. Capture enter and bind to form submission


 Either way, I don't know how to do this. Can anybody provide any hints?


 Thanks!
 Dave





 On Fri, 2007-06-22 at 10:05 +0530, Swaroop Belur wrote:
  Hi
 
  One solution but not the ideal one would be (assuming go is a submit
  button),
  to override the onSubmit of the form  and to perform the action which
  you would do in your Go.So when u hit enter form would be submitted
  and action for go would be invoked.
 
  But may not what u r actally looking for
 
 
 
  On 6/22/07, David Leangen [EMAIL PROTECTED] wrote:
 
  I hope this isn't an obvious question again... I did try
  searching. ;-)
 
  Could somebody kindly point me to some doc that explains how
  to bind a
  key to a form component?
 
  In this case, I want to bind the Enter key with my Go
  button.
 
 
  Thanks!
 
 
 
 
 
 -
  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 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] [Fwd: Re: html wicket:id=html CSS]

2007-06-22 Thread Jan Kriesten

copy to the list, as sourceforge doesn't allow zip-attachments atm.


 Original Message 
Subject: Re: [Wicket-user] html wicket:id=html  CSS
Date: Fri, 22 Jun 2007 08:53:23 +0200
From: Jan Kriesten [EMAIL PROTECTED]


Hi Juergen,

 I'll try my best to find some spare time to do it. Hopefully over the weekend.

much appreciated, thank you! :-)

I attached a zip-file containing the example.

Best regards, --- Jan.



-
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] TreeTable with nodes that are not links + rows with alternate background colours

2007-06-22 Thread Matej Knopp
All you need to do is override newNodeLink imho. Also to change row
background color you'll need to tweak the styles and add attribute
modifier inside populateItem, it's not really trivial, but it's not a
rocket science as well.

Simple alternateive in 1.3 would be to call setEnabled(false) on the
links. Unfurtunately, this doesn't work for AjaxLink in 1.2. So what
you can do is this:

override newNodeLink:
protected MarkupContainer newNodeLink(MarkupContainer parent, String
id, final TreeNode node)
{
Link link = new Link(id) { public void onSubmit() { } };
link.setEnabled(false);
parent.add(link);
};  

This should give you disabled links.

-Matej

On 6/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Did you try overriding #newLink, #newJunctionLink or #newNodeLink? I
 don't really know the component, but it looks like you can return any
 markup component you like there...

 I think your best best is to browse around the code of the component
 and it's superclasses and experiment a bit.

 Eelco


 I have no experience with the component, but it

 On 6/17/07, howzat [EMAIL PROTECTED] wrote:
 
  Does any body have any ideas re the below from a few weeks ago?
  wicket: 1.2.6
  wicket-extensions: 1.2.6
 
  A couple of questions re TreeTable
 
  Is it possible to configure a TreeTable so its nodes are not links?
  So far, I have only found/tried
  tree.setLinkType(null)
  without achieving the desired effect.
 
  Is it possible to have rows with different background colours based on the
  value of fields in that row? (eg red if variance to budget is worse than
  -10%, green if variance to budget  +5%  etc...
 
 
 
 
  howzat wrote:
  
   Has anybody got any further thoughts on this?
  
  
   howzat wrote:
  
   wicket: 1.2.6
   wicket-extensions: 1.2.6
  
   A couple of questions re TreeTable
  
   Is it possible to configure a TreeTable so its nodes are not links?
   So far, I have only found/tried
   tree.setLinkType(null)
   without achieving the desired effect.
  
   Is it possible to have rows with different background colours based on
   the value of fields in that row? (eg red if variance to budget is worse
   than -10%, green if variance to budget  +5%  etc...
  
   PS Now that I've spent a few more hours looking at wicket, I must say
   that it is not always easy to work out the best (or, at least a good) way
   to do something (possibly partly down to lack of complete and/or up to
   date documentation), but once one works out how to do things, it's quite
   satisfying (in an OO and clever sort of way) and generally, very neat;
   the amount of reuse I have benefited from already just by using markup
   inheritance and panels has already covered the time I have put into
   learning (some of the) the basics.
  
  
  
 
  --
  View this message in context: 
  http://www.nabble.com/TreeTable-with-nodes-that-are-not-links-%2B-rows-with-alternate-background-colours-tf3822476.html#a11162491
  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


-
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] setBorderBodyContainer in 1.3

2007-06-22 Thread Igor Vaynberg

juergen, there are two of you in jira, which makes it hard to assign issues.
do you think you can work it out with asf infrastructure group to remove the
account you no longer use?

-igor


On 6/21/07, Juergen Donnerstag [EMAIL PROTECTED] wrote:


This feature has not yet been backported to 1.3 the reason being that
we first need to backport all of the markup fragment/render changes.
That will not happen in 1.3.

yes, open a jira issue please.

Juergen

On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 open a jira issue please

 -igor



 On 6/21/07, Alberto Bueno [EMAIL PROTECTED] wrote:
  This problem was solved in the 2.0 version, but I don't how we can
  implement a solution in version 1.3...
  Because it's a very tipical situation if you are using borders...
  Waiting responses... :)
 
   Sorry if I'm mistaken, but I think this is related to an issue that
I
 posted
   about here:
  

http://www.nabble.com/Borders-Containing-Embedded-Components-tf3776704.html#a10679274
   previous post .
  
   I'm afraid that post didn't get any response, and I never solved it
on
 my
   own...
  
   Severian.
  
 
 
 

-
  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] Binding the Enter key with a button

2007-06-22 Thread David Leangen

Ok, thanks everybody!

So, am I to assume that the only way to do this is through the use of
Javascript?


If that's so, then I'll do as suggested in the previous posts.

I'll post back with the results of what I find, though if it's more
complicated than I thought, I may have to put it aside for now.


Thanks again!




On Fri, 2007-06-22 at 08:53 +0200, Erik van Oosten wrote:
 Hi David,
 
 There are some Javascript tricks lying around on the Internet.
 Seach on google with submitting form with enter, you'll find plenty of 
 answers :)
 
 Erik.
 
 
 David Leangen wrote:
  I hope this isn't an obvious question again... I did try searching. ;-)
 
  Could somebody kindly point me to some doc that explains how to bind a
  key to a form component?
 
  In this case, I want to bind the Enter key with my Go button.
 
 
  Thanks!
 
 

 


-
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] How to best deffend models and entity classes

2007-06-22 Thread severian

I'm not sure I fully understand your situation, but if your wicket front end
is obtaining xml-serialised versions of business objects (or data transfer
objects or whatever), can you not generate a simple Java version from the
xml schema?  Then perhaps your colleagues objections about having to redo
the objects will disappear...

-- 
View this message in context: 
http://www.nabble.com/How-to-best-deffend-models-and-entity-classes-tf3960566.html#a11247700
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] Form inside a modalWindow inside a Form :-/

2007-06-22 Thread Frank Bille

On 6/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi, i'm having an strange behavior in my application.
i have a form with a listview inside and the items in this listview can be
reordered using buttons (that's why the list is inside a form). In the
form i have a link that opens a modalWindow to add a new element to my
list (the link and the modal are defined as elements inside the form).



Why is the modal component defined inside the form? Couldn't you just move
it out of the form?

Frank
-
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] Has something changed in markup inheritance?

2007-06-22 Thread Peter Thomas

Hi,

I got the latest 1.3.0-SNAPSHOT through Maven yesterday and all my pages
that use markup inheritance stopped working.  My login page which does not
use markup inheritance works and then after submitting that ito goes to the
home page, nothing works.

Thing is I tried a very simple quickstart with wicket:child/ and
wicket:extend and markup inheritance works fine.  So this looks like
something subtle that changed recently.  I backed up the wicket part of my
maven repository, and the timestamp of the most recent snapshot for me where
things were working fine is 2007-06-06.

So the only thing I guess I am doing differently from a quickstart is some
bookmarkable urls, custom session factory, custom authorization strategy and
custom i18n StringResourceLoader.  Do give me some pointers where I should
debug etc.

The error I get is:

===

WicketMessage: Markup of type 'html' for component '
info.jtrac.wicket.DashboardPage' not found. Enable debug messages for
org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]

Root cause:

org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance
of container
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
at
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
(InheritedMarkupMarkupLoader.java:99)
at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(
InheritedMarkupMarkupLoader.java:65)
at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
DefaultMarkupLoader.java:56)
at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
MarkupCache.java:462)
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:282)
at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java
:188)
at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
MarkupContainer.java:331)
at org.apache.wicket.markup.html.WebPage.onBeforeRender(WebPage.java:363)
at org.apache.wicket.Component.beforeRender(Component.java:846)
at org.apache.wicket.Page.renderPage(Page.java:885)

==
Thanks,

Peter.
-
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] No way to customize how autolinks look like

2007-06-22 Thread Serge P. Nekoval
Hello,

We have markup which displays currently visited(disabled) links in a
special way.
By default, if you use wicket:link, autolinks for current page will look
like:
spanemCurrent Page/em/span

I need to make them look like:
a class=selectedCurrent Page/a

This is just a design rule (application-wide), enforced by our CSS.

So as I understand from reading sources for AutoLinkResolver, the way Wicket
disables links is:
1. a is converted to span
2. href and onclick attributes removed.

I need to:
1. Leave a intact.
2. Remove href and onclick.
3. Add class=selected.

Unfortunately, I don't see any ways of doing that, because these links are
AutolinkBookmarkablePageLinks, this class is final and cannot be extended
(and it seems to be tricky to customize AutolinkResolver as well)

For now, I've decided to go on without wicket:link and added my own link
class which extends BookmarkablePageLink and overrides disableLink.
However, I don't really like it and it looks messy: you have to bind all of
them to wicket:id and should not forget to add them to the page. It would be
much easier to use wicket:link.

Particularly, how about adding some feature to customize/extend
AutolinkBookmarkablePageLinks, on application level?

Regards,
Sergey.


-
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] Form inside a modalWindow inside a Form :-/

2007-06-22 Thread Matej Knopp
What wicket version are you using? Nested forms are only supported in
1.3. If you are using modal window with 1.2, the only reliable way to
use forms is putting a page inside modal window.

-Matej

On 6/22/07, Frank Bille [EMAIL PROTECTED] wrote:
 On 6/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED]  wrote:
  Hi, i'm having an strange behavior in my application.
  i have a form with a listview inside and the items in this listview can be
  reordered using buttons (that's why the list is inside a form). In the
  form i have a link that opens a modalWindow to add a new element to my
  list (the link and the modal are defined as elements inside the form).
 

 Why is the modal component defined inside the form? Couldn't you just move
 it out of the form?

 Frank

 -
 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] modifying component from IComponentOnBeforeRenderListener

2007-06-22 Thread Matej Knopp
That's weird. You should be able to call setRequired from that
listener, that's the point why i have introduced it!

-Matej

On 6/22/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
 I'm *still* trying to find a way to modify a component *when the model is
 bound*.  The new IComponentOnBeforeRenderListener seems
 close, but I can't *modify* the component since it's already started the
 rendering cycle.  I'm trying to call Component.setRequired(true) on the
 component, and that throws an exception right now.

 for a more exact usecase (and even a unit test!), check out the
 wicketstuff-hibernate codebase.  The test is currently disabled to not break
 the build...
 http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/test/java/org/wicketstuff/hibernate/HibernateAnnotationComponentInstantiaionListenerTest.java?revision=2456view=markup

 Again, my goal is to have an *application wide* hook for when the model is
 bound on *any* component.  I like the direction of
 IComponentInstantiationListener and
 IComponentOnBeforeRenderListener.  Maybe just need to
 introduce an IComponentOnModelBoundListener?

 Ryan


 -
 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] Copenhagen Wicket Users Group - interested?

2007-06-22 Thread Nino Saturnino Martinez Vazquez Wael
I'd prefer a meeting in work hours, if possible else we can just do it 
after hours..

My weekends are totally booked though...

I could arrange something at jayway if we wanted to?

regards Nino

Frank Bille wrote:
 Sounds good. Do you guys think we should try to find a date soon (like 
 in early july) or should we wait to august. I have time to arrange 
 something in august, but not in july.

 Would you prefer go-home meetings (weekdays after work) or weekends?

 Frank


 On 6/20/07, *Flemming Boller* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 On 6/20/07, *Nino Saturnino Martinez Vazquez Wael*
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 So I guess we should be some where above the minumum limit:)

 What topics are people interested in hearing about? 


 Perhabs we could start up and discuss about some of the  projects
 we have used Wicket in?

 And I think a sure point of interest is the usage of the IModel in
 Wicket and how it can be used.

 I have done some testing in Wicket combined with spring so I could
 contribute with my small knowledge :-)

 /Flemming

 I would really like to here something about testing with wicket.



 regards Nino

 Flemming Boller wrote:
  Hello
 
  I would like to show up also.
 
  I come from Borup, but work in copenhagen.
 
  Perhabs I can persuade some of my collegues to show up also ;-)
 
  /Flemming
 
  On 6/18/07, *Nino Saturnino Martinez Vazquez Wael*
   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  Yup better be late aug then, so we dont run into my
 vacation..
  I've held
  a couple of getting started wicket things now..
 
  This should defiantly attract some people(it's like a
 free getting
  started with wicket course...:))...
 
  regards Nino
 
  Frank Bille wrote:
   Yeah, perhaps we could start out as an
 introduction/getting-started
   thingy for a go-home-meeting or something. I don't have
 the time to
   arrange a lot right now, but perhaps in aug.
  
   Frank
  
   On 6/18/07, *Nino Saturnino Martinez Vazquez Wael*
[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
  
   We are 2 guys so far:) Guessing that we need at
 least 5 to
  make it
   happend?
  
   regards Nino
  
   Nino Saturnino Martinez Vazquez Wael wrote:
Aha:)
   
Then we just need some people to sign up...:)
   
regards Nino
   
Frank Bille wrote:
   
Was just thinking the same :)
   
I also think we can borrow a room at Avaleo (ITU's
  meeting rooms).
   
Frank
   
   
On 6/15/07, *Nino Saturnino Martinez Vazquez Wael *
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
   
Hi Inspired by Al im writing this mail.
   
I think we should be enough people to make a
 group,
  however
   im not
certain.
   
So please reply to this mail if interested.
   
Jayway will gladly host the group, providing
 we arent
  above 15
peeps or
so(we havent got room for more:))
   
regards Nino
   
   
  
 
 
 

Re: [Wicket-user] Has something changed in markup inheritance?

2007-06-22 Thread Peter Thomas

Ok I think the problem is related to the ReloadingWicketFilter which I was
extending and using.  When I remove this, things are fine.

So my conclusion is that latest ReloadingWicketFilter has problems for pages
using Markup inheritance.

Thanks,

Peter.

On 6/22/07, Peter Thomas [EMAIL PROTECTED] wrote:


Hi,

I got the latest 1.3.0-SNAPSHOT through Maven yesterday and all my pages
that use markup inheritance stopped working.  My login page which does not
use markup inheritance works and then after submitting that ito goes to the
home page, nothing works.

Thing is I tried a very simple quickstart with wicket:child/ and
wicket:extend and markup inheritance works fine.  So this looks like
something subtle that changed recently.  I backed up the wicket part of my
maven repository, and the timestamp of the most recent snapshot for me where
things were working fine is 2007-06-06.

So the only thing I guess I am doing differently from a quickstart is some
bookmarkable urls, custom session factory, custom authorization strategy and
custom i18n StringResourceLoader.  Do give me some pointers where I should
debug etc.

The error I get is:

===

WicketMessage: Markup of type 'html' for component '
info.jtrac.wicket.DashboardPage' not found. Enable debug messages for
org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]

Root cause:

org.apache.wicket.WicketRuntimeException: Parameter clazz must be instance
of container
at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
at
org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
(InheritedMarkupMarkupLoader.java:99)
at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(
InheritedMarkupMarkupLoader.java:65)
at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
DefaultMarkupLoader.java:56)
at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
MarkupCache.java:462)
at org.apache.wicket.markup.MarkupCache.getMarkup (MarkupCache.java:282)
at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java
:188)
at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
MarkupContainer.java:331)
at org.apache.wicket.markup.html.WebPage.onBeforeRender (WebPage.java:363)
at org.apache.wicket.Component.beforeRender(Component.java:846)
at org.apache.wicket.Page.renderPage(Page.java:885)

==
Thanks,

Peter.

-
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] London Wicket Users Group, July 3rd - interested?

2007-06-22 Thread Jan Stette

I would very much like to attend, but I'm out of the country on that date.
I hope there will be more such gatherings in the future though!

Jan


On 14/06/07, Al Maw [EMAIL PROTECTED] wrote:



Hello everyone,

As Wicket grows in popularity, we bump into increasing numbers of UK
users. We think there are enough of you out there to set up a
London-based users group, so this e-mail is to gauge interest in that.

We're proposing an initial meet on Tuesday 3rd July in a reasonably
central location. Although I'm sure there will be plenty of room for
having a pint and a chat, we'd also like to bring some real value to
people, so are proposing to kick off with a couple of short talks.

There will probably be an introductory talk and a more advanced one.
Topics are yet to be decided - please tell us if you have any ideas on
what you'd like covering, or if would like to contribute a short talk,
presentation, demo or whatever else.

For example, we could cover:

Beginner - Aimed at new users; basic Models and validation.
Some sprinklings of AJAX.

Advanced - Implementing custom form validators, invoking them using
AJAX, using CSS component highlighting for errors, making
it all automatic for a given Form.

If any of that sounds like your kind of thing, please tell us!

If enough people are interested to make this a goer, we'll organise a
venue and sign-up list some time next week. Just hit reply and post a
yes please or similar on this thread.


Best regards,

Al

--
Alastair Maw
Wicket-biased blog at http://herebebeasties.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] wicket markup inside javascript ?

2007-06-22 Thread Matthieu Casanova
2007/6/19, Gerolf Seitz [EMAIL PROTECTED]:
 take a look at the class
 org.apache.wicket.extensions.yui.calendar.DatePicker (in
 wicket-datetime)
  there is the following statement in line 183

 TextTemplateHeaderContributor.forJavaScript(DatePicker.class,
 DatePicker.js,

 Model.valueOf(variables)).renderHead(response);

  this does the following:
  it takes the file DatePicker.js, which wicket finds relativ to the location
 of DatePicker.class and substitues every ${VARIABLENAME} text it can find in
 DatePicker.js with the value mapped to the key VARIABLENAME in the Map
 variables.

  1)
  so you might want to put the javascript in a file.
  the line would look like:
  var myvar = '${myvalue}';

  2)
  let the component (or behaviour) implement IHeaderContributor and implement
 the renderHead method like the following

  2.a)
  put the key/value in a map:
  Map variables = new HashMap();
  variables.put(myvalue, foo);

  2.b)
  put this statement after all variables have been put in the map
  TextTemplateHeaderContributor.forJavaScript(MyClass.class,
 MyScript.js,

 Model.valueOf(variables)).renderHead(response);

Thanks, in fact this is not exactly what I needed but it gave me some
inspiration. My javascript code was in a loop so I wanted to apply a
template to the content of a tag.
Here is what I did, it works fine, I'm not completely happy with my
test on the model, but I cannot find a model that returns the content
of the tag that is in the template

public class TemplateLabel extends Label
{
private Map variables;

// some constructors ...


protected void onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag)
{
IModel iModel = getModel();
String objectAsString;
if (iModel == null)
{
MarkupElement element = markupStream.get();
objectAsString = element.toString();
}
else
{
objectAsString = getModelObjectAsString();
}
MapVariableInterpolator newContent = new
MapVariableInterpolator(objectAsString, variables);
replaceComponentTagBody(markupStream, openTag, 
newContent.toString());
}
}

Matthieu

-
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] [OT] Wicket Real World Performance!

2007-06-22 Thread Gwyn Evans
On Friday, June 22, 2007, 7:33:40 AM, C. [EMAIL PROTECTED] wrote:

 Igor Vaynberg wrote:
 believe me, i know that. but hopefully the way i repsonded has cured at
 least one person, no hard feelings :)
 I'm mostly just read-only on this list and not able to contribute as 
 much useful bits as others, but since this thread is gone way OT I don't
 mind hijacking it.

 It would very much help myself and I'm sure many others if everyone 
 could attempt to cut down on the top posting.  There's usually a setting
 that handles the default reply-to behavior.

That's a blast from the past - not many would believe just how far
back, though!

I don't want to get into a pro's  con's discussion, but the fact is
that while I'm using The Bat to reply, I'll use bottom-posting but
when I (and more importantly, the more knowledgable commiters) reply,
the chances are that we'd be using GMail, which doesn't have the
option to set it as a default position but does have significant
advantages for this sort of list.

As such, I believe that I'm afraid that you're just going to have to
accept that as a lost cause, here at least! :-)

/Gwyn


-
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] [OT] Wicket Real World Performance!

2007-06-22 Thread C. Bergström
Gwyn Evans wrote:
 On Friday, June 22, 2007, 7:33:40 AM, C. [EMAIL PROTECTED] wrote:

   
 Igor Vaynberg wrote:
 
 believe me, i know that. but hopefully the way i repsonded has cured at
 least one person, no hard feelings :)
   
 I'm mostly just read-only on this list and not able to contribute as 
 much useful bits as others, but since this thread is gone way OT I don't
 mind hijacking it.
 

   
 It would very much help myself and I'm sure many others if everyone 
 could attempt to cut down on the top posting.  There's usually a setting
 that handles the default reply-to behavior.
 

 That's a blast from the past - not many would believe just how far
 back, though!

 I don't want to get into a pro's  con's discussion, but the fact is
 that while I'm using The Bat to reply, I'll use bottom-posting but
 when I (and more importantly, the more knowledgable commiters) reply,
 the chances are that we'd be using GMail, which doesn't have the
 option to set it as a default position but does have significant
 advantages for this sort of list.

 As such, I believe that I'm afraid that you're just going to have to
 accept that as a lost cause, here at least! :-)
It's not a blast from the past at all.. Many lists I'm on will as 
politely as possible ask those new to the list not to top-post.  I 
didn't realize that the gmail web interface was so broken, but in a vain 
attempt to find a solution, I also found this [0] .  You're correct 
though that nearly all of the most knowledgeable and informative posters 
are top-posting unfortunately.  In the reply section ^end and backspace 
was the fastest way I could do a bottom post reply.

Cheers,

Christopher


[0] http://css-discuss.incutio.com/?page=GmailAndCssDiscuss

-
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] Copenhagen Wicket Users Group - interested?

2007-06-22 Thread Flemming Boller

Great idea with the calendar!

It is the same with me, after 16-17 is the best for me too.


/Flemming

On 6/22/07, Frank Bille [EMAIL PROTECTED] wrote:


On 6/22/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:

 I've created a public google calendar for us:

 
http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com


 And entered your proposition Flemming. It looks ok for me.


Cool, thx.

I normally can't meet before 16-17. So it's either after 4 or in the
weekends.

Frank

-
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] Copenhagen Wicket Users Group - interested?

2007-06-22 Thread Frank Bille

On 6/22/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
wrote:


I've created a public google calendar for us:


http://www.google.com/calendar/embed?src=7mkimsnp84i09nh48u5ju59pqg%40group.calendar.google.com

And entered your proposition Flemming. It looks ok for me.



Cool, thx.

I normally can't meet before 16-17. So it's either after 4 or in the
weekends.

Frank
-
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] Moving mailing list?

2007-06-22 Thread Reinout van Schouwen
Op woensdag 20-06-2007 om 17:32 uur [tijdzone -0700], schreef Eelco
Hillenius:

 Yeah, we should do that soon. We'll get to that within a few weeks hopefully.

Please don't forget to update the Gmane gmane.comp.java.wicket.*
newsgroup hierarchy too. Thanks. :)

regards,

-- 
Reinout van Schouwen




-
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] Use of Session

2007-06-22 Thread Matthieu Casanova
Hi, I'm not familiar with wicket sessions. I understand that I can
create my own session object that extends the WebSession, and that
will have some fields containing my sessions datas. In that case I
have to replace the ISessionFactory of my application.
The other choice to store datas in the Session is to use the
getMetaData and setMetaData methods of WebSession ?
What is the best choice ?
thanks

Matthieu

-
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] modifying component from IComponentOnBeforeRenderListener

2007-06-22 Thread Ryan Sonnek

it should be pretty easy to update the wicketstuff-hibernate project to
verify this is broken.  how should i proceed with this issue?

On 6/22/07, Matej Knopp [EMAIL PROTECTED] wrote:


That's weird. You should be able to call setRequired from that
listener, that's the point why i have introduced it!

-Matej

On 6/22/07, Ryan Sonnek [EMAIL PROTECTED] wrote:
 I'm *still* trying to find a way to modify a component *when the model
is
 bound*.  The new IComponentOnBeforeRenderListener seems
 close, but I can't *modify* the component since it's already started the
 rendering cycle.  I'm trying to call Component.setRequired(true) on the
 component, and that throws an exception right now.

 for a more exact usecase (and even a unit test!), check out the
 wicketstuff-hibernate codebase.  The test is currently disabled to not
break
 the build...

http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/test/java/org/wicketstuff/hibernate/HibernateAnnotationComponentInstantiaionListenerTest.java?revision=2456view=markup

 Again, my goal is to have an *application wide* hook for when the model
is
 bound on *any* component.  I like the direction of
 IComponentInstantiationListener and
 IComponentOnBeforeRenderListener.  Maybe just need to
 introduce an IComponentOnModelBoundListener?

 Ryan



-
 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] Binding the Enter key with a button

2007-06-22 Thread Nino Saturnino Martinez Vazquez Wael
Actually I was just about to write a mail about starting a wicket stuff 
contrib on this, but did not have time for it this morning, as I was 
busy trying to fix a problem on the gmap contrib.

I'll continue this on the dev list, for now i'll create a svn repo for 
1.3 on stuff svn.

it's gonna be called wicket-contrib-input-events (handling for keyevents 
mouseevents), and I'll be building for jdk 1.5.

regards Nino

Eelco Hillenius wrote:
 Also, I think that Julian Klappenbach had some good ideas on how to
 build in good key binding support in Wicket. Julian, are you reading
 with us?

 Eelco


 On 6/21/07, Joe Toth [EMAIL PROTECTED] wrote:
   
 Hope this helps

 http://www.nabble.com/forum/ViewPost.jtp?post=10675702framed=y


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of David
 Leangen
 Sent: Friday, June 22, 2007 2:33 AM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Binding the Enter key with a button


 I am indeed talking about the Go button in my form. It is providing
 the correct behaviour.

 Now, what I'm looking for is to allow the user to submit the form by
 just hitting enter rather than having to click the Go button.

 I thought that I would need to bind the enter key to the go button...
 are you suggesting that there is a way of capturing the enter key and
 binding it somehow to the form submission?


 If there is, then that would be fine, too.

 So I guess there's two ways of going about this:

  1. Bind enter to a button

  2. Capture enter and bind to form submission


 Either way, I don't know how to do this. Can anybody provide any hints?


 Thanks!
 Dave





 On Fri, 2007-06-22 at 10:05 +0530, Swaroop Belur wrote:
 
 Hi

 One solution but not the ideal one would be (assuming go is a submit
 button),
 to override the onSubmit of the form  and to perform the action which
 you would do in your Go.So when u hit enter form would be submitted
 and action for go would be invoked.

 But may not what u r actally looking for



 On 6/22/07, David Leangen [EMAIL PROTECTED] wrote:

 I hope this isn't an obvious question again... I did try
 searching. ;-)

 Could somebody kindly point me to some doc that explains how
 to bind a
 key to a form component?

 In this case, I want to bind the Enter key with my Go
 button.


 Thanks!





   
 -
 
 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 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 

Re: [Wicket-user] Use of Session

2007-06-22 Thread Maurice Marrink
imo your best option is to override the newSession method in
Application and use your own custom session as it allows you to get
your objects back without casting, as you would have to with metadata,
and it allows you to do do some detach logic (if you need to).
Alternatively you could use the requestcycle in the same way.

Maurice

On 6/22/07, Matthieu Casanova [EMAIL PROTECTED] wrote:
 Hi, I'm not familiar with wicket sessions. I understand that I can
 create my own session object that extends the WebSession, and that
 will have some fields containing my sessions datas. In that case I
 have to replace the ISessionFactory of my application.
 The other choice to store datas in the Session is to use the
 getMetaData and setMetaData methods of WebSession ?
 What is the best choice ?
 thanks

 Matthieu

 -
 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] Accessing HttpSession attributes

2007-06-22 Thread Kees de Kooter
 Yes, indeed it does. Good catch. So you do need to get to the
 httpsession directly after all. Which I guess is a bit safer.

 Eelco


OK. So how am I going to get to the HttpSession directly?

-
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] Use of Session

2007-06-22 Thread Thies Edeling
shameless plug: http://blog.ehour.nl/index.php/archives/14
:)

Matthieu Casanova wrote:
 Hi, I'm not familiar with wicket sessions. I understand that I can
 create my own session object that extends the WebSession, and that
 will have some fields containing my sessions datas. In that case I
 have to replace the ISessionFactory of my application.
 The other choice to store datas in the Session is to use the
 getMetaData and setMetaData methods of WebSession ?
 What is the best choice ?
 thanks

 Matthieu

 -
 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] Accessing HttpSession attributes

2007-06-22 Thread Timo Rantalaiho
On Fri, 22 Jun 2007, Kees de Kooter wrote:
 OK. So how am I going to get to the HttpSession directly?

Something like ((WebRequest)getRequest).
getHttpServletRequest().getSession() . Typically to find this
kind of things it's a good idea to get a relevant object 
(webSession or WebRequest in this case) and then just use the
IDE autocomplete to see what kind of methods they have.

- Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
This SF.net email is sponsored by DB2 Express
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] [announce] Apache Wicket

2007-06-22 Thread Patrick Angeles

Congratz guys. This news will certainly turn some heads in your direction...
-
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] Use of Session

2007-06-22 Thread Johan Compagner

you should really create your own session.
Usage of the metadata things should really be avoided for that kind of data.
I almost could say. don't use meta data at all, its a wicket internal thing
to store quickly markers and stuff like that.

johan


On 6/22/07, Matthieu Casanova [EMAIL PROTECTED] wrote:


Hi, I'm not familiar with wicket sessions. I understand that I can
create my own session object that extends the WebSession, and that
will have some fields containing my sessions datas. In that case I
have to replace the ISessionFactory of my application.
The other choice to store datas in the Session is to use the
getMetaData and setMetaData methods of WebSession ?
What is the best choice ?
thanks

Matthieu

-
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] Has something changed in markup inheritance?

2007-06-22 Thread Eelco Hillenius
Could you describe the problems in a JIRA issue? Thanks.

Eelco


On 6/22/07, Peter Thomas [EMAIL PROTECTED] wrote:
 Ok I think the problem is related to the ReloadingWicketFilter which I was
 extending and using.  When I remove this, things are fine.

 So my conclusion is that latest ReloadingWicketFilter has problems for pages
 using Markup inheritance.

 Thanks,

 Peter.


 On 6/22/07, Peter Thomas [EMAIL PROTECTED] wrote:
  Hi,
 
  I got the latest 1.3.0-SNAPSHOT through Maven yesterday and all my pages
 that use markup inheritance stopped working.  My login page which does not
 use markup inheritance works and then after submitting that ito goes to the
 home page, nothing works.
 
  Thing is I tried a very simple quickstart with wicket:child/ and
 wicket:extend and markup inheritance works fine.  So this looks like
 something subtle that changed recently.  I backed up the wicket part of my
 maven repository, and the timestamp of the most recent snapshot for me where
 things were working fine is 2007-06-06.
 
  So the only thing I guess I am doing differently from a quickstart is some
 bookmarkable urls, custom session factory, custom authorization strategy and
 custom i18n StringResourceLoader.  Do give me some pointers where I should
 debug etc.
 
  The error I get is:
 
  ===
 
 
  WicketMessage: Markup of type 'html' for component
 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for
 org.apache.wicket.util.resource to get a list of all filenames tried:
  [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
 
  Root cause:
 
  org.apache.wicket.WicketRuntimeException: Parameter clazz
 must be instance of container
  at
 org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
  at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:99)
  at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:65)
  at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:56)
  at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
  at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:462)
  at org.apache.wicket.markup.MarkupCache.getMarkup
 (MarkupCache.java:282)
  at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:188)
  at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:331)
  at org.apache.wicket.markup.html.WebPage.onBeforeRender
 (WebPage.java:363)
  at
 org.apache.wicket.Component.beforeRender(Component.java:846)
  at org.apache.wicket.Page.renderPage(Page.java:885)
 
  ==Thanks,
 
  Peter.
 


 -
 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] Use of Session

2007-06-22 Thread Matthieu Casanova
2007/6/22, Johan Compagner [EMAIL PROTECTED]:
 you should really create your own session.
 Usage of the metadata things should really be avoided for that kind of data.
 I almost could say. don't use meta data at all, its a wicket internal thing
 to store quickly markers and stuff like that.

Thanks everybody, now I'm sure that creating my own session is the
good choice. In fact I found the use of those metadata not easy and
nice so having my session is perfect for me

Matthieu

-
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] Multiple wicket:child tags in the same page

2007-06-22 Thread Eelco Hillenius
On 6/22/07, Scott Swank [EMAIL PROTECTED] wrote:
 I've often seen folk want what I see as abstract tags that can then
 be implemented by subclasses.  The way I've handled that for our
 application is by creating an abstract component (say it's a page)
 with div tags with appropriate wicket:ids.

 public class BasePage extends WebPage
 {
   public BasePage()
   {
 add(buildFoo(foo));
 add(buildBar(bar));
   }

   public abstract Panel buildFoo(String id);
   public abstract Component buildBar(String id);
 }

 Then subclass appropriately.

Yeah, that something we use a lot here as well.

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] How to best deffend models and entity classes

2007-06-22 Thread Igor Vaynberg

or create models that bind to xml, something like

class XmlPropertyModel(String xml, String path) extends
AbstractReadOnlyModel {
 Object getObject() { return XmlUtils.getPath(xml, path); }
}

add(new TextField(foo, new XmlPropertyModel(xml, address.street));

also create anl XmlCompoundPropertyModel(String xml) and you can do add(new
TextField(address.street));

wicket can bind to anything, not just pojos.

-igor


On 6/22/07, severian [EMAIL PROTECTED] wrote:



I'm not sure I fully understand your situation, but if your wicket front
end
is obtaining xml-serialised versions of business objects (or data transfer
objects or whatever), can you not generate a simple Java version from the
xml schema?  Then perhaps your colleagues objections about having to
redo
the objects will disappear...

--
View this message in context:
http://www.nabble.com/How-to-best-deffend-models-and-entity-classes-tf3960566.html#a11247700
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] Custom request listener (wicket 1.2.x)

2007-06-22 Thread Paolo Di Tommaso

The quick start was in the included email, anyway here it is again ..

public interface IHelloListener extends IRequestListener
{
   public static final RequestListenerInterface INTERFACE = new
RequestListenerInterface(
   IHelloListener.class);

   void onHello();
}


public class HelloWorld extends WicketExamplePage implements IHelloListener
{
   public HelloWorld()
   {
   add(new Label(message, Hello World!));
   WebMarkupContainer link = new WebMarkupContainer(link);
   link.add(new SimpleAttributeModifier(href,
RequestCycle.get().urlFor(this,
IHelloListener.INTERFACE)));
   add(link);
   }

   public void onHello()
   {
   RequestCycle.get().setRequestTarget(new IRequestTarget()
   {
   public void detach(RequestCycle requestCycle)
   {
   }

   public void respond(RequestCycle requestCycle)
   {
   requestCycle.getResponse
().write(htmlbodyHELLO!/body/html);
   }
   });
   }
}

The problem seems that it cannot work if the implementing listener is the
page itself. But I've just discovered that it works fine using a component
insted of a the page.


Paolo


On 6/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:


I'm trying to create a custom request listener like the following code,
but something is wrong because I always get the Page Expired error page
when I'm invoking the custom listener (clicking on the link).

Any ideas to make it work?

Thank you, Paolo


On 3/16/07, Eelco Hillenius [EMAIL PROTECTED]  wrote:

 Here is a super-simple example of creating a custom request listener.

 First, you create the new listener interface:

 public interface IHelloListener extends IRequestListener
 {
 public static final RequestListenerInterface INTERFACE = new
 RequestListenerInterface(
 IHelloListener.class);

 void onHello();
 }

 Note that it has a single method without parameters. This is a
 requirement as you can read from IRequestListener's JavaDocs. The
 other thing to note is the INTERFACE field; by instantiating a
 RequestListenerInterface you register the interface, and the field
 exposes a handle for constructing URLs using RequestCycle's UrlFor
 methods.

 Next, I simple patched the HelloWorld example like this:

 public class HelloWorld extends WicketExamplePage implements
 IHelloListener
 {
 public HelloWorld()
 {
 add(new Label(message, Hello World!));
 WebMarkupContainer link = new
 WebMarkupContainer(link);
 link.add(new SimpleAttributeModifier(href,
 RequestCycle.get().urlFor(this,
  IHelloListener.INTERFACE)));
 add(link);
 }

 public void onHello()
 {
 RequestCycle.get().setRequestTarget(new IRequestTarget()
 {
 public void detach(RequestCycle requestCycle)
 {
 }

 public void respond(RequestCycle requestCycle)
 {
 requestCycle.getResponse
 ().write(htmlbodyHELLO!/body/html);
 }
 });
 }
 }

 The html is straightforward, with the link defined like: a
 wicket:id=linkclick me/a

 And that's all there is to it: we created a new kind of listener for
 requests.

 Note that it is (still) bound to a page (or any arbitrary component).
 It is entirely possible to decouple this further, from the top of my
 head by providing a custom WebRequestCodingStrategy and override
 doEncode for your specific purpose. But if you are doing that, you
 probably might as well just create your own servlet.

 It is certainly a design goal for Wicket to be very extensible.
 However, it is *also* a goal to have different levels in our
 abstraction. I agree with Igor that having services so upfront in the
 architecture is or at least encourages scope creep, as it makes it too
 obvious for users to start coding their own as if they were a
 replacement for servlets and don't take the time to fully get into the
 component mind set. As you can see from the example, there are pretty
 much no limits to what you can do with Wicket, but we hope that doing
 things like creating custom listeners are only used as a last resort.
 And if you think you find a really good use, we'd appreciate it if you
 would communicate it as there might be something we missed and can
 result in a useful addition to Wicket.

 My 2c, and again, if you have good and specific use cases, share them :)

 Eelco


-
This SF.net email is sponsored by DB2 Express
Download DB2 

Re: [Wicket-user] No way to customize how autolinks look like

2007-06-22 Thread Igor Vaynberg

application.init() {
getmarkupsettings().setdefaultbeforedisabledlink(a class=\selected\);
getmarkupsettings().setdefaultafterdisabledlink(/a);
}

-igor


On 6/22/07, Serge P. Nekoval [EMAIL PROTECTED] wrote:


Hello,

We have markup which displays currently visited(disabled) links in a
special way.
By default, if you use wicket:link, autolinks for current page will look
like:
spanemCurrent Page/em/span

I need to make them look like:
a class=selectedCurrent Page/a

This is just a design rule (application-wide), enforced by our CSS.

So as I understand from reading sources for AutoLinkResolver, the way
Wicket
disables links is:
1. a is converted to span
2. href and onclick attributes removed.

I need to:
1. Leave a intact.
2. Remove href and onclick.
3. Add class=selected.

Unfortunately, I don't see any ways of doing that, because these links are
AutolinkBookmarkablePageLinks, this class is final and cannot be extended
(and it seems to be tricky to customize AutolinkResolver as well)

For now, I've decided to go on without wicket:link and added my own link
class which extends BookmarkablePageLink and overrides disableLink.
However, I don't really like it and it looks messy: you have to bind all
of
them to wicket:id and should not forget to add them to the page. It would
be
much easier to use wicket:link.

Particularly, how about adding some feature to customize/extend
AutolinkBookmarkablePageLinks, on application level?

Regards,
Sergey.


-
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] Custom request listener (wicket 1.2.x)

2007-06-22 Thread Igor Vaynberg

give us a quickstart/something we can work with and then we can take a look.
cant expect us to poke in the dark.

-igor


On 6/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:


I'm trying to create a custom request listener like the following code,
but something is wrong because I always get the Page Expired error page
when I'm invoking the custom listener (clicking on the link).

Any ideas to make it work?

Thank you, Paolo


On 3/16/07, Eelco Hillenius [EMAIL PROTECTED]  wrote:

 Here is a super-simple example of creating a custom request listener.

 First, you create the new listener interface:

 public interface IHelloListener extends IRequestListener
 {
 public static final RequestListenerInterface INTERFACE = new
 RequestListenerInterface(
 IHelloListener.class);

 void onHello();
 }

 Note that it has a single method without parameters. This is a
 requirement as you can read from IRequestListener's JavaDocs. The
 other thing to note is the INTERFACE field; by instantiating a
 RequestListenerInterface you register the interface, and the field
 exposes a handle for constructing URLs using RequestCycle's UrlFor
 methods.

 Next, I simple patched the HelloWorld example like this:

 public class HelloWorld extends WicketExamplePage implements
 IHelloListener
 {
 public HelloWorld()
 {
 add(new Label(message, Hello World!));
 WebMarkupContainer link = new
 WebMarkupContainer(link);
 link.add(new SimpleAttributeModifier(href,
 RequestCycle.get().urlFor(this,
  IHelloListener.INTERFACE)));
 add(link);
 }

 public void onHello()
 {
 RequestCycle.get().setRequestTarget(new IRequestTarget()
 {
 public void detach(RequestCycle requestCycle)
 {
 }

 public void respond(RequestCycle requestCycle)
 {
 requestCycle.getResponse
 ().write(htmlbodyHELLO!/body/html);
 }
 });
 }
 }

 The html is straightforward, with the link defined like: a
 wicket:id=linkclick me/a

 And that's all there is to it: we created a new kind of listener for
 requests.

 Note that it is (still) bound to a page (or any arbitrary component).
 It is entirely possible to decouple this further, from the top of my
 head by providing a custom WebRequestCodingStrategy and override
 doEncode for your specific purpose. But if you are doing that, you
 probably might as well just create your own servlet.

 It is certainly a design goal for Wicket to be very extensible.
 However, it is *also* a goal to have different levels in our
 abstraction. I agree with Igor that having services so upfront in the
 architecture is or at least encourages scope creep, as it makes it too
 obvious for users to start coding their own as if they were a
 replacement for servlets and don't take the time to fully get into the
 component mind set. As you can see from the example, there are pretty
 much no limits to what you can do with Wicket, but we hope that doing
 things like creating custom listeners are only used as a last resort.
 And if you think you find a really good use, we'd appreciate it if you
 would communicate it as there might be something we missed and can
 result in a useful addition to Wicket.

 My 2c, and again, if you have good and specific use cases, share them :)

 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] Use of Session

2007-06-22 Thread Eelco Hillenius
Like Johan said, the typical case is to provide your own custom
session. You'll have strongly typed variables that way and that's the
whole idea users being able to provide their own in the first place.

Metadata is intended for framework-like use. When you don't know/
don't want to force clients into using concrete session classes, you
can use metadata for instance to store authorization information etc.

Eelco


On 6/22/07, Johan Compagner [EMAIL PROTECTED] wrote:
 you should really create your own session.
 Usage of the metadata things should really be avoided for that kind of data.
 I almost could say. don't use meta data at all, its a wicket internal thing
 to store quickly markers and stuff like that.

 johan


 On 6/22/07, Matthieu Casanova [EMAIL PROTECTED] wrote:
  Hi, I'm not familiar with wicket sessions. I understand that I can
  create my own session object that extends the WebSession, and that
  will have some fields containing my sessions datas. In that case I
  have to replace the ISessionFactory of my application.
  The other choice to store datas in the Session is to use the
  getMetaData and setMetaData methods of WebSession ?
  What is the best choice ?
  thanks
 
  Matthieu
 
 
 -
  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] Multiple wicket:child tags in the same page

2007-06-22 Thread Scott Swank
I've often seen folk want what I see as abstract tags that can then
be implemented by subclasses.  The way I've handled that for our
application is by creating an abstract component (say it's a page)
with div tags with appropriate wicket:ids.

public class BasePage extends WebPage
{
  public BasePage()
  {
add(buildFoo(foo));
add(buildBar(bar));
  }

  public abstract Panel buildFoo(String id);
  public abstract Component buildBar(String id);
}

Then subclass appropriately.


On 6/21/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yes. Markup inheritance is meant to go one-on-one with Java
 inheritance which is limited to single parents. If people feel a
 markup inheritance-like pattern would be useful, we could discuss it,
 but it has to be a different kind of concept.

 Eelco


 On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  natural is an extremely subjective term. the core team does not entirely
  think so. but there is nothing stopping you from writing tag handlers to do
  exactly what you want.
 
  -igor
 
 
 
   On 6/21/07, rc.china [EMAIL PROTECTED] wrote:
  
   Panels and fragments are useful. As of page layout, however,
  wicket:extend
   / wicket:child is more natual than Panels and fragments.
  
   Some possible solutions is:
   1) use different tag values to differentiate:
   ...
   wicket:child childid=1/
   ...
   wicket:child childid=2/
   ...
   ==
   ...
   wicket:extend extendid=1
   ...
   /wicket:extend
   ...
   wicket:extend extendid=2
   ...
   /wicket:extend
   ...
  
   2)use wicket:extendN wicket:childN (N=1,2,3,...) instead of
   wicket:extend wicket:child
   ...
   wicket:child1/
   ...
   wicket:child2/
   ...
   ==
   ...
   wicket:extend1
   ...
   /wicket:extend1
   ...
   wicket:extend2
   ...
   /wicket:extend2
   ...
   --
   View this message in context:
  http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11245019
   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
 
 

 -
 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



-- 
Scott Swank
reformed mathematician

-
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] Has something changed in markup inheritance?

2007-06-22 Thread Peter Thomas

Sure Eelco, JIRA logged: https://issues.apache.org/jira/browse/WICKET-685

On 6/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Could you describe the problems in a JIRA issue? Thanks.

Eelco


On 6/22/07, Peter Thomas [EMAIL PROTECTED] wrote:
 Ok I think the problem is related to the ReloadingWicketFilter which I
was
 extending and using.  When I remove this, things are fine.

 So my conclusion is that latest ReloadingWicketFilter has problems for
pages
 using Markup inheritance.

 Thanks,

 Peter.


 On 6/22/07, Peter Thomas [EMAIL PROTECTED] wrote:
  Hi,
 
  I got the latest 1.3.0-SNAPSHOT through Maven yesterday and all my
pages
 that use markup inheritance stopped working.  My login page which does
not
 use markup inheritance works and then after submitting that ito goes to
the
 home page, nothing works.
 
  Thing is I tried a very simple quickstart with wicket:child/ and
 wicket:extend and markup inheritance works fine.  So this looks like
 something subtle that changed recently.  I backed up the wicket part of
my
 maven repository, and the timestamp of the most recent snapshot for me
where
 things were working fine is 2007-06-06.
 
  So the only thing I guess I am doing differently from a quickstart is
some
 bookmarkable urls, custom session factory, custom authorization strategy
and
 custom i18n StringResourceLoader.  Do give me some pointers where I
should
 debug etc.
 
  The error I get is:
 
  ===
 
 
  WicketMessage: Markup of type 'html' for component
 'info.jtrac.wicket.DashboardPage' not found. Enable debug messages for
 org.apache.wicket.util.resource to get a list of all filenames tried:
  [Page class = info.jtrac.wicket.DashboardPage, id = 1, version = 0]
 
  Root cause:
 
  org.apache.wicket.WicketRuntimeException: Parameter clazz
 must be instance of container
  at
 org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:244)
  at

org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance
(InheritedMarkupMarkupLoader.java:99)
  at
 org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(
InheritedMarkupMarkupLoader.java:65)
  at
 org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(
DefaultMarkupLoader.java:56)
  at
 org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:389)
  at
 org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(
MarkupCache.java:462)
  at org.apache.wicket.markup.MarkupCache.getMarkup
 (MarkupCache.java:282)
  at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java
:188)
  at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
MarkupContainer.java:331)
  at org.apache.wicket.markup.html.WebPage.onBeforeRender
 (WebPage.java:363)
  at
 org.apache.wicket.Component.beforeRender(Component.java:846)
  at org.apache.wicket.Page.renderPage(Page.java:885)
 
  ==Thanks,
 
  Peter.
 



-
 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] Custom request listener (wicket 1.2.x)

2007-06-22 Thread Igor Vaynberg

yeah, dont think we ever thought about doing that...please open a jira
issue. it is probably something we should support.

-igor


On 6/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:


The quick start was in the included email, anyway here it is again ..

public interface IHelloListener extends IRequestListener
{
public static final RequestListenerInterface INTERFACE = new
RequestListenerInterface(
IHelloListener.class);

void onHello();
}


public class HelloWorld extends WicketExamplePage implements
IHelloListener
{
public HelloWorld()
{
add(new Label(message, Hello World!));
WebMarkupContainer link = new WebMarkupContainer(link);
link.add(new SimpleAttributeModifier(href,
RequestCycle.get().urlFor(this,
 IHelloListener.INTERFACE)));
add(link);
}

public void onHello()
{
RequestCycle.get().setRequestTarget(new IRequestTarget()
{
public void detach(RequestCycle requestCycle)
{
}

public void respond(RequestCycle requestCycle)
{
requestCycle.getResponse
().write(htmlbodyHELLO!/body/html);
}
});
}
}

The problem seems that it cannot work if the implementing listener is the
page itself. But I've just discovered that it works fine using a component
insted of a the page.


Paolo


On 6/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:

 I'm trying to create a custom request listener like the following code,
 but something is wrong because I always get the Page Expired error page
 when I'm invoking the custom listener (clicking on the link).

 Any ideas to make it work?

 Thank you, Paolo


 On 3/16/07, Eelco Hillenius  [EMAIL PROTECTED]  wrote:
 
  Here is a super-simple example of creating a custom request listener.
 
  First, you create the new listener interface:
 
  public interface IHelloListener extends IRequestListener
  {
  public static final RequestListenerInterface INTERFACE = new
  RequestListenerInterface(
  IHelloListener.class);
 
  void onHello();
  }
 
  Note that it has a single method without parameters. This is a
  requirement as you can read from IRequestListener's JavaDocs. The
  other thing to note is the INTERFACE field; by instantiating a
  RequestListenerInterface you register the interface, and the field
  exposes a handle for constructing URLs using RequestCycle's UrlFor
  methods.
 
  Next, I simple patched the HelloWorld example like this:
 
  public class HelloWorld extends WicketExamplePage implements
  IHelloListener
  {
  public HelloWorld()
  {
  add(new Label(message, Hello World!));
  WebMarkupContainer link = new
  WebMarkupContainer(link);
  link.add(new SimpleAttributeModifier(href,
  RequestCycle.get().urlFor(this,
   IHelloListener.INTERFACE)));
  add(link);
  }
 
  public void onHello()
  {
  RequestCycle.get().setRequestTarget(new
  IRequestTarget()
  {
  public void detach(RequestCycle requestCycle)
  {
  }
 
  public void respond(RequestCycle requestCycle)
  {
  requestCycle.getResponse
  ().write(htmlbodyHELLO!/body/html);
  }
  });
  }
  }
 
  The html is straightforward, with the link defined like: a
  wicket:id=linkclick me/a
 
  And that's all there is to it: we created a new kind of listener for
  requests.
 
  Note that it is (still) bound to a page (or any arbitrary component).
  It is entirely possible to decouple this further, from the top of my
  head by providing a custom WebRequestCodingStrategy and override
  doEncode for your specific purpose. But if you are doing that, you
  probably might as well just create your own servlet.
 
  It is certainly a design goal for Wicket to be very extensible.
  However, it is *also* a goal to have different levels in our
  abstraction. I agree with Igor that having services so upfront in the
  architecture is or at least encourages scope creep, as it makes it too
 
  obvious for users to start coding their own as if they were a
  replacement for servlets and don't take the time to fully get into the
  component mind set. As you can see from the example, there are pretty
  much no limits to what you can do with Wicket, but we hope that doing
  things like creating custom listeners are only used as a last resort.
  And if you think you find a really good use, we'd appreciate it if you
  would communicate it as 

Re: [Wicket-user] State selection from imagemap

2007-06-22 Thread Tauren Mills
Eelco,

Thanks for the reply!

 You could use the image map component (see the example in
 org.apache.wicket.examples.linkomatic), but that would indeed result
 in a lot of components for not that much gains.

The problem with the ImageMap component is that it doesn't support alt
and title parameters, and I need those.  This site is for seniors and
needs to be accessible.

 I'm pretty sure that at least in Wicket 1.3 you don't need to put the
 servlet context in your hrefs yourself, as Wicket will automatically
 prepend that for you. Which version are you using, and did you try it
 without?

I'm currently using 1.2.6.  The imagemap is on the home page, and I
was finding that the links worked correctly from my home page's
mountBookmarkablePage path, but if a link component took the user back
to the home page, then the path wouldn't work.

Because of the problems I was having, I ended up wicketizing the whole
thing. I'm not convinced that this is the best solution, and it does
mean a whole lot of components are generated for the home page.  I'd
appreciate any feedback on this solution.  I can post full code
somewhere too if desired.

The solution output is similar to this:

form id=usamap_form name=State
action=/db/app?wicket:interface=:1:usamap:form::IFormSubmitListener
method=post wicket:id=formdiv style=display:noneinput
type=hidden name=usamap_form:hf:0 id=usamap_form:hf:0 //div

select id=state name=state wicket:id=state
option selected=selected value=Choose One/option
option value=0ALASKA/option
...
/select

map id=map name=map
  area title=ALASKA
coords=20,200,11,219,11,249,17,287,90,256,77,198,42,188 alt=ALASKA
shape=poly href=/db/app/lookup/state/AK wicket:id=repeating/
   ...
/map

To fully wicketize this image map, I have a custom TreeMap called
StateMap that maps state abbreviations to State objects.  The State
objects have name, abbreviation, and a List of Area objects (some
States need more than one polygon Area).  The Area objects have shape
and coordinates attributes.  StateMap has a getAreas() method that
returns a List of all the Area objects in all of the State objects.

To create the DropDownChoice, I just get a list from the TreeMap's
values and create a DropDownChoice with it:

StateMap.getStates() {
  return (List) new ArrayListState(abbrevMap.values());
}

StateSelectForm(String id, StateMap stateMap) {
  add(new DropDownChoice(state,new
PropertyModel(this,state),stateMap.getStates()));
}

To create the imagemap, I use a RepeatingView and iterate through the
list of Area objects returned by StateMap.getAreas().  I create a
WebMarkupContainer for each area tag and add AttributeModifiers to
it for alt, title, shape, coords, and href.  All of these
just access properties of either the State or Area objects, except for
href, where I do this:

// Get the State object for the abbreviation
final State state = stateMap.getAbbreviation(abbrev);
  ...
item.add(new AttributeModifier(href, true, new AbstractReadOnlyModel()
{
  public Object getObject(Component component)
  {
// return a URL to StateLookupPage with parameters of state=abbrev
return urlFor(StateLookupPage.class, new
PageParameters(state=+state.getAbbreviation()));
   }
}));

Lastly, the StateLookupPage has two constructors, one to handle the
form and another to handle the imagemap.  When the form is submitted,
the selected State object is put into the session.  When the imagemap
is clicked, the selected state is passed as a parameter.

I know this is long winded, and I apologize.  But it would be nice to
know the best way to deal with a large imagemap like this.  I would be
happy to post this information on the wiki, but I don't want to do it
if there are better solutions.  So any advice would be appreciated.

Thanks,
Tauren


 Eelco


 On 6/19/07, Tauren Mills [EMAIL PROTECTED] wrote:
  I'm wondering if I should wicketize this form, or leave it as a
  basic html form and would like to hear your thoughts.
 
  I have a map of the USA with an imagemap.  Clicking onto a state goes
  to another page that displays a list of metro areas in the state.
 
  img src=img/map.png usemap=#map border=0 alt=US Map/
  map id=map name=map
area shape=poly alt=Maine
  coords=409,19,403,43,411,64,433,39,416,17 href=app/lookup/state/ME
  title=Maine/
area shape=poly alt=New Hampshire coords=401,43,399,69,411,65
  href=app/lookup/state/NH title=New Hampshire/
area shape=poly alt=Vermont
  coords=400,47,388,48,393,70,398,69 href=app/lookup/state/VT
  title=Vermont/
  ...
  /map
 
  I did this by using a bookmarkable page with pageparameters:
 
  mountBookmarkablePage(/lookup, StateLookupPage.class);
 
  ---
 
  public StateLookupPage(PageParameters params) {
  super(params);
  String state = (String) params.get(state);
  add(new Label(state,state));
  }
 
  The main issue I have with this is I have hardcoded my servlet context
  (app) into the HTML, so changing my 

[Wicket-user] Question on Serialization

2007-06-22 Thread Iman Rahmatizadeh

Does holding references to other Pages inside a Page make them be serialized
twice ? Like :

class MyPage extends Page {

   ListPage otherPages;
   
}

would it make any difference if it was inside another object, like :


class MyPage extends Page {

   MyPageHolder pageHolder; // serializable
   
}



finally, where exactly is this logic hidden in wicket code, so I can give it
a closer look ?

Iman
-
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] Betr.: Write javascript to inlineframe

2007-06-22 Thread Igor Vaynberg

will try to get to it soon, maybe on the weekend

-igor


On 6/21/07, Marieke Vandamme [EMAIL PROTECTED] wrote:



Hello,

I could reproduce in a very simple example..
Could you check it for me? I don't see any exception..

MainPage.java
-
add(new InlineFrame(myIframe, PageMap.forName(innerframe),
InnerPage.class));
add(new Form(form));

MainPage.html
-
form wicket:id=form/form
iframe wicket:id=myIframe/iframe

InnerPage.html
--
JavascriptUtils.writeJavascript(this.getResponse(), var test = 'hello');
JavascriptUtils.writeJavascriptUrl(this.getResponse(), test.js);

None if the javascript is written in te innerpage..
When deleting the from from MainPage, the javascript is written.
Strange behaviour.

Thanks in advance !

 you sure you dont have an exception somewhere...check the console/logs
for a
 stacktrace

 -igor  DISCLAIMER 

http://www.tvh.be/newen/pages/emaildisclaimer.html

This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message.

-
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] Betr.: Write javascript to inlineframe

2007-06-22 Thread Igor Vaynberg

where are those writejavascript lines? in inlinepage constructor?

-igor


On 6/21/07, Marieke Vandamme [EMAIL PROTECTED] wrote:



Hello,

I could reproduce in a very simple example..
Could you check it for me? I don't see any exception..

MainPage.java
-
add(new InlineFrame(myIframe, PageMap.forName(innerframe),
InnerPage.class));
add(new Form(form));

MainPage.html
-
form wicket:id=form/form
iframe wicket:id=myIframe/iframe

InnerPage.html
--
JavascriptUtils.writeJavascript(this.getResponse(), var test = 'hello');
JavascriptUtils.writeJavascriptUrl(this.getResponse(), test.js);

None if the javascript is written in te innerpage..
When deleting the from from MainPage, the javascript is written.
Strange behaviour.

Thanks in advance !

 you sure you dont have an exception somewhere...check the console/logs
for a
 stacktrace

 -igor  DISCLAIMER 

http://www.tvh.be/newen/pages/emaildisclaimer.html

This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message.

-
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] Question on Serialization

2007-06-22 Thread Eelco Hillenius
 Does holding references to other Pages inside a Page make them be serialized
 twice ? Like :

 class MyPage extends Page {

 ListPage otherPages;
 
 }

Yep, if you are using the SecondLevelCacheSessionStore, which is the
default for Wicket 1.3, evry page will get serialized as a whole, and
everytime you do that, it needs to resolve all the references
completely.

Note that this does not mean you will be using more RAM - that's the
same (except for the object pointer).

 would it make any difference if it was inside another object, like :


 class MyPage extends Page {

  MyPageHolder pageHolder; // serializable
  
  }


Nope. Any object that is non-transient and referencable will be
serialized, so this won't help.

There are optimizations possible, but it will probably be a hit on
your programming convenience. For instance, I think it is possible to
just store the page map/ page id and page version combination and use
that if you want to redirect to a previous one. Might be an idea to
check out if you are worried about optimizing.

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] Multiple wicket:child tags in the same page

2007-06-22 Thread rc.china



Scott Swank wrote:
 
 I've often seen folk want what I see as abstract tags that can then
 be implemented by subclasses.  The way I've handled that for our
 application is by creating an abstract component (say it's a page)
 with div tags with appropriate wicket:ids.
 
 public class BasePage extends WebPage
 {
   public BasePage()
   {
 add(buildFoo(foo));
 add(buildBar(bar));
   }
 
   public abstract Panel buildFoo(String id);
   public abstract Component buildBar(String id);
 }
 
 Then subclass appropriately.
 

This solution has some limitations while multiple wicket:child has not: 
1)We have to repeat the common parts of BasePage.html in all of its
descendants (such as DerivedPage1.html, DerivedPage2.html ...).
  == If we have multiple wicket:child, we have no need to do this.
2)If we chang the common parts in BasePage.html, we have to do the same
change in all of its descendants.
  == If we have multiple wicket:child, we just do the change in
BasePage.html
3)The descendants have to provide a XXXPanel to encapsulate some components
  == If we have multiple wicket:child, we can just put these components
between wichet:child and /wicket:child, such as
  wicket:child
 label wicket:id=labelaaa/label
 input wicket:id=input value=test/
  /wicket:child

-- 
View this message in context: 
http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11263485
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] Question on Serialization

2007-06-22 Thread Iman Rahmatizadeh

On 6/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 Does holding references to other Pages inside a Page make them be
serialized
 twice ? Like :

 class MyPage extends Page {

 ListPage otherPages;
 
 }

Yep, if you are using the SecondLevelCacheSessionStore, which is the
default for Wicket 1.3, evry page will get serialized as a whole, and
everytime you do that, it needs to resolve all the references
completely.

Note that this does not mean you will be using more RAM - that's the
same (except for the object pointer).



So actually it wont do any harm, just an object reference is added, right ?


would it make any difference if it was inside another object, like :


 class MyPage extends Page {

  MyPageHolder pageHolder; // serializable
  
  }


Nope. Any object that is non-transient and referencable will be
serialized, so this won't help.

There are optimizations possible, but it will probably be a hit on
your programming convenience. For instance, I think it is possible to
just store the page map/ page id and page version combination and use
that if you want to redirect to a previous one. Might be an idea to
check out if you are worried about optimizing.



Actually I just want to make sure it wont take much more ram either way. I
am trying to implement a simple BreadCrumb bar, by keeping each page's
breadcrumb history (the recent page references) in itself. Is this a safe
way for a page to hold references to other pages ?

Thanks a lot !
Iman
-
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