Re: PageLink deprecated

2010-01-19 Thread Igor Vaynberg
for nonbookmarkables you can use Link and simply override equals/hashcode to create the pageidentity -igor On Mon, Jan 18, 2010 at 11:39 PM, Emond Papegaaij emond.papega...@topicus.nl wrote: That's what I'm trying to say: it can't be accomplished by either BookmarkablePageLink or Link. Link

Re: PageLink deprecated

2010-01-19 Thread Martijn Dashorst
This discussion is relevant: http://markmail.org/message/rwqrnvraoypwgbsj In that discussion Maurice opted for removing PageLink altogether and securing its functionality in SecurePageLink inside Wicket Security. I guess that is a good option. Martijn On Tue, Jan 19, 2010 at 9:04 AM, Igor

Re: OnChangeAjaxBehavior only first time

2010-01-19 Thread Antoine van Wel
Hi Jeremy, No, the focus stays on the textfield, that's not the problem. Let me rephrase: Initially the problem is the same as described by Filippo: I have a form which triggers an update of another component which is outside the form. When starting to type in the textfield, the AJAX update is

StatelessLink

2010-01-19 Thread kirillkh
Hi, I've been getting a lot of grief trying to make some of my pages stateless in Wicket 1.4.5 with Tomcat 6.0. Here's one thing that doesn't work. I'm trying to make a session-resistant (but *not* bookmarkable) link on the homepage that should work no matter if the page exists. If the page

Re: Getting control of Wicket Session.

2010-01-19 Thread Pedro Santos
Wicket application has his entry point at an filter. An simple user request to server will keep his session alive. http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpSession.html#getLastAccessedTime()

Adding a form field at run time... is it possible?

2010-01-19 Thread David Legg
Hi, Is it possible to add new form fields at run time? I'm new to Wicket and was hoping this framework would allow me to write a data driven editor. The idea is to get the data's schema at run time and then automatically create a suitable form to allow a user to edit the data. Everything

Re: PageLink deprecated

2010-01-19 Thread Jeroen Steenbeeke
Which is what I suggested earlier in this discussion as well. So long as nobody touches the IPageLink interface then simply adapting SecurePageLink to use IPageLink directly would work without any significant break in SecurePageLink's API. That way there are no icky constructors and no unnecessary

RE: Adding a form field at run time... is it possible?

2010-01-19 Thread Martin Asenov
Hi David, You may try to separate different forms into different panels, since panels have their own markup. They will hold specific forms suitable for your needs. Anyway, if you just need to include only one extra field, you can put it there, but do as follows:

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Pedro Santos
Everything was going well until it dawned on me that the markup page has to include all the Wicket tags to match the Wicketcomponents and if they don't you get an exception. You can override the onComponentTag method from the component that is throwing the exception, and remove the tag

Re: PageLink deprecated

2010-01-19 Thread Emond Papegaaij
But leaving IPageLink without any classes using it seems a bit weird to me. I think IPageLink should be removed with PageLink and probably be moved to wicket-security. On Tuesday 19 January 2010 11:36:59 Jeroen Steenbeeke wrote: Which is what I suggested earlier in this discussion as well. So

Re: StatelessLink

2010-01-19 Thread kirillkh
Further experiments show that that stateless forms suffer from the same issue. How come no one has run into it before? On Tue, Jan 19, 2010 at 11:22 AM, kirillkh kiril...@gmail.com wrote: Hi, I've been getting a lot of grief trying to make some of my pages stateless in Wicket 1.4.5 with

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread David Legg
Thanks for the ideas Martin + Pedro. It looks as if I'm trying to do something Wicket isn't designed for ;-) I wonder if another technique would be to dynamically modify the markup using the DOM to add the missing wicket markers as required before rendering takes place. Anyway thanks again

RE: Adding a form field at run time... is it possible?

2010-01-19 Thread Martin Asenov
David, I'm pretty sure that everything you want could be accomplished through Wicket. Anyway, if you describe the use case completely, I can give further advices on what to do. Regards, Martin -Original Message- From: David Legg [mailto:david.l...@searchevent.co.uk] Sent: Tuesday,

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Pedro Santos
Wicket tags are meant to be used to make an template. The final markup will to be generated from that template. Do you realize that you are talking about dynamically generate an template? There is no need for. Take a closer look at repeaters. On Tue, Jan 19, 2010 at 10:59 AM, David Legg

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Martijn Dashorst
Did you read [1] ? Martijn [1] http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ On Tue, Jan 19, 2010 at 1:59 PM, David Legg david.l...@searchevent.co.uk wrote: Thanks for the ideas Martin + Pedro. It looks as if I'm trying to do something Wicket isn't designed for ;-)

