Re: Must wicket modify the input attribute name?

2007-10-24 Thread kent lai
It's ok, just wanted to verify if this was the current usage of the name. Always easier to have a workaround than to ask for some big change which probably does not benefit too many people ;) (not using id as js validator works with name, but it can also optionally work with embedded css

Re: Quick follow-up

2007-10-24 Thread JohannesK
Thanks for both replies. Oliver: setOutputMarkupPlaceholderTag() calls setOutputMarkupId(). Martijn: That explains a lot :) Oliver Lieven wrote: Hi, what about using products.setOutputMarkupId(true) ? regards, Oliver Martijn Dashorst wrote: Is the products a repeater

Re: Internationalization and Component orientation

2007-10-24 Thread Suad AlShamsi
Its working thank you so much. Jeremy Thomerson wrote: I haven't used the mechanism, but I believe that with all of your files (html / properties / etc), you should just be able to add the locale abbreviation to the end of the file to override the default content. For instance, if you can

Re: Button component bug - all uses of a Button cause a 302 redirect

2007-10-24 Thread Chris Lintz
Ok. Its a good thing.. I didnt know it was the default setting. I guess i should thank you because it exposed a classic issue seen when having SSL accelerators proxying requests to port 80 . The redirect was redirecting off https. I have fixed this by setting correct headers at the

Re: Wicket logo and badges anywhere?

2007-10-24 Thread Gerolf Seitz
well yeah, that would probably be too much. i'd still wear it on campus though to spread the word ;) Gerolf On 10/23/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 10/22/07, Gerolf Seitz [EMAIL PROTECTED] wrote: i was actually thinking about it too. imagine you can spot wicket users on

Logging to a File

2007-10-24 Thread alshamsi
Hi All, How can I log to a file using log4j?! -- View this message in context: http://www.nabble.com/Logging-to-a-File-tf4682704.html#a13380693 Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Logging to a File

2007-10-24 Thread Jan Kriesten
How can I log to a file using log4j?! documentation is found here: http://slf4j.org/ there's a wrapped implementation for log4j. regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

testcase click button

2007-10-24 Thread Emanuele Gesuato
Hi there, I'm writing a testcase but i don't know how to click in a type=button input component. If i have a input type=submit .. / component i can click on it using something similar to: FormTester form = tester.newFormTester(myformpath); form.submit(mySubmitButtonId); But using a input

Re: Accessing PageMap ?

2007-10-24 Thread Maurice Marrink
What johan means is that you don't have to call getUser in the onbeginrequest because your pages will already call getUser. hence the user will be lazily loaded and possibly not on every request, just when you need to. As opposed to calling getUser in the onbeginrequest where it will be loaded

Re: wicketstuff push and sharing an IChannelService

2007-10-24 Thread Michael Sparer
Hi Xavier, first of all thank you for the effort you've done for the push-project. Up to now it really provided the features I need for my app. But now I'm kind of stuck. My problem is: I have two panels on one page. Both panel subscribe themselves as ChannelListener for the same channel. But

Re: Cache Panel

2007-10-24 Thread Joe Toth
How would I render the component and stick the contents into a label? If possible, I would like to do something like the following... String render() { String markup = cache.get(); if (cacheExpired || markup == null) { markup = render(); } return markup; } I know there

Re: Button component bug - all uses of a Button cause a 302 redirect

2007-10-24 Thread Matej Knopp
You can call setRedirect(false) during the request in the onSubmit handler, that should prevent wicket from redirecting in that particular case. -Matej On 10/24/07, Chris Lintz [EMAIL PROTECTED] wrote: Ok. Its a good thing.. I didnt know it was the default setting. I guess i should thank

AjaxEditableLabel on empty Labels (not Null)

2007-10-24 Thread Jan Kriesten
Hi, I have the following problem: In a DataTable I have AjaxEditableLabel-Entries, which can be empty (i.e. not Null). I want to make them editable, but since there's nothing to click on, I can't edit them. Is there a way to handle this? Best regards, --- Jan.

Re: AjaxEditableLabel on empty Labels (not Null)

