Thanks Igor
In my code I started with with a LDM initialized with the modelobject
itself. But it if the modelobject dont implement serializable I get
serialize exception for the modelobject(e.g. contact). My assumption is that
the modelobject is being serialized to the session. I thought that the
jensiator wrote:
Thanks Igor
In my code I started with with a LDM initialized with the modelobject
itself. But it if the modelobject dont implement serializable I get
serialize exception for the modelobject(e.g. contact). My assumption is that
the modelobject is being serialized to the
2008/10/7 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]:
:)
Huh? :)
Yes, not brilliant solution but works for some cases... ;)
Actually it's quite possible to make it for all strategies, but
requires to change wicket code.
--
WBR, kan.
Hello Edmund.
Nice to have someone in the same timezone!
Thanks for your reply. I'll try to set the modelobject member in the LDM to
transient and see if it solves the serializing exception(even if you don't
recommend it). Just want to try it out.
If I understand you correctly you only keep a
Check out:
https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/model/LoadableDetachableEntityModel.java
and
Igor Vaynberg schrieb:
hmm, create a jira issue. mabe if you override getmaxsize on the form
and return -1 or null -indicating you dont care, we should not error
out
done.
https://issues.apache.org/jira/browse/WICKET-1861
thx uwe
I try to create a watchdog page for our site. My idea was to check the
neccessary resources and respond with a 500 error in case of failure.
So I placed
getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus
(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
in the page
it works, thank you very much!!
Michael Sparer wrote:
just a guess:
from the AjaxFormComopnentUpdatingBehavior's javadoc:
NOTE: This behavior does not work on Choices or Groups use the
AjaxFormChoiceComponentUpdatingBehavior for that.
regards,
Michael
radovan wrote:
Hallo, I
I put in a Properties File and that took care of everything.
Thanks all...
I have another related question...
I want to change one of the Contact page form component's visibility
property based in a parameter I set in another page.
Is there a page onLoad function or something where I can check
You can deploy with Tomcat but you can't use the standard Tomcat deployment
tree; that is, something like this won't work:
.../webapps
- mywebapp
- WEB-INF
- classes
- html
- images
- styles
- scripts
You have to put the html for a given class in
Hallo, I have this code:
private static final ListString Orders = Arrays.asList(new String[] {
asc, desc });
private final IModelString model = new ModelString(Orders.get(0));
RadioChoice radioChoice = new RadioChoice(orders, model, Orders);
radioChoice.add(new
Hello Igor and Timo,
Sorry for my really way to late response, I was caught up entirely by
some stressful tasks which needed to be finished.
I currently do not have statistics, but I could have a cpu yourkit
snapshot. I have seen up to 75% cpu in the serialization and
deserialization. Recently
Thanks a lot Richard,
I will take a look!
Regards Ard
The wicket integration with terracotta uses an in-memory page map.
The code is here, but will soon be part of the terracotta wicket-tim.
http://www.nabble.com/file/p19826206/TerracottaPageStore.java
TerracottaPageStore.java
Hello Matej,
I'd really be interested in how exactly did you come to
conclusion that DiskPageStore writing to disk is the
bottleneck. Unless your filesystem caching is broken :)
Hmmm, don't think the filesystem cache is broken. I am working with
filesystem caches and lucene a lot and don't
but serialization and writing to disk are 2 different things.
On Tue, Oct 7, 2008 at 4:21 PM, Ard Schrijvers [EMAIL PROTECTED]wrote:
Hello Igor and Timo,
Sorry for my really way to late response, I was caught up entirely by
some stressful tasks which needed to be finished.
I currently do
both modal and nonmodal?
Francisco Diaz Trepat - gmail wrote:
Seams that it is not possible to do this.
I need both modal and modeless.
f(t)
On Tue, Oct 7, 2008 at 7:57 AM, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
Hi nino, sounds good, I'll have to set the
I should say that the terracotta page map also does the page serialisation,
but it does it all in memory.
You could probably write out the serialisation bit quite easily, but it is
required for terracotta.
Ard Schrijvers-3 wrote:
Thanks a lot Richard,
I will take a look!
Regards Ard
but serialization and writing to disk are 2 different things.
Yes sorry for the confusion. I intertwine the serialization and disk
performance (hence asking whether a memory page store exists) because
AFAIU, it is the serialized pagemaps that are being written to
filesystem. Indeed, when using
The HttpSessionStore is an in memory session store, so it has no disk writing
bottleneck. It does however have some other problems, specifically with the
back button i think.
the terracotta page store works like this:
protected ISessionStore newSessionStore()
{
return
Do you get this error in firefox? Can you try with IE? This looks like a
problem I usually have with wicket ajax functionality in gecko based
browsers..
Doug Leeper wrote:
I am trying to get the latest GMap2 in wicketstuff to work with Wicket 1.3.4
(can't upgrade to 1.4 just yet)
As the
just a guess:
from the AjaxFormComopnentUpdatingBehavior's javadoc:
NOTE: This behavior does not work on Choices or Groups use the
AjaxFormChoiceComponentUpdatingBehavior for that.
regards,
Michael
radovan wrote:
Hallo, I have this code:
private static final ListString Orders =
Great, I'll check out the code for the TerracottaPageStore,
Thanks a lot Richard,
Regards Ard
The HttpSessionStore is an in memory session store, so it has
no disk writing bottleneck. It does however have some other
problems, specifically with the back button i think.
the terracotta
jensiator wrote:
Hello Edmund.
Nice to have someone in the same timezone!
Thanks for your reply. I'll try to set the modelobject member in the LDM to
transient and see if it solves the serializing exception(even if you don't
recommend it). Just want to try it out.
If I understand you
Ah! Thank you.
Stefan.
-Ursprüngliche Nachricht-
Von: Serkan Camurcuoglu [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 7. Oktober 2008 14:18
An: users@wicket.apache.org
Betreff: Re: How to answer Request with 500 error
The WIA book says:
Setting an HTTP status code:
If you want to set
Not that I know of. JavaPolis is invitation only for speakers, and we
didn't get an invite this year. I'm too busy to drive there and do a
bof though.
Martijn
On Tue, Oct 7, 2008 at 10:41 AM, Maarten Bosteels
[EMAIL PROTECTED] wrote:
Hello,
Will there be a Wicket talk at devoxx, forimerly
Seams that it is not possible to do this.
I need both modal and modeless.
f(t)
On Tue, Oct 7, 2008 at 7:57 AM, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] wrote:
Hi nino, sounds good, I'll have to set the setCssClassName() if I don't
want to clash with other modal windows, that need to
Hi,
I am currently running into the following: I extend the button
class by a snappy foo-feature. I build stuff which uses it.
Now I need a foo-ified AjaxButton within this infrastructure.
The obvious way to do this is to write an interface FooButton
which gives me this foo-feature. However
right, the nonmodal window is basically a calculator (kind of) that helps
the user do some math. It needs to have access to lower (layer-wise)
fields.
If a modal window is displayed then it should cover the nonmodal window
(lets call it the calculator).
I can do this with some error like this:
On Tue, October 07, 2008, Martin Dietze wrote:
Just wondering, whould it be a good idea to add such interfaces
to the Wicket-API? Or am I missing something?
commenting on my comments:
(1) This would of course mean to interface-ify basically the whole
component type hierarchy, since in
So I tried in IE 7 and this is what I get in the Ajax Debug Window.
Note: the modal window does show up...but IE indicates that it has
experienced an error and asks that I debug.
...
INFO: Initiating Ajax GET request on
The WIA book says:
Setting an HTTP status code:
If you want to set an HTTP status code for your page, such as 404 (not
found), you
can do so by overriding the page’s setHeaders method:
@Override
protected void setHeaders(WebResponse response) {
response.getHttpServletResponse().setStatus(
Also, see AbortWithHttpStatusException.
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Oct 7, 2008 at 7:41 AM, Stefan Lindner [EMAIL PROTECTED] wrote:
Ah! Thank you.
Stefan.
-Ursprüngliche Nachricht-
Von: Serkan Camurcuoglu [mailto:[EMAIL PROTECTED]
Gesendet:
Hello,
Will there be a Wicket talk at devoxx, forimerly known as JavaPolis ?
I think there should :-)
http://www.devoxx.com/display/JV08/Home
Maarten
if wicket tries to serialize the object you are trying to hold on to a
reference of it outside the ldm somewhere in your code. eg
object o=ldm.getobject();
add(new label(o, o));
-igor
On Tue, Oct 7, 2008 at 12:21 AM, jensiator [EMAIL PROTECTED] wrote:
Thanks Igor
In my code I started with
Hi nino, sounds good, I'll have to set the setCssClassName() if I don't want
to clash with other modal windows, that need to be modal, right?
f(t)
On Tue, Oct 7, 2008 at 2:36 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
Why not use wicket modal window, and just override
Hi,
In my project there is a modal window.In event of WicketRuntimeException it
goes to custom Internal Error page. That Page has a button which overrides
onComponetTag method and attaches javascript:window.close() with
onclick event. So that user can close the modal window.(I don't want user
well that's beyond me.. what I was talking about was an error similar to
http://issues.apache.org/jira/browse/WICKET-1426 which causes http 404
errors in gecko browsers and I have to patch wicket-ajax.js to
workaround it.. but your error seems to be more subtle, maybe you should
send this
as it is kind of a workflow and i had all the pages already prepared
by passing imodels along into constructors, i didn't want to have a
bookmarkablepage (whatever you pick: panels/pages/variations, you need
this one to call the page executing the code). but this was the
simpler solution, pass an
It could be related. One way to find out...
I will apply the suggested patch and see what happens.
Which patch should I try? There appears to be two suggestions.
Thanks
- Doug
--
View this message in context:
http://www.nabble.com/GMap2-or-Wicket-Ajax-issue--tp19859974p19861512.html
Sent
Just throwing this out there:
http://wicketstuff.org/wicket13doc/org/apache/wicket/Page.html#setStatelessHint(boolean)
Perhaps that may work.
Ryan Gravener
http://twitter.com/ryangravener
On Tue, Oct 7, 2008 at 12:02 PM, francisco treacy
[EMAIL PROTECTED] wrote:
as it is kind of a
Hi!
I'd like to have extjs toolbar/menu working with Wicket ajax. What I
want is, for example, in an ajax event show/hide menu items. I created
the classes and the menu is rendered correctly.
My toolbar render everything from its renderHead (IHeaderContributor)
method. All javascript code
Depending on what you are doing, you may want to try implementing the foo
feature code as a behavior. Behaviors are like plugins for components, and
can be used on any component. So, if it is possible to implement your
functionality as a behavior, then you could add it to the button or ajax
I apply my patch, to change this code on line 824
if (Wicket.Browser.isGecko()) {
to
if (Wicket.Browser.isGecko() url.match(^http://;) == null) {
works for me, which ensures that the url is not an absolute url..
Doug Leeper wrote:
It could be related. One way to find out...
I will
On Mon, 06 Oct 2008, rmorrisey wrote:
wicket 1.3.4
I have a small addition to ModalWindow that I think would be useful as a
patch. Please tell me what you think.
Hi, it sounds like a nice idea, though I don't know what
exactly what it could be used for :) Displaying some
notification after
On Tue, 07 Oct 2008, newbieabc wrote:
I have another related question...
Often it's a good idea to start a new thread with a
descriptive subject for new questions.
I want to change one of the Contact page form component's visibility
property based in a parameter I set in another page.
Is
yes... the page must be bookmarkable - so i need it anyway.
another question that pops out with your suggestion: when called, are
bookmarkable pages always instantiated? under any circumstance?
just to make sure that calling
http://localhost:8080/myapp/bookmarkable will always trigger the code.
On Tue, October 07, 2008, Jeremy Thomerson wrote:
Depending on what you are doing, you may want to try implementing the foo
feature code as a behavior. Behaviors are like plugins for components, and
can be used on any component. So, if it is possible to implement your
functionality as a
I applied that change locally and it did not change the behavior/error that I
was seeing.
Not sure what else to try.
I guess I will make it a Page rather than a ModalWindow for now to keep
moving along.
Thanks for the help.
- Doug
--
View this message in context:
Hi,
I'm attempting to create a custom validator for social security number
strings. I've got the following code for this:
static Pattern pattern = Pattern.compile((\\d{3})[ \\-]*(\\d{2})[
\\-]*(\\d{4}));
public final IConverterString getConverter(Class type)
{
I was recently working on creating some Ajax functionality that, when
a record was added/updated/deleted in my form would display some
informational label that would gradually fade away. While I can get
this to work, I would like to refactor this into some type of reusable
behavior. Is this
On Tue, Oct 7, 2008 at 4:24 PM, Ard Schrijvers
[EMAIL PROTECTED] wrote:
Hello Matej,
I'd really be interested in how exactly did you come to
conclusion that DiskPageStore writing to disk is the
bottleneck. Unless your filesystem caching is broken :)
Hmmm, don't think the filesystem cache is
Hello Doug,
I'm have some difficulties getting the contextMenu running. I checkout today
the wicket-contrib-yui project from the svn and install it using maven.
Trying after that using the wicket-contrib-yui.jar and all dependencies to
create my context menu in the
same way as in the
what version of wicket are you using?
I have not tested/ported any of the menu2 with wicket 1.4.
--
View this message in context:
http://www.nabble.com/right-click-popup-context-menu-tp15876468p19865384.html
Sent from the Wicket - User mailing list archive at Nabble.com.
I try it with apache-wicket-1.3.4 and apache-wicket-1.4-m3 and I'm getting
the same compilation errors!
Doug Leeper wrote:
what version of wicket are you using?
I have not tested/ported any of the menu2 with wicket 1.4.
--
View this message in context:
we do not guarantee the order of updates for sibling components, we
only guarantee that the deepest components are visited first - so you
should not make an assumption about order of evaluation when writing
the code.
it is indeed weird that the FCP is not visited, as far as i can see
the
Timo Rantalaiho escreveu:
On Tue, 07 Oct 2008, Adriano dos Santos Fernandes wrote:
So my question is how I could prevent wicket from regenerate the div
when updating a component added to an AjaxRequestTarget?
Not sure if this helps, but you can always add smaller
parts inside your div
Timo -
Thanks for your response.
I did use a PatternValidator alone in my first approach, but while I
could verify that '123-45-6789' was a legitimate SSN, what I wanted to
additionally do was fill in my model object's string with '123456789'.
Now, if the setSsn() in the model object needs to
I need to call the server side from a javascript (generated by a
component) function. Kind of Link/AjaxLink onClick, but instead of have
it attached to a DOM event, I need to generate the javascript function
that does the job.
Could you point me out how I could do it?
Adriano
converters are not used for string-string conversion because the
input is already a string.
-igor
On Tue, Oct 7, 2008 at 10:19 AM, Steve Thompson [EMAIL PROTECTED] wrote:
Hi,
I'm attempting to create a custom validator for social security number
strings. I've got the following code for
This doesn't preload the images, but it is a simple way to do a Mouseover.
You could easily add a header contributor within the constructor of this
class that outputs some javascript to preload the images.
public class MouseoverImage extends Image {
private static final long serialVersionUID =
Hi,
Must a URL be handled by a Page object? Is there another option?
For exmaple, I want to call a URL from browser-side javascript and then on
server-side go through the wicket request cycle, do some work, change some
state, and write to the response. But I am worried about using Page to
Typically this would be handled with Ajax behaviors. They are written for
this purpose.
On Tue, Oct 7, 2008 at 4:06 PM, metalotus [EMAIL PROTECTED] wrote:
Hi,
Must a URL be handled by a Page object? Is there another option?
For exmaple, I want to call a URL from browser-side javascript
Hello, I've been trying to add this functionality to a component, after
(say) 120 seconds I want to submit the form automatically (via ajax) in
order to create a backup of the information hold at that time by the
component. I've been looking at ajaxformsubmitbehavior but I don't see
how to
I have not tried this, and there are probably better ways, but you might be
able to:
- create a subclass of AbstractAjaxTimerBehavior
- override getCallbackScript and return the code that is generated by
AjaxFormSubmitBehavior#getEventHandler
This would involve copy-and-paste of some code out of
The following code works (have unit tests) but I would appreciate a code
review from someone.
Legend
MyPojo - bean backing up form
MyProperty - another POJO that is property of MyPojo (MyPojo has field
'myProperty' of type MyProperty)
MyFormComponent - custom form component that
You should be able to do
Form form = new Form(form, new CompoundPropertyModel(MyPojo));
page.add(form);
form.add(new MyFormComponent(myProperty));
See
http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels
dukehoops wrote:
The
I thought that as well, but turns out in that case
MyFormComponent.getModelObject() returns MyPojo, and NOT MyProperty. That
presents two problems:
-MyFormComponent does not really need to know of MyPojo to begin with (what
if MyProperty is obtained some other way)
-in
Our next 4 scheduled http://jweekend.com/dev/JW703/ intensive, 2 day Wicket
training courses in London are on
Oct 16-17(Thu-Fri)
Oct 18-19(Sat-Sun)
Nov 1-2(Sat-Sun)
Nov 13-14(Thu-Fri)
During October, users of this mailing-list should enter voucher code
JW-Wicket-User_Fall_9!q
into
Perhaps I don't understand your use case.
I'm using CPM all over the shop, and letting auto CPM propagation take care
of itself.
If the property is obtained from some other way, then obviously you would
need to supply it to the form field - in the same way there are multi
constructors for most
On Tue, 07 Oct 2008, Adriano dos Santos Fernandes wrote:
I need to call the server side from a javascript (generated by a
component) function. Kind of Link/AjaxLink onClick, but instead of have
it attached to a DOM event, I need to generate the javascript function
that does the job.
E.g.
Adriano,
Create the AbstractAjaxBehaiour you want, call getCallbackUrk() on it and
use the returned URL as a parameter to wicketAjaxGet in the JavaScript
you're generating.
Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk
asfernandes wrote:
I need to call the server side
Its a requirement for me that my domain entities have DateTime.
I'd like to use wicket-datetime (as described here)
http://www.nabble.com/my-domain-model-and-Joda-Time-td15660961.html#a15660961
I can see its internals are all DateTimey which is AWESOME!!
What is the easiest / quickest way of
Anybody?
2008/8/29 Marat Radchenko [EMAIL PROTECTED]:
Hi everyone!
Is it supposed to be legal to use mount path with trailing slash?
If yes, then I'll file a bugreport because it doesn't work [yup, I
have a testcase]. If not, then that will be another story.
73 matches
Mail list logo