Re: [Wicket-user] resource key priority

2007-07-08 Thread Kent Tong
Juergen Donnerstag gmail.com> writes: > According to the source code your observation is correct. I've no good > reason why we implemented it this way. Thanks for the reply! I've created an issue for this at https://issues.apache.org/jira/browse/WICKET-732. --

[Wicket-user] resource key priority

2007-07-07 Thread Kent Tong
Hi, Just wondering why an unqualified resource key should take priority over a qualified one? eg, in a properties file: Required=The ${label} is missing! form.username.Required=You must provide your name! The first entry will take priority, while common intuition is that the first one is the def

Re: [Wicket-user] access to private fields

2007-07-07 Thread Kent Tong
gmail.com> writes: > the reason why we use getters and setters and not public fields is > because we never know what is going to happen later - and because it > is hard to refactor public field access into a getter or a setter we > opt for the more flexible, but more verbous way first. > > with

Re: [Wicket-user] access to private fields

2007-07-07 Thread Kent Tong
gmail.com> writes: > you say you are concerned with abuse, but what would this subclass > solve? those who want to abuse can then just use privatefieldmodel to > do so. No. It is designed to work with cases like your NamePanel. That kind of use is not an abuse (far from it). It would be an abus

Re: [Wicket-user] access to private fields

2007-07-07 Thread Kent Tong
Igor Vaynberg gmail.com> writes: > i disagree completely. the most common usecase for this is for components > to access their own private fields via property model. > class namepanel extends formcomponentpanel { > private string first; > private string last; > namepanel(..) { > add(new t

Re: [Wicket-user] access to private fields

2007-07-07 Thread Kent Tong
Martijn Dashorst gmail.com> writes: > Like it or not, propertymodels already break encapsulation, the law of > demeter and refactoring without having to resort to private accessors. > So if you go all OO, these things should never be used, especially > since there is a perfect OO alternative: Wh

[Wicket-user] access to private fields

2007-07-06 Thread Kent Tong
Hi, Wicket 1.3 is now allowing PropertyModel to access private fields of the target object. However, I am not sure if this is a recommended practice. There are basically two supporting reasons for this feature: 1) No need to generate boring getters and setters. 2) Hibernate & Spring also support t

Re: [Wicket-user] [Question] wicket.markup.html.form.Radio

2007-06-16 Thread Kent Tong
Alex Objelean isdc.ro> writes: > Thank you Jan! Sad thing is that 1.2.x branch will never support this > feature. Try: Form f = ...; RadioGroup rg2 = new RadioGroup("rg2", ...); rg2.setOutputMarkupId(true); setupAjaxRadio(f, rg2, new Radio("r3", new Model("abc"))); setupAjax

Re: [Wicket-user] turning off markup validation

2007-06-09 Thread Kent Tong
rozkovec.info> writes: > Those parts are important: > > > > > the markup which is seen by the browser is not illegal, browser see > correct tags ... in the ouput, one of the tags is always > commented for the browser, which one depends on the browser type, only > wicket can see both closing

Re: [Wicket-user] Configuration Interceptor

2007-06-08 Thread Kent Tong
Sven Schliesing subshell.com> writes: > The Application is started and looks if it has a property file > "configFileLocation.properties" (this just contains the name of the real > configuration file) in it's webroot. > - If it is not found all future requests get redirected to a wizard-page >

Re: [Wicket-user] Parameter access at Page creation not consistent with request object

2007-06-05 Thread Kent Tong
mchack cisco.com> writes: > Check this out. > > http://www.nabble.com/Mounted-pages-and-page-parameters-tf1626704.html#a4407375 > > Wicket does encode path names (pairs) as parameters. Check the second post > in the link above. Yes it does and the params are indeed made available in PageParame

Re: [Wicket-user] Parameter access at Page creation not consistent with request object

2007-06-05 Thread Kent Tong
mchack cisco.com> writes: > I am trying to gain access to the value pair, in your example as > encoded in the URL. The params.getString("p0") does return abc in the > constructor. It returns null if I try to retrieve it via > getRequest.getParameter("p0") in getVariation(). It's not a paramete

Re: [Wicket-user] Parameter access at Page creation not consistent with request object

2007-06-03 Thread Kent Tong
mchack cisco.com> writes: > I am using a mounted, bookmarkable page. I am passing in a parameter using > the url syntax. This works fine when I access it via the Parameter object > passed in at Page creation time. I would also expect that the parameter > would be accessible via the request object

Re: [Wicket-user] Escaping German Umlauts

2007-06-03 Thread Kent Tong
Johannes Schneider familieschneider.info> writes: > I have found this method and discovered that it is not used within > component. > But I can't propose anything because I am a newbie to Wicket ;). Try: public class EscapingTextField extends TextField { public EscapingTextField(String

Re: [Wicket-user] Skin effect in wicket

2007-06-03 Thread Kent Tong
Javed gmail.com> writes: > I am having to different markups for the same page(java file) so when I > start my server and hit that page it with criteria that selects markup > dynamically it displays that page with that markup but when I hit it one > more time (without restarting server) with diffe

Re: [Wicket-user] Forms locale(europe) and numbers does not

2007-06-03 Thread Kent Tong
Nino Saturnino Martinez Vazquez Wael jayway.dk> writes: > If I am in US locale numbers are interpreted okay, however if in > european locale they dont. Thats because the value are in US locale so > how do I tell that these two fields should be interpereted as US. I have > tried overiding the g

Re: [Wicket-user] Problem loading dynamic image using ajax

2007-05-27 Thread Kent Tong
Michael K yahoo.com> writes: > Is that what causing the dynamic image to be expired? I don't know. You may create a sample page that really demonstrates the problem. Using the code you showed I don't see the image being expired. -

Re: [Wicket-user] Problem with page parameters

2007-05-26 Thread Kent Tong
neiroman neiroman gmail.com> writes: > I try to access to page with incorrect params > set (http://localhost:8080/index/ff/) I've got the error > :java.lang.IllegalStateException: URL fragment has unmatched key/value > pair: ff/ > > Can I prevent this error ? What do you want to do then

Re: [Wicket-user] Best way to create large groups of similar tags

2007-05-26 Thread Kent Tong
Thomas Singer regnis.de> writes: > Generally, I want to keep the text (including the links to other pages in > it) in the HTML files for now. My problem is the creation of these tags > without adding a separate component for each one: > > > height="9"> > > > and > > >

Re: [Wicket-user] Strange Behaviour with AjaxFormCompon entUpdatingBehavior

2007-05-26 Thread Kent Tong
Dipu multicom.co.uk> writes: > Many thanks for the reply. > I tried swithching to 1.2.6 but still i am getting the same error. > Are you sure thats fixed in 1.2.6 You're right. It is still there in 1.2.6. I've just reopened the issue. --

Re: [Wicket-user] I got this : Expected close tag for ...

2007-05-26 Thread Kent Tong
Matthieu Casanova gmail.com> writes: > > > > key > > Value > > > > If you use a fragment inside list2, there is no one to absorb the : Value As it is sticking there, Wicket can't find the closing tag for list2. A solution is to not to use a fragment. Just m

Re: [Wicket-user] Problem loading dynamic image using ajax

2007-05-26 Thread Kent Tong
Michael K yahoo.com> writes: > To obtain the requestcycle in the constructor, I do RequestCycle.get(); > in the WebPage constructor. You shouldn't do that. You have a request cycle only when there is a request from the browser, not when your page is constructed. ---

Re: [Wicket-user] How to auto-eliminate component from RepeatingView

2007-05-26 Thread Kent Tong
Felipe Piccolini bluesoft.cl> writes: > How can I do to make the "delete this person" works in order to > get it removed from the RepeatingView? Several issues: 1) The repeating view should be associated with each item in the list, not the list itself. 2) If you delete an item from the list, yo

