Re: entity manager in webapp

2011-03-10 Thread Witold Czaplewski
IMO warp-persist is dead and Guice 3.0 should be final soon (rc3 is out now):
http://code.google.com/p/google-guice/downloads/list


Witold

Am Thu, 10 Mar 2011 15:31:19 +0100
schrieb Bas Gooren :

> Which is basically warp-persist, but integrated into guice. But as far 
> as I know, it will be only be integrated as of guice 3.0;
> 
> Bas
> 
> Op 10-3-2011 15:29, nino martinez wael schreef:
> > I'd go for guice persist if thats an option..
> >
> > 2011/3/10 Bas Gooren
> >
> >> Have a look at databinder or warp-persist for a better implementation.
> >>
> >> Should you go with your own implementation, do not forget to clear the
> >> ThreadLocal at the end of the request to prevent:
> >> a) leaking
> >> b) re-using an EntityManager from a previous request (most if not all
> >> application servers use a thread pool)
> >>
> >> Bas
> >>
> >> Op 10-3-2011 13:12, Duro schreef:
> >>
> >>   Hi guys, is this an option to store the JPA entity manager for a wicket
> >>> webapp:
> >>> public class DBUtil {
> >>> private static EntityManagerFactory entityManagerFactory = Persistence
> >>> .createEntityManagerFactory("db");
> >>> private static ThreadLocal  emHolder = new
> >>> ThreadLocal() {
> >>> protected EntityManager initialValue() {
> >>> return entityManagerFactory.createEntityManager();
> >>> };
> >>> };
> >>>
> >>> public static User getUser(String userName) {
> >>> return emHolder.get().find(User.class, userName);
> >>> }
> >>>
> >>> ..
> >>>
> >>> If not, thanks for possible better solutions, Juraj
> >>>
> >>> -
> >>> 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: [OT] CSS 3 border radius fallback script

2010-07-26 Thread Witold Czaplewski
Hi Nino,

take a look at curved-corner:
http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser
http://code.google.com/p/curved-corner/

cheers,
Witold

Am Tue, 27 Jul 2010 07:27:36 +0200
schrieb nino martinez wael :

> Hi
> 
> I know this is off topic. But has anyone knowledge of a javascript that will
> detect if the browser has support for css 3 border radius and if it does
> not, put in borders on appropriate elements?
> 
> I might be able todo something with together with jquery and liquid canvas
> if such a script does not exist...
> 
> regards Nino


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



Re: Line breaks and label

2010-07-23 Thread Witold Czaplewski
hmm...sorry, i don't understand what you mean.

Here a small example how to implement this.

HTML-Template:


CSS:
.nowrap {white-space:nowrap;}

Java:
add(new Label("myspan", new Model("Some long Text..."));

Hope it helps. :)

Witold


Am Thu, 22 Jul 2010 22:42:23 -0700 (PDT)
schrieb Nii Amon Dsane :

> 
> Hi Witold,
> 
> I noticed something. When I was using  tags to embed strings in to the
> markup, the CSS wasn't applied but when I tried it with a  the styles
> were applied. Is this expected behaviour?
> 
> nii amon


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



Re: Line breaks and label

2010-07-22 Thread Witold Czaplewski
Or use in CSS: white-space:nowrap;

Witold

Am Thu, 22 Jul 2010 11:56:57 +0200
schrieb Martijn Dashorst :

> This is not a wicket problem, but rather a browser rendering issue.
> Use   instead of whitespace.
> 
> Martijn
> 
> On Thu, Jul 22, 2010 at 5:47 AM, Nii Amon Dsane  wrote:
> > Hello,
> >
> > I have a label that's displayed on a page. The label displays but with a
> > linebreak and this breaks the sentence that I am writing. How do I get rid
> > of the line break after the label?
> >
> > My code is below (the problematic label is svcName):
> >
> > List list = getServices();
> > ListView listview = new ListView("servicesList", list) {
> > protected void populateItem(ListItem item) {
> > Service svc = (Service) item.getModelObject();
> >
> > final String svcUrl = svc.svcUrl();
> > String svcName = svc.getName();
> > String count = "Hits: " + svc.count();
> >
> > Link svcLink = new Link("svcUrl") {
> > @Override
> > public void onClick() {}
> >
> > @Override
> > protected void onComponentTag(final ComponentTag tag) {
> > tag.put("href", svcUrl);
> > }
> > };
> > svcLink.add(new Label("svcName", svcName));
> > item.add(svcLink);
> > item.add(new Label("svcHits", count));
> > }
> > };
> > add(listview);
> >
> > And this is my HTML view (the problematic label is svcName):
> >
> > 
> >    
> >     
> >     
> >      |
> >     Edit |
> >     Deactivate |
> >     Delete
> >     
> >    
> >
> > 
> >
> > Many thanks
> > nii amon
> >
> > I never see what has been done; I only see what remains to be done - Buddha
> >
> 
> 
> 


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



Re: Shadow text on input fields

2010-04-26 Thread Witold Czaplewski
If you don't want to use JavaScript, you can still try it with CSS and images,
like

HTML:


CSS:
input.name {background:url(name.png)}
input.name:focus {background:none}

But the problem is, if you leave the field the image returns. :)

Witold

Am Mon, 26 Apr 2010 14:28:57 +0300
schrieb Josh Kamau :

