Wicket URL Encryption Key

2010-01-20 Thread MZemeck
On page 331 of Wicket In Action is the following excerpt, Note that you 
should modify the default encryption key that is stored in 
ISecuritySettings to prevent malicious hackers from using the default 
publicly available key as an attack vector.  Does this only pertain to 
when Sun JCE is not available and Wicket defaults to no encryption? From 
what I can gather, the key should be generated by...

KeyInSessionSunJceCryptFactory.java
if (key == null)
{
 // generate new key
 key = session.getId() + . + UUID.randomUUID().toString
();
 session.setAttribute(keyAttr, key);
}



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: @SpringBean injection expensive - a bug?

2010-02-16 Thread MZemeck
Any updates on this issue?  Will there be a fix?




Igor Vaynberg igor.vaynb...@gmail.com 
02/10/2010 06:15 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: @SpringBean injection expensive - a bug?






create a jira issue and a quickstart. thanks.

-igor

On Tue, Feb 9, 2010 at 11:34 AM, Nikita Tovstoles
nikita.tovsto...@gmail.com wrote:
 Wicket's SpringWebApplication is deprecated and the javadoc advocates
 using @SpringBean to inject dependencies at component level. However,
 that appears to be an expensive proposition:

 I have a listView component that renders a (new) ExternalLink subclass
 per item. That subclass uses a service (a singleton spring bean)
 injected via @SpringBean like so:

 @SpringBean
 private MyService service;

 YourKit tells me that when the page is being rendered, 47%(!) of cpu
 time is being spent constructing the subclass, specifically,
 repeatedly calling:
 
org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory,
 Class)

 The above is getting called with vigor from
 SpringBeanLocator.hashCode() -- getBeanName() --
 getBeanNameOfClass(). HashCode() is likely getting called most often
 by AnnotProxyFieldValueFactory.cache during look-ups - which I am
 guessing isn't intentional. Looks like a bug, no?

 If the above is a bug indeed, is the workaround to always specify a
 'name' with @SpringBean?

 Thoughts?
 -nikita
 
+-++-+
 |
 Name
 |   Time (ms)|  Own Time (ms)  |
 
+-++-+
 | 
 
+---com.castanealabs.gui.component.search.CategoryDataViewPanel$1.populateItem(Item)

|  5,430  100 %  | 50  |
 ||

 || |
 |   
 +---com.castanealabs.gui.component.search.ProductImageCell.init(String,
 SiteId, IModel)
 |  2,680   49 %  | 20  |
 || |

 || |
 || 
+---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.init(String,
 SiteId, IModel)
|  2,660   49 %  |  0  |
 ||   |

 || |
 ||   
+---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.init(String,
 SiteId, IModel, IModel)
  |  2,660   49 %  |  0  |
 || |

 || |
 || 
+---com.castanealabs.gui.embedded.TargetedExternalLink.init(String,
 IModel, IModel, String)
   |  2,570   47 %  |  0  |
 || | |

 || |
 || | 
+---org.apache.wicket.markup.html.link.ExternalLink.init(String,
 IModel, IModel)
|  2,570   47 %  |  0  |
 || |   |

 || |
 || |   
+---org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory,
 Class)  |  2,570   47 %  |
  0  |
 || | |

 || |
 || |
 
+---org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(Class)
|  2,570
 47 %  |  0  |
 || |   |

 || |
 || |
 
+---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class)
|  2,570   47 %  |
10  |
 || | |

 || |
 || |
 
+---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class,
 boolean, boolean)|  2,560   47 %  |
   0  |
 || |   |

 || |
 || |
 
+---org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(String,
 RootBeanDefinition)|  2,460
 45 %  | 10  |
 || |   | |

 || |
 || |   |
 
