Re: Form Components With Built In Feedback

2009-01-13 Thread Martin Makundi
of the corresponding markup to remove the references to input instead converting them all to elements. Thanks! Justin Martin Makundi wrote: Hi! There are: * FormComponentFeedbackBorder * FormComponentFeedbackIndicator ... and you can also make your own, it is easy to react to the feedback

Re: Update number of login users in all user's page when new user login

2009-01-12 Thread Martin Makundi
How does this perform in a clustered environment? The specification says: A servlet container is not required to propagate HttpSessionEvents to different JVMs ** Martin 2009/1/13 Eunice peiwen0...@gmail.com: Ok..Thanks for your reply.. igor.vaynberg wrote: see HttpSessionListener

Re: generalized way to ignore mouse input during screen refresh?

2009-01-10 Thread Martin Makundi
I use a non-intrusive javascript snipplet which requires nothing else from the server side and it works with or without Wicket...: css: #busy-symbol { position: absolute; top: 0px; left: 0px; margin: 0px; width: 100%; z-index: 10; background: url(../images/raster.png) repeat; cursor: wait; }

Re: Gant like component in wicket

2009-01-09 Thread Martin Makundi
Just a Wicket WebMarkupContainer will do. Put it in a listview. t. Martin 2009/1/9 lizz elisabeth.thor...@bouvet.no: Yes I know but this should be displayed in a wicket web page and the number of tasks types is not static (it is based on the page datamodel (CompundPropertyModel), so I think

Empty File Upload field breaks validation of other fields in WicketTester

2009-01-09 Thread Martin Makundi
Hi! Empty File Upload field breaks validation of other fields in WicketTester. The form processes a simple MockHttp..Request but the tester sends Multipart...Request. Wicket quickstart attached to jira: https://issues.apache.org/jira/browse/WICKET-2015 Anybody familiar with the necessary

Re: Twenty Six Wicket Tricks

2009-01-08 Thread Martin Makundi
Here's one good article: http://talk-on-tech.blogspot.com/2008/12/wicket-neat-url-encoding-strategy-and.html 2009/1/8 Gwyn Evans gwyn.ev...@gmail.com: Not sure if it qualifies as enough of a topic, but would some form of overview/comparison/when to use syummary of the various URL coding

Re: Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread Martin Makundi
I did not know of this.. I have always used the IChoiceRenderer's getIdValue to distinguish between dropdown elements.. I have never overridden the modelcomparator. I wonder... which way is the right way :) ** Martin 2009/1/8 walnutmon justin.m.boy...@gmail.com: I have dropdowns that are

Re: UML Diagram of Wicket structure

2009-01-08 Thread Martin Makundi
If it ain't broken, don't try to fix it... 2009/1/8 Igor Vaynberg igor.vaynb...@gmail.com: well, its either IStringResourceLoader and a StringResourceLoader as the default implementation - and there usually is just the default or StringResourceLoader and StringResourceLoaderImpl or

Re: Gant like component in wicket

2009-01-08 Thread Martin Makundi
Hi! I have done a somewhat similar looking element with divs. All you need is to tell the div its starting point, width and height and color, and you get exactly what you want. If you want it to be clickable you just put a link anchor around it (a href=..div style=left: xx; width: xx; height:

Re: DropDownChoice onchange event with AjaxEventBehaviour

2009-01-07 Thread Martin Makundi
Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are

Re: Bug? The page set by setReponsePage does not process its own response.

2009-01-06 Thread Martin Makundi
On Tue, Jan 6, 2009 at 13:58, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I have found out that the page set by setReponsePage does not process its own response and created a jira issue: https://issues.apache.org/jira/browse/WICKET-2006 I also attached a wicket quickstart

Re: sorry, what do u mean for that?

2009-01-06 Thread Martin Makundi
Yellow snow should do it... 2009/1/7 wch2001 wch2...@hotmail.com: My question is I am doing downloadLink , when the file is existed, it is ok to download it, but when the file is not existed, no any error message No file exist! to popup! According to debug, i can see it already go to the

Re: sorry, what do u mean for that?

2009-01-06 Thread Martin Makundi
Maybe try asking the question in your native language? ** Martin 2009/1/7 wch2001 wch2...@hotmail.com: I use DownloadLink, when file is not existed, there is not any info message. how to solve it? I want to show some message like No file finds when the file is not existed thanks a

Re: Modal window - chagne width and height

2009-01-05 Thread Martin Makundi
Why don't you just set the modal window div css properties with javascript? http://developer.apple.com/internet/webcontent/styles.html 2009/1/5 Vitek Tajzich v.tajz...@gmail.com: Yes, that right but these properties are read only at construction time so I'm not able to change size of already

Trying to kill the session

2009-01-05 Thread Martin Makundi
Hi! I have difficulties killing the session at login. I have two pages: A) A stateful page which I have visited before login. Some information is stored in the session while 'unauthenticated' B) A stateful login page. If the user logs in, I want to kill the session created in A) and start a new