> I wish we could have something like myTextField.setDefaultText("Type text
> here");
> 
> On Mon, Apr 26, 2010 at 11:55 AM, Josh Kamau  wrote:
> 
> > Thanks Marjtin
> >
> >
> > On Mon, Apr 26, 2010 at 11:27 AM, Martijn Dashorst <
> > martijn.dasho...@gmail.com> wrote:
> >
> >> If you can get away with it, you can use HTML5's placeholder text:
> >>
> >> http://diveintohtml5.org/forms.html
> >>
> >> Martijn
> >>
> >> On Mon, Apr 26, 2010 at 9:19 AM, Josh Kamau 
> >> wrote:
> >> > Hi guys;
> >> >
> >> > I would like to put some shadow text on the form input fields that
> >> > disappears when one starts editing the field. The kind that appears on
> >> > facebook fields. How do i do it. Most likely its not a wicket issue but
> >> i
> >> > really need assistance in this. Am not very good in javascript.
> >> >
> >> > Kind regards
> >> >
> >> > Josh
> >> >
> >>
> >>
> >>
> >> --
> >> 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.7
> >>
> >> -
> >> 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: DatePicker uses wrong date format

2010-03-24 Thread Witold Czaplewski
see http://issues.apache.org/jira/browse/WICKET-2767

Regards,
Witold

Am Wed, 24 Mar 2010 10:39:49 + (GMT)
schrieb Tokalak Ahmet :

> Hi wicketians,
> 
> after updating to wicket 1.4.7 the DatePicker does not use the date format i
> passed to DateTextField any more:
> 
> form.add(new DateTextField("dateFilter.from", new
> PropertyModel(dateFilter, "from"), "dd.MM.").setRequired(true).add(new
> DatePicker()));
> 
> Instead of "dd.MM." the DatePicker uses  "dd.MM.yy", only 2 digits for
> the year.
> 
> Regards
> 
> 
> __
> 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



Re: LegUp for wiQuery

2010-03-04 Thread Witold Czaplewski
You could take a look at http://www.malsup.com/jquery/corner/
It's a JS based solution using multiple div containers.

Witold



Am Thu, 4 Mar 2010 06:05:00 -0800 (PST)
schrieb shetc :

> 
> I guess this is an off-topic question. I want to use wiQuery and jquery UI in
> the current
> Wicket-based app that I am working on. This will be a public-facing app that
> needs to support
> IE6 and upwards. However, the rounded corners used for many of the jquery UI
> widgets does
> not work in IE -- jquery UI uses CSS 3 specs, which is not supported in IE.
> Have you had any
> success in creating rounded corners for apps that use wiQuery and are
> displayed in IE?
> 
> Thanks!


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



Re: autolink not work ?

2010-02-26 Thread Witold Czaplewski
Are you sure Martijn?

I use ../ paths in a project without problems.
e.g


  Users


UserPage.html is the name of the HTML-Template, not the mounted url.

Witold


Am Fri, 26 Feb 2010 09:46:58 +0100
schrieb Martijn Dashorst :

> wicket:link doesn't work for ../ paths. Use bookmarkablepagelinks instead.
> 
> Martijn
> 
> On Fri, Feb 26, 2010 at 9:42 AM, marioosh.net  wrote:
> > I have packages:
> >
> > net.marioosh.wicket.learn1.lesson4
> > net.marioosh.wicket.learn1.linkownia
> >
> > and webpage: Index.html in linkownia package:
> >
> >         > >Lesson4  > >href="../linkownia/Index.html">Index1
> >        Index2
> >        Index3
> >
> > Lesson4 link works, but Index1, Index2, Index3 links doesn't.
> > Index1 and Index2 is generated as italics, and Index3 is generated as
> > link but get Error404 (http://localhost:8080/linkownia/Index.html)
> >
> > How to correct this ?
> >
> > --
> > Greetings,
> > marioosh
> >
> > -
> > 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 UI Components Examples

2010-02-01 Thread Witold Czaplewski
Or
http://wicketstuff.org/wicket14/

cheers,
Witold

Am Mon, 1 Feb 2010 00:49:28 -0800
schrieb Andrew Lombardi :

> The latest examples using wicket 1.4.6 are also available here:
> 
> http://wicketbyexample.com/examples/
> 
> On Feb 1, 2010, at 12:10 AM, Expirience wrote:
> 
> > Hi there,
> > 
> > is there something similar to "http://demo.vaadin.com/sampler/"; for Wicket?
> > On "http://wicketstuff.org/wicket13/compref/"; are just a few components but
> > it would be nice to have a complete examples page.
> > 
> > Thanks
> 
> 
> To our success!
> 
> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
> 
> ANDREW LOMBARDI | and...@mysticcoders.com
> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> ofc: 714-816-4488
> fax: 714-782-6024
> cell: 714-697-8046
> linked-in: http://www.linkedin.com/in/andrewlombardi
> twitter: http://www.twitter.com/kinabalu
> 
> Eco-Tip: Printing e-mails is usually a waste.
> 
> 
> This message is for the named person's use only. You must not, directly or
> indirectly, use, disclose, distribute, print, or copy any part of this
> message if you are not the intended recipient.
> 
> 


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



Re: JVM crash, Wicket class mentioned

2010-01-12 Thread Witold Czaplewski
There is an early access version of update 18:
https://jdk6.dev.java.net/6uNea.html

cheers,
Witold

Am Wed, 13 Jan 2010 09:52:01 +1100
schrieb Steve Swinsburg :

> For the rare JVM crash in the past this is what I've done also, however _17
> is the latest so there is no upgrade.
> 
> Still, we would really like to know what caused this. A Wicket class is
> referenced in the error.
> 
> thanks,
> Steve
> 
> 
> On 12/01/2010, at 12:07 AM, Martin Makundi wrote:
> 
> > Hi!
> > 
> > No, I remember having similar problems before and they were fixed by
> > upgarding jvm (1.6.0_17 -> 1.6.0_18 for example).
> > 
> > **
> > Martin
> > 
> > 2010/1/11 Steve Swinsburg :
> >> Hi Martin,
> >> 
> >> I'll pass that on, but the JRE version is 1.6.0_17-b04 unless you mean the
> >> 14.3-b01 VM version?
> >> 
> >> Heres the system info from the log:
> >> 
> >> 
> >> OS:SUSE Linux Enterprise Server 10 (x86_64)
> >> VERSION = 10
> >> PATCHLEVEL = 2
> >> 
> >> uname:Linux 2.6.16.60-0.42.5-smp #1 SMP Mon Aug 24 09:41:41 UTC 2009 x86_64
> >> libc:glibc 2.4 NPTL 2.4
> >> rlimit: STACK 8192k, CORE 0k, NPROC 69119, NOFILE 10, AS infinity
> >> load average:0.32 1.14 0.74
> >> 
> >> CPU:total 4 (1 cores per cpu, 2 threads per core) family 15 model 4
> >> stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
> >> 
> >> Memory: 4k page, physical 8118936k(50388k free), swap 5242872k(5179744k
> >> free)
> >> 
> >> vm_info: Java HotSpot(TM) 64-Bit Server VM (14.3-b01) for linux-amd64 JRE
> >> (1.6.0_17-b04), built on Oct 11 2009 01:08:48 by "java_re" with gcc 3.2.2
> >> (SuSE Linux)
> >> 
> >> time: Sat Jan  9 18:54:46 2010
> >> elapsed time: 536 seconds
> >> 
> >> 
> >> cheers,
> >> Steve
> >> 
> >> On 11/01/2010, at 11:54 PM, Martin Makundi wrote:
> >> 
> >>> Hi!
> >>> 
> >>> Did you try newer jvm build?
> >>> 
> >>> **
> >>> Martin
> >>> 
> >>> 2010/1/11 Steve Swinsburg :
>  Hi,
>  
>  This came up on another list I am part of, and being a member of this
>  list, thought I'd ask here to see if this is a known fixed issue. This
>  is with an app written using Wicket 1.3.0. Essentially, the JVM crashed
>  with this error under Java 1.6, the same app runs fine under Java 1.5:
>  
>  #
>  # A fatal error has been detected by the Java Runtime Environment:
>  #
>  # SIGSEGV (0xb) at pc=0x2b5fa7fb, pid=21669, tid=1218128192
>  #
>  # JRE version: 6.0_17-b04
>  # Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode
>  linux-amd64 )
>  # Problematic frame:
>  # J
>  org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V
>  
>  Some relevant parts from the log:
>  
>  Stack: [0x488b2000,0x489b3000],  sp=0x489af470,
>  free space=1013k Native frames: (J=compiled Java code, j=interpreted,
>  Vv=VM code, C=native code) J
>  org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(Ljava/lang/Object;)V
>  
>  2aac13c5d000-2aac13c81000 r-xs 0017e000 fd:01
>  1204727
>  /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-1.3.0.jar
>  2aac13c81000-2aac13c83000 r-xs 0002d000 fd:01
>  1204728
>  /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-datetime-1.3.0.jar
>  2aac13c83000-2aac13c8e000 r-xs 0004e000 fd:01
>  1204719
>  /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-extensions-1.3.0.jar
>  2aac13c8e000-2aac13c9 r-xs 4000 fd:01
>  1204722
>  /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-ioc-1.3.0.jar
>  2aac13c9-2aac13c92000 r-xs 3000 fd:01
>  1204729
>  /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-1.3.0.jar
>  2aac13c92000-2aac13c93000 r-xs 3000 fd:01
>  1204724
>  /usr/local/xxx/webapps/the-app/WEB-INF/lib/wicket-spring-annot-1.3.0.jar
>  
>  
>  I can send the log to interest parties, but there is only this reference
>  to the Wicket class, as well as a few Wicket jars on the classpath,
>  unless there is more you need to see.
>  
>  So, any known issues? An upgrade is required of course, but we'd like to
>  resolve what the problem was to start with.
>  
>  thanks,
>  Steve
>  
>  
>  
> >>> 
> >>> -
> >>> 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-unsub

Re: Refresh resources in deployment mode

2009-12-10 Thread Witold Czaplewski
Oh...I test it. You were right.

Sorry and thanks a lot martijn. :)

