Hi,
I've used the approach described in
https://cwiki.apache.org/confluence/display/WICKET/Dynamically+Generate+a+CSS+Stylesheet
for dynamic CSS and js files. (already added my comment, point 5)
But I've experienced a problem in our live cluster (two tomcats with
apaches and a loadbalancer)
Hi,
seems to me you should probably use sticky sessions in your
loadbalancer ;-)
I think if your resource depends on instance variables in your Page you
really need to do that. If you just depend on stuff happening in the
initialization of the Page class (not an instance) you could use an
sticky sessions or make sure your cluster has session replication
enabled - so that when the css hit comes into the second server it has
the page from the first server.
-igor
On Thu, Dec 9, 2010 at 12:48 PM, Carl-Eric Menzel cmen...@wicketbuch.de wrote:
Hi,
seems to me you should probably use
Hi,
thanks Carl-Eric.
We're using sticky sessions already and the config seems to work for
everyting except CSS files. I've just seen that the browser also sends
the cookie containing the jsessionid along with the css request, so
maybe our sticky session config is wrong here. Already wrote
Hi,
if you can initialize your resource in a page constructor, you can do
the same thing with an IInitializer. You could create shared resources
there, for example - then just use any of the applicable resource
classes and use TextTemplate for interpolation.
Carl-Eric
www.wicketbuch.de
On Thu,
On Mon, Dec 6, 2010 at 3:36 PM, Taner Diler jtdde...@gmail.com wrote:
Hi all,
I'm writing a blog application. as all blog applications it has an admin
module. I wrote two abstract page : AdminPage and BlogPage. the differencies
between them are menu, left/right panels and also screen styles.
It seems very helpful, however i believe this can be used in other places
(not only to wicket projects), since it may mislead users to think is
wicket specific.
However thanks for sharing it.
On Thu, Dec 9, 2010 at 4:38 AM, Vijay Kiran-3 [via Apache Wicket]
With r1044010 (Wicket 1.5) all methods now use Serializable instead of
String.
On Wed, Dec 8, 2010 at 9:47 AM, Thomas Götz t...@richmountain.de wrote:
Hi,
please see https://issues.apache.org/jira/browse/WICKET-2986
-Tom
Stefan Droog wrote:
Hi,
Just to be curious:
Does someone
Of course ;)
There's a servlet example in the download, but I can also share mine:
UI Panel: http://pastebin.com/Ypmvvfez
Service: http://pastebin.com/QhhAdECx
Upload Servlet: http://pastebin.com/F4B7PStz
Regards
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cika...@gmail.com
On
I've also added the following functions to the uploader JS to make
them add to UI:
http://pastebin.com/Qa55kZnh
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cika...@gmail.com
On Thu, Dec 9, 2010 at 9:22 AM, Zilvinas Vilutis cika...@gmail.com wrote:
Of course ;)
There's a servlet
On Thu, Dec 9, 2010 at 5:46 AM, Carl-Eric Menzel cmen...@wicketbuch.dewrote:
if you can initialize your resource in a page constructor, you can do
the same thing with an IInitializer. You could create shared resources
there, for example - then just use any of the applicable resource
classes
On Thu, 9 Dec 2010 13:21:47 -0600
Jeremy Thomerson jer...@wickettraining.com wrote:
Not really. You could have dynamic resources referenced in your
constructor that depend on instance variables, or the model that was
passed into the constructor, etc For anything that doesn't need
that,
I have a situation where, as a result of onSubmit() in my form, I redirect to
a resource stream. That part works fine.
ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(
new FileResourceStream(file));
Hello,
I have the same issue which is discussed in the following link:
http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-component-not-found-on-page-td3055902.html
I made a quickstart to reproduce it. Any idea on how to workaround
this behavior?
I'm using wicket 1.4.12, wiquery
I want to add search functionality to my site (think of a classifieds
site, something like craigslist where users post items to sell).
Currently I am using mysql for storage, and nothing else. Is searching
directly at the database via queries the best way? It seems illogical
to perform a linear
The next step up from LIKE statements is fulltext search.
http://devzone.zend.com/article/1304
If you want more advanced functionality and are prepared to spend a bit of time
implementing have a look at the Apache Lucene library.
If you're using Hibernate there's a neat way to integrate with
Attach the zip of the quickstart to a JIRA.
Jeremy Thomerson
http://wickettraining.com
-- sent from my smart phone, so please excuse spelling, formatting, or
compiler errors
On Dec 9, 2010 4:15 PM, Takeo Hosomi takeo.hos...@gmail.com wrote:
Hello,
I have the same issue which is discussed in
One idea: don't redirect to the resource in onSubmit. Instead, let it
repaint the form. At the same time, add JavaScript that goes to the URL of
the resource to start the download after the form is re-rendered.
Jeremy Thomerson
http://wickettraining.com
-- sent from my smart phone, so please
You might also want to check out the Compass project.
On Thu, Dec 9, 2010 at 7:08 PM, Steve Coughlan
steve_cough...@yahoo.com.au wrote:
The next step up from LIKE statements is fulltext search.
http://devzone.zend.com/article/1304
If you want more advanced functionality and are prepared to
I attached it to a JIRA.
https://issues.apache.org/jira/browse/WICKET-3248
Thanks,
Takeo Hosomi
On Thu, Dec 9, 2010 at 4:12 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
Attach the zip of the quickstart to a JIRA.
Jeremy Thomerson
http://wickettraining.com
-- sent from my smart
Thank you for the idea, however there is no stable URL for the resource. The
resource gets created on the fly as a local file and streamed into the
browser.
By the way, if I were to go this route, how/where would I add the
JavaScript? In the onSubmit()?
Any other possible workarounds for this
I have an SQL query to do a full-text search on my database:
String sql = SELECT * FROM Items WHERE MATCH (title, description)
AGAINST (' + searchText + ');;
List items = session.createSQLQuery(sql).list();
When I execute it, it returns a list with the rows it found as a result.
Each row is
Have a look at
https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
Ernesto
On Thu, Dec 9, 2010 at 10:55 PM, eugenebalt eugeneb...@yahoo.com wrote:
I have a situation where, as a result of onSubmit() in my form, I redirect to
a resource stream. That part works fine.
Hi again,
This is how I interpreted your last post Jeremy (please see attached code
fragments:
http://apache-wicket.1842946.n4.nabble.com/file/n3081409/TestingServlet.txt
TestingServlet.txt )
The new approach appears to trigger the separate servlet, but the problem is
that it also redirects
Oh and I excluded the session code for the simple reason, that I dont think
it is relevant, as it is the applications that get mixed up
fstof wrote:
Igor Vaynberg-2 wrote:
a reproducible test case :)
-igor
If I could reproduce it I'm pretty sure I would have been able to
Hi guys;
I have a dataview component that is using a sortable data provider. I have
created a sortable dataprovider that has a constructor that takes parameters
and produced data based on the parameters passed. I would like to update
date the dataview by may be replacing its dataprovider and
I don't think it is a good idea to have multiple applications in one
war. Wicket stores static state in ThreadLocals (Application, Session,
etc.). All apps in the same war share the same ClassLoader and thus the
same static ThreadLocal instances. There might be circumstances when the
state
Check out the open source project jetwick where I am using Solr + Wicket:
https://github.com/karussell/Jetwick
(or at jetwick.com the video intro)
sql like is definitely not recommended for a large number of items.
Feel free to ask further questions ;-)
Regards,
Peter.
I want to add search
I don't think it is a good idea to have multiple applications in one
war. Wicket stores static state in ThreadLocals (Application, Session,
etc.).
The ThreadLocal objects are static, yes, but the actual objects stored there
are per thread and thus not static.
All apps in the same war share
29 matches
Mail list logo