[Wicket-user] strip wicket: tags?

2006-10-31 Thread ryan mckinley
Hello-I'm new to wicket, so forgive me if this is posted obviously somewhere...The intro page says, Wicket has a simple setting to strip them all out, resulting in ordinary, standards-compliant HTML.
What tag do I use?  Where can i look to find this?thanks in advanceryan
-
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


Re: [Wicket-user] strip wicket: tags?

2006-10-31 Thread Erik van Oosten
Hi Ryan,

This is covered in 
http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html.

 Erik.


ryan mckinley schreef:
 Hello-

 I'm new to wicket, so forgive me if this is posted obviously somewhere...

 The intro page says, Wicket has a simple setting to strip them all out, 
 resulting in ordinary, standards-compliant HTML.


 What tag do I use?  Where can i look to find this?

 thanks in advance
 ryan
 

 -
 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
   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
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


Re: [Wicket-user] strip wicket: tags?

2006-10-31 Thread Martin Funk
http://cwiki.apache.org/confluence/display/WICKET/How+to+remove+wicket+markup+from+output

mf

ryan mckinley schrieb:
 Hello-

 I'm new to wicket, so forgive me if this is posted obviously somewhere...

 The intro page says, Wicket has a simple setting to strip them all out, 
 resulting in ordinary, standards-compliant HTML.


 What tag do I use?  Where can i look to find this?

 thanks in advance
 ryan
 

 -
 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


Re: [Wicket-user] Live wicket examples demo

2006-10-31 Thread Juergen Donnerstag
I put a cron job in place to restart tomcat everyday. This is because
some examples data can be changed by users and the restart resets
these data. No other reason.

Juergen

On 10/31/06, Ryan [EMAIL PROTECTED] wrote:
 I am still curious as to why the application server stops responding
 from time to time... Perhaps gremlins. =)

 Ryan

 On 10/30/06, Johan Compagner [EMAIL PROTECTED] wrote:
  yes it seems to be a browser with no javascript or something like that
  (the fallback was clicked on and onClick(ajaxtarget) doesn't seem to check
  for null
 
 
  On 10/30/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   From catalina.log: looks like a bug in the example
  
   wicket.WicketRuntimeException: Method onLinkClicked of interface
  wicket.markup.h
   tml.link.ILinkListener targeted at component [MarkupContainer [Component
  id = li
   nk, page = wicket.examples.source.SourcesPage, path =
  0:filespanel:file:1:link.S
   ourcesPage$FilesBrowser$1$1, isVisible = true, isVersioned = true]] threw
  an exc
   eption
   at wicket.RequestListenerInterface.invoke
  (RequestListenerInterface.java:
   174)
   at
  wicket.request.target.component.listener.ListenerInterfaceRequestTarg
   et.processEvents(ListenerInterfaceRequestTarget.java:74)
   at
  wicket.request.compound.DefaultEventProcessorStrategy.processEvents
  (D
   efaultEventProcessorStrategy.java:65)
   at
  wicket.request.compound.AbstractCompoundRequestCycleProcessor.process
   Events(AbstractCompoundRequestCycleProcessor.java:57)
   at wicket.RequestCycle.doProcessEventsAndRespond
  (RequestCycle.java:852)
   at
  wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
   at wicket.RequestCycle.step(RequestCycle.java:966)
   at wicket.RequestCycle.steps(RequestCycle.java :1040)
   at wicket.RequestCycle.request(RequestCycle.java:454)
   at
  wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
   icationFilterChain.java:252)
   at
  org.apache.catalina.core.ApplicationFilterChain.doFilter
  (ApplicationF
   ilterChain.java:173)
   at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
   alve.java:213)
   .
   at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
  (ThreadP
   ool.java:684)
   at java.lang.Thread.run(Thread.java:595)
   Caused by: java.lang.reflect.InvocationTargetException
   at
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
   at java.lang.reflect.Method.invoke (Method.java:585)
   at
  wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:
   163)
   ... 25 more
   Caused by: java.lang.NullPointerException
   at
  wicket.examples.source.SourcesPage$FilesBrowser$1$1.onClick
  (SourcesPa
   ge.java:361)
   at
  wicket.ajax.markup.html.AjaxFallbackLink.onClick(AjaxFallbackLink.jav
   a:91)
   at
  wicket.markup.html.link.Link.onLinkClicked(Link.java:254)
   ... 30 more
  
  
   On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i meant the part where he asked if it was wicket's fault :)
   
   
