wicket problem

2007-08-29 Thread bhupat parmar
hi i am facing problems in retriving the values from a multiple choice box i made in wicket frame work.I wrote a onSibmit() function but it througes an exception saying that propertymodel is set to null. Can somebody tell me how to implement this. thanks

Wicket-Spring

2007-08-29 Thread bhupat parmar
Hi i want to integarte my wicket rame work with an existing spring frame work .Can some body tell how to go about it? thanks

Re: wicket problem

2007-08-29 Thread Igor Vaynberg
show us your code and we maybe be able to tell you what you are doing wrong -igor On 8/28/07, bhupat parmar [EMAIL PROTECTED] wrote: hi i am facing problems in retriving the values from a multiple choice box i made in wicket frame work.I wrote a onSibmit() function but it througes an

Re: Wicket-Spring

2007-08-29 Thread Igor Vaynberg
see spring page on the wiki!! -igor On 8/28/07, bhupat parmar [EMAIL PROTECTED] wrote: Hi i want to integarte my wicket rame work with an existing spring frame work .Can some body tell how to go about it? thanks

Re: Wicket-Spring

2007-08-29 Thread Oliver Henlich
bhupat parmar wrote: Hi i want to integarte my wicket rame work with an existing spring frame work .Can some body tell how to go about it? thanks You really should learn to search just a little bit Quick google search gives you: http://cwiki.apache.org/WICKET/spring.html Oliver

Re: wicket problem