Am Thu, 10 Dec 2009 12:29:04 +0100
schrieb Witold Czaplewski :

> Hmm...i thought this only work in development mode?
> 
> Am Thu, 10 Dec 2009 12:10:25 +0100
> schrieb Martijn Dashorst :
> 
> > Set the resource poll frequency to something other than null in your
> > init() method
> > 
> > Martijn
> > 
> > On Thu, Dec 10, 2009 at 12:08 PM, Witold Czaplewski
> >  wrote:
> > > Hello,
> > >
> > > In deployment mode, is it possible to refresh resources like html- or
> > > property-files without reloading the context or server? For example if you
> > > have a simple typo which you want to fix.
> > >
> > > Regards,
> > > Witold
> > >
> > > -
> > > 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: Refresh resources in deployment mode

2009-12-10 Thread Witold Czaplewski
Hmm...i thought this only work in development mode?

Am Thu, 10 Dec 2009 12:10:25 +0100
schrieb Martijn Dashorst :

> Set the resource poll frequency to something other than null in your
> init() method
> 
> Martijn
> 
> On Thu, Dec 10, 2009 at 12:08 PM, Witold Czaplewski
>  wrote:
> > Hello,
> >
> > In deployment mode, is it possible to refresh resources like html- or
> > property-files without reloading the context or server? For example if you
> > have a simple typo which you want to fix.
> >
> > Regards,
> > Witold
> >
> > -
> > 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



Refresh resources in deployment mode

2009-12-10 Thread Witold Czaplewski
Hello,

In deployment mode, is it possible to refresh resources like html- or
property-files without reloading the context or server? For example if you
have a simple typo which you want to fix.

Regards,
Witold

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



Re: file descriptor leak

2009-12-03 Thread Witold Czaplewski
http://issues.apache.org/jira/browse/WICKET-2534

I think this will be fixed in 1.4.4

Witold

Am Thu, 3 Dec 2009 10:56:38 +0100
schrieb Maarten Bosteels :

> Have you seen this thread:
> http://www.mail-archive.com/users@wicket.apache.org/msg43879.html
> 
> Maarten
> 
> On Thu, Dec 3, 2009 at 9:46 AM, Johan Compagner wrote:
> 
> > We try to do our best, but the problem is that this is a leak internal to
> > java itself (classloader and urlconnection)
> >
> > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> >
> > play with antiJarLocking and antiResouceLocking attributes.
> >
> > johan
> >
> >
> > On Thu, Dec 3, 2009 at 09:41, Pascal Grange <
> > pascal1.gra...@orange-ftgroup.com> wrote:
> >
> > > Hello,
> > >
> > > I observe file descriptor leaks when running my wicket application. By
> > leak
> > > I mean that the java process tries to open more than 1024 file
> > descriptors.
> > > When I lsof the process, here is what I see :
> > >
> > > lsof -p 24689 | wc -l -> 1095
> > > lsof -p 24689 | grep wicket-1.3.4.jar | wc -l -> 522
> > > lsof -p 24689 | grep  wicket-datetime-1.3.4.jar | wc -l -> 401
> > > lsof -p 24689 | grep  wicket-extensions-1.3.4.jar | wc -l -> 6
> > >
> > > I am new to wicket and I need help to fix this. Searching for file
> > > descriptor leaks in wicket on google I found some old mailing-list post
> > but
> > > that doesn't help me a lot so I post here :) I red about issues with jar
> > url
> > > but the post are so old that I understand those are fixed bug ?
> > >
> > > No need to precise what versions of wicket stuffs I use, your can see
> > that
> > > above. For java, it's version 1.5.0_14 and Tomcat version is 5.5.25.
> > >
> > > Thanks for your help,
> > > Pascal.
> > >
> > >
> > > 
> > > Ce message et toutes les pieces jointes (ci-apres le "message") sont
> > > confidentiels et etablis a l'intention exclusive de ses destinataires.
> > > Toute utilisation ou diffusion non autorisee est interdite.
> > > Tout message electronique est susceptible d'alteration. Multimedia
> > Business
> > > Services decline toute responsabilite au titre de ce message s'il a ete
> > > altere, deforme ou falsifie.
> > > Si vous n'etes pas destinataire de ce message, merci de le detruire
> > > immediatement et d'avertir l'expediteur.
> > > *
> > > This message and any attachments (the "message") are confidential and
> > > intended solely for the addressees. Any unauthorised use or dissemination
> > is
> > > prohibited.
> > > Messages are susceptible to alteration. Multimedia Business Services
> > shall
> > > not be liable for the message if altered, changed or
> > > falsified.
> > > If you are not the intended addressee of this message, please cancel it
> > > immediately and inform the sender.
> > > 
> > >
> > >
> > > -
> > > 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: Nial Darbey: ClassCast exception when invoking MySession.get() from Maven test phase