+---org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(String,
 RootBeanDefinition, 

Wicket Stuff Html Validator

2010-02-22 Thread MZemeck
I've added htmlvalidator-1.3.1.jar to my classpath, and the appropriate 
code in the application's init method (see link below).  I get the 
following error when running the app;

java.io.FileNotFoundException: Could not find dtds folder null

http://wicketinaction.com/2009/06/wicket-html-validator-12/



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Wicket Stuff Html Validator

2010-02-23 Thread MZemeck
I downloaded the jar from wicketstuff repo...

Here is the DTD;
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=
http://wicket.apache.org/; xml:lang=en lang=en




Martijn Dashorst martijn.dasho...@gmail.com 
02/23/2010 05:16 AM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Wicket Stuff Html Validator






Another possibility is that you use a DTD that is not available (xhtml 
2.0?)

Martijn

On Tue, Feb 23, 2010 at 9:08 AM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
 Strange, at our company the thing works. Did you build the jar
 yourself? Or did you download it from the wicketstuff repo?

 Martijn

 On Mon, Feb 22, 2010 at 10:24 PM,  mzem...@osc.state.ny.us wrote:
 I've added htmlvalidator-1.3.1.jar to my classpath, and the appropriate
 code in the application's init method (see link below).  I get the
 following error when running the app;

 java.io.FileNotFoundException: Could not find dtds folder null

 http://wicketinaction.com/2009/06/wicket-html-validator-12/



 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email 
from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: [wicket-stuff] project sitemap-xml

2010-03-25 Thread MZemeck
I am also interested in a sitemap project.  Check out the Wiki about 
dynamic sitemap below.  Would be nice if someone encapsulated this into a 
project for reuse.

http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html




Fernando Wermus fernando.wer...@gmail.com 
03/25/2010 11:49 AM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
[wicket-stuff] project sitemap-xml






Hi all,
I need to develop sitemap for my web app. I see that there is a 
project
related to this problem. Which is its situation? Does anyone know?

thanks in advance

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: [wicket-stuff] project sitemap-xml

2010-03-25 Thread MZemeck
I would gather they are eluding to the fact that search engines may not 
index url's with duplicate titles, so its a best practice to provide a 
title unique to the url.




Fernando Wermus fernando.wer...@gmail.com 
03/25/2010 01:46 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: [wicket-stuff] project sitemap-xml






Do you know why it is said in the page you mention, each pages should have 
a
different title?

On Thu, Mar 25, 2010 at 2:41 PM, Fernando Wermus
fernando.wer...@gmail.comwrote:

 Take a look at Xaloon project. It has a plug in about SEO. But It is a 
plug
 in for Brix, I dont know much about it.


 On Thu, Mar 25, 2010 at 2:03 PM, mzem...@osc.state.ny.us wrote:

 I am also interested in a sitemap project.  Check out the Wiki about
 dynamic sitemap below.  Would be nice if someone encapsulated this into 
a
 project for reuse.

 http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html




 Fernando Wermus fernando.wer...@gmail.com
 03/25/2010 11:49 AM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 [wicket-stuff] project sitemap-xml






 Hi all,
I need to develop sitemap for my web app. I see that there is a
 project
 related to this problem. Which is its situation? Does anyone know?

 thanks in advance

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus





 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email 
from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.




 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

WicketFilter Config

2010-03-25 Thread MZemeck
Due to the fact that SpringWebApplication is deprecated, we evaluated 
several ways of configuring Wicket using WicketFilter.  I found 
ContextParamWebApplicationFactory to work with a Spring Annotation 
approach.  SpringWebApplicationFactory also works with a Spring Annotation 
approach, but since it returns a SpringWebApplication (deprecated) should 
it be avoided?

I would love to hear from the Wicket team as far as the recommended 
configuration.



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: WicketFilter Config

2010-03-29 Thread MZemeck
Igor,
We are using WicketFilter with SpringWebApplicationFactory.  This works 
fine, but I've noticed SpringWebApplication has been deprecated, and since 
SpringWebApplicationFactory returns a SpringWebApplication we tried the 
ContextParamWebApplicationFactory which also works.

Which is preferred, since SpringWebApplication is deprecated should we 
avoid using it by using the ContextParamWebApplicationFactory?





Igor Vaynberg igor.vaynb...@gmail.com 
03/25/2010 05:03 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: WicketFilter Config






recommended configuration is on our wiki's spring page

-igor

On Thu, Mar 25, 2010 at 11:22 AM,  mzem...@osc.state.ny.us wrote:
 Due to the fact that SpringWebApplication is deprecated, we evaluated
 several ways of configuring Wicket using WicketFilter.  I found
 ContextParamWebApplicationFactory to work with a Spring Annotation
 approach.  SpringWebApplicationFactory also works with a Spring 
Annotation
 approach, but since it returns a SpringWebApplication (deprecated) 
should
 it be avoided?

 I would love to hear from the Wicket team as far as the recommended
 configuration.



 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: WicketFilter Config

2010-03-29 Thread MZemeck
Yes we are using Spring.  Our Spring configuration works with either the 
SpringWebApplicationFactory or ContextParamWebApplicationFactory.




James Carman jcar...@carmanconsulting.com 
03/29/2010 04:31 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: WicketFilter Config






Do you want/need to configure your application via Spring?

On Mon, Mar 29, 2010 at 4:27 PM, mzem...@osc.state.ny.us wrote:

 Igor,
 We are using WicketFilter with SpringWebApplicationFactory.  This works
 fine, but I've noticed SpringWebApplication has been deprecated, and 
since
 SpringWebApplicationFactory returns a SpringWebApplication we tried the
 ContextParamWebApplicationFactory which also works.

 Which is preferred, since SpringWebApplication is deprecated should we
 avoid using it by using the ContextParamWebApplicationFactory?





 Igor Vaynberg igor.vaynb...@gmail.com
 03/25/2010 05:03 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: WicketFilter Config






 recommended configuration is on our wiki's spring page

 -igor

 On Thu, Mar 25, 2010 at 11:22 AM,  mzem...@osc.state.ny.us wrote:
  Due to the fact that SpringWebApplication is deprecated, we evaluated
  several ways of configuring Wicket using WicketFilter.  I found
  ContextParamWebApplicationFactory to work with a Spring Annotation
  approach.  SpringWebApplicationFactory also works with a Spring
 Annotation
  approach, but since it returns a SpringWebApplication (deprecated)
 should
  it be avoided?
 
  I would love to hear from the Wicket team as far as the recommended
  configuration.
 
 
 
  Notice: This communication, including any attachments, is intended
 solely
  for the use of the individual or entity to which it is addressed. This
  communication may contain information that is protected from 
disclosure
  under State and/or Federal law. Please notify the sender immediately 
if
  you have received this communication in error and delete this email 
from
  your system. If you are not the intended recipient, you are requested
 not
  to disclose, copy, distribute or take any action in reliance on the
  contents of this information.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: resource (css) loading

2010-04-07 Thread MZemeck
One difference I am aware of (and community correct me if I am wrong), 
Wicket GZIPs resources.  So if you directly link to the css using an 
href you will not have that feature.




sahar rostami sahar.rost...@gmail.com 
04/07/2010 11:16 AM
Please respond to
users@wicket.apache.org


To
Wicket User Mailing List users@wicket.apache.org
cc

Subject
resource (css) loading






Hi all,
I want to know how wicket loads css files from location specified in
HeaderContributer or using href in  header?

Thanks in advanced!





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Bigger sites running on wicket?

2010-05-13 Thread MZemeck
Some things I've seen on this forum...Wal-Mart's mobile site, lasvegas.com



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Clean URLs without /?wicket:interface=:0:::: stuff - is it possible?

2010-07-21 Thread MZemeck
https://cwiki.apache.org/WICKET/url-coding-strategies.html




Laurentiu Trica laurentiu.tr...@finalfolder.biz 
07/21/2010 11:24 AM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Clean URLs without /?wicket:interface=:0 stuff - is it possible?






Hello,

I'm rather new to wicket but I'm amazed about it's power.

I still have a bothering question: is it possible to make the website with
clean URLs?

I mean I want to have the first page like /welcome, the about page like
/about and somehow to get rid of the /?wicket:interface=:0 stuff - 
this
appears if you click the banner twice, for example...
This is for usability issues as is for SEO reasons.

Thank you in advance.

-- 
Best regards,
Laurentiu Trica





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Passing raw value to html

2010-07-26 Thread MZemeck
Let me know if you find a solution for this...




Sam Barrow s...@sambarrow.com 
07/26/2010 11:43 AM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Passing raw value to html






Is there a way to pass a raw value to be displayed in a wicket markup
file? I'm trying to create a google analytics panel that takes an id
string and puts it directly in the markup with no tag.

script type=text/javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', ${MY_RAW_VALUE}]);
_gaq.push(['_trackPageview']);
(function() {
  var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
/script


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Passing raw value to html

2010-07-26 Thread MZemeck
I saw the replies and the markmail link, thanks guys...




mzem...@osc.state.ny.us 
07/26/2010 01:51 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Passing raw value to html






Let me know if you find a solution for this...




Sam Barrow s...@sambarrow.com 
07/26/2010 11:43 AM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Passing raw value to html






Is there a way to pass a raw value to be displayed in a wicket markup
file? I'm trying to create a google analytics panel that takes an id
string and puts it directly in the markup with no tag.

script type=text/javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', ${MY_RAW_VALUE}]);
_gaq.push(['_trackPageview']);
(function() {
  var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
/script


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.




Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Error integrating with Hibernate and Spring

2010-07-27 Thread MZemeck
Which version of hibernate?  Try the latest 3.5 version?




Luther Baker lutherba...@gmail.com 
07/26/2010 06:55 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Error integrating with Hibernate and Spring






I'm sure I'm doing something incorrectly. For the most part, I copied
the Spring config file from
http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
but upon startup, I'm getting the following error. Specifically, I
can't find where the listener type [wicketApplication] is
implemented/exists/read ...

Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory' defined in class path
resource [com/fuzzybearings/projx/config/spring.sb.xml]: Invocation of
init method failed; nested exception is
org.hibernate.MappingException: Unrecognized listener type
[wicketApplication]
 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
 at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
 at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
 at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 ... 51 more

Both jetty:run and tomcat:run do this.

Thanks in advance for any suggestions,

-Luther




Here is the actual config I am using:

?xml version=1.0 encoding=UTF-8?
beans default-autowire=autodetect
xmlns=http://www.springframework.org/schema/beans;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:aop=http://www.springframework.org/schema/aop;
xmlns:tx=http://www.springframework.org/schema/tx;
xmlns:context=http://www.springframework.org/schema/context;
xsi:schemaLocation=http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
   http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
   http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
   http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd;

bean id=wicketApplication
class=com.fuzzybearings.projx.WicketApplication /

bean id=placeholderConfigurer
 
class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
property name=ignoreUnresolvablePlaceholders value=false /
property name=systemPropertiesModeName
value=SYSTEM_PROPERTIES_MODE_OVERRIDE /
property name=ignoreResourceNotFound value=false /
property name=locations
list

valueclasspath:/com/fuzzybearings/projx/config/application.properties/value
/list
/property
/bean

bean id=dataSource class=org.apache.commons.dbcp.BasicDataSource
property name=driverClassName
value${jdbc.driver}/value
/property
property name=url
value${jdbc.url}/value
/property
property name=username
value${jdbc.username}/value
/property
property name=password
value${jdbc.password}/value
/property
/bean

tx:annotation-driven transaction-manager=txManager /

!-- hibernate session factory --
bean id=sessionFactory
 
class=org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean
property name=dataSource ref=dataSource /
property name=hibernateProperties
props
prop key=hibernate.hbm2ddl.auto${hibernate.ddl}/prop
prop key=hibernate.dialect${hibernate.dialect}/prop
prop key=hibernate.connection.pool_size5/prop
prop
key=hibernate.current_session_context_classthread/prop
prop key=hibernate.show_sqltrue/prop
prop 
key=hibernate.cglib.use_reflection_optimizertrue/prop
prop
key=hibernate.cache.provider_classorg.hibernate.cache.EhCacheProvider/prop
prop
key=hibernate.hibernate.cache.use_query_cachetrue/prop
/props
/property
property name=packagesToScan
 

Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
Problem: Encrypt sensitive form fields (ie ssn) on client (javascript)

Solution:  Create behavior which fires javascript to hash field value and 
replace original value (###-##-)

This sounds simple enough, but since the length of the hashed string will 
be considerably longer than the original string, validations on this field 
(ssn must be nine digits) will fail.

I've considered placing the hashed value into a hidden field, but then the 
unencrypted value will be posted and the hashing accomplishes nothing.  If 
I clear out the original value I lose server-side validations.  Anyone 
have any ideas of the best way to accomplish this?



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
I totally agree, seems like double-duty that accomplishes very little, and 
actually adds overhead.  But this is another debate and the feature has 
been requested and must be implemented as I described...




Craig McIlwee craig.mcil...@openroadsconsulting.com 
08/02/2010 03:06 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






Why not use a password field to keep the value hidden and SSL to make sure 
there are no man in the middle attacks.  Seems like you are making it too 
hard?

- Original Message -
From: mzem...@osc.state.ny.us
To:
users@wicket.apache.org
Sent: Mon, 02 Aug 2010 15:00:55 -0400
Subject:
Encrypt Form Fields Using JS


 Problem: Encrypt sensitive form fields (ie ssn) on client (javascript)
 
 Solution:  Create behavior which fires javascript to hash field value 
and 
 replace original value (###-##-)
 
 This sounds simple enough, but since the length of the hashed string 
will 
 be considerably longer than the original string, validations on this 
field 
 (ssn must be nine digits) will fail.
 
 I've considered placing the hashed value into a hidden field, but then 
the 
 unencrypted value will be posted and the hashing accomplishes nothing. 
If 
 I clear out the original value I lose server-side validations.  Anyone 
 have any ideas of the best way to accomplish this?
 
 
 
 Notice: This communication, including any attachments, is intended 
solely 
 for the use of the individual or entity to which it is addressed. This 
 communication may contain information that is protected from disclosure 
 under State and/or Federal law. Please notify the sender immediately if 
 you have received this communication in error and delete this email from 

 your system. If you are not the intended recipient, you are requested 
not 
 to disclose, copy, distribute or take any action in reliance on the 
 contents of this information.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
Thanks for the reply, that would work however per our business rules the 
encryption must be one-way and will not be decrypted...




Igor Vaynberg igor.vaynb...@gmail.com 
08/02/2010 03:23 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






override getinputasarray() on the field and decrypt it there, that way
wicket sees the decrypted value

-igor

On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
 I totally agree, seems like double-duty that accomplishes very little, 
and
 actually adds overhead.  But this is another debate and the feature has
 been requested and must be implemented as I described...




 Craig McIlwee craig.mcil...@openroadsconsulting.com
 08/02/2010 03:06 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Why not use a password field to keep the value hidden and SSL to make 
sure
 there are no man in the middle attacks.  Seems like you are making it 
too
 hard?

 - Original Message -
 From: mzem...@osc.state.ny.us
 To:
 users@wicket.apache.org
 Sent: Mon, 02 Aug 2010 15:00:55 -0400
 Subject:
 Encrypt Form Fields Using JS


 Problem: Encrypt sensitive form fields (ie ssn) on client (javascript)

 Solution:  Create behavior which fires javascript to hash field value
 and
 replace original value (###-##-)

 This sounds simple enough, but since the length of the hashed string
 will
 be considerably longer than the original string, validations on this
 field
 (ssn must be nine digits) will fail.

 I've considered placing the hashed value into a hidden field, but then
 the
 unencrypted value will be posted and the hashing accomplishes nothing.
 If
 I clear out the original value I lose server-side validations.  Anyone
 have any ideas of the best way to accomplish this?



 Notice: This communication, including any attachments, is intended
 solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email 
from

 your system. If you are not the intended recipient, you are requested
 not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Encrypt Form Fields Using JS

2010-08-02 Thread MZemeck
The only thing I've come up with to meet all the requirements is to set 
the hashed value to a hidden field, and replace the original value 
(123-45-6789) with all nines (999-99-).  This would allow the 
validator to pass but puts a requirement on the js to validate the 
original value, ie it should not replace a 'Q' with a '9'




Igor Vaynberg igor.vaynb...@gmail.com 
08/02/2010 03:46 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






so how do you expect to validate on server side???

-igor

On Mon, Aug 2, 2010 at 12:29 PM,  mzem...@osc.state.ny.us wrote:
 Thanks for the reply, that would work however per our business rules the
 encryption must be one-way and will not be decrypted...




 Igor Vaynberg igor.vaynb...@gmail.com
 08/02/2010 03:23 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 override getinputasarray() on the field and decrypt it there, that way
 wicket sees the decrypted value

 -igor

 On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
 I totally agree, seems like double-duty that accomplishes very little,
 and
 actually adds overhead.  But this is another debate and the feature has
 been requested and must be implemented as I described...




 Craig McIlwee craig.mcil...@openroadsconsulting.com
 08/02/2010 03:06 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Why not use a password field to keep the value hidden and SSL to make
 sure
 there are no man in the middle attacks.  Seems like you are making it
 too
 hard?

 - Original Message -
 From: mzem...@osc.state.ny.us
 To:
 users@wicket.apache.org
 Sent: Mon, 02 Aug 2010 15:00:55 -0400
 Subject:
 Encrypt Form Fields Using JS


 Problem: Encrypt sensitive form fields (ie ssn) on client (javascript)

 Solution:  Create behavior which fires javascript to hash field value
 and
 replace original value (###-##-)

 This sounds simple enough, but since the length of the hashed string
 will
 be considerably longer than the original string, validations on this
 field
 (ssn must be nine digits) will fail.

 I've considered placing the hashed value into a hidden field, but then
 the
 unencrypted value will be posted and the hashing accomplishes nothing.
 If
 I clear out the original value I lose server-side validations.  Anyone
 have any ideas of the best way to accomplish this?



 Notice: This communication, including any attachments, is intended
 solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from 
disclosure
 under State and/or Federal law. Please notify the sender immediately 
if
 you have received this communication in error and delete this email
 from

 your system. If you are not the intended recipient, you are requested
 not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This communication, including any attachments, is intended
 solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email 
from
 your system. If you are not the intended recipient, you are requested
 not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
Ok, the value will be hashed, one-way...anyone have any ideas?




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/02/2010 04:42 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






Then it's not encryption.  Encrypted data should be readable to those 
who
have the key.

On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:

 Thanks for the reply, that would work however per our business rules the
 encryption must be one-way and will not be decrypted...




 Igor Vaynberg igor.vaynb...@gmail.com
 08/02/2010 03:23 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 override getinputasarray() on the field and decrypt it there, that way
 wicket sees the decrypted value

 -igor

 On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
  I totally agree, seems like double-duty that accomplishes very little,
 and
  actually adds overhead.  But this is another debate and the feature 
has
  been requested and must be implemented as I described...
 
 
 
 
  Craig McIlwee craig.mcil...@openroadsconsulting.com
  08/02/2010 03:06 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  Why not use a password field to keep the value hidden and SSL to make
 sure
  there are no man in the middle attacks.  Seems like you are making it
 too
  hard?
 
  - Original Message -
  From: mzem...@osc.state.ny.us
  To:
  users@wicket.apache.org
  Sent: Mon, 02 Aug 2010 15:00:55 -0400
  Subject:
  Encrypt Form Fields Using JS
 
 
  Problem: Encrypt sensitive form fields (ie ssn) on client 
(javascript)
 
  Solution:  Create behavior which fires javascript to hash field value
  and
  replace original value (###-##-)
 
  This sounds simple enough, but since the length of the hashed string
  will
  be considerably longer than the original string, validations on this
  field
  (ssn must be nine digits) will fail.
 
  I've considered placing the hashed value into a hidden field, but 
then
  the
  unencrypted value will be posted and the hashing accomplishes 
nothing.
  If
  I clear out the original value I lose server-side validations. Anyone
  have any ideas of the best way to accomplish this?
 
 
 
  Notice: This communication, including any attachments, is intended
  solely
  for the use of the individual or entity to which it is addressed. 
This
  communication may contain information that is protected from 
disclosure
  under State and/or Federal law. Please notify the sender immediately 
if
  you have received this communication in error and delete this email
 from
 
  your system. If you are not the intended recipient, you are requested
  not
  to disclose, copy, distribute or take any action in reliance on the
  contents of this information.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  Notice: This communication, including any attachments, is intended
 solely
  for the use of the individual or entity to which it is addressed. This
  communication may contain information that is protected from 
disclosure
  under State and/or Federal law. Please notify the sender immediately 
if
  you have received this communication in error and delete this email 
from
  your system. If you are not the intended recipient, you are requested
 not
  to disclose, copy, distribute or take any action in reliance on the
  contents of this information.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
An already existing system is being rewritten and the db currently stores 
hashed values.  I don't disagree there are better ways to reach the end 
goal, but this is the spec I am working with.




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/03/2010 01:45 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






And, what does that buy you?  Why do you want to submit one-way hashed
values?

On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:

 Ok, the value will be hashed, one-way...anyone have any ideas?




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/02/2010 04:42 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Then it's not encryption.  Encrypted data should be readable to those
 who
 have the key.

 On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:

  Thanks for the reply, that would work however per our business rules 
the
  encryption must be one-way and will not be decrypted...
 
 
 
 
  Igor Vaynberg igor.vaynb...@gmail.com
  08/02/2010 03:23 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  override getinputasarray() on the field and decrypt it there, that way
  wicket sees the decrypted value
 
  -igor
 
  On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
   I totally agree, seems like double-duty that accomplishes very 
little,
  and
   actually adds overhead.  But this is another debate and the feature
 has
   been requested and must be implemented as I described...
  
  
  
  
   Craig McIlwee craig.mcil...@openroadsconsulting.com
   08/02/2010 03:06 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   Why not use a password field to keep the value hidden and SSL to 
make
  sure
   there are no man in the middle attacks.  Seems like you are making 
it
  too
   hard?
  
   - Original Message -
   From: mzem...@osc.state.ny.us
   To:
   users@wicket.apache.org
   Sent: Mon, 02 Aug 2010 15:00:55 -0400
   Subject:
   Encrypt Form Fields Using JS
  
  
   Problem: Encrypt sensitive form fields (ie ssn) on client
 (javascript)
  
   Solution:  Create behavior which fires javascript to hash field 
value
   and
   replace original value (###-##-)
  
   This sounds simple enough, but since the length of the hashed 
string
   will
   be considerably longer than the original string, validations on 
this
   field
   (ssn must be nine digits) will fail.
  
   I've considered placing the hashed value into a hidden field, but
 then
   the
   unencrypted value will be posted and the hashing accomplishes
 nothing.
   If
   I clear out the original value I lose server-side validations. 
Anyone
   have any ideas of the best way to accomplish this?
  
  
  
   Notice: This communication, including any attachments, is intended
   solely
   for the use of the individual or entity to which it is addressed.
 This
   communication may contain information that is protected from
 disclosure
   under State and/or Federal law. Please notify the sender 
immediately
 if
   you have received this communication in error and delete this email
  from
  
   your system. If you are not the intended recipient, you are 
requested
   not
   to disclose, copy, distribute or take any action in reliance on the
   contents of this information.
  
   
-
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
   Notice: This communication, including any attachments, is intended
  solely
   for the use of the individual or entity to which it is addressed. 
This
   communication may contain information that is protected from
 disclosure
   under State and/or Federal law. Please notify the sender immediately
 if
   you have received this communication in error and delete this email
 from
   your system. If you are not the intended recipient, you are 
requested
  not
   to disclose, copy, distribute or take any action in reliance on the
   contents of this information.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  Notice: This communication, including any attachments, is intended
 solely
  for the use of the individual or entity to which it is addressed. This
  communication may contain information that is protected from 
disclosure
  under State and/or Federal law. Please notify the sender immediately 
if
  you have received this 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
Correct




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/03/2010 02:12 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






So, you never need to get the original values out of the database?

On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:

 An already existing system is being rewritten and the db currently 
stores
 hashed values.  I don't disagree there are better ways to reach the end
 goal, but this is the spec I am working with.




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 01:45 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 And, what does that buy you?  Why do you want to submit one-way hashed
 values?

 On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:

  Ok, the value will be hashed, one-way...anyone have any ideas?
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/02/2010 04:42 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  Then it's not encryption.  Encrypted data should be readable to 
those
  who
  have the key.
 
  On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
 
   Thanks for the reply, that would work however per our business rules
 the
   encryption must be one-way and will not be decrypted...
  
  
  
  
   Igor Vaynberg igor.vaynb...@gmail.com
   08/02/2010 03:23 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   override getinputasarray() on the field and decrypt it there, that 
way
   wicket sees the decrypted value
  
   -igor
  
   On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
I totally agree, seems like double-duty that accomplishes very
 little,
   and
actually adds overhead.  But this is another debate and the 
feature
  has
been requested and must be implemented as I described...
   
   
   
   
Craig McIlwee craig.mcil...@openroadsconsulting.com
08/02/2010 03:06 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
Why not use a password field to keep the value hidden and SSL to
 make
   sure
there are no man in the middle attacks.  Seems like you are making
 it
   too
hard?
   
- Original Message -
From: mzem...@osc.state.ny.us
To:
users@wicket.apache.org
Sent: Mon, 02 Aug 2010 15:00:55 -0400
Subject:
Encrypt Form Fields Using JS
   
   
Problem: Encrypt sensitive form fields (ie ssn) on client
  (javascript)
   
Solution:  Create behavior which fires javascript to hash field
 value
and
replace original value (###-##-)
   
This sounds simple enough, but since the length of the hashed
 string
will
be considerably longer than the original string, validations on
 this
field
(ssn must be nine digits) will fail.
   
I've considered placing the hashed value into a hidden field, but
  then
the
unencrypted value will be posted and the hashing accomplishes
  nothing.
If
I clear out the original value I lose server-side validations.
 Anyone
have any ideas of the best way to accomplish this?
   
   
   
Notice: This communication, including any attachments, is 
intended
solely
for the use of the individual or entity to which it is addressed.
  This
communication may contain information that is protected from
  disclosure
under State and/or Federal law. Please notify the sender
 immediately
  if
you have received this communication in error and delete this 
email
   from
   
your system. If you are not the intended recipient, you are
 requested
not
to disclose, copy, distribute or take any action in reliance on 
the
contents of this information.
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
   
   
Notice: This communication, including any attachments, is intended
   solely
for the use of the individual or entity to which it is addressed.
 This
communication may contain information that is protected from
  disclosure
under State and/or Federal law. Please notify the sender 
immediately
  if
you have received this communication in error and delete this 
email
  from
your system. If you are not the intended recipient, you are
 requested
   not
to disclose, copy, distribute or take any action in reliance on 
the
contents of this 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
I have to laugh because I also agree its kind of crazy...

Yes the original value must be hashed by the client.  The reasoning being 
that SSL could be broken and expose the data.  I don't necessarily agree 
but thats how the original system was written.




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/03/2010 02:19 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






And, you don't want to convert it before you store it in the db?  It must 
be
converted at the browser level?  Is there any more information you can 
give
us that would make this requirement not sound so crazy? :)

On Tue, Aug 3, 2010 at 2:15 PM, mzem...@osc.state.ny.us wrote:

 Correct




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 02:12 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 So, you never need to get the original values out of the database?

 On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:

  An already existing system is being rewritten and the db currently
 stores
  hashed values.  I don't disagree there are better ways to reach the 
end
  goal, but this is the spec I am working with.
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/03/2010 01:45 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  And, what does that buy you?  Why do you want to submit one-way hashed
  values?
 
  On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:
 
   Ok, the value will be hashed, one-way...anyone have any ideas?
  
  
  
  
   James Carman ja...@carmanconsulting.com
   Sent by: jcar...@carmanconsulting.com
   08/02/2010 04:42 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   Then it's not encryption.  Encrypted data should be readable to
 those
   who
   have the key.
  
   On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
  
Thanks for the reply, that would work however per our business 
rules
  the
encryption must be one-way and will not be decrypted...
   
   
   
   
Igor Vaynberg igor.vaynb...@gmail.com
08/02/2010 03:23 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
override getinputasarray() on the field and decrypt it there, that
 way
wicket sees the decrypted value
   
-igor
   
On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
 I totally agree, seems like double-duty that accomplishes very
  little,
and
 actually adds overhead.  But this is another debate and the
 feature
   has
 been requested and must be implemented as I described...




 Craig McIlwee craig.mcil...@openroadsconsulting.com
 08/02/2010 03:06 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Why not use a password field to keep the value hidden and SSL to
  make
sure
 there are no man in the middle attacks.  Seems like you are 
making
  it
too
 hard?

 - Original Message -
 From: mzem...@osc.state.ny.us
 To:
 users@wicket.apache.org
 Sent: Mon, 02 Aug 2010 15:00:55 -0400
 Subject:
 Encrypt Form Fields Using JS


 Problem: Encrypt sensitive form fields (ie ssn) on client
   (javascript)

 Solution:  Create behavior which fires javascript to hash field
  value
 and
 replace original value (###-##-)

 This sounds simple enough, but since the length of the hashed
  string
 will
 be considerably longer than the original string, validations on
  this
 field
 (ssn must be nine digits) will fail.

 I've considered placing the hashed value into a hidden field, 
but
   then
 the
 unencrypted value will be posted and the hashing accomplishes
   nothing.
 If
 I clear out the original value I lose server-side validations.
  Anyone
 have any ideas of the best way to accomplish this?



 Notice: This communication, including any attachments, is
 intended
 solely
 for the use of the individual or entity to which it is 
addressed.
   This
 communication may contain information that is protected from
   disclosure
 under State and/or Federal law. Please notify the sender
  immediately
   if
 you have received this communication in error and delete this
 email
from

 your system. If you are not the 

Re: Encrypt Form Fields Using JS

2010-08-06 Thread MZemeck
I should make it clear, the intention is to use SSL and JS one-way hash, 
not just JS...




Jeremy Thomerson jer...@wickettraining.com 
08/03/2010 03:49 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






On Tue, Aug 3, 2010 at 1:24 PM, mzem...@osc.state.ny.us wrote:

 I have to laugh because I also agree its kind of crazy...

 Yes the original value must be hashed by the client.  The reasoning 
being
 that SSL could be broken and expose the data.  I don't necessarily agree
 but thats how the original system was written.


Client side JavaScript can certainly be broken *MUCH* easier than SSL.
 Perhaps the following reference [1] will help you resolve this situation 
:)

1 -
http://jobsearch.monster.com/PowerSearch.aspx?tjt=Programmerwhere=New%20York



-- 
Jeremy Thomerson
http://www.wickettraining.com





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
On a related note...

The Wicket Strings class provides the method stripJSessionId...
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/util/string/Strings.html#stripJSessionId(java.lang.CharSequence)

And the Wicket SEO wiki provides a way to remove the JSessionId...
https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html

@Override
protected WebResponse newWebResponse(final HttpServletResponse 
servletResponse) {
 return new BufferedWebResponse(servletResponse) {
 @Override
 public CharSequence encodeURL(final 
CharSequence url) {
 final String agent = 
((WebRequest)RequestCycle.get
().getRequest()).getHttpServletRequest().getHeader(User-Agent);

 return isAgent(agent) ? 
url : super.encodeURL(url);
 }
 };
}
Would it be nicer to do something like this...

@Override
protected WebResponse newWebResponse(final HttpServletResponse 
servletResponse) {
 return new BufferedWebResponse(servletResponse) {
 @Override
 public CharSequence encodeURL(final 
CharSequence url) {
 final String agent = 
((WebRequest) RequestCycle.get
().getRequest()).getHttpServletRequest().getHeader(User-Agent);
 CharSequence encodedUrl = 
super.encodeURL(url);
 return isAgent(agent) ? 
Strings.stripJSessionId(encodedUrl) : encodedUrl;
 }
 };
}


I understand why you would want to remove the jsessionid for bots, would 
it be safe to remove the jsessionid for all users to pretty up the urls? 
 What are the implications of this and which method described above would 
be preferred?






Martin Makundi martin.maku...@koodaripalvelut.com 
08/04/2010 02:21 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Wicket adds jsessionid to redirect onto external page






Cool ;)

2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Right, it's really a jetty bug, and looks like it was fixed recently:

 http://dev.eclipse.org/mhonarc/lists/jetty-commit/msg01598.html


 On Aug 4, 2010, at 10:46 AM, Igor Vaynberg wrote:

 afair the servlet spec says all urls have to be passed through that
 method and thats what we do. if its not working the problem is with
 the servlet container.

 -igor

 On Wed, Aug 4, 2010 at 10:39 AM, Martin Makundi
 martin.maku...@koodaripalvelut.com wrote:
 Like a sledgehammer ;)

 But yes, so it's a bug in wicket framework design.

 **
 Martin

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Ah, much better than my approach.

 On Aug 4, 2010, at 8:25 AM, Martin Makundi wrote:

 Hi!

 I worked around like this:

((org.mortbay.jetty.Request) ((WebRequest)
 
RequestCycle.get().getRequest()).getHttpServletRequest()).setSessionManager(null);


 **
 Martin

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Hi Martin,
 Yes, I've encountered this.  I think it's a bug in WebResponse. 
 The culprit
 is the line:
 url = httpServletResponse.encodeRedirectURL(url);
 The url should only be encoded when redirecting to the originating 
site, but
 the code doesn't check.
 One workaround (short of fixing the bug) is to duplicate the 
functionality
 of WebResponse, commenting out the offending line.  Then use it as 
such:
  getRequestCycle().setResponse(new 
NonEncodingWebResponse((WebResponse)
 getRequestCycle().getResponse()));
 getRequestCycle().setRequestTarget(new
 RedirectRequestTarget(url));
 The source code is attached.


 -Don
 On Aug 4, 2010, at 2:22 AM, Martin Makundi wrote:

 Hi!

 I am doing something wrong? I am using:

   
 getResponse().redirect(getParameterFromRequest(RETURN_PAGE));

 But the URL contains jsessionid. I think this is wrong because the
 target server does not understand the jsessiond and it returns 404
 page not found.

 **
 Martin

 
-
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 
-
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
Yes I realize you've solved the jetty issue, but I was posing some 
additional questions relating to jsessionid...

1.  What are the implications of stripping jsessionid for all users...like 
so in app object...
CharSequence encodedUrl = super.encodeURL(url);
return Strings.stripJSessionId(encodedUrl);

1.  What does super.encodeURL(url); do and could the Wicket SEO wiki 
example 
https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
be modified to use...

CharSequence encodedUrl = super.encodeURL(url);
return isAgent(agent) ? Strings.stripJSessionId(encodedUrl) : encodedUrl;





Martin Makundi martin.maku...@koodaripalvelut.com 
08/06/2010 11:32 AM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Wicket adds jsessionid to redirect onto external page






Hi!

 And the Wicket SEO wiki provides a way to remove the JSessionId...
 https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html

This particular code does not work for first browser hit.

 I understand why you would want to remove the jsessionid for bots, would
 it be safe to remove the jsessionid for all users to pretty up the 
urls?

I am stripping the jsessionid from remote redirects, because a
redirect like mywebiste - otherwebsite;jsessionid results in a crash
on the otherwebsite.

Anyways.. this turned out to be jetty bug as described before.


**
Martin




 Martin Makundi martin.maku...@koodaripalvelut.com
 08/04/2010 02:21 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Wicket adds jsessionid to redirect onto external page






 Cool ;)

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Right, it's really a jetty bug, and looks like it was fixed recently:

 http://dev.eclipse.org/mhonarc/lists/jetty-commit/msg01598.html


 On Aug 4, 2010, at 10:46 AM, Igor Vaynberg wrote:

 afair the servlet spec says all urls have to be passed through that
 method and thats what we do. if its not working the problem is with
 the servlet container.

 -igor

 On Wed, Aug 4, 2010 at 10:39 AM, Martin Makundi
 martin.maku...@koodaripalvelut.com wrote:
 Like a sledgehammer ;)

 But yes, so it's a bug in wicket framework design.

 **
 Martin

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Ah, much better than my approach.

 On Aug 4, 2010, at 8:25 AM, Martin Makundi wrote:

 Hi!

 I worked around like this:

((org.mortbay.jetty.Request) ((WebRequest)

 
RequestCycle.get().getRequest()).getHttpServletRequest()).setSessionManager(null);


 **
 Martin

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Hi Martin,
 Yes, I've encountered this.  I think it's a bug in WebResponse.
  The culprit
 is the line:
 url = httpServletResponse.encodeRedirectURL(url);
 The url should only be encoded when redirecting to the originating
 site, but
 the code doesn't check.
 One workaround (short of fixing the bug) is to duplicate the
 functionality
 of WebResponse, commenting out the offending line.  Then use it as
 such:
  getRequestCycle().setResponse(new
 NonEncodingWebResponse((WebResponse)
 getRequestCycle().getResponse()));
 getRequestCycle().setRequestTarget(new
 RedirectRequestTarget(url));
 The source code is attached.


 -Don
 On Aug 4, 2010, at 2:22 AM, Martin Makundi wrote:

 Hi!

 I am doing something wrong? I am using:


  getResponse().redirect(getParameterFromRequest(RETURN_PAGE));

 But the URL contains jsessionid. I think this is wrong because the
 target server does not understand the jsessiond and it returns 404
 page not found.

 **
 Martin


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
-
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This 

Re: Wicket adds jsessionid to redirect onto external page

2010-08-06 Thread MZemeck
As a side effect you will disable session for cookieless connections.

Wouldn't this be desired, ie bots...

Depends what you want to strip/not-strip... skipping encoding also
strips but I am not sure if there is any other encoding happening...

Right, I guess that's my question, what are you losing by not calling 
super.encodeURL(url), but it may not matter because its only omitted for 
bots in the SEO example




Martin Makundi martin.maku...@koodaripalvelut.com 
08/06/2010 12:58 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Wicket adds jsessionid to redirect onto external page






Hi!

 1.  What are the implications of stripping jsessionid for all 
users...like
 so in app object...
 CharSequence encodedUrl = super.encodeURL(url);
 return Strings.stripJSessionId(encodedUrl);

As a side effect you will disable session for cookieless connections.

 2.  What does super.encodeURL(url); do and could the Wicket SEO wiki
 example
 https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
 be modified to use...

 CharSequence encodedUrl = super.encodeURL(url);
 return isAgent(agent) ? Strings.stripJSessionId(encodedUrl) : 
encodedUrl;

Depends what you want to strip/not-strip... skipping encoding also
strips but I am not sure if there is any other encoding happening...


**
Martin






 Martin Makundi martin.maku...@koodaripalvelut.com
 08/06/2010 11:32 AM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Wicket adds jsessionid to redirect onto external page






 Hi!

 And the Wicket SEO wiki provides a way to remove the JSessionId...
 https://cwiki.apache.org/WICKET/seo-search-engine-optimization.html

 This particular code does not work for first browser hit.

 I understand why you would want to remove the jsessionid for bots, 
would
 it be safe to remove the jsessionid for all users to pretty up the
 urls?

 I am stripping the jsessionid from remote redirects, because a
 redirect like mywebiste - otherwebsite;jsessionid results in a crash
 on the otherwebsite.

 Anyways.. this turned out to be jetty bug as described before.


 **
 Martin




 Martin Makundi martin.maku...@koodaripalvelut.com
 08/04/2010 02:21 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Wicket adds jsessionid to redirect onto external page






 Cool ;)

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Right, it's really a jetty bug, and looks like it was fixed recently:

 http://dev.eclipse.org/mhonarc/lists/jetty-commit/msg01598.html


 On Aug 4, 2010, at 10:46 AM, Igor Vaynberg wrote:

 afair the servlet spec says all urls have to be passed through that
 method and thats what we do. if its not working the problem is with
 the servlet container.

 -igor

 On Wed, Aug 4, 2010 at 10:39 AM, Martin Makundi
 martin.maku...@koodaripalvelut.com wrote:
 Like a sledgehammer ;)

 But yes, so it's a bug in wicket framework design.

 **
 Martin

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Ah, much better than my approach.

 On Aug 4, 2010, at 8:25 AM, Martin Makundi wrote:

 Hi!

 I worked around like this:

((org.mortbay.jetty.Request) ((WebRequest)


 
RequestCycle.get().getRequest()).getHttpServletRequest()).setSessionManager(null);


 **
 Martin

 2010/8/4 Don Ferguson don.fergu...@gmail.com:
 Hi Martin,
 Yes, I've encountered this.  I think it's a bug in WebResponse.
  The culprit
 is the line:
 url = httpServletResponse.encodeRedirectURL(url);
 The url should only be encoded when redirecting to the 
originating
 site, but
 the code doesn't check.
 One workaround (short of fixing the bug) is to duplicate the
 functionality
 of WebResponse, commenting out the offending line.  Then use it 
as
 such:
  getRequestCycle().setResponse(new
 NonEncodingWebResponse((WebResponse)
 getRequestCycle().getResponse()));
 getRequestCycle().setRequestTarget(new
 RedirectRequestTarget(url));
 The source code is attached.


 -Don
 On Aug 4, 2010, at 2:22 AM, Martin Makundi wrote:

 Hi!

 I am doing something wrong? I am using:


  getResponse().redirect(getParameterFromRequest(RETURN_PAGE));

 But the URL contains jsessionid. I think this is wrong because 
the
 target server does not understand the jsessiond and it returns 
404
 page not found.

 **
 Martin


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 

Re: automatically sizing modal window

2010-09-27 Thread MZemeck
Sounds like a nice feature, however be careful, if the content is too 
large the close button may be off-screen and make it impossible to close. 
So maybe it should auto adjust within the bounds of the screen...




From:   andrea del bene andrea.on@libero.it
To: users@wicket.apache.org
Date:   09/27/2010 05:04 PM
Subject:Re: automatically sizing modal window



Hi Martin,

what I'd like to have is a window that automatically adjusts its height 
and width in order to ensure that all its content it's always visible 
without scrollbars.   I think it could be done with some JavaScript code.
Do you think it's possible to implement such behavior?

Thank you in advance!
 Can you give more information about this feature, please.
 Either here or in the ticket.
 What are the current obstacles? How do you want it to be? Etc.

 On Sun, Sep 26, 2010 at 3:49 PM, andrea del 
beneandrea.on@libero.itwrote:

 
 On 09/25/2010 02:30 PM, Fernando Wermus wrote:

 
 I would like so much this feature. It is so important to me!

 On Sat, Sep 25, 2010 at 5:51 AM, Josh Kamaujoshnet2...@gmail.com
   wrote:



 
 Hi guys,

 Is there are way to ensure that a modal window automatically sizes to 
fit
 the available content? the default size seems sometimes too big and
 sometimes too small for the contents.

 Regards.
 Josh



 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: chrome + wicket ajax + back button = problem?

2010-10-06 Thread MZemeck
I've had similar issues, have you tried  HybridUrlCodingStrategy?



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread MZemeck
Can you share the final solution?



From:   Per Newgro per.new...@gmx.ch
To: users@wicket.apache.org
Date:   10/12/2010 01:37 PM
Subject:Re: Can i execute an inline-javascript added to head for 
replaced panel on ajax-response?



  Jeeehhaa. Thanks alot Igor. That did it. Both tips together work as 
expected.

Cheers
Per
 call setoutputmarkupid(true) on your label

 -igor


 On Tue, Oct 12, 2010 at 10:14 AM, Per Newgroper.new...@gmx.ch  wrote:
   Thanks Igor,

 but it didn't work. It seems that my label has no id in the response 
and
 thus the script can't find the element.

 div
 spanDone/span
 /div

 This should be lblReplaced3 after the ajax-refresh. Do i have to do
 something special for using replace with ajax?

 Thanks
 Per


 Here is the response
 *INFO: *focus set on doReplace2
 *INFO: *Using XMLHttpRequest transport
 *INFO: *
 *INFO: *Initiating Ajax GET request on
 
?wicket:interface=:0:main:doReplace::IBehaviorListener:0:random=0.27541138352960803
 *INFO: *Invoking pre-call handler(s)...
 *INFO: *Received ajax response (1202 characters)
 *INFO: *
 ?xml version=1.0 
encoding=UTF-8?ajax-responseheader-contribution
 encoding=wicket1![CDATA[head
 xmlns:wicket=http://wicket.apache.org;script type=text/javascript
 
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script
 script type=text/javascript
 
src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script
 script type=text/javascript
 
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js/script
 script type=text/javascript
 id=wicket-ajax-debug-enable!--/*--![CDATA[/*!--*/
 wicketAjaxDebugEnable=true;
 /*--]^]^*//script

 /head]]/header-contributioncomponent id=main1 
encoding=wicket1
 ![CDATA[div id=main1
 div
 spanDone/span
 /div
 a id=doReplace2 href=# onclick=var
 
wcall=wicketAjaxGet('?wicket:interface=:0:main:doReplace::IBehaviorListener:0:-1',function()
 { }.bind(this),function() { }.bind(this), function() {return
 Wicket.$('doReplace2') != null;}.bind(this));return 
!wcall;[Link]^/a
 
/div]]/componentevaluate![CDATA[document.getElementById(lblReplaced3).style.color=red;]]/evaluate/ajax-response
 *INFO: *Response parsed. Now invoking steps...
 *INFO: *returned focused element: http://localhost:8080/#
 *INFO: *returned focused element: http://localhost:8080/#
 *ERROR: *Wicket.Ajax.Call.processEvaluation: Exception evaluating
 javascript: TypeError: document.getElementById(lblReplaced3) is null
 *INFO: *Response processed successfully.
 *INFO: *Invoking post-call handler(s)...
 *INFO: *Calling focus on doReplace2
 *INFO: *focus set on doReplace2
 *INFO: *focus removed from doReplace2
 *INFO: *focus set on wicketDebugLink
 *INFO: *focus removed from wicketDebugLink

 use renderondomreadyjavascript

 -igor


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: DownloadLink with AjaxIndicator

2010-10-13 Thread MZemeck
AjaxIndicatorAppender?
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/extensions/ajax/markup/html/AjaxIndicatorAppender.html



From:   Ann Baert ann.ba...@tvh.be
To: users@wicket.apache.org
Date:   10/13/2010 10:09 AM
Subject:DownloadLink with AjaxIndicator



I would like to add an ajaxindicator on a DownloadLink.
How can I do this?

But because DownloadLink isn't ajax, I tried the following:

AjaxLink downloadLink = new AjaxLink(id) {

@Override
public void onClick(AjaxRequestTarget target) {
 
}
};
downloadLink.add(new AjaxEventBehavior(onclick) {
 
@Override
public void onEvent(final AjaxRequestTarget target) {
RequestCycle.get().setRequestTarget(new IRequestTarget() {

public void detach(RequestCycle requestCycle) {
}

public Object getLock(RequestCycle requestCycle) {
return null;
}

public void respond(RequestCycle requestCycle) {
WebResponse r = (WebResponse) requestCycle.getResponse();
r.setAttachmentHeader(header.ext);
r.setContentType(application/contentype);

...
Streams.copy(bais, r.getOutputStream());
 
target.appendJavascript(...);
}
});
 
}

@Override
protected CharSequence getEventHandler() {
AppendingStringBuffer handler = new AppendingStringBuffer();
handler.append(...);
handler.append(super.getEventHandler());
return handler;
}
});
add(downloadLink);



Thanks
Ann
 DISCLAIMER 

http://www.tvh.com/newen2/emaildisclaimer/default.html 

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





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Dynamically loading image

2010-11-30 Thread MZemeck
Where are you storing the image, on the file system, classpath, 
database...?



From:   Matthew Goodson matt...@spidertracks.co.nz
To: users@wicket.apache.org
Date:   11/29/2010 10:12 PM
Subject:Dynamically loading image




Hi all,
I'm needing to generate the url to an image dynamically on the client.
i.e. I want to be able to chuck a generated url (e.g
localhost:8080/images?imageId=blah) into the src of an img which would 
then
go off and hit a wicket page which returns the binary data for the image.
I'm not really getting anywhere by myself.
Does anyone have any pointers?!
Hope that makes sense.
Thanks! 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamically-loading-image-tp3064795p3064795.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: IndicatingAjaxButton (Doesn't display indicator in Internet Explorer)

2010-11-30 Thread MZemeck
+1

Yes I have seen this as well...




From:   Corbin, James jcor...@iqnavigator.com
To: users@wicket.apache.org users@wicket.apache.org
Date:   11/30/2010 04:07 PM
Subject:IndicatingAjaxButton (Doesn't display indicator in 
Internet Explorer)



I recently noticed that the IndicatingAjaxButton no longer appears to 
render the asterix in Internet Explorer (all versions including 6,7 and 
8).

I noticed this after moving to Wicket Version 1.4.13.

Has anybody seen this behavior with ajax indicators not displaying in IE?

J.D.

J.D. Corbin | IQNavigator | Senior Software Engineer
Office: (303) 563-1503 * Mobile: (303) 912-0958 * jcor...@iqnavigator.com
mailto:y...@iqnavigator.com
6465 Greenwood Plaza Blvd. *  Suite 800 * Centennial, CO *  80111 *  USA

This email message is for the sole use of the intended recipient(s) and 
may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy 
all copies of the original message.






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Visibility setting with Ajax

2010-12-21 Thread MZemeck
I think you are correct, calling setOutputMarkupId(true) is not necessary 
when calling setOutputMarkupPlaceholderTag(true).  If I remember correctly 
from looking at the code for  setOutputMarkupPlaceholderTag(), this will 
call setOutputMarkupId(true) for you.




From:   Duro develma...@yahoo.com
To: users@wicket.apache.org
Date:   12/21/2010 08:24 AM
Subject:Re: Visibility setting with Ajax



thanks, setOutputMarkupId(true) is probably not necessary., but adding 
the component to target and setOutputMarkupPlaceholderTag(true) is.
Now i tried to mak eit work even better and removed the panels from the 
site. i want to add them just on time, when the user request it. so site 
looks now like this:

wicket:extend
div align=center style=background-color:red;padding:20px
h2Epubs upload/h2
form wicket:id=form
div style=background-color:#304050
span wicket:id=panel/
a href=# wicket:id=addLinkAdd next file/a
br/
input wicket:id=submitButton type=submit value=Datei(en) laden/
/div
div wicket:id=feedback class=error style=background-color:yellow/
/form
/div
/wicket:extend


and i try to create the panel dynamically:

public void onClick(AjaxRequestTarget target) {
 panel.setOutputMarkupPlaceholderTag(true);
 target.addComponent(panel);
 panel.add(new UploadFilePanel(filePanel));

the markup of UploadFilePanel:

wicket:panel
table style=padding-bottom:5px
tr
td width=180pxTyp/td
tdselect wicket:id=type //td
tdTitel/td
tdinput type=text wicket:id=title //td
/tr
tr
tdJahr/td
tdinput type=text wicket:id=year //td
tdAusgabe Nummer/td
tdinput type=text wicket:id=issueNumber //td
/tr
tr
tdDatei/td
tdinput wicket:id=fileUploadField type=file //td
td colspan=2 valign=bottomIch bin Inhaber
des Mediensinput type=checkbox wicket:id=ownerCheckbox//td
/tr
/table
/wicket:panel

this all end in the error:

WicketMessage: The component(s) below failed to render. A common problem 
is that you have added a component in code but forgot to reference it in 
the markup (thus the component will never be rendered).

1. [MarkupContainer [Component id = panelX]]
2. [MarkupContainer [Component id = type]]
3. [MarkupContainer [Component id = title]]
4. [MarkupContainer [Component id = year]]
5. [MarkupContainer [Component id = issueNumber]]
6. [MarkupContainer [Component id = fileUploadField]]
7. [MarkupContainer [Component id = ownerCheckbox]]

i understand that i didnt declare the things in the markup, but thats 
what i want (create them not at the start, but never or later, when the 
user clicks on the link). So what is needed to create the 
UploadFilePanel dynamically?
  thanks for help


 1-Put

 uploadPanel2.setOutputMarkupId(true);
 uploadPanel2.setOutputMarkupPlaceholderTag(true);
 uploadPanel2.setVisible(false);

 when you create the panel.

 2- on

   public void onClick(AjaxRequestTarget target) {
  uploadPanel2.setVisible(true);
  target.addComponent(uploadPanel2);
 }

 Ernesto

 On Tue, Dec 21, 2010 at 1:38 PM, Juraj Petkojuraj.pe...@gmail.com 
wrote:
 Hi, i have 3 panels on my page:
 wicket:extend
 div align=center style=background-color:red;padding:20px
 h2Epubs upload/h2
 form wicket:id=form
 div style=background-color:#304050
 span wicket:id=uploadPanel1/
 span wicket:id=uploadPanel2/
 span wicket:id=uploadPanel3/
 a href=# wicket:id=addLinkAdd next file/a
 br/
 input wicket:id=submitButton type=submit value=Datei(en) laden/
 /div
 div wicket:id=feedback class=error 
style=background-color:yellow/
 /form
 /div
 /wicket:extend

 and only after clicking addLink, the user should see the uploadPanel2. 
So i
 coded this:

 add(new AjaxFallbackLink(addLink) {
 private static final long serialVersionUID =
 -4427831923318024979L;

 @Override
 public void onClick(AjaxRequestTarget target) {
 uploadPanel2.setVisible(true);
 }
 });

 When i debug, the method onClick() is really entered and
 uploadPanel2.setVisible(true) is executed, but the panel is still not
 visible. What else i have to do?
   thanks!


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
gegen Massenmails. 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 

Re: Wicket web site down with a few hits

2011-01-04 Thread MZemeck
Just a hunchtry WicketServlet instead of WicketFilter (in web.xml)...



From:   LucHub luca.abb...@luchub.com
To: users@wicket.apache.org
Date:   01/04/2011 03:26 PM
Subject:Re: Wicket web site down with a few hits




Hi, thank you for the fast reply,

Nothing strange from tomcat logs, also the server is not out of CPU or
memory.

I still have to enable wicket logs and check with a non Hibernate app (i
omitted I'm using Hibernate)

I'll post. Thanks again
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3174316.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Feedback messages with parameter substitution

2011-01-06 Thread MZemeck
Or...

Object[] vars = ...add dynamic file name object
StringResourceModel rModel = new 
StringResourceModel(message.fileAlreadyUploaded, null, vars);
error(rModel.getObject());




From:   James james.eliye...@gmail.com
To: users@wicket.apache.org
Date:   01/04/2011 09:22 PM
Subject:Re: Feedback messages with parameter substitution



Folks,

I found the solution from the thread Using getString with
parameters
http://apache-wicket.1842946.n4.nabble.com/Usage-of-getString-with-parameters-model-td1875254.html

.

And this is what I did in the properties file..

premessage.fileAlreadyUploaded=The file ${0} is already uploaded/pre
(Note the $ sign)

And in the java code..

error(getString(message.fileAlreadyUploaded, new Model(new
String[]{fileUpload.getClientFileName()})));

It worked like a charm.

On Wed, Jan 5, 2011 at 10:00 AM, James james.eliye...@gmail.com wrote:

 Dear friends,

 Please forgive me if this question is asked before and answered. I
 seriously searched for this in the mailing list and other areas and 
couldn't
 find any solution.

 I've seen great examples of using StringResourceModel for parameter
 substitution in components like Label.

 But what I want is to display a feedback message, say an error message 
with
 some dynamic values in it. Something like The file abc.txt is already
 uploaded, where abc.txt shall be dynamic.

 So the localized text in the properties file would be something like
 message.fileAlreadyUploaded=The file {0} is already uploaded.

 I've tried using something like this...

 code
 error(getString(message.fileAlreadyUploaded, new Model(new
 String[]{fileUpload.getClientFileName()})));
 /code

 but that' doesn't work..I also tried using StringResourceModel but to no
 avail.

 I know I'm doing something wrong, please guide me to solve this problem.

 --
 Thanks  Regards,
 James




-- 
Thanks  Regards,
James





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: IndicatingAjaxButton (Doesn't display indicator in Internet Explorer)

2011-01-07 Thread MZemeck
This problem still exists in Wicket 1.14.15.  IndicatingAjaxButton does 
not show the busy indicator in IE, it does work in Firefox. 
IndicatingAjaxLink does show the indicator in IE.


- Forwarded by Matthew Zemeck/ADM/NYSOSC on 01/07/2011 03:32 PM -

From:   mzem...@osc.state.ny.us
To: users@wicket.apache.org
Date:   11/30/2010 04:23 PM
Subject:Re: IndicatingAjaxButton (Doesn't display indicator in 
Internet Explorer)



+1

Yes I have seen this as well...




From:   Corbin, James jcor...@iqnavigator.com
To: users@wicket.apache.org users@wicket.apache.org
Date:   11/30/2010 04:07 PM
Subject:IndicatingAjaxButton (Doesn't display indicator in 
Internet Explorer)



I recently noticed that the IndicatingAjaxButton no longer appears to 
render the asterix in Internet Explorer (all versions including 6,7 and 
8).

I noticed this after moving to Wicket Version 1.4.13.

Has anybody seen this behavior with ajax indicators not displaying in IE?

J.D.

J.D. Corbin | IQNavigator | Senior Software Engineer
Office: (303) 563-1503 * Mobile: (303) 912-0958 * jcor...@iqnavigator.com
mailto:y...@iqnavigator.com
6465 Greenwood Plaza Blvd. *  Suite 800 * Centennial, CO *  80111 *  USA

This email message is for the sole use of the intended recipient(s) and 
may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy 
all copies of the original message.






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Just a suggestion, pass the UserDto to the service layer and let the 
service layer do the conversion.  Then you can look at a href=
http://code.google.com/p/simple-object-assembler/;Simple Object 
Assembler/a to encapsulate the conversion.  Hint: use 
automapWhenNoConverterFound property and you won't need to write any 
converters for Simple Object Assembler (assuming your properties follow a 
naming convention).




From:   fernandospr fernando...@gmail.com
To: users@wicket.apache.org
Date:   01/28/2011 04:00 PM
Subject:Re: Using Wicket with businness model classes that check 
for rules




Thanks James I'll investigate on extending PropertyModel.

Currently I'm doing the following:

public class UserRegistrationPage extends WebPage {
 @SpringBean
 private UserService userService;

 private FeedbackPanel feedbackPanel;
 private UserDto userDto; // only has the User properties
 
 @SuppressWarnings(unchecked)
 public UserRegistrationPage() {
 feedbackPanel = new 
FeedbackPanel(feedback);
 userDto = new UserDto();
 CompoundPropertyModel userDtoModel = new 
CompoundPropertyModel(userDto);
// bind to the DTO
 
 Form registrarForm = new 
Form(registerForm, userDtoModel){
 @Override
 protected void onSubmit() 
{
 try {
// Create a real User and obtain 
the
data from the DTO
  User user = new User(userDto.getEmail(), 
   userDto.getName(), 
   userDto.getPassword(), 
   userDto.getBirth());
  userService.save(user); // service calls the dao which actually saves
to DB
 } catch 
(Exception e) { // The Businness Exception has the message error
  feedbackPanel.warn(e.getMessage());
 }
 }
 }; 

 registerForm.add(new 
TextField(email).setRequired(true)); // form binded
to the DTO properties
 ...
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-with-businness-model-classes-that-check-for-rules-tp3245298p3245378.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Right right right, good catch, but I suppose you could write a conversion 
service which throws the business exception.  Not really a solution to 
your question, but it would clean up your code a bit and take conversion 
logic out of the frontend.



From:   James Carman ja...@carmanconsulting.com
To: users@wicket.apache.org
Date:   01/28/2011 04:13 PM
Subject:Re: Using Wicket with businness model classes that check 
for rules
Sent by:jcar...@carmanconsulting.com



But, then you lose the component-specific error messages.

On Fri, Jan 28, 2011 at 4:08 PM,  mzem...@osc.state.ny.us wrote:
 Just a suggestion, pass the UserDto to the service layer and let the
 service layer do the conversion.  Then you can look at a href=
 http://code.google.com/p/simple-object-assembler/;Simple Object
 Assembler/a to encapsulate the conversion.  Hint: use
 automapWhenNoConverterFound property and you won't need to write any
 converters for Simple Object Assembler (assuming your properties follow 
a
 naming convention).




 From:   fernandospr fernando...@gmail.com
 To: users@wicket.apache.org
 Date:   01/28/2011 04:00 PM
 Subject:Re: Using Wicket with businness model classes that check
 for rules




 Thanks James I'll investigate on extending PropertyModel.

 Currently I'm doing the following:

 public class UserRegistrationPage extends WebPage {
 @SpringBean
 private UserService userService;

 private FeedbackPanel feedbackPanel;
 private UserDto userDto; // only has the User properties

 @SuppressWarnings(unchecked)
 public UserRegistrationPage() {
 feedbackPanel = new
 FeedbackPanel(feedback);
 userDto = new UserDto();
 CompoundPropertyModel userDtoModel = new
 CompoundPropertyModel(userDto);
 // bind to the DTO

 Form registrarForm = new
 Form(registerForm, userDtoModel){
 @Override
 protected void 
onSubmit()
 {
 try {
// Create a real User and obtain
 the
 data from the DTO
  User user = new User(userDto.getEmail(),
   userDto.getName(),
   userDto.getPassword(),
   userDto.getBirth());
  userService.save(user); // service calls the dao which actually saves
 to DB
 } catch
 (Exception e) { // The Businness Exception has the message error
  feedbackPanel.warn(e.getMessage());
 }
 }
 };

 registerForm.add(new
 TextField(email).setRequired(true)); // form binded
 to the DTO properties
 ...
 --
 View this message in context:
 
http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-with-businness-model-classes-that-check-for-rules-tp3245298p3245378.html


 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Using Wicket with businness model classes that check for rules

2011-01-28 Thread MZemeck
Ok but if the conversion has to be done multiple times why not encapsulate 
it and clean up your code, rather than coding a conversion for each dto 
every time its needed.  With my suggestion the frontend calls a service to 
do the conversion, then supplies the primed object to the service to 
persist it.  I somewhat agree the service perhaps should not need to know 
about the frontend's model to do its task.

Never the less its probably a matter of taste...

Back to the original question...what if you extract your business object 
validation out into a service.  Then your business objects can call that 
service to validate, and you can write custom validators for wicket that 
call the same validation service.  This would prevent you from having to 
write validations twice in both the business layer and frontend and gives 
you the ability to attach an error at the component level, no?



From:   James Carman ja...@carmanconsulting.com
To: users@wicket.apache.org
Date:   01/28/2011 04:46 PM
Subject:Re: Using Wicket with businness model classes that check 
for rules
Sent by:jcar...@carmanconsulting.com



I don't know that I would agree that the conversion logic needs to be
taken out of the front end.  The front end is where the data is
collected.  It may have to be collected in a specific way
(FileUploadField perhaps) that is connected with the chosen
presentation layer (Wicket in our case).  It is the UI's
responsibility to translate the input it receives from its user(s) and
transform it into a format that the business model requires.  That's
my $0.02

On Fri, Jan 28, 2011 at 4:19 PM,  mzem...@osc.state.ny.us wrote:
 Right right right, good catch, but I suppose you could write a 
conversion
 service which throws the business exception.  Not really a solution to
 your question, but it would clean up your code a bit and take conversion
 logic out of the frontend.



 From:   James Carman ja...@carmanconsulting.com
 To: users@wicket.apache.org
 Date:   01/28/2011 04:13 PM
 Subject:Re: Using Wicket with businness model classes that check
 for rules
 Sent by:jcar...@carmanconsulting.com



 But, then you lose the component-specific error messages.

 On Fri, Jan 28, 2011 at 4:08 PM,  mzem...@osc.state.ny.us wrote:
 Just a suggestion, pass the UserDto to the service layer and let the
 service layer do the conversion.  Then you can look at a href=
 http://code.google.com/p/simple-object-assembler/;Simple Object
 Assembler/a to encapsulate the conversion.  Hint: use
 automapWhenNoConverterFound property and you won't need to write any
 converters for Simple Object Assembler (assuming your properties follow
 a
 naming convention).




 From:   fernandospr fernando...@gmail.com
 To: users@wicket.apache.org
 Date:   01/28/2011 04:00 PM
 Subject:Re: Using Wicket with businness model classes that 
check
 for rules




 Thanks James I'll investigate on extending PropertyModel.

 Currently I'm doing the following:

 public class UserRegistrationPage extends WebPage {
 @SpringBean
 private UserService userService;

 private FeedbackPanel feedbackPanel;
 private UserDto userDto; // only has the User 
properties

 @SuppressWarnings(unchecked)
 public UserRegistrationPage() {
 feedbackPanel = new
 FeedbackPanel(feedback);
 userDto = new UserDto();
 CompoundPropertyModel userDtoModel = 
new
 CompoundPropertyModel(userDto);
 // bind to the DTO

 Form registrarForm = new
 Form(registerForm, userDtoModel){
 @Override
 protected void
 onSubmit()
 {
 try {
// Create a real User and obtain
 the
 data from the DTO
  User user = new User(userDto.getEmail(),
   userDto.getName(),
   userDto.getPassword(),
   userDto.getBirth());
  userService.save(user); // service calls the dao which actually saves
 to DB
 } catch
 (Exception e) { // The Businness Exception has the message error
  feedbackPanel.warn(e.getMessage());
 }
 }
 };

 registerForm.add(new
 TextField(email).setRequired(true)); // form binded
 to the DTO properties
 ...
 --
 View this message in context:

 
http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-with-businness-model-classes-that-check-for-rules-tp3245298p3245378.html



 Sent from the Users forum mailing list archive at Nabble.com.

 

Re: Static member wicket version... post 1.4.13

2011-01-31 Thread MZemeck
The Wicket version and deployment mode are also output during startup...



From:   James Carman ja...@carmanconsulting.com
To: users@wicket.apache.org
Date:   01/31/2011 11:33 AM
Subject:Re: Static member wicket version... post 1.4.13
Sent by:jcar...@carmanconsulting.com



http://wicket.apache.org/apidocs/1.4/org/apache/wicket/settings/IFrameworkSettings.html#getVersion%28%29


On Mon, Jan 31, 2011 at 11:16 AM, Brown, Berlin [GCG-PFS]
berlin.br...@primerica.com wrote:
 Is there a way to print the wicket version number from wicket class
 files or property files?

 E.g. Version.buildNum or something similar?



 Berlin Brown


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Regarding AjaxIndicatorAppender and IE

2011-02-03 Thread MZemeck
This may be related to...

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




From:   Muro Copenhagen copenha...@gmail.com
To: users@wicket.apache.org
Date:   02/02/2011 08:19 AM
Subject:Regarding AjaxIndicatorAppender and IE



Hi,

Has anyone experienced problems with IE (v. 8) and AjaxIndicatorAppender.

The problem i am experiencing in IE, not Firefox, is that the indicator is
only
shown the first time i click on submit.

If i have a feedback panel, and enter all input fields, the indicator is
shown,
and i then get the next page.

But if i don't enter anything, the indicator is shown(just for a second)
then
i get the errors on the feedback panel, and then when entering all the
input fields the indicator is not shown...

And this behavior only exist in IE...i know IE sucks...

Anyone with ideas on what the problem might be?

Best Regards
Muro





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: FOSDEM 2011 presentation online

2011-02-08 Thread MZemeck
Can you link the mailing list to it when its posted?  I'm very interested 
in seeing it, especially after the positive remarks on this list...




From:   Martijn Dashorst martijn.dasho...@gmail.com
To: users@wicket.apache.org
Date:   02/08/2011 09:15 AM
Subject:Re: FOSDEM 2011 presentation online



On Tue, Feb 8, 2011 at 2:40 PM, Ames, Tim tim.a...@promedica.org wrote:
 Thanks for sharing.  The audio of the presentation would have been a 
plus, unless
 the audio was there and I missed it somehow :)

There's no audio. FOSDEM will however publish a recorded video with
audio when they've completed processing it.

Martijn

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: usage of JavascriptFilteredIntoFooterHeaderResponse

2011-02-14 Thread MZemeck
Interesting how the HeaderResponseFilteredResponseContainer in this 
example is after the /body tag even though best practices as well as the 
Javadoc suggest it should be just before the /body.  Perhaps the example 
should be changed so as not to set a bad...er...example...

A header response that creates two buckets. The header bucket will contain 
all references to CSS. The other bucket will contain all Javascript, and 
you will need to add a HeaderResponseFilteredResponseContainer to the 
footer of your page (typically just before the end body tag) to render the 
Javascript. 





From:   Martin Grigorov mgrigo...@apache.org
To: users@wicket.apache.org
Date:   02/13/2011 01:51 PM
Subject:Re: usage of JavascriptFilteredIntoFooterHeaderResponse



Another good example is
http://www.wicket-library.com/wicket-examples/resourceaggregation

This example application is only in 1.5 but it can be easily 'translated' 
to
1.4.

On Sun, Feb 13, 2011 at 7:09 PM, Zilvinas Vilutis cika...@gmail.com 
wrote:


 Thank you! That's what I needed!

 -
 
 nothing is impossible
 --
 View this message in context:
 
http://apache-wicket.1842946.n4.nabble.com/usage-of-JavascriptFilteredIntoFooterHeaderResponse-tp3302046p3303816.html

 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org







Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-17 Thread MZemeck
How are you storing/retrieving your photos?  I recently did some session 
size testing and I found the sessions were surprisingly small.  Once I 
removed the detachable model wrapped around an object holding a photo 
(byte array) retrieved from the database my session size shot up 
considerably.




From:   Per p...@hamburg.de
To: users@wicket.apache.org
Date:   02/16/2011 06:41 AM
Subject:Re: Just 100K per session? That would be my dream come 
true! (Anyone here who has tuned session size before?)




Hi Johan and Igor,

well, on one hand I am using App Engine, and puts are limited to 1MB. 
Even with pagination and limitation of each page to 50 users (totalling 
200Kb in memory for the whole page), I had to limit the pagemap size 
severely to ensure I am always below 1M.  In Wicket 1.5 it's a lot 
easier to write an adaptive EvictionStrategy to control memory usage, so 
I can be more flexible and evict large pages more aggressively than 
smaller ones. Still, displaying say 500 users at once will still not be 
possible if each user-row can take as much as 5K.

But I am not complaining. I knew that App Engine has this limitation, 
and I make my own product specifications, so I can live with it. On the 
plus side, App Engine (due to its restrictions) scales really well, and 
I am not worried if some day thousands of users will use my app 
concurrently. But although a typical server may have many Gigs these 
days, you'd still be in trouble if thousands of users came slurping 40M 
each, that's why I do think that session size remains an important 
consideration. I would strongly recommend anyone not to leave 
optimisation till the very last, but plan ahead and spike some of the 
most complex screens first, since Wicket *is* different in that respect.

Sorry to hear I can't optimise easily, but thanks for the quick 
responses Johan and Igor! Your support on this forum is truly 
legendary!  Will try to figure out the autoAdd() soon :-)
Per


 but if you have it down to 200K then 50 users it is nothing... thats
 10MB on memory
 If if both where 2X so 400K and 100 users thats still only 40MB in
 memory Thats for a server nothing..



 On Wed, Feb 16, 2011 at 02:10, Per [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=0 wrote:

 
 
  So I still haven't solved my memory issues, despite weeks of 
 research and
  profiling. Reading in the other thread that a session size of 100K 
 or less
  is achievable, I'll admit defeat now: I have not been able to shrink 
 some of
  my pages(!) to less than 200K, not to mention the sessions. Despite 
 LDMs,
  CompoundPropertyModels, and no, there are no domain objects in 
 there, and no
  finals.
 
  What on earth am I doing wrong?
 
  My goal is to display a long list of, say, users. Each users should 
 list a
  few labels (name, position, location, etc) and images to show who's an
  admin/poweruser. Each user has a profile picture. Each user who is 
 also a
  manager should have image icons of their subordinates' profile 
pictures
  (e.g. a nested ListView) And I want 5 or 6 AJAX labels so I can 
quickly
  lock/unlock users, delete them, give and revoke certain rights.
 
  Despite lots of profiling each row is still 4K to 6K. This adds up 
 for even
  just 50 users. Can this be reduced, at all? I mean, it seems that 56 
 Bytes
  is the minimum for a Label, 32 for a PropertyModel, 80 for a 
 ListItem, and
  some 200 for an AjaxLink. 400 for an Image (or alternatively 272 for 
 a label
  with 2 AttributeAppenders to also render an image), and unless the 
 whole
  list disappears from the page's object graph, all those small 
 numbers DO add
  up.
 
  My final hope was the RefreshingList, but no, it also keeps the list 
 items
  stored in the page. What I really would like is a list that does not
  maintain all its items, but throws them away, just like a LDM throws 
 away
  the domain object, and just reloads when needed. Okay, that would 
 not work
  because I want some state in there, but you get my point.
 
  I really hope it's something totally obvious I missed.
 
  Cheers,
  Per
  --
  View this message in context: 
 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3308014.html
 

 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3308014.html?by-user=t

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=1
  For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=2
 
 

 -
 To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3308586i=3
 For 

Re: requestCycle.getRequestTarget() not giving the target

2011-02-22 Thread MZemeck
This is the best solution I have found...
http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/

Note that when refreshing the page it will return to its default state 
(first tab selected).  I have been meaning to test with 
HybridUrlCodingStrategy to see if the page can maintain its state without 
crashing after using the back button...




From:   leoerlandsson leo.erlands...@tyringe.com
To: users@wicket.apache.org
Date:   02/22/2011 06:22 AM
Subject:Re: requestCycle.getRequestTarget() not giving the target




Hi,

We've seen this problem aswell (unfortunately, I have no solution for
you...).

The problem is probably that Wicket does not yet have Ajax Back Button
Support. When an Ajax call is made, the URL is not changed, so the Browser
cannot know that something (i.e State on server) has changed.

When you click back you come back to the URL used for the _first_ page
version... That's why you get:

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = link]] 

I don't know how to fix this, but maybe someone elso knows? Perhaps we 
need
Ajax Back Button Support (I know there's a JIRA Issue for it..)


I have this scenario:
1) AjaxTabbePanel has three tabs.
2) Go to 2nd tab
3) Come back to 1st tab
4) one link in 1st tab will take us to some page
5) Click back button of the browser = we wil come back to the page with
the
AjaxTabbedPanel#1st tab
6) Now click on 2nd tab, then 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/requestCycle-getRequestTarget-not-giving-the-target-tp3317022p3318972.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Perfomance of IDataProvider

2011-02-28 Thread MZemeck
If I understand where you are going I completely agree the example is a 
little misleading.  Some ways to think about it differently... 

id is synonymous with a small sub-set of the entire result-set which 
can be used to rehydrate the detached model

The model is the data you want to provide to a repeater for instance, so 
this can be a single Contact model (one query for each row) or a 
ContactList (one query per page with pagination).  Retrieving a list 
instead of each contact individually would be more efficient.

If you need an example let me know...




From:   Juansoft andresnet2...@yahoo.es
To: users@wicket.apache.org
Date:   02/28/2011 03:53 PM
Subject:Re: Perfomance of IDataProvider



First render thanks for your replies.

@vov: If i use this:

  public IModelEntity model(Entity entity)
  {
return new ModelEntity(entity);
 } 

In this case the memory footprint of the session grows because you return
Model object that is not a transient object(or this is what I've read in
wicket documentation...!!) .  ¿This means that if you dataview have 100 
rows
you have 100 ModelEntity stored in your session?

¿To avoid this do not exist LoadableDetachableModel what is detached after
page rendering?


@James Carman:

This is the aspect of the most LoadableDetachableModel used in DataView
examples. Specifically in wicket official examples. For each row in 
DataView
this create new DetachableContactModel , store his ID. After in method
populateItem of Dataview, getModelObject() call result in direct call to
DetachableContactModel.load() that again return object to a database.

Using hibernate this object is cached (or so I have understood), but if 
use
hand made DAO (like me) that simply query and return a POJO populated this
result in more database conections and querys! Am I right?


public class DetachableContactModel extends LoadableDetachableModel
{
private long id;
 
  protected ContactsDatabase getContactsDB()
   {

return DatabaseLocator.getDatabase();
   }

/**
 * @param c
 */
public DetachableContactModel(Contact c)
{ 
this(c.getid())
}

/**
 * @param id
 */
public DetachableContactModel(long id)
{
if (id == 0)
{
throw new IllegalArgumentException();
}
this.id = id;
}

/**
 * @see java.lang.Object#hashCode()
 */
public int hashCode()
{
return Long.valueOf(id).hashCode();
}

/**
 * used for dataview with ReuseIfModelsEqualStrategy item reuse 
strategy
 *
 * @see org.apache.wicket.markup.repeater.ReuseIfModelsEqualStrategy
 * @see java.lang.Object#equals(java.lang.Object)
 */
public boolean equals(final Object obj)
{
if (obj == this)
{
return true;
}
else if (obj == null)
{
return false;
}
else if (obj instanceof DetachableContactModel)
{
DetachableContactModel other = (DetachableContactModel)obj;
return other.id == this.id;
}
return false;
}

/**
 * @see org.apache.wicket.model.LoadableDetachableModel#load()
 */
@Override
protected Object load()
{
// loads contact from the database 
return getContactsDB().get(id); 
}
 
 
}



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Perfomance-of-IDataProvider-tp3325777p3328345.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

RE: Perfomance of IDataProvider

2011-03-01 Thread MZemeck
Here's a start, please anyone correct me if I've made any mistakes...

public class ListLDM extends LoadableDetachableModelList {
 
private String id;
 
public ListLDM(List l, String id) {
//constructor with primed model
super(l);
this.id = id;
}
 
public ListLDM(String id) {
//constructor with empty model
this.id = id;
}

@Override
protected List load() {
return service.getList(id);
}

}



From:   John Owen jo...@globalscape.com
To: users@wicket.apache.org users@wicket.apache.org
Date:   02/28/2011 05:35 PM
Subject:RE: Perfomance of IDataProvider



An example with a list would be quite useful.

Regards

-Original Message-
From: mzem...@osc.state.ny.us [mailto:mzem...@osc.state.ny.us] 
Sent: Monday, February 28, 2011 3:10 PM
To: users@wicket.apache.org
Subject: Re: Perfomance of IDataProvider

If I understand where you are going I completely agree the example is a 
little misleading.  Some ways to think about it differently... 

id is synonymous with a small sub-set of the entire result-set which 
can be used to rehydrate the detached model

The model is the data you want to provide to a repeater for instance, so 
this can be a single Contact model (one query for each row) or a 
ContactList (one query per page with pagination).  Retrieving a list 
instead of each contact individually would be more efficient.

If you need an example let me know...




From:   Juansoft andresnet2...@yahoo.es
To: users@wicket.apache.org
Date:   02/28/2011 03:53 PM
Subject:Re: Perfomance of IDataProvider



First render thanks for your replies.

@vov: If i use this:

  public IModelEntity model(Entity entity)
  {
return new ModelEntity(entity);
 } 

In this case the memory footprint of the session grows because you return
Model object that is not a transient object(or this is what I've read in
wicket documentation...!!) .  ¿This means that if you dataview have 100 
rows
you have 100 ModelEntity stored in your session?

¿To avoid this do not exist LoadableDetachableModel what is detached after
page rendering?


@James Carman:

This is the aspect of the most LoadableDetachableModel used in DataView
examples. Specifically in wicket official examples. For each row in 
DataView
this create new DetachableContactModel , store his ID. After in method
populateItem of Dataview, getModelObject() call result in direct call to
DetachableContactModel.load() that again return object to a database.

Using hibernate this object is cached (or so I have understood), but if 
use
hand made DAO (like me) that simply query and return a POJO populated this
result in more database conections and querys! Am I right?


public class DetachableContactModel extends LoadableDetachableModel
{
private long id;
 
  protected ContactsDatabase getContactsDB()
   {

return DatabaseLocator.getDatabase();
   }

/**
 * @param c
 */
public DetachableContactModel(Contact c)
{ 
this(c.getid())
}

/**
 * @param id
 */
public DetachableContactModel(long id)
{
if (id == 0)
{
throw new IllegalArgumentException();
}
this.id = id;
}

/**
 * @see java.lang.Object#hashCode()
 */
public int hashCode()
{
return Long.valueOf(id).hashCode();
}

/**
 * used for dataview with ReuseIfModelsEqualStrategy item reuse 
strategy
 *
 * @see org.apache.wicket.markup.repeater.ReuseIfModelsEqualStrategy
 * @see java.lang.Object#equals(java.lang.Object)
 */
public boolean equals(final Object obj)
{
if (obj == this)
{
return true;
}
else if (obj == null)
{
return false;
}
else if (obj instanceof DetachableContactModel)
{
DetachableContactModel other = (DetachableContactModel)obj;
return other.id == this.id;
}
return false;
}

/**
 * @see org.apache.wicket.model.LoadableDetachableModel#load()
 */
@Override
protected Object load()
{
// loads contact from the database 
return getContactsDB().get(id); 
}
 
 
}



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Perfomance-of-IDataProvider-tp3325777p3328345.html


Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. 

Re: Perfomance of IDataProvider

2011-03-01 Thread MZemeck
super(l) stores the model as an instance variable on the superclass.  When 
getObject() is called on the LDM, it checks to see if the instance 
variable (the model object) is null.  If it is null, load() will be called 
to populate the model.  Once the request is complete the model is detached 
(instance variable set to null).  Then the cycle repeats...

A use case for super(l) is SortableDataProvider (SDP) seen below and taken 
from Wicket repeaters example.  The SDP retrieves the records of interest 
for pagination using iterator(), then creates a model.  If the object was 
not passed into the DetachableContactModel, the load() method would make 
another db call to populate the model.

public class SortableContactDataProvider extends SortableDataProviderContact 
{

public SortableContactDataProvider() {
// set default sort
setSort(firstName, SortOrder.ASCENDING);
}

public IteratorContact iterator(int first, int count) {
return service.find(first, count, getSort()).iterator();
}

 
public int size() {
return service.getCount();
}

public IModelContact model(Contact object) {
return new DetachableContactModel(object);
} 

} 





From:   James Carman ja...@carmanconsulting.com
To: users@wicket.apache.org
Date:   03/01/2011 01:11 PM
Subject:Re: Perfomance of IDataProvider
Sent by:jcar...@carmanconsulting.com



It is referenced by the superclass (LoadableDetachableModel in this
case).  It will cache the list until after the request cycle is
complete.  Upon subsequent request cycles, the load() method will be
called to re-load the list.

On Tue, Mar 1, 2011 at 12:51 PM, Juansoft andresnet2...@yahoo.es wrote:
 Thank for the replies!


 MZemeck wrote:

 Here's a start, please anyone correct me if I've made any mistakes...

 public class ListLDM extends LoadableDetachableModelList {

 private String id;

 public ListLDM(List l, String id) {
 //constructor with primed model
 super(l);
 this.id = id;
 }

 public ListLDM(String id) {
 //constructor with empty model
 this.id = id;
 }

 @Override
 protected List load() {
 return service.getList(id);
 }

 }




 In this example , the object that you're wrap in the inner model (List 
l
 that you are send in super() constructor) is not used anywhere... ¿i'm
 wrong? in this case , ¿why should be using this (in reference a List l 
in
 constructor)?




 -
 Another wicket newbie programmer
 
 Wicket en Español -

 http://aprendiendowicket.wordpress.com
 --
 View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Perfomance-of-IDataProvider-tp3325777p3330259.html

 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread MZemeck
Great stuff, could you let us know when you have completed a 'final' 
version so I can check back?



From:   Per p...@hamburg.de
To: users@wicket.apache.org
Date:   03/01/2011 02:22 PM
Subject:Re: Just 100K per session? That would be my dream come 
true! (Anyone here who has tuned session size before?)



Hi Antoine,

I have started collecting my hints over here:

http://www.small-improvements.com/blog/technical/tuning-wicket-session-size


Please note that much of it may be considered hacks and bad practice (I 
am just a Wicket user, not a Wicket master). There may be better ways to 
achieve the same results. I'd love to get feedback on these suggestions! 
So give it a shot and tell me how you went!

Good luck!
Per


 *bump*

 I'm one of those people who is reading :-)


 Antoine


 On Mon, Feb 21, 2011 at 3:11 PM, Per [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3330006i=0 wrote:

 
 
  Hi,
 
  I am measuring it in a profiler after the request has been completed,
  but thanks for the hint.
 
  In case anyone else is reading, I have been playing with the
  onComponentTag() and onComponentTagBody() methods on the weekend, and
  I've been able to reduce my page sizes significantly. Admittedly, this
  comes at the expense of flexibility and beauty, but I'm only doing 
this
  in the inner loops of very few pages, so who cares :-)  Will write a
  summary with a couple of hints once I stop drowning in work.
 
  Cheers,
  Per
 
 
   Reading in the other thread that a session size of 100K or less
   is achievable, I'll admit defeat now: I have not been able to 
shrink
  some of
   my pages(!) to less than 200K, not to mention the sessions. Despite
  LDMs,
   CompoundPropertyModels, and no, there are no domain objects in
  there, and no
   finals.
 
  How are you measuring this? Keep in mind that if you calculate when a
  request is still processing, you might still be measuring temporary
  data (e.g. for LoadableDetachableModel, you would also measure the
  transientModelObject, and same for any proxies (Spring/ Guice) you
  might use.
 
  Eelco
 
  -
  To unsubscribe, e-mail: [hidden email]
  /user/SendEmail.jtp?type=nodenode=3316743i=0
  For additional commands, e-mail: [hidden email]
  /user/SendEmail.jtp?type=nodenode=3316743i=1
 
 
 
  
 
  If you reply to this email, your message will be added to the
  discussion below:
  
 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3316743.html
 

 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3316743.html?by-user=t

 
  To unsubscribe from Just 100K per session? That would be my dream 
come
  true! (Anyone here who has tuned session size before?), click here
  
 
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3308014code=cGVyQGhhbWJ1cmcuZGV8MzMwODAxNHwtMjI2MTAwMzE0
 

 
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3308014code=cGVyQGhhbWJ1cmcuZGV8MzMwODAxNHwtMjI2MTAwMzE0by-user=t
. 

 
 
 
  --
  View this message in context: 
 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3317403.html
 

 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3317403.html?by-user=t

  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3330006i=1
  For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3330006i=2
 
 

 -
 To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3330006i=3
 For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=3330006i=4



 
 If you reply to this email, your message will be added to the 
 discussion below:
 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3330006.html
 


 To unsubscribe from Just 100K per session? That would be my dream come 
 true! (Anyone here who has tuned session size before?), click here 
 
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3308014code=cGVyQGhhbWJ1cmcuZGV8MzMwODAxNHwtMjI2MTAwMzE0
. 




-- 
View this message in 

Re: LoadableDetachableModel small issue

2011-03-04 Thread MZemeck
Not completely sure what you're getting at, would RefreshingView help you?

http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/RefreshingView.html




From:   Alexandru Artimon aarti...@dgfoundation.org
To: users@wicket.apache.org
Date:   03/04/2011 08:31 AM
Subject:LoadableDetachableModel small issue



Hi guys,

Thanks again for the previous help with the LoadableDetachableModel.
Now I have a workflow problem related to LDM for which I think you 
guys might have a more elegant solution.

I have a hibernate collection which is shown by a ListView. Each item is 
passed to a LDM and rendered with a custom component. Now the problem is 
when the user wants to add new items to the collection. Due to the use 
of the LDM I need to first save the empty-item in the DB just to receive 
an id which the LDM can use later to load the object. Acceptable, but 
what if the user decides to leave the page without saving the form. At 
the next load the empty-items will be there which is not the desired 
functionality.

How do you guys handle new items which need to be passed to a LDM (in 
order to avoid all those problems generated by the Wicket Serializable 
Checker) ?

Thanks a lot,
Alexandru


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: LoadableDetachableModel small issue

2011-03-04 Thread MZemeck
I'm not totally understanding so I will let someone else try to answer but 
RefreshingView may apply to this question...

what if the user decides to leave the page without saving the form. At the 
next load the empty-items will be there which is not the desired 
functionality




From:   Alexandru Artimon aarti...@dgfoundation.org
To: users@wicket.apache.org
Date:   03/04/2011 09:14 AM
Subject:Re: LoadableDetachableModel small issue



Not really,

I want to find out what you guys do when in a form you add a new item to 
a collection(where the items are passed to a LDM and then showed). Do 
you save first the item and then pass it to a LDM? Or do you use a plain 
model? Or maybe something else?

I'm trying to see that I'm not headed on the wrong track.

Thanks,
Alexandru

On 03/04/2011 03:57 PM, mzem...@osc.state.ny.us wrote:
 Not completely sure what you're getting at, would RefreshingView help 
you?

 
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/repeater/RefreshingView.html





 From:   Alexandru Artimonaarti...@dgfoundation.org
 To: users@wicket.apache.org
 Date:   03/04/2011 08:31 AM
 Subject:LoadableDetachableModel small issue



 Hi guys,

 Thanks again for the previous help with the LoadableDetachableModel.
 Now I have a workflow problem related to LDM for which I think you
 guys might have a more elegant solution.

 I have a hibernate collection which is shown by a ListView. Each item is
 passed to a LDM and rendered with a custom component. Now the problem is
 when the user wants to add new items to the collection. Due to the use
 of the LDM I need to first save the empty-item in the DB just to receive
 an id which the LDM can use later to load the object. Acceptable, but
 what if the user decides to leave the page without saving the form. At
 the next load the empty-items will be there which is not the desired
 functionality.

 How do you guys handle new items which need to be passed to a LDM (in
 order to avoid all those problems generated by the Wicket Serializable
 Checker) ?

 Thanks a lot,
 Alexandru


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Disable form prettyfier

2011-03-04 Thread MZemeck
Okay but why not use an AjaxEditableLabel, then you don't have to manage 
multiple components and state is managed for you?




From:   robert.mcguinness robert.mcguinness@gmail.com
To: users@wicket.apache.org
Date:   03/04/2011 08:59 AM
Subject:Re: Disable form prettyfier



possibly: http://wicket.visural.net/examples/app/view-or-edit

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Disable-form-prettyfier-tp3334921p3335271.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

RE: Wicket thinks setOutputMarkupId property is not set to true

2011-03-11 Thread MZemeck
I've run into this using tab-panels, you have to get the target right by 
calling getParent() or something similar.  If you look at the rendered 
html the wicket id's can help yo track down the component you need to 
target.




From:   Coleman, Chris chris.cole...@thalesgroup.com.au
To: users@wicket.apache.org users@wicket.apache.org
Date:   03/11/2011 01:00 AM
Subject:RE: Wicket thinks setOutputMarkupId property is not set to 
true



Hmmm, it is in a tab panel so it could be the scenario you mention. I'll 
check out that theory.

Chris

-Original Message-
From: Bertrand Guay-Paquet [mailto:ber...@step.polymtl.ca] 
Sent: Friday, 11 March 2011 4:56 PM
To: users@wicket.apache.org
Subject: Re: Wicket thinks setOutputMarkupId property is not set to true

You did say that you set output markup ID to true on both components, 
but maybe you should double check that. I had a very similar problem 
once with an AjaxTabbedPanel that went like this:

1-The first displayed panel (tab) did not have setOutputMarkupId(true);
2-When the second tab is selected Wicket does a replace() to replace the 
first tab panel and overwrites the OutputMarkupId flag of the second 
panel which does setOutputMarkupId(true) in its constructor.

Maybe you have a chain of replaces where the first panel doesn't have 
setOutputMarkupId(true)?

Regards,
Bertrand

On 11/03/2011 12:04 AM, Coleman, Chris wrote:
 I should add that this is on 1.5-rc2. Previously on 1.4.16 the exact 
same code (except for package renames) worked fine.

 Chris

 -Original Message-
 From: Coleman, Chris [mailto:chris.cole...@thalesgroup.com.au]
 Sent: Friday, 11 March 2011 4:02 PM
 To: users@wicket.apache.org
 Subject: Wicket thinks setOutputMarkupId property is not set to true

 I get this error even though I set output markup ID to true on the 
component that is being replaced (and the one that is replacing it):


 Root cause:

 java.lang.IllegalArgumentException: cannot update component that does 
not have setOutputMarkupId property set to true. Component: 
[PackageDetailsPanel [Component id = panel]]
   at 
org.apache.wicket.ajax.AjaxRequestTarget.add(AjaxRequestTarget.java:375)
   at 
org.apache.wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:356)
 Any idea how this can happen?



 
DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail 
messages
 attached to it are private and confidential. They may contain 
proprietary or copyright
 material or information that is subject to legal professional privilege. 
They are for
 the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
 copying, alteration, storage or distribution of, or reliance on, this 
message is
 strictly prohibited. No part may be reproduced, adapted or transmitted 
without the
 written permission of the owner. If you have received this transmission 
in error, or
 are not an authorised recipient, please immediately notify the sender by 
return email,
 delete this message and all copies from your e-mail system, and destroy 
any printed
 copies. Receipt by anyone other than the intended recipient should not 
be deemed a
 waiver of any privilege or protection. Thales Australia does not warrant 
or represent
 that this e-mail or any documents, files and previous e-mail messages 
attached are
 error or virus free.
 
--




 
DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail 
messages
 attached to it are private and confidential. They may contain 
proprietary or copyright
 material or information that is subject to legal professional privilege. 
They are for
 the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
 copying, alteration, storage or distribution of, or reliance on, this 
message is
 strictly prohibited. No part may be reproduced, adapted or transmitted 
without the
 written permission of the owner. If you have received this transmission 
in error, or
 are not an authorised recipient, please immediately notify the sender by 
return email,
 delete this message and all copies from your e-mail system, and destroy 
any printed
 copies. Receipt by anyone other than the intended recipient should not 
be deemed a
 waiver of any privilege or protection. Thales Australia does not warrant 
or represent
 that this e-mail or any documents, files and previous e-mail messages 
attached are
 error or virus free.
 
--


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




RE: Wicket thinks setOutputMarkupId property is not set to true

2011-03-11 Thread MZemeck
Note, I'm referring to ajax-tab-panels which are ajax ready by default...



From:   mzem...@osc.state.ny.us
To: users@wicket.apache.org
Date:   03/11/2011 03:11 PM
Subject:RE: Wicket thinks setOutputMarkupId property is not set to 
true



I've run into this using tab-panels, you have to get the target right by 
calling getParent() or something similar.  If you look at the rendered 
html the wicket id's can help yo track down the component you need to 
target.




From:   Coleman, Chris chris.cole...@thalesgroup.com.au
To: users@wicket.apache.org users@wicket.apache.org
Date:   03/11/2011 01:00 AM
Subject:RE: Wicket thinks setOutputMarkupId property is not set to 

true



Hmmm, it is in a tab panel so it could be the scenario you mention. I'll 
check out that theory.

Chris

-Original Message-
From: Bertrand Guay-Paquet [mailto:ber...@step.polymtl.ca] 
Sent: Friday, 11 March 2011 4:56 PM
To: users@wicket.apache.org
Subject: Re: Wicket thinks setOutputMarkupId property is not set to true

You did say that you set output markup ID to true on both components, 
but maybe you should double check that. I had a very similar problem 
once with an AjaxTabbedPanel that went like this:

1-The first displayed panel (tab) did not have setOutputMarkupId(true);
2-When the second tab is selected Wicket does a replace() to replace the 
first tab panel and overwrites the OutputMarkupId flag of the second 
panel which does setOutputMarkupId(true) in its constructor.

Maybe you have a chain of replaces where the first panel doesn't have 
setOutputMarkupId(true)?

Regards,
Bertrand

On 11/03/2011 12:04 AM, Coleman, Chris wrote:
 I should add that this is on 1.5-rc2. Previously on 1.4.16 the exact 
same code (except for package renames) worked fine.

 Chris

 -Original Message-
 From: Coleman, Chris [mailto:chris.cole...@thalesgroup.com.au]
 Sent: Friday, 11 March 2011 4:02 PM
 To: users@wicket.apache.org
 Subject: Wicket thinks setOutputMarkupId property is not set to true

 I get this error even though I set output markup ID to true on the 
component that is being replaced (and the one that is replacing it):


 Root cause:

 java.lang.IllegalArgumentException: cannot update component that does 
not have setOutputMarkupId property set to true. Component: 
[PackageDetailsPanel [Component id = panel]]
   at 
org.apache.wicket.ajax.AjaxRequestTarget.add(AjaxRequestTarget.java:375)
   at 
org.apache.wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:356)
 Any idea how this can happen?



 
DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail 
messages
 attached to it are private and confidential. They may contain 
proprietary or copyright
 material or information that is subject to legal professional privilege. 

They are for
 the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
 copying, alteration, storage or distribution of, or reliance on, this 
message is
 strictly prohibited. No part may be reproduced, adapted or transmitted 
without the
 written permission of the owner. If you have received this transmission 
in error, or
 are not an authorised recipient, please immediately notify the sender by 

return email,
 delete this message and all copies from your e-mail system, and destroy 
any printed
 copies. Receipt by anyone other than the intended recipient should not 
be deemed a
 waiver of any privilege or protection. Thales Australia does not warrant 

or represent
 that this e-mail or any documents, files and previous e-mail messages 
attached are
 error or virus free.
 
--




 
DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail 
messages
 attached to it are private and confidential. They may contain 
proprietary or copyright
 material or information that is subject to legal professional privilege. 

They are for
 the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
 copying, alteration, storage or distribution of, or reliance on, this 
message is
 strictly prohibited. No part may be reproduced, adapted or transmitted 
without the
 written permission of the owner. If you have received this transmission 
in error, or
 are not an authorised recipient, please immediately notify the sender by 

return email,
 delete this message and all copies from your e-mail system, and destroy 
any printed
 copies. Receipt by anyone other than the intended recipient should not 
be deemed a
 waiver of any privilege or protection. Thales Australia does not warrant 

or represent
 that this e-mail or any documents, files and previous e-mail messages 
attached are
 error or virus free.
 

RE: mountSharedResource() on huge amount of images

2011-03-15 Thread MZemeck
For that many photos I would suggest storing them in a database.  Storing 
that many images on the file system is cumbersome and inefficient in my 
opinion.  You might run into many headaches especially around backups, 
deploys, upgrades, performance, file names, storage space, etc...




From:   Ladislav DANKO em...@1ac0.net
To: users@wicket.apache.org
Date:   03/15/2011 01:01 PM
Subject:RE: mountSharedResource() on huge amount of images



Imagine this situation: users have accounts on photo album where they 
upload
images. System from uploaded images create thumbnails. Users can browse
their photo - there is combo show 25, show 50... show all images. On
page
I render thumbnails on a page which are shadowbox clickable images.
All images (show all) I do in way described below.
Works fine but in extreme situation there is user with more than 3.000
images
in one photoalbum.

Or -how to do it better way?

Thanks,

Laco



 -Original Message-
 From: Bas Gooren [mailto:b...@iswd.nl] 
 Sent: Thursday, March 10, 2011 11:32 PM
 To: users@wicket.apache.org
 Subject: Re: mountSharedResource() on huge amount of images
 
 The general idea is to mount a single handler, which takes 
 the filename from the url.
 There is no reason to mount all images by such a handler one-by-one.
 
 Bas
 
 Op 10-3-2011 23:01, Ladislav DANKO schreef:
  Hi all,
 
  what is the recommended way to mount huge amount of an images 
  (thousands) in app? Does mountSharedResource() has any bottleneck? 
  Simplified code look
  like:
 
  Folder folder = ((Start) Application.get()).getUploadFolder();
  File[] files = folder.getFiles();
  ListFile  lList = Arrays.asList(files); 
 Collections.sort(lList); int 
  i = 0; IteratorFile  iterator = lList.iterator();
  while(iterator.hasNext())
  {
   iterator.next();
   String fileName = lList.get(i).getName();
   mountSharedResource(/images/ + fileName, new 
  ResourceReference(Images.class, fileName).getSharedResourceKey());
   i++;
  }
 
  But what if in folder is for example 100.000 photos?
 
  Thanks for pointing,
 
  --
  Ladislav DANKO
 
 
  
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: mountSharedResource() on huge amount of images

2011-03-15 Thread MZemeck
No offense Bas but that seems like a major hassle, especially considering 
with an ORM its a simple update/delete/find.  When it comes time to build 
out new servers now you have to shuffle around 300k photos instead of 
simply replicating a database.  Also sounds like it would make debugging 
more difficult when your images are three or more folders deep.  And what 
if you want to store attributes along with the photos?  Like say user 
comments, or flag them for inappropriate content, copyright infringement, 
etc.  What if there is an open file handle when you try to delete the 
image?  Just seems to me a much smoother solution to put in a db.  But 
with that I'm bowing out because as you said it's a heated debate and 
comes down to personal preference.




From:   Bas Gooren b...@iswd.nl
To: users@wicket.apache.org
Date:   03/15/2011 02:10 PM
Subject:Re: mountSharedResource() on huge amount of images



Now you're talking about rendering them, which is a different topic than 
mounting a resource which serves said images.

You'll only need to mount a single shared resource which serves all the 
images. However, given the amount of images you can consider allowing 
your front-end (e.g. apache httd) or a dedicated webserver serve the 
images.

Since you mention that the amount of images can be potentially large 
(250), I'd suggest removing the show all option, or using an ajax 
viewport (max 20-50 images on-screen at a time, when the user scrolls 
you load new images over ajax).

Someone else just suggested storing images in the database. While there 
is usually heated debate about this topic (files on disk vs in the 
database), let me just say that simply having lots of images is no 
reason to move images into the database. For starters, you can always 
store your files in a hashed folder structure, e.g. when the ID is 1234, 
store the image in a file/folder called /1/2/3/4.jpg

Bas

Op 15-3-2011 18:00, Ladislav DANKO schreef:
 Imagine this situation: users have accounts on photo album where they 
upload
 images. System from uploaded images create thumbnails. Users can browse
 their photo - there is combo show 25, show 50... show all images. 
On
 page
 I render thumbnails on a page which are shadowbox clickable images.
 All images (show all) I do in way described below.
 Works fine but in extreme situation there is user with more than 3.000
 images
 in one photoalbum.

 Or -how to do it better way?

 Thanks,

 Laco



 -Original Message-
 From: Bas Gooren [mailto:b...@iswd.nl]
 Sent: Thursday, March 10, 2011 11:32 PM
 To: users@wicket.apache.org
 Subject: Re: mountSharedResource() on huge amount of images

 The general idea is to mount a single handler, which takes
 the filename from the url.
 There is no reason to mount all images by such a handler one-by-one.

 Bas

 Op 10-3-2011 23:01, Ladislav DANKO schreef:
 Hi all,

 what is the recommended way to mount huge amount of an images
 (thousands) in app? Does mountSharedResource() has any bottleneck?
 Simplified code look
 like:

 Folder folder = ((Start) Application.get()).getUploadFolder();
 File[] files = folder.getFiles();
 ListFile   lList = Arrays.asList(files);
 Collections.sort(lList); int
 i = 0; IteratorFile   iterator = lList.iterator();
 while(iterator.hasNext())
 {
  iterator.next();
  String fileName = lList.get(i).getName();
  mountSharedResource(/images/ + fileName, new
 ResourceReference(Images.class, fileName).getSharedResourceKey());
  i++;
 }

 But what if in folder is for example 100.000 photos?

 Thanks for pointing,

 --
 Ladislav DANKO



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: PackageResourceReference, MetaInfStaticResourceReference and timestamps

2011-03-25 Thread MZemeck
Hi,

I made a new test (serving a png and a js) with current trunk and the gap 
is
much smaller now: tomcat is 25% faster on average.

Attila

Attila can you elaborate on your tests?  Are you comparing the difference 
between using a resource reference (js) and image component (png) in 
wicket vs linking straight the to the files in html?  If so, what 
relevance does whether the static files are in META-INF or WEB-INF have? 
Not that much because if I am correct the extra overhead is introduced by 
having wicket process the resource and spit out the markup...



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: model help

2011-03-29 Thread MZemeck
Not sure what your objects look like but I will try to answer question 
2...

Not sure if this will work for you...sometimes I find myself using 
PropertyModels mixed with CPMs...
new ListView(myId, new PropertyModel(foo, widgets))

And it may not be entirely obvious you can use dot notation to access 
nested objects...new PropertyModel(foo, bar.name) for the following;

class Foo() {

private Bar bar;

}

class Bar() {

private String name;

}




From:   mlabs mlabs@gmail.com
To: users@wicket.apache.org
Date:   03/29/2011 02:50 PM
Subject:model help



1. first I'd like to ask if there is any good reading material out there
regarding models. In particular I want to figure out all the nifty things
you can do with them via nesting/chaining etc. I've read Wicket in Action 
..
but it seemed to gloss over the advanced stuff you can do with them .. and
I've read the docs.. and just from reading those, well it's not obvious 
what
you can do with them and why...

2. I have a specific problem and I'm looking for some hints. I have a foo
bean that I get from a DAO layer. The foo bean has the usual name,
description String properties. It also has an array of 'widget' beans 
called
'widgets'. The widget beans also have a name and description properties 
ans
well as various others.
So I have a form and I map the foo.name, foo.description properties to
TextField components using a compundpropertymodel. The 3rd component is a
ListView, which I want to use to display the widgets. 
First problem I run into is that the ListView model needs to be a List, 
not
an array of Widget. So the compoundpropertymodel barfs at this point. I
don't have any control over the beans and I'd rather not wrap them .. I 
want
to bind the components directly to the bean properties.

I'm wondering if there is a neat trick I can use involving model nesting 
or
something like that to solve this problem? Or maybe there is a way to tell
the CPM that for property 'widgets' .. do something different.. like
array-to-List conversion .. 

I'm a wicket newbie and the model-penny hasn't quite dropped yet.. so any
help would be most appreciated.
TIA


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/model-help-tp3415833p3415833.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: flexible authentication

2011-03-29 Thread MZemeck
I think you could do it by using a base role that all users receive, 
then add additional roles to tighten it down.  You would then need to fake 
authentication of the base users by calling session.authenticate(user, 
pass) and assigning the BASE role, even though the user won't 
explicitly log in.  Users who do log in will receive the correct role such 
as ADMIN 

Some users secure (ADMIN), some users wide-open (BASE)
@AuthorizeInstantiation({ADMIN, BASE})

All users secure
@AuthorizeInstantiation(ADMIN)

You might also consider subclassing the page and marking that with the 
annotation, then handle the response to the secured or unsecured version 
by checking if the user is signed in.  I'm not sure where you are going 
with this because I'm not sure why you have the requirement of being 
secure for some users but not secure for others.




From:   hrbaer herber.m...@gmail.com
To: users@wicket.apache.org
Date:   03/29/2011 12:37 PM
Subject:flexible authentication



Hi all,

my web application is using the wicket authentication approach
(AuthenticatedWebSession) and all my secure java files are marked with
@AuthorizeInstantiation(ADMIN)
So once I added this annotation there is no chance to bypass the
authentication.

But what if there is the need to be flixible? What if for some users the
page A should be secure and for others don't?

Let's assume there is is page with e.g. contact informations and a user 
can
decide for his own if the page should be accessible with or without
authentication. How can I achieve that without using the wicket approach? 
At
the moment it don't think that the wicket approach is the right one?!

Thanks in advance.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/flexible-authentication-tp3415413p3415413.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-01 Thread MZemeck
I second Daniel's comments.

+1 for option 1




From:   Daniel Neugebauer mailingli...@energiequant.de
To: users@wicket.apache.org
Date:   04/01/2011 02:56 PM
Subject:Re: [VOTE] Behavior of CheckBox With Respect to 
setRequired(true)



I would stick with 1 (required to be checked).

The main reason would be not to break compatibility with old versions. I 
actually used .setRequired(true) on legal checkboxes (disclaimers) in 
one of our applications because if I have a required checkbox I expect 
it to be needed to be checked. Although I will change that in our 
project now that I know such a change is being discussed, I wouldn't 
expect others to be that observant of the issue and have unit tests that 
prevent anything from breaking on a future upgrade.

BTW an empty string (that's not null) is a string nevertheless. 
Following the argument that an unchecked (false) checkbox should be 
regarded as valid if it is required, an empty string should be accepted 
as a valid input as well. I've just tested it with Wicket 1.4 and 
actually both of the following TextFields validate to a failed state:

 TextField tf1 = new TextField(text1, new 
PropertyModelString(this, test1));
 tf1.setRequired(true);
 tf1.setConvertEmptyInputStringToNull(false);
 form.add(tf1);

 TextField tf2 = new TextField(text2, new 
PropertyModelString(this, test2));
 tf2.setRequired(true);
 tf2.setConvertEmptyInputStringToNull(true);
 form.add(tf2);

So, TextField.setRequired doesn't validate the syntactic meaning as 
well, instead it validates the semantic meaning, just as 
CheckBox.setRequired does. If that's consistently used throughout 
Wicket, I would expect CheckBox.setRequired to validate false unless the 
CheckBox is actually checked.

Just my 2 cents,
Daniel

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

UploadProgressBar Possible Bug

2011-04-04 Thread MZemeck
Sorry but I do not have the time/resources to create a quickstart (I don't 
use Maven) but I wanted to alert the group to an issue I had in case 
anyone wanted to test/fix it.

Using the following;

Wicket 1.4.16
UploadWebRequest in App object
Form with setMaxSize() (I'm using 1MB)
FileUploadField
AjaxSubmitButton
UploadProgressBar

When the form max size exception is hit, the progress bar stays visible 
and refreshes many times showing no progress, then eventually disappears. 
If I manually call error on a component the form stops processing and the 
progress bar disappears as expected.  I'm not sure if the bug is in the 
progress bar or the form processing.  There also seems to be some 
difference between Wicket 1.4.16 and 1.4.15.  Using 1.4.15 the progress 
bar disappeared but the page continued to refresh repeatedly.  After 
upgrading to 1.4.16 the progress bar remains visible and continues to 
refresh erroneously.



Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: UploadProgressBar Possible Bug

2011-04-04 Thread MZemeck
The form does not process anything besides the file upload, and everything 
works fine until the UploadProgressBar is introduced (and yes I set 
mutlipart to true).  I will open a jira if/when time permits, if you have 
the appropriate credentials please create a jira on my behalf, I am not 
currently an account holder.




From:   Pedro Santos pedros...@gmail.com
To: users@wicket.apache.org
Date:   04/04/2011 04:59 PM
Subject:Re: UploadProgressBar Possible Bug



Please open a ticket, I will try to reproduce and upload a quickstart. I
remember of it taking some time to be hidden, but just the time of form
submit process (maybe your form do heavy processing, easily reproducible 
on
quickstart).

On Mon, Apr 4, 2011 at 12:43 PM, mzem...@osc.state.ny.us wrote:

 Sorry but I do not have the time/resources to create a quickstart (I 
don't
 use Maven) but I wanted to alert the group to an issue I had in case
 anyone wanted to test/fix it.

 Using the following;

 Wicket 1.4.16
 UploadWebRequest in App object
 Form with setMaxSize() (I'm using 1MB)
 FileUploadField
 AjaxSubmitButton
 UploadProgressBar

 When the form max size exception is hit, the progress bar stays visible
 and refreshes many times showing no progress, then eventually 
disappears.
 If I manually call error on a component the form stops processing and 
the
 progress bar disappears as expected.  I'm not sure if the bug is in the
 progress bar or the form processing.  There also seems to be some
 difference between Wicket 1.4.16 and 1.4.15.  Using 1.4.15 the progress
 bar disappeared but the page continued to refresh repeatedly.  After
 upgrading to 1.4.16 the progress bar remains visible and continues to
 refresh erroneously.



 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.




-- 
Pedro Henrique Oliveira dos Santos





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: link within modal window should reload parent page

2011-04-11 Thread MZemeck
How about using setResponsePage in ModalWindow.WindowClosedCallback() or 
ModalWindow.CloseButtonCallback()?

Does modalwindow.close(target); fire CloseButtonCallback?
 




From:   hrbaer herber.m...@gmail.com
To: users@wicket.apache.org
Date:   04/11/2011 06:03 AM
Subject:Re: link within modal window should reload parent page



Thanks for the hint but the behaviour is still present.

I added your code to both ModalPage and parent Webpage but the popup still
appears.
Any idea?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3441529.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: link within modal window should reload parent page

2011-04-12 Thread MZemeck
The only thing that comes to mind is storing a flag in session.  Or 
perhaps if you are updating you datastore when the link is clicked you 
could check there.  Not the best solution in my mind, if you find 
something else let me know...




From:   hrbaer herber.m...@gmail.com
To: users@wicket.apache.org
Date:   04/11/2011 05:03 PM
Subject:Re: link within modal window should reload parent page



ok - I just realised that the WindowCloseCallback method gets triggered if 
a
user clicks on the link but also if he wants to close the popup. That's 
not
that good :(
Is there a chance to differ whether the user uses the link or just click 
on
the x button to close the popup?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3443126.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Continue navigating while on submit button process stuff on the background

2011-04-25 Thread MZemeck
Send your emails in a batch at a later time, or if you are using Spring 
you could use the new @Async annotation.




From:   lucast lucastol...@hotmail.com
To: users@wicket.apache.org
Date:   04/25/2011 08:32 AM
Subject:Continue navigating while on submit button process stuff 
on the background



Dear Forum,
I have a simple tabbed view object page with a notify button that when the
user clicks on the button, it emails a long list of people with 
information
about the concerning the object.

Some objects have a list of 100+ email addresses and clicking on submit
stops me from continuing visiting other tabbed pages until the email class
has finished sending all the emails (40 seconds afterwards).

How can implement the notify button so that it emails people on the
background AND allows me to continue navigating out of the current view
tabbed page into another page?

Thanks in advance,
Lucas

The button i'm implementing is simple:
new Button (notifyButton){
 @Override
 public void onSubmit() {
 EmailServices emailService = new 
EmailNotificationService();
 emailService.notifyMailingList(object);
 }
};



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3473026.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

Re: Continue navigating while on submit button process stuff on the background

2011-04-25 Thread MZemeck
or if you are not using Spring...use Java Futures...

http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Future.html



From:   lucast lucastol...@hotmail.com
To: users@wicket.apache.org
Date:   04/25/2011 08:32 AM
Subject:Continue navigating while on submit button process stuff 
on the background



Dear Forum,
I have a simple tabbed view object page with a notify button that when the
user clicks on the button, it emails a long list of people with 
information
about the concerning the object.

Some objects have a list of 100+ email addresses and clicking on submit
stops me from continuing visiting other tabbed pages until the email class
has finished sending all the emails (40 seconds afterwards).

How can implement the notify button so that it emails people on the
background AND allows me to continue navigating out of the current view
tabbed page into another page?

Thanks in advance,
Lucas

The button i'm implementing is simple:
new Button (notifyButton){
 @Override
 public void onSubmit() {
 EmailServices emailService = new 
EmailNotificationService();
 emailService.notifyMailingList(object);
 }
};



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Continue-navigating-while-on-submit-button-process-stuff-on-the-background-tp3473026p3473026.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.