Re: [Wicket-user] CSS background images

2006-07-24 Thread Eelco Hillenius
As you don't have to pre-register packaged resources anymore, you can
reference them if you know the URL, which for such resources always
has the same form:

/webapp/servletname/resources/some.package.SomeClass/theme.css

and even

/webapp/servletname/resources/some.package.SomeClass/some/sub/dir/theme.css

for *unmounted* packages. SomeClass is then used as the class relative
to the loading.

Also, you can use RequestCycle's urlFor and classes of
wicket.extensions.util.resource to do the trick without depending on
Wicket's internals too much. For instance with:

Map m = new HashMap();
RequestCycle r = RequestCycle.get();
m.put(star1, r.urlFor(new PackageResourceReference(StarPanel.class,
star1.gif)));
add(TextTemplateHeaderContributor.forCss(SomeClass.class, theme.css,
Model.valueOf(m)));

and in theme.css all ${star1} will be replaced by that image.

Still a lot of work though, so like Igor said, it would be nice to
have something simpler even. One of the starting points for this might
be TextTemplateHeaderContributor.forCss or CssTemplate it depends on.
CssTemplate could (optionally) parse the body of that file - it's
doing that for the var subst anyway - and replace urls and such.

Contribution is welcome :)

Btw, I'm about to move that package to core for 2.0 (so it looses the
extensions part in the package for that version).

Eelco


On 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i guess it is not something that we support right now, but something that is
 cleary needed. we need to build a resource that can load a css file, parse
 for images, replace them, and then serve the altered content.

 i know almaw has been working on something like this but i dont know how far
 he got. a patch would be welcome, if not then i guess you will have to wait
 until one of the core devels has the time.

 even a patch to parse css and figure out where the paths are would be very
 helpful.

 -Igor



 On 7/23/06, Ryan Sonnek  [EMAIL PROTECTED] wrote:
 

 I know this is a pretty newbie question, but how can i package an image with
 my wicket app, and reference it within a static css file?  I've been
 searching through the wicket wiki, with no luck.  is there a wicket-stuff
 app or someplace i can dig through for an example?

  Just to be clear, here's what i'm expecting to do with my css:

  .myapplicationClass {
background-image:
 url('/com/codecrate/app/BackgroundImage.gif');
  }

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to change value of a Textfield from popup page

2006-07-24 Thread Eelco Hillenius
For clarity, you could ask your component for it's markup id when it
is rendering like this: textField.getMarkupId();

So, it could look like this:

PopupSettings popupSettings = new
PopupSettings(PageMap.forName(popuppagemap)).setHeight(
500).setWidth(500);
PageParameters p = new PageParameters(targetId, textField.getMarkupId());
add(new BookmarkablePageLink(popupLink, MyPopup.class,
p).setPopupSettings(popupSettings));


And then your popup has:

public MyPopup(PageParameters p) {
  String targetId = p.getString(targetId);
  ...

etc.

Or... instead of a bookmarkable page you could use:

final String targetId = textField.getMarkupId();
add(new Link(popupLink){
  onClick() {
setResponsePage(new MyPopup(targetId));
  }
}.setPopupSettings(popupSettings));

and have

public MyPopup(String targetId) {
  ...


Hope this helps,

Eelco


On 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you have to do this using javascript.

 call setoutputmarkupid(true) on the textfield and pass this id into the
 popup page, then have the popup page output this javascript when you want to
 set the value:

 window.opener.document.getElementById (id).value='foo';

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Hi,

I have a Panel and I want to change it's markup according to values
specified at the tag using the panel:

div wicket:id=myPanel myValues=showLeft showRight

The class MyPanel should read the attribute myValues and use the values as
model inside the panel, for instance show/hide some components inside that
panel.

How can I get the value of the attribute *inside* my Panel component?

Thanks, Jan




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use attribute value to modify markup

2006-07-24 Thread Eelco Hillenius
Override onComponentTag in your component and get the values with
tag.getAttributes().

In Wicket 2.0, you can even do getMarkupAttributes right in your
component's constructor.

Eelco



On 7/24/06, jan_bar [EMAIL PROTECTED] wrote:
 Hi,

 I have a Panel and I want to change it's markup according to values
 specified at the tag using the panel:

 div wicket:id=myPanel myValues=showLeft showRight

 The class MyPanel should read the attribute myValues and use the values as
 model inside the panel, for instance show/hide some components inside that
 panel.

 How can I get the value of the attribute *inside* my Panel component?

 Thanks, Jan




 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use attribute value to modify markup

2006-07-24 Thread jan_bar
Thanks Eelco for you quick support.

Jan

Eelco Hillenius [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Override onComponentTag in your component and get the values with
 tag.getAttributes().

 In Wicket 2.0, you can even do getMarkupAttributes right in your
 component's constructor.

 Eelco



 On 7/24/06, jan_bar [EMAIL PROTECTED] wrote:
  Hi,
 
  I have a Panel and I want to change it's markup according to values
  specified at the tag using the panel:
 
  div wicket:id=myPanel myValues=showLeft showRight
 
  The class MyPanel should read the attribute myValues and use the
values as
  model inside the panel, for instance show/hide some components inside
that
  panel.
 
  How can I get the value of the attribute *inside* my Panel component?
 
  Thanks, Jan
 
 
 
 

 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
your
  opinions on IT  business topics through brief surveys -- and earn cash
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread JK
Sorry, but I can't find out how to get remote IP address. Could
someone give example code? (Wicket 1.2)

2006/7/4, Johan Compagner [EMAIL PROTECTED]:
 remote address can be get from the http request (of the WebRequest from the
 RequestCycle)
 The snoop servlet does this

 http://www.rawbw.com/~davidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html




 On 7/4/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
  Johan,
 
  Thank you. Actually what I really need to know is this: How do I find
  out what IP the request comes from?
  Does only Jetty know the http request details or are they also
  accessible from within Wicket?
 
  - Johannes
 
  Johan Compagner wrote:
 
   if you set different pages as a response page  or set a different style
   both dependend on the ip you get then yes.
  
   johan
  
  
   On 7/4/06, *Johannes Fahrenkrug * [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
  
   Hi,
  
   is it possible to show different pages dependent on what IP the
   request
   comes from?
  
   - Johannes
  
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   mailto: Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
  
 
 
  
  ___
  Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Eelco Hillenius
((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getRemoteAddr()

Eelco



On 7/24/06, JK [EMAIL PROTECTED] wrote:
 Sorry, but I can't find out how to get remote IP address. Could
 someone give example code? (Wicket 1.2)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Johan Compagner
something like this:((WebRequest)RequestCycle.get().getRequest()).getHttpRequest().getRemoveAdress()On 7/24/06, JK 
[EMAIL PROTECTED] wrote:Sorry, but I can't find out how to get remote IP address. Could
someone give example code? (Wicket 1.2)2006/7/4, Johan Compagner [EMAIL PROTECTED]: remote address can be get from the http request (of the WebRequest from the
 RequestCycle) The snoop servlet does this http://www.rawbw.com/~davidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html
 On 7/4/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:  Johan,   Thank you. Actually what I really need to know is this: How do I find
  out what IP the request comes from?  Does only Jetty know the http request details or are they also  accessible from within Wicket?   - Johannes
   Johan Compagner wrote:if you set different pages as a response pageor set a different style   both dependend on the ip you get then yes.  
   johan   On 7/4/06, *Johannes Fahrenkrug * [EMAIL PROTECTED]   mailto:
[EMAIL PROTECTED] wrote: Hi, is it possible to show different pages dependent on what IP the   request   comes from?
 - Johannes Using Tomcat but need to do more? Need to support web services,   security?   Get stuff done quickly with pre-integrated technology to make your
   job easier   Download IBM WebSphere Application Server v.1.0.1 based on Apache   Geronimo   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___   Wicket-user mailing list   Wicket-user@lists.sourceforge.net
   mailto: Wicket-user@lists.sourceforge.net   
https://lists.sourceforge.net/lists/listinfo/wicket-user  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job easier  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___  Wicket-user mailing list
   Wicket-user@lists.sourceforge.net  https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?  Get stuff done quickly with pre-integrated technology to make your job
 easier  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user  Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job
 easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Eelco Hillenius
Consider getRemoteHost also. Check out javax.servlet.ServletRequest
from servlet api

Eelco


On 7/24/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 ((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest().getRemoteAddr()

 Eelco



 On 7/24/06, JK [EMAIL PROTECTED] wrote:
  Sorry, but I can't find out how to get remote IP address. Could
  someone give example code? (Wicket 1.2)


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Martijn Dashorst
 getHttpRequest().getRemoveAdress()

Ah... that is what happened to my internet connection... you bastard!

Martijn

On 7/24/06, Johan Compagner [EMAIL PROTECTED] wrote:
 something like this:

 ((WebRequest)RequestCycle.get().getRequest()).getHttpRequest().getRemoveAdress()


 On 7/24/06, JK  [EMAIL PROTECTED] wrote:
  Sorry, but I can't find out how to get remote IP address. Could
  someone give example code? (Wicket 1.2)
 
  2006/7/4, Johan Compagner [EMAIL PROTECTED]:
   remote address can be get from the http request (of the WebRequest from
 the
   RequestCycle)
   The snoop servlet does this
  
  
 http://www.rawbw.com/~davidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html
  
  
  
  
   On 7/4/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
Johan,
   
Thank you. Actually what I really need to know is this: How do I find
out what IP the request comes from?
Does only Jetty know the http request details or are they also
accessible from within Wicket?
   
- Johannes
   
Johan Compagner wrote:
   
 if you set different pages as a response page  or set a different
 style
 both dependend on the ip you get then yes.

 johan


 On 7/4/06, *Johannes Fahrenkrug * [EMAIL PROTECTED]
 mailto: [EMAIL PROTECTED] wrote:

 Hi,

 is it possible to show different pages dependent on what IP the
 request
 comes from?

 - Johannes

 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make
 your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on
 Apache
 Geronimo

  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto: Wicket-user@lists.sourceforge.net

  
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
  
 

Using Tomcat but need to do more? Need to support web services,
 security?
Get stuff done quickly with pre-integrated technology to make your
 job
   easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
   
   
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


   
  
 

___
Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   
Using Tomcat but need to do more? Need to support web services,
 security?
Get stuff done quickly with pre-integrated technology to make your job
   easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
   
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
   easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys -- and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Download Wicket 1.2 now! Write Ajax 

Re: [Wicket-user] Show pages dependent on client's IP address

2006-07-24 Thread Johan Compagner
ahh was that what i did..Undo(), Undo()hmm no effect.. should be perminant then.. sorryOn 7/24/06, Martijn Dashorst 
[EMAIL PROTECTED] wrote: getHttpRequest().getRemoveAdress()
Ah... that is what happened to my internet connection... you bastard!MartijnOn 7/24/06, Johan Compagner [EMAIL PROTECTED] wrote: something like this:
 ((WebRequest)RequestCycle.get().getRequest()).getHttpRequest().getRemoveAdress() On 7/24/06, JK  [EMAIL PROTECTED] wrote:  Sorry, but I can't find out how to get remote IP address. Could
  someone give example code? (Wicket 1.2)   2006/7/4, Johan Compagner [EMAIL PROTECTED]:   remote address can be get from the http request (of the WebRequest from
 the   RequestCycle)   The snoop servlet does this 
http://www.rawbw.com/~davidm/tini/TiniHttpServerDemo/servlet/SnoopServlet.html   On 7/4/06, Johannes Fahrenkrug 
[EMAIL PROTECTED] wrote:Johan,   Thank you. Actually what I really need to know is this: How do I findout what IP the request comes from?
Does only Jetty know the http request details or are they alsoaccessible from within Wicket?   - Johannes
   Johan Compagner wrote:if you set different pages as a response pageor set a different style both dependend on the ip you get then yes.
 johan On 7/4/06, *Johannes Fahrenkrug * [EMAIL PROTECTED]
 mailto: [EMAIL PROTECTED] wrote: Hi, is it possible to show different pages dependent on what IP the
 request comes from? - Johannes Using Tomcat but need to do more? Need to support web services,
 security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list
 Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  Using Tomcat but need to do more? Need to support web services,
 security?Get stuff done quickly with pre-integrated technology to make your job   easierDownload IBM WebSphere Application Server v.1.0.1
 based on Apache   Geronimo   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
Wicket-user mailing list Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user  Using Tomcat but need to do more? Need to support web services,
 security?Get stuff done quickly with pre-integrated technology to make your job   easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user   
   Using Tomcat but need to do more? Need to support web services, security?   Get stuff done quickly with pre-integrated technology to make your job   easier   Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___   Wicket-user mailing list   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user   
  -  Take Surveys. Earn Cash. Influence the Future of IT  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your  opinions on IT  business topics through brief surveys -- and earn cash  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user  - Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Download Wicket 
1.2 now! Write Ajax applications without touching _javascript_!-- 

[Wicket-user] Dynamic Template Selection

2006-07-24 Thread James Cook
What is the best practice in 1.2 and 2.0 for developing a component that has different visual orientations depending on the developers purpose? For example, suppose I am writing a component to display advertising blurbs like Google's Adwords. The component can have a vertical or horizontal layout. Also suppose for the sake of argument, the layout orientation cannot be controlled via CSS. Since there is only one markup file associated with a component (true?) there doesn't seem to be an obvious way to achieve this goal. Is there a recipe for dealing with this scenario?
Thanks,Jim
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Template Selection

2006-07-24 Thread Eelco Hillenius
Answers below.

On 7/24/06, James Cook [EMAIL PROTECTED] wrote:
 What is the best practice in 1.2 and 2.0 for developing a component that has
 different visual orientations depending on the developers purpose?

 For example, suppose I am writing a component to display advertising blurbs
 like Google's Adwords. The component can have a vertical or horizontal
 layout. Also suppose for the sake of argument, the layout orientation cannot
 be controlled via CSS. Since there is only one markup file associated with a
 component (true?)

false. Multiple markup files can be associated by overriding a method
in a component. But it's not the recommended way of working.

 there doesn't seem to be an obvious way to achieve this
 goal. Is there a recipe for dealing with this scenario?

Use panels to dynamically build up the component. Basically, you
should break up the component in smaller parts - the parts that can
change - and make panels out of that. For example, look at
wicket.examples.template for such dynamic page composition. The
compref (component reference) example also has a piece about panels,
and while you're at it, check Fragments, Borders and markup
inheritence too. The sky is the limit with panels, like the nested
example shows where panels are even used recursively.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Martijn Dashorst
The Wicket project has released the maintenance release Wicket 1.2.1. Wicket is a Java component based web application framework licensed under the open source Apache 2 license. Wicket allows Java developers to create highly dynamic web applications using plain Java and HTML.
This maintenance release fixes several bugs, and introduces some new features, amongst others the long awaited Portlet (JSR-168) support. Due to time constraints, the portlet examples have not been released yet. You can find them in SVN until the time has been found to build a proper release for it. The portlet support is still young and there may be some incompatibilities to be found between various portlet containers. Here is an (incomplete) list of bug fixes:
For improved reliability, instead of utilizing cookies and falling back on a quirky JavasScript, we now use window.name to detect whether we are in sync with the proper page map.
AjaxFormSubmitBehavior no longer incorrectly calls onSubmit() if an error occured during form processing (this aligns it with Button.onSubmit() semantic), instead a new onError() method will be called to allow for error related ajax target processing
Added IDebugSettings.serializeSessionAttributes instead of relying on logger set to debug mode for the session storeSeveral bug fixes to the Palette componentProperty model will now correctly work when chained with a compound model
Fix for firefox not parsing xml-responses after the pages document.domain has been changed to the base-domain.Implemented a workaround for an inconsistency between different servlet containers and a bug in the servlet spec which does not seem to state what should happen with empty valued request parameters. This caused Wicket to have some problems (like a failing required test) with Jetty 6.
Implemented anchors on Links. You can either provide a component that is to be used for getting the anchor, or provide an anchor in the href attribute of a tags.Portlet (JSR-168) supportAjax Checkbox now uses onclick instead of onchange which works correctly
Replace GPL licensed diff util with a Apache licensed oneRedirect URLs sometimes were not being encoded for redirects, preventing 'cookie-less' operation (most notably when used with redirectTo). Fixed by always encoding redirects low-down; encoding multiple times has no effect.
Package resources do not have to be pre-registered anymore. When a shared resource is not found, Wicket tries to find a corresponding package resource, and if it finds one, registers it lazily. This fixes quite a few uncomfortable situations, and makes writing custom components easier. Package resources may be blocked by utilizing IPackageResourceGuard (IResourceSettings). By default everything except files with the extension 'html', 'class', 'java', and 'properties' are served. Fixes amongst others bug 1490949. All methods that took Pattern are now deprecated and will be removed in 
2.0.Fixed setting the shared resource path so that it strips any jsession id (or whatever there may be between [path];[whatever][?(optional)] which was a problem when a browser doesn't support cookiesAdded rating component to extensions
Added Component.replaceWith(Component) to provide better readability and better context for errors that arise from replace actionsThis release should be a drop in release to the 1.2 version. However we encourage you to properly test your application before pushing Wicket 
1.2.1 into production. The Wicket team wishes to thank everyone that has worked with us to find and solve those nasty bugs. We hope that you will enjoy this release as much as we do. We thank our users for their continued support.
-- Download Wicket 1.2.1 now! Write Ajax applications without touching _javascript_!-- http://wicketframework.org
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Localisation of Enum properties (Newbie question)

2006-07-24 Thread Wilko Hische

Hi,

My apologies if the following is simple, but I am relatively new to 
Wicket (moving from Tapestry),  and wasn't  able to figure out an 
elegant solution:

I would like to add an Enum property to the Contact class of the 
wicket-phonebook application, say a Gender:

public enum Gender {
MALE,
FEMALE
}

class Contact {
private Gender gender;
...
// getter and setter
}

The contact's gender should be shown as another 
ChoiceFilteredPropertyColumn of the DefaultDataTable on the ListContacts 
page.
So far no problem.

Now I would like to localise the Gender type with a Gender.properties 
file on the Gender's class path.
This properties file would then be used for
1. the columns filter selection
2. the contact's gender field
3. the Gender column's row values.

This last one I could not figure out. I guess I am looking for a way to 
have the StringResourceModel  use  a ClassResourceLoader for the Gender 
class, but it does not seem to allow for this.

In the end I got it something working that makes use of keys in my 
application.properties (Gender.MALE, Gender.FEMALE) but I would prefer a 
separate properties file.

Best regards,

Wilko Hische



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CSS background images

2006-07-24 Thread Igor Vaynberg
i think in this case we are talking about a contextpathprepender but for the css, not just a variable interpolator.also while the texttemplate stuff works what it does is sinclude the css into the page, im talking about a resource so you can have all this stuff done once and served/cached through the normal link/ tag.
-IgorOn 7/24/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
As you don't have to pre-register packaged resources anymore, you canreference them if you know the URL, which for such resources alwayshas the same form:/webapp/servletname/resources/some.package.SomeClass/theme.css
and even/webapp/servletname/resources/some.package.SomeClass/some/sub/dir/theme.cssfor *unmounted* packages. SomeClass is then used as the class relativeto the loading.Also, you can use RequestCycle's urlFor and classes of
wicket.extensions.util.resource to do the trick without depending onWicket's internals too much. For instance with:Map m = new HashMap();RequestCycle r = RequestCycle.get();m.put(star1, 
r.urlFor(new PackageResourceReference(StarPanel.class,star1.gif)));add(TextTemplateHeaderContributor.forCss(SomeClass.class, theme.css,Model.valueOf(m)));and in theme.css all ${star1} will be replaced by that image.
Still a lot of work though, so like Igor said, it would be nice tohave something simpler even. One of the starting points for this mightbe TextTemplateHeaderContributor.forCss or CssTemplate it depends on.
CssTemplate could (optionally) parse the body of that file - it'sdoing that for the var subst anyway - and replace urls and such.Contribution is welcome :)Btw, I'm about to move that package to core for 
2.0 (so it looses theextensions part in the package for that version).EelcoOn 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess it is not something that we support right now, but something that is
 cleary needed. we need to build a resource that can load a css file, parse for images, replace them, and then serve the altered content. i know almaw has been working on something like this but i dont know how far
 he got. a patch would be welcome, if not then i guess you will have to wait until one of the core devels has the time. even a patch to parse css and figure out where the paths are would be very
 helpful. -Igor On 7/23/06, Ryan Sonnek  [EMAIL PROTECTED] wrote:  I know this is a pretty newbie question, but how can i package an image with
 my wicket app, and reference it within a static css file?I've been searching through the wicket wiki, with no luck.is there a wicket-stuff app or someplace i can dig through for an example?
Just to be clear, here's what i'm expecting to do with my css:.myapplicationClass {background-image: url('/com/codecrate/app/BackgroundImage.gif');}
 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Localisation of Enum properties (Newbie question)

2006-07-24 Thread Igor Vaynberg
something like this:new ChoiceFilteredPropertyColumn() { IModel createLabelModel(IModel itemModel) { final IModel property=super.createLabelModel(itemModel); return new AbstractReadOnlyModel() {
 Object getObject(Component c) { // will localize the enum c.getString(((Enum)property.getObject(c)).name()); } void ondetach() { 
property.detach(); } } }}-IgorOn 7/24/06, Wilko Hische [EMAIL PROTECTED]
 wrote:Hi,My apologies if the following is simple, but I am relatively new to
Wicket (moving from Tapestry),and wasn'table to figure out anelegant solution:I would like to add an Enum property to the Contact class of thewicket-phonebook application, say a Gender:public enum Gender {
MALE,FEMALE}class Contact {private Gender gender;...// getter and setter}The contact's gender should be shown as anotherChoiceFilteredPropertyColumn of the DefaultDataTable on the ListContacts
page.So far no problem.Now I would like to localise the Gender type with a Gender.propertiesfile on the Gender's class path.This properties file would then be used for1. the columns filter selection
2. the contact's gender field3. the Gender column's row values.This last one I could not figure out. I guess I am looking for a way tohave the StringResourceModelusea ClassResourceLoader for the Gender
class, but it does not seem to allow for this.In the end I got it something working that makes use of keys in myapplication.properties (Gender.MALE, Gender.FEMALE) but I would prefer aseparate properties file.
Best regards,Wilko Hische-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.tree.Tree is not suitable for very big tree

2006-07-24 Thread Matej Knopp
I've just finished new (ajax based) tree (version for wicket 2.0 is in 
svn (/svnroot/wicket/trunk/wicket-sandbox/users/matej_k/tree) )

It's about to be ported to wicket 1.2 and it will likely be a part of 
wicket-extensions. It might help you because it works with TreeNode and 
not DefaultMutableTreeNode.

-Matej

Rice Yeh wrote:
 Hi,
   I find that the implementation of** Wicket.markup.html.tree.Tree** is 
 not suitable for big tree. It seems because it depends on 
 javax.swing.tree.DefaultMutableTreeNode too much, which asks for 
 populating the whole tree before rendering 
 **Wicket.markup.html.tree.Tree. **For my case, the tree is very big but 
 users just click on some tree paths, so I hope I can just populate the 
 tree step by step. However, this seems impossible because 
 **Wicket.markup.html.tree.Tree **renders the tree based on the 
 'children' field in javax.swing.tree.DefaultMutableTreeNode, which I 
 populate in the TreeModel's method getChildCount(Object parent). But 
 this way does not work. Any suggestion?
 
 Regards,
 Rice
 
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CSS background images

2006-07-24 Thread Eelco Hillenius
On 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i think in this case we are talking about a contextpathprepender but for the
 css, not just a variable interpolator.

Yes, that's pretty obvious. I wasn't proposing 'just variable
interpolation', but just explaining what there is now to fix his
problem, and what might be one of the starting points.

 also while the texttemplate stuff works what it does is sinclude the css
 into the page, im talking about a resource so you can have all this stuff
 done once and served/cached through the normal link/ tag.

Like that wicket:head section. That's fine, but we should ultimately
have a mechanism that works both ways. I prefer header contribution
using behaviors in general because it works with any component, at any
place, not just panels. But of course, such a thing should be
consistent with what we have now. But in such a way that it is
optional, as it would be rather expensive to parse any packaged
resource we serve.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Validation message using FormComponent.setType

2006-07-24 Thread Renaut, Jonathan E CTR DISA GIG-CS
Title: Validation message using FormComponent.setType







I need to check that the entry in a text field is a double. I see that NumberValidator is deprecated, and that FormComponent.setType is the replacement. That works fine. However, I do not know, and can not find, how to specify a custom validation message. I have a working properties file that provides custom validation messages for other fields where I'm using string validators, but I don't know how to specify a message for the setType.

I am using a property value of MyForm.myPropertyValue.textField.CustomStringValidator for the string validation, but I do not know what to replace CustomStringValidator with to specify that the type is set by the form.

Any help would be much appreciated.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CSS background images

2006-07-24 Thread Igor Vaynberg
we only need to parse css resources and we only need to parse them once for this to work i think.-IgorOn 7/24/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:On 7/24/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote: i think in this case we are talking about a contextpathprepender but for the css, not just a variable interpolator.Yes, that's pretty obvious. I wasn't proposing 'just variable
interpolation', but just explaining what there is now to fix hisproblem, and what might be one of the starting points. also while the texttemplate stuff works what it does is sinclude the css into the page, im talking about a resource so you can have all this stuff
 done once and served/cached through the normal link/ tag.Like that wicket:head section. That's fine, but we should ultimatelyhave a mechanism that works both ways. I prefer header contribution
using behaviors in general because it works with any component, at anyplace, not just panels. But of course, such a thing should beconsistent with what we have now. But in such a way that it isoptional, as it would be rather expensive to parse any packaged
resource we serve.Eelco-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Rice Yeh
Hi all, I get confused with the usage of Border in the library example. In the Home.html, a non-wicket tag table is in beween span wicket:id =border and /span and a tr for a list view is in the table. My question is how this table is automatically wrapped in the box border. I know that the box border is created in the 
Home.java's super class AuthenticatedWebPage.java. Is any content between span wicket:id =border../span added to the border automatically? But from the source code, the list view is added to the home page not the box border. Is not a borded content should be added to the border? Anyone can explain this to me?
Regards,Rice
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Validation message using FormComponent.setType

2006-07-24 Thread Johan Compagner
it is still the same as the TypeValidator we had before:TypeValidator + . + Classes.simpleName(type)So TypeValidator.DoubleOn 7/24/06, 
Renaut, Jonathan E CTR DISA GIG-CS [EMAIL PROTECTED] wrote:











I need to check that the entry in a text field is a double. I see that NumberValidator is deprecated, and that FormComponent.setType is the replacement. That works fine. However, I do not know, and can not find, how to specify a custom validation message. I have a working properties file that provides custom validation messages for other fields where I'm using string validators, but I don't know how to specify a message for the setType.


I am using a property value of MyForm.myPropertyValue.textField.CustomStringValidator for the string validation, but I do not know what to replace CustomStringValidator with to specify that the type is set by the form.


Any help would be much appreciated.




-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CSS background images

2006-07-24 Thread Eelco Hillenius
Only when we would cache the results.

Eelco


On 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 we only need to parse css resources and we only need to parse them once for
 this to work i think.

 -Igor



 On 7/24/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
 
 On 7/24/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  i think in this case we are talking about a contextpathprepender but for
 the
  css, not just a variable interpolator.

 Yes, that's pretty obvious. I wasn't proposing 'just variable
 interpolation', but just explaining what there is now to fix his
 problem, and what might be one of the starting points.

  also while the texttemplate stuff works what it does is sinclude the css
  into the page, im talking about a resource so you can have all this stuff
  done once and served/cached through the normal link/ tag.

 Like that wicket:head section. That's fine, but we should ultimately
 have a mechanism that works both ways. I prefer header contribution
 using behaviors in general because it works with any component, at any
 place, not just panels. But of course, such a thing should be
 consistent with what we have now. But in such a way that it is
 optional, as it would be rather expensive to parse any packaged
 resource we serve.

 Eelco

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Igor Vaynberg
is the homepage's add() method overridden?-IgorOn 7/24/06, Rice Yeh [EMAIL PROTECTED] wrote:
Hi all, I get confused with the usage of Border in the library example. In the 
Home.html, a non-wicket tag table is in beween span wicket:id =border and /span and a tr for a list view is in the table. My question is how this table is automatically wrapped in the box border. I know that the box border is created in the 
Home.java's super class AuthenticatedWebPage.java. Is any content between span wicket:id =border../span added to the border automatically? But from the source code, the list view is added to the home page not the box border. Is not a borded content should be added to the border? Anyone can explain this to me?
Regards,Rice

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Localisation of Enum properties (Newbie question)

2006-07-24 Thread wilko

Very instructive. I made one change in order to use the properties file for
that Enum class instead of this specific component and everything works fine
now. Thanks a lot.

protected IModel createLabelModel( IModel itemModel ) {
final IModel property = super.createLabelModel( itemModel );
return new AbstractReadOnlyModel() {
public Object getObject(Component component) {
String key = ((Enum)property.getObject( 
component )).name();
//  String s = component.getString( 
key );
String s = 
resourceLoader.loadStringResource( null, key,
Session.get().getLocale(), Session.get().getStyle());
return s;
}
public void detach() {
property.detach();
}   

};  
}



igor.vaynberg wrote:
 
 something like this:
 
 new ChoiceFilteredPropertyColumn() {
 IModel createLabelModel(IModel itemModel) {
final IModel property=super.createLabelModel(itemModel);
return new AbstractReadOnlyModel() {
  Object getObject(Component c) {
 // will localize the enum
 
 c.getString(((Enum)property.getObject(c)).name());
   }
   void ondetach() { property.detach(); }
  }
}
 }
 
 
 -Igor
 
 
 On 7/24/06, Wilko Hische [EMAIL PROTECTED] wrote:


 Hi,

 My apologies if the following is simple, but I am relatively new to
 Wicket (moving from Tapestry),  and wasn't  able to figure out an
 elegant solution:

 I would like to add an Enum property to the Contact class of the
 wicket-phonebook application, say a Gender:

 public enum Gender {
 MALE,
 FEMALE
 }

 class Contact {
 private Gender gender;
 ...
 // getter and setter
 }

 The contact's gender should be shown as another
 ChoiceFilteredPropertyColumn of the DefaultDataTable on the ListContacts
 page.
 So far no problem.

 Now I would like to localise the Gender type with a Gender.properties
 file on the Gender's class path.
 This properties file would then be used for
 1. the columns filter selection
 2. the contact's gender field
 3. the Gender column's row values.

 This last one I could not figure out. I guess I am looking for a way to
 have the StringResourceModel  use  a ClassResourceLoader for the Gender
 class, but it does not seem to allow for this.

 In the end I got it something working that makes use of keys in my
 application.properties (Gender.MALE, Gender.FEMALE) but I would prefer a
 separate properties file.

 Best regards,

 Wilko Hische

 
 
-- 
View this message in context: 
http://www.nabble.com/Localisation-of-Enum-properties-%28Newbie-question%29-tf1992377.html#a5470203
Sent from the Wicket - User forum at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Adding items to GridView using AJAX

2006-07-24 Thread Martijn Dashorst
Also, take note that IE doesn't allow you to replace individual table
rows using inner html and outer html. Such things should be done using
dom manipulation (aargh).

Martijn


On 7/22/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 but what happens if you have a row filled and the user adds another item,
 then you need to create an entire new row w/out repainting the rest. the
 gridview wasnt designed with ajax in mind, so i see two situations - rewrite
 gridview with ajax sutt in mind or create a separate ajax grid view that can
 do all this.

  -Igor



 On 7/22/06, Predrag Spasojevic [EMAIL PROTECTED] wrote:
 
 
 
  What is the best way to add new items to GridView using AJAX?
  The best way I can think of is to put GridView on a container( panel for
 example) and then update the panel using AJAX.
  But using this way the whole table repaints. I can't find a way to repaint
 only affected cells.
  For example : grid has 1 column and 10 rows and there is only 5 cells
 filled. If user adds a new item I would be nice if it is possible just to
 draw
  item at row 6, not to repaint the whole table.
 
  --
  Regards,
  Predrag Spasojevic
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys -- and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Rice Yeh
No.On 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
is the homepage's add() method overridden?-IgorOn 7/24/06, Rice Yeh 
[EMAIL PROTECTED] wrote:

Hi all, I get confused with the usage of Border in the library example. In the 
Home.html, a non-wicket tag table is in beween span wicket:id =border and /span and a tr for a list view is in the table. My question is how this table is automatically wrapped in the box border. I know that the box border is created in the 
Home.java's super class AuthenticatedWebPage.java. Is any content between span wicket:id =border../span added to the border automatically? But from the source code, the list view is added to the home page not the box border. Is not a borded content should be added to the border? Anyone can explain this to me?
Regards,Rice

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list

Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Gwyn Evans
I think it's tied into how the border added to the
AuthenticatedWebPage's parent (the WicketExamplePage instance), which
I think means that anything added to a child page (or indeed to the
WicketExamplePage itself) will be added as child of the border.

/Gwyn

On 24/07/06, Rice Yeh [EMAIL PROTECTED] wrote:
 No.


 On 7/24/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  is the homepage's add() method overridden?
 
  -Igor
 
 
 
 
  On 7/24/06, Rice Yeh  [EMAIL PROTECTED] wrote:
 
  
 
 
  Hi all,
I get confused with the usage of Border in the library example. In the
 Home.html, a non-wicket tag table is in beween span wicket:id
 =border and /span and a tr for a list view is in the table. My
 question is how this table is automatically wrapped in the box border. I
 know that the box border is created in the Home.java's super class
 AuthenticatedWebPage.java. Is any content between span wicket:id
 =border../span added to the border automatically? But from the source
 code, the list view is added to the home page not the box border. Is not a
 borded content should be added to the border? Anyone can explain this to me?
 
  Regards,
 
  Rice

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Igor Vaynberg
ah, it was overridden in the older version. now we have support for special containers that can be transparent to the component hierarchy - which means components dont have to be added directly to them but instead to their parent.
border.setTransparentResolver(true);is the magic call that tells the border to be transparentand since the markup is like thisspan wicket:id=borderwicket:child//span
the contents of extending pages will be rendered inside the border.see the javadoc on border.settransparentresolver or whatever it extends from.-IgorOn 7/24/06, 
Rice Yeh [EMAIL PROTECTED] wrote:
No.On 7/24/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:
is the homepage's add() method overridden?-IgorOn 7/24/06, Rice Yeh 

[EMAIL PROTECTED] wrote:

Hi all, I get confused with the usage of Border in the library example. In the 
Home.html, a non-wicket tag table is in beween span wicket:id =border and /span and a tr for a list view is in the table. My question is how this table is automatically wrapped in the box border. I know that the box border is created in the 
Home.java's super class AuthenticatedWebPage.java. Is any content between span wicket:id =border../span added to the border automatically? But from the source code, the list view is added to the home page not the box border. Is not a borded content should be added to the border? Anyone can explain this to me?
Regards,Rice

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash


http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list


Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list

Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread samyem

As soon as upgrading to the new version, I am getting these types of errors
all over the place:

WicketMessage: Internal error cloning object. Make sure all dependent
objects implement Serializable. Class:
com.wsi.mm.ui.shippingrates.ShippingRateGroupPage

Root cause:

java.io.NotSerializableException:
com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
...
at
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:57)
 at wicket.Session.setAttribute(Session.java:926)
 at wicket.PageMap.put(PageMap.java:526)
 at wicket.Session.touch(Session.java:714)
 at wicket.Page.renderPage(Page.java:422)
 at
wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
...
Complete stack:

wicket.WicketRuntimeException: Internal error cloning object. Make sure all
dependent objects implement Serializable. Class:
com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
at
wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
at wicket.Session.setAttribute(Session.java:926)



It works fine with Wicket 1.2 release, but no more with 1.2.1. Please help!
-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
Sent from the Wicket - User forum at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Igor Vaynberg
are you in development mode?if so this is a debug feature to help you find potential problems when your app will run clustered. it checks your component graphs to make sure everything is serializable as it has to be for clustering
if you are not going to cluster you can turn this off by doing getDebugSettings() in your application.init()in deployment mode this setting is turned off by default-Igor
On 7/24/06, samyem [EMAIL PROTECTED] wrote:
As soon as upgrading to the new version, I am getting these types of errorsall over the place:WicketMessage: Internal error cloning object. Make sure all dependentobjects implement Serializable. Class:
com.wsi.mm.ui.shippingrates.ShippingRateGroupPageRoot cause:java.io.NotSerializableException:com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2at java.io.ObjectOutputStream.writeObject0
(ObjectOutputStream.java:1075)atjava.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)atjava.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1284)at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)atjava.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)...atwicket.protocol.http.HttpSessionStore.setAttribute
(HttpSessionStore.java:57) at wicket.Session.setAttribute(Session.java:926) at wicket.PageMap.put(PageMap.java:526) at wicket.Session.touch(Session.java:714) at wicket.Page.renderPage(Page.java
:422) atwicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)...Complete stack:wicket.WicketRuntimeException: Internal error cloning object. Make sure all
dependent objects implement Serializable. Class:com.wsi.mm.ui.shippingrates.ShippingRateGroupPageatwicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)at wicket.Session.setAttribute
(Session.java:926)It works fine with Wicket 1.2 release, but no more with 1.2.1. Please help!--View this message in context: 
http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531Sent from the Wicket - User forum at Nabble.com.-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread samyem