2007-10-24 Thread Gerolf Seitz
hm, i thought that in the case of an empty string or null the AjaxEditableLabel displays ... Gerolf On 10/24/07, Jan Kriesten [EMAIL PROTECTED] wrote: Hi, I have the following problem: In a DataTable I have AjaxEditableLabel-Entries, which can be empty (i.e. not Null). I want to make

Re: AjaxEditableLabel on empty Labels (not Null)

2007-10-24 Thread Jan Kriesten
hi gerolf, hm, i thought that in the case of an empty string or null the AjaxEditableLabel displays ... no, it only displays that if null, not on empty strings. best regards, --- jan. - To unsubscribe, e-mail: [EMAIL

Re: testcase click button

2007-10-24 Thread Nino Saturnino Martinez Vazquez Wael
If youre using ajax call you should use tester.executeAjaxEvent(componentPath, event) -Nino Emanuele Gesuato wrote: Hi there, I'm writing a testcase but i don't know how to click in a type=button input component. If i have a input type=submit .. / component i can click on it using

Re: AjaxEditableLabel on empty Labels (not Null)

2007-10-24 Thread Gerolf Seitz
of course, you're right. imho, the defaultNullLabel should really be a defaultNullOrEmptyLabel. Gerolf On 10/24/07, Jan Kriesten [EMAIL PROTECTED] wrote: hi gerolf, hm, i thought that in the case of an empty string or null the AjaxEditableLabel displays ... no, it only displays that

getRealPath resolving differently on trunk

2007-10-24 Thread Dipu Seminlal
Hi all, I am trying to migrate my application to the latest version of wicket, I have something like this, which works as expected in wicket 1.2.6 WebMarkupContainer logo = new WebMarkupContainer(ogo); AttributeModifier am = new AttributeModifier(src, new Model(

Re: Refreshing components with new data w/o altering the backing model

2007-10-24 Thread Swaroop Belur
Igor, Regarding the stated problem: As we know ,the formcomponent's getValue method returns value from the model for the component when rendering if raw input is equal to no raw input constant. So basically the problem is that component's model should not be updated until the user submits the

OutOfMemoryError

2007-10-24 Thread Suad AlShamsi
Hi All, I am getting this error often since I started using Wicket?! Any idea what is the real cause for it?! *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception*

Re: OutOfMemoryError

2007-10-24 Thread Bruno Borges
Try increasing your PermGen: -XX:PermSize=64m -XX:MaxPermSize=64m The PermGen is not increased when you put parameters like -Xms and -Xmx. These only manipulate the heap size (the total amount of Eden, Old and Survivors). This problem occurs in a development or deployment (production)

Re: Logging to a File

2007-10-24 Thread Suad AlShamsi
Thanks Jan Kriesten wrote: How can I log to a file using log4j?! documentation is found here: http://slf4j.org/ there's a wrapped implementation for log4j. regards, --- jan. - To unsubscribe, e-mail: [EMAIL

Re: getRealPath resolving differently on trunk

2007-10-24 Thread Dipu Seminlal
Please ignore this question, that was bad me at work ( very very stupid question ) On 10/24/07, Dipu Seminlal [EMAIL PROTECTED] wrote: Hi all, I am trying to migrate my application to the latest version of wicket, I have something like this, which works as expected in wicket 1.2.6

AutoCompleteTextField

2007-10-24 Thread MarinaKasatka
Hi How can make a AutoCompleteTextField react on the Enter button and submit the form? Как сделать чтобы AutoCompleteTextField делал submit формы только с Enter ? -- View this message in context: http://www.nabble.com/AutoCompleteTextField-tf4683992.html#a13384570 Sent from the Wicket - User

Clearing Session

2007-10-24 Thread Suad AlShamsi
Hi All, After submitting a form the input data will be persisted in the database and the user will be directed to another page. How can I clear the input data from the session?! - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: OutOfMemoryError

2007-10-24 Thread Bruno Borges
Well, you will have to deal with it. :) Lots of re-deploys will increase the number of class objects in the PermGen. You can increase with those parameters, but after 7823786 re-deploys you will have to restart your application server :) cheers On 10/24/07, Suad AlShamsi [EMAIL PROTECTED]

Ajax Bug when using CryptedUrlWebRequestCodingStrategy ???

2007-10-24 Thread marcus dickerhof
Hi, my webapp works fine as long as I do not obfuscate the urls using CryptedUrlWebRequestCodingStrategy. When I use it, Ajax will not work. For instance when I want to update a panel on my page, the Ajax Response XML will be displayed instead ?xml version=1.0 encoding=UTF-8 ? - ajax-response +

Re: Ajax Bug when using CryptedUrlWebRequestCodingStrategy ???

2007-10-24 Thread marcus dickerhof
Sorry I forgot to send some additional infos: I use Wicket 1.3 Beta 4 The code looks like this Radio r = new Radio(radioCompany, new Model( company.getCompanyid() )); r.add(new AjaxEventBehavior(onclick){ protected void onEvent(AjaxRequestTarget target) { final PartnerBasePage myPage =

Non-serializable objects and efficiency

2007-10-24 Thread WicketKeeper
Hi I'm new to Wicket to this might be an ultra-dum question :) I'm creating a wicket application that gets its data from an online resource. The connection logic to that resource is in an external jar and most of those classes don't implement Serializable. Fore ease of explanation, let's call

Re: Ajax Bug when using CryptedUrlWebRequestCodingStrategy ???

2007-10-24 Thread Swaroop Belur
FYI http://www.nabble.com/Wicket-Beta4-and-Ajax-Links-tf4616750.html On 10/24/07, marcus dickerhof [EMAIL PROTECTED] wrote: Sorry I forgot to send some additional infos: I use Wicket 1.3 Beta 4 The code looks like this Radio r = new Radio(radioCompany, new Model( company.getCompanyid()

Re: Ajax Bug when using CryptedUrlWebRequestCodingStrategy ???

2007-10-24 Thread marcus dickerhof
Thanks for the reply, but does apply to all ajax features? I am not using an Ajax Link explicitly.I add an AjaxEventBehavior to a radio component. Do you know if there is going to be a bugfix in Beta 5? Thanks! 2007/10/24, Swaroop Belur [EMAIL PROTECTED]: FYI

Re: AutoCompleteTextField

2007-10-24 Thread Francisco Diaz Trepat - gmail
Zdrasty This is from beta4 (I BOLDED the important stuff): case KEY_ENTER: if(selected-1){ obj.value=getSelectedValue(); hideAutoComplete(); hidingAutocomplete=1; } else if

Re: Refreshing components with new data w/o altering the backing model

2007-10-24 Thread Igor Vaynberg
i dont think this case warrants repainting the form component via ajax when all you really have to do is write simple js that puts the selected text into the textfield. that said, there are many ways to skin the cat... -igor On 10/24/07, Swaroop Belur [EMAIL PROTECTED] wrote: Igor, Regarding

Re: Cache Panel

2007-10-24 Thread Igor Vaynberg
you are talking about the markup for an actual component? you store that in the database? in that case let your component implement imarkupcachekeyprovider that generates different keys based on some timeout or whatever it is you need. -igor On 10/24/07, Joe Toth [EMAIL PROTECTED] wrote: How

Forcefull Expiration of Page on Navigation

2007-10-24 Thread alshamsi
Just looking out for some suggestion. I have a situation where on successfull navigation of a wizard like interface I want to expire all my previous page. Like I am going from Page 1 to Page 2 to Page 3 and last Page. The user should not be allowed to use the browser back and navigate to any of

Re: updating components on Page from ModalWindow's internal Page's components

2007-10-24 Thread Kirk Israel
I came to a similar conclusion shortly before reading this. So now I seem to be updating in the correct place, but I'm having trouble getting the image component to swap out within the onClose(AjaxRequestTarget pTarget) Inside the ModalWindow, assuming I previously did a setOutputMarkupId on the

Re: javascript settimeout on ajaxeventtarget

2007-10-24 Thread James Law
Matej, Thanks for your assistance! I put together a blog post on how I went about it. Critique welcome: http://jlawmi.blogspot.com/2007/10/modifying-wicket-ajax-javascript-output.html PS: Next problem. If I have a ModalWindow open, how can I make it close automatically when the DIV/IFrame

Re: Acegi and Wicket-auth-roles

2007-10-24 Thread Michael Sparer
Hi, I get the same Nullpointer when calling SecurityContextHolder.getContext().getAuthentication().getAuthorities(); (getAuthentication returns null) when I do a _refresh_ on the page which is displayed immediately after the login (and requires authorization), which seems weird to me ... any

Setting charset of javascript includes?

2007-10-24 Thread kent lai
Hi, I was using jquery validator plugin, and using wicket's HeaderContributor.forJavascript to include my script file. However, for IE, it was been recommended to append the attribute charset=ISO-8859-1 to the script tag to enable it to work. Is there a way (short of maybe subclassing

Re: Setting charset of javascript includes?

2007-10-24 Thread kent lai
Hmm, or maybe even subclassing does not work as well digging into the source, I might need to do my own custom renderHead to write that out. Of course, including it directly in the html might be a better idea then... anyone got any thoughts? On 25 Oct 2007, at 1:25 AM, kent lai

Re: Acegi and Wicket-auth-roles

2007-10-24 Thread Michael Sparer
Allright, I solved it. The error was the order of the filters in the web.xml. It is _very_ important to let the acegi filter run _before_ the wicket filter. e.g. !-- acegi checks every request -- filter-mapping filter-nameAcegi HTTP Request Security Filter/filter-name

Re: Reporting Tool and Portal Integration

2007-10-24 Thread Sean Sullivan
There's a Wicket / JasperReports library in SVN on SourceForget: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-contrib-jasperreports/ Sean On 10/23/07, mehdi b [EMAIL PROTECTED] wrote: 1.How can I create report in a wicket web application? Is there any solution

Most Repeater View examples on WicketStuff give Internal Errors

2007-10-24 Thread Roy van Rijn
Hey, Today I wanted to take a look at some of the Repeater View examples wicketstuff offers [http://www.wicketstuff.org/wicket13/repeater/]. But it seems they all give a Internal Error except the top one. :( Roy - To

Re: Acegi and Wicket-auth-roles

2007-10-24 Thread Erik van Oosten
Thanks for adding this to the wiki! Regards, Erik. Michael Sparer schreef: and _not_ vice versa. otherwise the wicket servlet looks for authorities that haven't been set yet. ... always the easy and logical things waste my time ;-) -- Erik van Oosten http://2008.rubyenrails.nl/

Re: Clearing Session

2007-10-24 Thread Johan Compagner
you go to another page so the previous page is not in the session anymore (wicket 1.3) On 10/24/07, Suad AlShamsi [EMAIL PROTECTED] wrote: Hi All, After submitting a form the input data will be persisted in the database and the user will be directed to another page. How can I clear the

Re: Most Repeater View examples on WicketStuff give Internal Errors

2007-10-24 Thread Johan Compagner
something wrong with the example data, got deleted or something redeployed examples johan On 10/24/07, Roy van Rijn [EMAIL PROTECTED] wrote: Hey, Today I wanted to take a look at some of the Repeater View examples wicketstuff offers [http://www.wicketstuff.org/wicket13/repeater/]. But it

Re: Non-serializable objects and efficiency

2007-10-24 Thread Johan Compagner
you can't keep hard (must be transient) references to those resources so you always should be able to look it up again. by, for example, some id that isn't transient johan On 10/24/07, WicketKeeper [EMAIL PROTECTED] wrote: Hi I'm new to Wicket to this might be an ultra-dum question :)

How to set focus; Editable Table

2007-10-24 Thread mehdi b
Hi All, I have two questions: 1.How can we set focus on a component for example a text field, specially when the form is shown for the first time? 2. I need a table, which I show my data. There is a column which has an edit link for every row, when I clicked on that link, the row goes in edit

Re: How to set focus; Editable Table

2007-10-24 Thread James Law
mehdi b wrote: _ Hi All, I have two questions: 1.How can we set focus on a component for example a text field, specially when the form is shown for the first time? 2. I need a table, which I show my data. There is a column which has an edit link for every

Re: wicketstuff push and sharing an IChannelService

2007-10-24 Thread Xavier Hanin
Michael, As I said I don't use the ChannelService myself, but I used to have similar troubles with the PushService, which I think I finally fixed, but it wasn't easy. Since the fix is in TimerChannelBehavior (which is used by both the push and channel timer based implementation, it should work

Re: i18n feedbackmessages

2007-10-24 Thread nico
another issue, Button.onComponentTag states in its documentation tag: * bNOTE/b. For a ttlt;buttongt;/tt the ttvalue/tt * attribute is not rendered, markup needs to be added within the button * to display the button's label. * /p however if i add markup the i18n is gone. i

FormComponentFeedbackIndicator not triggered with 1.3b4?

2007-10-24 Thread Thies Edeling
Hi all, For validation purposes I've added a class exending AbstractValidator to a TextField. Feedback is provided by adding a FormComponentFeedbackIndicator to the TextField, triggered by a AjaxFormValidatingBehavior.addToAllFormComponents(etc... This whole thing works with beta 3 however

Configuring AJAX tree

2007-10-24 Thread David Struck
I've been able to get an AJAX tree up and running and I'm very happy with how simple it was. My HTML is: html body span wicket:id=myTree/span /body /html and my Java is: ... public TreePage() { DefaultMutableTreeNode root = ... TreeModel treeModel = new DefaultTreeModel(root);

Re: Javascript call on AjaxFallbackDefaultDataTable

2007-10-24 Thread Cristi Manole
In case anyone needs to do the same thing, I managed to do it the following way: [i know it's kinda sucky... there's probably a better way to do this, but at least i get what i need] class MyAjaxFallbackDefaultDataTable extends DataTable { private static final long serialVersionUID

RE: i18n feedbackmessages

2007-10-24 Thread Jeremy Thomerson
Not at a computer, but have you tried: button.add(new SimpleAttributeModifier(value, getString(your.key)); Or button.add(new SimpleAttributeModifier(value, new ResourceModel(your.key)); It may not be called ResourceModel - the name is escaping me right now. Jeremy Thomerson -- sent from a

Re: Configuring AJAX tree

2007-10-24 Thread Matej Knopp
Hi, unfortunately the Tree class is not able to grow horizontally, neither it is possible for it to have a horizontal scrollbar. If you need this features, you have to use the new LinkTree (or it's superclass BaseTree) from wicket 1.3. -Matej On 10/24/07, David Struck [EMAIL PROTECTED] wrote:

Re: FormComponentFeedbackIndicator not triggered with 1.3b4?

2007-10-24 Thread Matej Knopp
No, there shouldn't be as far as I know. This might be a regression though, could you file a jira issue and attach a quickstart that demonstrates the problem? Thanks. -Matej On 10/24/07, Thies Edeling [EMAIL PROTECTED] wrote: Hi all, For validation purposes I've added a class exending

hot deploy new/updated components?

2007-10-24 Thread Mike03
Hi, I'm at a new job that has a very ugly JSP presentation layer and I'm really missing Wicket. I think I can make a solid case for moving to Wicket except for the issue of hot deploy. On the development side, a server restart takes about 2 minutes so they need the hot deploy of JSP code for

Re: Setting charset of javascript includes?

2007-10-24 Thread Matej Knopp
Why do you want to append the charset attribute? Why do you need it? AFAIK if the charset is ommited the browser should use document charset for the javascript as well. I don't understand the usecase here. -Matej On 10/24/07, kent lai [EMAIL PROTECTED] wrote: Hmm, or maybe even subclassing does

Re: Ajax Bug when using CryptedUrlWebRequestCodingStrategy ???

2007-10-24 Thread Matej Knopp
I believe this is already fixed in trunk, so it will also be part of beta 5. -Matej On 10/24/07, marcus dickerhof [EMAIL PROTECTED] wrote: Thanks for the reply, but does apply to all ajax features? I am not using an Ajax Link explicitly.I add an AjaxEventBehavior to a radio component. Do

How do I dynamically populate TreeTable nodes

2007-10-24 Thread lubosp
I use extensions TreeTable and populating the all nodes is quite expensive. So I would like to display initially only first level of the nodes and keep the nodes with children collapsed. Only if they are getting expanded, I would populate the children of the currently expanded node. I have hard

JSF: standards versus OSS

2007-10-24 Thread Bruno Borges
For those who may be interested in JavaServer Faces or alternatives frameworks like Wicket, I posted in my blog my point-of-view about the differences, and why JSF is not cool (today). http://blog.brunoborges.com.br/2007/10/jsf-today-standards-versus-oss.html Regards, -- Bruno Borges