CheckBoxMultipleChoice used in a Wizard Panel

2010-01-19 Thread Riccardo Trombini
Hi ! I am having problems with a CheckBoxMultipleChoice which I use in a DynamicWizardStep. I am not able to access the list with the checked boxes. I try to access on the list by adding an AbstractFormValidator and overwriting the method validate. public final class DetailWriteArticleStep

Wicket+Guice

2010-01-19 Thread Peter Karich
Hi, Thanks to Jeremy Thomerson who pointed me to jweekend [1] which helped me a lot to get started with a simple CRUD webapp based on wicket and guice (+db4o) see [2] for a screenshot. I have now the following problems: 1. If I select an Event (row of DataView) and want to remove it directly

Re: Newbie Questions

2010-01-19 Thread Peter Karich
Hi Nino, hmmh I studied the link a lot but I couldn't find a link or a source snippet to see how this calendar view might be created. I only see monthly views of the yui calendar. Do you mean this can be changed to a week-view? Would you mind helping me again here? Regards, Peter. Hi Peter

Re: Newbie Questions

2010-01-19 Thread Reinout van Schouwen
Op dinsdag 19-01-2010 om 15:16 uur [tijdzone +0100], schreef Peter Karich: hmmh I studied the link a lot but I couldn't find a link or a source snippet to see how this calendar view might be created. I only see monthly views of the yui calendar. Do you mean this can be changed to a

Re: Newbie Questions

2010-01-19 Thread nino martinez wael
Whatever can be done here : http://developer.yahoo.com/yui/calendar/ You should be able todo with wicket integration. It might be a older release of yui though. 2010/1/19 Peter Karich peat...@yahoo.de: Hi Nino, hmmh I studied the link a lot but I couldn't find a link or a source snippet to

Re: Newbie Questions

2010-01-19 Thread nino martinez wael
I think I used this one: http://developer.yahoo.com/yui/examples/calendar/popup.html in conjunction with the wicket integration. 2010/1/19 nino martinez wael nino.martinez.w...@gmail.com: Whatever can be done here : http://developer.yahoo.com/yui/calendar/ You should be able todo with wicket

Re: Wicket+Guice

2010-01-19 Thread nino martinez wael
hmm I have something here aswell: http://wheresmyevent.com/search if you click one of the little date icons it's month displayed in days, is this not what you are looking for ? 2010/1/19 Peter Karich peat...@yahoo.de: Hi, Thanks to Jeremy Thomerson who pointed me to jweekend [1] which helped

Re: Calendar Component [was Newbie Questions]

2010-01-19 Thread Peter Karich
Hi Nino, hi Reinout! hmm I have something here aswell: http://wheresmyevent.com/search if you click one of the little date icons it's month displayed in days, is this not what you are looking for ? Not really :-) I do not look for a datepicker ... I thought more of a panel where the

jazzy spell cheker

2010-01-19 Thread tubin gen
I am trying to use jazzy spell cheker for my app. I end up with this error message Jan 18, 2010 1:11:13 AM org.tinymce.spellchecker.TinyMCESpellCheckerServlet doPost WARNING: There is no dictionaries for the language=en org.tinymce.spellchecker.SpellCheckException: There is no dictionaries for

notification system

2010-01-19 Thread chinedu efoagui
hello please am trying to build a notification system on an application.I have completed most of work. where I am stuck is how to trigger events that will fire the notifications in the following scenerios 1. when the user logs into the application. it informs the user of x number of messages. 2.

Breadcrumb title

2010-01-19 Thread Marek Šabo
Hi all, I would like to ask if anyone knows how to show e.g. read-only breadcrumb in title tag. I got internationalized page and I was thinking about sort of title properties from i18n property files for specific pages but I'm using inheritance (sort of header-footer etc. superclass) and title is

Re: notification system

2010-01-19 Thread Ernesto Reinaldo Barreiro
If you have a common denominator on your pages why not have there some panel that inform the user about new messages? e.g. with a link that opens up some kind of modal (or non modal) window with the messages. This panel could contain and AJAX timer that gets back to the server once in a while and

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread David Legg
Thanks again Martin, Pedro and Martijn. I've had that Aha! moment when something comes into focus! I understand now what Pedro meant about templates. Also I've had a quick peek at WicketWebBeans (WWB). I see that WWB effectively creates a specialist Wicket component that does most of what I

Re: notification system

2010-01-19 Thread chinedu efoagui
thank you Ernesto I was actually looking for a push solution but i will look at what you just described On 1/19/10, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: If you have a common denominator on your pages why not have there some panel that inform the user about new messages? e.g.