2009-08-20 Thread Witold Czaplewski
Try

public static MyWebSession get() {
return (MyWebSession) WebSession.get();
}

Witold

Am Thu, 20 Aug 2009 12:09:00 +0200
schrieb Nial Darbey :

> Hi everyone,I have subclassed the WebSession class as recommended in
> Wicket in Action and I override the public static get() method to
> return Session.get() cast to MyWebSession as follows:
> public static MyWebSession get() { return (MyWebSession)
> Session.get(); }
> 
> This of course works as expected but when I run my tests from maven
> against code which uses this I get a ClassCastException
> (org.apache.wicket.protocol.http.WebSession cannot be cast to
> org.my.MyWebSession)
> I'm guessing this must be a classloader issue.
> Has anyone come across this?
> Best regards,
> Nial Darbey


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



Re: How to add Random number to URL ?

2009-08-13 Thread Witold Czaplewski
This class modifies the src attribute of the img tag:
...
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);

String url = tag.getAttributes().getString("src");
url = url + ((url.indexOf("?") >= 0) ? "&" : "?");
url = url + "wicket:antiCache=" +
System.currentTimeMillis();

tag.put("src", url);
}
...

Maybe you can do something similar with your links.

Am Thu, 13 Aug 2009 01:15:48 -0700 (PDT)
schrieb FaRHaN :

> How can i use this for every request ? As i want to generate a unique
> URL for every page (not for images), any examples ???
> 
> 
> 
> 
> 
> From: Witold Czaplewski 
> To: users@wicket.apache.org
> Sent: Thursday, August 13, 2009 2:58:18 PM
> Subject: Re: How to add Random number to URL ?
> 
> Take a look at NonCachingImage.
> 
> Witold
> 
> Am Thu, 13 Aug 2009 00:44:07 -0700 (PDT)
> schrieb FaRHaN :
> 
> > Hi,
> > I want to add a random number to my requested URL, so that each
> > request to my page go to server and not load from the cache. How can
> > i add a random number to each requested URL ? Some examples
> > acheiving this behaviour will be appreciated...
> > 
> > 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



Re: How to add Random number to URL ?

2009-08-13 Thread Witold Czaplewski
Take a look at NonCachingImage.

Witold

Am Thu, 13 Aug 2009 00:44:07 -0700 (PDT)
schrieb FaRHaN :

> Hi,
> I want to add a random number to my requested URL, so that each
> request to my page go to server and not load from the cache. How can
> i add a random number to each requested URL ? Some examples acheiving
> this behaviour will be appreciated...
> 
> Thanks...
> 
> 
> 
>   

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



Re: log4j question with wicket

2009-07-24 Thread Witold Czaplewski
Maybe this can help

http://day-to-day-stuff.blogspot.com/2007/07/no-more-commons-logging.html

Witi

Am Fri, 24 Jul 2009 15:08:48 +0200
schrieb pieter claassen :