-igor
   
On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
 I haven't seen any other user mentioning outages. Though Kattare is
 not perfect they provide good support and fast support and it is for
 free.

 Juergen

 On 10/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  juergen you didnt asnwer the second part of the question :)
 
  -igor
 
 
 
  On 10/30/06, Juergen Donnerstag  [EMAIL PROTECTED] 
  wrote:
   Thanks for pointing out, I'm not monitoring it every day I must
  admit.
   Unfortunately I've no access right now, but will fix it in 2-3
  hrs.
  
   Juergen
  
   On 10/30/06, Ryan [EMAIL PROTECTED] wrote:
I am evaluating the wicket framework for a new project and so
  far I
have been very impressed with the quality of the project (and
especially so when considering how far it has come in the last
year).
   
Over the past week I have been referring to the live wicket demo
application only to find it is down with a 502 Proxy Error. Is
this
a symptom of a bad hosting environment or do the wicket examples
  mis
behave and take down the server?
   
Ryan
   
   
 
   
  -

Re: [Wicket-user] varying the presentation of a Panel...

2006-10-31 Thread Erik Brakkee
Thanks for the info.

On 10/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 And ultimately, there is custom markup loading
 (wicket.examples.customresourceloading), though I would only consider
 that when working with 2.0.

 Eelco


 On 10/26/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  exactly, style is a per session setting whereas variation is a per
  component setting.
 
  Juergen
 
  On 10/26/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
   I forgot this:
  
   to switch styles, use Session.setStyle().
  
   Pierre-Yves
  
   Pierre-Yves Saumont a écrit :
Use styles. You can have several templates with different
 extensions,
for example loginPanel_liquid.html and loginPanel_icy.html.
   
Then, when you switch style from liquid to icy, Wicket will
automatically select the appropriate template.
   
Pierre-Yves
   
Erik Brakkee a écrit :
Hi,
   
   
In many cases, it is useful to define an application wide Panel for
commonly recurring parts of the user interface. Nevertheless,
 sometimes,
it is necessary to vary only the presentation of a Panel.
   
As far as I understand it, the Panel is always associated with one
 html
template with the same name as the panel.
   
Hence, my question is how I can easily vary the html template for a
specific instance of a panel without changing it application wide.
 Most
easy would be sometihing like this:
   
// with the default HTML template
Panel p = new Panel();
   
// with a template different from the default.
Panel p = new Panel();
p.setTemplate(xyz.html); // with a class path resource
InputStream is = ...; p.setTemplate(is); // with a template in an
 input
stream.
   
Is something like this already possible?
   
Cheers
  Erik
   
   
   
 
   
   
 -
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
  
 
  -
  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 

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-31 Thread Johan Compagner
PageBeforeAuthententicationRequiredPage:...onSubmit {
 setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class); setRedirect(true)}johanOn 10/31/06, Andrew Berman
 [EMAIL PROTECTED] wrote:Hey Guys,
This is the way I have it working.Unfortunately I'm so swamped with work so I can't put together a QuickStart right now, but maybe within the next couple weeks.
MyApplication:getSecuritySettings().setAuthorizationStrategy( new IAuthorizationStrategy() { @SuppressWarnings(unchecked) public boolean isInstantiationAuthorized(
 Class componentClass) { if (WebPage.class.isAssignableFrom(componentClass)) { if (SignInRequired.class .isAssignableFrom(componentClass)) {
 if (!MySession.get().isAuthenticated()) throw new RestartResponseAtInterceptPageException( SignInPage.class

); } } return true; } public boolean isActionAuthorized(Component component, Action action) {
 return true; } });PageBeforeAuthententicationRequiredPage:...onSubmit {
 setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class);}MyPageThatRequiresAnAuthenticatedUser:MyPageThatRequiresAnAuthenticatedUser implements SignInRequired {
 }SignInPage:...continueToOriginalDestination();So, when I go to the MyPageThatRequiresAnAuthenticatedUser page when I'm not authenticated, it does go to the SignInPage, but after I authenticate, it goes back to PageBeforeAuthententicationRequiredPage instead of MyPageThatRequiresAnAuthenticatedUser.
Hope this helps you understand things and thanks again for your help,AndrewOn 10/28/06, 
Igor Vaynberg 
[EMAIL PROTECTED] wrote:yep, how about a quickstart
-igorOn 10/28/06, Johan Compagner 

