Re: Wicket and CoC

2008-11-26 Thread Sven Meier
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

Re: Switchable panel via select ajax

2008-12-10 Thread Sven Meier
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

Re: Palette, AbstractOptions and localizer

2008-12-16 Thread Sven Meier
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

Re: [GMAP2] how to add float Panel

2008-12-28 Thread Sven Meier
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

Re: Why you should not override isVisible

2009-01-16 Thread Sven Meier
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

Re: Custom Domain Exception Handling

2009-02-06 Thread Sven Meier
In our projects we let domain and service exceptions trickle down into Wicket and be handled in a custom RequestCycle. Of course this requires them to be RuntimeExceptions, but this seems to be en vogue anyway. Nice thing is this technique works non-form requests (e.g. links) too. Sven Igor

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Sven Meier
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

Re: patterns for web ui apps. mvc models

2008-07-01 Thread Sven Meier
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

Re: generics

2008-07-01 Thread Sven Meier
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

Re: generics

2008-07-02 Thread Sven Meier
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

Re: generics

2008-07-02 Thread Sven Meier
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

Re: Internationalizing a DDC

2008-08-02 Thread Sven Meier
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

Re: [announce] Wicket in Action e-book has been published!

2008-08-18 Thread Sven Meier
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

Re: Wicketstuff snapshots

2008-08-25 Thread Sven Meier
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

Re: Localization encoding

2008-09-30 Thread Sven Meier
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. -

Re: Using static HTML in wicket

2008-10-08 Thread Sven Meier
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.

Re: Using static HTML in wicket

2008-10-08 Thread Sven Meier
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

Re: initial GMap2 bounds question

2008-10-08 Thread Sven Meier
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

Re: JavaScript Framework Dependencies

2008-11-02 Thread Sven Meier
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

Re: How to detect model leakage into session

2009-08-26 Thread Sven Meier
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

Re: removing a behavior