Re: jazzy spell cheker

2010-01-19 Thread Dane Laverty
I tried to use Jazzy with TinyMCE on Wicket and also couldn't get it to work. If it helps, i got a different error when I put the english.0 dictionary file in the same package as the JazzySpellChecker class, so I think that signifies a step in the right direction. You can see what I did by

RE: notification system

2010-01-19 Thread Stefan Droog
Maybe you can have a look at Wicketstuff's solution: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicketstuff-core/push-parent/push/ -Original Message- From: chinedu efoagui [mailto:chinedub...@gmail.com] Sent: Tuesday, January 19, 2010 5:05 PM To:

Re: notification system

2010-01-19 Thread Pedro Santos
Can look how FeedbackMessages and FeedbackPanel work too On Tue, Jan 19, 2010 at 1:33 PM, chinedu efoagui chinedub...@gmail.comwrote: hello please am trying to build a notification system on an application.I have completed most of work. where I am stuck is how to trigger events that will

Re: Breadcrumb title

2010-01-19 Thread Pedro Santos
There are something about on the list, you can receive as contructor parameter the last page or component visited. Then you assemble the title like: this.assembledTitle = lastComponent.assembledTitle + this.getLocalizer().getString(TITLE, this) On Tue, Jan 19, 2010 at 1:41 PM, Marek Šabo

Re: notification system

2010-01-19 Thread chinedu efoagui
is there any documentation on how to use the wicket stuff push solution? On 1/19/10, Pedro Santos pedros...@gmail.com wrote: Can look how FeedbackMessages and FeedbackPanel work too On Tue, Jan 19, 2010 at 1:33 PM, chinedu efoagui chinedub...@gmail.comwrote: hello please am trying to

Re: Calendar Component [was Newbie Questions]

2010-01-19 Thread nino martinez wael
If you need something like that, I'd consider rolling an integration towards this http://www.bloggingdeveloper.com/post/jQuery-Week-Calendar-An-Easy-to-Implement-Google-Calendar-like-jQuery-Calendar-Plugin.aspx and if it's too complicated roll your own using panels and a mixture of ajax etc. I

Re: notification system

2010-01-19 Thread nino martinez wael
I last time I did this I ended up using http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.toaster.ToasterSample , it's a pull solution though using a ajax timer. But I had the exact same requirement as you or so it looks. 2010/1/19 chinedu efoagui

recorder component onsubmit

2010-01-19 Thread wic...@geofflancaster.com
Can anyone tell me the difference between what's called when a recorder component is called on a palette selecting an item and when a form is submitted? i'm trying to have the model of a palette updated outside of a form submit method.

Re: Property Expression Language : Combing bean value and string ?

2010-01-19 Thread Igor Vaynberg
you can easily create your own AbstractColumn that does the interpolation. -igor On Mon, Jan 18, 2010 at 10:55 PM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings all, In my Datatable , I use PropertyColumn to create my columns. I want to know whether using Wicket EL  , I can

Re: CheckBoxMultipleChoice used in a Wizard Panel

2010-01-19 Thread Igor Vaynberg
if there were no validation errors the selected list should be available in the model. -igor On Tue, Jan 19, 2010 at 5:48 AM, Riccardo Trombini riccardo.tromb...@csnc.ch wrote: Hi ! I am having problems with a CheckBoxMultipleChoice which I use in a DynamicWizardStep. I am not able to access

Image name changing in dev server

2010-01-19 Thread VGoel
All our other images works fine in dev server. In local environment image in wizard also works but not in dev. The name of image is change from circlegray.JPG to circlegray_en_US.JPG. Its happening in wizard component only. Our environment is Websphere 6.1 and we are using Wicket Servlet. Any

palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
Can anyone tell me which methods are called on a palette when it is submitted? i know the recorder keeps track of the selected items but how are they persisted after a form submit? ie. what method is called to make them stay selected?

Re: Image name changing in dev server

2010-01-19 Thread Igor Vaynberg
even though the name of the image is changed to _en_US the original image should still be tried if wicket cannot find the more specific one. please debug and see where it goes wrong. -igor On Tue, Jan 19, 2010 at 9:49 AM, vg...@osc.state.ny.us wrote: All our other images works fine in dev

Re: palette onSubmit

2010-01-19 Thread Igor Vaynberg
Recorder is a HiddenField-FormComponent so the regular form component workflow methods are called on it. -igor On Tue, Jan 19, 2010 at 10:02 AM, wic...@geofflancaster.com wic...@geofflancaster.com wrote: Can anyone tell me which methods are called on a palette when it is submitted? i know