Re: [Wicket-user] Problem loading dynamic image using ajax

2007-05-26 Thread Kent Tong
Michael K yahoo.com> writes: > Hi,I have problem displaying dynamic image using ajax. The problem is > that the image url became expired after the page has rendered. The page > was loaded fine it didn't triggered page expired. I think there is something wrong with your code: How can you access

Re: [Wicket-user] Strange Behaviour with AjaxFormComponen tUpdatingBehavior

2007-05-25 Thread Kent Tong
Dipu multicom.co.uk> writes: > If i override the isVersioned method > of the page and return false every thing works fine, i really have no clue > about whats happening and whats causing the error. Has anyone seen this > before ? Whats the best way to get around this ? > > I am using wicket

[Wicket-user] locale filtering

2007-03-25 Thread Kent Tong
Hi, If a given web app only supports say English (default) and French but the browser prefers German the most, then the getLocale() on the request will return German and that will be stored into the wicket session. The result is that all built-in components will output messages in German, while

Re: [Wicket-user] Instructions for using WICKET-126

2007-03-11 Thread Kent Tong
Jean-Baptiste Quenot apache.org> writes: > That's right, with this new feature you don't need to restart your > webapp in most cases. Will it invalidate the session? - Take Surveys. Earn Cash. Influence the Future of IT