Re: Compoundpropertymodel with shadow map?

2008-11-21 Thread Johan Compagner
If you dont want to use an original object why not just clone/create a copy of the original end use that and then copy the values over again? (i think beanutils or something van do that for you) On 11/18/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Im trying todo a

Re: Properties file

2008-11-21 Thread landry soules
Thanks a lot, Cemal. As always, you gave me a quick and brilliant answer. I tried your first solution, and it works as a charm. However, i wonder if there is a way to overload this properties file according to the deployment environment (typically, i will have a file named

Re: Compoundpropertymodel with shadow map?

2008-11-21 Thread Nino Saturnino Martinez Vazquez Wael
True, this is also what I am thinking about doing... Johan Compagner wrote: If you dont want to use an original object why not just clone/create a copy of the original end use that and then copy the values over again? (i think beanutils or something van do that for you) On 11/18/08, Nino

Re: Check a checkbox when focus on a textbox

2008-11-21 Thread Swanthe Lindgren
You probably want to call your checker function on the onkeypressed event instead of the onfocus event. But none of this is the wicket way! With wicket you can use an AjaxFormComponentUpdatingBehavior(onkeypressed) on the text field which updates your model and rerender the checkbox.

Re: Properties file

2008-11-21 Thread Srikanth.NT
I think you could use setStyle of Session object with a text test, prod. And rename your files into MyApplication.properties (default when you dont set the style), MyApplication_test.properties(when style = test) and MyApplication_prod.properties (when style=prod) Regards, Srikanth NT -

WicketTester and inmethod grid

2008-11-21 Thread JesperA
Cheers Im trying to test our wicket app with WicketTester and it works fine, but now when I try to test the EditableTreeGrid from inmethod Ive run into some problems. I want o add values to my cells but I dont know what the id's are. So is there a way to do this? Here is a bit of our

Composite input components not updating model

2008-11-21 Thread fstof
Hi Thank you all for an incredibly helpful mailing list and a great framework My problem is this I have a form that gets submitted with an ajax button On the form I have a couple of composite input components. I followed the example in the book Wicket in action (sample chapter 8) to create the

datatable and access to toolbars

2008-11-21 Thread Alex Parvulescu
Hello, i have a question about the toolbars in the DataTable component. my use case is this : i want to embed a small editor in a bottom toolbar.Its a simple ok / cancel panel. I see that there no access to the 'bottomToolbars' variable in the DataTable its private and final and has no

mount outside init

2008-11-21 Thread Mathias P.W Nilsson
Hi! I'm building an application where I want to set variation and other settings determined by the path lets say a user request myapplication/customer1 I want to mount /customer1 to Base.class. I can do this in init by what if I add another customer via admin. How can I mount /customer2

Re: Properties file

2008-11-21 Thread jWeekend
This is a good way to achieve the required effect. If you have a custom session you could set the style in the constructor. You could also check some system variable (passed in to the JVM with the -D switch on the command line) so you don't have to recompile your app every time you want to

Re: mount outside init

2008-11-21 Thread Michael Sparer
Do you really have different Pages (= Classes) for each customer? If not, then just mount the customer page with e.g. IndexedParamUrlCodingStrategy, add the customer name to the PageParameters and retrieve it then in the pages constructor. e.g. PageParameters params = new PageParameters();

Re: Compoundpropertymodel with shadow map?

2008-11-21 Thread Nino Saturnino Martinez Vazquez Wael
Ok great.. Seems like SerializationHelper.clone and just a normal compound model could work.. Francisco Diaz Trepat - gmail wrote: Don't know, but LOL. This might be an instancing issue in which special handling is good for this scenario but seems to be fine for most cases. And in a lazy TDD

Re: Composite input components not updating model

2008-11-21 Thread fstof
Hahaa... Ive sorted it out... My stupid mistake... I have my own implementation of Session and override the cleanupFeedbackMessages() but did not implement anything in it, so my messages remained in the session, and buggered everything up Thanks fstof wrote: Hi Thank you all for an

Thank you for wicketstuff-annotation!

2008-11-21 Thread Charlie Dobbie
I recently encountered the wicketstuff-annotation project, and now mount all my pages via annotations. Thank you for this project! Gets a lot of Page configuration out of the Application subclass and back to where it should be. After seeing the mount scanner, I was very pleased to note that the

Re: mount outside init

2008-11-21 Thread Mathias P.W Nilsson
Yes it make sence but I would not want a pair here. I would like http//sub.domain.com/customer1 not http//sub.domain.com/customer/customer1 -- View this message in context: http://www.nabble.com/mount-outside-init-tp20619679p20620631.html Sent from the Wicket - User mailing list archive at

Re: Very custom URL mapping

2008-11-21 Thread kan
If wicket cannot do it, try http://tuckey.org/urlrewrite/ 2008/11/19 Leszek Gawron [EMAIL PROTECTED]: Hello I would like to achieve the following url space: / redirects to /form /form - home page with a from /form?something - followup of a home page's form /resources/*.css

Re: mount outside init

2008-11-21 Thread Srikanth.NT
I think you can have the homepage handle that for you. As Micheal said, you can use Index url strategy on the home page class. So when you access the http://sub.domain.com/, HomePage.class will know that no parameter is passed. And if http://sub.domain.com/customer1 is accessed, then

Re: mount outside init

2008-11-21 Thread Mathias P.W Nilsson
I can't get this to work. IF I do /customer1 then wicket tries to find a mount with this. -- View this message in context: http://www.nabble.com/mount-outside-init-tp20619679p20621876.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket 1.3.5 behind a front-end proxy

2008-11-21 Thread Roman Zechner
Maybe this is related to servlet mapping? http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-WicketServletMapping Roman Anton Veretennikov schrieb: To get Apache 2.2 to proxy around Wicket, I have the following defined: IfDefine PROXY ProxyPass

Re: datatable and access to toolbars

2008-11-21 Thread Igor Vaynberg
see #addbottomtoolbar() -igor On Fri, Nov 21, 2008 at 2:57 AM, Alex Parvulescu [EMAIL PROTECTED] wrote: Hello, i have a question about the toolbars in the DataTable component. my use case is this : i want to embed a small editor in a bottom toolbar.Its a simple ok / cancel panel. I see

Dojo 1.1 integration available from wicketstuff

2008-11-21 Thread Stefan Fußenegger
Hi folks, I just shared a new project called wicketstuff-dojo-1.1 [1], an integration of the Dojo JavaScript toolkit [2] into Wicket. This project is based on wicketstuff-dojo [3] and wicketstuff-push [4] (both based on dojo 0.4). However, not all of the components from wicketstuff-dojo have

Re: wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

2008-11-21 Thread Stefan Fußenegger
see http://www.nabble.com/Dojo-1.1-integration-available-from-wicketstuff-to20625220.html Michael Sparer wrote: Hi Julien, we're doing our last tests today and tomorrow and will put wicketstuff-dojo-1.1 into production by Monday. If no issues arise, we'll share it as a wicketstuff

Wicket 1.4m3 and Javascript

2008-11-21 Thread Herbert Winter
hello list, I try the following: In the Java-file I have a list of key/value pairs(coming from database), and I want to feed out the values of the props to js-Array like: String js=array = new Array(; for (int i = 0; i props.size(); i++) { XProperties p = (XProperties) props.get(i);

Re: Memory consumption per session

2008-11-21 Thread Ralf Siemon
Yes, each of the list items contains 10 child components, and all models are detached correctly. So the 2 KB per list item seem to be normal. We have not finally identified the large sessions as the root cause of the server crashes, but the 2 MB sessions caught our eyes immediately. One of our

Re: Memory consumption per session

2008-11-21 Thread Ralf Siemon
Thanks for the advice. Unfortunately we cannot do this here, because the ListViews contain Link components for user interaction. Actually I was wondering why it is necessary to keep all of the list items in the session when the next time the page is rendered the list items are regenerated

Re: Memory consumption per session

2008-11-21 Thread Igor Vaynberg
On Fri, Nov 21, 2008 at 9:18 AM, Ralf Siemon [EMAIL PROTECTED] wrote: Thanks for the advice. Unfortunately we cannot do this here, because the ListViews contain Link components for user interaction. you can generate a link yourself easily, let your custom listview implement ILinkListener and

Re: Memory consumption per session

2008-11-21 Thread Cristiano Kliemann
Martin, There's no xml dom generator. Instead, Wicket uses a simple stream. In the rendering phase, you can execute getResponse().write(...) to write anything to the browser. --Cristiano On Thu, Nov 20, 2008 at 2:11 PM, Martin Makundi [EMAIL PROTECTED] wrote: What is the out-of-the-box xml

Re: Memory consumption per session

2008-11-21 Thread Martin Makundi
Would it help using Bookmarkable links? ** Martin 2008/11/21 Igor Vaynberg [EMAIL PROTECTED]: On Fri, Nov 21, 2008 at 9:18 AM, Ralf Siemon [EMAIL PROTECTED] wrote: Thanks for the advice. Unfortunately we cannot do this here, because the ListViews contain Link components for user interaction.

Re: Memory consumption per session

2008-11-21 Thread Igor Vaynberg
yes, if you only use bookmarkable links you can remove items after they render. but like i said, component frameworks are not really made to handle modelling repeaters with 10K rows. each component has overhead, so when you are trying to render 10K*~10 components per row you end up with 100K

ListView model is CompoundPropertyModelListMyObject

2008-11-21 Thread kan
ListView model is CompoundPropertyModelListMyObject And when I populate items such what: protected void populateItem(final ListItemSaleTransfer item) { item.add(new Label(fullName)); } I getting error: WicketMessage: The expression 'fullName' is neither an index nor is it a method or field

Re: ListView model is CompoundPropertyModelListMyObject

2008-11-21 Thread Igor Vaynberg
item's model needs to be compound, not listview's -igor On Fri, Nov 21, 2008 at 9:45 AM, kan [EMAIL PROTECTED] wrote: ListView model is CompoundPropertyModelListMyObject And when I populate items such what: protected void populateItem(final ListItemSaleTransfer item) { item.add(new

Set the HTML id programmatically

2008-11-21 Thread Martin Letendre
I am usign this version of Wicket: 1.3.5 1- I would like to override an id for a TextArea programmatically textarea wicket:id=description id=toOverride name=description rows=10 cols=50

Re: Set the HTML id programmatically

2008-11-21 Thread James Carman
Have you tried using setMarkupId()? On Fri, Nov 21, 2008 at 3:08 PM, Martin Letendre [EMAIL PROTECTED] wrote: I am usign this version of Wicket: 1.3.5 1- I would like to override an id for a TextArea programmatically textarea wicket:id=description id=toOverride

RES: Set the HTML id programmatically

2008-11-21 Thread Bruno Cesar Borges
AttributeModifier does not work? -Mensagem original- De: Martin Letendre [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 21 de novembro de 2008 18:09 Para: users@wicket.apache.org Assunto: Set the HTML id programmatically I am usign this version of Wicket: 1.3.5 1- I would like to

Re: Set the HTML id programmatically

2008-11-21 Thread James Carman
Sorry, didn't see that second point there. Disregard On Fri, Nov 21, 2008 at 3:18 PM, James Carman [EMAIL PROTECTED] wrote: Have you tried using setMarkupId()? On Fri, Nov 21, 2008 at 3:08 PM, Martin Letendre [EMAIL PROTECTED] wrote: I am usign this version of Wicket: 1.3.5 1- I would

Re: Set the HTML id programmatically

2008-11-21 Thread Marc-Andre Houle
The attributeModifier behavior should do the trick. description.add(new AttributeModifier(id, true, myDescription)); See here http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/AttributeModifier.htmlfor mor details. Marc-Andre On Fri, Nov 21, 2008 at 3:19 PM, Bruno Cesar

Re: Set the HTML id programmatically

2008-11-21 Thread Igor Vaynberg
also need to call setoutputmarkupid(true) -igor On Fri, Nov 21, 2008 at 12:08 PM, Martin Letendre [EMAIL PROTECTED] wrote: I am usign this version of Wicket: 1.3.5 1- I would like to override an id for a TextArea programmatically textarea wicket:id=description

Authorization and authentication

2008-11-21 Thread Casper Bang
I'm trying to use the build-in authentication and authorization stuff of Wicket (1.4-rc1), as demonstrated on the examples page: http://wicketstuff.org/wicket13/index.html (there does not appear to be a http://wicketstuff.org/wicket14/index.html). However I can not see

Re: Usage of getString with parameters (model?)

2008-11-21 Thread Eyal Golan
A small addition, if anyone encounters this situation. After trying the new Model[]{bla}, it still didn't work for me. Looking at the code (Ernesto ;) ), I saw in PropertyVariableInterpolator.interpolate(...) that it is looking for a ${ mark. So in my properties file I had to change to be:

Make FeedbackMessages#add(FeedbackMessage) public?

2008-11-21 Thread Matthew Hanlon
Greetings! Is there any reason why FeedbackMessages#add(FeedbackMessage) is package private? I'd like to be able to just stick a FeedbackMessage directly in my Session rather than having to call add(Component, String, int), info(...), error(...), warn(...), fatal(...) or debug(...).

Re: Authorization and authentication

2008-11-21 Thread James Carman
It never was part of core. It's in wicket-auth-roles. On Fri, Nov 21, 2008 at 3:36 PM, Casper Bang [EMAIL PROTECTED] wrote: I'm trying to use the build-in authentication and authorization stuff of Wicket (1.4-rc1), as demonstrated on the examples page:

How to use Validatable to check all cells in a table?

2008-11-21 Thread metalotus
Hi, I have a DataTable and most cells are AjaxEditableLabel. These labels have IValidator's attached, and validate as soon as you finish typing in them. How do I run one big validation of all cells in my table? I need to kick it off programmatically. I think the solution involves

Re: How to use Validatable to check all cells in a table?

2008-11-21 Thread Jeremy Thomerson
I haven't used AjaxEditableLabel, but I would suspect that if you put your table in your form and added a FeedbackPanel to your form, a submit (or AjaxSubmit) would do your validation and display errors in the feedback panel (assuming like you said that you have validators added to the editable

Re: ListView model is CompoundPropertyModelListMyObject

2008-11-21 Thread kan
How to get appropriate item model inside populateItem method? Why ListView cannot do it automatically? 2008/11/21 Igor Vaynberg [EMAIL PROTECTED]: item's model needs to be compound, not listview's -igor On Fri, Nov 21, 2008 at 9:45 AM, kan [EMAIL PROTECTED] wrote: ListView model is

Re: ListView model is CompoundPropertyModelListMyObject

2008-11-21 Thread Jeremy Thomerson
There's a few ways: - Use PropertyListView - or override ListView and return return new CompoundPropertyModelT(super.getListItemModel(model, index)); (which is what the PropertyListView does) - or put this on your first line: item.setModel(new

Re: Wicket 1.4m3 and Javascript

2008-11-21 Thread Jeremy Thomerson
You could use TextTemplateHeaderContributor jt On Fri, Nov 21, 2008 at 10:56 AM, Herbert Winter [EMAIL PROTECTED]wrote: hello list, I try the following: In the Java-file I have a list of key/value pairs(coming from database), and I want to feed out the values of the props to js-Array

Passing simple data between java code and the template

2008-11-21 Thread Vinayak Borkar
Hi, I have some Javascript code in one of my pages. I want to keep this JS in the template file. However, this JS has a variable whose value is derived from a page parameter. For example, Is there a way I can do something like, ${value} in the template file and have the actual value be

Re: datatable and access to toolbars

2008-11-21 Thread Eyal Golan
Hi Alex, We had a similar situation. We want a bottom toolbar that has a drop down for selection of number of rows in a page. After a while another requirement was added: add links that open a popup window to change columns in the table and another one to open a popup for filtering the table. I