Thanks. That solved my problem for now.
-- 
View this message in context: 
http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472704
Sent from the Wicket - User forum at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Frank Bille Jensen
Perhaps it should be a FAQ?


On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote:
 are you in development mode?
 
 if so this is a debug feature to help you find potential problems when
 your app will run clustered. it checks your component graphs to make
 sure everything is serializable as it has to be for clustering 
 
 if you are not going to cluster you can turn this off by doing
 getDebugSettings() in your application.init()
 
 in deployment mode this setting is turned off by default
 
 -Igor
 
 
 On 7/24/06, samyem [EMAIL PROTECTED] wrote:
 
 As soon as upgrading to the new version, I am getting these
 types of errors
 all over the place:
 
 WicketMessage: Internal error cloning object. Make sure all
 dependent
 objects implement Serializable. Class: 
 com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
 
 Root cause:
 
 java.io.NotSerializableException:
 com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2
 at java.io.ObjectOutputStream.writeObject0
 (ObjectOutputStream.java:1075)
 at
 
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
 at
 
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
 at
 java.io.ObjectOutputStream.writeOrdinaryObject
 (ObjectOutputStream.java:1284)
 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
 at
 
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
 ...
 at
 wicket.protocol.http.HttpSessionStore.setAttribute
 (HttpSessionStore.java:57)
  at wicket.Session.setAttribute(Session.java:926)
  at wicket.PageMap.put(PageMap.java:526)
  at wicket.Session.touch(Session.java:714)
  at wicket.Page.renderPage(Page.java :422)
  at
 
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
 ...
 Complete stack:
 
 wicket.WicketRuntimeException: Internal error cloning object.
 Make sure all 
 dependent objects implement Serializable. Class:
 com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
 at
 
 wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
 at wicket.Session.setAttribute (Session.java:926)
 
 
 
 It works fine with Wicket 1.2 release, but no more with 1.2.1.
 Please help!
 --
 View this message in context:
 http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
 Sent from the Wicket - User forum at Nabble.com.
 
 
 
 - 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys -- and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Eelco Hillenius
