Have you tried something like the following?
new AjaxFallBackLink(id) {
public void onClick(AjaxTargetRequest target) {
page.replace(changedComponent);
if (target != null) {
target.addComponent(changedComponent);
}
}
}
Regards,
Erik.
De Soca schreef:
Hello
Hi all,I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. greets,Ted
-
Using Tomcat but need to do more? Need to support web services,
Hmm, which browser(s) are you using? You could also take a look at this site to see the browsers that *has* been tested with our AJAX implementation:
http://www.wicket-wiki.org.uk/wiki/index.php/FAQs#Which_browsers_have_been_tested_with_Wicket_AJAXFrankOn 10/17/06, De Soca
[EMAIL PROTECTED]
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
Hi all,
I was wondering if there is anyone who has used Wicket in combination with
JackRabbit, so he\she could help us avoid some major problems.
In the past, I have been looking at using Wicket and JCR when building
InfoQ.com. However, I
Strange. It seems that getResponseHeader throws an exception in netscape
if the requested header is not there. I added a try/catch block there so
it should work now.
-Matej
Allen James wrote:
Has anyone run into issues using AJAX behaviour with Netscape 8.1.2 using
the Firefox rendering
Well, it seems like a bug, the question is how to fix it?
The problem is that rendered() should be called after component is
rendered. But we do call it even after header is rendered, because we
need to do some cleanup there.
So for 2.0 I think we need something like
IBehavior.cleanup() - where
It fails to execute because the header javascript is executed before the
elements are inserted to DOM.
The solution would be not to render the javascript to head, question is
how to determine whether header is being rendered or not.
-Matej
Caleb Land wrote:
For some reason if the javascript
The reason why this is relevant is because we determine the namespace
from this statement. Meaning
xmlns:wicket=http://wicket.sourceforge.net/ is our current default.
But xmlns:xxx=http://wicket.sourceforge.net/ will change Wickets
namespace to xxx. So instead of wicket:id you can write xxx:id.
No plans from the core devs. But anyone from the list of wicket-stuff
committers could take it up if they like.
Eelco
On 10/17/06, cowwoc [EMAIL PROTECTED] wrote:
Hi,
There exists a module called wicket-contrib-data-hibernate-3.0. Are
there plans for releasing
Igor,
Thanks for the reply and the suggestion to just extend
AbstractBehavior. That definitely does work better.
Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working
out quite right. The generated ondblclick attribute
is:
and 1.3?
Martijn
On 10/17/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
The reason why this is relevant is because we determine the namespace
from this statement. Meaning
xmlns:wicket=http://wicket.sourceforge.net/ is our current default.
But xmlns:xxx=http://wicket.sourceforge.net/ will
And since you now have an underused, working sf.net account... :-)
(underused because the security breach was a couple of months ago ;-)
Martijn
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
No plans from the core devs. But anyone from the list of wicket-stuff
committers could take it
Don't worry too much about them. Most of those deprecation warnings
are there to help people migrate to 2.0. They will be supported for
1.2.x and 1.3.x.
Usually the deprecation javadoc tag will say what the replacement is.
Though there are/ have been a few tags where the lazy bum dev who put
it
Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?greetsTed2006/10/17, Alexandru Popescu
[EMAIL PROTECTED]:
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
Alexandru were did you keep the JackRabbit Session in your Wicket
Application?
Did you keep them in your Wicket-Session or somewhere else?
As I already think I have answered you on the Jackrabbit list: the JCR
Session is better fitted to
Oh yeah Sorry, i did't realize that it was you. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]:
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED]
wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?As I
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
Oh yeah Sorry, i did't realize that it was you.
Oh yes that's me everywhere :-D.
./alex
--
.w( the_mindstorm )p.
2006/10/17, Alexandru Popescu
[EMAIL PROTECTED]:
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
Alexandru
Do you even need to keep a reference to it? Get a session when you
need it or let it get injected.
Eelco
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
Alexandru were did you keep the JackRabbit Session in your Wicket
Application?
Did you keep them in your Wicket-Session or somewhere
It could be easy to keep a reference, else we have to work with or something like it, because if you have create a session everytime you need it, your performance is shot to hell2006/10/17, Eelco Hillenius
[EMAIL PROTECTED]:Do you even need to keep a reference to it? Get a session when you
need
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Do you even need to keep a reference to it? Get a session when you
need it or let it get injected.
Eelco
The only requirement would be that the JCR Session to be
request-confined (so thread safe). I really think this is possible in
The only requirement would be that the JCR Session to be
request-confined (so thread safe). I really think this is possible in
Wicket, but I am still waiting for your book to go out so that I can
give better answers to this :-).
Heh. If a session is thread bound (though I wouldn't see the
您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供;
互惠互益以解贵司业务运作`补帐`作帐的燃眉之急;提供如下票据服务:★普通商品/运输/广
告/建筑安装/服务业等各种发票可以向外提供,税率为1-2%;并可上网查询或税务验证后付
款的方式与贵司合作!
联系人:陈小姐
电话 :13510678960
-
Using Tomcat but need to do more? Need to support
I really want it to be threadsafe, but at this point i don't have a good picture of how that is done.2006/10/17, Alexandru Popescu
[EMAIL PROTECTED]:On 10/17/06, Eelco Hillenius
[EMAIL PROTECTED] wrote: Do you even need to keep a reference to it? Get a session when you need it or let it get
:?
On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote:
您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供;
互惠互益以解贵司业务运作`补帐`作帐的燃眉之急;提供如下票据服务:★普通商品/运输/广
告/建筑安装/服务业等各种发票可以向外提供,税率为1-2%;并可上网查询或税务验证后付
款的方式与贵司合作!
联系人:陈小姐
电话 :13510678960
-
Requests and components are thread safe in Wicket. The pattern you are
looking for might be a thread local (maybe with a servlet filter or
custom request cycle). I don't know how expensive sessions are to
create, and whether a pool of them is maintained by a repository. You
might have to do some
That's our localization test of the email list ;)
Eelco
On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote:
:?
On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote:
您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供;
-
Using Tomcat but need
hon! da isu zu mit su bi shi kawa zaki dae wo! ya ta... ;)
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
That's our localization test of the email list ;)
Eelco
On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote:
:?
On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote:
您好!
I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can
Seems they think keeping a reference in the session is a good idea:
http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449.
That might work, though I don't know how well it scales. That depends
on the resources a session holds on to. If it does hold on to
resources directly, a pool
It is going to be a first version of the CMS, so we can change it later.I'll take a look at the article. Thanks2006/10/17, Eelco Hillenius
[EMAIL PROTECTED]:Seems they think keeping a reference in the session is a good idea:
http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449.That
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
The only requirement would be that the JCR Session to be
request-confined (so thread safe). I really think this is possible in
Wicket, but I am still waiting for your book to go out so that I can
give better answers to this :-).
Heh.
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
I'll ask around on the JackRabbit user and dev list, maybe that they have a
solution. But it is pretty expensive to create Sessions in JackRabbit. Your
performance is really shot to hell, when you are constantly creating
sessions. We used it
Exactly my point :-). And yes, JCR Sessions are not thread-safe so inmany cases (and as a best practice) you need to make sure it isthread-confined.
./alex--.w( the_mindstorm )p.I just asked that on the JackRabbit userlist, as you know, and i got a completely different answer
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Seems they think keeping a reference in the session is a good idea:
http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449.
That might work, though I don't know how well it scales. That depends
on the resources a session holds
You are right, i did you a transientrepository. So when i use a different one, the performance should be better?
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
Exactly my point :-). And yes, JCR Sessions are not thread-safe so in
many cases (and as a best practice) you need to make sure it is
thread-confined.
./alex
--
.w( the_mindstorm )p.
I just asked that on the JackRabbit userlist, as
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
You are right, i did you a transientrepository. So when i use a different
one, the performance should be better?
Maybe you should start trying things by your own, as long as it looks
you don't believe most of the answers you are getting on
You are right, I'm sorry. I misread the first answer i got from Tobias. But i do believe what is said on the mailinglist, but i'm still learningWicket and JackRabbit, so some answer may seem strange to me. That is why i ask so much.
2006/10/17, Alexandru Popescu [EMAIL PROTECTED]:
On 10/17/06,
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote:
You are right, I'm sorry. I misread the first answer i got from Tobias.
But i do believe what is said on the mailinglist, but i'm still learning
Wicket and JackRabbit, so some answer may seem strange to me.
That is why i ask so much.
And
You're absolutely right Eelco, we are starting with the Design, so you'll see it soon.Than it can be judged by you all, LOL
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly
OK, so narrowing down my thought process...
Attempting to play with the application or Session AuthorizationStrategy
doesn't seem to be a good idea because it I would need to somehow inject the
current page into the Authorization Process.
So, I am back to adding the AuthorizationStrategy to
Babel Fish says...
Hello! Because I take charge of the income to be more and many
enterprises and company's request: Provides each month remaining sum
bill to outside; The reciprocal benefit mutually benefits by Xie Guisi
the service operates ` to make up account ` to make the account the
urgent
Hello,
I wrote a custom validator for Dutch burger service numbers. However,
whatever I try, I can't seem to be able to write a JUnit test for the
onValidate method. An abstract of the code is included below.
I tried using EasyMock to mock the form component. However this is not
possible
and to add to the confusion, 1.x will first become 1.2.3 as soon as we
fix those damn bugs. 1.3 (or 1.2.4) will follow quickly.
Martijn
On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote:
Yeah, sorry, I meant 1.x.
-Matej
Pierre-Yves Saumont wrote:
Hi Matej,
I suppose 1.3 is current
why not do the cleanup in detach() ?-IgorOn 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote:
Well, it seems like a bug, the question is how to fix it?The problem is that rendered() should be called after component isrendered. But we do call it even after header is rendered, because weneed to do some
this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor.
-igprOn 10/17/06, Karl M.
Well, as far as I can see there's only detachModels in IBehavior. Is
this the place?
-Matej
Igor Vaynberg wrote:
why not do the cleanup in detach() ?
-Igor
On 10/17/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
wrote:
Well, it seems like a bug, the question is how
Do you plan on using Spring?If so, spring modules support JCR.https://springmodules.dev.java.net/docs/reference/0.6/html/jcr.html
The sub projects wicket-spring and wicket-spring-annot make injecting spring managed beans into your pages EXTREMELY easy. If you ever used spring to manage anything
im not sure why we have detachModel() as opposed to detach() maybe we should just add detach(), it seems logical to me-IgorOn 10/17/06, Matej Knopp
[EMAIL PROTECTED] wrote:Well, as far as I can see there's only detachModels in IBehavior. Is
this the place?-MatejIgor Vaynberg wrote: why not do the
I can see that the Gecko version used is 1.7.5 which AFAIR corresponds
to FireFox 1.0 which I don't think works with our AJAX at the moment.
Frank
On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote:
Strange. It seems that getResponseHeader throws an exception in netscape
if the requested header
2006/10/17, Pierre-Yves Saumont [EMAIL PROTECTED]:
Hi Ted,Unless you already found them, you might be interested by these articles:
http://www.onjava.com/pub/a/onjava/2006/10/04/what-is-java-content-repository.html?page=1http://www-128.ibm.com/developerworks/java/library/j-jcr/
Pierre-Yves
I
I don't know if ff 1.0 works, but Netscape 8.1.2 does, after I fixed it :)
Frank Bille wrote:
I can see that the Gecko version used is 1.7.5 which AFAIR corresponds
to FireFox 1.0 which I don't think works with our AJAX at the moment.
Frank
On 10/17/06, Matej Knopp [EMAIL PROTECTED]
Okay. For 2.0 we can have detach(Component component).. or maybe
componentDetached(Component component), and we can call the cleanup()
from there. I wouldn't mind.
But what to do for 1.2? One solution would be to call cleanup() from
AbstractBehavior.detachModel(), the only thing that bothers
Just of the top of my head I have two surgestions. One is to Do the
full association of the validator to a field which is then associated
with a form and then, using the FormTester, submit the form and check
the messages.
A more easy sollution is to, in your test, subclass your validator and
Hurray. then we can (perhaps) update the faq to also include Netscape 8.1.2.
Allen, if you're in the mood for it you are very welcome to try to
test the AJAX examples out (with latest 1.x branch) and if it works we
would appreciate if you update the FAQ :)
Frank
On 10/17/06, Matej Knopp [EMAIL
in 2.0 the validators are decoupled so it should be trivial to test them fwiw :)-IgorOn 10/17/06, Frank Bille
[EMAIL PROTECTED] wrote:Just of the top of my head I have two surgestions. One is to Do the
full association of the validator to a field which is then associatedwith a form and then,
I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call.I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and
I was looking at Gmail and I think my example is bad. I think I just said another stupid thing and gmail is actually changing all the page.Anyway, the question is the same, is there a way to make a feedback for all ajax call.
On 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote:
I have checked
yesyou need to write your own _javascript_ - wicket has hooks thereseeWicket.Ajax.registerPre/PostCallHandlerandWicket.Ajax.registerFailureHandlerin wicket-ajax.jsyou can use those to toggle visibility of some page-wide loading... indicator
-IgorOn 10/17/06, Marc-Andre Houle [EMAIL PROTECTED]
Thanks, it is what I was looking for. I'm not sure I am ready to dive directly into _javascript_ like that, but to know it is possible is interesting.Thanks a lot for the quick answer.Marc
On 10/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
yesyou need to write your own _javascript_ - wicket has
there is really nothing to itsomewhere in body havediv wicket:id=ajaxindicator style=display:none;LOADING.../divand before your body tag havescript
Wicket.Ajax.registerPreCallHandler(function() { document.getElementById(ajaxindicaotor).styles.display=;
Frank Bille wrote:
Just of the top of my head I have two surgestions. One is to Do the
full association of the validator to a field which is then associated
with a form and then, using the FormTester, submit the form and check
the messages.
That looks like a bit of overkill. But thanks for
Nice improvement.
Erik.
Igor Vaynberg wrote:
in 2.0 the validators are decoupled so it should be trivial to test
them fwiw :)
-Igor
--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/
-
Using Tomcat but
Perhaps we need to define the problem better...
A typical article has an author, date written, date last modified,
tags, content, summary, keywords, title, subtitle, etc.
Some people like to show everything on their blogs, so you get in a
Wicket template:
div wicket:id=article
h1
On 10/17/06, Erik van Oosten [EMAIL PROTECTED] wrote:
A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly.This is not possible as all the error methods are final.
Hmm are you sure of that?
Yes you are right. The error methods are final on FormComponent not in
AbstractValidator.
Thanks Frank,
Erik.
Frank Bille schreef:
On 10/17/06, *Erik van Oosten* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
A more easy sollution is to, in your test, subclass your
I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView simple template:ol !-- want to add a class=foo to this li! --
li wicket:id=itemtext goes here/li
/olcode:populateItem(Item item) { //how to add a
item.add(new SimpleAttributeModifier(class, foo));-IgorOn 10/17/06, Ryan Sonnek
[EMAIL PROTECTED] wrote:I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView
simple template:ol !-- want to add a
item.add(new SimpleAttributeModifier(class, foo)); ?
Eelco
On 10/17/06, Ryan Sonnek [EMAIL PROTECTED] wrote:
I'm using a listview to output an ordered list. I would like to add a class
to my li programatically. I don't see a way to do that using the ListView
simple template:
ol
!--
This is a very strange problem. In Firefox, the page display is more or
less normal. However, if I display the source, I see the Page Expired
source. Clicking on any of the links on the page takes me to the Page
Expired page.
Using Safari, I don't have this problem.
Has anyone seen this
What version of Firefox are you using?On 10/17/06, Michael Welter [EMAIL PROTECTED] wrote:
This is a very strange problem.In Firefox, the page display is more orless normal.However, if I display the source, I see the Page Expired
source.Clicking on any of the links on the page takes me to the
I found there are sevral things that I missed with Ajax links:
indicating that some activity is occuring, preventing the user to click
several times on the link, and warning the user if something is going
wrong (most often, the session has expired). So I extended AjaxLink :
public abstract
Wow, that was idiotic of me. I somehow got it stuck
in my head that the page I was linking to was bookmarkable-- it's
not.
Is there a way to have _javascript_ open a popup to a page
that is not bookmarkable? Looking through the Wicket source I don't see
anything quite as simple as
too bad you are blocking the entire window.wicket has ajax channels with different channel modes such as queue/disregard. that way you can disable certain groups of components only by assigning them to the same ajax channel.
-IgorOn 10/17/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
I found
if its not bookmarkable then you can just put that code into attribute modifier and attach it to the link. js poupup settings generates should work fine there.-IgorOn 10/17/06,
Karl M. Davis [EMAIL PROTECTED] wrote:
Wow, that was idiotic of me. I somehow got it stuck
in my head that the
erm, the problem is the url - if the page is not bookmarkable you cannot create a url to it without having a page instance. that would be bad cause you would be precreating the page instance so you have its url available in the page that calls it.
what is the usecase? does the link do something
Igor,
I'm trying to have a Label (not a link) that opens a popup
when double-clicked.
-- Karl
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
VaynbergSent: Tuesday, October 17, 2006 4:53 PMTo:
wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open
Popup
easiest thing to do is probably to reuse Link as it is.abstract class MyLabel extends Panel {MyLabel(String id, IModel model) { Link link=new Link(link) { onclick() { MyLabel.this.onclick(); }}
link.add(new SimpleAttributeModifier(ondblclick, this.onclick(););
Firefox v1.5.0.7
Nick Heudecker wrote:
What version of Firefox are you using?
On 10/17/06, *Michael Welter* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
This is a very strange problem. In Firefox, the page display is more or
less normal. However, if I display the source,
Hi everybody,
I have my .css file in web context directory i.e webapp/style/abc.css since
this .css is used by plain html and wicket , i can't place it in my wicket
webpages directory.
I want to access this .css file in my webpage. i know , we can access is
using HeaderContributor.forCss(Class
the best way is to build the path manually by doing /+contextpath+/style/abc.css you can get the contextpath from the httpservletrequest object ((WebRequest)getRequest()).getHttpServletRequest().getContextPath()
-IgorOn 10/17/06, wicketmarsh [EMAIL PROTECTED] wrote:
Hi everybody,I have my .css
Can you refresh the page ? Does it bring up the Page Expired again ?
Try it with ie. I guess that shouldn't have any problems as well.
On 10/18/06, Michael Welter [EMAIL PROTECTED] wrote:
This is a very strange problem. In Firefox, the page display is more or
less normal. However, if I
The drug-resistant strains, which are virtually untreatable, already
have killed people in the United States and Eastern Europe.
This agreement represents another positive step in preventing Michigan
children from becoming addicted to tobacco.
Cosgrove III, Governor Jon S. Currently, the site
Hi,
Can you pleaes tell me where i can find wicket andhibernate
integration example ?
Thank you.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated
we have wicket-phonebook in wicket-stuff project on sf.net in svn. it is wicket+spring+hibernate.if you want just wicket+hibernate google databinder-igor
On 10/17/06, ying lcs [EMAIL PROTECTED] wrote:
Hi,Can you pleaes tell me where i can find wicket andhibernateintegrationexample ?Thank
85 matches
Mail list logo