[Wicket-user] Escaping quotes in attributes

2007-07-06 Thread Sven Meier
I'm wondering about ComponentTag.writeOutput() [line653]: if (value != null) { response.write(=\); value = Strings.replaceAll(value, \, \\\); response.write(value); response.write(\); } Shouldn't the escaping be something more sensible to

Re: [Wicket-user] have wicket ignoring compononts/tags

2007-04-16 Thread Sven Meier
Take a look on IComponentResolver. If your Page implements this interface, it can serve optional components requested by the markup or it can serve hidden components in case you want to exclude something from some targets. Sven Jan Kriesten wrote: hi, is it possible to have wicket

Re: [Wicket-user] Multi page inheritance

2007-04-11 Thread Sven Meier
Sourceforge changed their URLs for the mailing list archives. It has to be: http://sourceforge.net/mailarchive/forum.php?forum_name=wicket-user Note the parameter 'forum_name' instead of 'forum'. Could someone correct the links please? Sven Thomas Singer wrote: Unfortunately, searching the

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-28 Thread Sven Meier
CheckGroup selectedPensCheckGroup = new CheckGroup(selectedPens, selectedPensModel); add(selectedPensCheckGroup); ListView pensList = new ListView(pens, pensModel) { protected void populateItem(ListItem item) { item.add(new Check(check, item.getModel()));

Re: [Wicket-user] check box questions how to I associate an object with a boolean seletion from a checkbox component

2007-03-27 Thread Sven Meier
Could it be that you slipped our CheckGroup/Check components? Cannot get simpler than that. Sven GS-ikiini wrote: this part of the concept i understand...what i don't get is a little deeper...from your example i am accessing a property in input. however, I don't have such a property in my

Re: [Wicket-user] CheckGroup/Check path value

2006-06-08 Thread Sven Meier
Yes, the value of the checkbox doesn't matter, as long as the input name is unique. Sven Timo Stamm wrote: Johan Compagner schrieb: what whould happen if you have a checkgroup inside a listview again? how would you differentiate the 2 or 3 checkgroups values? You don't have to. The

Re: [Wicket-user] FeedbackMessagesModel final

2006-05-02 Thread Sven Meier
Thanks, but one additional thing: To be able to mix in some special messages, I want to construct FeedbackMessages on my own. But the FeedbackMessage constructor is package protected :(. Any chance that the modifier could be changed to public? BTW what's the 'sessionStored' property meant

[Wicket-user] Form submit from outside Wicket

2006-03-29 Thread Sven Meier
How would you handle a submit of a form that originates from outside of Wicket? Let me explain: In many web applications some forms (e.g. 'search a product') are replicated on other pages of the same application or even on other sites of business partners or advertisers. For our

Re: [Wicket-user] Added i18n page to wiki

2006-03-14 Thread Sven Meier
Hello Dave, some thoughts on your 'problem': -why don't you let your content authors write these external links explicitly (i.e. the full URL) into the HTML template? Ok, you probably have your reason why you don't use this. Do your content authors use a separate tool to edit these links in

Re: [Wicket-user] PropertyResolver#setValue()

2006-03-08 Thread Sven Meier
To be honest I don't need it at the moment, but I think it's reasonable to return null on conversion. Converter (line 167) does it: public Object convert(Object value, Class c) { // Null is always converted to null if (value == null) { return null;

Re: [Wicket-user] Component#getSizeInBytes() and internal classes

2006-01-24 Thread Sven Meier
Ok, maybe I wasn't clear enough with my description: The current display of component sizes on the error page is bogus. Many component instances are based on anonymous inner classes and have a reference to their enclosing component. If asked for their size they'll always include the size of

Re: [Wicket-user] IChoiceRenderer

2006-01-17 Thread Sven Meier
Thanks Johan, I really think this change will prove itself useful. I don't want to be picky, but one additional thing: The converted value should be escaped too. Otherwise we might end up with invalid HTML, since AFAIK converters are not required to produce escaped strings. This is why my

[Wicket-user] IChoiceRenderer

2006-01-15 Thread Sven Meier
Globally registered converters are a great way to format values consistently throughout an application. But regretfully these converters are not used to format choices of a DropDownChoice. Setting a custom converter explicitly on the DropDownChoice doesn't help either. IMHO ChoiceRenderer

Re: [Wicket-user] Upgrading when 1.2 is released

2006-01-09 Thread Sven Meier
. Thanks to the Wicket guys - 1.2 is great. Sven Meier Frank Silbermann wrote: When Wicket 1.2 is released, how much work is likely to be required to upgrade a project written for Wicket 1.1? /Frank Silbermann --- This SF.net email is sponsored

[Wicket-user] Hooks again

2005-11-14 Thread Sven Meier
I would like to repeat my request for additional hooks in Wicket, preferrably allowing WebRequestCycle#invokeInterface() to be overriden. I've written before that I don't like the current hooks WebPage#beforeCallComponent() and WebPage#afterCallComponent() in scope of dependecy injection, but

Re: [Wicket-user] Validation messages

2005-11-07 Thread Sven Meier
in the formComponents properties file, do you? You start with the parent component containing text1. A key text1 expresses that text1 is a child of the parent. Juergen On 11/5/05, Sven Meier [EMAIL PROTECTED] wrote: Hello Juergen, I've taken a short look on your code in the CVS

Re: [Wicket-user] My take on Spring integration

2005-11-07 Thread Sven Meier
Hello Igor, I must object to your statement that my proposed page factory is not IoC: Nobody says that a Spring context is the only valid container in an application. The page factory just becomes part of the this logical container, it is aware of and cooperates with the Sprint context.

Re: [Wicket-user] Validation messages

2005-11-05 Thread Sven Meier
. I'll check it in tonight. Juergen On 10/29/05, Sven Meier [EMAIL PROTECTED] wrote: I've opened a bug, see: http://sourceforge.net/tracker/index.php?func=detailaid=1339904group_id=119783atid=684975 Sven Juergen Donnerstag wrote: Did you open a bug or RFE already? If not, please

Re: [Wicket-user] Validation messages

2005-10-29 Thread Sven Meier
I've opened a bug, see: http://sourceforge.net/tracker/index.php?func=detailaid=1339904group_id=119783atid=684975 Sven Juergen Donnerstag wrote: Did you open a bug or RFE already? If not, please do so, otherwise there is always a risk that it'll be forgotten. Juergen On 10/27/05, Martijn

Re: [Wicket-user] beforeCallComponent and afterCallComponent

2005-10-29 Thread Sven Meier
import wicket.markup.html.WebPage; if (page instanceof WebPage) { ((WebPage)page).beforeCallComponent(component, method); } . if (page instanceof WebPage) { ((WebPage)page).afterCallComponent(component, method); } Is that realy a problem? It is not a dependency to another

Re: [Wicket-user] My take on Spring integration

2005-10-27 Thread Sven Meier
Igor Vaynberg wrote: I am simply questioning the automatic injection into pages, does it really make sense if it only takes you half way there. If in my panel i need to do a ((MyPage)getPage()).getService() then i might as well do ((MyApp)getApplication).getService(). IMHO this makes a great

Re: [Wicket-user] Wicket with Spring

2005-10-04 Thread Sven Meier
Hello Martin, I have added a JavaBean-compliant setPageFactory() to my settings subclass (because of the return type of setDefaultPageFactory()) so my Spring configuration is correct. Thanks for the tipp with MethodInvokingFactoryBean, but IMHO this is way too much wordy. So quoting