[EMAIL PROTECTED] wrote:
so in the onsubmit you first redirect to another pageAnd in the constructor of that page you check it it is signed in?
And if not then you throw that restart exception?That should work fine. johan
On 10/28/06, Andrew Berman [EMAIL PROTECTED]
 wrote:
Igor,For the onSubmit of the form's button, though, I do a setResponsePage(MyPageThatRequiresSignIn.class);So shouldn't the original destination be the page I'm trying to go to?--Andrew

On 10/27/06, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out
the hard way out is to submit an rfe to our jira, and even better a patch-igorOn 10/27/06, 
Andrew Berman 
[EMAIL PROTECTED] wrote:
Hello,Here is my setup:1. I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required. If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.
2. I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1.
The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in. Why is it not going to the original destination?
Thanks,Andrew

-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.nethttps://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.nethttps://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.nethttps://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 

[Wicket-user] Custom form validation/updateFormComponentModels()...

2006-10-31 Thread Erik Brakkee
Hi, I want to implement a custom form validation. Neverhteless, if I use IFormValidator and add the validator to the form, the validator is called before the form component models are updated. As a result I am validating against stale data.
Is there a way to make sure that my validator gets updated component models before it is called? Otherwise, it seems like I need to implement my own validation mechanism in onSubmit(). But then, what is the use of the IFormValidator? 
Cheers Erik
-
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


[Wicket-user] AttributeModifier for TextArea

2006-10-31 Thread dzenanr

Hi all,

I determine the number of rows and columns for a text area using
AttributeModifier. Usually there are more columns than rows and they are
derived properly in my code. However, the text area is always displayed as a
square, as the number of rows determines, by error?, also the number of
columns. The following is my code:

...
private TextArea textArea;
...
int propertySize =
propertyConfig.getDisplayLengthInt();
int areaRowSize = (propertySize/App.AREA_COLUMN_SIZE) + 
1;
String noOfRows = Transformer.string(areaRowSize);
String noOfColumns = 
Transformer.string(App.AREA_COLUMN_SIZE);
setAttribute(rows, noOfRows);
setAttribute(cols, noOfColumns);
...

public void setAttribute(String attributeName, String attributeValue) {
AttributeModifier attributeModifier = new AttributeModifier(
attributeName, true, new Model(attributeValue));
textArea.add(attributeModifier);
}

Thanks for your help.

Dzenan
-- 
View this message in context: 
http://www.nabble.com/AttributeModifier-for-TextArea-tf2546806.html#a7097341
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] strip wicket: tags?

2006-10-31 Thread Gwyn Evans
Just as an aside, please use the http://cwiki.apache.org/WICKET links
in preference to the confluence ones where possible!

/Gwyn

On 31/10/06, Martin Funk [EMAIL PROTECTED] wrote:
 http://cwiki.apache.org/confluence/display/WICKET/How+to+remove+wicket+markup+from+output

 mf

-- 
Download Wicket 1.2.3 now! - http://wicketframework.org

-
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


Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-10-31 Thread Andrew Berman
Tried it already, still doesn't work. I also tried putting a dummy page between the PageBeforeAuthententicationRequiredPage and the 
MyPageThatRequiresAnAuthenticatedUser which simply does a setRedirect to the 
MyPageThatRequiresAnAuthenticatedUser, but still no dice. Does it make sense for me to play around with the PageMap?On 10/31/06, Johan Compagner
 [EMAIL PROTECTED] wrote:
PageBeforeAuthententicationRequiredPage:...onSubmit {
 setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class); setRedirect(true)}johan
On 10/31/06, Andrew Berman
 [EMAIL PROTECTED] wrote:
Hey Guys,
This is the way I have it working.Unfortunately I'm so swamped with work so I can't put together a QuickStart right now, but maybe within the next couple weeks.
MyApplication:getSecuritySettings().setAuthorizationStrategy( new IAuthorizationStrategy() { @SuppressWarnings(unchecked) public boolean isInstantiationAuthorized(
 Class componentClass) { if (WebPage.class.isAssignableFrom(componentClass)) { if (SignInRequired.class .isAssignableFrom(componentClass)) {
 if (!MySession.get().isAuthenticated()) throw new RestartResponseAtInterceptPageException( SignInPage.class


); } } return true; } public boolean isActionAuthorized(Component component, Action action) {
 return true; } });PageBeforeAuthententicationRequiredPage:...onSubmit {
 setResponsePage(MyPageThatRequiresAnAuthenticatedUser.class);}MyPageThatRequiresAnAuthenticatedUser:MyPageThatRequiresAnAuthenticatedUser implements SignInRequired {
 }SignInPage:...continueToOriginalDestination();So, when I go to the MyPageThatRequiresAnAuthenticatedUser page when I'm not authenticated, it does go to the SignInPage, but after I authenticate, it goes back to PageBeforeAuthententicationRequiredPage instead of MyPageThatRequiresAnAuthenticatedUser.