Re: Modal window - chagne width and height

2009-01-05 Thread Martin Makundi
be get from modal's java object properties... Last line will center your modal Windows after resizing. BR, V. -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Monday, January 05, 2009 10:53 AM To: users@wicket.apache.org Subject: Re: Modal

WicketTester OnChangeAjaxBehavior ?

2008-12-29 Thread Martin Makundi
Hi! I have some select boxes on the screen which trigger screen refresh in live mode. However, I have not yet figured out how to trigger OnChangeAjaxBehavior using WicketTester in a non-intrusive manner. I have found some intrusive workarounds that tweak the server-side models, but what is the

Re: Is there any collapsible container ?

2008-12-21 Thread Martin Makundi
And there is an implementation using border whose quickstart is available here: https://issues.apache.org/jira/browse/WICKET-1789 ** Martin 2008/12/21 Jeremy Thomerson jer...@wickettraining.com: See the accordian in Wicket Stuff. You might need to help Nino get it up to date with Wicket

Re: Closing Modal Window and redirect to anonther Page! Problem!

2008-12-19 Thread Martin Makundi
You can use WindowClosedCallback... modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { --- redirect } }); ** Martin 2008/12/19 HITECH79 hitec...@web.de: Hallo wicket-friends, i have

Re: Expanding table row - need idea