> Yes, I find that if I use log4j directly, then it works, but if I use
> slf4j, then it logs via the built in java.util.logging of tomcat6. So
> the issue seems to be to integrate slf4j with Tomcat6. There seems to
> be little out there on how to replace commons logging with slf4j
> rather than log4j (so it is either *very* easy or *very* hard)
> 
> This prints to the tomcat console but not to my log anymore.
> 
> Logger logger=LoggerFactory.getLogger(AuthPage.class);
> logger.info("AUTH PAGE ACCESSED");
> 
> P
> 
> On Fri, Jul 24, 2009 at 2:13 PM, McIlwee, Craig <
> craig.mcil...@openroadsconsulting.com> wrote:
> 
> > I doubt this is a wicket problem, I can redirect all logging for
> > each of my wars to their own file with no trouble.
> >
> > First, what slf4j implementation are you using?
> >
> > Second, have a look at this page:
> > http://www.jboss.org/community/wiki/Log4jRepositorySelector.  I
> > know that its for JBoss, but I image it should work for you also
> > since JBoss is built on top of tomcat.  In JBoss 4.2.3 and lower I
> > was able to use log4j sandbox alpha 3, which had a similar
> > implementation of the repository selector that could work based on
> > JNDI context or context classloader.  Good luck finding that jar
> > though, it's damn near impossible, you may have to download from
> > apache's SVN and build it yourself.  In JBoss 5+ the deployment
> > structure changed and I now have to use a customized version of the
> > class at the link above, works just fine.
> >
> > Craig
> > Open Roads Consulting, Inc.
> > 757-546-3401
> > http://www.openroadsconsulting.com
> >  _
> >
> > From: pieter claassen [mailto:pie...@claassen.co.uk]
> > To: users@wicket.apache.org
> > Sent: Fri, 24 Jul 2009 05:04:03 -0400
> > Subject: Re: log4j question with wicket
> >
> > There seems to be something broken in wicket here.
> >
> >  Logger.getRootLogger().info("AUTHPAGE REQUESTED");
> >
> >  This does log to my log file, but for some reason the following
> > code still just logs to the console in tomcat. I have converted
> > tomcat to use log4j and
> >  can print tomcat debug into to a file.
> >
> >  log4j.category.org.apache.wicket.protocol.http.RequestLogger=INFO
> >
> >  Any ideas?
> >
> >  Thanks,
> >  Pieter
> >
> >  On Fri, Jul 24, 2009 at 9:22 AM, pieter claassen
> >  > >wrote:
> >
> >  > I am trying to get my application to log to a separate file with
> >  > the following log4j.properties (server is tomcat6 in netbeans).
> >  > I enabled
> > the
> >  > following in my wicketapplication.
> >  >
> >  > getRequestLoggerSettings().setRequestLoggerEnabled(true);
> >  >
> >  > What I find is that catalina.{date}.out logs the requests
> >  > correctly, but
> > I
> >  > get tomcat startup info in my logfile and then nothing else.
> >  >
> >  > Any ideas?
> >  >
> >  > Thanks,
> >  > Pieter
> >  >
> >  > /var/log/webapp/application.log
> >  > 
> >  >
> >  > 2009-07-24 09:21:28,052 INFO  - ContextLoader  - Root
> >  > WebApplicationContext: initialization started
> >  > 2009-07-24 09:21:28,082 INFO  - XmlWebApplicationContext   -
> >  > Refreshing
> >  > org.springframework.web.context.support.xmlwebapplicationcont...@1077092
> > :
> >  > display name [Root WebApplicationContext]; startup date [Fri Jul
> >  > 24
> > 09:21:28
> >  > CEST 2009]; root of context hierarchy
> >  > 2009-07-24 09:21:28,134 INFO  - XmlBeanDefinitionReader-
> >  > Loading XML bean definitions from ServletContext resource
> >  > [/WEB-INF/WicketApplicationDefinition.xml]
> >  > 2009-07-24 09:21:28,555 INFO  - XmlWebApplicationContext   - Bean
> > factory
> >  > for application context
> >  >
> > [org.springframework.web.context.support.xmlwebapplicationcont...@1077092
> > ]:
> >  >
> > org.springframework.beans.factory.support.defaultlistablebeanfact...@1ab5e0b
> >  > 2009-07-24 09:21:28,582 INFO  - DefaultListableBeanFactory -
> >  > Pre-instantiating singletons in
> >  >
> > org.springframework.beans.factory.support.defaultlistablebeanfact...@1ab5e0b
> > :
> >  > defining beans [myDataSource,appConfig,WicketApplication]; root
> >  > of
> > factory
> >  > hierarchy
> >  > 2009-07-24 09:21:29,172 INFO  - ContextLoader  - Root
> >  > WebApplicationContext: initialization completed in 1120 ms
> >  >
> >  >
> >  > log4j.properties
> >  > ==
> >  > log4j.rootLogger=INFO, file
> >  >
> >  > log4j.appender.file=org.apache.log4j.RollingFileAppender
> >  > log4j.appender.file.maxFileSize=100KB
> >  > log4j.appender.file.maxBackupIndex=5
> >  > log4j.appender.file.File=/var/log/${application.name}/application.log
> >  > log4j.appender.file.layout=org.apache.log4j.PatternLayout
> >  > log4j.appender.file.layout.ConversionPattern=%d %-5p -
> >  > %-26.26c{1} -
> > %m\n
> >  >
> >  >
> >  > log4j.cat

Re: [BUG ? ] Disabling AjaxSelfUpdatingTimerBehavior

2009-05-28 Thread Witold Czaplewski
Did you try AbstractAjaxTimerBehavior#stop() ?

Witold

Am Thu, 28 May 2009 13:20:00 +0300
schrieb Objelean Alex :

> I am trying to disable AjaxSelfUpdatingTimerBehavior which I have
> added to  some component & disable it when something happens. I found
> that no matter what the isEnabled method of the behaviour returns, the
> behaviour remains enabled. Is this a bug or I am doing something
> wrong?
> 
> Alex Objelean
> 
> -
> 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: ModalWindow not appearing in IE

2009-05-14 Thread Witold Czaplewski
Am Thu, 14 May 2009 01:06:13 -0700 (PDT)
schrieb freak182 :

> i just add that in my basepage to works on IE7...i couldn't have imagine
> that this line of code saves me a lot.

FYI

http://en.wikipedia.org/wiki/Quirks_mode

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



Re: Getting localized string in constructor.

2009-04-14 Thread Witold Czaplewski
Hi Michał,

if you need the string of a ResourceModel you may want to call: new
ResourceModel("key").getObject().toString().

cheers,
Witold

Am Tue, 14 Apr 2009 11:07:05 +0200
schrieb Michał Letyński :

> Hi.
> When im getting localized string in constructor via getString method the 
> warning message is dispalyed: "Tried to retrieve a localized string for 
> a component that has not yet been added to the page. "
> 
> I know that one possible way to "fix" this is to use 
> ResourceModel("key'). But what if i cant use ResourceModel ? for e.g 
> some component want String directly. Is there a better solution then 
> using: 
> "Application.get().getResourceSettings().getLocalizer().getString(resourceKey,
> (Component)null, defaultValue);
> 
> 
> -
> 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: getting the component to which a Behavior is added from with the Behavior

2009-02-27 Thread Witold Czaplewski
I think you mean
org.​apache.​wicket.​behavior.​AbstractAjaxBehavior#getComponent()

Witold

Am Fri, 27 Feb 2009 08:15:03 -0500
schrieb Will Jaynes :

> I'm trying to write a class that extends OnChangeAjaxBehavior.  Is there a
> way, in the update method, to get the component to which the behavior has
> been added? I just don't see how. Should it just be added via the
> constructor?
> 
> component.add(new MyOnChangeAjaxBehavior(component));
> 
> This doesn't seem right to me, but maybe that's the way?
> 
> Thanks for any info, Will

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



Re: [OT] PHP based Open Source Content Management Systems

2009-01-07 Thread Witold Czaplewski
Hi James,

i would propose TYPOlight [1].

Our company uses it for many customers and until now their feedback is
very positive. :)

greetings,
Witold

[1] http://www.typolight.org/index.html

Am Wed, 7 Jan 2009 15:20:39 +
schrieb "James Perry" :

> Does anyone have a recommendation for a PHP Open Source Content
> Management System? I ask as I volunteered to setup my local running
> club's web site and I'm constrained to PHP due to their hosting plan.
> I would be grateful for a recommendation if you have experience with
> them.
> 
> Best,
> JP.

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



Re: [OT] wicket users around the world

2008-12-12 Thread Witold Czaplewski
Cologne (Köln), Germany.

I'm german, but born in Poland. :)

Am Fri, 12 Dec 2008 09:07:57 +0100
schrieb Martin Sachs :

