Re: OT: app throws java.lang.NoClassDefFoundError sometimes, and sometimes it doesnt

2011-01-13 Thread Thomas Gier

Am 13.01.11 12:58, schrieb Sam Zilverberg:

Hi,

I'm running a wicket app on tomcat 6.0.20.
Once in a while I need to redeploy it (after fixing some stuff, adding
features and so on).
This is how I redeploy:
1.Use tomcat manager to undeploy the running app.
2.Deploy the new app by copying the new WAR file to a library inside tomcat.

Everything seems fine but when I use the app I sometimes get a
java.lang.NoClassDefFoundError.
The class can be just about any class in the project and its libs.
Sometimes its a Hibernate related class, sometimes its a Wicket related
class and
sometimes its a class from my app.
Redeploying once (or a couple of times) solves the problem.

This is very inconsistent and bothering.
After deploying I never know if the app is going to be ok or if one of its
pages will keep throwing internal errors on account of the
NoClassDefFoundError.

Did any one ever encounter this kind of problem?
Do you have any ideas on what is causing this or what I can do to diagnose
this problem?
I'm clueless at the moment :(

Thanks
-Sam
Have you tried antiResourceLocking=true in tomcat's context container 
($CATALINA_HOME/conf/context.xml)? There are some impacts when using 
this (ref. to 
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html; search the 
page for antiResourceLocking) but it may be helpful.


--
Cheers
Tom


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



Re: AutoCompleteTextField and long result list in WebKit browsers

2010-09-14 Thread Thomas Gier

 Am 06.08.10 15:56, schrieb Martin Grigorov:

Try with newer Wicket. It could be fixed already.

On Fri, Aug 6, 2010 at 3:33 PM, Thomas Gierthomas.g...@qleo.de  wrote:


Hi,

I have problems with long result lists for an AutoCompleteTextField in
WebKit-based browsers. We're using wicket 1.4.0.

If the bottom of a result is outside the browser's viewport and you scroll
down so that now the text field itself is outside the view port, a selected
list entry is not copied over to the text field when selecting with the
mouse. Keyboard selection does work though.

Any ideas?


Cheers
Thomas Gier



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



Hi,

sorry for not answering sooner but I've been on holidays for some weeks.

I checked with the current wicket release 1.4.11 today and unfortunately 
the problem persists. Does anybody have an idea how to fix this?


Tia
Thomas Gier

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



AutoCompleteTextField and long result list in WebKit browsers

2010-08-06 Thread Thomas Gier

Hi,

I have problems with long result lists for an AutoCompleteTextField in 
WebKit-based browsers. We're using wicket 1.4.0.


If the bottom of a result is outside the browser's viewport and you 
scroll down so that now the text field itself is outside the view port, 
a selected list entry is not copied over to the text field when 
selecting with the mouse. Keyboard selection does work though.


Any ideas?


Cheers
Thomas Gier



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



Re: AutoCompleteTextField and long result list in WebKit browsers

2010-08-06 Thread Thomas Gier
 same behavior in wicket examples 
http://wicketstuff.org/wicket14/ajax/autocomplete.1



Am 06.08.10 15:56, schrieb Martin Grigorov:

Try with newer Wicket. It could be fixed already.

On Fri, Aug 6, 2010 at 3:33 PM, Thomas Gierthomas.g...@qleo.de  wrote:


Hi,

I have problems with long result lists for an AutoCompleteTextField in
WebKit-based browsers. We're using wicket 1.4.0.

If the bottom of a result is outside the browser's viewport and you scroll
down so that now the text field itself is outside the view port, a selected
list entry is not copied over to the text field when selecting with the
mouse. Keyboard selection does work though.

Any ideas?


Cheers
Thomas Gier



-
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: Escapeing of single quotes for AutoCompleteTextField

2009-03-12 Thread Thomas Gier

Igor,

I upgraded to rc2 yesterday but this behaviour didn't change.

I tried that but with no luck. The HTML-entity is replaced by the 
'-character somewhere down the line and entries containing an apostrophe 
can't be transfered from the autocompleted list to the text field.


I'm sorry that I can't be of much help here. I have very limited time 
the next two days and will be out-of-office for two weeks starting on 
Monday. Of course, when I'm back I will dig deeper into this.



Regards
Tom



Igor Vaynberg schrieb:

can you try replacing it with apos; and see if that works better?

