With IComponentResolver you can easily roll your own 'CoC' solution.
Sven
Ricardo Mayerhofer schrieb:
I started to use wicket some time ago, and I'm really enjoying it. Best
framework ever.
But I've some suggestions.
I think wicket could be better if it had less boiler plate code. This could
Why don't you just replace the current panel depending on a selection in
your select field, see:
MarkupContainer#addOrReplace(Component)
Much easier than tinkering with the internals of Wicket's rendering.
Sven
Александър Шопов schrieb:
Hi guys,
I was wondering of a good strategy of making
Done:
https://issues.apache.org/jira/browse/WICKET-1982
Igor Vaynberg schrieb:
yes, i think we can. i am not really sure why it works the way it does
right now. please create a jira issue. and, btw, this can only be
fixed in 1.4.
-igor
On Tue, Dec 16, 2008 at 12:15 AM, s...@meiers.net
Use absolute CSS positioning to let your panel float over the GMap2
component.||
|
|Sven
NHSoft.YHW schrieb:
my requirement desc:
1.add a float panel component at top left corner of the GMAP2, when the map
zoom in or zoom out, the panel alway show at top left corner.
2.adjust panel
But the model's value is accessed by many other methods, not just
isVisible().
If you want to save the reflection overhead why don't you put a caching
model between your component and the CompoundPropertyModel?
Or access the model of the containing component if this is applicable:
public void
Why not keep the fixed settings in a style class and just update the
style attribute with the current value (utilizing an AttributeModifier)?
.Needle {
z-index: 1;
width: 2px;
...
}
span wicket:id=needle class=Needle style=left: 20%;/
Seven Corners schrieb:
I have a control with a needle
Well, in Wicket the markup doesn't do much (which is a good thing)
besides layout. If you're correctly using CSS, the markup isn't even
responsible for the look (and feel).
I don't know if this qualifies it as a 'V' in MVC.
Sven
James Carman schrieb:
On Tue, Jul 1, 2008 at 1:56 PM, Eelco
Wouldn't it be better to leave the generic part to this reusable link
then? Why 'pollute' all links with a generic parameter?
Back to your definition:
(1) only components that use their model have a generic type
(components you are likely to call getmodel/getmodelobject on as a
user).
What
Just because you're using a CompoundPropertyModel on your Forms doesn't
mean you need it generified.
Sven
Roland Huss schrieb:
igor.vaynberg wrote:
On Tue, Jul 1, 2008 at 11:28 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
thats my point. you work on fields of one object, true, but it
Another thought:
Why do we have a setter for the model actually?
I never call setDefaultModel() (formerly setModel()) in my code. In
wicket-examples it seems that most calls to setDefaultModel() are done
from inside the constructor (where it is sometimes needed because you
cannot call
You can do without the ChoiceRenderer if you put your terms in a
property file next to your panel/page:
A.java
new DropDownChoice(period, ...) {
protected boolean localizeDisplayValues() {
return true;
}
}
A.html
select
Almost 4 years of using Wicket, being productive, having fun and
learning every day - and just now I ordered my copy of Wicket in Action*.
Many thanks to all core developers
Sven
*the 'living-tree' edition ;)
Martijn Dashorst schrieb:
Almost 3 years of hard work, loosing friends, moving
Hi all,
I've adjusted the offending line to the latest generics changes in
wicket core.
wicketstuff-prototype is now building fine too.
Sven
francisco treacy schrieb:
somehow it doesn't find prototype which is a dependency. you can
install it manually.
svn co
For encoding the following is relevant in Wicket:
- ?xml version=1.0 encoding=UTF-8?
The explicit encoding of your markup files.
- IMarkupSettings#defaultMarkupEncoding
The default encoding to be used by Wicket to read your markup files
(if not explicitely specified), default null.
-
You can use a single Wicket page using the static html of your CMS as
its markup.
Sprinkle your templates or content (depending who's in charge) with
wicket ids:
div wicket:id=shoppingCart/div
With custom component resolving you can then inject the dynamic parts,
i.e. Wicket panels mainly.
would be able to use the markup from
seerat static pages as template for a single wicket page.
Thanks again,
-markus
Zitat von Sven Meier [EMAIL PROTECTED]:
You can use a single Wicket page using the static html of your CMS as
its markup.
Sprinkle your templates or content (depending who's
Regretfully there's no direct API call in GMap2 supporting your case.
Here's a description how to do it with Javascript only:
http://econym.googlepages.com/basic14.htm
We could make up a function that hides the details:
GMap2#fitMarkers(ListMarker)
Martin, what do you think?
Sven
Doug
Hi Uwe,
this is exactly the reason why we have wicketstuff-prototype:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-prototype
IMHO we could use something similar for mootools.
Sven
Uwe Schäfer schrieb:
hi
forgive me, if this topic is a dead horse already, but it
Hi,
you're probably doing something like the following:
add(new Label(foo, ldm.getObject().getFoo()));
Never do that, instead use:
add(new Label(foo, new PropertyModel(ldm, foo)));
... or ...
add(new Label(foo, new AbstractReadonlyModel() {
public Object getObject() {
return
component.add(new HeaderContributor(new IHeaderContributor()
{
private static final long serialVersionUID = 1L;
public void renderHead(IHeaderResponse response)
{
response.renderCSSReference(getCurrentResource());
}
like to do is to have only one CSS at a given moment in the page.
Any ideas?
Regards,
Zala
On Sun, Sep 13, 2009 at 4:59 PM, Sven Meier s...@meiers.net wrote:
component.add(new HeaderContributor(new IHeaderContributor()
{
private static final long serialVersionUID = 1L
Hi Eric,
if Wicket's Swing tree model usage gives you a headache ...
advertisement
... you should definitely take a look at
http://code.google.com/p/wicket-tree .
/advertisement
Regards
Sven
Eric Bouer wrote:
Hello.
Preface: Wicket Tree is very confusing since it's some kind of hybrid
Short answer:
You have to enclose your modal window in a form component, see modal
window javadoc.
Long answer:
The modal window javascript generates an additional form when opening.
When your panel is re-rendered, Firefox drops your form from the markup
because in HTML it's not allowed to
Hmm what exactly does that mean?
form wicket:id=form
div wicket:id=window/div
/form
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
This wicket-tree seems really nice. Well done!
Thanks - Wicket makes it really easy to build reusable components.
Why isn't it in wicketstuff? It may even replace the headache swing
wicket-extension one (in 1.5?)...
Well, Sourceforge isn't the only place for projects.
IMHO some Wicket
Hi all,
I'm happy to announce wicket-dnd, a generic drag and drop framework for Wicket.
The API has not been fully stabilized yet but you are invited to take a first
look:
http://code.google.com/p/wicket-dnd/
Have fun
Sven
ralf.eichin...@pixotec.de:
Sven Meier wrote:
I'm happy to announce wicket-dnd, a generic drag and drop framework for
Wicket.
http://code.google.com/p/wicket-dnd/
I added it to the Wicket Wiki:
http://cwiki.apache.org/confluence/display/WICKET/Related+Projects
Hi John,
I believe the consensus on this list is that you should change your
approach:
Why don't you just iterate over your domain objects in the first place?
They will be loaded anyway to be displayed on your component. So your
approach triggers 1+n selects instead of 1 select for all
Hi Jonny,
yes, it works exactly like you described it.
Sven
jwray wrote:
Hi Sven,
Thanks for your reply. Since I sent the original question I ended up doing
what you suggested and now I'm wondering why I ever used the id projection
approach. Habit I guess, formed with previous frameworks.
Hi,
with wicket-tree you can of course use multiple trees on a single page.
moving tree nodes around from one tree to another tree.
How to you want to move the nodes? You could use selectable nodes which
are moved on a button click. Or you add wicket-dnd to the mix and use
dragdrop gestures.
Hi Nicolas,
you can just use a WebMarkupContainer and recreate its children on each
request in #onBeforeRender().
But the question is: why do you need to refresh your components at all?
It seems you don't use models correctly.
Show us some code.
Sven
Nicolas Melendez wrote:
Hi, i want to
list (I could use another repeater that will loop
only once, but I was hoping there's a nicer way).
Thanks again,
NM
On Thu, Oct 8, 2009 at 7:50 PM, Sven Meier s...@meiers.net wrote:
Hi Nicolas,
you can just use a WebMarkupContainer and recreate its children on each
request in #onBeforeRender
Hi Doug,
you're adding a second drop target to your currentContainer:
currentContainer.add(new DropTarget(Operation.COPY) {
...
}.dropBottom(div));
But there aren't any DIVs contained inside your currentContainer, so
wicket-dnd isn't able to find a drop location.
If you just want
Well, wicket-dnd combines Wicket's standard AJAX support, prototype's
Javascript enhancements and a few custom functions to move HTML elements
around.
I'm glad you like it.
Sven
Pierre Goupil wrote:
It looks great, men! Which AJAX framework do you use?
Regards,
Pierre
On Tue, Oct 13,
I've added an alternative solution with a behavior.
Thanks for the original idea.
Sven
Giambalvo, Christian wrote:
Updated
http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
Mit freundlichen Grüßen
Christian Giambalvo
--
Fachinformatiker für
on the fly.
Regards
Sven
Ernesto Reinaldo Barreiro wrote:
Can you share your solution with the rest of us? I can imagine using a
behavior for adding the resource listener part... but it will be nice to see
what you are doing.
Best,
Ernesto
On Wed, Oct 21, 2009 at 9:12 PM, Sven Meier s
on the solution I proposed. That part was
introduced later on.
Best,
Ernesto
On Thu, Oct 22, 2009 at 6:58 PM, Sven Meier s...@meiers.net wrote:
I added my description to the well-known Wiki page:
http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
IMHO
Hi all,
IMHO Vladimir has made a reasonable suggestion.
I think he meant wasting CPU cycles for constructing your components
which will be added to no-op ajaxrequesttarget
I don't think he meant a *complete* no-op request target, just the
method addComponent() would be a no-op. The fake
Hi James,
but Wicket's implementation seems to only evaluate the condition at step
creation and not when I'm changing the state of my radios.
see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I can
see these method should support your usecase. Implementing ICondition as
you
.
J.D.
-Original Message-
From: Sven Meier [mailto:s...@meiers.net]
Sent: Saturday, October 24, 2009 8:32 AM
To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)
Hi James,
but Wicket's implementation seems to only evaluate the condition at
step
creation
Nothing broken on this side of the fence:
onclick(target) {
deleteRow();
if (target==null) {
// don't bother
} else {
target.addComponent(table);
}
}
Sven
Igor Vaynberg wrote:
On Sat, Oct 24, 2009 at 7:18 AM, Sven Meier s...@meiers.net wrote:
I don't think he meant
?
Also, our code base is currently on 1.4.1, I noticed 1.4.3 (stable?) is
released but the main Apache Wicket Page hasn't been updated?
What are your thoughts on upgrading directly to 1.4.3, or should we
stick with a 1.4.2 upgrade?
J.D.
-Original Message-
From: Sven Meier [mailto:s
it is not difficult
to derive from them some project-local components and wrap event handling in
a manner I proposed to guard from NPE. But intention was to improve the
Wicket API not only for that particular case.
igor.vaynberg wrote:
On Sat, Oct 24, 2009 at 7:18 AM, Sven Meier s...@meiers.net wrote
after completing step 1.
J
-Original Message-
From: Sven Meier [mailto:s...@meiers.net]
Sent: Saturday, October 24, 2009 11:35 AM
To: users@wicket.apache.org
Subject: Re: Wicket Wizard Functionality (Extensions)
Hi James,
regretfully the standard Wicket dialog doesn't support non-AJAX
Hi Alex,
I'm not sure I understand your question:
wicket-tree is an alternative to the tree classes in wicket-core and
wicket-extensions.
DefaultNestedTree gives you almost the same functionality as LabelTree.
Regards
Sven
nestrmu wrote:
Hi, Sven
I'm trying to use you wonderfull
Hi,
at a short glance (http://www.webaim.org/standards/508/checklist) I
didn't find anything inherent in Wicket violating this standard.
Of course you will have to provide most of the required markup by
yourself (how should Wicket know values for alt attributes?).
Nevertheless if you're able
Hi Steffen,
use an IConverter on your textfield.
Sven
Steffen Dienst wrote:
Hi,
I need a model to represent a list of integers. I'd like to represent
this list as a comma separated string in a text field. Is there any
model I can use as a foundation? Where can I learn about implementing
Hi Xavier,
I suppose this error comes from having a ModelObject of type
String and also having a ChoiceRenderer refering to 'id' property
your choice is working on SimpleElementDTOs while your Person class has a
String property - this cannot work.
Ideally you would just set a Department
Hi Pedro,
with your condition inside the renderer you've beaten me by originality ;).
But I doubt that the choice will be able to store the selected DTO in
the entity's String property.
Sven
Pedro Santos wrote:
Hi Sven, he stell can write some specialized render... but I think the best
way
Right?
Wrong, see explanation below.
Sven
mbrictson wrote:
Actually wicket-ajax.js is smart enough to fire these dom ready events
after an ajax request.
Of course, a jQuery $(document).ready() will not fire; neither will the
ready events of other various JS libraries. However if you
I'm afraid forcing the reader to enter credentials isn't going to
increase your comment count.
Nevertheless here are some suggestions:
A)
Use PropertyListView and you won't have to twiddle with the item's model.
B)
IMHO passing the container into EditableQuestionPanel isn't a good idea
- why
Hi,
if you're using a Link, the browser won't send the edited values back to
your application.
Use a SubmitLink instead.
Sven
ayman elwany wrote:
Hi All ,
I'm new to Apache Wicket , I started working with it from 2 weeks and I'm
really enjoying it .but I have a little problem that I don't
AjaxEditableMultiLineLabel doesn't use its converter for the wrapped editor as
AjaxEditableLabel does - see #newEditor().
You should create a RFE in JIRA.
Sven
Alec Swan wrote:
I am using to allow the user to enter a Velocity
template in the editor and then preview the bound template
Hi,
feedback messages are tied to components they are reported for (the link
in your case).
Since this component isn't located on your response page, the message
will not be rendered.
Use Session#info() instead.
Regards
Sven
uud ashr wrote:
Hi all,
Why does wicket panel don't work if I
Should be the same.
Sven
Pieter Degraeuwe wrote:
I was thinking this as well, but the message should in that case also NOT
appear when you do setResponsePage(new MyAnotherPage()), no ?
On Mon, Dec 28, 2009 at 9:39 AM, Sven Meier s...@meiers.net wrote:
Hi,
feedback messages are tied
Take a look on wicket-phonebook - it features a checkbox column for
selection of rows.
Sven
HB wrote:
I think you got me wrong.
There is a check box at the end of each row of AjaxFallbackDefaultDataTable.
Upon click a button, I want to iterate over the checkboxes and collects
the objects
Hi Jeffrey,
new CompoundPropertyModel(model.getObject().getEstimate())
this doesn't look good, does the estimate object change its values or is it
replaced by another object after an AJAX request?
Sven
Jeffrey Schneller wrote:
I am trying to figure out why a panel in a step of my wizard
-
From: Sven Meier [mailto:s...@meiers.net]
Sent: Tuesday, January 19, 2010 3:11 PM
To: users@wicket.apache.org
Subject: Re: Panel and Model inside of a wizard
Hi Jeffrey,
new CompoundPropertyModel(model.getObject().getEstimate())
this doesn't look good, does the estimate object
FormComponent#setLabel() ?
Sven
Whats'Up wrote:
Sorry, I think I wrote not enough, to tell you the problem.
With the code test.emailInput.Required=The Email address is required: I have
to write for every field the same code, but the wicket code is ok, and I
thought it is perhaps possible only
target.addComponent(addLink) ??
BTW you could override isVisible() and getOutputMarkupPlaceholderTag() instead
of the attribute modifier.
Sven
Anna Simbirtsev wrote:
Hi,
I am trying to use SimpleAttributeModifier to make an ADD MORE link
invisible once the maximum number of text fields that
Hi,
you'll have to tell the request target which components to redraw:
Put your list inside a markupcontainer and use addComponent().
Sven
zdmytriv wrote:
Could anyone tell me why it doesn't work? Thanks
InteractivePanelPage.html
table
tr
td # Add Panel /td
/tr
tr
You should add the listView right away and keep it invisible until a
search result is available.
Sven
On Mi, 2009-05-06 at 10:07 -0500, Vasu Srinivasan wrote:
Im a wicket newbie ..
I have a Search Page with some search criteria inputs and below it, the list
of data based on search.
The
Hi all,
i would like to announce wicket-tree, a new project hosting a clean
slate development of tree components for Wicket.
The API has not been fully stabilized yet but you are invited to take a
first look:
http://code.google.com/p/wicket-tree/
Have fun
Sven
live examples, would be nice?
**
Martin
2009/7/25 Sven Meier s...@meiers.net:
Hi all,
i would like to announce wicket-tree, a new project hosting a clean
slate development of tree components for Wicket.
The API has not been fully stabilized yet but you are invited to take a
first
Hi Peter,
// at the chekcedfoldercontent (nested tree) example if I check the
parent, then the kids won't be checked in, is this for purpose?
no purpose here, it's just an example and has nothing to do with the
tree code.
Is there any chance, that a tree would come, which nodes are links
, Major Péter majorpe...@sch.bme.hu wrote:
Cool, that was exactly, what I was looking for.
Thanks.
Peter
2009-07-26 00:06 keltezéssel, Sven Meier írta:
Hi Peter, // at the chekcedfoldercontent (nested tree) example if I
check the parent, t
to use in other projects?
On Jul 25, 2009 6:18 PM, Major Péter majorpe...@sch.bme.hu wrote:
Cool, that was exactly, what I was looking for.
Thanks.
Peter
2009-07-26 00:06 keltezéssel, Sven Meier írta:
Hi Peter, // at the chekcedfoldercontent (nested tree) example
if I
PM, Major Péter majorpe...@sch.bme.hu wrote:
Cool, that was exactly, what I was looking for.
Thanks.
Peter
2009-07-26 00:06 keltezéssel, Sven Meier írta:
Hi Peter, // at the chekcedfoldercontent (nested tree) example
if I
check the parent, t
ITreeProvider and IDataProvider are not exactly compatible, I don't
think we gain anything by extending the former from the latter.
I don't insist. But you do have IDataProvider wrapper over ITreeProvider in
TableTree.java :)
Yes, indeed ;).
I din't find API to control expanded state of
Hi,
*Nested*Tree... *Table*Tree... I hope this makes sense ;).
I will align the markup for TableTree with the markup of DataTable,
thanks for the hint.
Sven
On So, 2009-07-26 at 16:29 -0700, Vladimir K wrote:
Sven,
i added TableTree (why not TreeTable?) to my panel and added a button to
Shouldn't that be:
sidebar.header.header = Sidebar Header!
??
Sven
On Di, 2009-08-04 at 16:53 +0200, Robin Sander wrote:
sidebar.header = Sidebar Header!
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For
Sure, see LinkTree and #setLinkType().
Sven
*
*fachhoch wrote:
I mean links to show popups, like modal window , or file download etc ?
fachhoch wrote:
is it possible to put Ajaxlinks in tree nodes ?
-
To
This code from the example is just building the tree model - no place
for Wicket components yet.
Creating an AjaxLink comes later, when the tree nodes are represented by
Wicket components - see AbstractTree#newLinkComponent().
Sven
fachhoch wrote:
here the code from wicket examples
Hi Matthew,
use a Check instead of a Checkbox.
Sven
Matthew Arck wrote:
Hey all,
Go easy on me here as I'm not only brand new to wicket but this is also
my first email to this user group!
I've inherited a project from a co-worker who has left the company and a
request has been put
Do you allow moving of markers or use other Ajax notifications?
Once the map is set up in there should be no performance difference
between wicket-gmap2 and using gmap2 directly on a web page.
Sven
Gatos wrote:
Hello,
I have noticed that in opera gmap2 is more slow that in FF. I have
Hi David,
DropDownChoice#wantOnSelectionChangedNotifications() will trigger
rendering of the complete page.
On Ajax request only those components are rendered you explicitely 'add'
to the request, see AjaxRequestTarget#addComponent().
If you want to have the same for Ajax requests, you can
is triggered by selecting a value in Country
DDC, the State DDC list is NOT updated when the Locale DDC value is changed.
I have a feel that Wicket has a problem here. I am using Wicket 1.4.7.
Regards.
-David
--- On Sun, 3/21/10, Sven Meier s...@meiers.net wrote:
From: Sven Meier s
Hi Michael,
there's no requirement for components inside ListView to be stateless -
I wonder were you got that from.
You can have Links, Buttons or anything else in there so removing all on
detach is a recipe for disaster for the next incoming request.
Sven
Michael Gottschalk wrote:
Hi,
I
Hi Michael,
the only difference in my proposal is to call removeAll earlier:
not in onBeforeRender of the next request cycle, but in onDetach of
the current request cycle.
it makes a huge difference:
If you call removeAll in onDetach, the next request to a component
inside the ListView will
Hi,
ListMultipleChoice puts all selected parties into the model object
you're returning in #getObject().
Either you should return a copy of your collection in #getObject() or
just do nothing in #setObject(). Your current call to #clear() is
effectively clearing the new selection (i.e.
Hi Alexandros,
it's just that the example uses the location's name as an id for a label
shown as content in a GInfoWindowTab. See the following line
in the example:
new GInfoWindowTab(address, new Label(*address*, address))
The label will end up inside a repeater which is complaining about
Hi Roman,
you'd need continuations for modal dialogs, see:
https://issues.apache.org/jira/browse/WICKET-598
Sven
Roman Ilin wrote:
Any ideas?
On Thu, Apr 15, 2010 at 1:33 PM, Roman Ilin roman.i...@gmail.com wrote:
Hello dear Wicket Gurus,
I'm currently rewrite one fat client java
Hi Johan,
seems to me http://code.google.com/p/wicket-dnd/ supports everything you
need without any hacking.
Regards
Sven
Johan Haleby wrote:
Hi,
I have a use case that reads as follows: I need two lists next to each
other. When starting up the left list is empty and I add items to it by
Hi Johan,
yes, works with 1.4.x and has an example project in the repository:
http://code.google.com/p/wicket-dnd/source/browse/#svn/trunk/wicket-dnd-examples
Regards
Sven
Johan Haleby wrote:
Hi,
Looks promising indeed. Does it work with Wicket 1.4.1? Do you have any code
examples that I
See ModalWindow javadoc:
If you want to use form in modal window component make sure that you put
the modal window itself in another form ...
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Modal-window-and-panels-replacement-tp2068998p2069096.html
Sent from the
AbstractRepeater (and its subclasses) does it this way with its onPopulate()
method, so this strategy should fit your case too.
Perhaps think about a reuse strategy, i.e. don't create a new component if
the type hasn't changed.
Sven
--
View this message in context:
#setStripXmlDeclarationFromOutput() has nothing to do with doctype - it
controls the xml prolog.
Sven
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Html-root-tag-and-contents-repeating-in-response-after-302-redirect-tp2173315p2173399.html
Sent from the Wicket -
Hi,
either use maven to build wicket-dnd or do what maven does - look in the
right places:
http://code.google.com/p/wicket-dnd/source/browse/trunk/wicket-dnd/pom.xml
Look for repository:
http://wicketstuff.org/maven/repository/
Together with dependency this results in:
It's funny how you combine Wicket (i.e. open source) and vendor lock-in,
two antithetic terms I'd never put together in a single sentence.
Please search lock in the following post for arguments:
http://ptrthomas.wordpress.com/2009/05/15/jsf-sucks/
If you choose JSF, all what's guaranteed is
Sorry, what was the use case after all?
Sven
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2229772.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Override DataTable#newRowItem():
@Override
protected ItemFoo newRowItem(String id, int index,
final IModelFoo model) {
ItemFoo item = super.newRowItem(id, index, model);
item.add(new AjaxEventBehavior(onclick) {
Hi all,
I don't think the proposed method is a good idea.
Why add a method to a framework which is not used *by* the framework?
Why can't you just create your own static helper method storing the
application in an inheritable/non-inheritable thread local?
Why would anyone want to pass a web
Is @SpringBean used *by* the framework?
No, not the core.
A thread local won't work for what we're trying to do, hence the long,
drawn-out discussion thread(s) we've been having recently.
IMHO the discussion threads have not shown a conclusive use case for an ITL.
Some folks like to use
OK, no ITL, got it.
Then, you can use that Runnable anywhere to run a task
with all of the appropriate Wickety goodness set up for you (except
for the request cycle of course because you're not executing within a
request cycle).
But what are the use cases for *this* proposal (beside mail
Why so much trouble inside your UI layer? Normally Wicket components are
single-threaded, but with your solution you may introduce race conditions.
Move the ExecutorService into your service layer:
http://pastebin.com/NN58fiZx
new ProcessExecutorPanel(associatedFilesMigration) {
Please take another look on http://pastebin.com/NN58fiZx - it will work :).
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/PROPOSAL-Application-runAs-Method-tp2230030p2234652.html
Sent from the Wicket - User mailing list archive at Nabble.com.
But in my example start() *is* invoked on the request thread, thus the Wicket
application is available.
Please take another look on http://pastebin.com/NN58fiZx .
--
View this message in context:
http://en.wikipedia.org/wiki/Multitier_architecture
On 05/28/2010 06:04 PM, Douglas Ferguson wrote:
What is the service layer that you speak of?
Is this built into wicket?
D/
On May 28, 2010, at 9:06 AM, Sven Meier wrote:
Why so much trouble inside your UI layer? Normally Wicket
The details of thread creation are hidden from your Wicket class - IMHO
this is a good thing.
Sven
On 05/28/2010 07:08 PM, Alex Objelean wrote:
Yes, I see now. Thanks!
The only drawback of this approach is that the client code is responsible
for creating the Future. The initial purpose was to
asynchronously where they need the Application in place
As I've written I still don't see a reason why they need the Application
at all.
Sven
On 05/28/2010 05:50 PM, James Carman wrote:
So, don't use the feature. If yours works, then fine. Some folks are
doing things asynchronously
1 - 100 of 1518 matches
Mail list logo