Can you please provide a test case?
Thanks.
-Matej
Erik van Oosten wrote:
Hi,
The release notes of 1.2.3 state that the Ajax header contributions
should be gone. Since the 1.2.3 release is still not in Ibiblio I just
upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked
Greetings!
I't a beginner's question I think, but I didn't find any answers on the
site.
So I use AjaxFallbackDefaultDataTable component from wicket-extensions,
it's a cool thing but I want to make little changes in markup - for
example to make values of some columns centered while others
thanks and in fact I just get confuse with the hierarchy of how should
I initalized the component. At first I try to add that component at
webpage level so it fail.Now it just solve after I press that
component to the border component and add it at the border level then
it work fine.
On 11/1/06,
How about this one?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) {variant =
p.getString(var);System.out.println(constructor called. The variant is now + variant);}public String getVariation() {
System.out.println(getVariation()
Thaks a lot,Igor!it works very nice ;)one thing: the way it works for metarget.addJavascript(window.opener.location=' + urlFor(opener.getPageMap(), MyPage.class
, null) + ');and I came upon a funny thing:it's not enough to just close the popup window by _javascript_:
A new question about wicket:message tag, can I specific some
standard postprocessing?
I like to do that because the message may or may be use in Javascript.
In some language there may be contain single quote that the original
message don't have, which, break the javascript string.
In order to
I haven't used AjaxDefaultDataTable though I have used other
Similar components.
Why not use css ids and attribute modifiers to set the ids
of the columns or rows you want.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Klochkov
Sent:
Hello,I decided to take Eelco's advice,and i added the Map.It works fine now,my only concern is with the number of users increasing the size of this Map.But I think its a small price to payfor this feature.
One thing though: I made a minor change to this idea: i actually added the session in the
Say I have something like this :
font color=red Red /font
span wicket:id=Label[Wicket Contents]/span
a wicket:id=wicketLink Click here /a
I want to chane this to:
font color=blue Blue /font
a wicket:id=wicketLink Click here /a
Hi Matej,
You can download a quickstart here:
https://omelet.zapto.org/ajaxtrouble.zip (3Mb).
Regards,
Erik.
Matej Knopp schreef:
Can you please provide a test case?
Thanks.
-Matej
Erik van Oosten wrote:
Hi,
The release notes of 1.2.3 state that the Ajax header contributions
font color=red Red /font
Shams Mahmood schreef:
Say I have something like this :
font color=red Red /font
span wicket:id=Label[Wicket Contents]/span
a wicket:id=wicketLink Click here /a
I want to chane this to:
font color=blue
Oops, too quick.
font wicket:id=colorcomp Red /font
Label l = new Label(colorcomp, Blue)
add(l);
l.add(new SimpleAttribyteModifier(color, blue));
Erik.
Shams Mahmood schreef:
Say I have something like this :
font color=red Red /font
span
Well I guess the main challenge lies here :
span wicket:id=Label[Wicket Contents]/span
a wicket:id=wicketLink Click here /a
I want to change this to:
a wicket:id=wicketLink Click here /a
span wicket:id=wicketVariable[Wicket Contents]/span
This is because the commomInit() method that is called in the constructor of WebPagealready also gets the markup to test for the body tag .But the strange thing is that this markup is not kept on to. So when rendered it should ask it again
and then the variation is encountered. I dont know why
Ah, I see.
I think you'll have to create a panel (or a fragment) for each variation
and then add the appropriate panel (fragment).
Does that make sense?
Erik.
Shams Mahmood schreef:
Well I guess the main challenge lies here :
span wicket:id=Label[Wicket Contents]/span
I actually wanted to change the html source dynamically
Rather than writing different panel which would limit all my variations
:)
Shams
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik van
Oosten
Sent: Thursday, November 02, 2006 4:24 PM
To:
Hmm. I remember that more people asked for generated templates. Don't
remember an answer though.
Perhaps you can investigate the class
WebMarkupContainerWithAssociatedMarkup or its super classes to see how
Wicket loads the templates.
Good luck,
Erik.
Shams Mahmood schreef:
I actually
Thanx
I check it out and post here if I get any ideas.
Shams
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik van
Oosten
Sent: Thursday, November 02, 2006 4:43 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
what you also can do is make your own wicket session object and implement:HttpSessionBindingListenerthen you will get public void valueUnbound(HttpSessionBindingEvent event); callon your instance of your session. Then you can get the username of the wicket session.
and then deregister that when
Could you be more specific as to what you want to customize?
Martijn
On 11/1/06, Scott Sauyet [EMAIL PROTECTED] wrote:
Is there a simple example around of how PagingNavigation can be customized?
I can't figure out what I'm doing wrong. I *think* I'm following the
example in the Javadocs,
The question is how flexible you want to be. If the Components such as
Label, Link etc stay the same and only the html markup changes, than
you might use Component.setVariation(). It is similar to Locale and
Style but it is a per component setting. The markup file name than
become
Is there a simple example around of how PagingNavigation can be
customized?
Could you be more specific as to what you want to customize?
The PagingNavigation Javadocs say that I can give my own navigation
markup and code by overwriting poplulateItem(ListItem). It seems that
my own
The ultimate breakout is custom markup reloading, of which we have an
example in wicket-examples/wicket.examples.customresourceloading. Use
is only recommended in 2.0, though you should consider just sticking
with panels as that is how Wicket was set up.
Eelco
On 11/2/06, Juergen Donnerstag
Yeah, that's a good one. Only works with stores that at least put the
session object in the httpsession, but that's the default anyway.
Eelco
On 11/2/06, Johan Compagner [EMAIL PROTECTED] wrote:
what you also can do is make your own wicket session object and implement:
yeah, if you take a look at PopupCloseLink it does exactly that, and remove the page from the pagemap for you. so you might want to subclass that instead.-igorOn 11/2/06,
Alex Parvulescu [EMAIL PROTECTED] wrote:
Thaks a lot,Igor!it works very nice ;)one thing: the way it works for
you need to create your own tagsee WicketMessageResolver-igorOn 11/2/06, Carfield Yim [EMAIL PROTECTED]
wrote:A new question about wicket:message tag, can I specific some
standard postprocessing?I like to do that because the message may or may be use in _javascript_.In some language there may be
Yuck. As a dirty workaround you could create a custom request cycle
that overrides
onBeginRequest() {
style = getRequest().getParameter(style);
}
and then:
getVariation() {
return MyRequestCycle.get().getStyle();
}
Haven't tested it, but that should work.
Eelco
On 11/2/06, Johan
I have a tabbed panel that extends to two lines, the upper row of tabs
and the lower row.
When a tab from the upper row is selected, all the tabs in the lower row
shift to the right of the selected tab in the upper row.
Is this the desired behavior? Shouldn't the tabs just stay in place
when
On 11/2/06, Michael Welter [EMAIL PROTECTED] wrote:
I have a tabbed panel that extends to two lines, the upper row of tabsand the lower row.When a tab from the upper row is selected, all the tabs in the lower rowshift to the right of the selected tab in the upper row.
Is this the desired
I all, I got a pretty simple question. I got an attribute in the HttpServletRequest that is accessed this way : RequestCycle rc = getPage().getRequestCycle ();WebRequest req = (WebRequest)rc.getRequest ();
Object o = req.getHttpServletRequest ().getAttribute (attribute);The documentation of
no, getattribute on session retrieves session attributes not request attributes, i guess you are stuck doing it how you are doing now-igorOn 11/2/06,
Marc-Andre Houle [EMAIL PROTECTED] wrote:
I all, I got a pretty simple question. I got an attribute in the HttpServletRequest that is accessed this
thanks!On 11/2/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
no, getattribute on session retrieves session attributes not request attributes, i guess you are stuck doing it how you are doing now-igor
On 11/2/06,
Marc-Andre Houle [EMAIL PROTECTED] wrote:
I all, I got a pretty simple question. I got
Igor Vaynberg wrote:
On 11/2/06, *Michael Welter* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
it is all css, so you might have to tweak that to the desired effect.
On another note, is the sliding doors method of displaying tabs
going
to be implemented in Wicket?
On 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote:
doesnt tabbedpanel already use that?You answered yourself here: it is all css :)If you want to use sliding doors, it is your own responsibility toprovide the right css.not entirely, sliding doors does require an ul list and certain divs as far
Yep, that is correct.
Luckily that is all in place so you could say that TabbedPanel is
Sliding-Doors-ready.
I only reacted to the phrase 'TabbedPanel uses sliding doors' which is
IMHO not correct.
Erik.
Igor Vaynberg schreef:
On 11/2/06, *Erik van Oosten* [EMAIL PROTECTED]
semantics semantics :)-igorOn 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote:
Yep, that is correct.Luckily that is all in place so you could say that TabbedPanel is
Sliding-Doors-ready.I only reacted to the phrase 'TabbedPanel uses sliding doors' which isIMHO not correct. Erik.Igor Vaynberg
I think we can all make strong cases for situations in which detaching the ID
makes sense, and depending on the needs of the app, also situations where just
serializing the POJO makes sense. Shades will work with either case.
What I would like, is the freedom to offer the deployer of the
feel free to refactor, but i would do that in a different branch. the purpose of the phonebook is to demonstrate wicket+spring+database integration with as little overhead as possible.-igor
On 11/2/06, Geoff hendrey [EMAIL PROTECTED] wrote:
I think we can all make strong cases for situations in
i don't like this to much.if you don't want detaching then use another model.. (and not a DetachableModel that doesn't detach)johanOn 11/2/06,
Geoff hendrey [EMAIL PROTECTED] wrote:
I think we can all make strong cases for situations in which detaching the ID makes sense, and depending on the
This looks exactly like the problem I was having (the cause of which is, I believe WICKET-7).Check out this thread:
if its a model specific to the phonebook who cares?-igorOn 11/2/06, Johan Compagner [EMAIL PROTECTED]
wrote:i don't like this to much.if you don't want detaching then use another model.. (and not a DetachableModel that doesn't detach)
johanOn 11/2/06,
Geoff hendrey [EMAIL PROTECTED] wrote:
If I have a BasePage class that has a Component that wraps the page and the wicket:child/ tag, is there a method I can implement that will bind any inherited pages to this object instead of the page object? Below demonstrates my problem in the extended pages.
BasePage { ... WebMarkupContainer body
WebMarkupContainer body = new WebMarkupContainer(...) { boolean isTransparentResolver() { return true; }}-igorOn 11/2/06, Jonathan Sharp
[EMAIL PROTECTED] wrote:If I have a BasePage class that has a Component that wraps the page and the wicket:child/ tag, is there a method I can implement that
Thanks for the testcase. Can you please check if the current svn (1.x)
solves your problem? (It solved the testcase).
-Matej
Erik van Oosten wrote:
Hi Matej,
You can download a quickstart here:
https://omelet.zapto.org/ajaxtrouble.zip (3Mb).
Regards,
Erik.
Matej Knopp
oh, and don't forget to evict the javascript from browser cache ;-)
Matej Knopp wrote:
Thanks for the testcase. Can you please check if the current svn (1.x)
solves your problem? (It solved the testcase).
-Matej
Erik van Oosten wrote:
Hi Matej,
You can download a quickstart here:
Is that problem still present? Could you please check current svn too?
-Matej
Caleb Land wrote:
This looks exactly like the problem I was having (the cause of which is,
I believe WICKET-7).
Check out this thread:
What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget) that the getJsTimeoutCall is appended to the target, but
best thing would be to make timer behaviors initialize the timeout by inlining the script after the component reather then in a boay onload attr.create an issue in jira, and a patch is welcome of course, look at ibehavior.rendered
()-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote:
What's
On 11/2/06, Matej Knopp [EMAIL PROTECTED] wrote:
Is that problem still present? Could you please check current svn too?It appears to work on my end with Wicket 2. Thanks!
-MatejCaleb Land wrote: This looks exactly like the problem I was having (the cause of which is, I believe WICKET-7). Check out
Would it work like this:* in onRendered, check if the RequestTarget is an AjaxRequestTarget, and appendJavascript* remove appendJavascript from respondthanks,jimOn 11/2/06,
Igor Vaynberg [EMAIL PROTECTED] wrote:
best thing would be to make timer behaviors initialize the timeout by inlining the
i think it would basically be thismove what is currently in onRenderHeadContribution() to rendered()instead of attaching the script to the onloadmodifier output it straight into the response between script tags
-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote:
Would it work like this:* in
sweet. works great on my side. I'll write up a couple of tests and submit a patch.thanks,jimOn 11/2/06, Igor Vaynberg
[EMAIL PROTECTED] wrote:i think it would basically be thismove what is currently in onRenderHeadContribution() to rendered()
instead of attaching the script to the onloadmodifier
Hi Everybody,
I am currently evaluating several view frameworks for a large
enterprise application that is yet to be built. One of the primary
concerns of this application is response time. I have heard success
stories about Tapestry being deployed successfully in a similar
environment but have
I am receiving n key/value objects in a List provided by my
AttributeDataProvider. n can vary from one Form to the next.
Without having to allocate a td for every possible key, I would like
to put the key/value pairs up on a form in order for the user to be able
to modify zero or more values.
thanks!-igorOn 11/2/06, James McLaughlin [EMAIL PROTECTED] wrote:
sweet. works great on my side. I'll write up a couple of tests and submit a patch.thanks,jimOn 11/2/06,
Igor Vaynberg
[EMAIL PROTECTED] wrote:i think it would basically be thismove what is currently in onRenderHeadContribution()
You can just encapsulate your key/value stuff in a Panel, then add n number of Panels to the form, depending on what the user requires. On 11/2/06,
Michael Welter [EMAIL PROTECTED] wrote:
I am receiving n key/value objects in a List provided by myAttributeDataProvider.n can vary from one Form to
I have a few questions:
1) Does anyone know of Wicket being used on a high traffic website?
I know of people building them, but the ones I know are not yet in
full production. But maybe someone else on this list knows.
2) What are some of the challenges related to scaling a Wicket
DataView does work in a Form, and so ListView (if you call
setReuseItems(false)).
Eelco
On 11/2/06, Michael Welter [EMAIL PROTECTED] wrote:
I am receiving n key/value objects in a List provided by my
AttributeDataProvider. n can vary from one Form to the next.
Without having to allocate a
with dataview its slightly more workyou have to call dataview.setItemReuseStrategy(ReuseIfModelsEqualStrategy.instance())and override equals/hashcode of the model that the dataprovider returns so the strategy will work correctly
-igorOn 11/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
DataView
Thanks Eelco, this workaround works... but onBeginRequest() {getRequest().getParameter(style);
}doesn't work if the page is mounted. Unfortunately, every page of my webapp is mounted so that I can take advantage of the nice urls. Is there any more workaround to make getVariation() return a value
getRequest().getRequestParameters().getParameter(style) -igorOn 11/2/06, Otan [EMAIL PROTECTED]
wrote:Thanks Eelco, this workaround works... but
onBeginRequest() {getRequest().getParameter(style);
}doesn't work if the page is mounted. Unfortunately, every page of my webapp is mounted so that I
I Just finished a book about wicket.
But it's a pity that it is written in chinese.
Maybe most of the users in the mail list can't read.
But i still hope it can help the wicket users in china.
You can read this book on the following url.
http://gocom.primeton.com/
The pdf version is also
there is no getParameter(string) method in wicket.request.RequestParametersBy the way, since I cannot rely on getVariation() to return the result of the per request condition (because I'm now forced to use some data persisted in session to make it work), I realized that I should use
Hi,The issue is that remote debugging with Jetty and Maven from Eclipse doesn't work right any more if the default editor is Wicket Editor. While debugging the line of code that is executed by a thread is not shown in the editor window anymore. Only the linenumber of the thread is mentioned in
I used the 1.x branch from svn at October 1, around 14:00 CET.
Do you want me to check today's svn?
Erik.
Matej Knopp schreef:
Is that problem still present? Could you please check current svn too?
-Matej
--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
On Fri, 2006-11-03 at 08:20 +0100, Rik van der Kleij wrote:
Hi,
The issue is that remote debugging with Jetty and Maven from Eclipse
doesn't work right any more if the default editor is Wicket Editor.
While debugging the line of code that is executed by a thread is not
shown in the
I just did an update and I see that relevant files have been changed.
I'll try immediately.
Thanks,
Erik.
Erik van Oosten schreef:
I used the 1.x branch from svn at October 1, around 14:00 CET.
Do you want me to check today's svn?
Erik.
Matej Knopp schreef:
Is that problem
Hi all!
I am looking for a pattern, strategy or code example how to avoid creation of
new page Instances when a user reloads a page. Can someone give my a hint how
to achieve following behaviour:
- static pages which have only a single instance during whole application
lifecycle ?
- some kind
On 11/2/06, Otan [EMAIL PROTECTED] wrote:
there is no getParameter(string) method in wicket.request.RequestParametersyou know, you could spend a little bit of the time and explore the api. there is no getParameter(String), but there is a Map getParameters()
By the way, since I cannot rely on
Hi All,
I have a usecase but I dont know which would be the best approach to achieve
it. It goes like this:
1. I have Address which is common in most of the pages.
2. I want to use the Address in Company
3. I want to use the Company with Address in MyCompany.
I am not sure how to achieve it.
i create editor classes for editing compound beans. editor classes are just panels with field components added to them. that way i can drop the panel into any form and have it work.-igor
On 11/2/06, sunraider [EMAIL PROTECTED] wrote:
Hi All,I have a usecase but I dont know which would be the best
71 matches
Mail list logo