Re: Image name changing in dev server

2010-01-19 Thread VGoel
Is it expected behaviour in wicket. Why wicket is changing the name of the image ? Thanks and Regards, Vandana Goel Igor Vaynberg igor.vaynb...@gmail.com 01/19/2010 01:31 PM Please respond to users@wicket.apache.org To users@wicket.apache.org cc Subject Re: Image name changing in dev

Re: Image name changing in dev server

2010-01-19 Thread Pedro Santos
You can use an ResourceReference to implement any naming rule you need. On Tue, Jan 19, 2010 at 4:51 PM, vg...@osc.state.ny.us wrote: Is it expected behaviour in wicket. Why wicket is changing the name of the image ? Thanks and Regards, Vandana Goel Igor Vaynberg igor.vaynb...@gmail.com

Re: Image name changing in dev server

2010-01-19 Thread VGoel
We do not need any naming rules. Thats why I am confused. My code is this inside a reating view. Image image = new Image(circle+i, /images/circlegray.JPG) In local enviornment it works fine but in Dev Server image name is changed with us local appended. Thanks and Regards, Vandana Goel

Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
Is there a document anywhere that would show me that workflow? I'm trying to force an OnChangeAjaxBehavior to do some of the methods executed during a submit on a palette to make the selected items stay selected. Original Message: - From: Igor Vaynberg igor.vaynb...@gmail.com

Panel and Model inside of a wizard

2010-01-19 Thread Jeffrey Schneller
I am trying to figure out why a panel in a step of my wizard is not showing the correct data after an Ajax call. The step contains a re-usable panel (TotalPanel) for displaying information from the wizard that is backing the model.The problem is the values in the TotalPanel never reflect the

Re: Calendar Component

2010-01-19 Thread Peter Karich
Thanks a lot Nino! Sth. like that! And MIT license. Great! Regards, Peter. If you need something like that, I'd consider rolling an integration towards this http://www.bloggingdeveloper.com/post/jQuery-Week-Calendar-An-Easy-to-Implement-Google-Calendar-like-jQuery-Calendar-Plugin.aspx and if

Re: Panel and Model inside of a wizard

2010-01-19 Thread Sven Meier
Hi Jeffrey, new CompoundPropertyModel(model.getObject().getEstimate()) this doesn't look good, does the estimate object change its values or is it replaced by another object after an AJAX request? Sven Jeffrey Schneller wrote: I am trying to figure out why a panel in a step of my wizard

Re: palette onSubmit

2010-01-19 Thread Igor Vaynberg
if you set up your models properly then selected items stay selected. eg [1] where selected items stay selected after submit button is pressed [1] http://wicketstuff.org/wicket/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.PalettePage -igor On Tue, Jan 19, 2010 at 11:45

RE: notification system

2010-01-19 Thread Stefan Droog
There are some examples: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicketstuff-core/push-parent/ Van: chinedu efoagui [chinedub...@gmail.com] Verzonden: dinsdag 19 januari 2010 17:38 Aan: users@wicket.apache.org Onderwerp: Re:

RE: Panel and Model inside of a wizard

2010-01-19 Thread Jeffrey Schneller
It does change its values. I have since changed it to: final TotalPanel totalPanel = new TotalPanel(total_panel, new CompoundPropertyModel(new PropertyModel(model, estimate))); this seems to work. I guess I had the chaining of models wrong. Am I right, or is still off base? -Original

Re: Panel and Model inside of a wizard

2010-01-19 Thread Sven Meier
If you call #getEstimate() you pull the value once out of your object and never again. With PropertyModel(model, estimate) you'll always get a fresh value from your model. Calling a getter should *always* be done as late as possible. Hope this helps Sven Jeffrey Schneller wrote: It does

Thanks for wicket: it is awesome and I'm just getting to know it