> Berlin, Germany
> 
> 
> 
> francisco treacy schrieb:
> > to know a little bit more of our great (and vast) community, i was
> > just wondering if you're keen on sharing where you come from and/or
> > where you work with wicket...
> >
> > for instance, here argentinian/belgian working with wicket in
> > antibes, france
> >
> > francisco
> >
> > -
> > 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



Busy Indicator not working for downloads

2008-11-14 Thread Witold Czaplewski
Hi,

i'm trying out the Generic Busy Indicator [1]. It works quite well,
except for downloads realized with ResourceLinks. The indicator won't
be hidden, because hideBusysign is never called.

Is there a trick to fix this?

regards,
Witold

[1]http://cwiki.apache.org/confluence/display/WICKET/Generic+Busy+Indicator+(for+both+Ajax+and+non-Ajax+submits)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hot deployment / Server restart

2008-10-30 Thread Witold Czaplewski
In your context.xml did you set the attribute reloadable on true?

On true catalina monitors classes in /WEB-INF/classes for
changes and automatically reloads the application.


Am Thu, 30 Oct 2008 02:31:08 -0700 (PDT)
schrieb geke <[EMAIL PROTECTED]>:

> 
> No I´m working with Tomcat 6.0
> 
> 
> 
> francisco treacy-2 wrote:
> > 
> > i suggest you use the jetty container for development. you can find
> > a perfect working example in the wicket quickstart archetype:
> > http://wicket.apache.org/quickstart.html
> > 
> > francisco
> > 
> > On Thu, Oct 30, 2008 at 10:11 AM, geke <[EMAIL PROTECTED]>
> > wrote:
> >>
> >> My IDE is eclipse-jee-ganymede.
> >> Where can I find such information?
> >>
> >>
> >>
> >> martin-g wrote:
> >>>
> >>> Wicket doesn't control the lifecycle of the web container.
> >>> There is something else that triggers the restart (maybe the
> >>> IDE ?!).
> >>>
> >>> On Thu, 2008-10-30 at 01:46 -0700, geke wrote:
>  Hi,
> 
>  on every change in my HTML or Java file the tomcat 6.0 server
>  restarts completely, for example if I change the css
>  definitions. This is annoying
>  and primarily time-consuming.
>  Is there a possibility that the server only restarts, if for
>  example the
>  method signature in the java file or a tag with wicket:id in the
>  HTML file
>  changes, and I although see the last changes in the websites?
>  The less the server restarts the better.
> 
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Hot-deployment---Server-restart-tp20242820p20243162.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Small question about URL rewriting

2008-10-15 Thread Witold Czaplewski
Hmm...could be. Google shows only one urls [1]

Maybe amazon uses other techniques like robots.txt or the meta-tag
robots to block the other urls. But i didn't look at it.

If you are interested in duplicate content, the google webmaster
central blog has some very nice posts [2] [3].

[1]
http://www.google.com/search?hl=en&q=site%3Aamazon.com+%22Pragmatic+Version+Control+Using+Subversion+Mike+Mason%22&btnG=Search
[2]
http://googlewebmastercentral.blogspot.com/2006/12/deftly-dealing-with-duplicate-content.html
[3]
http://googlewebmastercentral.blogspot.com/2008/09/demystifying-duplicate-content-penalty.html

Witold

Am Wed, 15 Oct 2008 07:45:39 -0400
schrieb "James Carman" <[EMAIL PROTECTED]>:

> To be fair, I didn't find that second URL.  I hand-crafted it.  So,
> maybe Amazon doesn't let the search engines find those types of URLs
> by crawling.  Wouldn't that help?
> 
> On Wed, Oct 15, 2008 at 7:32 AM, Witold Czaplewski
> <[EMAIL PROTECTED]> wrote:
> > Btw...
> >
> > amazon.com is a very bad example for a search engine friendly site.
> > Duplicate content like the posted urls are more problematic than
> > non-friendly urls.
> > The perfect solution (unfortunately not always possible) is only one
> > friendly or meaningful url for every unique page.
> >
> > Witold
> >
> > Am Wed, 15 Oct 2008 07:11:16 -0400
> > schrieb "James Carman" <[EMAIL PROTECTED]>:
> >
> >> Right, I guess that's what I meant by "friendly" too.  Friendly to
> >> search engines, not just our eyes.
> >>
> >> On Wed, Oct 15, 2008 at 7:08 AM, Daan van Etten <[EMAIL PROTECTED]>
> >> wrote:
> >> > Keeping keywords in URLs also improves search engine rankings.
> >> >
> >> > Regards,
> >> >
> >> > Daan
> >> >
> >> > On 15 okt 2008, at 13:01, James Carman wrote:
> >> >
> >> >> When Amazon.com does something like this, they still use an id
> >> >> on the URL.  Check out these two URLs (which are equivalent and
> >> >> happen to be for a book I was suggesting to someone):
> >> >>
> >> >>
> >> >> http://www.amazon.com/Pragmatic-Version-Control-Using-Subversion/dp/0974514063
> >> >>
> >> >> http://www.amazon.com/dp/0974514063
> >> >>
> >> >> They just add in the text to make it more "friendly" I guess.
> >> >>
> >> >>
> >> >> On Wed, Oct 15, 2008 at 6:09 AM, Daan van Etten <[EMAIL PROTECTED]>
> >> >> wrote:
> >> >>>
> >> >>> Hi Hbiloo,
> >> >>>
> >> >>> I don't know of an existing working solution. A while ago some
> >> >>> people where
> >> >>> working on this, according to the mailing list:
> >> >>>
> >> >>> http://mail-archives.apache.org/mod_mbox/wicket-dev/200802.mbox/[EMAIL 
> >> >>> PROTECTED]
> >> >>>
> >> >>> You can prefix the article title with the date (as I did on my
> >> >>> blog), so you
> >> >>> have less chance on name clashes.
> >> >>>
> >> >>> Regards,
> >> >>>
> >> >>> Daan
> >> >>>
> >> >>> On 15 okt 2008, at 11:58, Azzeddine Daddah wrote:
> >> >>>
> >> >>>> Hi Daan,
> >> >>>>
> >> >>>> Thanks for your quick response :). It's a really interesting
> >> >>>> article to read.
> >> >>>> I don't really want to set the ID's of my product in the URL.
> >> >>>> I was thinking
> >> >>>> to do something like this :) :
> >> >>>>
> >> >>>>
> >> >>>> http://stuq.nl/weblog/articles/create-restful-urls-with-wicket<http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket>
> >> >>>> in stead of
> >> >>>>
> >> >>>>
> >> >>>> http://stuq.nl/weblog/articles/12345<http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket>
> >> >>>>
> >> >>>> The problem is that you cannot be sure that the article title
> >> >>>> is unique.
> >> >>>>
> >> >>>> Kind regards,
> >> >>>>
> >> >>

