because I use the domain objects directly,. without any DTO's, I have to use
the long conversation pattern. That means I have to store the domain object
somewhere in the session and let the loadabledetachable model retrieve it
from there?
2008/2/11, Igor Vaynberg [EMAIL PROTECTED]:
then you
Whats wrong with the stuff in maven?
http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.3.0-SNAPSHOT/
richardwilko wrote:
Hi, I have added my code to the wicketstuff-minis (package called
org.wicketstuff.minis.prototipbehaviour). It would be nice to be able to
just
On Mon, 11 Feb 2008, Johan Compagner wrote:
this code doesn't work at all.
Ah, thanks for clearing that out :)
The nth rule of the Internets: to find a working solution,
post a wrong solution.
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations OyURL: http://www.ri.fi/
On Mon, 11 Feb 2008, Martijn Lindhout wrote:
because I use the domain objects directly,. without any DTO's, I have to use
the long conversation pattern. That means I have to store the domain object
somewhere in the session and let the loadabledetachable model retrieve it
from there?
Depends
The children field is private to Component, so I figure we could make
children transient, double the array size each time each time we add
components if it's not big enough (like ArrayList does), and then in
detach() we could copy the children over to a non-transient variable
and null out the
no don't introduce a transient field for that. (its not serialized but in
memory its an extra slot)
We could that by using the same field and compress it in detach.
The problem i also see is that we then have to have a count, how much is
already filled, or walk over it to find the first null in
No, I'm not using Wicket-Stuff. I am using:
1. wicket-1.3.1.jar
2. wicket-datetime-1.3.1.jar
3. wicket-extensions-1.3.1.jar
4. wicket-ioc-1.3.1.jar
5. wicket-spring-1.3.1.jar
6. wicket-spring-annot-1.3.1.jar
7. wicket-velocity-1.3.1.jar
On Feb 10, 2008 11:14 AM, Martijn
I was hoping to compress my stylesheet and have it available at
/style/mystyle.css
I'm having a great deal of difficulty getting this working. - i can
successfully get it on resource/mypackage.MyClass/whatver, but this is not
appropriate.
I've searched this forum and google, and i guess what
The order has methods createMemento():Memento and applyMemento(Memento
m). These are used to get objects that contain state. They can in
turn be applied to the order to set it back to that state at a later
point. So yes, you fetch the Order, detach it, call applyMemento() if
you have unsaved
also the
first page a user hits after logging in (usually the home page) is a
candidate.
Sorry this is not correct, usually that page (the home page) is a
secure page to trigger the automatic login.
I was trying to find more examples of pages typically not secure but i
guess besides public pages
Oops. That's what I meant. I had to use StringResourceModel in my
case because I had to supply parameters.
On 2/11/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
or just ResourceModel
-igor
On Feb 11, 2008 11:59 AM, James Carman [EMAIL PROTECTED] wrote:
Have you tried StringResourceModel?
Have you tried StringResourceModel?
On 2/11/08, Michael Mehrle [EMAIL PROTECTED] wrote:
Assuming the typical tabbed panel example below - is there a good way to
grab the tab name from the page's properties file? What I need to do is
to internationalize the tab name. I guess I could do my own
that sadness is an artifact of how hibernate works. it is
easier/cheaper to create a bean than keep a disconnected session in
your http session, which can be quiet memory intensive. of course
which way you go is up to you.
in a lot of these cases i have noticed that the mapping isnt always
1:1
Hi,
I'm fiddling around with wasp and swarm. I was wondering if it is possible
to add an EverybodyPrincipal to the current session on session
instantiation.
The problem is the following: I'd like to let my BasePage (from which ALL
pages in my app inherit from) extend SecurePage to be able to
On Mon, 11 Feb 2008, Fabrizio Giudici wrote:
where updateDate() updates the date model. Indeed the model gets
correctly updated since I see the new value gets to the database. But
the label doesn't get updated. I supposes everything was with the
setOutputMarkupId() and eventually with
I've seen this drop in performance too... and with over 2000 items, it
was very slow.. I fixed it by using something similar to a
loadabledetachable model.. (turned out that it used the dao on each
render of an item).. So might not be the same..
regards Nino
Meetesh Karia wrote:
It appeared
It appeared to be that way after stepping through the code many times in
a debugger but that's definitely not conclusive evidence. I'll try and
come up with a better measure of what's going on.
Thanks,
Meetesh
Matej Knopp wrote:
Indeed, the reason for it is to reduce memory consumption.
I was wondering if it is possible
to add an EverybodyPrincipal to the current session on session
instantiation.
After reading your mail again, trying to recreate the stackoverflow, i
realize you said the EveryBodyPrincipal, the whole time i was reading
is as AllPermissions. :-s
The
I have a simple demo of the guestbook application. I'll post it online in
the next couple of days.
On Feb 7, 2008 10:54 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
Yes it's normal practice to make a simple project that demonstrates the
functionality... Like
Assuming the typical tabbed panel example below - is there a good way to
grab the tab name from the page's properties file? What I need to do is
to internationalize the tab name. I guess I could do my own call to grab
it from the classpath + the property file name. Was hoping
List tabs = new
or just ResourceModel
-igor
On Feb 11, 2008 11:59 AM, James Carman [EMAIL PROTECTED] wrote:
Have you tried StringResourceModel?
On 2/11/08, Michael Mehrle [EMAIL PROTECTED] wrote:
Assuming the typical tabbed panel example below - is there a good way to
grab the tab name from the page's
First off i would like to see your code as it should not be possible
to create a StackOverFlow.
Second i am not entirely sure why you would want EVERY page to be a secure page.
For instance the login page should not be a secure page, also the
first page a user hits after logging in (usually the
Hi,
More information about this memory leak problem.
This problem doesn't happen in version 1.3 (Development/deployment
mode) and only happens in version 1.3.1 (development/deployment mode).
Thanks.
Regards
Boon Ping.
On Feb 12, 2008 7:36 AM, Henrik Lundahl [EMAIL PROTECTED] wrote:
Hi,
In
I suggest using the GoF memento pattern here. You keep your changes
in one or more mementos, which can be kept in the session. Then you
push the changes back to the domain model when you are happy with
them. We use this approach for modifying hotel reservations --
particularly because we need
I agree that it is *easier*, but I got bored by duplicating my domain model
in a DTO like structure. And that's cumbersome.
I saw this hapening in several projects, and in the end we had two almost
equals object structures, one with rich behavior, and one with just data and
structure.
that's
I actually have a follow up question regarding StringResourceModel - the
tutorial shows this example, which makes sense:
add(new Label(greetings, new StringResourceModel(label.greetings,
this, new Model(user;
Now, if I want to call a method that returns a String instead, like
so...
add(new
Ah, thanks for clearing that up.
In my case the processing has to be done once and only once, so
setEnabled(true) need not be called. After successful processing
setResponsePage(..) is called. So this should still work just for me,
right? I'll try tomorrow. If that doesn't work, I'll look at
Hello all,
Such optimisation should be preceeded by getting hard
profiling data, right?
We have some repeaters that get hundreds of Items and the
part of adding child components has not shown up as a
bottleneck when profiling.
It has made us think, though, whether it makes sense to
output
How I can create a stateless org.apache.wicket.markup.html.image.Image?
I thought that just calling new Image(id) will do the job, however
getStatelessHint() returns false.
It looks like a bug in LocalizedImageResource#isStateless().
I guess it should be
return resourceReference == null;
Hello.
I've still got problems with updating a page component from AJAX,
this time from a popup window.
Everything starts with a specific component for entering a date (it's
a special date, so I can't use the component provided with Wicket):
public class VRCDateField extends Panel
{
Hi all, I'm using DataView in wicket 1.3 and we have ~400 items that are
returned by a data provider. I'd expect the adding of the items to be
rather quick but it turns out that it's not and it looks like the
culprit might be MarkupContainer.put. That method expands the children
array 1
Thanks Johan,
I add the doctype :
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
and now accentued char are directly displayed.
Pierre
Johan Compagner wrote:
i guess if you the output
Hello,
I have a little question: my app lets the user upload some files on the
server side. I would like to put them somewhere on the server hdd, out
of the context of the application (let say on /dev/etc/uploads), so when
I redeploy my war (update of the system), all the uploaded files
Haven't read the entire thread, but based on a best guess.. Would this
be helpful in some way?
http://blogs.webtide.com/gregw/2006/10/18/116112750.html
Throttling filter
http://jetty.mortbay.org/xref/org/mortbay/servlet/ThrottlingFilter.html
./C
this code doesn't work at all.
the onclick method isn't called at the same time by 2 request (2 link
clicks)
They are synchronized by wicket itself.
So what happens with the code below is that the first request sets the
enabled to false
then does the processing, then wicket blocks the second
On Sat, 9 Feb 2008 09:51:45 +0100
Johan Compagner [EMAIL PROTECTED] wrote:
What wicket version is this?
Normally in 1.3 page expires should never happen, except when your
page isnt serializeble...
Here it is! My page wasn't serializable, but my Logback configuration hid the
exception.. :(
i guess if you the output side is correct that then something goes wrong in
the input
So the files are read as something else, what is the default encoding of the
server itsef?
Where does java read its file in with?
An xml/xhtml reader doesn't look at meta tag i think. Those only look at the
presumably on each commit seperated by a timer.. There is a timer
checking setting so that bamboo scans each xxx seconds/minutes. Im not
sure how minis are setup on this..
And btw it seems that the wicket stuff maven repo is a bit hidden from
the public eyes(I first discovered it this year).
sorry for late reply. johan
i never use the threadpool even the thread as well... To start form the
thread.. i tried for the simple thread program as below
package thread;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Date;
import
please file a jira issue
-igor
On Feb 11, 2008 6:49 AM, Dmitry [EMAIL PROTECTED] wrote:
How I can create a stateless org.apache.wicket.markup.html.image.Image?
I thought that just calling new Image(id) will do the job, however
getStatelessHint() returns false.
It looks like a bug in
Hi, can you please file a jira bug report and provide a quck start
project that demonstrates this?
-Matej
On Feb 12, 2008 4:15 AM, Lan Boon Ping [EMAIL PROTECTED] wrote:
Hi,
More information about this memory leak problem.
This problem doesn't happen in version 1.3 (Development/deployment
ok. never used memento, so I picked the book and read about it. I'm not sure
how to implement this. When do I retrieve a memento from the order? And in
the meantime, while adding and removing lines, is the Order updated and
saved in the DB? If someone reads the database, will he see the
The order has one or more order mementos (pre/post editing) and each
order memento has a collection of orderline mementos. The mementos
are completely opaque, and only the Order OrderLine are able to
inspect them and extract their content -- perhaps by implementing them
a static inner classes
sounds interesting. Can you explain a bit more? How does this work for
example in an Order-OrderLine situation where you edit an existing order by
adding and removing orderlines and finally do a commit or rollback?
2008/2/11, Scott Swank [EMAIL PROTECTED]:
I suggest using the GoF memento
Hi Martijn,
Its the tab that doesn't work when you click it. The ajax debug inspector says:
[some HTML response]
ERROR: Error while parsing response: Object required
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
But it works perfectly in firefox.
Regards,
Wen
That seems to work - thanks guys! Much cleaner than manually accessing a
resource bundle.
Thanks,
Michael
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of James Carman
Sent: Monday, February 11, 2008 12:04 PM
To: users@wicket.apache.org
Subject: Re:
I guess everything is UTF-8 on the server. I wait for the eatJ support for
confirmation.
I am not sure to have understood your question but
the legacy html files are included in WebPage components. So reading from
Wicket ...
Johan Compagner wrote:
i guess if you the output side is correct
i guess we could up the level a bit yes
Because in 1.3 it is pretty serious error if we cant save the page.
johan
On Feb 11, 2008 11:11 AM, Federico Fanton [EMAIL PROTECTED] wrote:
On Sat, 9 Feb 2008 09:51:45 +0100
Johan Compagner [EMAIL PROTECTED] wrote:
What wicket version is this?
Hello again,
I'm still really struggling to find why the extra context is being added
to the path. Could anyone help? Does anyone have a Wicket 1.3.1 setup on
Tomcat behind Apache2? Is there a recommended setup e.g. Jetty?
Working my way through the debug for Wicket, it looks like the page
Hi all,
I'm using version 1.3.1
I have a ModalWindow and in its method setWindowClosedCallback I pass a
WindowClosedCallback and then in its method onClose
I replace a panel with another called newPanel and finally I call
target.addComponent(newPanel)
The code follows
Hi,
In my current project we have a page with six AjaxLinks that open
different ModalWindows. We had implemented sub-classes of ModalWindow
which had field references to the content Pages (the source of the
iframes in the ModalWindows) created by ModalWindow.PageCreators. The
references were
Sorry for previous post.. It was a listview.. not dataview
Meetesh Karia wrote:
It appeared to be that way after stepping through the code many times
in a debugger but that's definitely not conclusive evidence. I'll try
and come up with a better measure of what's going on.
Thanks,
Meetesh
Indeed, the reason for it is to reduce memory consumption. Right now,
I don't see any easy way around, are you absolutely sure that it
causes you performance problems?
-Matej
On Feb 11, 2008 2:15 PM, Meetesh Karia [EMAIL PROTECTED] wrote:
Hi all, I'm using DataView in wicket 1.3 and we have
Ok, I didnt know that that was there. How often is that jar file produced?
Nino.Martinez wrote:
Whats wrong with the stuff in maven?
http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.3.0-SNAPSHOT/
--
View this message in context:
btw, I went that way too (moving to an method)..
Ned Collyer wrote:
4 minutes? You're getting slower!
That kind of worked. I'm not fond of having to reinitialise all the things I
set inside init, so i've moved this method out to a protected void
initSpring().
Thanks for your help.
Rgds
Ned
55 matches
Mail list logo