Yeah, that would make sense. We have one on the WIKI don't we?

Eelco


On 7/24/06, Frank Bille Jensen [EMAIL PROTECTED] wrote:
 Perhaps it should be a FAQ?


 On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote:
  are you in development mode?
 
  if so this is a debug feature to help you find potential problems when
  your app will run clustered. it checks your component graphs to make
  sure everything is serializable as it has to be for clustering
 
  if you are not going to cluster you can turn this off by doing
  getDebugSettings() in your application.init()
 
  in deployment mode this setting is turned off by default
 
  -Igor
 
 
  On 7/24/06, samyem [EMAIL PROTECTED] wrote:
 
  As soon as upgrading to the new version, I am getting these
  types of errors
  all over the place:
 
  WicketMessage: Internal error cloning object. Make sure all
  dependent
  objects implement Serializable. Class:
  com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
 
  Root cause:
 
  java.io.NotSerializableException:
  com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2
  at java.io.ObjectOutputStream.writeObject0
  (ObjectOutputStream.java:1075)
  at
  
  java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
  at
  
  java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
  at
  java.io.ObjectOutputStream.writeOrdinaryObject
  (ObjectOutputStream.java:1284)
  at
  
  java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
  at
  
  java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
  ...
  at
  wicket.protocol.http.HttpSessionStore.setAttribute
  (HttpSessionStore.java:57)
   at wicket.Session.setAttribute(Session.java:926)
   at wicket.PageMap.put(PageMap.java:526)
   at wicket.Session.touch(Session.java:714)
   at wicket.Page.renderPage(Page.java :422)
   at
  
  wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
  ...
  Complete stack:
 
  wicket.WicketRuntimeException: Internal error cloning object.
  Make sure all
  dependent objects implement Serializable. Class:
  com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
  at
  
  wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
  at wicket.Session.setAttribute (Session.java:926)
  
 
 
  It works fine with Wicket 1.2 release, but no more with 1.2.1.
  Please help!
  --
  View this message in context:
  http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
  Sent from the Wicket - User forum at Nabble.com.
 
 
  
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
  to share your
  opinions on IT  business topics through brief surveys -- and
  earn cash
  
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys -- and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___ Wicket-user mailing list 
  Wicket-user@lists.sourceforge.net 
  https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash

[Wicket-user] wicket bench 0.3.0

2006-07-24 Thread Joni Freeman
New version of eclipse plugin is available at
http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench

There's no new features (compared to 0.2.9) just fixes and enhancements.
I also wrote a short tutorial on how to use launching features:
http://www.laughingpanda.org/mediawiki/index.php/Launchers

Joni



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Frank Bille Jensen
And on wicketframework.org... Perhaps some links between them?

On Mon, 2006-07-24 at 22:09 +0200, Eelco Hillenius wrote:
 Yeah, that would make sense. We have one on the WIKI don't we?
 
 Eelco
 
 
 On 7/24/06, Frank Bille Jensen [EMAIL PROTECTED] wrote:
  Perhaps it should be a FAQ?
 
 
  On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote:
   are you in development mode?
  
   if so this is a debug feature to help you find potential problems when
   your app will run clustered. it checks your component graphs to make
   sure everything is serializable as it has to be for clustering
  
   if you are not going to cluster you can turn this off by doing
   getDebugSettings() in your application.init()
  
   in deployment mode this setting is turned off by default
  
   -Igor
  
  
   On 7/24/06, samyem [EMAIL PROTECTED] wrote:
  
   As soon as upgrading to the new version, I am getting these
   types of errors
   all over the place:
  
   WicketMessage: Internal error cloning object. Make sure all
   dependent
   objects implement Serializable. Class:
   com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
  
   Root cause:
  
   java.io.NotSerializableException:
   com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2
   at java.io.ObjectOutputStream.writeObject0
   (ObjectOutputStream.java:1075)
   at
   
   java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
   at
   
   java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
   at
   java.io.ObjectOutputStream.writeOrdinaryObject
   (ObjectOutputStream.java:1284)
   at
   
   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
   at
   
   java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
   ...
   at
   wicket.protocol.http.HttpSessionStore.setAttribute
   (HttpSessionStore.java:57)
at wicket.Session.setAttribute(Session.java:926)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:714)
at wicket.Page.renderPage(Page.java :422)
at
   
   wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
   ...
   Complete stack:
  
   wicket.WicketRuntimeException: Internal error cloning object.
   Make sure all
   dependent objects implement Serializable. Class:
   com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
   at
   
   wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
   at wicket.Session.setAttribute (Session.java:926)
   
  
  
   It works fine with Wicket 1.2 release, but no more with 1.2.1.
   Please help!
   --
   View this message in context:
   
   http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
   Sent from the Wicket - User forum at Nabble.com.
  
  
   
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance
   to share your
   opinions on IT  business topics through brief surveys -- and
   earn cash
   
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share 
   your
   opinions on IT  business topics through brief surveys -- and earn cash
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___ Wicket-user mailing list 
   Wicket-user@lists.sourceforge.net 
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys -- and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Eelco Hillenius
And to fix that particular problem, look for the second annonymous
class defined in
com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel. Make sure
that is serializable so that if you would decide to run in clustered
mode some day, or e.g. you want to save sessions to be picked up after
a restart, everything will keep working.

Eelco


On 7/24/06, samyem [EMAIL PROTECTED] wrote:

 Thanks. That solved my problem for now.
 --
 View this message in context: 
 http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472704
 Sent from the Wicket - User forum at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Pierre-Yves

hi,

I am struggling with a new problem : I need to programmatically set the
class attribute of a html link (  element). I tried to extends the Link
element, but unfortunately, the onComponentTag method is final. (For some
reasons, I cannot use another clickable element). Any idea ?

Thanks,

Pierre-Yves

-- 
View this message in context: 
http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727
Sent from the Wicket - User forum at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Pierre-Yves Saumont
hi,

I am now struggling with a new problem : I need to programmatically set 
the class attribute of a html link (a element). I tried to extend the 
Link element, but unfortunately, the onComponentTag method is final. 
(for some reasons, I cannot use another clickable element). Any idea ?

Thanks,

Pierre-Yves


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Use an AttributeModifier on the Link.

Pierre-Yves wrote:
 hi,
 
 I am struggling with a new problem : I need to programmatically set the
 class attribute of a html link (  element). I tried to extends the Link
 element, but unfortunately, the onComponentTag method is final. (For some
 reasons, I cannot use another clickable element). Any idea ?
 
 Thanks,
 
 Pierre-Yves
 

- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
Skype : evanchooly
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFExUi6JnQfEGuJ90MRA0s0AJ991belf8UX9wKGW863i5BcLaeoegCbBILS
S32kUFw0uZ4MeLeAfffLWeQ=
=ce6r
-END PGP SIGNATURE-

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Frank Bille Jensen
link.add(new SimpleAttributeModifier(class, YOUR-CLASS-NAME));

Frank


On Mon, 2006-07-24 at 11:20 -0700, Pierre-Yves wrote:
 hi,
 
 I am struggling with a new problem : I need to programmatically set the
 class attribute of a html link (  element). I tried to extends the Link
 element, but unfortunately, the onComponentTag method is final. (For some
 reasons, I cannot use another clickable element). Any idea ?
 
 Thanks,
 
 Pierre-Yves
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Igor Vaynberg
use an attribute modifier, there are plenty examples on the list. woogle for it at http://woogle.billen.dk/search.link.add(new SimpleAttributeModifier(class,error)); for simple cases
-IgorOn 7/24/06, Pierre-Yves [EMAIL PROTECTED] wrote:
hi,I am struggling with a new problem : I need to programmatically set theclass attribute of a html link (element). I tried to extends the Linkelement, but unfortunately, the onComponentTag method is final. (For some
reasons, I cannot use another clickable element). Any idea ?Thanks,Pierre-Yves--View this message in context: 
http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727Sent from the Wicket - User forum at Nabble.com.-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Eelco Hillenius
link.add(new SimpleAttributeModifier(class, myclass));

or use AttributeModifier if you need more dynamic control.

Eelco


On 7/24/06, Pierre-Yves [EMAIL PROTECTED] wrote:

 hi,

 I am struggling with a new problem : I need to programmatically set the
 class attribute of a html link (  element). I tried to extends the Link
 element, but unfortunately, the onComponentTag method is final. (For some
 reasons, I cannot use another clickable element). Any idea ?

 Thanks,

 Pierre-Yves

 --
 View this message in context: 
 http://www.nabble.com/Controlling-%27class%27-parameter-for-a-link-element-tf1994040.html#a5472727
 Sent from the Wicket - User forum at Nabble.com.


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket 1.2.1: DatePicker + AjaxFormComponentUpdatingBehavior = broken

2006-07-24 Thread Nathan Hamblen
It used to work, but now it doesn't since DatePicker uses an attribute
modifier to change the ID of its target text field. The updating
behavior's javascript is looking for the original ID, so you get a JS error.

Solution is to use AjaxFormSubmitBehavior if you can, since it doesn't
depend on the ID of your particular component.

I assume this will all settle out since IDs are undergoing big changes
anyway on the trunk. Cheers guys, 1.2.1 looks great otherwise.

Nathan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.markup.html.tree.Tree is not suitable for very big tree

2006-07-24 Thread Rice Yeh
Sounds great!On 7/24/06, Matej Knopp [EMAIL PROTECTED] wrote:
I've just finished new (ajax based) tree (version for wicket 2.0 is insvn (/svnroot/wicket/trunk/wicket-sandbox/users/matej_k/tree) )It's about to be ported to wicket 1.2 and it will likely be a part ofwicket-extensions. It might help you because it works with TreeNode and
not DefaultMutableTreeNode.-MatejRice Yeh wrote: Hi, I find that the implementation of** Wicket.markup.html.tree.Tree** is not suitable for big tree. It seems because it depends on
 javax.swing.tree.DefaultMutableTreeNode too much, which asks for populating the whole tree before rendering **Wicket.markup.html.tree.Tree. **For my case, the tree is very big but users just click on some tree paths, so I hope I can just populate the
 tree step by step. However, this seems impossible because **Wicket.markup.html.tree.Tree **renders the tree based on the 'children' field in javax.swing.tree.DefaultMutableTreeNode, which I populate in the TreeModel's method getChildCount(Object parent). But
 this way does not work. Any suggestion? Regards, Rice  -
 Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV 
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net
's Techsay panel and you'll get the chance to share youropinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Rice Yeh
Thank you for your explanation. It is very clear. However, the javadoc is vague for me.RiceOn 7/25/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:ah, it was overridden in the older version. now we have support for special containers that can be transparent to the component hierarchy - which means components dont have to be added directly to them but instead to their parent.
border.setTransparentResolver(true);is the magic call that tells the border to be transparentand since the markup is like thisspan wicket:id=borderwicket:child//span
the contents of extending pages will be rendered inside the border.see the javadoc on border.settransparentresolver or whatever it extends from.
-IgorOn 7/24/06, 
Rice Yeh [EMAIL PROTECTED] wrote:

No.On 7/24/06, Igor Vaynberg 

[EMAIL PROTECTED] wrote:
is the homepage's add() method overridden?-IgorOn 7/24/06, Rice Yeh 


[EMAIL PROTECTED] wrote:

Hi all, I get confused with the usage of Border in the library example. In the 
Home.html, a non-wicket tag table is in beween span wicket:id =border and /span and a tr for a list view is in the table. My question is how this table is automatically wrapped in the box border. I know that the box border is created in the 
Home.java's super class AuthenticatedWebPage.java. Is any content between span wicket:id =border../span added to the border automatically? But from the source code, the list view is added to the home page not the box border. Is not a borded content should be added to the border? Anyone can explain this to me?
Regards,Rice

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash



http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list



Wicket-user@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your


opinions on IT  business topics through brief surveys -- and earn cash


http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list


Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list

Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Marty Backe
Done. Captured in the FAQ: http://www.wicket-wiki.org.uk/wiki/index.php/FAQs

Eelco Hillenius wrote:
 Yeah, that would make sense. We have one on the WIKI don't we?

 Eelco


 On 7/24/06, Frank Bille Jensen [EMAIL PROTECTED] wrote:
   
 Perhaps it should be a FAQ?


 On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote:
 
 are you in development mode?

 if so this is a debug feature to help you find potential problems when
 your app will run clustered. it checks your component graphs to make
 sure everything is serializable as it has to be for clustering

 if you are not going to cluster you can turn this off by doing
 getDebugSettings() in your application.init()

 in deployment mode this setting is turned off by default

 -Igor


 On 7/24/06, samyem [EMAIL PROTECTED] wrote:

 As soon as upgrading to the new version, I am getting these
 types of errors
 all over the place:

 WicketMessage: Internal error cloning object. Make sure all
 dependent
 objects implement Serializable. Class:
 com.wsi.mm.ui.shippingrates.ShippingRateGroupPage

 Root cause:

 java.io.NotSerializableException:
 com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2
 at java.io.ObjectOutputStream.writeObject0
 (ObjectOutputStream.java:1075)
 at
 
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
 at
 
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
 at
 java.io.ObjectOutputStream.writeOrdinaryObject
 (ObjectOutputStream.java:1284)
 at
 
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
 at
 
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
 ...
 at
 wicket.protocol.http.HttpSessionStore.setAttribute
 (HttpSessionStore.java:57)
  at wicket.Session.setAttribute(Session.java:926)
  at wicket.PageMap.put(PageMap.java:526)
  at wicket.Session.touch(Session.java:714)
  at wicket.Page.renderPage(Page.java :422)
  at
 
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
 ...
 Complete stack:

 wicket.WicketRuntimeException: Internal error cloning object.
 Make sure all
 dependent objects implement Serializable. Class:
 com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
 at
 
 wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
 at wicket.Session.setAttribute (Session.java:926)
 


 It works fine with Wicket 1.2 release, but no more with 1.2.1.
 Please help!
 --
 View this message in context:
 http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
 Sent from the Wicket - User forum at Nabble.com.


 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
 opinions on IT  business topics through brief surveys -- and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 

Re: [Wicket-user] Please explain the usage of Border in the library example

2006-07-24 Thread Igor Vaynberg
patches to javadoc are always welcome :) or a bug report so we wont forget. for core committers there are only so many hours in the day.-IgorOn 7/24/06, 
Rice Yeh [EMAIL PROTECTED] wrote:
Thank you for your explanation. It is very clear. However, the javadoc is vague for me.Rice
On 7/25/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:ah, it was overridden in the older version. now we have support for special containers that can be transparent to the component hierarchy - which means components dont have to be added directly to them but instead to their parent.
border.setTransparentResolver(true);is the magic call that tells the border to be transparentand since the markup is like thisspan wicket:id=borderwicket:child//span
the contents of extending pages will be rendered inside the border.see the javadoc on border.settransparentresolver or whatever it extends from.
-IgorOn 7/24/06, 
Rice Yeh [EMAIL PROTECTED]
 wrote:

No.On 7/24/06, Igor Vaynberg 


[EMAIL PROTECTED] wrote:
is the homepage's add() method overridden?-IgorOn 7/24/06, Rice Yeh 



[EMAIL PROTECTED] wrote:

Hi all, I get confused with the usage of Border in the library example. In the 
Home.html, a non-wicket tag table is in beween span wicket:id =border and /span and a tr for a list view is in the table. My question is how this table is automatically wrapped in the box border. I know that the box border is created in the 
Home.java's super class AuthenticatedWebPage.java. Is any content between span wicket:id =border../span added to the border automatically? But from the source code, the list view is added to the home page not the box border. Is not a borded content should be added to the border? Anyone can explain this to me?
Regards,Rice

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash




http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list




Wicket-user@lists.sourceforge.net



https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your



opinions on IT  business topics through brief surveys -- and earn cash



http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list



Wicket-user@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash


http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list


Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list

Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Igor Vaynberg
hi marty, thank you for taking the time. wiki is too slow for me to be usable right now, if you have a sec could you edit the post and change thisgetDebugSettings()...togetDebugSettings().setSerializeSessionAttributes(false);
i didnt have the source with me when i answered and couldnt remember the exact name of the func.-IgorOn 7/24/06, Marty Backe 
[EMAIL PROTECTED] wrote:Done. Captured in the FAQ: 
http://www.wicket-wiki.org.uk/wiki/index.php/FAQsEelco Hillenius wrote: Yeah, that would make sense. We have one on the WIKI don't we? Eelco On 7/24/06, Frank Bille Jensen 
[EMAIL PROTECTED] wrote: Perhaps it should be a FAQ? On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote:
 are you in development mode? if so this is a debug feature to help you find potential problems when your app will run clustered. it checks your component graphs to make
 sure everything is serializable as it has to be for clustering if you are not going to cluster you can turn this off by doing getDebugSettings() in your 
application.init() in deployment mode this setting is turned off by default -Igor On 7/24/06, samyem 
[EMAIL PROTECTED] wrote: As soon as upgrading to the new version, I am getting these types of errors all over the place:
 WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
 Root cause: java.io.NotSerializableException: com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2 at 
java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
 at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject
 (ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) ... at wicket.protocol.http.HttpSessionStore.setAttribute (
HttpSessionStore.java:57)at wicket.Session.setAttribute(Session.java:926)at wicket.PageMap.put(PageMap.java:526)at wicket.Session.touch
(Session.java:714)at wicket.Page.renderPage(Page.java :422)at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java
:226) ... Complete stack: wicket.WicketRuntimeException: Internal error cloning object. Make sure all dependent objects implement Serializable. Class:
 com.wsi.mm.ui.shippingrates.ShippingRateGroupPage at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63) at 
wicket.Session.setAttribute (Session.java:926)  It works fine with Wicket 1.2 release, but no more with 1.2.1. Please help!
 -- View this message in context: http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
 Sent from the Wicket - User forum at Nabble.com. -
 Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and
 earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user -
 Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT  business topics through brief surveys -- and earn cash 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net 

Re: [Wicket-user] Wicket 1.2.1 available

2006-07-24 Thread Marty Backe
No problem. I'm glad to act as a scribe, my tiny contribution to the 
community. As time permits I'll continue to capture some of the wisdom 
from this list in the Wiki.

Marty

Igor Vaynberg wrote:
 hi marty, thank you for taking the time.

 wiki is too slow for me to be usable right now, if you have a sec 
 could you edit the post and change this

 getDebugSettings()...

 to

 getDebugSettings().setSerializeSessionAttributes(false);

 i didnt have the source with me when i answered and couldnt remember 
 the exact name of the func.

 -Igor


 On 7/24/06, *Marty Backe*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Done. Captured in the FAQ:
 http://www.wicket-wiki.org.uk/wiki/index.php/FAQs

 Eelco Hillenius wrote:
  Yeah, that would make sense. We have one on the WIKI don't we?
 
  Eelco
 
 
  On 7/24/06, Frank Bille Jensen  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  Perhaps it should be a FAQ?
 
 
  On Mon, 2006-07-24 at 11:12 -0700, Igor Vaynberg wrote:
 
  are you in development mode?
 
  if so this is a debug feature to help you find potential
 problems when
  your app will run clustered. it checks your component graphs
 to make
  sure everything is serializable as it has to be for clustering
 
  if you are not going to cluster you can turn this off by doing
  getDebugSettings() in your application.init()
 
  in deployment mode this setting is turned off by default
 
  -Igor
 
 
  On 7/24/06, samyem  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  As soon as upgrading to the new version, I am getting
 these
  types of errors
  all over the place:
 
  WicketMessage: Internal error cloning object. Make
 sure all
  dependent
  objects implement Serializable. Class:
  com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
 
  Root cause:
 
  java.io.NotSerializableException:
 
 com.wsi.mm.ui.shippingrates.ShippingRateGroupSideBarPanel$2
  at java.io.ObjectOutputStream.writeObject0
  (ObjectOutputStream.java:1075)
  at
 
 
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)

  at
 
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
  at
  java.io.ObjectOutputStream.writeOrdinaryObject
  (ObjectOutputStream.java:1284)
  at
 
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
  at
 
 
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
  ...
  at
  wicket.protocol.http.HttpSessionStore.setAttribute
  ( HttpSessionStore.java:57)
   at wicket.Session.setAttribute(Session.java:926)
   at wicket.PageMap.put(PageMap.java:526)
   at wicket.Session.touch (Session.java:714)
   at wicket.Page.renderPage(Page.java :422)
   at
 
 
 wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java
 :226)
  ...
  Complete stack:
 
  wicket.WicketRuntimeException: Internal error cloning
 object.
  Make sure all
  dependent objects implement Serializable. Class:
  com.wsi.mm.ui.shippingrates.ShippingRateGroupPage
  at
 
 
 wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:63)
  at wicket.Session.setAttribute (Session.java:926)
  
 
 
  It works fine with Wicket 1.2 release, but no more
 with 1.2.1.
  Please help!
  --
  View this message in context:
 
 http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
 http://www.nabble.com/Wicket-1.2.1-available-tf1992241.html#a5472531
  Sent from the Wicket - User forum at Nabble.com
 http://Nabble.com.
 
 
 
 -

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get
 the chance
  to share your
  opinions on IT  business topics through brief surveys
 -- and
  earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list