Re: Small question about URL rewriting

2008-10-15 Thread Witold Czaplewski
Btw...

amazon.com is a very bad example for a search engine friendly site.
Duplicate content like the posted urls are more problematic than
non-friendly urls.
The perfect solution (unfortunately not always possible) is only one
friendly or meaningful url for every unique page.

Witold

Am Wed, 15 Oct 2008 07:11:16 -0400
schrieb "James Carman" <[EMAIL PROTECTED]>:

> Right, I guess that's what I meant by "friendly" too.  Friendly to
> search engines, not just our eyes.
> 
> On Wed, Oct 15, 2008 at 7:08 AM, Daan van Etten <[EMAIL PROTECTED]> wrote:
> > Keeping keywords in URLs also improves search engine rankings.
> >
> > Regards,
> >
> > Daan
> >
> > On 15 okt 2008, at 13:01, James Carman wrote:
> >
> >> When Amazon.com does something like this, they still use an id on
> >> the URL.  Check out these two URLs (which are equivalent and
> >> happen to be for a book I was suggesting to someone):
> >>
> >>
> >> http://www.amazon.com/Pragmatic-Version-Control-Using-Subversion/dp/0974514063
> >>
> >> http://www.amazon.com/dp/0974514063
> >>
> >> They just add in the text to make it more "friendly" I guess.
> >>
> >>
> >> On Wed, Oct 15, 2008 at 6:09 AM, Daan van Etten <[EMAIL PROTECTED]>
> >> wrote:
> >>>
> >>> Hi Hbiloo,
> >>>
> >>> I don't know of an existing working solution. A while ago some
> >>> people where
> >>> working on this, according to the mailing list:
> >>>
> >>> http://mail-archives.apache.org/mod_mbox/wicket-dev/200802.mbox/[EMAIL 
> >>> PROTECTED]
> >>>
> >>> You can prefix the article title with the date (as I did on my
> >>> blog), so you
> >>> have less chance on name clashes.
> >>>
> >>> Regards,
> >>>
> >>> Daan
> >>>
> >>> On 15 okt 2008, at 11:58, Azzeddine Daddah wrote:
> >>>
>  Hi Daan,
> 
>  Thanks for your quick response :). It's a really interesting
>  article to read.
>  I don't really want to set the ID's of my product in the URL. I
>  was thinking
>  to do something like this :) :
> 
> 
>  http://stuq.nl/weblog/articles/create-restful-urls-with-wicket
>  in stead of
> 
> 
>  http://stuq.nl/weblog/articles/12345
> 
>  The problem is that you cannot be sure that the article title is
>  unique.
> 
>  Kind regards,
> 
>  Hbiloo
>  
>  On Wed, Oct 15, 2008 at 11:31 AM, Daan van Etten <[EMAIL PROTECTED]>
>  wrote:
> 
> > Hi Hbiloo,
> >
> > Check out the various UrlCodingStrategies. See
> > http://cwiki.apache.org/WICKET/url-coding-strategies.html
> >
> > I wrote something about RESTful urls here:
> > http://stuq.nl/weblog/2008-06-20/create-restful-urls-with-wicket
> >
> > Regards,
> >
> > Daan
> >
> >
> >
> > On 15 okt 2008, at 11:19, Azzeddine Daddah wrote:
> >
> > Hi,
> >>
> >> I wanna just know if there is a way to rewrite URLs. For
> >> example to do something like this:
> >>
> >> From: http://mydomain.com/product/productNumber/12345
> >> To: http://mydomain.com/product/this-is-my-product
> >>
> >>
> >> Regards,
> >>
> >> Hbiloo
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ModalWindow gives Exception

2008-09-18 Thread Witold Czaplewski
Hi,

this is Joda Time [1].

Witold

[1] http://joda-time.sourceforge.net

Am Thu, 18 Sep 2008 01:10:05 -0700 (PDT)
schrieb newbie_to_wicket <[EMAIL PROTECTED]>:

> 
> Hi,
> 
> I'm using modal window in my application, but it is not
> instantiating, it throws an Exception
> 
> java.lang.NoClassDefFoundError: Lorg/joda/time/MutableDateTime;
> 
> can any body suggest me which library i have to use to fix this issue.
> 
> thanks
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hot deployment / code swapping

2008-09-10 Thread Witold Czaplewski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

it works for me.

Did you call configure() in your init method? Then make sure, that you
set the resource poll frequency after it. In deployment mode configure
sets it to null.

Am Wed, 10 Sep 2008 05:05:00 -0700 (PDT)
schrieb pixologe <[EMAIL PROTECTED]>:

> Thanks - I saw this one before, it is set to 1 second by default...
> but has no effect for me ...
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjHvx0ACgkQ4gvv3qOY2pjbpwCghQ5sPjljPwX18gkLw55a13Rj
K98An2xFVhacFyXu21BMQrnH2zF5Yb2b
=3nOL
-END PGP SIGNATURE-


Re: Hot deployment / code swapping

2008-09-10 Thread Witold Czaplewski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

in Application take a look at
getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND);

which should at least work for resource files (like html-templates or
property-files).

Witold

Am Wed, 10 Sep 2008 03:57:22 -0700 (PDT)
schrieb pixologe <[EMAIL PROTECTED]>:

> 
> Hi everybody,
> 
> I have read in some older messages of this list that wicket by
> default takes care of re-deploying changed classes and HTML files,
> does that still apply?
> 
> It does not work for me, not even with a fresh quickstart project.
> Neither HTML files nor Java classes are reloaded when they are
> changed.
> 
> Are there any issues with this under certain circumstances (e.g.
> having vista ;-)?
> 
> What I just did is this:
> 
> 
> 
> mvn archetype:create -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart
> -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany
> -DartifactId=myproject
> 
> cd myproject
> 
> mvn package
> 
> mvn jetty:run
> 
> [changed HomePage.class and HomePage.html]
> 
> 
> 
> The changes do not have any effect until I restart jetty.
> 
> Any hints on this issue are highly appreciated, thanks a lot in
> advance!


- -- 
Mit freundlichen Gren

