Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-13 Thread lucast
Sven very kindly found the source of the problem.
The problem is that in my app I was using 
head
  wicket:link
   link href=style.css rel=stylesheet 
  /wicket:link
/head
with no closing tag. If I have had closing tag /link then the problem
wouldn't have occurred.
Damn! I should have spotted this!
Thanks, Sven.
Lucas


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-not-working-on-IE9-and-only-partially-on-IE8-tp3580258p3593344.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



Re: repeatingview or listview help

2011-06-13 Thread Martin Grigorov
Use a Panel or a Fragment.

RepeatingView rv = new RV(repeater);
Panel p = new Panel(rv.newChildId());
p.add(new Label(label1, ...));


On Mon, Jun 13, 2011 at 7:15 AM, wmike1...@gmail.com
wmike1...@gmail.com wrote:
 The only example the wicket docs give of a repeatingView is one with 1 html
 element in the repeater's markup:

 ulli wicket:id=repeater/li/ul

 If I wanted something like:
 div wicket:id=repeater
      div wicket:id=label1/div
      div wicket:id=label2/div
 /div


 Is this even possible with a repeatingView? Or is it more suitable for a
 ListView? Thanks

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/repeatingview-or-listview-help-tp3593171p3593171.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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: repeatingview or listview help

2011-06-13 Thread Sven Meier

Sure, if your repeated component has two children:

repeatingView.add(new 
WebMarkupContainer(repeatingView.newChildId()).add(new 
Label(label1)).add(new Label(label2)));


Sven

On 06/13/2011 06:15 AM, wmike1...@gmail.com wrote:

The only example the wicket docs give of a repeatingView is one with 1 html
element in the repeater's markup:

ulli wicket:id=repeater/li/ul

If I wanted something like:
div wicket:id=repeater
   div wicket:id=label1/div
   div wicket:id=label2/div
/div


Is this even possible with a repeatingView? Or is it more suitable for a
ListView? Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/repeatingview-or-listview-help-tp3593171p3593171.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



Re: Got some code for you (ObjectSizeOfAgent)

2011-06-13 Thread Martin Grigorov
Hi,

On Fri, Jun 10, 2011 at 10:09 PM, Jochen Mader
pflanzenmoer...@gmail.com wrote:
 Yes, the differences are really significant, around 60-70% in a lot of
 scenarios.
This is not good :-)

Have you seen the Google's tool for this:
http://jeremymanson.blogspot.com/2009/12/allocation-instrumenter-for-java_10.html

It'd be interesting to know to which of the two impls below it is closer.


 On Thu, Jun 9, 2011 at 11:21 AM, Martin Grigorov mgrigo...@apache.org wrote:
 Hi,

 Are there big differences between the results from
 DeepInstrumentationSizeOfStrategy and
 InstrumentationObjectSizeOfStrategy ?

 On Wed, Jun 8, 2011 at 8:32 PM, Jochen Mader pflanzenmoer...@gmail.com 
 wrote:
 Hey,
 a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to 
 run.
 As I needed it pretty badly for a project I built something new and
 added some more accurate size measurement for objects.
 I put all my code on Github and I am going to add some more
 performance related things in  there.
 https://github.com/pflanzenmoerder/object-size/

 I copied the code from the size of agent (with proper mentioning of
 where I got it from) and added it as one of the possible strategies to
 estimate the size of pages in ram.
 It all uses AspectJ and has no direct dependencies to Wicket and can
 be deploied as an agent using LoadTimeWeaving.
 It's all Appache 2 License (I hope that's correct).

 Would that be of any interest for the Wicket-project?

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





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



RE: Page serialization filling up disc space

2011-06-13 Thread Johan.Evelonn
Hi Pedro,

I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
directory I get a lot of directorys like this:
.paxweb/wicket.filter-filestore/

These directorys are never removed and that is filling up the temporary 
directory.

I have not configured the DiskPageStore at all, but I don't know if it will 
help if I change the maximum size of the pagemap, since old pagemaps is the 
problem.

I read this discussion which is sort of the same problem:
http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


Best regards,
Johan Evelönn 


-Original Message-
From: Pedro Santos [mailto:pedros...@gmail.com] 
Sent: den 10 juni 2011 17:55
To: users@wicket.apache.org
Subject: Re: Page serialization filling up disc space

Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
will never exceed the defined limit. It also delete the file when
session expires.
In which Wicket version did you find this issue? Can you fill a ticket
with a quickstart?

On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes the 
 application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, but 
 haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




-- 
Pedro Henrique Oliveira dos Santos

-
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: Page serialization filling up disc space

2011-06-13 Thread Martin Grigorov
By default Wicket uses javax.servlet.context.tempdir/... as a
location where these files are stored.
This by default is the work/ folder of the web container and is
managed by the web container itself.
You'll have to read the documentation of your web container (paxweb
tells me that this is OSGi but I don't know more about it).

You can change this locally programatically with
getServletContext().setAttribute(javax.servlet.context.tempdir,/my/own/location);
and manage it yourself.

On Mon, Jun 13, 2011 at 12:00 PM,  johan.evel...@tieto.com wrote:
 Hi Pedro,

 I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
 directory I get a lot of directorys like this:
 .paxweb/wicket.filter-filestore/

 These directorys are never removed and that is filling up the temporary 
 directory.

 I have not configured the DiskPageStore at all, but I don't know if it will 
 help if I change the maximum size of the pagemap, since old pagemaps is the 
 problem.

 I read this discussion which is sort of the same problem:
 http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


 Best regards,
 Johan Evelönn


 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: den 10 juni 2011 17:55
 To: users@wicket.apache.org
 Subject: Re: Page serialization filling up disc space

 Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
 will never exceed the defined limit. It also delete the file when
 session expires.
 In which Wicket version did you find this issue? Can you fill a ticket
 with a quickstart?

 On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes the 
 application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, but 
 haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




 --
 Pedro Henrique Oliveira dos Santos

 -
 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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Page serialization filling up disc space

2011-06-13 Thread Martin Grigorov
In Wicket 1.5 (trunk) there is also
org.apache.wicket.settings.IStoreSettings.setFileStoreFolder(File)
which allows to set a custom folder without using Servlet API

On Mon, Jun 13, 2011 at 12:21 PM, Martin Grigorov mgrigo...@apache.org wrote:
 By default Wicket uses javax.servlet.context.tempdir/... as a
 location where these files are stored.
 This by default is the work/ folder of the web container and is
 managed by the web container itself.
 You'll have to read the documentation of your web container (paxweb
 tells me that this is OSGi but I don't know more about it).

 You can change this locally programatically with
 getServletContext().setAttribute(javax.servlet.context.tempdir,/my/own/location);
 and manage it yourself.

 On Mon, Jun 13, 2011 at 12:00 PM,  johan.evel...@tieto.com wrote:
 Hi Pedro,

 I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
 directory I get a lot of directorys like this:
 .paxweb/wicket.filter-filestore/

 These directorys are never removed and that is filling up the temporary 
 directory.

 I have not configured the DiskPageStore at all, but I don't know if it will 
 help if I change the maximum size of the pagemap, since old pagemaps is the 
 problem.

 I read this discussion which is sort of the same problem:
 http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


 Best regards,
 Johan Evelönn


 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: den 10 juni 2011 17:55
 To: users@wicket.apache.org
 Subject: Re: Page serialization filling up disc space

 Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
 will never exceed the defined limit. It also delete the file when
 session expires.
 In which Wicket version did you find this issue? Can you fill a ticket
 with a quickstart?

 On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes 
 the application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, 
 but haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




 --
 Pedro Henrique Oliveira dos Santos

 -
 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





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



How to Obfuscate content?

2011-06-13 Thread Arjun Dhar
Hi,
 my question has following parts:
1. What is the best JavaScript / HTML API based obfuscator one can recommend
to use?

2. How/Where would one integrate that with Wicket?

3. Do these obfuscators have any practical impact on performance (Silly Q,
admitted :) ) .. better; can the page results be cached?

4. What if I want to Obfuscate the results of a Panel? Can I apply any
strategy to a WebComponent rather than to the entire page? --- This maybe
useful as certain sections of the page may need to be obfuscated rather than
the whole page.


thanks



-
Software documentation is like sex: when it is good, it is very, very good; and 
when it is bad, it is still better than nothing!
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Obfuscate-content-tp3593501p3593501.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



Re: How to Obfuscate content?

2011-06-13 Thread Martin Grigorov
See org.apache.wicket.markup.transformer.AbstractTransformerBehavior
and its impls.

About obfuscation: I'm not sure how the browser will read the passed html

Why do you need this at all ?

On Mon, Jun 13, 2011 at 1:03 PM, Arjun Dhar dhar...@yahoo.com wrote:
 Hi,
  my question has following parts:
 1. What is the best JavaScript / HTML API based obfuscator one can recommend
 to use?

 2. How/Where would one integrate that with Wicket?

 3. Do these obfuscators have any practical impact on performance (Silly Q,
 admitted :) ) .. better; can the page results be cached?

 4. What if I want to Obfuscate the results of a Panel? Can I apply any
 strategy to a WebComponent rather than to the entire page? --- This maybe
 useful as certain sections of the page may need to be obfuscated rather than
 the whole page.


 thanks



 -
 Software documentation is like sex: when it is good, it is very, very good; 
 and when it is bad, it is still better than nothing!
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-Obfuscate-content-tp3593501p3593501.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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



RE: Page serialization filling up disc space

2011-06-13 Thread Johan.Evelonn
Hi,

Yes, the server I run the wicket web application on is based on OSGi, I have 
checked in Paxweb if there is some settings to tweak, but haven't found any 
just yet.

