Re: Linking to an image in resources with just html

2009-02-21 Thread Igor Vaynberg
you can link to resources in the classpath using urlfor(new resourcereference(class_in_resource_package, "resourcename")) -igor On Sat, Feb 21, 2009 at 4:45 PM, svfarmer wrote: > > Thanks for your reply! > > You are spot on there, I also figured out how to put my resources into > WEB-INF/classes

Re: onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Brill Pappin
Hmm... that could be related. For the moment I've worked around it in a somewhat kludgy way, but I plan to go back and try again with a cleanroom test app as soon as I have some time to look into it more. - Brill On 21-Feb-09, at 6:18 PM, Jason Lea wrote: I wonder if this is related to a

Re: Linking to an image in resources with just html

2009-02-21 Thread svfarmer
Thanks for your reply! You are spot on there, I also figured out how to put my resources into WEB-INF/classes. These ARE published correctly when using Tomcat, but are indeed of no use for static linking. So this does not resolve my problem. -Tjeerd igor.vaynberg wrote: > > if they are stati

Re: Linking to an image in resources with just html

2009-02-21 Thread svfarmer
The back and foreslashes are not the issue, I might have mixed them up in my post but they seem to be configured correctly. Everything ends up in the path it should, but the 'img' directory is just not published to my Tomcat. Steve Swinsburg-2 wrote: > > You say they are in src/main/resources

Re: Linking to an image in resources with just html

2009-02-21 Thread Igor Vaynberg
if they are static just put them into src/main/webapp - you should have that dir. problem is whatever is in src/main/resources is copied into WEB-INF/classes and servlet container does not stream anything out of WEB-INF for security reasons. -igor On Sat, Feb 21, 2009 at 1:02 PM, svfarmer wrote

Re: onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Jason Lea
I wonder if this is related to a bug that was fixed in firefox 3.0.6... https://bugzilla.mozilla.org/show_bug.cgi?id=444322 "Firefox 3 onload and DOMContentLoaded event firing before the page is fully loaded" We experienced that problem with Firefox 3.0.5 made a work around for it, and then 3

Re: WML + Wicket experiences?

2009-02-21 Thread Brill Pappin
We used Shrinkray recently. http://www.shrinkraywireless.com/ - Brill On 21-Feb-09, at 5:18 PM, Martin Makundi wrote: I am experiencing serious problems with the redirects.. sometimes I can browse fine, but at other times the session is abruptedly terminated when the wap device fails to handle

Re: Linking to an image in resources with just html

2009-02-21 Thread Stephen Swinsburg
You say they are in src/main/resources but you have src\main\resources Could this be it? / vs \ I bundle a different way but that might work for you. cheers, Steve On 21/02/2009, at 9:02 PM, svfarmer wrote: Alright so since we're talking about static resources that could easily be served

Re: WML + Wicket experiences?

2009-02-21 Thread Martin Makundi
I am experiencing serious problems with the redirects.. sometimes I can browse fine, but at other times the session is abruptedly terminated when the wap device fails to handle the redirect. Did you experience any of these problems, what was your solution? ** Martin 2009/2/20 Jeremy Thomerson :

Re: Linking to an image in resources with just html

2009-02-21 Thread svfarmer
Alright so since we're talking about static resources that could easily be served by my servlet container, the problem actually is getting the /img/ directory into the context root. I put this in my pom.xml: org.apache.maven.plugins maven-war-plugi

Re: onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Brill Pappin
Addendum to my last: Apparently the simple alert case *is* working in Safari 3.2.1 but *is not* in Firefox 3.0.6. This suggests to me that the script has not been updated for Firefox, or that firefox just doesn't support the script (which I find hard to believe). is anyone else using thi

Linking to an image in resources with just html

2009-02-21 Thread svfarmer
Hey everyone! I'm creating a basic webapp using Wicket, Tomcat 5.5, Maven 2 and Eclipse. I got it all to work together in the end, but now I'm having trouble with my images. Say I have a class Documents: /src/main/java/XYZ/Frontend/Documents.java And a directory with some images in the resources

onLoad never fires -- is there a bug in 1.4?

2009-02-21 Thread Brill Pappin
I have a panel with which I'm implementing IHeaderContributor and the following code: @Override public void renderHead(IHeaderResponse response) { response.renderOnLoadJavascript("alert('test')"); } ... which output in the HTML: ... script>

Re: Depricated HeaderContributor.forJavaScript?