Hope this helps you understand things and thanks again for your help,AndrewOn 10/28/06, 
Igor Vaynberg 
[EMAIL PROTECTED] wrote:yep, how about a quickstart
-igorOn 10/28/06, Johan Compagner 


[EMAIL PROTECTED] wrote:
so in the onsubmit you first redirect to another pageAnd in the constructor of that page you check it it is signed in?
And if not then you throw that restart exception?That should work fine. johan
On 10/28/06, Andrew Berman [EMAIL PROTECTED]
 wrote:
Igor,For the onSubmit of the form's button, though, I do a setResponsePage(MyPageThatRequiresSignIn.class);So shouldn't the original destination be the page I'm trying to go to?--Andrew

On 10/27/06, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out
the hard way out is to submit an rfe to our jira, and even better a patch-igorOn 10/27/06, 
Andrew Berman 
[EMAIL PROTECTED] wrote:
Hello,Here is my setup:1. I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required. If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.
2. I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1.
The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in. Why is it not going to the original destination?
Thanks,Andrew

-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.nethttps://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.nethttps://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





Re: [Wicket-user] (Not a) Bug in getting Model (1.2-snapshot)

2006-10-31 Thread Igor Vaynberg
On 10/30/06, Erik van Oosten [EMAIL PROTECTED] wrote:
If did see something else, if you look at Component#initModel there is afor loop that iterates up to the root of the component hierarchy. In theloop body Component#getModel is called. Note however that getModel will
potentially recursively call initModel again. Is this intentional? Thiswill work of course, but it looks like both a loop and recursion isredundant and could (in some corner cases) cause unexpected behavior.
we have to do that because both getModel() and initModel() are nonfinal. so yes, there are cases where you can do something weird, but it will be a user error because you overrode one or both of those and did not do it properly.
i dont really think there is much we can do about that.-igor
Regards, Erik.Igor Vaynberg wrote: are you sure the parent of the listitem is really the page, i find that unlikely. but your code wouldnt work either way you are adding the label without a model to the listitem. when the
 label renders it is going to look for the first component in its upwards hierarchy with the compound model, and what it should find is the panel with the person compound property model. then it is going to
 try to find [ person.street] property and fail. to fix this you need to make the listitem's model compound as well. the easiest way is toextend PropertyListView instead of ListView
 makes sense? -igor--Erik van Oostenhttp://www.day-to-day-stuff.blogspot.com/-
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.nethttps://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


Re: [Wicket-user] Custom form validation/updateFormComponentModels()...

2006-10-31 Thread Igor Vaynberg
wicket validators do not validate model data, they validate the input. if the input is valid that input is pushed into the componnet's model - that way your component models never contain invalid objects.what you want to work with is 
formcomponent.getconvertedinput()-igorOn 10/31/06, Erik Brakkee [EMAIL PROTECTED] wrote:
Hi, I want to implement a custom form validation. Neverhteless, if I use IFormValidator and add the validator to the form, the validator is called before the form component models are updated. As a result I am validating against stale data.
Is there a way to make sure that my validator gets updated component models before it is called? Otherwise, it seems like I need to implement my own validation mechanism in onSubmit(). But then, what is the use of the IFormValidator? 
Cheers Erik

-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.nethttps://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


Re: [Wicket-user] (Not a) Bug in getting Model (1.2-snapshot)

2006-10-31 Thread Erik van Oosten
I understand. Looks like a solid answer to me.

 Erik.

Igor Vaynberg schreef:
 On 10/30/06, *Erik van Oosten* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 If did see something else, if you look at Component#initModel
 there is a
 for loop that iterates up to the root of the component hierarchy.
 In the
 loop body Component#getModel is called. Note however that getModel
 will
 potentially recursively call initModel again. Is this intentional?
 This
 will work of course, but it looks like both a loop and recursion is
 redundant and could (in some corner cases) cause unexpected behavior.


 we have to do that because both getModel() and initModel() are 
 nonfinal. so yes, there are cases where you can do something weird, 
 but it will be a user error because you overrode one or both of those 
 and did not do it properly.

 i dont really think there is much we can do about that.
  
 -igor

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


-
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


Re: [Wicket-user] varying the presentation of a Panel...

2006-10-31 Thread Jonathan Sharp
Does this also take into account package resources such as:add(HeaderContributor.forCss(getClass(), myPanel.css));So if I have a myPanel_foo.css defined it will chose this instead if style is set to foo?
-jsOn 10/26/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
Use styles. You can have several templates with different extensions,for example loginPanel_liquid.html and loginPanel_icy.html.Then, when you switch style from liquid to icy, Wicket will
automatically select the appropriate template.Pierre-YvesErik Brakkee a écrit : Hi, In many cases, it is useful to define an application wide Panel for commonly recurring parts of the user interface. Nevertheless, sometimes,
 it is necessary to vary only the presentation of a Panel. As far as I understand it, the Panel is always associated with one html template with the same name as the panel. Hence, my question is how I can easily vary the html template for a
 specific instance of a panel without changing it application wide. Most easy would be sometihing like this: // with the default HTML template Panel p = new Panel(); // with a template different from the default.
 Panel p = new Panel(); p.setTemplate(xyz.html); // with a class path resource InputStream is = ...; p.setTemplate(is); // with a template in an input stream. Is something like this already possible?
 Cheers Erik  -
 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 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.nethttps://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


Re: [Wicket-user] DataTable with column styles and widths

2006-10-31 Thread Jan Mikkelsen
I have run into the same requirement and would also like a more elegant 
solution.
Is something in the works or is there more important stuff to do :) ?
Personally I prefer Niels' approach because it is very straightforward.

Thanks,
/Jan


Igor Vaynberg wrote:
 i think what would be even better is if icolumn had add(IBehavior) 
 that would get attached to the header

 right now what you have to do is something like this

 new MyColumn() {
  Component getHeader() {
 Component c= super.getHeader();
 c.add(new MyAttributeModifier());
}
 }

 which is tricky for newbies to figure out.

 -igor



 On 10/14/06, * Niels Bo* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi
  
 I have this suggestion for an extension to the DataTable component
 that will make it easier to set width and ccs styles individually
 on each column.
  
 It involves these files (attached):
  
  IColumn.java - new getWidth() and getStyleName()
  AbstractColumn.java - implement default get/set Width and StyleName
  DataTable.html - added colgroupsection
  DataTable.java - added a few lines.
  
 Usage like:
   IColumn column = new PropetyColumn(...);
   column.setStyleName(rightadjust);
   column.setWidth(200);
  
 Would this be a useful improvement for other Wicket users?
  
 Niels

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


Re: [Wicket-user] DataTable with column styles and widths

2006-10-31 Thread Igor Vaynberg
nothing in the works yet, still trying to figure out the nicest way to do thisniel's idea might be more straightforward but from framework's point of view it is too limited and you can further generalize it to
setStyle(rightadjusted width200) and remove setWidth() completely.then the question becomeswhen you call setStyle() on a column - where does that style go? does it go onto the th? or the tds?
-igorOn 10/31/06, Jan Mikkelsen [EMAIL PROTECTED] wrote:
I have run into the same requirement and would also like a more elegantsolution.Is something in the works or is there more important stuff to do :) ?Personally I prefer Niels' approach because it is very straightforward.
Thanks,/JanIgor Vaynberg wrote: i think what would be even better is if icolumn had add(IBehavior) that would get attached to the header right now what you have to do is something like this
 new MyColumn() {Component getHeader() { Component c= super.getHeader(); c.add(new MyAttributeModifier());} } which is tricky for newbies to figure out.
 -igor On 10/14/06, * Niels Bo* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote: Hi I have this suggestion for an extension to the DataTable component that will make it easier to set width and ccs styles individually on each column.
 It involves these files (attached):IColumn.java - new getWidth() and getStyleName()AbstractColumn.java - implement default get/set Width and StyleName
DataTable.html - added colgroupsectionDataTable.java - added a few lines. Usage like: IColumn column = new PropetyColumn(...); column.setStyleName(rightadjust);
 column.setWidth(200); Would this be a useful improvement for other Wicket users? Niels -
 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 
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 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.nethttps://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


Re: [Wicket-user] varying the presentation of a Panel...

2006-10-31 Thread Eelco Hillenius
It should.

Eelco


On 10/31/06, Jonathan Sharp [EMAIL PROTECTED] wrote:
 Does this also take into account package resources such as:

 add(HeaderContributor.forCss(getClass(), myPanel.css));

 So if I have a myPanel_foo.css defined it will chose this instead if style
 is set to foo?

 -js

-
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


[Wicket-user] What is path to component at WicketTester.assertComponent() ??

2006-10-31 Thread Carfield Yim
Is that mean the package name? Or the Relative path? But why will a
component have relative path? If it is something extend Panel class?

-
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


[Wicket-user] How to unit test component?

2006-10-31 Thread Carfield Yim
I can see method startPanel() at WicketTester but look like there is
no corresponding assertRenderedPanel(), is that only run startPanel()
is enough?

-
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


Re: [Wicket-user] What is path to component at WicketTester.assertComponent() ??

2006-10-31 Thread Igor Vaynberg
i would imagine it is the relative path of the component from the page. every component is in the hierarchy at the top of which is the page.-igorOn 10/31/06, 
Carfield Yim [EMAIL PROTECTED] wrote:
Is that mean the package name? Or the Relative path? But why will acomponent have relative path? If it is something extend Panel class?-
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.nethttps://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


[Wicket-user] Shades Phonebook --- why each object loaded redundantly

2006-10-31 Thread Geoff hendrey
Ragarding the Phonebook, I looked into why each Contact gets selected, AFTER 
the first select has retrieved all of them (N+1 loading).

The DetachableContactModel is holding onto the ID, then getting the object by 
ID when it reattaches.

If I change the detachableContactModel to just go ahead and hang onto the 
Contact, rather than the Contact's ID, then we don't see this N+1 loading.

Could I suggest that rather than hanging on to an ID, we just hang onto the 
Contact itself? It's perfectly OK to serialize the Contact using Shades, as 
well as the Shades DatabaseSession. 

By the way, I believe you will see this same N+1 loading using JDO, since you 
are nulling the reference to Contact. This means, under JDO, the Contact is 
subject to garbage collection from the PM's cache. So if you are not seeing N+1 
behavior under JDO, using this DetachableContactModel, it is only because you 
are getting lucky between passes of the garbage collector. Crank up the load 
and you will see N+1 loading when the GC kicks in, even in JDO.

Perhaps I could benefit from a better explaination of what the 
DetachableContactModel accomplishes.

FYI, I ran the Phonebook with Ibatis, and the same is true. It is doing N+1 
loading, you can see from what get's printed to the screen, that for each 
Contact being shown, a select gets executed. So that also indicates that the 
N+1 loading is a function of the Phonebook DetachableContactModel, not per say, 
the persistence layer.

Here is a cut and paste, running on Ibatis, showing the same N+1 loading. 

2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100263} 
PreparedStatement:SELECT id, firstname, lastname, email, phone FROM CONTACT
   
ORDER BY lastname  asc
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100263} 
Parameters: []
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100263} Types: 
[]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} ResultSet
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Header: [ID, 
FIRSTNAME, LASTNAME, EMAIL, PHONE]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [24, 
Joshua, Hall, [EMAIL PROTECTED], 868-555-2136]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [23, 
Timothy, Hall, [EMAIL PROTECTED], 876-555-3227]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [32, 
Samantha, Johnson, [EMAIL PROTECTED], 885-555-8862]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [1, 
Pamela, Jones, [EMAIL PROTECTED], 228-555-5337]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [18, 
Linda, Moore, [EMAIL PROTECTED], 420-555-4812]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [33, 
Keith, Murray, [EMAIL PROTECTED], 502-555-6611]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [9, 
Virginia, Murray, [EMAIL PROTECTED], 827-555-7136]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [2, 
Jack, Murray, [EMAIL PROTECTED], 284-555-7438]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [31, 
Samantha, Nelson, [EMAIL PROTECTED], 484-555-8236]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [30, 
Debra, Rose, [EMAIL PROTECTED], 426-555-3144]
2006-10-31 21:20:54,234 DEBUG java.sql.Connection - {conn-100265} Connection
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100266} 
PreparedStatement:SELECT id, firstname, lastname, email, phone FROM CONTACT 
WHE
RE ID = ?
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100266} 
Parameters: [24]
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100266} Types: 
[java.lang.Long]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100267} ResultSet
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100267} Header: [ID, 
FIRSTNAME, LASTNAME, EMAIL, PHONE]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100267} Result: [24, 
Joshua, Hall, [EMAIL PROTECTED], 868-555-2136]
2006-10-31 21:20:54,234 DEBUG java.sql.Connection - {conn-100268} Connection
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100269} 
PreparedStatement:SELECT id, firstname, lastname, email, phone FROM CONTACT 
WHE
RE ID = ?
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100269} 
Parameters: [23]
2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100269} Types: 
[java.lang.Long]
2006-10-31 21:20:54,250 DEBUG java.sql.ResultSet - {rset-100270} ResultSet
2006-10-31 21:20:54,250 DEBUG java.sql.ResultSet - {rset-100270} Header: [ID, 
FIRSTNAME, LASTNAME, EMAIL, PHONE]
2006-10-31 21:20:54,250 DEBUG java.sql.ResultSet - {rset-100270} Result: [23, 
Timothy, Hall, [EMAIL PROTECTED], 876-555-3227]
2006-10-31 21:20:54,250 DEBUG java.sql.Connection - 