Witold Czaplewski
Projektmanagement
Softwareentwicklung

CTS GmbH
creative technology solutions
Otto-Hahn-Str. 7
***Ab dem 01.10.2008: Gut Friedrichshof***
D - 50997 K__ln

Fon: +49 (0)2236 - 96926-3
Fax: +49 (0)2236 - 96926-1

http://www.cts-media.eu
http://www.cts-hosting.eu

UST-Id. DE218137586
HRB 36066 | Registergericht K__ln
Gesch__ftsf__hrer: Stefan Godulla

http://www.xing.com/profile/Witold_Czaplewski

Kennen Sie schon den serverseitigen Spamschutz von cts media?
Erhalten Sie bis zu __ber 90% weniger Spam und sparen Sie wertvolle Zeit.
Keine Konfiguration, kein Aufwand f__r Sie ___ einfach ungest__rt arbeiten.
F__r Preise, Buchung, R__ckfragen oder weitere Informationen erreichen
Sie uns jederzeit unter [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjHtK0ACgkQ4gvv3qOY2ph+8gCgiNp6HOge8C4BGTYH0H4d9IT7
QeEAoLw1Hs29KZHST4UGl8NPQMHywemA
=bdao
-END PGP SIGNATURE-


Re: Let us list the frameworks and tools we use together with Wicket!

2008-08-01 Thread Witold Czaplewski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Fri, 01 Aug 2008 07:23:42 -0500
schrieb Paul Logasa Bogen II <[EMAIL PROTECTED]>:

> I user FFX3 with 
> WebDeveloper Toolbar to debug
> CSS and Venkman to debug js (although if someone knows of a better js 
> debugger please tell me).

I am using Firebug [1] [2]

Witold

[1] https://addons.mozilla.org/de/firefox/addon/1843
[2] http://getfirebug.com/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiTCsAACgkQ4gvv3qOY2pj2dACdEvnCh0McFh5ejx84xuPpZqaP
W2wAoKY9EUNnUm379Y5agAQO2fg1Rtne
=0caw
-END PGP SIGNATURE-


Re: Rendering AjaxFallbackDefaultDataTable + Sorting Arrows + Font etc.

2008-07-24 Thread Witold Czaplewski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

With CSS.

The table headers are changing its classes, like




Regards,
Witold

Am Thu, 24 Jul 2008 06:16:15 -0700 (PDT)
schrieb HITECH79 <[EMAIL PROTECTED]>:

> 
> Hallo ,
> 
> how can i change the "RENDERING" of the header of
> AjaxFallbackDefaultDataTable. I wanna use arrows for sorting and
> changing the font of the header.
> 
> Have any one a example ?
> 
> 
> Greetings
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiIit0ACgkQ4gvv3qOY2phjmgCfT0woNYbuGK9FY18wBZedL6uj
3l8An2WrQAxxdpFirFT4G80YCPfsYxxn
=tR2Q
-END PGP SIGNATURE-


addResourceFolder in unit tests

2008-07-11 Thread Witold Czaplewski
Hello,

i'm trying to use a custom ResourceStreamLocator to place the markup
files in another directory. It is based on this wiki entry:
http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html#ControlwhereHTMLfilesareloadedfrom-InWicket1.3

The deployed application works fine, but my test cases don't work.

With enabled debug messages for org.apache.wicket.util.resource i can
see that the webapppaths are empty although the addResourceFolder
method should be called.

Is there a trick or did i miss anything?

I'm using Netbeans 6.1 and Wicket 1.3.4.

Thanks in advance.

Witold

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: No effect of code until restarting netbeans.

2008-07-07 Thread Witold Czaplewski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks a lot, didn't know it.

Btw, Java 6 produces a small warning:
Please use CMSClassUnloadingEnabled in place of
CMSPermGenSweepingEnabled in the future

Witold


Am Mon, 07 Jul 2008 09:06:53 +0200
schrieb Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>:

> And even better enable permgen garbage collection, so the problem
> never will happen...
> 
> -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled 
> -XX:+CMSClassUnloadingEnabled
> 
> Witold Czaplewski wrote:
> > Am Sat, 5 Jul 2008 18:40:24 +0100
> > schrieb "Ayodeji Aladejebi" <[EMAIL PROTECTED]>:
> >
> >   
> >> Only that after a while, tomcat will give you perm-gen error which
> >> will force you to terminate the tomcat instance using Task Manager
> >> manually before netbeans can continue managing tomcat
> >> 
> >
> > You can set the MaxPermSize e.g. to 512m
> > (Tools --> Servers --> Platform --> VM Options:
> > -XX:MaxPermSize=512m). At least it seems to work here. :)
> >
> > Witold
> >
> > -----
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >   
> 


- -- 
Mit freundlichen Grüßen

Witold Czaplewski
Projektmanagement
Softwareentwicklung

CTS GmbH
creative technology solutions
Otto-Hahn-Str. 7
D - 50997 Köln

Fon: +49 (0)2236 - 96926-3
Fax: +49 (0)2236 - 96926-1

http://www.cts-media.eu
http://www.cts-hosting.eu

UST-Id. DE218137586
HRB 36066 | Registergericht Köln
Geschäftsführer: Stefan Godulla

http://www.xing.com/profile/Witold_Czaplewski

Kennen Sie schon den serverseitigen Spamschutz von cts media?
Erhalten Sie bis zu über 90% weniger Spam und sparen Sie wertvolle Zeit.
Keine Konfiguration, kein Aufwand für Sie – einfach ungestört arbeiten.
Für Preise, Buchung, Rückfragen oder weitere Informationen erreichen
Sie uns jederzeit unter [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkhx3NkACgkQ4gvv3qOY2pi++ACeOx6zxm4jusjHcDFzUmuJbfnB
W8UAnjwM9FKWFI8R63qPkljXgdUZ8sMz
=k0Xx
-END PGP SIGNATURE-


Re: No effect of code until restarting netbeans.

2008-07-06 Thread Witold Czaplewski
Am Sat, 5 Jul 2008 18:40:24 +0100
schrieb "Ayodeji Aladejebi" <[EMAIL PROTECTED]>:

> Only that after a while, tomcat will give you perm-gen error which
> will force you to terminate the tomcat instance using Task Manager
> manually before netbeans can continue managing tomcat

You can set the MaxPermSize e.g. to 512m
(Tools --> Servers --> Platform --> VM Options: -XX:MaxPermSize=512m).
At least it seems to work here. :)

Witold

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]