Wicket Ajax Debug window - font color

2007-10-03 Thread Daniel Stoch
Hi, The Wicket Ajax Debug (WAD) window has a background color set to white but the font color is not set (in wicket-ajax-debug.js) - it uses the base page defaults. So when I have in css for my page setting like this: body {color: #FF;} the text in WAD is not visible. Maybe you should add

Re: Wicket Ajax Debug window - font color

2007-10-03 Thread Daniel Stoch
Done: https://issues.apache.org/jira/browse/WICKET-1037 Daniel On 10/3/07, Matej Knopp [EMAIL PROTECTED] wrote: Sure, please add a issue to JIRA. thanks. -Matej On 10/3/07, Daniel Stoch [EMAIL PROTECTED] wrote: Hi, The Wicket Ajax Debug (WAD) window has a background color set

Re: Wicket OSGi

2007-11-14 Thread Daniel Stoch
Hi, We are using Wicket as the UI layer in our OSGi application platform project. The registration of WicketServlet (or filter) is done in the very similar way like the Edgar wrote (even we have the same class names :)). And it is quite simple. The main problem is with Spring (precisely with

BookmarkablePageLink parameters field in 1.3.0-rc1

2007-11-20 Thread Daniel Stoch
Hi, I have a class derived from BookmarkablePageLink and after upgrading to Wicket 1.3.0-rc1 it does not compile because of error: parameters.getString() - not such method. In versions prior to 1.3.0-rc1 the definition of this field was: - protected final PageParameters parameters; now it is: -

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Stoch
Maybe you should look at OSGi? Then each of your application can be defined inside a different bundle and runs on the same JVM. We are using such approach in our environment and it works very well. A small downside of such solution is that you have to learn what is it and how to use OSGi (unless

Re: Multi-module applications in Wicket

2009-02-02 Thread Daniel Stoch
wrote: Do I really need OSGi container ?(OSGi is great idea, but I would like to keep this simple) Why I cant just map WicketFilter multiple times ? I would like to stay with one war deployed on Tomcat container. Daniel Stoch-2 wrote: Maybe you should look at OSGi? Then each of your

StatelessForm and field parameters in url after post

2009-02-04 Thread Daniel Stoch
Hi, I have a stateless, bookmarkable page with a simple stateless login form. This form contains two required fields: username and password. Below there are steps to reproduce my problem: 1. Enter the login page url=http://localhost/app/login 2. Fill the password field with eg. ppp and leave the

OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
Hi, I'm using Wicket with Spring inside OSGi environment for quite a long time and during this I had some problems related to class loading. So below there is a small proposal what should be change in Wicket core to solve these problems. 1. DefaultClassResolver - loading classes Some time ago

Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
On Thu, Jul 3, 2008 at 2:53 PM, Edward Yakop [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch [EMAIL PROTECTED] wrote: But there is a one assumption, that bundle with Wicket classes (you probably have a Wicket bundled somehow in your app, don't you? :)), should have

Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
On Thu, Jul 3, 2008 at 3:35 PM, Edward Yakop [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 9:27 PM, Daniel Stoch [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 2:53 PM, Edward Yakop [EMAIL PROTECTED] wrote: On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch [EMAIL PROTECTED] wrote

Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
On Thu, Jul 3, 2008 at 4:28 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: why dont you guys hash all this out. since no one uses osgi from the core team we are mostly unaware of these issues but do want to support the platform. once you settle down on the changes you want to see create jira

ModalWindow submit from nested form after close

2008-07-09 Thread Daniel Stoch
I have a page with a simple form: form wicket:id=firstForm input type=text wicket:id=textField / ... a wicket:id=selectorselect objects.../a div wicket:id=popup/div ... button type=submitSubmit/button /form When selector link is clicked a ModalWindow (attached to popup id

Re: How to make PagingNavigator work in Modal window?

2008-08-02 Thread Daniel Stoch
Use AjaxPagingNavigator. You cannot use normal (non-ajax) links inside a ModalWindow (like standard PagingNavigator does) because then the whole page is refreshed. -- Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Handling runtime exceptions in ajax request

2008-08-11 Thread Daniel Stoch
Hi, In Wicket by default IRequestCycleProcessor.respond(RuntimeException, RequestCycle) method is called to handle runtime exceptions. In AbstractRequestCycleProcessor this method throws RestartResponseException (or RestartResponseAtInterceptPageException) and then the other page is shown (eg.

Re: Localization issue

2008-08-26 Thread Daniel Stoch
Hi, But what exactly not work? I'm using a Link with onClick() code: getSession().setLocale(locale); to swicth current locale and everything works ok. All page components are localized correctly. I think this setResponsePage(this.getPage()); call in your code is not necessary:

Re: Best way to handle circular references

2009-09-28 Thread Daniel Stoch
Hi, We have (in our team) the same thoughts :). We treat circular references between packages as an error (bad architecture design) and we use an automatic test case for all projects to check if there are any cycles in packages. So project with such cycles does not pass the tests. It can be a

Re: Default implementation of IChainingModel

2009-10-01 Thread Daniel Stoch
org.apache.wicket.model.IChainingModel; import org.apache.wicket.model.IDetachable; import org.apache.wicket.model.IModel; /** * Basic implementation of {...@link IChainingModel} interface. * * @author Daniel Stoch * */ public class ChainingModelT implements IChainingModelT { /** Any model object

Re: OSGi Wicket

2009-11-02 Thread Daniel Stoch
Hi, The very simple way to solve such problems is: 1. Add: DynamicImport-Package: * to MANIFEST.MF file in bundle with Wicket. 2. Use customized implementation of IClassResolver which falls back to Wicket bundle ClassLoader, eg: try { ClassLoader loader =

Re: OSGi Wicket

2009-11-02 Thread Daniel Stoch
One more thing, I've read your post: Here is a post about this by me with some interesting comments from Igor:  http://bioscene.blogspot.com/2009/03/serialization-in-osgi.html Maybe the problems with serialization of EntityImpl private class should be solved by... not serializing this class

Re: Using style AND variation

2010-01-21 Thread Daniel Stoch
Hi all, Liz Huber wrote: In our application we use Panels in different variations. For example: Foot.html, Foot_withTextLinks.html, Foot_withImageLinks.html, Head.html, Head_error.html Now we'd additionally like to use different styles. For example on Valentine's Day all image links in our

Re: Component creation and initialization

2009-05-14 Thread Daniel Stoch
I think you can use hasBeenRendered() method instead of custom boolean flag. -- Daniel On 2009-05-14, at 20:15, Jeremy Thomerson wrote: You could probably do it in onBeforeRender - but you would need to keep a boolean flag to check if it's the first render so that you don't recreate them on

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Stoch
Hi, I think your problem is that in Wicket the whole Spring injection mechanism is prepared for applications where there is only one ApplicationContext (AC). This AC is hold in the Wicket application instance. So when you are trying to use @SpringBean annotation Wicket tries to inject a bean from

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Stoch
Ok, at least two scenarios are possible: 1. You have a module A with PanelA and you want to inject someDAO bean, which is defined inside module A (in the same module where class PanelA is defined). Then you can use classic @SpringBean annotation, as I wrote in my previous post. 2. You want to use

Re: Spring and Wicket - is it worth it?

2009-07-23 Thread Daniel Stoch
Hi, If you don't want to use xml you can configure your beans in pure Java. See Spring Java Configuration Project: http://www.springsource.org/javaconfig -- Daniel On Thu, Jul 23, 2009 at 3:40 AM, Dane Lavertydanelave...@gmail.com wrote: Due to the fact that nearly every substantial sample

Re: Submit form with ajax on enter

2010-02-04 Thread Daniel Stoch
I have the same problem today (what a coincidence :)). This works ok for me in Firefox 3.5 and Opera 10, but does not work in Chrome, Safari and IE. PS. I'm using Wicket 1.4.4. DS On Thu, Feb 4, 2010 at 10:38 AM, MattyDE ufer.mar...@gmail.com wrote: Any other hints for this right now? I

Re: Image Bundler For Apache Wicket

2010-04-20 Thread Daniel Stoch
Hi, Thanks for this change! My suggestions and optimalization notes: 1. In some cases there is no necessary to create an anonymous class for each ImageItem (using AbstractImageItem). When @ImageBundle interface has not locale specified, then SimpleImageItem(String imageSrc, String imageStyle)

Re: Image Bundler For Apache Wicket

2010-04-20 Thread Daniel Stoch
On 2010-04-20, at 19:28, Anantha Kumaran wrote: Maybe for methods returning an ImageItem a Locale should be a method argument (but only if image is locale relative). So: // for not locale relative images ImageItem getSomeImage(); // for locale related ImageItem getSomeImage(Locale locale);

Re: Image Bundler For Apache Wicket

2010-04-20 Thread Daniel Stoch
And one more thing: ImageItem interface (and posiibly ImageItemProvider too) should extend Serializable (or maybe better IClusterable?). -- Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: DropDownChoice/Model Confusion

2010-10-06 Thread Daniel Stoch
The code looks ok. Maybe the problem is in childRecordService: childRecordService.getList() when method getList() does not reflect changes until you create a new session. So maybe the problem is related to your service layer? Have you checked whet this method returns inside

Re: Bean injection

2010-10-08 Thread Daniel Stoch
On Thu, Oct 7, 2010 at 5:47 PM, Mauro Ciancio maurocian...@gmail.com wrote: It's not so important, but I can't figure out why I have the same bean instance, taking into account that the page is serialized at the end of the request and the inyected bean is actually a proxy of the bean, so no

Re: back-button causes Wicket state and page displayed to be out of synch

2010-10-25 Thread Daniel Stoch
Hi, On Fri, Oct 22, 2010 at 12:53 PM, drf davidrfi...@gmail.com wrote: I have encountered the following serious issue: My application consists of one WebPage which has an AjaxTabbedPanel. Each tab has an associated panel which includes several menu items (links) which can be selected. This

Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
There is a situation when the AjaxFormComponentUpdatingBehavior deafult functionality fails. When we want to attach this behavior (or OnChangeAjaxBehavior) to reflect changes inside a Model of FormComponent which is marked as REQUIRED event if user clears component input. In such situation

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 6:50 PM, Pedro Santos pedros...@gmail.com wrote: I Daniel, how alwaysUpdateModel differs from updateModel? You mean from getUpdateModel()? isAlwaysUpdateModel() is called only when component is invalid, but getUpdateModel() in both cases (for valid and invalid). If you

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 9:02 PM, Pedro Santos pedros...@gmail.com wrote: Override onError still makes sense for me, if the form component is required, why to hide the message? Because I don't want to show such error message when user clears (update) this required field but only when he press

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 10:01 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you want to push a null value into a component you marked required then dont mark it as required. No, because then I must have my own customrequired flags instead of using the core mechanism. I think this is wrong

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Daniel Stoch
, because it seems this is the only solution :). Maybe it does not make sense from your point of view, but from mine it does. I think your point of view is sometimes too narrow. -- Daniel On Thu, Feb 17, 2011 at 1:33 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Thu, Feb 17, 2011 at 10:01

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-18 Thread Daniel Stoch
Maybe I should explain one of use-cases. Let's say we have a form to enter RSS feed information. There are two TextFields: - url for RSS feed (urlModel) - custom RSS feed name (nameModel). Both are required and both have OnChangeBehavior attached. When user enter url for RSS the name of it

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-18 Thread Daniel Stoch
On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: validation is there to make sure the user of the webapp cannot push an illegal value into a model. it doesnt matter if its just the component that is being submitted or the entire form. components decide whether or

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-18 Thread Daniel Stoch
be called with a null, and thus no need to check required. -igor On Fri, Feb 18, 2011 at 7:22 AM, Daniel Stoch daniel.st...@gmail.com wrote: On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: validation is there to make sure the user of the webapp cannot push

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-18 Thread Daniel Stoch
On Fri, Feb 18, 2011 at 10:09 AM, Daniel Stoch daniel.st...@gmail.com wrote: My post was only a proposal, because it is not possible to easy extend AjaxFormComponentUpdatingBehavior because onEvent() is final. I want to avoid copy/paste code with only a little change. And I think this change

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-18 Thread Daniel Stoch
, but this is ugly solution). -- Daniel On Fri, Feb 18, 2011 at 10:50 PM, Pedro Santos pedros...@gmail.com wrote: Do your use case needs to convert a null input? If the input is differs from null FormComponent#validate will be just fine. On Fri, Feb 18, 2011 at 5:20 PM, Daniel Stoch daniel.st

setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Hi, Is it a valid behavior that setRenderAllowed(...) method is called for invisible components (components that are not visible in hierarchy). I have a use case with DataView component displaying list of links. When I hide this DataView (eg. by setting dataView.setVisible(false)) then for each

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Wicket 1.4.18 On Mon, Sep 5, 2011 at 12:29 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, Is it a valid behavior that setRenderAllowed(...) method is called for invisible components (components that are not visible in hierarchy). I have a use case with DataView component displaying list

Re: setRenderAllowed called for invisible components

2011-09-05 Thread Daniel Stoch
Hi, Yes, it should be called also on invisible components, but only when it is any chance that these components can be rendered. If one of theirs parents are not visible, then such component will not be rendered. In my scenario DataView is visible only when dataView.getItemCount() 0. But it

Display HTML in Label with validation

2011-09-15 Thread Daniel Stoch
Hi, How to display dynamic HTML content on page which can be invalid (because this HTML is entered by a user). I can use Label.setEscapeModelStrings(false), but with invalid HTML content the page will not be rendered (because of HTML parsing error). So maybe I can use some of standard Wicket

Re: Display HTML in Label with validation

2011-09-16 Thread Daniel Stoch
, 2011 at 5:31 PM, manuelbarzi manuelba...@gmail.com wrote: may HtmlDocumentValidator help you. . On Thu, Sep 15, 2011 at 5:05 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, How to display dynamic HTML content on page which can be invalid (because this HTML is entered by a user). I can use

AbstractAjaxTimerBehavior with restart ability

2011-12-02 Thread Daniel Stoch
Hi, Current implementation of AbstractAjaxTimerBehavior has a functionality to stop() pooling. But once stopped it cannot be restarted. There are situations when we want to periodically refresh components from one event to another, but not all the time (to avoid unnecessary requests to server).

How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
Hi, Is it possible to modify tag attribute (eg. add a CSS class) of component which has set renderBodyOnly flag to true? When using component.add(new AttributeModifier(...)) it has no effect, because a tag in which this class attribute is appended is not rendered in HTML (because of

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
a class an that non-existing tag ?! The easiest way is to remove the call to .setRenderBodyOnly(true). On Wed, Feb 22, 2012 at 11:38 AM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, Is it possible to modify tag attribute (eg. add a CSS class) of component which has set renderBodyOnly flag

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
On Wed, Feb 22, 2012 at 12:11 PM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Feb 22, 2012 at 12:01 PM, Daniel Stoch daniel.st...@gmail.com wrote: No. I want to have a. When you use this LinkContainer from my example in HTML like: div wicket:id=link /div It will be rendered

Re: How to modify attribute (eg. class) in component with setRenderBodyOnly(true) ?

2012-02-22 Thread Daniel Stoch
On Wed, Feb 22, 2012 at 12:31 PM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Feb 22, 2012 at 12:20 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Wed, Feb 22, 2012 at 12:11 PM, Martin Grigorov mgrigo...@apache.org wrote: On Wed, Feb 22, 2012 at 12:01 PM, Daniel Stoch daniel.st

WicketURLEncoder: escaping / in parameter value

2012-11-26 Thread Daniel Stoch
Hi, I'm using WicketURLEncoder (1.4.18) to encode some parameter values. Exactly WicketURLEncoder.QUERY_INSTANCE, but the problem if parameter value contains / (slash) character, eg.: 1 Mbit/s, which is not escaped. This cause an error in url coding startegy which is based on key/value pairs

Re: WicketURLEncoder: escaping / in parameter value

2012-11-26 Thread Daniel Stoch
, 2012 at 2:28 PM, Daniel Stoch daniel.st...@gmail.comwrote: Hi, I'm using WicketURLEncoder (1.4.18) to encode some parameter values. Exactly WicketURLEncoder.QUERY_INSTANCE, but the problem if parameter value contains / (slash) character, eg.: 1 Mbit/s, which is not escaped. This cause an error

Ajax indicator - display delay

2013-03-06 Thread Daniel Stoch
Hi all, When there is some AJAX activity on page we can show ajax indicator (using AjaxIndicatorAppender and implementing IAjaxIndicatorAware). My problem is that I want to show such indicator only when ajax request takes longer than specified amount of time (eg. 1 second). But inside a

Re: Wicket + OSGI + Session

2007-11-26 Thread Daniel Stoch
Hi, You have written: This causes problems with session serialization/deserialization in an OSGI environment. I don't know is it a related problem, but I have the following situation (of course app is running in OSGi environment): I have a page with DataView displaying products list with images.

Re: Using Spring beans with session scope

2007-12-14 Thread Daniel Stoch
Have you defined RequestContextListener in your web.xml? It is required for request scope and session scope beans: listener listener-class org.springframework.web.context.request.RequestContextListener /listener-class

Re: Using Spring beans with session scope

2007-12-14 Thread Daniel Stoch
You can see SpringWebApplication class to see how to access Spring application context. Or you can create a field with @SpringBean annotation to inject your bean into the session object. But then you must call InjectorHolder.getInjector().inject(this); before access this bean (probably the

Re: Wicket + OSGI + Session

2007-12-17 Thread Daniel Stoch
to see how to write a hook to look up classes in an ObjectInputStream implementation (resolveClass method). Regards, Sebastiaan Daniel Stoch wrote: Hi, You have written: This causes problems with session serialization/deserialization in an OSGI environment. I don't know

Re: Session scoped Spring bean

2008-02-01 Thread Daniel Stoch
You should check if you get always the same basket instance when creating BasketPanel. It looks like this bean behaves as a prototype scoped bean. Simple solution is to add a static int counter in your Basket class and increments it by one in Basket constructor call. Then you will be able to check

IPropertyResolver interface for property models

2008-02-06 Thread Daniel Stoch
Hi, I'm developing custom IModel implementation which will be used as a model in forms. This model is able to record changes made by a form in the editing object (POJO). I do not store this changes directly to the base object, but they are stored somwhere inside this model (eg. in a Map of

Re: IPropertyResolver interface for property models

2008-02-06 Thread Daniel Stoch
On Feb 6, 2008 3:45 PM, Johan Compagner [EMAIL PROTECTED] wrote: If we has such an interface then we need to rewrite most things because now its just a static method and then we need to have instances. I know that. It is not a simple change. i guess you want then to have AbstractPropertyModel

Re: IPropertyResolver interface for property models

2008-02-06 Thread Daniel Stoch
Thanks for your response. Your solution looks interesting and even quite similar to mine, but... :) My ObjectEditor interface is like your Map editedValues, IModel underlyingModel coupled together. But underlyingModel in my solution holds the whole object, not a single property: Object

Re: IPropertyResolver interface for property models

2008-02-06 Thread Daniel Stoch
property models, the only difference is how they access object values = how their property resolver works :). Daniel On 2008-02-06, at 19:51, Johan Compagner wrote: Why not just return a hashmap as the model object and have besides that hashmap your real object On 2/6/08, Daniel Stoch [EMAIL

Re: IPropertyResolver interface for property models

2008-02-06 Thread Daniel Stoch
are implemented. So I must make general interface for this in Wicket. Daniel On 2008-02-06, at 21:34, Daniel Stoch wrote: This is exactly how ObjectEditor default implementation would looks like: it contains hashmap for edited values. Simple HashMap as a model is not a good solution, because you must

Re: loosely coupled panels: react to model object change

2008-02-06 Thread Daniel Stoch
Hi, I have implemented such model (as Johan wrote) in our application. It uses observer pattern and it has methods like: addListener, removeListener and notify(Event event) (Event is an enum). Each panel register itself as a proper events listener and in onClick() you can simply call

Re: CompoundModel based on proxies

2008-02-06 Thread Daniel Stoch
I'm quite interested too. Daniel On 2008-02-06, at 19:27, Carl-Eric Menzel wrote: Scott Swank wrote: We're happy to share if folk like this approach. N.B. that the .to() call is for readability rather than out of any necessity. I'm quite interested in this. This looks like it is just

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Daniel Stoch
+1 Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-02 Thread Daniel Stoch
can be located in many different bundles: DynamicImport-Package: * Maybe such change could be done in Wicket core (in DefaultClassResolver class)? -- Daniel Stoch On 2008-03-29, at 22:22, Daniel Wu wrote: I've updated my wicket application to Wicket 1.3.2, but now, when I try

WebMarkupContainer multiplicated markup when using AjaxLink

2008-04-07 Thread Daniel Stoch
Hi, There is a strange behaviour when I'm trying refresh WebMarkupContainer component using AjaxLink. I have a simple page: public HomePage(final PageParameters parameters) { final WebMarkupContainer container = new WebMarkupContainer(container); add(container);

Re: WebMarkupContainer multiplicated markup when using AjaxLink

2008-04-07 Thread Daniel Stoch
Wicket version: 1.3.3 Daniel On Mon, Apr 7, 2008 at 3:36 PM, Matej Knopp [EMAIL PROTECTED] wrote: What wicket version are you using? -Matej On Mon, Apr 7, 2008 at 2:38 PM, Daniel Stoch [EMAIL PROTECTED] wrote: Hi, There is a strange behaviour when I'm trying refresh

Re: @SpringBean in init

2008-04-08 Thread Daniel Stoch
Hi, I think he can :). SpringWebApplication is not a Component so this: addComponentInstantiationListener(new SpringComponentInjector(this)); doesn't matter here. Before you want to use this @SpringBean in your init() method you should call: InjectorHolder.getInjector().inject(this); But then

Re: WebMarkupContainer multiplicated markup when using AjaxLink

2008-04-09 Thread Daniel Stoch
I've created JIRA issue for this (with quickstart-app): WICKET-1500: https://issues.apache.org/jira/browse/WICKET-1500 -- Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread Daniel Stoch
Hi, You can do it in this way: in your application class you can define a method: protected IComponentInstantiationListener newComponentInjectionListener() { return new SpringComponentInjector(this); } and then change init method to: protected void init() { super.init(); mount(/pages,

Re: What is the best way to create layouts in Wicket?

2008-05-05 Thread Daniel Stoch
On Mon, Apr 28, 2008 at 10:48 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: On 4/28/08, James Carman [EMAIL PROTECTED] wrote: So, how do you know that everything is good to go in the subclass then? You really shouldn't be calling a method implemented by the subclass in the superclass'

AutoCompleteTextField - autocomplete multiple fields

2008-05-27 Thread Daniel Stoch
Hi, I have just written a sample form which contains fields for address editing (post code, city, street, etc...). What I want to achieve is to autocomplete fields like city, street when user enters a proper post code. The standard AutoCompleteTextField component allows to autocomplete the field

Re: AutoCompleteTextField - autocomplete multiple fields

2008-05-28 Thread Daniel Stoch
Hi, On Wed, May 28, 2008 at 12:31 AM, francisco treacy [EMAIL PROTECTED] wrote: something i was exactly looking for is this: http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags/ , i.e. the ability to autocomplete multiple fields. and i also wanted to integrate it with

PagingNavigator WICKET-1548 - customization question

2008-05-29 Thread Daniel Stoch
Hi, I've just made an upgrade to 1.3-SNAPSHOT. And now I have a problem with customizing PagingNavigator component, because of moving creation of components to onBeforeRender() method. In out navigator we want to hide (remove) some links (eg. first and last). So I have a constructor like this:

Re: AutoCompleteTextField - autocomplete multiple fields

2008-05-30 Thread Daniel Stoch
Thank for your post. initHead() will be very helpful here. I have voted for this issue. -- Daniel On Fri, May 30, 2008 at 9:23 AM, Roland Huss [EMAIL PROTECTED] wrote: Hi Daniel, Daniel Stoch-2 wrote: The main problem is that the AutoCompleteTextField and related classes (behavior

Re: AutoCompleteTextField - autocomplete multiple fields

2008-06-06 Thread Daniel Stoch
Here it is a quickstart app with MultiAutoCompleteTextField component prototype: http://interwicket.googlecode.com/files/multiautocomplete.zip It is a draft solution, I have no time to polish it yet, so it is not a super elegant ;). MultiAutoCompleteTextField works very similar like a standard

WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
Hi, I'm during migration from Wicket 1.4.x to 6.x and I have the following problem with WicketTester. I have some secured page, during its initialization some kind of AuthorizationException is raised. It should end with displaying standard AccessDeniedPage. Here is a code fragment from test case:

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
at 10:33 AM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I'm during migration from Wicket 1.4.x to 6.x and I have the following problem with WicketTester. I have some secured page, during its initialization some kind of AuthorizationException is raised. It should end with displaying

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
For fast REPLY, of course ;) On Wed, Feb 5, 2014 at 10:45 AM, Daniel Stoch daniel.st...@gmail.comwrote: It works! Thanks for your fast replay :) -- Daniel On Wed, Feb 5, 2014 at 10:40 AM, Martin Grigorov mgrigo...@apache.orgwrote: Try with tester.setExposeExceptions(false) before

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
(false) before making the request to the secured page Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014 at 10:33 AM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I'm during migration from Wicket 1.4.x to 6.x and I have the following problem with WicketTester. I have

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
to the server so first the page is rendered, then a new request to the default destination is made, so the home page is rendered and lastRenderedPage changes Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014 at 11:39 AM, Daniel Stoch daniel.st...@gmail.com wrote: One more

Re: WicketTester.isRenderedPage() in 6.13

2014-02-05 Thread Daniel Stoch
) - in your real application code: Page1 or in its components you can use setResponsePage(Page2.class) - finally in the test code: tester.assertRenderedPage(Page2.class) Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014 at 12:18 PM, Daniel Stoch daniel.st...@gmail.com wrote: Ok

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Daniel Stoch
page in the test code. Set it in the real application code. Martin Grigorov Wicket Training and Consulting On Wed, Feb 5, 2014 at 1:47 PM, Daniel Stoch daniel.st...@gmail.com wrote: In my real application there are calls to RequestCycle.setResponsePage(...) which are hidden by more

Re: WicketTester.isRenderedPage() in 6.13

2014-02-06 Thread Daniel Stoch
I have looked inside 1.4 and the code inside a clickLink() is very similar, so this is not a case to 6.x. But still it would be nice to have RequestCycle#setResponsePage() working ;). -- Daniel On Thu, Feb 6, 2014 at 10:00 AM, Daniel Stoch daniel.st...@gmail.comwrote: I have created a new

Session size vs detached models

2014-02-14 Thread Daniel Stoch
Hi, In Wicket 1.4 the last page reference is hold in a session (is it in 6.x also?). So after a request has been processed all components and models should be detached, so this last page reference should not hold transient LDM values. Is it true? When we are using DebugBar with

Re: Session size vs detached models

2014-02-14 Thread Daniel Stoch
On Fri, Feb 14, 2014 at 4:12 PM, Martin Grigorov mgrigo...@apache.orgwrote: should be detached, so this last page reference should not hold transient LDM values. Is it true? LDM null-yfies its transien field explicitly:

Atmosphere - multiple browser tabs and page versioning

2014-04-29 Thread Daniel Stoch
Hi, I have modified wicket-atmosphere example with sending messages, to display a browser (DataView) with all received messages. So when user sends a message (String) it will be added to list of messages stored in a page and the browser is refreshed. There is a strange behavior when we open two

How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled or not, so I can mark my link as enabled or disabled (by calling setEnabled(command.isEnabled()) or overriding link.isEnabled() method). 1. Page is being rendered,

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
can always click faster ;). Best regards Sven On 06/17/2014 03:55 PM, Daniel Stoch wrote: Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled or not, so I can mark my link as enabled or disabled (by calling

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
On Tue, Jun 17, 2014 at 4:00 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Tue, Jun 17, 2014 at 4:55 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, I have a link (or ajax link) which executes some system command. This system gives me an information if this command is enabled

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
On Tue, Jun 17, 2014 at 4:27 PM, Sven Meier s...@meiers.net wrote: Hi, The next click does not come because exception is raised. if the link is still enabled, which exception should be thrown then? Sven Please read again steps 1,2,3 ;). Link is rendered as enabled in the browser (1),

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Daniel Stoch
in onClick() method. So now I try to use the second solution (I have an abstraction over all links so it would be easy to implement) and add an extra check before calling a link code. Thanks for your help. -- Daniel On 06/17/2014 04:32 PM, Daniel Stoch wrote: On Tue, Jun 17, 2014 at 4:27 PM, Sven

How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
Hi all, I think such question occurs from time to time on this list, but I have never found a good answer how to solve such problem in general. The problem is similar to my last question:

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
the UI? On Fri, Jul 4, 2014 at 12:13 PM, Daniel Stoch daniel.st...@gmail.com wrote: Hi all, I think such question occurs from time to time on this list, but I have never found a good answer how to solve such problem in general. The problem is similar to my last question: http://apache-wicket

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
action but by application. So yes, it can be push from a server (eg. using Atmosphere - this is my case) or by ajax self updating behavior. -- DS On 07/04/2014 12:13 PM, Daniel Stoch wrote: Hi all, I think such question occurs from time to time on this list, but I have never found a good

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
I have added the appropriate information in that thread. On Fri, Jul 4, 2014 at 12:47 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Sven's question goes straight to the point: do you know what is causing the mismacth? On Fri, Jul 4, 2014 at 12:44 PM, Daniel Stoch daniel.st

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Daniel Stoch
are pushed to client browser. -- Daniel Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 4, 2014 at 1:46 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Fri, Jul 4, 2014 at 12:33 PM, Sven Meier s...@meiers.net wrote: So page was rendered

  1   2   >