I changed the folder where the files are located by changing java.io.tmpdir.
So I will have to manage that folder myself? I guess I could create a cron-job, 
which would delete files older than a certain age.
Will Wicket throw an exception if I delete wrong-files, how would I need to 
handle that in such case?

Best regards,
Johan Evelönn 


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: den 13 juni 2011 11:59
To: users@wicket.apache.org
Subject: Re: Page serialization filling up disc space

In Wicket 1.5 (trunk) there is also
org.apache.wicket.settings.IStoreSettings.setFileStoreFolder(File)
which allows to set a custom folder without using Servlet API

On Mon, Jun 13, 2011 at 12:21 PM, Martin Grigorov mgrigo...@apache.org wrote:
 By default Wicket uses javax.servlet.context.tempdir/... as a
 location where these files are stored.
 This by default is the work/ folder of the web container and is
 managed by the web container itself.
 You'll have to read the documentation of your web container (paxweb
 tells me that this is OSGi but I don't know more about it).

 You can change this locally programatically with
 getServletContext().setAttribute(javax.servlet.context.tempdir,/my/own/location);
 and manage it yourself.

 On Mon, Jun 13, 2011 at 12:00 PM,  johan.evel...@tieto.com wrote:
 Hi Pedro,

 I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
 directory I get a lot of directorys like this:
 .paxweb/wicket.filter-filestore/

 These directorys are never removed and that is filling up the temporary 
 directory.

 I have not configured the DiskPageStore at all, but I don't know if it will 
 help if I change the maximum size of the pagemap, since old pagemaps is the 
 problem.

 I read this discussion which is sort of the same problem:
 http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


 Best regards,
 Johan Evelönn


 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: den 10 juni 2011 17:55
 To: users@wicket.apache.org
 Subject: Re: Page serialization filling up disc space

 Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
 will never exceed the defined limit. It also delete the file when
 session expires.
 In which Wicket version did you find this issue? Can you fill a ticket
 with a quickstart?

 On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes 
 the application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, 
 but haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




 --
 Pedro Henrique Oliveira dos Santos

 -
 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





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: How to Obfuscate content?

2011-06-13 Thread Arjun Dhar
AbstractTransformerBehavior  looks cool. ...As for caching, will address that
separately. Thanks

Why do you need this at all ?  -- Mainly technical curiosity and I also
Obfuscation and Compression of JavaScript/HTML is pretty much in demand, so
writing stuff to cater to those demands without being too performance heavy.

Example: Wicket in Production mode has the setting to remove White Spaces,
this is itself a trivial form of compression/obfuscation to begin with; I
guess as an analogy :)


-
Software documentation is like sex: when it is good, it is very, very good; and 
when it is bad, it is still better than nothing!
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-Obfuscate-content-tp3593501p3593570.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



selenium certificate problem

2011-06-13 Thread Anna Simbirtsev
Hi,

I am using selenium to test my wicket application. When run test
cases, I get an error This Connection is Untrusted and asks me to
accept to certificate.
I am trying to get selenium server to use my profile and not to create
a new one every time.
I added the following line to pom.xml, but it does not work.

firefoxProfileTemplate/home/myhome/seleniumprofile/firefoxProfileTemplate

seleniumprofile directory is copied from .mozilla/firefox directory


plugin
groupIdorg.codehaus.mojo/groupId
artifactIdselenium-maven-plugin/artifactId
version1.0.1/version
executions
execution
idstart/id
phasepre-integration-test/phase
goals
goalstart-server/goal
/goals
configuration

firefoxProfileTemplate/home/myhome/seleniumprofile/firefoxProfileTemplate
backgroundtrue/background
/configuration
/execution

execution
idstop/id
phasepost-integration-test/phase
goals
goalstop-server/goal
/goals
/execution
/executions
  /plugin

Thanks
Anna

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



redrawing repeaters

2011-06-13 Thread wmike1...@gmail.com
Hi, 

I'm confused on the concept of redrawing a repeater. Ideally when I add an
element to something such as a ListView I'd like to just draw that new
element. The only way I've found of drawing it is to do target.add(repeater)
inside of an ajax function. This seems to me like it's redrawing the entire
list of elements instead of just the new one. Is this whats going on here? 

Thanks, 
Mike 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/redrawing-repeaters-tp3594955p3594955.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



Re: redrawing repeaters

2011-06-13 Thread Igor Vaynberg
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/

-igor

On Mon, Jun 13, 2011 at 2:19 PM, wmike1...@gmail.com
wmike1...@gmail.com wrote:
 Hi,

 I'm confused on the concept of redrawing a repeater. Ideally when I add an
 element to something such as a ListView I'd like to just draw that new
 element. The only way I've found of drawing it is to do target.add(repeater)
 inside of an ajax function. This seems to me like it's redrawing the entire
 list of elements instead of just the new one. Is this whats going on here?

 Thanks,
 Mike

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/redrawing-repeaters-tp3594955p3594955.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