Hello,
I am having troubles figuring out how to organize my static resources.
I would like to map a static URL alias, e.g. /js/fancybox, to a file
such as /js/fancybox/version123/fancybox-123.js. I also want to be
able to update the file version and after that have it served under
the same
Hi Dan,
I followed your advise : I change Questionnaire so it is not serializable
and errors appeared in my page for this line :
item.add(new BoutonRemplirQuestionnaire(boutonQuestionnaire, new
ModelQuestionnaire(q)));
and it's coherent because it's when I click on this AjaxLink that I have the
We are using Wicket 1.4.17 but we would like to do something like this
mountResource(/mount/path, new SomeResourceReference()) as described
in http://wicketinaction.com/ for Wicket 1.5.
On Fri, Aug 5, 2011 at 12:41 AM, Alec Swan alecs...@gmail.com wrote:
Hello,
I am having troubles figuring
When I do this :
new ModelQuestionnaire(q)
it creates an IModel for Questionnaire, doesn't it?
I think he means to make a more dynamic model, e.g.
public class QuestionnaireModel extends LoadableDetachabeModelQuestionnaire {
private String theKey;
public
Quick solution:
Resource res = new JavaScriptResourceReference().getResource();
mountSharedResource(somePath, res);
On Fri, Aug 5, 2011 at 10:01 AM, Alec Swan alecs...@gmail.com wrote:
We are using Wicket 1.4.17 but we would like to do something like this
mountResource(/mount/path, new
Ok, so I try with your method. This is my model :
public class QuestionnaireModel extends
LoadableDetachableModelQuestionnaire {
@SpringBean
private ServiceQuestionnaire serviceQuestionnaire;
private Long id;
public QuestionnaireModel(Long primaryKey) {
id = primaryKey;
public QuestionnaireModel(Long primaryKey) {
InjectorHolder.getInstance().inject(this);
id = primaryKey;
}
On Fri, Aug 5, 2011 at 11:27 AM, Mathilde Pellerin
mathilde.pelle...@statlife.fr wrote:
Ok, so I try with your method. This is my model :
public class
Wonderful ! it works with *InjectorHolder.getInjector().inject(this);*.
Thank to you all.
Can someone could explain to me why I need a specific
LoadableDetachableModel only when I add CSSPackageResource to my modal
window ?
1.4.18 is being voted at the moment.
Branch: http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.18/
Maven Repository:
https://repository.apache.org/content/repositories/orgapachewicket-001
Non-Maven Build Artifacts:
http://people.apache.org/~jrthomerson/wicket-1.4.18/
This vote ends
No, sorry, that doesn't make sense to me. But I'm glad to hear you worked
out the problem, and more importantly, understand the usage of detachable
models. :)
On Fri, Aug 5, 2011 at 1:52 AM, Mathilde Pellerin
mathilde.pelle...@statlife.fr wrote:
Wonderful ! it works with
Project dirs:
. com.myapp
. MyStartAppPoint.java
. com.myapp.resources
. MyResources.java
. fancybox-123.js
In MyStartAppPoint.init() do:
mountSharedResource(/js/fancybox.js, new
ResourceReference(MyResources.class,
fancybox-123.js).getSharedResourceKey());
Hi folks,
I have these classes:
package com.myapp;
public class Minerals extends WebPage{
public Minerals(){
RepeatingView repeater = new RepeatingView(repeater);
//data from database - images and descriptions
ArrayList dataFromDB = (new
Hi All, Can you please let me know why i get a deployment error when I set up
the filter in the web.xml. The structure of the web.xml is, I had posted
this earlier - guess in the general forums, please bear with me.
filter
filter-nameHelloWorldApplication/filter-name
This is your problem:
Start.get().getSharedResources().add(image +
random.toString() + .jpg, image);
Adding shared resources during page construction is very unusual. Consider
registering shared resources in Application.init(), or using non-shared
images. Refer to
Error in filter start tag --- this is a web.xml parsing error? The snippet
you included is not complete. web.xml content should be wrapped in
web-app. Refer to the sample at
http://wicket.apache.org/learn/examples/helloworld.html.
If that is not the problem, please post the full, verbatim error
Using non-shared images? My problem is that I need same url for href in a
and for
src in img for lightbox to work.
-Original Message-
From: Dan Retzlaff [mailto:dretzl...@gmail.com]
Sent: Friday, 05. August 2011 18:45
To: users@wicket.apache.org
Subject: Re: tomcat eats memory
Thanks, mounting JS worked perfectly.
However, mounting CSS was problematic because it references quite a
few images and they don't get loaded/mounted correctly. How do I mount
the folder that contains all images so that they can be loaded from
the CSS?
Thanks,
Alec
On Fri, Aug 5, 2011 at
Same way as is mounted .js and .css mount images and then in .css you can
just use this path.
-Original Message-
From: Alec Swan [mailto:alecs...@gmail.com]
Sent: Friday, 05. August 2011 19:30
To: users@wicket.apache.org
Subject: Re: I am having trouble mounting shared resources
Answer myself: should be solution before
Start.get().getSharedResources().add(image + random.toString() + .jpg,
image);
do something like unmount all previosly mounted images?
In Application.init() isn't possible to mount them - I don't know which page
user click. In database is around 1.000
It sounds like a shared resource is not the right solution for your problem.
Just throw a wicket:id on your Lightbox image tag and create a Wicket Image
like image5 of the wicketstuff examples link I sent.
On Fri, Aug 5, 2011 at 10:46 AM, Miroslav F. mir...@seznam.cz wrote:
Answer myself:
With this I have problem that then I need to take url from Image component
and put it into Link component:
a href=# !-- -this atribute -- wicket:id=anchor
rel=lightbox
title=
imgstyle=border: 3px solid
I will have to track down each individual image use from css and mount
it. Is there a way to mount the entire folder?
Thanks!
2011/8/5 Miroslav F. mir...@seznam.cz:
Same way as is mounted .js and .css mount images and then in .css you can
just use this path.
-Original Message-
Actually, I think mounting a custom resource _is_ the way to go.
To keep things simple, let me suggest two options:
(1) Create a custom resource which serves the correct image based on a
url parameter (see WebResource)
This will allow you to generate user-friendly urls to your images
(2)
Construct a ResourceLink with the same ResourceReference as your Image.
On Fri, Aug 5, 2011 at 11:06 AM, Miroslav F. mir...@seznam.cz wrote:
With this I have problem that then I need to take url from Image component
and put it into Link component:
a href=# !-- -this atribute --
I think we'll need to see the previous errors.
12:06:46,590 ERROR [StandardContext] Error filterStart
12:06:46,590 ERROR [StandardContext] Context [] startup failed due to
previous errors
On Fri, Aug 5, 2011 at 12:28 PM, srinash avisrid...@gmail.com wrote:
Thanky ou for the reply. The
OK ! Indeed, this solves it, and now all's perfect.
Thank you so much !
Kind regards
Heikki Doeleman
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Repeating-form-on-a-page-tp2002098p378.html
Sent from the Users forum mailing list archive at Nabble.com.
thank you for the reply
the previous error is
2011-08-05 13:11:47,313 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
Exception starting filter HelloWorldApplication
org.apache.wicket.WicketRuntimeException: Unable to create application of
class
it is not com.softcoin.wicket.sites.webapp.HelloWorldApplication
but
com.dev.wicket.apps.helloworld.HelloWorldApplication
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/error-during-deployment-tp3721621p3722243.html
Sent from the Users forum mailing list archive at
thank you for the reply
the previous error is
2011-08-05 13:11:47,313 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]]
Exception starting filter HelloWorldApplication
org.apache.wicket.WicketRuntimeException: Unable to create application of
class
Getting warmer... What's the cause of that exception? It will be included in
the stack trace.
On Fri, Aug 5, 2011 at 1:52 PM, srinash avisrid...@gmail.com wrote:
thank you for the reply
the previous error is
2011-08-05 13:11:47,313 ERROR
It is very straneg it says. I am surely missing something
Caused by: java.lang.ClassNotFoundException:
com.dev.wicket.apps.helloworld.HelloWorldApplication
That class is there in that package above...
--
View this message in context:
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82)
at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
at
Ah, sweet. Thanks for digging that up Jeremy.
Alec, since we were pressed for time, I piggybacked off your code to get
something working
@Override
protected void init() {
super.init();
/*
* Adds custom skin at the end of the header
*/
i think i answered my own question, thank you for your help, the package was
wrong
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/error-during-deployment-tp3721621p3722389.html
Sent from the Users forum mailing list archive at Nabble.com.
As per your suggestion I grabbed the project from SVN and compiled the
snapshot. Sadly there was no change in my results. Is there a bug that is
already filed for this?
--
View this message in context:
I had a similar problem where I was trying to access an custom application on
Linux. I converted the Login.html to UTF-8 encoding and was able to access
the application.
Thanks to everyone on this page - Your suggestions worked me!
--
View this message in context:
Hello,
I'm trying to make my site available in several languages, and mostly things
work fine. But I'm wondering how to apply translations to more than one
attribute in an element.
For example:
input wicket:id=some-id
type=image
src=images/my-image.png
name=image
alt=the alt
Hi!
I am not sure, but you might need to use wicket:head tag.. (1.4 thouhg)
**
Martin
2011/8/6 heikki tropic...@gmail.com:
Hello,
I've used Wicket's i18n functionality to provide users of my site the choice
to view it in various languages, and this works well.
Except for things that go in
38 matches
Mail list logo