Re: [Wicket-user] Shades Phonebook --- why each object loaded redundantly

2006-10-31 Thread Igor Vaynberg
ive been meaning to take a look into this and emberassingly enough it was a bug in the ContactDetachableModel which i have now fixed, the reason i didnt see it in hibernate is also explained below...
On 10/31/06, Geoff hendrey [EMAIL PROTECTED] wrote:
Ragarding the Phonebook, I looked into why each Contact gets selected, AFTER the first select has retrieved all of them (N+1 loading).The DetachableContactModel is holding onto the ID, then getting the object by ID when it reattaches.
actually this wasnt the reason. the model i used never thought it was attached (had the full version of the object) so it would load the object twice in the same request. this has now been fixed.
If I change the detachableContactModel to just go ahead and hang onto the Contact, rather than the Contact's ID, then we don't see this N+1 loading.
Could I suggest that rather than hanging on to an ID, we just hang onto the Contact itself? It's perfectly OK to serialize the Contact using Shades, as well as the Shades DatabaseSession.no, it is not perfectly ok. in web apps, at least with current clustering tech, session space is very valuable.
while it would not cause serialization errors it would _dramatically_ increase the size of session that potentially needs to be replicated across the cluster. this is the reason why wicket has detachable models and components. the point of the model is to load the object from the database and make it available for the duration of the request, then at the end of the request dump the object and only retain the minimum state necessary to load that object when it is needed at the next request. this way only that minimum state is replicated across the cluster.
in this particular case we are only storing the id of the object (a long) instead of the entire Contact object.
By the way, I believe you will see this same N+1 loading using JDO, since you are nulling the reference to Contact. This means, under JDO, the Contact is subject to garbage collection from the PM's cache. So if you are not seeing N+1 behavior under JDO, using this DetachableContactModel, it is only because you are getting lucky between passes of the garbage collector. Crank up the load and you will see N+1 loading when the GC kicks in, even in JDO.
the reason why i didnt see this with hibernate and the reason why n+1 and detachable models are not a big problem with hibernate is because it has a second level cache:id-entity.so lets say i load a contact on the first request. it is loaded into the cache and is returned to me. on the next request after the model is detached and tries to load it it now performs a load-by-id, hibernate first tries the second level cache, then the database. since it finds it in the cache there is never a database hit. second level cache is not a subject to GC so that is not a problem.
Perhaps I could benefit from a better explaination of what the DetachableContactModel accomplishes.
see above. -igorFYI, I ran the Phonebook with Ibatis, and the same is true. It is doing N+1 loading, you can see from what get's printed to the screen, that for each Contact being shown, a select gets executed. So that also indicates that the N+1 loading is a function of the Phonebook DetachableContactModel, not per say, the persistence layer.
Here is a cut and paste, running on Ibatis, showing the same N+1 loading.2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100263} PreparedStatement:SELECT id, firstname, lastname, email, phone FROM CONTACT
 ORDER BY lastnameasc2006-10-31 21:20:54,234 DEBUG java.sql.PreparedStatement - {pstm-100263} Parameters: []2006-10-31 21:20:54,234 DEBUG 
java.sql.PreparedStatement - {pstm-100263} Types: []2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} ResultSet2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Header: [ID, FIRSTNAME, LASTNAME, EMAIL, PHONE]
2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [24, Joshua, Hall, [EMAIL PROTECTED], 868-555-2136]2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [23, Timothy, Hall, 
[EMAIL PROTECTED], 876-555-3227]2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [32, Samantha, Johnson, [EMAIL PROTECTED]
, 885-555-8862]2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [1, Pamela, Jones, [EMAIL PROTECTED], 228-555-5337]2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet
 - {rset-100264} Result: [18, Linda, Moore, [EMAIL PROTECTED], 420-555-4812]2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [33, Keith, Murray, 
[EMAIL PROTECTED], 502-555-6611]2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [9, Virginia, Murray, [EMAIL PROTECTED], 827-555-7136]2006-10-31 21:20:54,234 DEBUG 
java.sql.ResultSet - {rset-100264} Result: [2, Jack, Murray, [EMAIL PROTECTED], 284-555-7438]2006-10-31 21:20:54,234 DEBUG java.sql.ResultSet - {rset-100264} Result: [31, Samantha, Nelson, 
[EMAIL 

Re: [Wicket-user] How to unit test component?

2006-10-31 Thread Ingram Chen
for assertRenderedPanel(), it is easy to add by yourself, like: public Panel getLastRenderedPanel() {  return (Panel) getLastRenderedPage().get(DummyPanelPage.TEST_PANEL_ID); } public void assertRenderedPanel(Class panelClass) {
  if (!getLastRenderedPanel().getClass().isAssignableFrom(panelClass)) {   Assert.assertEquals(panelClass.getSimpleName(), getLastRenderedPanel().getClass().getSimpleName());
  } }On 11/1/06, Carfield Yim [EMAIL PROTECTED] wrote:
I can see method startPanel() at WicketTester but look like there isno corresponding assertRenderedPanel(), is that only run startPanel()is enough?-
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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
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


[Wicket-user] Problem of using border

2006-10-31 Thread Carfield Yim
Say I have a page that using a border component like this:

div wicket:id = main_border
table
  THEAD
TR
  TH/TH
  THName/TH
  THEmail/TH
/TR
  /THEAD
  TBODY
span wicket:id = users
TR
  TDa href=# wicket:id=user_idEdit User/a/TD
  TDspan wicket:id=user_name/span/TD
  TDspan wicket:id=user_email/span/TD
/TR
/span
  /TBODY
/table
/div

How can I press span wicket:id = users to the border? In fact this
may be more than one component I like to press... Can I just press the
rendered result to HTML to the border?

-
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


[Wicket-user] Problem of using border

2006-10-31 Thread Carfield Yim
Say I have a page that using a border component like this:

div wicket:id = main_border
table
  THEAD
TR
  TH/TH
  THName/TH
  THEmail/TH
/TR
  /THEAD
  TBODY
span wicket:id = users
TR
  TDa href=# wicket:id=user_idEdit User/a/TD
  TDspan wicket:id=user_name/span/TD
  TDspan wicket:id=user_email/span/TD
/TR
/span
  /TBODY
/table
/div

How can I press span wicket:id = users to the border? In fact this
may be more than one component I like to press... Can I just press the
rendered result to HTML to the border?

-
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


Re: [Wicket-user] Help needed: Best practise or example for first level navigation model

2006-10-31 Thread Eelco Hillenius
And there are projects wicket-extensions-menubar and
wicket-contrib-navmenu in wicket-stuff.

Eelco


On 10/26/06, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
 Hi,

 I'm not sure because I haven't used it yet, but the components in
 wicket.markup.html.tree or wicket.extensions.markup.html.tree
 could be what you're looking for.

 - Johannes

 [EMAIL PROTECTED] wrote:

 Hi there !
 
 I am new in wicket developement and currently setting up my first project. 
 Everythin is so far very fine, but I am still lokking for a best practice 
 navigation model. What I would like to do is someting like one level tree 
 navigation as shown here:
 
 - Topic 1 (goes to Topic1.class)
 -- Topic 1.1 (goes to Topic11.class)
 -- Topic 1.2 (goes to Topic12.class)
 - Topic 2 (goes to Topic2.class)
 -- Topic 2.1 (goes to Topic21.class)
 -- Topic 2.2 (goes to Topic22.class)
 ...
 
 My current idea is to maintain the navigation structure within a ListView 
 for Topic1  Topic2 each having a subsequent view for subtopics. So far I 
 think the idea is not so bad but I do not know how to code wicket aware. 
 Does anyone have some example code how to handle such a navigation 
 structure? Is there some way to put this in a model, so I can mark the 
 current selected page within the model?
 
 Thank you very much,
 
 Maciej A. Bednarz
 
 -
 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