Re: jWicket 0.5.10

2010-05-17 Thread Stefan Jozsa
Thanks ! Istvan --- On Sun, 5/16/10, Stefan Lindner lind...@visionet.de wrote: From: Stefan Lindner lind...@visionet.de Subject: jWicket 0.5.10 To: users@wicket.apache.org Date: Sunday, May 16, 2010, 12:53 PM jWicket 0.5.10 is now available at wicketstuff:

Re: Bug or feature?

2010-05-17 Thread Richard Wilkinson
Hi, This is the same bug as I reported in December of last year (2009): https://issues.apache.org/jira/browse/WICKET-2636 -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com On 15 May 2010 11:25, Martin Makundi

Re: Bug or feature?

2010-05-17 Thread Martin Makundi
Hi! It cannot be the same because this is not fixed. ** Martin 2010/5/17 Richard Wilkinson richardjohnwilkin...@googlemail.com: Hi, This is the same bug as I reported in December of last year (2009): https://issues.apache.org/jira/browse/WICKET-2636 -- Regards - Richard Wilkinson

Re: Bug or feature?

2010-05-17 Thread Martin Makundi
Ah.. so is fixed in 1.5 ? Gurk... 2010/5/17 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! It cannot be the same because this is not fixed. ** Martin 2010/5/17 Richard Wilkinson richardjohnwilkin...@googlemail.com: Hi, This is the same bug as I reported in December of last year

Wicket:Form support?

2010-05-17 Thread Ayodeji Aladejebi
Sorry, I was only more conversant with older releases of wicket. Is there any wicket:form without users having to make it an inner class of a Panel. A form with its own top level markups

Empty List Default Message

2010-05-17 Thread Ayodeji Aladejebi
I think wicket should have a ListView detault Empty Model message so that one can set what will be displayed if the List Model is empty

Re: jWicket 0.5.10

2010-05-17 Thread Josh Kamau
Hi stefan, where can i see a demo? regards Josh On Sun, May 16, 2010 at 12:53 PM, Stefan Lindner lind...@visionet.dewrote: jWicket 0.5.10 is now available at wicketstuff: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent Upgraded jQuery-ui

How to perform form validation with ajax before user submits the form

2010-05-17 Thread Erich W Schreiner
Dear all, I would like to perform form validation using Ajax before the user actually submits the form, similar to Ajax-based field validation. I have added an implementation of AbstractFormValidator to the form, and an Ajax behavior that sends the current data to the server triggered by the

Re: How to perform form validation with ajax before user submits the form

2010-05-17 Thread Ernesto Reinaldo Barreiro
On 1) Why not call AjaxRequestTarget.get().addComponent(yourFeedbackPanel)? Ernesto On Mon, May 17, 2010 at 1:17 PM, Erich W Schreiner eschrei...@yahoo.com wrote: Dear all, I would like to perform form validation using Ajax before the user actually submits the form, similar to Ajax-based

Re: How to perform form validation with ajax before user submits the form

2010-05-17 Thread Erich W Schreiner
Hi Ernesto, I was not aware of this static method. Works like a charm :-) Many thanks for the quick response. Regards, Erich From: Ernesto Reinaldo Barreiro reier...@gmail.com To: users@wicket.apache.org Sent: Mon, May 17, 2010 1:26:36 PM Subject: Re: How

AW: jWicket 0.5.10

2010-05-17 Thread Stefan Lindner
Hi Josh, download ist. Call mvn install and put the resulting war file into your deploy dir. Perhaps you have to remove slf4j from the web-inf/lib folder of the war file if your server has it's own slf4j. The Demo does not look very pretty, it's more of a demonstratioin what's possible and a

Re: Empty List Default Message

2010-05-17 Thread Pedro Santos
Hi, just an idea: class EmptyMessage extends Label{ EmptyMessage(Model listModel, String message){ super(new AbstractReadyOnlyModel(){ getObject(){ listModel.getObject().size()==0?message:null; } }); } } On Mon, May 17, 2010 at 8:06 AM, Ayodeji Aladejebi

When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
I have a top page which has two panel-based components. Component 1 implements AbstractBehavior's bind method. Component 2 has a wicket Link pointing to a child page. When I am at the top page, refresh always gets #bind called. When I click the Link in Component 2, the bind method in

dynamic forms retrieve a component for validation

2010-05-17 Thread fachhoch
dynamic forms how can I identify individual component to validate them , in fixed forms in my custom valiator I use getFormComponent(acdSentToDFI).getConvertedInput() to retrieve the user entered value and validate it but in case of dynamic forms how can I identify each component? --

