Re: TreeGrid and DataGrid open source

2008-07-31 Thread Martin Grigorov
Examples : http://wicketstuff.org/grid-examples/ Source: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/inmethod-grid On Wed, 2008-07-30 at 18:26 -0700, TahitianGabriel wrote: Hi Matej, The website (http://www.inmethod.com/) seems to be down. I've got a tomcat welcome

Re: DropDownChoice default value not found because of equal method

2008-07-31 Thread Andrea Jahn
Hi, I created a new database and now it works fine. Must have been an inconsistency in the development/test environment. Thanks Andrea 2008/7/30, Igor Vaynberg [EMAIL PROTECTED]: On Wed, Jul 30, 2008 at 3:02 AM, Andrea Jahn [EMAIL PROTECTED] wrote: Reason is, that the Country class

Why does Settings.setResourceFinder null out resourceStreamLocator?

2008-07-31 Thread Ned Collyer
I found it strange that my custom resource stream locator was forcibly nullified when running tests. Is this a bug? or by design. -- View this message in context: http://www.nabble.com/Why-does-Settings.setResourceFinder-null-out-resourceStreamLocator--tp18748752p18748752.html Sent from the

Re: Instruction on running Wicket portlet on Liferay 5

2008-07-31 Thread sauli_k
Hi, I have also been trying to get Wicket examples to run in Liferay 5. I think the problem is that Wicket replaces all the -signs with amp;:s in URLs. See my post in Liferay forum http://www.liferay.com/web/guest/community/forums/-/message_boards/message/1131112 for the modifications I did.

Re: Guidelines in Wicket

2008-07-31 Thread Alex Objelean
There is Wicket in Action, Pro Wicket, http://cwiki.apache.org/WICKET/newuserguide.html wiki page and other resources... You can use any of them for your guideline. freak182 wrote: My superior ask me to submit a Guidelines in Wicket. He assign it to me because I trained the new employee

SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread alex2008
I have the same problem described on: https://issues.apache.org/jira/browse/WICKET-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel SpringWebApplicationFactory cannot load WA from parent bean factory I have tried the suggest workaround without result. I'm use jdk 1.6.x,

Brix interview with Igor, Matej and other brix devs

2008-07-31 Thread Martijn Dashorst
Read more about Brix from a JCR perspective: http://dev.day.com/microsling/content/blogs/main/brix2.html Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

Re: FusionCharts - How to

2008-07-31 Thread Brill Pappin
I just integrated OpenFlashCharts by using the example for flash in the knowledge base. It wasn't hard although a recent package rename has broken it (have to sort out what went on there). For the data that the chart requests, you simple override the request target. Search the list for raw

Re: How to open a Modal Window by clicking a button