2008-12-17 Thread Martin Makundi
Well.. here is a showhideborder that you can use.. you know how to use borders? public class ShowHideBorder extends Border implements WebPageConstants { /** */ public static final String TOGGLE_CONTENTS_BUTTON = toggle_contents_button; /** */ public static final String CONTENTS =

Re: Expanding table row - need idea

2008-12-17 Thread Martin Makundi
wicket:body / /span /fieldset /wicket:border 2008/12/17 Martin Makundi martin.maku...@koodaripalvelut.com: Well.. here is a showhideborder that you can use.. you know how to use borders

ERROR: Error while parsing response: Could not find root ajax-response element

2008-12-16 Thread Martin Makundi
Hi! Critical bug https://issues.apache.org/jira/browse/WICKET-1916 Anybody know what's causing the problem? I attached a quickstart for repeating the bug. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Why am I getting this error?

2008-12-16 Thread Martin Makundi
on each row to allow report parameters to be set... Simple enough, eh? -Dennis Martin Makundi wrote: Can you make a quickstart project that repeats the problem? ** Martin 2008/12/16 dbuttery dennis.butt...@connectedenergy.com: Nope. removeAll is never used. Martin Makundi wrote

Re: Why am I getting this error?

2008-12-16 Thread Martin Makundi
Can you make a quickstart project that repeats the problem? ** Martin 2008/12/16 dbuttery dennis.butt...@connectedenergy.com: Nope. removeAll is never used. Martin Makundi wrote: Do you ever call listview.removeAll ? 2008/12/15 dbuttery dennis.butt...@connectedenergy.com: Hi all

Wicket and time zones, wrong month?

2008-12-16 Thread Martin Makundi
Hi! I am using org.apache.wicket.datetime.PatternDateConverter to convert my date objects (in a select combo) into strings. The funny thing is that on my test server the debug output says: AbstractCalendarPanel - Date 2008-06-01 converted into may zone Etc/GMT On my development computer the

Re: Why am I getting this error?

2008-12-15 Thread Martin Makundi
Do you ever call listview.removeAll ? 2008/12/15 dbuttery dennis.butt...@connectedenergy.com: Hi all, I have a ListView in which each repeater row has a button to launch a ModalWindow. I actually do this multiple times in my application so I know that it does work. I just added a new

Recording component paths for WicketTester

2008-12-14 Thread Martin Makundi
Hi! I often find myself spending a tremendeous amount of time mind-boggling with Component:paths for my WicketTester tests. I assume that it would be pretty easy to code a 'WicketTest recorder'. The solution would probably be some kind of filter properly attached into the wicket framework at

Re: Recording component paths for WicketTester

2008-12-14 Thread Martin Makundi
and 1.4-rc1. On Sun, Dec 14, 2008 at 6:41 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I often find myself spending a tremendeous amount of time mind-boggling with Component:paths for my WicketTester tests. I assume that it would be pretty easy to code a 'WicketTest

Re: Hourglass during Ajax

2008-12-05 Thread Martin Makundi
Combine it nicely with generic busy indicator: http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html Just make the div pick the size from the screen and set it on top with cursor type wait. ** Martin 2008/12/5 Martijn Dashorst [EMAIL PROTECTED]: Why not

Re: avoid ajax response evaluate javascript

2008-12-04 Thread Martin Makundi
There is ServletWebRequest.isAjax ** Martin 2008/12/4 francisco treacy [EMAIL PROTECTED]: i've been using the aforementioned toggle behavior almost always in ajaxy pages, and in that case they work fine. basically that means i add toggle behaviors to components in a page. when i call an

Re: RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-25 Thread Martin Makundi
This seems to result in org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.wicket.util.io.DeferredFileOutputStream I must implement the detach() method for the dummy fileUpload model: form.add(fileUploadField = new

Re: Memory consumption per session

2008-11-21 Thread Martin Makundi
Would it help using Bookmarkable links? ** Martin 2008/11/21 Igor Vaynberg [EMAIL PROTECTED]: On Fri, Nov 21, 2008 at 9:18 AM, Ralf Siemon [EMAIL PROTECTED] wrote: Thanks for the advice. Unfortunately we cannot do this here, because the ListViews contain Link components for user interaction.

Re: Memory consumption per session

2008-11-20 Thread Martin Makundi
What is the easiest way of embedding raw html (yes, it could/should use some xml dom which is included with wicket)? Is it possible, for example, to replace a wicket:container/ element on a panel with such raw dom content? ** Martin 2008/11/20 Igor Vaynberg [EMAIL PROTECTED]: if you are

Re: Memory consumption per session

2008-11-20 Thread Martin Makundi
What is the out-of-the-box xml dom generator for wicket, if I wanted to use such tool for generating the html structure? ** Martin 2008/11/20 Martijn Dashorst [EMAIL PROTECTED]: add(new Label(raw, h1Foo/h1).setEscapeModelStrings(false)); On Thu, Nov 20, 2008 at 5:00 PM, Martin Makundi [EMAIL

FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Hi! My FileUploadField worked fine before: dataForm.add(fileUploadField = new FileUploadField(COMPANY_LOGO)); After upgrading to 1.4 rc-1 (from 1.4-m1) the upload crashes. Am I doing something wrong or is there a bug in rc-1? Caused by: java.lang.IllegalStateException: Attempt to set

Re: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
How? It accepts only FileUpload, which cannot be constructed as a dummy. Or can it? ** Martin 2008/11/19 Bruno Cesar Borges [EMAIL PROTECTED]: Yes, you need to set a Model object into FileUploadField. :-) Bruno -Mensagem original- De: Martin Makundi [mailto:[EMAIL PROTECTED

Re: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Where is such method? ** Martin 2008/11/19 Igor Vaynberg [EMAIL PROTECTED]: call hasexplicitmodel(false) -igor On Wed, Nov 19, 2008 at 8:43 AM, Martin Makundi [EMAIL PROTECTED] wrote: How? It accepts only FileUpload, which cannot be constructed as a dummy. Or can it? ** Martin

Re: RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Martin Makundi
Strange quirk.. someone removed the preceding hack from within. Is there some flaw in the FileUploadFIeld design? ** Martin 2008/11/19 Erik van Oosten [EMAIL PROTECTED]: Yeah, I run into the same thing. Just pass FileUploadField an empty model: new ModelFileUpload() Regards, Erik.

Re: Lightweight generic busy indicator

2008-11-08 Thread Martin Makundi
the url and go to the form, and click refresh once, it works fine again. Almost like for some reason it can't be used on the page that creates the users session. Any ideas about this? Martin Makundi wrote: Hi! I put it into the Reference Library - Ajax as Generic Busy Indicator (for both Ajax

No behavior listener found

2008-11-04 Thread Martin Makundi
Hi! What does this error mean? No behavior listener found with behaviorId 0 What is being done wrong? Normally, the site works ok but the error log shows this kind of error. Am I manifesting some known Wicket antipattern which causes this error? Or is it just a result of another illegal state?

Re: No behavior listener found

2008-11-04 Thread Martin Makundi
Igor Vaynberg [EMAIL PROTECTED]: looks like the behavior that generated the callbakc url being invoked is no longer there... do you have any temporary behaviors on that component? -igor On Tue, Nov 4, 2008 at 9:07 AM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! What does this error mean

Re: No behavior listener found

2008-11-04 Thread Martin Makundi
/11/4 Igor Vaynberg [EMAIL PROTECTED]: the error means that a behavior constructed the url, but when the user followed the url the behavior could no longer be found. what npe? can you show the full stack trace? -igor On Tue, Nov 4, 2008 at 10:01 AM, Martin Makundi [EMAIL PROTECTED] wrote

Re: Should/Could ServletWebRequest.isAjax be cached?

2008-11-03 Thread Martin Makundi
I tried in deployment mode... no significant difference in the load distribution. ** Martin 2008/11/3 James Carman [EMAIL PROTECTED]: On Mon, Nov 3, 2008 at 12:17 AM, Martin Makundi [EMAIL PROTECTED] wrote: Can you be more specific about this? In what context should the parsing results

Re: Should/Could ServletWebRequest.isAjax be cached?

2008-11-02 Thread Martin Makundi
:01 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: looks good, please create a jira issue. -igor On Sat, Nov 1, 2008 at 5:11 AM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! I was profiling my Wicket application and noticed that Jetty's getHeader method was hit quite often. It turns out

How can I format feedback messages?

2008-11-02 Thread Martin Makundi
Hi! How can I (centrally / per component) format the Numbers and Dates in feedback messages? I found some discussion about it, but no solution yet: http://www.mail-archive.com/[EMAIL PROTECTED]/msg00736.html ** Martin - To

Broken pipe

2008-11-02 Thread Martin Makundi
Hi! I quite often suffer this exception.. anybody have similar experiences and know of a workaround? It crashes the jvm.. 2008-11-02 18:48:02,819 4[btpool0-4] ERROR TakpServlet - Faltal error, servlet service halted. org.mortbay.jetty.EofException at

Re: Should/Could ServletWebRequest.isAjax be cached?

2008-11-02 Thread Martin Makundi
So, some streamlining might be in order there, even after this particular issue. Do you have a lot of Ajax updates of small components without their own markup? https://issues.apache.org/jira/browse/WICKET-1857 might be hitting you as well and it would be interesting to see if your

Re: Broken pipe

2008-11-02 Thread Martin Makundi
Erik van Oosten [EMAIL PROTECTED]: My latest application also runs on 64bit (Ubuntu 8.04). The JVM crashed regularly (in the compiler) until I upgraded to Java 6u10. Regards, Erik. Martin Makundi wrote: Hi! I quite often suffer this exception.. anybody have similar experiences and know

Should/Could ServletWebRequest.isAjax be cached?

2008-11-01 Thread Martin Makundi
Hi! I was profiling my Wicket application and noticed that Jetty's getHeader method was hit quite often. It turns out the ServletWebRequest.isAjax method is hit quite often by each of the page elements (I am generating a large HTML report page). Since the Servlet container may not have optimal

Re: WicketTester.assertErrorMessages - encoding problem

2008-11-01 Thread Martin Makundi
Hi! Have you tried in your WicketApplication.init to set encoding: getMarkupSettings().setDefaultMarkupEncoding(WebPageConstants.ISO_8859_1); ** Martin 2008/11/1 Artur W. [EMAIL PROTECTED]: Hi! My test failed becouse Wicket returns FeedbackMessages in different encoding (?) than the

Re: Panel with css styling

2008-09-01 Thread Martin Makundi
Here is some Tab technique which I have used and is quite flexible and you can even add autorization levels to the tab handling: public class TabPage extends WebPage { private static final ListClass? extends Panel tabs = Arrays.asList( /** * Panels */

Property that references property

2008-08-31 Thread Martin Makundi
Hi! Sometimes I think it would be useful to refer properties from properties. Example: WicketApplication.properties -file: myProperty=The maximum width allowed is ${property.maxWidth} pixels property.maxWidth=30 Now I would like to use the maxWidth simultaneously for both validation purposes

Propertyresolver could be more informative

2008-08-25 Thread Martin Makundi
I created a jira issue with a suggested fix, feel free to vote: https://issues.apache.org/jira/browse/WICKET-1802 WicketMessage: no set method defined for value: true on object: ... at org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1107) In case

Re: Inline-pdf generated on the fly using DynamicWebResource - Showing Custom FileName on File - Save As

2008-08-23 Thread Martin Makundi
click the download link, it points to an url that ends with your filename. ** Martin Martin Makundi wrote: The problem i am facing is with the usage of File-SaveAs or Adobe-Toolbar - Save Icon when trying to save the file. Basically on clicking any of the above the file-name shown by-default

Re: Mounting dynamic content

2008-08-22 Thread Martin Makundi
on the fly.. Thanks in advance.. Martin Makundi wrote: Yes, I solved it. I open the file as a bookmarkable page which is mounted as /MyPage.doc or /MyPage.pdf. ** Martin 2008/8/21 mfs [EMAIL PROTECTED]: Hi Martin did you come out with a solution for mounting a DynamicWebResource, actually

Re: Inline-pdf generated on the fly using DynamicWebResource - Showing Custom FileName on File - Save As

2008-08-22 Thread Martin Makundi
The problem i am facing is with the usage of File-SaveAs or Adobe-Toolbar - Save Icon when trying to save the file. Basically on clicking any of the above the file-name shown by-default on the Save-As dialog box is the context-path (the part before the url-parameters) i.e. mypage in case the

Re: CSS with media print applied on AJAX panel replacement on wicket 1.3.3

2008-08-22 Thread Martin Makundi
How do you know it is not applied? At least in Firefox there is a setting when printing 'ignore css' or something.. ** Martin 2008/8/22 Magnus Forsberg [EMAIL PROTECTED]: Hi all! In my application I'm doing panel replacement with ajax and one of the panels have a head contribution with some

Re: HTML Fragments

2008-08-18 Thread Martin Makundi
In an Ajax call you get a handle to the so-called ajax target. The ajax target is used to ajax-update components ('to be updated via an AJAX call'). So, roughly a non-ajax link is as follows: page.add(new Link(xx)); An ajax link is as follows: page.add(new AjaxLink(xx) { @Override

Re: Problem with implementing borders

2008-08-16 Thread Martin Makundi
/org/wicket/quickstart/HomePage.html ** Martin 2008/8/10 Igor Vaynberg [EMAIL PROTECTED]: weird. create a quickstart and attach it to a jira issue -igor On Sun, Aug 10, 2008 at 9:24 AM, Martin Makundi [EMAIL PROTECTED] wrote: Yes, I replaced it with span but it does not work if I default

Re: color code options in drop down choice

2008-08-10 Thread Martin Makundi
Another possibility would be to just enable suitable hooks in the rendering phase of xxChoices. I.e., a method String getOptionAttributes(T t) or similar would be called during the render phase of a DropDownChoice. sure, submit an RFE Ok, https://issues.apache.org/jira/browse/WICKET-1785 I

Re: Problem with implementing borders

2008-08-10 Thread Martin Makundi
, 2008 at 10:54 PM, Martin Makundi [EMAIL PROTECTED] wrote: Hi Igor, another problem relating to the borders: The markup is the same now, but if the content is set to be hidden (visible=false) on the first time I load the page, I get the same error message (Expected close tag for border). So

The TabbedPanel component should be improved by adding the ability to individually style (CSS) to each tab?

2008-08-09 Thread Martin Makundi
Hi! I came up with this shorcoming in Wicket, or does anybody have a workaround? https://issues.apache.org/jira/browse/WICKET-1783 ** Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: The TabbedPanel component should be improved by adding the ability to individually style (CSS) to each tab?

2008-08-09 Thread Martin Makundi
I must pull this back... I guess the method protected LoopItem newTabContainer(int tabIndex) will pull this off. ** Martin 2008/8/9 Martin Makundi [EMAIL PROTECTED]: Hi! I came up with this shorcoming in Wicket, or does anybody have a workaround? https://issues.apache.org/jira/browse

Problem with implementing borders

2008-08-09 Thread Martin Makundi
Hi! I am trying to follow the example at http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html However, I keep getting the error Expected close tag for wicket:container wicket:id=test where the test-container is the border block. I cannot seem to find any hierarchy errors

Re: color code options in drop down choice

2008-08-09 Thread Martin Makundi
Using Select/SelectOption/SelectOptions I loose all the other encapsulated benfits of DropDownChoice or ListChoice. Wouldn't it be a good idea to have IChoiceRenderer or a similar interface with a method getDispayStyle for each option? ** Martin 2008/4/29 Igor Vaynberg [EMAIL PROTECTED]: see

Re: Problem with implementing borders

2008-08-09 Thread Martin Makundi
I tried also wicket:container wicket:id=contents wicket:body/ /wicket:container which gives the same error message. ** Martin 2008/8/9 Igor Vaynberg [EMAIL PROTECTED]: wicket:body should not have a wicket:id -igor On Sat, Aug 9, 2008 at 2:17 AM, Martin Makundi [EMAIL PROTECTED

Re: color code options in drop down choice

2008-08-09 Thread Martin Makundi
Take a look http://jweekend.com/dev/ArticlesPage/ here , at the Wicket Select And SelectOption presentation (roughly about half way through). Yes, but with Select And SelectOption you loose the benefits of dropdownchoice (automatic notnull and localization, for example). ** Martin Regards

Re: Problem with implementing borders

2008-08-09 Thread Martin Makundi
, 2008 at 7:43 AM, Martin Makundi [EMAIL PROTECTED] wrote: I tried also wicket:container wicket:id=contents wicket:body/ /wicket:container which gives the same error message. ** Martin 2008/8/9 Igor Vaynberg [EMAIL PROTECTED]: wicket:body should not have a wicket:id -igor

Re: color code options in drop down choice

2008-08-09 Thread Martin Makundi
. -igor On Sat, Aug 9, 2008 at 10:06 PM, Martin Makundi [EMAIL PROTECTED] wrote: Take a look http://jweekend.com/dev/ArticlesPage/ here , at the Wicket Select And SelectOption presentation (roughly about half way through). Yes, but with Select And SelectOption you loose the benefits

I do not see my wicket:container rendered?

2008-08-09 Thread Martin Makundi
Hi! I want to use my wicketContainer (wicket:container tag) for a placeholder for a ajax replace. I have the following settings: // ... getMarkupSettings().setStripWicketTags(true); // ... wicketContainer.setOutputMarkupPlaceholderTag(true).setRenderBodyOnly(false);

Re: color code options in drop down choice

2008-08-09 Thread Martin Makundi
instanceof MyChoiceRenderer) { ... and sugarcoat my option ... } ** Martin On Sat, Aug 9, 2008 at 10:21 PM, Martin Makundi [EMAIL PROTECTED] wrote: It would be pretty easy to just add a getDispayStyle method into the IChoiceRenderer interface and refactor the various classes using it to support

Re: I do not see my wicket:container rendered?

2008-08-09 Thread Martin Makundi
. ** Martin On Sat, Aug 9, 2008 at 10:35 PM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! I want to use my wicketContainer (wicket:container tag) for a placeholder for a ajax replace. I have the following settings: // ... getMarkupSettings().setStripWicketTags(true

Re: AjaxButton does not work

2008-08-08 Thread Martin Makundi
Why not use gt;gt; instead of ? ** Martin 2008/8/8 Alastair Maw [EMAIL PROTECTED]: OK, so you have firebug installed, which is a great start. Look at the generated HTML in your browser. Does the link have an onclick attribute? Are there any errors in the Javascript console if you turn that

Re: Wicket + Hibernate without Spring and Databinder

2008-08-08 Thread Martin Makundi
a lot for your answers Could i see the content of this method EntityManagerUtils.disposeEntityManagers() Greetings Martin Makundi wrote: Hi! I am using this configuration (actually with Jetty, not Tomcat). 1. I have a persistence.xml with all the necessary setup (if you have plain

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Martin Makundi
a lot... Cheers Martin Makundi wrote: Hi! I am using this configuration (actually with Jetty, not Tomcat). 1. I have a persistence.xml with all the necessary setup (if you have plain Hibernate, you have hibernate-cfg.xml). 2. I have a EntityManagerUtil class for managing the connection

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Martin Makundi
Hi! I am using this configuration (actually with Jetty, not Tomcat). 1. I have a persistence.xml with all the necessary setup (if you have plain Hibernate, you have hibernate-cfg.xml). 2. I have a EntityManagerUtil class for managing the connection (you could have, e.g., HibernateUtil or

Re: Managing database connection?

2008-08-04 Thread Martin Makundi
) { return new MyRequestCycle(this, (WebRequest)request, (WebResponse)response); } I hope that this helps. Joe C -Original Message- From: Martin Makundi [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2008 9:07 AM To: users@wicket.apache.org Subject: Re: Managing

Managing database connection?

2008-08-03 Thread Martin Makundi
Hi! What is the best place to open/close a data connection in Wicket? I prefer lazy open, but where is the best place to perform the connection/entitymanager.close? Override servlet request? Filter? ** Martin - To unsubscribe,

Re: Managing database connection?

2008-08-03 Thread Martin Makundi
for JDBC template (which is highly recommended for normal JDBC actions IMO). Martijn On Sun, Aug 3, 2008 at 12:45 PM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! What is the best place to open/close a data connection in Wicket? I prefer lazy open, but where is the best place to perform

Re: Managing database connection?

2008-08-03 Thread Martin Makundi
it in onEndRequest. Perhaps DataBinder.net has one readily available. Martijn On Sun, Aug 3, 2008 at 1:11 PM, Martin Makundi [EMAIL PROTECTED] wrote: I am using Hibernate/JPA without Spring. Is there a suitable interceptor class in Wicket that could be used? ** Martin 2008/8/3 Martijn Dashorst

Re: Managing database connection?

2008-08-03 Thread Martin Makundi
code of DataBinder.net? ** Martin On Sun, Aug 3, 2008 at 2:28 PM, Martin Makundi [EMAIL PROTECTED] wrote: Anything lighter? Basically I just need to hook the onEndRequest() event. I assume it would be bad practice to extend the wicket servlet, though .. ** Martin 2008/8/3 Martijn Dashorst

Re: Confused

2008-06-23 Thread Martin Makundi
Hi! Here is a good example of a list model: public abstract class AbstractListChoiceModelS extends AbstractReadOnlyModelList? extends S { @Override public final ListS getObject() { return getChoices(); } public abstract ListS getChoices(); } Now change your code as follows:

Re: Confused

2008-06-23 Thread Martin Makundi
, Eyal Martin Makundi wrote: Hi! Here is a good example of a list model: public abstract class AbstractListChoiceModelS extends AbstractReadOnlyModelList? extends S { @Override public final ListS getObject() { return getChoices(); } public abstract ListS getChoices(); } Now

Re: Confused

2008-06-23 Thread Martin Makundi
. LinksPanel ha a ListView that uses a different AbstarctReadOnlyModel. So my problem is that when I set the DB with new values, I need to inform the Model (in the original panel) somehow that the DB was changed. Eyal On Mon, Jun 23, 2008 at 3:26 PM, Martin Makundi [EMAIL PROTECTED] wrote: I

Re: Confused

2008-06-23 Thread Martin Makundi
So the problem is: how can I tell my Model (detachable) that there was change in the database? Ok. I haven't worked with detachable models, but I would guess you just detach it so that it has to re-initialize itself? ** Martin

Re: DropDownChoice and Raw Input values (of e.g., textfields)

2008-06-22 Thread Martin Makundi
:) Should I just roll with this solution? ** Martin 2008/6/21 Stefan Lindner [EMAIL PROTECTED]: Maybe the AjaxFormValidatingBehavior is what you need. -Ursprüngliche Nachricht- Von: Martin Makundi [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 21. Juni 2008 10:56 An: users

Re: DropDownChoice and Raw Input values (of e.g., textfields)

2008-06-22 Thread Martin Makundi
The problem is, that even though I re-use the textField, it does not know its convertedInput (probably because the form has not actually been submitted?) and it resets itself to its original state. I would like it to keep its state as it was when the new dropdown value was selected. Have

DropDownChoice and Raw Input values (of e.g., textfields)

2008-06-21 Thread Martin Makundi
Hi! Is there a simple way to make DropDownChoice.onChange behave in a manner somewhat similar to an AjaxFallbackButton.setDefaultFormProcessing(false).onClick? I have a dropDown and a textField. They are both within a PANEL that gets AjaxRefreshed whenever the dropdown choice is changed. The

Re: Chaining components

2008-06-16 Thread Martin Makundi
I've been thinking about writing aspects that fire Component.onModelChanged even when the model's object changed (possibly deep within an object hierarchy). Do you have a demo about this? I am about to write a HierarchicalAjaxRefreshTargetPropagator soon just to get a feeling if it is a bad

Re: Chaining components

2008-06-16 Thread Martin Makundi
If you just need a reference to the AjaxRequestTarget then you can do RequestCycle.get().getRequestTarget() and do an instanceof with AjaxRequestTarget. Well, I need the ajax event too so I suppose I can equally well pick up the target from there. I will post my brain later if I am succesful.

Re: Chaining components

2008-06-16 Thread Martin Makundi
What is your idea of nice chaining? http://wicketstuff.org/wicket13/ajax/choice I am using 1.4-m1 and I tried to make public abstract class AbstractListChoiceModelS extends AbstractReadOnlyModelListS { @Override public final ListS getObject() { return getChoices(); } protected

Chaining components

2008-06-15 Thread Martin Makundi
Hi! When I chain components, comboboxes and tables etc., I find myself repeatedly solving the same problem: * the parent component causes a data reload * the parent component causes an ajax refresh Has someone found a generic eventlistener-like solution to this? My current inline

Re: Chaining components

2008-06-15 Thread Martin Makundi
if you chain your models properly (make child's model depend on parent's model) this should work transparently. Say I have a Person with properties Person.country and Person.city. Then I have a countryCombo = dropDown... and a cityCombo = dropDown().. Now if I change the country, I must change

Re: Chaining components

2008-06-15 Thread Martin Makundi
Now if I change the country, I must change the list of allowed values for cityCombo. http://wicketstuff.org/wicket13/ajax/choice Thanks, I remember seeing that but already forgot about the idea that a dropdown choice can be a model, and a smart model too. interface statechangedlistener {

Re: ListViews in a form question

2008-06-12 Thread Martin Makundi
Martin Makundi [EMAIL PROTECTED]: Hi! I have nested listviews which draw a complex tabular form having variable colspans and rowspans depending on the state of the form. I have an Add button to add elements into one of the inner listviews. Problem: 1. If I have setReuseItems true, the HTML

Re: Refresh ModalWindow - Impossible??

2008-06-12 Thread Martin Makundi
Hi! Did not quite get the big picture. But, I have experienced problems when synchronizing between two different pages because Wicket seems to serialize-deserialize the session - object references change. I was debugging this for quite a while as the underlaying page was updating models that

Re: beginner question about models when having more than one component of the same type on the same page

2008-06-11 Thread Martin Makundi
Can you paste the code for better insight into your problem? 2008/6/11 Peter Eriksson [EMAIL PROTECTED]: Hello, I have just begun to use wicket and so far I am very impressed with the framework. I have a question about best practice to solve a problem. I have a component (wicket panel) that

setRenderBodyOnly(true) - something more powerful?

2008-06-11 Thread Martin Makundi
Hi! I have had to tweak some markup. I have complex tables so my markup is as follows: table thead.../ tbody wicket:id=radioGroup1/ tbody wicket:id=radioGroup2/ div wicket:id=rowListView tr wicket:id=rowspanListView /// close tags ofcourse I would very much like to hide the excess div and

Re: setRenderBodyOnly(true) - something more powerful?

2008-06-11 Thread Martin Makundi
11, 2008, at 9:29 AM, Martin Makundi wrote: Hi! I have had to tweak some markup. I have complex tables so my markup is as follows: table thead.../ tbody wicket:id=radioGroup1/ tbody wicket:id=radioGroup2/ div wicket:id=rowListView tr wicket:id=rowspanListView /// close tags

Re: setRenderBodyOnly(true) - something more powerful?

2008-06-11 Thread Martin Makundi
Done :) 2008/6/11 Igor Vaynberg [EMAIL PROTECTED]: it is a wiki -igor On Wed, Jun 11, 2008 at 7:00 AM, Martin Makundi [EMAIL PROTECTED] wrote: Tnx! Good point: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html I think this page should be strongly cross-referenced from markup

<    8   9   10   11   12   13   14   15   >