2010-01-19 Thread Chuck Brinkman
Just wanted to say thanks for wicket. I have a ListMultipleChoice and wanted to update the page based on at least one item selected or no items selected. It took a while for me to locate lmc.add(new AjaxFormComponentUpdatingBehavior(onChange) { @Override protected void

Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
right, they do stay after a submit. but when i use an OnChangeAjaxBehavior on another field of the form, it isn't actually functioning as a submit so the palette gets refreshed and loses the selected items. (I'm still trying to narrow down the available items in a palette using a textfield so i'm

Re: palette onSubmit

2010-01-19 Thread Igor Vaynberg
you should use ajaxformsubmitbehavior instead - that way all the values are submitted. -igor On Tue, Jan 19, 2010 at 2:11 PM, wic...@geofflancaster.com wic...@geofflancaster.com wrote: right, they do stay after a submit. but when i use an OnChangeAjaxBehavior on another field of the form, it

Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
is there any way i can get around form validation using ajaxformsubmitbehavior? Original Message: - From: Igor Vaynberg igor.vaynb...@gmail.com Date: Tue, 19 Jan 2010 14:19:28 -0800 To: users@wicket.apache.org Subject: Re: palette onSubmit you should use ajaxformsubmitbehavior

Re: palette onSubmit

2010-01-19 Thread Igor Vaynberg
why would you want? simply do not repaint the feedback panel... -igor On Tue, Jan 19, 2010 at 3:07 PM, wic...@geofflancaster.com wic...@geofflancaster.com wrote: is there any way i can get around form validation using ajaxformsubmitbehavior? Original Message: - From: Igor

Re: Dynamically update TreeTable model

2010-01-19 Thread prati
Hi i too am facing this problem. When i refresh the page the tree collapses to its original state. Please guide me how to solve this Thanks Prati CrocodileShoes wrote: I've finally got this working by extending DefaultTreeState and overriding the isNodeSelected to calculate the selection

Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
well if the form doesn't validate it calls the onError method which doesnt actually submit the form, hence the selected items aren't saved. at the time the user types into the textfield, the entire form has yet to be filled out so validation will always fail. Original Message: -

Re: palette onSubmit

2010-01-19 Thread Igor Vaynberg
you can get the items using palette.getrecorder().getconvertedinput() -igor On Tue, Jan 19, 2010 at 3:27 PM, wic...@geofflancaster.com wic...@geofflancaster.com wrote: well if the form doesn't validate it calls the onError method which doesnt actually submit the form, hence the selected items

Re: Image name changing in dev server

2010-01-19 Thread Steve Swinsburg
Can you use a ContextImage? On 20/01/2010, at 6:07 AM, vg...@osc.state.ny.us wrote: We do not need any naming rules. Thats why I am confused. My code is this inside a reating view. Image image = new Image(circle+i, /images/circlegray.JPG) In local enviornment it works fine but in

popup settings now working

2010-01-19 Thread Douglas Ferguson
Even though I set width and height, i always get a 800/500 popup.. final PopupSettings popupSettings = new PopupSettings(PageMap.forName(welcomevideo)); popupSettings.setWidth(975); popupSettings.setHeight(610); add(new LinkVoid(movieLink) { private static final long serialVersionUID = 1L;

Re: Breadcrumb title

2010-01-19 Thread Marek Šabo
Thanks for suggestion, I know what you mean - chaining visited pages as constructor parameters, nice and dynamic. However in my case I can go on with static solution where each page has its own title via wicket:message tag and this needs to be wrapped in wicket:header, that way it will be

Re: Image name changing in dev server

2010-01-19 Thread Edward Zarecor
I notice that you are using capitalized extensions. Are local and dev instances on different operating systems? Is the extension of the file jpg or JPG? My stab in the dark is that in dev you get a broken image because neither the localized or non-localized images are found. You are seeing

Objects.cloneModel() on google app engine

2010-01-19 Thread Lionel Port
Hi, I'm using wicket on google app engine and am having trouble with the sort link headers on data tables. It looks like when a sort link is clicked the method Objects.cloneModel() is called. This creates a ReplaceableObjectOutputStream wrapper around the ObjectOutputStream to do the copy using

Re: notification system

2010-01-19 Thread Ernesto Reinaldo Barreiro
One more thing... just take into account that using push will introduce additional JS dependencies (dojo)... while using AJAX timer will not. If you don't need your messages refreshed the very second they arrive then probably the AJAX timer will be more than enough. Regards, Ernesto On Tue,

Wicket 1.4.5 : Spring integration problem?

2010-01-19 Thread Ashika Umanga Umagiliya
Greetings all, I followed the easy 'Application Object Approach' to integrate Spring with my Wicket app. (http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach ) In my application class : public class NihonBareApplication extends WebApplication { private

Re: Wicket 1.4.5 : Spring integration problem?

2010-01-19 Thread Pierre Goupil
Maybe it comes from the web.xml : can we ses it, please? Regards, Pierre On Wed, Jan 20, 2010 at 7:41 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings all, I followed the easy 'Application Object Approach' to integrate Spring with my Wicket app. (

Re: Wicket 1.4.5 : Spring integration problem?

2010-01-19 Thread Ashika Umanga Umagiliya
Thanks Pierre, yes,that was a problem with web.xml , I forgot to change the filter setting : init-param param-nameapplicationFactoryClassName/param-name param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value /init-param Now everything works