Thanks, thats perfect. I guess they are still working on the javadoc etc because there was no note anywhere I could find on that and nothing on the "How to do things with wicket" wiki page. - brill On 21-Feb-09, at 11:35 AM, Martijn Reuvers wrote: Hi Brill, You can use: JavascriptPackag

Re: WML + Wicket experiences?

More wap trouble. Apparently you must call setRedirect(false) BEFORE invoking setResponsePage.. don't exactly know why, I found no explicit reason. Another problem that popped up is about how to easily make convertToHtmlUnicodeEscapes=true for Labels? XML is strict such that it requires all äöåÄÅÖ

Re: Depricated HeaderContributor.forJavaScript?

Hi Brill, You can use: JavascriptPackageResource.getHeaderContribution(..). Martijn On Sat, Feb 21, 2009 at 5:17 PM, Brill Pappin wrote: > It seems that in 1.4-SNAPSHOT "HeaderContributor.forJavaScript" among other > is deprecated, but I am unable to find any documentation about what I should >

Depricated HeaderContributor.forJavaScript?

It seems that in 1.4-SNAPSHOT "HeaderContributor.forJavaScript" among other is deprecated, but I am unable to find any documentation about what I should be using instead. What is the replacement for the methods in HeaderContributor? - Brill --

Re: Status of Wicket-Security (SWARM and WASP)?

Hmm yeah, I might see if I can get some time to look into it... However I think Wayne pope Also mentioned that he would do something with it, have heard nothing though my stack are a bit full at the moment.. http://www.nabble.com/WASP-SWARM-status-tt20318330.html#a20318997 Jeremy Thomerson w

Re: Flash Chart Display problem

Actually my code is almost the same as that. I have SWFObject that extends AbstractBehavior and implements IHeaderContributor. Since my chart is getting it's settings from an xml file and data from a text file, i added those to the getVariables(). The chart won't render on any of the pages of webs

Howto test attribute of fragment markup?

Hi *, I added to a panel two fragments. The ajax response looks like attchement. I would like to check if the attribute "class" for tag pnlHeader1 is as expected. But the TagTester only gives me the component tag with same id. Can i "extract" the CDATA area to? PS: I surely can parse the mar

Re: SSL pages and links

Only a cent: on web.xml can work only on certain URIs SSL Make sure login path is secured We like ssl web services /sec/* Web Services We like ssl web services /ws/*

request: make GuiceProxyTargetLocator public

Hello! (this post went to the guice + the wicket mailing list) I would really like GuiceProxyTargetLocator to have a public constructor. Currently it is package-access. Furthermore findBindingAnnotation should be made public static I had to create a org.apache.wicket.guice.GuiceProxyTargetLoca

Re: Solved: Troubles with Spring: bean of type X not found

Hi Christian, Glad it helped you, I once had something similar. :) Have fun with the real problems now! ;) Martijn On Sat, Feb 21, 2009 at 12:05 PM, Christian Helmbold wrote: > Hello Martijn, > > thank you very much! The Spring config was not in the correct directory. > Another problem were mi

Solved: Troubles with Spring: bean of type X not found

Hello Martijn, thank you very much! The Spring config was not in the correct directory. Another problem were missing JARs (yes, I should use maven ...). Now I'm happy that it works and that I can concentrate myself on the next problems - with JPA this time and not Wicket and Spring ;-) Regar

Re: AW: AW: Troubles with Spring: bean of type X not found

Hi Christian, I am using the same config as you (as far as I can tell), with the exception I always use: @SpringBean (name="nameHere") so I always use the name of a bean. So far I never had trouble with that. Perhaps its the wicket version you are using different from ours? I use 1.4rc2 and accomp

AW: AW: AW: Troubles with Spring: bean of type X not found

Hello Nicolas, > Have you add the following statement in your web.xml Yes, exactly as you wrote: contextConfigLocation classpath:applicationContext.xml I've also tried to use a wrong name for the xml file, only to see if I get an error - and I get one. So the spring confi

Re: AW: AW: Troubles with Spring: bean of type X not found

Hello Christian, Have you add the following statement in your web.xml : contextConfigLocation classpath:applicationContext.xml ? On Sat, 21 Feb 2009 09:09:18 + (GMT), Christian Helmbold wrote: > It seems like my Spring config doesn't t

AW: AW: Troubles with Spring: bean of type X not found

It seems like my Spring config doesn't take effect. If I use a not existent application class name in my applicationContext.xml the Wicket application starts without an error message (the error with missing bean appears on first request). Wicket starts even with: Spring itself seems to work: