DataView sort .properties file

2010-07-20 Thread always_rick
Hello all, i'm using DataView to display html table with sorting feature. Thanks to wicket example, Sorting DataView Example - builds on previous to demonstrate sorting

validation and #updateModel

2010-07-20 Thread Ray Weidner
Hi all, I have what I would think to be a fairly common usecase that I'd like to solve. I have a form with a model that is a LoadableDetachableModel wrapped in a CompoundPropertyModel. I wouldn't expect that to be unusual. However, when a form submit is failing validation for , all changes to

Re: validation and #updateModel

2010-07-20 Thread Jeremy Thomerson
On Tue, Jul 20, 2010 at 1:55 AM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Hi all, I have what I would think to be a fairly common usecase that I'd like to solve. I have a form with a model that is a LoadableDetachableModel wrapped in a CompoundPropertyModel. I wouldn't expect

Re: validation and #updateModel

2010-07-20 Thread Ray Weidner
That would certainly simplify things, but I find it indispensable when it comes to handling persistent entities, which you wouldn't want to serialize with the page. Taking a step back, how can a form map to persistent entities without resorting to LoadableDetachableModels? Not that I'm

wicketstuff down

2010-07-20 Thread Vytautas Čivilis
Hi. As you might already noticed, http://wicketstuff.org is down. Anyone have any ideas? V

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Gareth Western
Congratulations Martin! And thanks for the help in the IRC chat the other day (pointing me to this mailing list ;)) On Tue, Jul 20, 2010 at 3:00 AM, nicolas melendez nfmelen...@gmail.comwrote: 2010/7/19 Jeremy Thomerson jer...@wickettraining.com The Wicket team is happy to announce

Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior

2010-07-20 Thread Fernando Wermus
Daniel, It is better to return just a null. A null is translate it as ...the page you already are On Fri, Jul 2, 2010 at 8:39 AM, bjolletz daniel.akerl...@pagero.com wrote: Hi, My conclusion is that this is not really a wicket error, since we're clicking a link which no longer

Re: validation and #updateModel

2010-07-20 Thread Jeremy Thomerson
On Tue, Jul 20, 2010 at 2:19 AM, Ray Weidner ray.weidner.develo...@gmail.com wrote: That would certainly simplify things, but I find it indispensable when it comes to handling persistent entities, which you wouldn't want to serialize with the page. Taking a step back, how can a form map to

Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz
I have a strange problem with an I18N key which is stored in an xml resource bundle. I try to set the following keys for a german translation: - PagingNavigator.first - PagingNavigator.previous - PagingNavigator.next - PagingNavigator.last - PagingNavigator.page I noticed that wicket already

Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Ernesto Reinaldo Barreiro
Maybe because the key should be PagingNavigation.page? Ernesto On Tue, Jul 20, 2010 at 10:19 AM, Thomas Götz t...@richmountain.de wrote: I have a strange problem with an I18N key which is stored in an xml resource bundle. I try to set the following keys for a german translation: -

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Ian Marshall
Many congratulations Martin! (In my extremely limited experience with web application frameworks, Wicket is just so excellent. Developing with Wicket really is fun, too.) -- View this message in context:

Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz
On 20.07.2010 10:53, Ernesto Reinaldo Barreiro wrote: Maybe because the key should be PagingNavigation.page? Ha! Nice one, thanks ;-) The naming is a little bit inconsistent IMHO. -Tom - To unsubscribe, e-mail:

Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Ernesto Reinaldo Barreiro
Tomas, It might be because PagingNavigation.page is read from within PagingNavigation component. Maybe it is consistent in the sense that it refers to the component using the resource. I don't know if a convention is followed for these things on core components? By the way... Would it be a good

Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz
On 20.07.2010 12:40, Ernesto Reinaldo Barreiro wrote: Tomas, It might be because PagingNavigation.page is read from within PagingNavigation component. Maybe it is consistent in the sense that it refers to the component using the resource. I don't know if a convention is followed for these

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Martin Grigorov
Thanks a lot for the voted trust in me, team! As a big open source believer it is an honour for me to be a part of the team that made such a great framework! Looking forward to make 1.5 production ready ! 2010/7/20 Ian Marshall ianmarshall...@gmail.com Many congratulations Martin! (In my

HowTo inject FeedbackPanel

2010-07-20 Thread Martin Makundi
Hi! I don't like passing feedbackpanel to subpanels and I don't like the idea using visitors/component-search for looking it up in page hierarchy because of its potential volatility... Has some of you pals come up with a nice way of injecting feedbackpanel references to children or something? Or

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
I've struggled with this myself in the context of AJAX events that are handled completely by subpanels. I want only one feedback panel on the page, but the subpanels need to be able to add them to their AjaxRequestTarget. Perhaps you could override the default ajax request cycle handling in some

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Martin Makundi
Hey, sounds nice! Maybe Martin will commit it soon to wicket core ;) 2010/7/20 James Carman ja...@carmanconsulting.com: I've struggled with this myself in the context of AJAX events that are handled completely by subpanels.  I want only one feedback panel on the page, but the subpanels need to

Submitting form via AJAX over SSL - RESEND

2010-07-20 Thread Jeffrey Schneller
How can I submit a form via AJAX over SSL? I have a login form that appears via Ajax and I want the form submission to be under SSL when it is submitted via AJAX. How can I go about doing this? Thanks. - To

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Maarten Bosteels
Congratulations Martin ! On Tue, Jul 20, 2010 at 1:21 PM, Martin Grigorov martin.grigo...@gmail.comwrote: Thanks a lot for the voted trust in me, team! As a big open source believer it is an honour for me to be a part of the team that made such a great framework! Looking forward to make

Re: wicketstuff down

2010-07-20 Thread Johan Compagner
works fine for me (except that Confluence is taken down i think on purpose) 2010/7/20 Vytautas Čivilis cvl...@gmail.com: Hi. As you might already noticed, http://wicketstuff.org is down. Anyone have any ideas? V - To

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Johan Compagner
welcome! hope you happily merge even more stuff ;) johan On Tue, Jul 20, 2010 at 13:21, Martin Grigorov martin.grigo...@gmail.com wrote: Thanks a lot for the voted trust in me, team! As a big open source believer it is an honour for me to be a part of the team that made such a great

rules declaration for form valdation

2010-07-20 Thread Jan Juno
How can I avoid if hell? and declare rules for my form validation. I have project which has an extensive form on which when you check on chceck box than this and this will be disabled this is enabled, and so on. In the end you end up with huge if else if else. How can I avoid it in wicket?

Re: validation and #updateModel

2010-07-20 Thread Igor Vaynberg
On Tue, Jul 20, 2010 at 12:53 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Typically, I use LDM's for every place that I am viewing data, and a regular serializable model for places that I'm editing data.  You must be able to persist changes across requests (without persisting to the

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Igor Vaynberg
not working on wicket has made you lazy johan! :) -igor On Tue, Jul 20, 2010 at 7:46 AM, Johan Compagner jcompag...@gmail.com wrote: welcome! hope you happily merge even more stuff ;) johan On Tue, Jul 20, 2010 at 13:21, Martin Grigorov martin.grigo...@gmail.com wrote: Thanks a lot for

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Igor Vaynberg
there is already IFeedback interface that tags all components like feedbackpanel. -igor On Tue, Jul 20, 2010 at 5:52 AM, James Carman ja...@carmanconsulting.com wrote: I've struggled with this myself in the context of AJAX events that are handled completely by subpanels.  I want only one

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Igor Vaynberg
On Tue, Jul 20, 2010 at 5:44 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: and I don't like the idea using visitors/component-search for looking it up in page hierarchy because of its potential volatility... how so? -igor Has some of you pals come up with a nice way of

Re: Submitting form via AJAX over SSL - RESEND

2010-07-20 Thread Igor Vaynberg
see HttpsRequestCycleProcessor -igor On Tue, Jul 20, 2010 at 7:12 AM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: How can I submit a form via AJAX over SSL?  I have a login form that appears via Ajax and I want the form submission to be under SSL when it is submitted via AJAX.  How

Re: rules declaration for form valdation

2010-07-20 Thread jcgarciam
if you can just avoid push operation (if. setThatcomponentEnabled ...else setThatComponentDisable). Use a Pull approach, override the isEnabled of your component and make it query the boolean value of your model. i.e:: form.add(new TextField(myId){ public boolean isEnabled(){ return

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Matej Knopp
Welcome Martin! -Matej On Tue, Jul 20, 2010 at 5:21 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: not working on wicket has made you lazy johan! :) -igor On Tue, Jul 20, 2010 at 7:46 AM, Johan Compagner jcompag...@gmail.com wrote: welcome! hope you happily merge even more stuff ;)

Re: wicketstuff down

2010-07-20 Thread Martijn Dashorst
http://wicketstuff.org/confluence/dashboard.action On Tue, Jul 20, 2010 at 4:44 PM, Johan Compagner jcompag...@gmail.com wrote: works fine for me (except that Confluence  is taken down i think on purpose) 2010/7/20 Vytautas Čivilis cvl...@gmail.com: Hi. As you might already noticed,

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
Perhaps we could just register a AjaxRequestTarget.IListener and implement the onBeforeRespond() method? You would check to see if there are any messages to be shown (still looking for how to ask that question in the API). If there are, you'd make sure the requested page's

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Igor Vaynberg
yes, you are on the right track. i just described this to someone in irc not a few days ago... override application.newajaxrequesttarget register your listener in listener onbeforerespond check if there are any messages - getsession().getfeedbackmessages().size()0 visit all components in the page

Re: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Martin Grigorov
Just feed me with patches for 1.4 ;-) 2010/7/20 Johan Compagner jcompag...@gmail.com welcome! hope you happily merge even more stuff ;) johan On Tue, Jul 20, 2010 at 13:21, Martin Grigorov martin.grigo...@gmail.com wrote: Thanks a lot for the voted trust in me, team! As a big open

Re: validation and #updateModel

2010-07-20 Thread Jeremy Thomerson
On Tue, Jul 20, 2010 at 10:20 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Tue, Jul 20, 2010 at 12:53 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Typically, I use LDM's for every place that I am viewing data, and a regular serializable model for places that I'm editing

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Martin Grigorov
What about org.apache.wicket.ajax.AjaxRequestTarget.addChildren(MarkupContainer, Class?) I.e.: target.addChildren(getPage(), IFeedback.class) ? 2010/7/20 Igor Vaynberg igor.vaynb...@gmail.com yes, you are on the right track. i just described this to someone in irc not a few days ago...

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 11:47 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: yes, you are on the right track. i just described this to someone in irc not a few days ago... override application.newajaxrequesttarget register your listener in listener onbeforerespond check if there are any

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 11:57 AM, Martin Grigorov mgrigo...@apache.org wrote: What about org.apache.wicket.ajax.AjaxRequestTarget.addChildren(MarkupContainer, Class?) I.e.: target.addChildren(getPage(), IFeedback.class) ? Even cooler!

Wicketstuff Push Assistance request

2010-07-20 Thread Rodolfo Hansen
Hi all, Anyone willing to lend me a hand on the wicketstuff-push project? I have some pretty good ideas, but can't find the time to implement them. If anyone is interested please write me directly. - To unsubscribe, e-mail:

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Fernando Wermus
Martin, I would like to learn a little. Which is the use case? Why do you need to inject feedback panels? I don't get a case for this situation. thanks in advance. On Tue, Jul 20, 2010 at 9:44 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I don't like passing

Re: Wicketstuff Push Assistance request

2010-07-20 Thread Martin Grigorov
Hi Rodolfo, I still want to upgrade this project to Dojo and Wicket (both versions 1.5). Please describe your idea with HTML5 WebSocket implementation here (in users@) and I guess someone else can also join. I also invest in html5 (svn .../wicket-stuff/trunk/wicket15-html5-parent) ;-) 2010/7/20

Re: HowTo inject FeedbackPanel

2010-07-20 Thread jcgarciam
I guess what Martin and James talk about is having a FeedbackPanel at the top and a lot component (panels) ajaxified which only update the FeedbackPanel on their callbacks. Therefore they pass the FeedbackPanel on every Panel constructor. Martin, James am i right? On Tue, Jul 20, 2010 at 1:08

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 12:29 PM, jcgarciam jcgarc...@gmail.com wrote: I guess what Martin and James talk about is having a FeedbackPanel at the top and a lot component (panels) ajaxified which only update the FeedbackPanel  on their callbacks. Therefore they pass the FeedbackPanel on every

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Martin Makundi
Yes! Igor's solution sounds very generic... could it be a swith/setting/option in the framework that can simply be turned on? ** Martin 2010/7/20 jcgarciam jcgarc...@gmail.com: I guess what Martin and James talk about is having a FeedbackPanel at the top and a lot component (panels)

Re: Wicketstuff Push Assistance request

2010-07-20 Thread Rodolfo Hansen
Cool, Well right now, if you checkout my branch in github, you'll see I actually stripped out the Dojo dependency and classes as the bayuex people have cleanly separated cometd from the dojo codebase. I also implemented an automatic copy of their cometd-javascript-common artifact into ours.

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 12:38 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Yes! Igor's solution sounds very generic... could it be a swith/setting/option in the framework that can simply be turned on? I'm sure it could, very easily. But it'd have to be added to one of the

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
On Tue, Jul 20, 2010 at 11:59 AM, James Carman ja...@carmanconsulting.com wrote: On Tue, Jul 20, 2010 at 11:57 AM, Martin Grigorov mgrigo...@apache.org wrote: What about org.apache.wicket.ajax.AjaxRequestTarget.addChildren(MarkupContainer, Class?) I.e.: target.addChildren(getPage(),

wicket hell

2010-07-20 Thread Brown, Berlin [GCG-PFS]
There is a css hell, html hell, java web app hell. Is there a wicket hell or issues that are specific to wicket? Because I do believe web application development is wicket is pretty unique. I am still new to wicket but there are two gripes that get me every time. And maybe over time, I will

RE: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Brown, Berlin [GCG-PFS]
Cool, he has been helping me on IRC/Freenode -Original Message- From: Maarten Bosteels [mailto:mbosteels@gmail.com] Sent: Tuesday, July 20, 2010 10:16 AM To: users@wicket.apache.org Subject: Re: Welcome Martin Grigorov as a core team member Congratulations Martin ! On Tue, Jul 20,

Re: Change from development to deployment mode in maven2

2010-07-20 Thread Gustavo Henrique
Hi! Now it is ok! // web.xml context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param // add plugin in pom.xml plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution

Re: wicket hell

2010-07-20 Thread Pedro Santos
Hi Brown, I think it is unfair say that Wicket present an unexpected behavior with the markup, because every functionality are well documented. I saw some situations where some one complain that the id tag attribute value was changed. But the Component documentation is clear saying that this

Re: wicket hell

2010-07-20 Thread Martin Makundi
Hi! 1. Hierarchy issues - The hierarchy is very strict and not like the Java hierarchy.  If you want to reference a component, it must be added properly in the markup and in the java code.  This can be caught at compile time, but it is still takes time getting used to. Note: I am not saying

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
This really does save me quite a bit of code! Everywhere that I was saving off a FeedbackPanel field to my page/component so that I could later use it to add to an AjaxRequestTarget, GONE! On Tue, Jul 20, 2010 at 1:49 PM, James Carman ja...@carmanconsulting.com wrote: Here's the actual code (it

Re: validation and #updateModel

2010-07-20 Thread Ray Weidner
Back to the original question, when you say all changes to the form are lost - do you mean that the form rerenders with absolutely no values filled out? Only the fields that failed conversion or validation should be blank. See, that throws me off, too. Yes, the supposedly valid fields are

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Igor Vaynberg
no, if you are adding children you should already know that their ids are set -igor On Tue, Jul 20, 2010 at 10:03 AM, James Carman ja...@carmanconsulting.com wrote: On Tue, Jul 20, 2010 at 11:59 AM, James Carman ja...@carmanconsulting.com wrote: On Tue, Jul 20, 2010 at 11:57 AM, Martin

show modal window on cometd event using IChannelTarget

2010-07-20 Thread fachhoch
I am using wicket cometd. in the onEvent method of IChannelListner , I want to show a ModalWIndow , to show a modaWindow we have to call method show which takes AjaxRequestTarget, bu in I channleListner I get IChannelTarget , please suggest me how can I open modal window in onEvent

Re: wicket hell

2010-07-20 Thread Igor Vaynberg
wicket does not remove class attributes. perhaps you added an attributemodifier instead of an attributeappender. -igor On Tue, Jul 20, 2010 at 10:38 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: There is a css hell, html hell, java web app hell. Is there a wicket hell or

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
I'm talking about that check you suggested, Igor, to see if the user has called setOuputMarkupId(true) on the IFeedback component. Should that be part of the AjaxRequestTarget.addChildren() method's implementation? On Tue, Jul 20, 2010 at 2:56 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:

Wicket Problem: Ajax request encoding

2010-07-20 Thread Ronaldo Cisneiros Veras
Hi, We're using Wicket framework (Version 1.4.9) on our systems. Our problem occurs when there is a submission of ajax request in text fields. When you type the word descrição for example by submitting the text by ajax event the word is modified to descrição. This problem only occurs in

Re: HowTo inject FeedbackPanel

2010-07-20 Thread Igor Vaynberg
right, like i said, no. if you try to add something and it doesnt have output markup id set to true it should throw an exception just like if you wouldve used addcomponent() -igor On Tue, Jul 20, 2010 at 11:59 AM, James Carman ja...@carmanconsulting.com wrote: I'm talking about that check you

Re: validation and #updateModel

2010-07-20 Thread Jeremy Thomerson
On Tue, Jul 20, 2010 at 1:22 PM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Back to the original question, when you say all changes to the form are lost - do you mean that the form rerenders with absolutely no values filled out? Only the fields that failed conversion or

OnChangeAjaxBehavior() - problem with id

2010-07-20 Thread lucky
Hi Colleagues, I have listView where in TextArea I have used onChangeAjaxBehavior. In update() I set edited text to the object. Finally in saveButton (this button is required) via savingMethod() I add changes to database and then refresh form. The problem is that when text is edited in

Re: HowTo inject FeedbackPanel

2010-07-20 Thread James Carman
Ok, cool. Just checking. So, I can't use that code because I need to conditionally check to see if it's ajaxified. No big deal. It's already written and working. Thanks for the pointers. On Tue, Jul 20, 2010 at 4:24 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: right, like i said, no. if

new feature in trunk and branch: Component#onConfigure()

2010-07-20 Thread Igor Vaynberg
another new callback added to 1.4/trunk that is aimed at making life easier when managing component states such as visibility, enabled, etc. /** * Called once per request on components before they are about to be rendered. This method * should be used to configure such

Re: new feature in trunk and branch: Component#onConfigure()

2010-07-20 Thread Ernesto Reinaldo Barreiro
Igor, Thanks for the new feature!        /**         * Called once per request on components before they are about to be rendered. This method         * should be used to configure such things as visibility and enabled flags.         * p         * Overrides must call {...@code