-igor

2009/3/11 Thomas Gier thomas.g...@factscience.de

  

Hello,

I'm using wicket version 1.4-rc1.

I have a list of journals coming from a database from which selects. I
present this list in an AutoCompleteTextField. Some of the Journal's name
contain single quotes like in Reader's Digest. It's not possible to select
an entry with single quotes. I think the single quote breaks the JavaScript.

As a quick and dirty solution I now replace every single quote with a `
in getChoices(). This is somehow acceptable but not really working in IE6
which complains about a type mismatch.

Does anybody have better strategy to work around this? A similar problem
must have hit somebody else out there :)


Thanks for reading
Tom

--

_

Thomas Gier

QLEO GmbH
Theaterstr. 13
52062 Aachen

Tel +49-241-900 89-21
Fax +49-241-900 89-19

thomas.g...@qleo.de
www.qleo.de

QLEO Science: System-Lösungen für Forschung - Lehre - Administration

_

QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ;
Fax +49 241 90089-19
Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

Geschäftsführer:
Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
Dipl.-Ing. Daniel Müllers SAE
Dipl.-Math. Armin Priggen

_

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.


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





  



--
_

Thomas Gier

QLEO GmbH
Theaterstr. 13
52062 Aachen

Tel +49-241-900 89-21
Fax +49-241-900 89-19

thomas.g...@qleo.de
www.qleo.de

QLEO Science: System-Lösungen für Forschung - Lehre - Administration
_

QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ; Fax 
+49 241 90089-19
Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

Geschäftsführer:
Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
Dipl.-Ing. Daniel Müllers SAE
Dipl.-Math. Armin Priggen
_

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der 
richtige Adressat sind oder diese eMail irrtümlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.



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



Escapeing of single quotes for AutoCompleteTextField

2009-03-11 Thread Thomas Gier

Hello,

I'm using wicket version 1.4-rc1.

I have a list of journals coming from a database from which selects. I 
present this list in an AutoCompleteTextField. Some of the Journal's 
name contain single quotes like in Reader's Digest. It's not possible 
to select an entry with single quotes. I think the single quote breaks 
the JavaScript.


As a quick and dirty solution I now replace every single quote with a 
` in getChoices(). This is somehow acceptable but not really working 
in IE6 which complains about a type mismatch.


Does anybody have better strategy to work around this? A similar problem 
must have hit somebody else out there :)



Thanks for reading
Tom

--
_

Thomas Gier

QLEO GmbH
Theaterstr. 13
52062 Aachen

Tel +49-241-900 89-21
Fax +49-241-900 89-19

thomas.g...@qleo.de
www.qleo.de

QLEO Science: System-Lösungen für Forschung - Lehre - Administration
_

QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ; Fax 
+49 241 90089-19
Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

Geschäftsführer:
Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
Dipl.-Ing. Daniel Müllers SAE
Dipl.-Math. Armin Priggen
_

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der 
richtige Adressat sind oder diese eMail irrtümlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.



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



Re: css menu and wicket

2008-03-15 Thread Thomas Gier

Mathias P.W Nilsson schrieb:

Hi!

I have troubles creating a css menu with wicket and css.

I'm using the RepeatingView in Wicket for the UL, LI list. But the UL and LI
needs some extra tweek for IE.
I need to do something like this for it to render properly. How can I
integrate this with wicket?


!--[if lte IE 6]tabletrtd![endif]--ul
li #nogo SubMenu!--[if gte IE 7]!-- !--![endif]--
!--[if lte IE 6]tabletrtd![endif]--ul
li # 1 /li
li # 2 /li
li # 3 /li
li # 4 /li
/ul!--[if lte IE 6]/td/tr/table ![endif]--
/li

  

Hi,

you could put a WebMarkupContainer around your table code, find out 
which user-agent is active (request.getHeader(User_Agent) and set this 
WMC visible if the user agent is IE 6 (or whatever request.getHeader 
returns when an IE6 is used).


I personally would rather use different CSS to fix the layout for IE 
(6|7|whatever). Why not just forget the table-code, put a div-Tag 
around your ul.../ul, put an id= or a class= on the div and 
layout everything inside this div via CSS? Since we're talking about a 
menu even absolute positioning could be an option. Not much hassle even 
for IE ;) ...


HTH
Tom

--
Thomas Gier

FACT GmbH
Theaterstr. 13
52062 Aachen