Re: uncaught exception in wicket-ajax.js

2010-05-17 Thread Ivan Zinchenko
Thanks, Igor! I've solved this issue for the moment. Still not 100% sure what was the cause, but anyway, maybe this will solve the problem for someone else too. Debugging wicket-ajax.js pointed that exception was thrown by xmlHttpRequest.send. While reading nslApplicationCacheChannel docs on

Re: Wicket:Form support?

2010-05-17 Thread Fernando Wermus
I've never used it, but you have FormComponentPanel. It is a wicket:panel but It also has the behavior or traits of a form. On Mon, May 17, 2010 at 6:44 AM, Ayodeji Aladejebi aladej...@gmail.comwrote: Sorry, I was only more conversant with older releases of wicket. Is there any wicket:form

Re: Which url coding strategy to make more restful in page with navigator?

2010-05-17 Thread Igor Vaynberg
please attach your code to a jira issue so it doesnt get lost. -igor 2010/5/14 cleverpig greatclever...@gmail.com: hi,everybody! Maybe we should not do the same thing to reinvent the wheel. After a morning of thinking and programming, I wrote a few simple restful navigator implement! Here

Ajax Repeater Fragment Update

2010-05-17 Thread Dr. Wolf Blecher
Hi, maybe I just get the usual response that I have to redraw the complete table, but it's worth a try. I want to implement a Drop-Down-Detail-Table, basically it is the same functionality as a tree-table but I don't want to show additional table rows, but extend the current table row with

Re: dynamic forms retrieve a component for validation

2010-05-17 Thread fachhoch
ok in fixed forms I know the id of each formcomponent and I can retrieve the component using its id , but in dynamic forms all formcomponents will have the same name and in this case how can I reterieve a specific formcomponnt ? -- View this message in context:

Re: dynamic forms retrieve a component for validation

2010-05-17 Thread Igor Vaynberg
validators get the value being validated passed in to them, not sure why you would need to get another formcomponent inside a validator. -igor On Mon, May 17, 2010 at 7:29 AM, fachhoch fachh...@gmail.com wrote: dynamic forms how can I identify individual component to validate  them , in fixed

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread Igor Vaynberg
the first link is a bookmarkable link, it recreates the page instance. bind is only called when the behavior is *added* to the component. link 2 is not a bookmarkable link, it doesnt recreate the page instance so the behavior is not added because a page instance where the behavior has already

Re: setOutputMarkupPlaceholderTag + value

2010-05-17 Thread Ivoneta
Yes hiddenField is the solution... Thanks Igor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupPlaceholderTag-value-tp2196140p2219895.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket:Form support?

2010-05-17 Thread Igor Vaynberg
no, not for the form. the standard way to accomplish such a thing is to put the form into a panel. -igor On Mon, May 17, 2010 at 2:44 AM, Ayodeji Aladejebi aladej...@gmail.com wrote: Sorry, I was only more conversant with older releases of wicket. Is there any wicket:form without users having

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
igor, you imagined the exact situation I have regarding the link types. I did not say many details such as this in my original post because I was not sure whether that is useful, but you figured it perfectly. thanks!!! --- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com wrote: From:

Re: Ajax Repeater Fragment Update

2010-05-17 Thread Jeremy Thomerson
You CAN update fragments within a table. You didn't show any markup, so I don't know what specific piece you want to update - there are some restrictions on what you can do in a table. But, if it's just in a TD or something, you're typically just fine. -- Jeremy Thomerson

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread Jeremy Thomerson
Igor's a mind-reader. Send him some more :) -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 17, 2010 at 11:23 AM, David Chang david_q_zh...@yahoo.comwrote: igor, you imagined the exact situation I have regarding the link types. I did not say many details such as this in my

Re: Best practises question