2009-09-13 Thread Sven Meier
component.add(new HeaderContributor(new IHeaderContributor() { private static final long serialVersionUID = 1L; public void renderHead(IHeaderResponse response) { response.renderCSSReference(getCurrentResource()); }

Re: removing a behavior

2009-09-13 Thread Sven Meier
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

Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-16 Thread Sven Meier
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

Re: Bug with firefox when submitting an ajax form inside a modal window

2009-09-18 Thread Sven Meier
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

Re: Bug with firefox when submitting an ajax form inside a modal window

2009-09-18 Thread Sven Meier
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

Re: Update Tree Model on Ajax timer. What's wrong ?

2009-09-18 Thread Sven Meier
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

[ANN] wicket-dnd project

2009-10-03 Thread Sven Meier
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

Re: [ANN] wicket-dnd project

2009-10-03 Thread Sven Meier
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

Re: Generics and SortableDataProvider

2009-10-05 Thread Sven Meier
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

Re: Generics and SortableDataProvider

2009-10-06 Thread Sven Meier
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.

Re: Wicket Tree

2009-10-07 Thread Sven Meier
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.

Re: ListView for only one element. Something wrong.

2009-10-08 Thread Sven Meier
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

Re: ListView for only one element. Something wrong.

2009-10-08 Thread Sven Meier
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

Re: [ANN] wicket-dnd project

2009-10-12 Thread Sven Meier
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

Re: [ANN] wicket-dnd project

2009-10-19 Thread Sven Meier
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,

Re: AW: file download using ajaxLink

2009-10-21 Thread Sven Meier
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

Re: AW: file download using ajaxLink

2009-10-22 Thread Sven Meier
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

Re: AW: file download using ajaxLink

2009-10-22 Thread Sven Meier
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

Re: Proposal: Fake implementation of AjaxRequestTarget instead of null

2009-10-24 Thread Sven Meier
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

Re: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Sven Meier
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

Re: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Sven Meier
. 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

Re: Proposal: Fake implementation of AjaxRequestTarget instead of null

2009-10-24 Thread Sven Meier
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

Re: Wicket Wizard Functionality (Extensions)

2009-10-24 Thread Sven Meier
? 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

Re: Proposal: Fake implementation of AjaxRequestTarget instead of null

2009-10-25 Thread Sven Meier
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

Re: Wicket Wizard Functionality (Extensions)

2009-10-25 Thread Sven Meier
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

Re: [ANN] wicket-dnd project

2009-10-26 Thread Sven Meier
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

Re: 508 accessibility support

2009-10-30 Thread Sven Meier
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

Re: Custom model for lists

2009-11-04 Thread Sven Meier
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

Re: CompoundPropertyModel in conjunction with RadioChoiceChoiceRenderers

2009-11-04 Thread Sven Meier
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

Re: CompoundPropertyModel in conjunction with RadioChoiceChoiceRenderers

2009-11-04 Thread Sven Meier
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

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread Sven Meier
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

Re: AjaxFallBackLink updating a listview in a listview (blog entry)

2009-11-18 Thread Sven Meier
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

Re: Listview clears all the data in the textfileds after adding new element in the List

2009-12-25 Thread Sven Meier
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

Re: Converter for AjaxEditableMultiLineLabel

2009-12-25 Thread Sven Meier
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

Re: Why feedback panel won't work

2009-12-28 Thread Sven Meier
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

Re: Why feedback panel won't work

2009-12-28 Thread Sven Meier
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

Re: how to iterate over checkboxes?

2010-01-06 Thread Sven Meier
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

Re: Panel and Model inside of a wizard

2010-01-19 Thread Sven Meier
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

Re: Panel and Model inside of a wizard

2010-01-19 Thread Sven Meier
- 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

Re: The Field 'emailInput' is required

2010-01-21 Thread Sven Meier
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

Re: Using SimpleAttributeModifier

2010-01-22 Thread Sven Meier
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

Re: dynamically adding components to a ListView

2010-01-24 Thread Sven Meier
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

Re: Avoiding 'WicketMessage: Unable to find component with id' error

2009-05-06 Thread Sven Meier
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

[ANN] wicket-tree project

2009-07-25 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-25 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-25 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
, 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

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
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

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
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

Re: Label i18n in 1.4 final

2009-08-04 Thread Sven Meier
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

Re: wicket example Simple tree

2010-02-27 Thread Sven Meier
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

Re: wicket example Simple tree

2010-02-27 Thread Sven Meier
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

Re: Model Values Not Updating on Form Submit

2010-03-05 Thread Sven Meier
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

Re: gmap2 opera slow

2010-03-17 Thread Sven Meier
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

Re: Ajax has too much control?

2010-03-21 Thread Sven Meier
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

Re: Ajax has too much control?

2010-03-21 Thread Sven Meier
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

Re: ListView and Serialization

2010-03-26 Thread Sven Meier
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

Re: ListView and Serialization

2010-03-26 Thread Sven Meier
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

Re: Trying to do something complicated with ListMultipleChoice model

2010-04-10 Thread Sven Meier
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.

Re: How do I provide digit-only IDs to make childs safe?

2010-04-11 Thread Sven Meier
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

Re: show ConfirmDialog in the middle of some action/function

2010-04-15 Thread Sven Meier
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

Re: Failing to remove item from list when drag and dropping

2010-04-17 Thread Sven Meier
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

Re: Failing to remove item from list when drag and dropping

2010-04-17 Thread Sven Meier
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

Re: Modal window and panels replacement

2010-04-28 Thread Sven Meier
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

Re: The better way tp add component directly

2010-05-03 Thread Sven Meier
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:

Re: doctype and markup inheritance

2010-05-11 Thread Sven Meier
#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 -

Re: wicketstuff-prototype download

2010-05-13 Thread Sven Meier
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:

Re: Wicket vendor lockin and backwards compatibility, 1.4/1.5

2010-05-25 Thread Sven Meier
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

Re: [announce] Release Wicket 1.4.9

2010-05-25 Thread Sven Meier
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.

Re: Dataview linkedline

2010-05-27 Thread Sven Meier
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) {

Re: [PROPOSAL] Application.runAs() Method...

2010-05-27 Thread Sven Meier
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

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
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

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
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

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
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) {

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
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.

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
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:

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
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

Re: [PROPOSAL] Application.runAs() Method...

2010-05-28 Thread Sven Meier
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

  1   2   3   4   5   6   7   8   9   10   >