Tel. +49-241-900 89-21
Fax +49-241-900 89-19

[EMAIL PROTECTED]
www.FactScience.de

FactScience: System-Lösungen für Forschung - Lehre - Administration
_

FACT Faculty Consulting GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 
90089-0 ; Fax +49 241 90089-19
Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

Geschäftsführer:
Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
Dipl.-Ing. Daniel Müllers SAE
Dipl.-Math. Armin Priggen

_

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.



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



Re: textarea problem

2008-02-21 Thread Thomas Gier

okrohne schrieb:

Hi,

if I use a textarea like this:

textarea name=test id=test_textarea rows=8 cols=30
class=input_text title=test /

all subsequent html markup is shown in the textarea.

If I use the textarea in this way everything is okay.
 
textarea name=test id=test_textarea rows=8 cols=30

class=input_text title=test
/textarea

Is this a known issue?

Thanks,
Oliver

  


Hi Oliver,

the closing tag for textarea ... is required.

See http://www.w3.org/TR/html4/interact/forms.html#h-17.7 for details.

HTH
Tom


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



Re: Localization

2008-01-24 Thread Thomas Gier

tbt wrote:

Hi

I tried to add a attribute to a html tag using the wicket:message tag. The
code is as follows

HomePage.html

input type=button class=button wicket:message=value:button.label /

HomePage.properties

button.label=save

This method didnt display the label in the html page. Then in the
applications init() method I added 
WicketMessageTagHandler.enable = true; and modified the tag as

input type=button class=button wicket:message key=value:button.label
/

but still it is not working. Can someone tell me how to add an attribute to
a tag using wicket:message

Thanks
Nadeeshan


Erik van Oosten-3 wrote:
  

Yes, this is possible.

But actually the previous solution is usally sufficient. You can easily 
define a page that is extended by all other pages. In the base page you 
can include the stylesheet as before and all other pages will get it 
too. (See the wiki for component inheritance.)


But anyway, here is a non tested approach:
- move the style.css (and variations) somewhere on your classpath. For 
example in the package that contains the java file JustSomeClass.java.

- remove the wicket:link from the markup file
- give the stylesheet link a wicket:id, eg.:
  link rel=stylesheet type=text/css href=style.css 
wicket:id=abc/link

- in the code do something like:
  add(new StyleSheetReference(abc, JustSomeClass.class, style.css))

Regards,
 Erik.

tbt wrote:


Hi,

I like to have my css file('style.css') in a seperate folder instead of
having it in the same folder as HomePage.java because multiple web pages
are
using the same classes in the css file. Is it possible to have both css
files(style.css and style_tw.css) in a seperate folder. This applies for
only css files and not property files which I would be happy to keep in
the
same folder as the html and java files.

Thanks


Erik van Oosten-3 wrote:
  
  

You can call:
 getSession().setLocale(new Locale(en, US))

In the Java javadocs 
(http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html) you find 
references to language and country codes. Language code ta means Tamil 
so that is probably not what you want. Country Taiwan is represented by 
county code TW.


Switching css is fairly easy. Put this in the header:
wicket:linklink rel=stylesheet type=text/css 
href=style.css/link/wicket:link

and move style.css to the same folder as HomePage.html.

Now if you want to add another locale for the stylesheet, you just add a 
file called style_[language code].css. No other changes needed.


Regards,
 Erik.


tbt wrote:



Hi

I have a html page called HomePage.html

html
head
link href=Resources/css/style.css rel=stylesheet type=text/css
/
/head
body
English 
Taiwanese 


wicket:message key=option_id /


/body
/html

and two property files called HomePage.properties and
HomePage_ta.properties.

These files hold the values which should be replaced inside the
wicket:message tag.
How can I switch between these property files once the user selects a
particular language inside my HomePage .java class. I also need to
change
the css file according to each language.

eg:- If Taiwanese is selected it should look like link
href=Resources/css/style_ta.css rel=stylesheet type=text/css /

Thanks
  
  
  

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



Hi,

I use AttributeModifier / AttributeAppender to add attributes to HTML 
elements. Something like


yourComponent.add(new AttributeModifier(value, true, new 
ResourceModel(button.label)));


should do the trick. The boolean value makes sure that the attribute is 
added even if it is not present in the HTML.


HTH
Tom

P.S this is my first post to the list so hello to everybody :) ...


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