2008-07-31 Thread a_godin
I won't post the whole thing but here's the parts related to the modal window In my java class : public class Edit extends Panel { private ModalWindow modCall; private AjaxSubmitButton btnNewCall; ... // creating my components ... add(modCall = new

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread Igor Vaynberg
sorry, dont really understand where your problem is...wicket-1189 has been fixed a long time ago. are you saying the bug is back or something else is a problem? -igor On Thu, Jul 31, 2008 at 3:28 AM, alex2008 [EMAIL PROTECTED] wrote: I have the same problem described on:

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread alex2008
sorry, dont really understand where your problem is...wicket-1189 has been fixed a long time ago. are you saying the bug is back or something else is a problem? -igor Now I'm not sure perhaps is only similar. :blush: For the moment i have find a workaround to this problem I used the

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread Igor Vaynberg
what does this addComponentInstantiationListener (new SpringComponentInjector (this)); have to do with whether or not you use a servlet or a filter? you always have to do that for @SpringBean annotation to work... -igor On Thu, Jul 31, 2008 at 9:03 AM, alex2008 [EMAIL PROTECTED] wrote:

Restricting Javascript entry in TextField/TextArea

2008-07-31 Thread Doug Leeper
Is there a way to restrict either on the front end or some validator on the backend in Wicket to identify if a field has Javascript within the submitted value? We have a requirement for this as the data will be redisplayed in HTML emails and don't want the recipients being open to malicious

Re: Restricting Javascript entry in TextField/TextArea

2008-07-31 Thread Igor Vaynberg
you can check for script tags using a patternvalidator or a custom validator -igor On Thu, Jul 31, 2008 at 9:44 AM, Doug Leeper [EMAIL PROTECTED] wrote: Is there a way to restrict either on the front end or some validator on the backend in Wicket to identify if a field has Javascript within

Creating a new session if new browser tab is opened

2008-07-31 Thread Ross Shnaper
Hi, I'm sure this question has been asked before but I could not solve my problem by going through the suggestions in older posts. My problem is that if one user logs in to my web app and then another user logs in on the same web browser (different tab) then the first user will get PageExpired

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread alex2008
I like use @SpringBean but i don't understand why if i'm trying settings as serverlet or as a filter does not work. what does this addComponentInstantiationListener (new SpringComponentInjector (this)); have to do with whether or not you use a servlet or a filter? you always have to do that

Re: Creating a new session if new browser tab is opened

2008-07-31 Thread Igor Vaynberg
there isnt really a way to do that cleanly because it is the browser that recycles the session, so its not completely in your control what you can do is, and this is hacky, turn off cookie support for session tokens in your application server and when you detect a new tab redirect to some page

DatePicker Fails in Portlet Environment

2008-07-31 Thread prasana
I am trying to use DateTextField component that includes DatePicker in my portlet application. The DateTextField component is displayed onSubmit of a AjaxSubmitLink But the Wicket Ajax Debug windows shows the following error when the DateTextField is rendered. ERROR: Exception evaluating

Adding child components in constructor? Best practice?

2008-07-31 Thread pixologe
Hi everybody, May sound stupid: is the contructor really the best place for adding children to a component or is there a better one, e.g. onBeforeRender? All examples I see keep doing this in the constructor or in an init method which is called by the constructor, however, I realized that there

How take a field to a form so that it can manage within submit on the same form?

2008-07-31 Thread alex2008
How take a field to a form so that it can manage within submit on the same form? Form form=new Form(f); form.add(new RequiredTextField(integerInRangeProperty).add(NumberValidator.range(0, 100))); form.add(new Button(execute) { public void onSubmit() {

HybridURLs

2008-07-31 Thread Uwe Schäfer
Hi following situation: i have a link to a page, that has to be bookmarkable, say: /foo/document/21 where FooPage is mounted at/foo no problem here, but: coming from page XY i´d like to pass additional data to the foopage, normally done with construction, while i need the url still to be

Re: How take a field to a form so that it can manage within submit on the same form?

2008-07-31 Thread Bruno Borges
I'm sorry, but could you please explain better your issue? Bruno Borges blog.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Thu, Jul 31, 2008 at 3:35 PM, alex2008 [EMAIL

Wrap Headers in DataTable to new line?

2008-07-31 Thread nanotech
Q1: How do I make Header in DataTable to wrap to new line. I am putting a newline character but its not woorking. columns.add(new PropertyColumn(new Model(This is a very very very long header that does not wrap), sortProperty, propertyExpression)); Q2:Is there a way to set the column's width, so

Re: Wrap Headers in DataTable to new line?

2008-07-31 Thread Paul Logasa Bogen II
nanotech wrote: Q1: How do I make Header in DataTable to wrap to new line. I am putting a newline character but its not woorking. columns.add(new PropertyColumn(new Model(This is a very very very long header that does not wrap), sortProperty, propertyExpression)); How do you display a line

Re: Adding child components in constructor? Best practice?

2008-07-31 Thread Igor Vaynberg
you can feel free to do it in onbeforerender. this pattern is used, for example, when you need to have user-overridable factory methods for child components. the constructor works for 90% usecase and does not require extra checks like onbeforerender because you know the constructor only runs once.

Wicket and Flex integration

2008-07-31 Thread Fernando Wermus
Dear all, We want to integrate wicket and Flex. The reason for the integration is that we would like to keep the wicket wizard with individual swf instead of developing all in Flex. I haven't seen any document about this integration. If any, please could you send an example? We also want to

Re: Direclty using parent's compoundpropertymodel not possible ?

2008-07-31 Thread ZedroS
hi Sorry for the delay, holidays went in the way ;) Alex Jacoby-2 wrote: More than once I've tried accessing my inherited model from within a constructor, forgetting that since the component hasn't been added yet it can't access its inherited model there. That's not your problem,

Re: Direclty using parent's compoundpropertymodel not possible ?

2008-07-31 Thread Daniel Freitas
I think I might be missing something here. I assume you don't create your components in the parent's constructor right? Or you call a different super constructor perhaps? Because java executes the parent constructor before calling a subclass constructor and for what I've seen so far in the

Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Hoover, William
Seems strange that Component#modelChanging and Component#modelChanged are never called when IModel#setObject is called... https://issues.apache.org/jira/browse/WICKET-1764 - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Igor Vaynberg
how should we handle that? -igor On Thu, Jul 31, 2008 at 2:43 PM, Hoover, William [EMAIL PROTECTED] wrote: Seems strange that Component#modelChanging and Component#modelChanged are never called when IModel#setObject is called... https://issues.apache.org/jira/browse/WICKET-1764

RE: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Hoover, William
Well, I am still trying to hash that one out- any ideas? I just think that if there is a method that indicates that it will be called anytime that a model is changing that it should follow through with that contract. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent:

Where has DateLabel gone to

2008-07-31 Thread Daniel Freitas
I'm reading Wicket in Action and I'm using Wicket 1.3.4. On the chapter about models, the author uses a DateLabel which he says can be found in the extensions project. Well, I have tried 1.3.0, 1.3.3 and 1.3.4 for both wicket and wicket extensions and I just can't find this component. Is it an

Re: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Igor Vaynberg
well, it notifies if the model is changed through the component. there is no way for us to really intercept a setobject call on an arbitrary model instance, figure out which components it is currently attached to, and call modelchanging methods on them. -igor On Thu, Jul 31, 2008 at 3:08 PM,

Re: Where has DateLabel gone to

2008-07-31 Thread Igor Vaynberg
it is in wicket-datetime project -igor On Thu, Jul 31, 2008 at 3:13 PM, Daniel Freitas [EMAIL PROTECTED] wrote: I'm reading Wicket in Action and I'm using Wicket 1.3.4. On the chapter about models, the author uses a DateLabel which he says can be found in the extensions project. Well, I have

RE: Where has DateLabel gone to

2008-07-31 Thread Kai Mütz
Daniel Freitas mailto:[EMAIL PROTECTED] wrote: I'm reading Wicket in Action and I'm using Wicket 1.3.4. On the chapter about models, the author uses a DateLabel which he says can be found in the extensions project. Well, I have tried 1.3.0, 1.3.3 and 1.3.4 for both wicket and wicket

RE: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Hoover, William
Yes, it does seem to be a difficult task to accomplish unless the model itself is component aware. Nonetheless, it seems relatively useless to have the onchanging/onchanged methods if they cannot do what they claim they can do- don't you agree? If models were component aware it would simply be a

Re: Where has DateLabel gone to

2008-07-31 Thread Daniel Freitas
I got it though maven thanks. 2008/7/31 Kai Mütz [EMAIL PROTECTED] Daniel Freitas mailto:[EMAIL PROTECTED] wrote: I'm reading Wicket in Action and I'm using Wicket 1.3.4. On the chapter about models, the author uses a DateLabel which he says can be found in the extensions project. Well,

Re: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Daniel Freitas
What would happen if more than one component uses the same model? Would we keep a list of components to notify? If that's the case why not just implement listeners instead, so then any class could listen to model changes. It's a nice idea except that IModel would have to be turned in to a class

Stack overflow when extending from page

2008-07-31 Thread Daniel Freitas
I typo got me to a stack overflow. Instead of extending WebPage, I extended Page directly and when wicket tried to render the page it threw a StackOverflowError caused by the following code: public class ClockPage extends Page{ //Typo, should be *extends WebPage* } Page extends MarkupContainer

Dynamically Making changes to Tree Node

2008-07-31 Thread vishy_sb
http://www.nabble.com/file/p18765641/treeview.jpeg Hi All, As shown in the Image I have a checkbox tree which has nodes that have different components. Each node of the tree has a checkbox, label, a panel which has the 3 TextAreas and another panel which has a listview. In order to get the

Re: Refreshing a form inside a Modal Window

2008-07-31 Thread vishy_sb
Is there anyone who has any clue about how this has to be done??? vishy_sb wrote: Hi all, I have Modal Window which contains a panel. Inside the panel I am trying to perform a search and the results of the search are populating inside a ListView. There is an apply button which

Re: palette problem

2008-07-31 Thread metalotus
I also had the same problem with palette ... Nothing appeas in the Selected list, there was always an empty selected list ... The solution was to provide all the choices , as suggested by severian. What a time waster! Wicket should have better javadoc :( -- View this message in context:

Re: HybridURLs

2008-07-31 Thread Matej Knopp
Hi, mount the page using HybridUrlCodingStrategy. The url for page instance (you can use PageLink for that) will than look like /foo/document/21.5 (where .5 denotes page instance). Note that such url *is* bookmarkable, the page instance number doesn't matter. Unfortunately wicket has to store

RE: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Hoover, William
That is true... it would require a proxy service in order to intercept the IModel#setObject calls. -Original Message- From: Daniel Freitas [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 7:02 PM To: users@wicket.apache.org Subject: Re: Component#modelChanging and

Re: Dynamically Making changes to Tree Node

2008-07-31 Thread Matej Knopp
You have to use different panel for each Tree item (depending on the tree node for that item). If you use BaseTree, implement the #newNodeComponent method accordingly. You can look at LinkTree or LabelTree for an example of how the implementation can look like. Or you can use LinkTree, override

Re: Refreshing a form inside a Modal Window

2008-07-31 Thread Matej Knopp
You need to show some code. -Matej On Fri, Aug 1, 2008 at 1:33 AM, vishy_sb [EMAIL PROTECTED] wrote: Is there anyone who has any clue about how this has to be done??? vishy_sb wrote: Hi all, I have Modal Window which contains a panel. Inside the panel I am trying to perform a

Re: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Daniel Freitas
Well, I've though aabout proxies, but didn't depicted it in my previous message, but since you touched the subject... It's more more complex to do but maybe that's the best approach. You can do this at a project level, without interfering with the framework directly. You can even componentize your

Re: Refreshing a form inside a Modal Window

2008-07-31 Thread vishy_sb
The Modal Window contains a Panel. The picture shows how the window looks like when I try to search some thing the results are populated in the List as shown. All the rows which are selected will be added to another list on the main page when the apply button is pressed.

Re: Stack overflow when extending from page

2008-07-31 Thread Igor Vaynberg
yeah, we should fix it. please file a jira issue. -igor On Thu, Jul 31, 2008 at 4:22 PM, Daniel Freitas [EMAIL PROTECTED] wrote: I typo got me to a stack overflow. Instead of extending WebPage, I extended Page directly and when wicket tried to render the page it threw a StackOverflowError

Re: Size() is invoked twice

2008-07-31 Thread Rik van der Kleij
Hi, For this issue I created a Jira issue. Regards, Rik 2008/7/29 Rik van der Kleij [EMAIL PROTECTED] Hi, During performance tuning of a data table I noticed that size() of data provider is invoked twice during one request. This happens when navigating to a next page. Is this normal