2010-05-17 Thread Jeremy Thomerson
You should use PageReference (Page#getPageReference()). -- Jeremy Thomerson http://www.wickettraining.com On Sun, May 16, 2010 at 11:52 PM, Rik van der Kleij rikvdkl...@gmail.comwrote: Hi Jeremy, So an instance field inside a page that points to another page is also something you should

HELP! org.apache.wicket.WicketRuntimeException: There is no application attached to current thread btpool0-6

2010-05-17 Thread Fernando Wermus
Hi all, I have 2 services in my app. I have wicket pages and a flex-blazeds service. My wicket app pops up a modal window to show a flex-blazeds service which connects to back end to do some business logic; *besides it sends some emails*. The emails are again rendered by wicket using a fake

Re: wicket-event.js 404

2010-05-17 Thread Lorenzo Bolzani
2010/5/14 Jeremy Thomerson jer...@wickettraining.com: Also - what version of Wicket are you using? I was using version 1.4.3. It seems to be fixed in 1.4.8. Was something related to an AjaxFormSubmitBehavior binded to the onblur event. Thanks, bye Lorenzo

Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta
Hello I have a panel with an ajax button. When the button is clicked the ajax event replace the current panel. I don't understand why after replaces the panel, the javascripts functions doesn't work. I added the javascript resources in the head of my webpage, in the traditional way html

Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Jeremy Thomerson
I'll guess, even though you don't mention it, that you are doing some JS initialization when the page first loads (like making a section of the page an accordion panel). Then you replace this section with a new one and don't reinitialize your JS stuff. You need to do

Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Zilvinas Vilutis
Well javascript should work, maybe the markup ids are changed and JS references non-existing elements or so. It's nothing clear from the markup you gave. What panel do you replace? What JS is invoked or what elements are used in JS are inside the panel? Žilvinas Vilutis Mobile: (+370) 652

Re: Best practises question

2010-05-17 Thread Zilvinas Vilutis
Are there any patterns described how to use PageReference efficiently? Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Mon, May 17, 2010 at 9:55 AM, Jeremy Thomerson jer...@wickettraining.com wrote: You should use PageReference (Page#getPageReference()). --

Re: Best practises question

2010-05-17 Thread Jeremy Thomerson
Not that I know of. Although googling Wicket pagereference will give you a discussion thread on it. Basically, just replace private Page previousPage with private PageReference previousPage. -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 17, 2010 at 12:35 PM, Zilvinas Vilutis

Re: Best practises question

2010-05-17 Thread Scott Swank
Page someBigPage = new YourBigPage(...); PageReference bigPageRef = someBigPage.getPageReference(); Now you just keep a hold of bigPageRef. When you want to go back to that page you just ask it for the page: Page reconstitutedBigPage = bigPageRef.getPage(); On Mon, May 17, 2010 at 10:35 AM,

Re: HELP! org.apache.wicket.WicketRuntimeException: There is no application attached to current thread btpool0-6

2010-05-17 Thread Igor Vaynberg
there have been numerous posts to this list on this exact topic, simply search for them. the gist was to use wicket tester to render the emails as it will set up the complete environment. -igor On Mon, May 17, 2010 at 10:13 AM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all,    I have

Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta
in the html for the webPage, I have this head titleFrontEnd Seguros/title link href=views/css/ui.all.css rel=stylesheet type=text/css/ link href=views/css/QuotePage.css rel=stylesheet type=text/css/ script language=JavaScript1.2 src=views/js/jqueryMin.js/script

Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Jeremy Thomerson
Do you use certain classes which cause the date pickers to be automatically initialized? Try adding this to AjaxRequestTarget#appendJavascript: $('.selector').datepicker(). The selector obviously needs to be a valid jQuery selector. -- Jeremy Thomerson http://www.wickettraining.com On Mon,

parent window

2010-05-17 Thread Pablo Borges
I have a page that has a text field and a button. clicking the button opens a modal panel. How do I get when I click an item in the modal panel the value is set in the text field on the screen that called the modal panel? Examples are welcome. Thanks

Re: parent window

2010-05-17 Thread Pedro Santos
If I understand, you need to use the value of the text field on the page on your modal panel. Pass it as parameter to the modal panel, as constructor parameter for instance. add( new AjaxButton(){ onSubmit(requestTarget){ (...) modal.setContent(new ModalPanel(,

Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta
The first time the datepicker field is initialized when the DOM is ready $(document).ready(function(){ $('#initialDate').datepicker({ changeMonth: true, changeYear: true, showOn: 'button', buttonImage: 'views/images/calendar.jpg',

Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Jeremy Thomerson
In the page put: function initMyDatePickers() { $('#initialDate').datepicker({ changeMonth: true, changeYear: true, showOn: 'button', buttonImage: 'views/images/calendar.jpg', buttonImageOnly: true }); } $(document).ready(initMyDatePicker); Then, in

order of javascript sources

2010-05-17 Thread Ralf Eichinger
How can I ensure that lightbox JavaScriptReference (see below) is loaded after the two HeaderContributions (prototype and scriptaculous)? - Headercontributions: add(JavascriptPackageResource.getHeaderContribution(this.getClass(), js/prototype.js));

Re: order of javascript sources

2010-05-17 Thread Zilvinas Vilutis
It can be accomplished by the component hierarchy, by knowing that parent components' references are added first or in other words renderHead is invoked earlier. So you may have a: class AbstractPrototypScriptaculousBehaviour extends AbstractBehaviour { renderHead( response ){

Re: ListView highlight selected row

2010-05-17 Thread JeroenWolff
Thanks Igor... But i forgot to tell...my app is a single page app with only Ajax replacements. Is it possible to click on a (Ajax) link in de (Pageable)ListView and replace the ListView with a changed style on the selected Item? now in my Ajax onClick i have target.addChildren(listView,

Re: ListView highlight selected row

2010-05-17 Thread Igor Vaynberg
repaint the item, eg add it to the target -igor On Mon, May 17, 2010 at 1:30 PM, JeroenWolff jeroen.wo...@gmail.com wrote: Thanks Igor... But i forgot to tell...my app is a single page app with only Ajax replacements. Is it possible to click on a (Ajax) link in de (Pageable)ListView and

Changing css class based on page

2010-05-17 Thread Ioannis Mavroukakis
Hey guys got a newbish question I cannot get my head around, and I would appreciate any help. I've got an AbstractBasePage template using markup inheritance. It very simply has some BookmarkablePageLink's which are common across all pages. What I want to do, is have a different css class for

Re: Changing css class based on page

2010-05-17 Thread Jeremy Thomerson
link1.add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() { public String getObject() { return AbstractBasePage.this.getClass().equals(LinkOnePageClass.class) ? selectedPage : notSelectedPage; } }); There's probably a way to make that more reusable - but that should get you

Re: Changing css class based on page

2010-05-17 Thread Ioannis Mavroukakis
Thanks Jeremy that's great help as that's the route I considered initially going down, trying to make it reusable is the next step.. Y. On 17 May 2010, at 22:28, Jeremy Thomerson wrote: link1.add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() { public String getObject()

Small doubt about wicket and Html

2010-05-17 Thread Victor_Trapiello
Hello guy; I´m in Spain 12.0 o´clock nothing to do and before falling a sleep I wonder... is there any method / way to hidde wicket items/componentes direct in the html code¿? I mean now I do not want to show an image, in my java code I say bablablabla myLabelWithImage.SetVisible(false); can we

Re: Small doubt about wicket and Html

2010-05-17 Thread Jeremy Thomerson
You can not do it directly in HTML - it breaks the separation of concerns. But, you can create a WebMarkupContainer, set the visibility on it, and nest your HTML within it. Then you can control the visibility for that entire block with only the single component. Also, see wicket:enclosure. --

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
Any suggestion about minimal design changes? Thanks! --- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com wrote: From: Igor Vaynberg igor.vaynb...@gmail.com Subject: Re: When is AbstractBehavior#bind not called? To: users@wicket.apache.org Date: Monday, May 17, 2010, 11:27 AM the

Just launched - www.onmydoorstep.com.au

2010-05-17 Thread Richard Nichols
Hey all, Just thought fellow Wicketeers might be interested to take a look at a site I have just launched built 100% with Wicket - http://www.onmydoorstep.com.au/ The site is a community portal for people living in Victoria, Australia and displays government data about every suburb, city and

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
One more thing regarding suggestion: The link on the second component points to a secured page (that needs login). --- On Mon, 5/17/10, David Chang david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: Re: When is AbstractBehavior#bind not called? To:

firefox 3.5.9

2010-05-17 Thread Douglas Ferguson
Where are experiencing some strange latency with ajax (even the indicator gif stops spining), so far we've only seen it on windows firefox 3.5.9 Are there any know issues? D/ - To unsubscribe, e-mail:

Re: Just launched - www.onmydoorstep.com.au

2010-05-17 Thread Cristi Manole
cool site! I like it! congrats. On Mon, May 17, 2010 at 9:31 PM, Richard Nichols r...@visural.com wrote: Hey all, Just thought fellow Wicketeers might be interested to take a look at a site I have just launched built 100% with Wicket - http://www.onmydoorstep.com.au/ The site is a

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
Or can I trigger the bind method of the first component? Regards. --- On Mon, 5/17/10, David Chang david_q_zh...@yahoo.com wrote: From: David Chang david_q_zh...@yahoo.com Subject: Re: When is AbstractBehavior#bind not called? To: users@wicket.apache.org Date: Monday, May 17, 2010, 9:33 PM

Re: Which url coding strategy to make more restful in page with navigator?

2010-05-17 Thread cleverpig
ok,I'd created a improvement issue: https://issues.apache.org/jira/browse/WICKET-2876 2010/5/17 Igor Vaynberg igor.vaynb...@gmail.com: please attach your code to a jira issue so it doesnt get lost. -igor 2010/5/14 cleverpig greatclever...@gmail.com: hi,everybody! Maybe we should not do

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread Igor Vaynberg
behaviors have onbeforerender which will be called no matter what kind of link is used. -igor On Mon, May 17, 2010 at 6:30 PM, David Chang david_q_zh...@yahoo.com wrote: Any suggestion about minimal design changes? Thanks! --- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com wrote:

wicketstuff-merged-resources 3.1 parent class scanning?

2010-05-17 Thread Ryan Crumley
All, [If there is a wicketstuff specific mailing list please let me know and I will be happy to post there (wicketstuff.org is down so its difficult to find information).] I am using wicketstuff-merged-resources (3.1-SNAPSHOT) with wicketstuff-annotation (1.1) and I have found a potential issue

click url /submit cross target between iframes

2010-05-17 Thread Emulator
Hi everyone, I'm using wicket 1.4.8, and IE6(IE 6 request due to project restriction). I have a three pages, Menu(on left side), List(top on the right), Detail(buttom on the right). The List page is simply like a bookshelf that shows each book's name. When I click one of the book on the

Re: firefox 3.5.9

2010-05-17 Thread Martin Makundi
Are you using firebug? 2010/5/18 Douglas Ferguson doug...@douglasferguson.us: Where are experiencing some strange latency with ajax (even the indicator gif stops spining), so far we've only seen it on windows firefox 3.5.9 Are there any know issues? D/

Re: firefox 3.5.9

2010-05-17 Thread nicolas melendez
when you enter to gmail, with firebug activated, a warning appear! haha On Tue, May 18, 2010 at 12:35 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Are you using firebug? 2010/5/18 Douglas Ferguson doug...@douglasferguson.us: Where are experiencing some strange latency with

Re: Just launched - www.onmydoorstep.com.au

2010-05-17 Thread Jeremy Thomerson
I concur - very nice. -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 17, 2010 at 8:43 PM, Cristi Manole cristiman...@gmail.comwrote: cool site! I like it! congrats. On Mon, May 17, 2010 at 9:31 PM, Richard Nichols r...@visural.com wrote: Hey all, Just thought fellow

HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread bht
Hi, IDE technology now offers HTML refactoring support even including css style selectors. Dreamweaver supports HTML remplates. In principle, Wicket could support these technologies due to its clean HTML approach. However, I have not been able to get any of this to work, because Wicket ignores

Re: wicketstuff-merged-resources 3.1 parent class scanning?

2010-05-17 Thread Jeremy Thomerson
I'm not a maintainer on those projects so I defer on applying the following patches. However, I think that it is a bug. If it is a bug, it will also require a change in the annotations project in WicketStuff. I have created a patch for each. Could you test it and see if it works? If so, I'll

Re: HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread Jeremy Thomerson
You won't get full previewability in Wicket. A page can have a panel that is marked with div wicket:id=myPanel That panel could be any panel at runtime - and there'd be no way to preview the page with the panel in it without running the app. I've seen teams successfully get their HTML designers

Re: HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread bht
Jeremy, I am not asking for full previewbly in the sense that you are describing. Obviously this is not possible in dynamic scenarios. However, Dreamweaver provides templates where each panel can be previewed in the context of a page so it is Dreamweaver that provides full previewability. I have

Re: HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread Jeremy Thomerson
Have you tried using wicket:link around your resource references? -- Jeremy Thomerson http://www.wickettraining.com On Tue, May 18, 2010 at 12:10 AM, b...@actrix.gen.nz wrote: Jeremy, I am not asking for full previewbly in the sense that you are describing. Obviously this is not possible

Re: firefox 3.5.9

2010-05-17 Thread Douglas Ferguson
I think firebug is installed but not running. D/ On May 17, 2010, at 10:35 PM, Martin Makundi wrote: Are you using firebug? 2010/5/18 Douglas Ferguson doug...@douglasferguson.us: Where are experiencing some strange latency with ajax (even the indicator gif stops spining), so far we've

Re: Request Https page

2010-05-17 Thread v...@wav@gmail.com
Hello, I have implemented the HttpsRequestCycleProcessor in the application class and added @RequiredHttps in the Login Page. But i haven't used https in any of the application before. Could anyone tell how to access the page from the browser. If it is a http page, we simply call like