2007-08-29 Thread bhupat parmar
hi my code goes like this private static class TabPanel3 extends Panel { FileUploadField fileUploadField = null; TextField styleNameTFld=null; private String message = ; /** available sites for the multiple select. */ private static final List

Re: Re[2]: Alternative to Wicket data binding

2007-08-29 Thread Sam Hough
Perhaps to keep us newbies happy a pointer in the javadoc to what to do if you want vanilla Java Bean behaviour might be handy. I just pulled a face and put it on my todo list to change. Anyway, I still can't decide between the verbose solution with tool support and concise magic without tool

Re: wicket problem

2007-08-29 Thread Igor Vaynberg
upload.getfileupload() ? -igor On 8/28/07, bhupat parmar [EMAIL PROTECTED] wrote: hi my code goes like this private static class TabPanel3 extends Panel { FileUploadField fileUploadField = null; TextField styleNameTFld=null; private String message = ;

handle resource with several formats (minified, gzipped,...)

2007-08-29 Thread David Bernard
Hi, To avoid runtime/on-the-fly compression (js minification/packing,... gzip compression) of static resources (!= dynamic), I do it at compile time (done via the yuicompressor-maven-plugin) and provide 3 formats (original, minified, minified+gzip) But I need to choose the right at runtime.

Re: Apache Wicket 1.3.0-beta3 released!

2007-08-29 Thread Erik van Oosten
Great!! When can we expect it on http://wicketstuff.org/maven/repository/? Or is there another maven repository? Regards, Erik. Martijn Dashorst-4 wrote: This is the third beta for Apache Wicket we have prepared for your pleasure. -- View this message in context:

bhupat parmar wants to chat

2007-08-29 Thread bhupat parmar
--- bhupat parmar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-4ed0898d6-8b797b38e3-ed5dacd6a48cb801 You'll need to

Re: Apache Wicket 1.3.0-beta3 released!

2007-08-29 Thread Martijn Dashorst
How about the central repository, which is used for all official releases? Martijn On 8/29/07, Erik van Oosten [EMAIL PROTECTED] wrote: Great!! When can we expect it on http://wicketstuff.org/maven/repository/? Or is there another maven repository? Regards, Erik. Martijn

Re: Apache Wicket 1.3.0-beta3 released!

2007-08-29 Thread Erik van Oosten
Ah, sorry. My mirror was out of date. Regards, Erik. Martijn Dashorst wrote: How about the central repository, which is used for all official releases? Martijn On 8/29/07, Erik van Oosten [EMAIL PROTECTED] wrote: Great!! When can we expect it on

PasswordTextField no longer supports cookies in beta3

2007-08-29 Thread Erik van Oosten
Dear wicketeers, In 1.3beta3 I can no longer call new PasswordTextField(...).setPersistence(true); as this results in a: java.lang.UnsupportedOperationException: FormComponent class org.apache.wicket.markup.html.form.PasswordTextField does not support cookies I do not understand why

Re: Panel/Localizer issue

2007-08-29 Thread Johan Compagner
i changed it on 2 places. On 8/29/07, Johan Compagner [EMAIL PROTECTED] wrote: yes that should also be lazy through a model can you create an jira issue ? (with a patch if possible) On 8/29/07, Edvin Syse [EMAIL PROTECTED] wrote: I have found that when I create a new Palette with the

Re: Presentation and application logic separation

2007-08-29 Thread Gabor Szokoli
On 8/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: well, what wicket does is version the state if you keep it inside its model, so it all Just Works. But because you are keeping your state outside of wicket you have to build your own versioning mechanism, or remove your state machine and use

Re: Is Wicket a proper framework for a Webshop ?

2007-08-29 Thread Alex Shneyderman
I'm in the process of slapping the developers around here, trying to get them to wake up. Senior dev's recommending struts 1 for gods sake... now that's what i call afraid of change It's out of ignorance, and their unwillingness to see what else is out there. It could also mean their

Re: Is Wicket a proper framework for a Webshop ?

2007-08-29 Thread Xavier Hanin
On 8/29/07, neekibo [EMAIL PROTECTED] wrote: Thanks to all, I will analyse how complex my UI will be and than evaluate if Wicket fits in. Thanks for pointing at Stripes... I always thought: Spring is so cool, everybody says that. So SpringMVC is the way to go, but as mentioned here it is

Re: 1.3 beta2 - beta3 = NullPointerException

2007-08-29 Thread Matej Knopp
Hi, could you please create a jira issue and attach a quickstart project that can be used to reproduce this? Thanks. I'll look at it ASAP. -Matej On 8/29/07, Stojce Dimski [EMAIL PROTECTED] wrote: I have a simple app embedded in my jetty (no web.xml, I wire-up the components) with: -

Ajax operations on Panels nested in Fragments

2007-08-29 Thread Oli Evans
I just lost a few hours on a problem where an ajax operation on a Panel nested in a Fragment was failing as my nested panel could not find its associated markup. It seems this was because a Fragment will only reliably find its markup if you explicitly provide it with the Component that

MarkupCache Issue

2007-08-29 Thread Kumarasun Nadar1
Hi All, In our aplication we are using a filter to populate the HTML base tag with the base URL. But since the markupcache caches the page markup the base tag is getting populated incorrectly for 2 different users using different hostnames. Is there a way wherein we can tell wicket not to

RadioChoice and ListView

2007-08-29 Thread Alex Pine
Hi all, I'm trying to use a Radio Choice component inside a Listview so that each list item has one RadioGroup with three choices. When the form submit button is pressed, each selected choice should set a field in the model object of each list item. The code below should explain the problem more

Re: RadioChoice and ListView

2007-08-29 Thread Igor Vaynberg
problem is here RadioGroup rg = new RadioGroup(choice); you are not setting the model for the radiogroup choice so your choices go no where RadioGroup rg = new RadioGroup(choice, new PropertyModel(item.getModel(), status)); or leave it as it is and use PropertyListView instead -igor On

Re: Is Wicket a proper framework for a Webshop ?

2007-08-29 Thread Nathan Hamblen
Xavier Hanin wrote: Note that databinder can be used with Spring too. It's useful for exposing your hibernate beans as wicket models. The beginning of this thread is not on gmane for some reason. But, yeah actually I've done a few web stores with Databinder. As always I find Wicket to be

Re: Is Wicket a proper framework for a Webshop ?

2007-08-29 Thread Eelco Hillenius
On 8/29/07, William Hoover [EMAIL PROTECTED] wrote: Could you elaborate on what is lacking in Wicket when referring to the back button support (when compared to GWT)? I was under the impression that Wicket had robust back button support? Wicket's back button support is pretty robust for

Re: Presentation and application logic separation

2007-08-29 Thread fero
Thanks Gabor. I had the same idea. I'll try it soon and leave here a message how it works. Btw I think many people would appreciate an article about wicket application architecture. Fero Gabor Szokoli wrote: On 8/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote: well, what wicket does is

Re: Is Wicket a proper framework for a Webshop ?

2007-08-29 Thread Gerolf Seitz
..., how many component libraries and tools there are for them (regardless of the fact the quality of them and whether that is a good thing in the first place), ... that's what i like about wicket, you practically don't need additional tools (which you have to learn to use, learn to avoid

Re: Is Wicket a proper framework for a Webshop ?

2007-08-29 Thread Igor Vaynberg
google wicket-bench -igor On 8/29/07, Gerolf Seitz [EMAIL PROTECTED] wrote: ..., how many component libraries and tools there are for them (regardless of the fact the quality of them and whether that is a good thing in the first place), ... that's what i like about wicket, you

Re: Is Wicket a proper framework for a Webshop ?

2007-08-29 Thread Gerolf Seitz
google wicket-bench -igor i know wicket-bench, have used it for wicket 1.2 actually. oh, and i like mark occurences too ;)

wantOnSelectionChangedNotifications causing table redraw

2007-08-29 Thread salmas
I have a DataTable in which I have a panel which contains a textfield and a radiogroup. When the user changes the selection in the radiogroup I'd like to populate a value in the textfield. I subclassesed RadioGroup to catch the selectionChangedEvent RadioGroup choice = new

Re: RadioChoice and ListView

2007-08-29 Thread Alex Pine
I'm sorry to spam the list like this, but I really need help on this. Igor's solution doesn't seem to change anything. No information is transferred to the database upon hitting on submit. If no one knows the solution, does anyone have any ideas on how I could debug this? Is there some way I can

Re: Wicket HTML Simplicity

2007-08-29 Thread Gwyn Evans
No, it looks to me as if the OP's not worried about the pages while running, but is rather looking for something to pre-process the page for previewing them... Might be a very simple question (but not IMO!) but I'm not sure what approaches others use to preview pages, especially when markup

Re: Wicket HTML Simplicity

2007-08-29 Thread Martijn Dashorst
AFAIK, wicket-bench (an eclipse plugin) does support some form of previewing, but I don't know how far the support actually goes. Martijn On 8/29/07, Gwyn Evans [EMAIL PROTECTED] wrote: No, it looks to me as if the OP's not worried about the pages while running, but is rather looking for

Re: Wicket HTML Simplicity

2007-08-29 Thread Carlos Silva
I guess the is just HTML claim of wicket only goes so far. On Aug 29, 2007, at 2:16 PM, Martijn Dashorst wrote: AFAIK, wicket-bench (an eclipse plugin) does support some form of previewing, but I don't know how far the support actually goes. Martijn On 8/29/07, Gwyn Evans [EMAIL PROTECTED]

Re: Wicket HTML Simplicity

2007-08-29 Thread Matej Knopp
Well, it is just HTML. But there is a templating involved. And that has to hinder previewability in a certain way. -Matej On 8/29/07, Carlos Silva [EMAIL PROTECTED] wrote: I guess the is just HTML claim of wicket only goes so far. On Aug 29, 2007, at 2:16 PM, Martijn Dashorst wrote:

Re: Wicket getting some bad press at Slashdot.org

2007-08-29 Thread Matej Knopp
Yeah, we have alrady seen it. But I personally think that responding to arguments such as I just don't see what Wicket - or possibly any web framework - buys you. is just a waste of time. -Matej On 8/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Over in the Slashdot article about GWT in

Re: Wicket HTML Simplicity

2007-08-29 Thread Carlos Silva
I'm actually very interested in this topic and wondering if there are any solutions to this problem. On Aug 29, 2007, at 2:43 PM, Matej Knopp wrote: Well, it is just HTML. But there is a templating involved. And that has to hinder previewability in a certain way. -Matej On 8/29/07,

Re: Wicket getting some bad press at Slashdot.org

2007-08-29 Thread Eelco Hillenius
On 8/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Over in the Slashdot article about GWT in Action there are some negative opinions toward Wicket expressed. Just thought I'd mention it in case any of the gurus want to weigh in too. (Head over to this link, set the threshold to 4, then

Re: best practice for a header component with links defined by the page

2007-08-29 Thread Matej Knopp
You should use panels for this. You can have panels for 1 link, 2 links a 3 links. Or even put a repeater into panel to generate as many links as you want. And you then need only one placeholder on the page (for the panel). -Matej On 8/29/07, Kirk Israel [EMAIL PROTECTED] wrote: Hey there--

Re: best practice for a header component with links defined by the page

2007-08-29 Thread Eelco Hillenius
So let me try to rephrase your problem: you have a header component that shows a variable number of components (links). Use a repeater (e.g. list view or repeating view) for the variable number of components, and you probably want to wrap the header component in a panel so that it is easy to move

Re: Wicket HTML Simplicity

2007-08-29 Thread Igor Vaynberg
google wicket:preview -igor On 8/29/07, Carlos Silva [EMAIL PROTECTED] wrote: I'm actually very interested in this topic and wondering if there are any solutions to this problem. On Aug 29, 2007, at 2:43 PM, Matej Knopp wrote: Well, it is just HTML. But there is a templating involved.

Re: best practice for a header component with links defined by the page

2007-08-29 Thread Igor Vaynberg
or just write something in perl and call it a day. -igor On 8/29/07, Eelco Hillenius [EMAIL PROTECTED] wrote: So let me try to rephrase your problem: you have a header component that shows a variable number of components (links). Use a repeater (e.g. list view or repeating view) for the

Wicket capability for LARGE forms

2007-08-29 Thread Antony Stubbs
I have a couple of pages with _very large forms_, that are also modified dynamically to set which fields are editable using javascript, dependant on the value of a drop down list. Please see the example image attached. And that's only the first page the application is in - *gasp* - struts. I

Re: Wicket HTML Simplicity

2007-08-29 Thread Carlos Silva
Apparently there is a javascript library that allows you to do just this. http://jroller.com/wireframe/entry/auto_previewable_wicket_pages I'm wondering why such a tool is not part of wicket? I will give it a try. Thank you all for your help. On Aug 29, 2007, at 4:25 PM, Igor Vaynberg

Re: Wicket capability for LARGE forms

2007-08-29 Thread Eelco Hillenius
On 8/29/07, Antony Stubbs [EMAIL PROTECTED] wrote: I have a couple of pages with _very large forms_, that are also modified dynamically to set which fields are editable using javascript, dependant on the value of a drop down list. Please see the example image attached. And that's only the

Re: Wicket HTML Simplicity

2007-08-29 Thread Eelco Hillenius
On 8/29/07, Carlos Silva [EMAIL PROTECTED] wrote: Apparently there is a javascript library that allows you to do just this. http://jroller.com/wireframe/entry/auto_previewable_wicket_pages I'm wondering why such a tool is not part of wicket? I will give it a try. There is actually an

Best way to add a MarkupFilter

2007-08-29 Thread David Leangen
What's the best way to add a markup filter to my app? I noticed that in the settings I can override the MarkupParserFactory and provide my own filter, but that is not what I want to do. I just want to use the default factory, but add my own filter. Thanks!

Re: best practice for a header component with links defined by the page

2007-08-29 Thread Kirk Israel
Igor, sorry if I've irritated you. I know some of my frustration comes from A. an ugly reluctance to embrace change and B. Wicket is doing great things but it's somewhat early days, and the documentation (tutorial books and recipe collections) is still scanty. Eelco, thanks, your summary was

Re: best practice for a header component with links defined by the page

2007-08-29 Thread Eelco Hillenius
So am I correct in thinking that, in general, most HTML pages in WIcket will have all possible subcomponents listed, and the visibility will control things that shouldn't be there... That's one way to do it. But a better way typically is to build up your pages dynamically, using panels for

Re: best practice for a header component with links defined by the page

2007-08-29 Thread Igor Vaynberg
I just dont understand how you expect us to continue helping you if you go and talk trash about something we invest a lot of time in. Based on the slashdot comments you left I dont really understand why you are using wicket at all. -igor On 8/29/07, Kirk Israel [EMAIL PROTECTED] wrote: Igor,

Re: Wicket capability for LARGE forms

2007-08-29 Thread Antony Stubbs
Ah yes, DataTable, I see, like a data grid... And what about changing the fields to enabled / disabled? Staying within Wicket I suppose the nicest way would be ajax onChange behaviour on the initial drop down box? Eelco Hillenius wrote: On 8/29/07, Antony Stubbs [EMAIL PROTECTED] wrote: I

setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
I posted this on the Databinder forum but no one seems to know of a work-around so I thought I'd post it here. Essentially I have a FocusableTextField that gets set by a DropDownChoice. If the choice is not other then I setEnabled to false and I place the string value of the DropDownChoice into

VisitChildren bottom-up

2007-08-29 Thread RedFury
Hi all, I've writing a very heavily javascripted app in wicket and finding wicket handles the complexity wonderfully. I've used VisitChildren(IVisitor) successfully in numerous places but have a problem with a case where I'd like to use it 'backwards'. I'm writing some base components which

Re: Wicket capability for LARGE forms

2007-08-29 Thread Igor Vaynberg
yeah, with ajax instead of simply disabling them you can remove them completely, or replace them with something else entirely. however, if all you really want to do is to make them disabled on clientside that should work also. might not be as straight forward but should work. -igor On 8/29/07,

Re: Updating Panels with AjaxLazyLoadingPanel

2007-08-29 Thread Igor Vaynberg
you can also use IndicatingAjaxLink that has a little indicator built in -igor On 8/29/07, Evan Chooly [EMAIL PROTECTED] wrote: Why not just use the AjaxLazyLoadingPanel? I'm currently using it and my lazy loaded component is updated via AJAX. So, page comes up, ALLP loads the report

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread Igor Vaynberg
the entire point of disabling the component is that you do not want it to process submitted input and update its model. you are looking for readonly behavior rather then disabled i think. why not just set the readonly attribute on that field. -igor On 8/29/07, janders [EMAIL PROTECTED] wrote:

Re: VisitChildren bottom-up

2007-08-29 Thread Igor Vaynberg
hrm. i have implemented a postorder traversal for formcomponents (see FormComponent.visitFormComponentsPostOrder) so you can either take that code and use it in your app, or we can bring it up to markupcontainer and generalize it. the problem is that we already have visitComponents, and having a

Re: TreeTable...how to refect a label change on TreeNode

2007-08-29 Thread Doug Leeper
After further evaluating what I need done...I don't believe I need AJAX. The Tree Node needs to be updated to reflect a data change, i.e. name. However, the name change occurs in a page...not in the same page as the tree. Am I correct in this...no AJAX is needed since I am changing Pages? If

Re: VisitChildren bottom-up

2007-08-29 Thread RedFury
Thanks for the quick reply Igor. For now I'm just going to take your FormComponent visitor example and adapt that to my case since it looks tidy and straightforward. It would be nice if this functionality could somehow find its way into markupcontainer though. Cheers, Dean igor.vaynberg

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
So it sounds like I would use something like: final AttributeModifier ro = new AttributeModifier(readonly, true, new Model(readonly)); if (email.getType() != EmailAddress.Type.OTHER) emailLabel.add(ro); If so, then the question becomes, how would I remove that attribute

Re: VisitChildren bottom-up

2007-08-29 Thread Eelco Hillenius
On 8/29/07, Igor Vaynberg [EMAIL PROTECTED] wrote: hrm. i have implemented a postorder traversal for formcomponents (see FormComponent.visitFormComponentsPostOrder) so you can either take that code and use it in your app, or we can bring it up to markupcontainer and generalize it. the

Re: VisitChildren bottom-up

2007-08-29 Thread Igor Vaynberg
perhaps you can add an rfe into jira so we dont forget. -igor On 8/29/07, RedFury [EMAIL PROTECTED] wrote: Thanks for the quick reply Igor. For now I'm just going to take your FormComponent visitor example and adapt that to my case since it looks tidy and straightforward. It would be

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread Igor Vaynberg
create a dynamic model instead of new Model(readonly) -igor On 8/29/07, janders [EMAIL PROTECTED] wrote: So it sounds like I would use something like: final AttributeModifier ro = new AttributeModifier(readonly, true, new Model(readonly)); if (email.getType() != EmailAddress.Type.OTHER)

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
I know how to add the attribute, I just don't know how to later remove it once added. - JA Eelco Hillenius wrote: So it sounds like I would use something like: final AttributeModifier ro = new AttributeModifier(readonly, true, new Model(readonly)); if (email.getType() !=

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread Eelco Hillenius
I know how to add the attribute, I just don't know how to later remove it once added. Like I said, override isEnabled in your attribute modifier. When that returns false, the attribute won't be added. For normal requests, where a page is rendered everytime again, it simply doesn't show up. For

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread janders
I don't understand. Are you saying that I should use setEnabled(false) or are you saying that I should use: final AttributeModifier rof = new AttributeModifier(readonly, false, new Model(readonly)); Either way this doesn't seem to work. - JA Eelco Hillenius wrote: I know how to add

Re: setEnabled(false) on FocusableTextField breaks persistence

2007-08-29 Thread Eelco Hillenius
I don't understand. Are you saying that I should use setEnabled(false) or are you saying that I should use: final AttributeModifier rof = new AttributeModifier(readonly, false, new Model(readonly)); new AttributeModifier(readonly, true, new Model(readonly) { public boolean