Re: [Wicket-user] shades feedback

2006-11-01 Thread Igor Vaynberg
On 10/27/06, Geoff hendrey [EMAIL PROTECTED] wrote: It's not a singleton. The dbSess, is set into the DAO. I assumes the DAO was not a singleton, so as long as there is a DAO per user's session, there will be a dbSess per user session. The DatabaseSession (dbSess) only keeps two pieces of state:

Re: [Wicket-user] Custom form validation/updateFormComponentModels()...

2006-11-01 Thread Erik Brakkee
On 10/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote: wicket validators do not validate model data, they validate the input. if the input is valid that input is pushed into the componnet's model - that way your component models never contain invalid objects.what you want to work with is

Re: [Wicket-user] DataTable with column styles and widths

2006-11-01 Thread Martijn Dashorst
Yep, Styling should be done in the css, not on the markup tags. Though sometimes convenient and I often violate this myself, I cringe everytime I add a style= attribute to a tag instead of a class=. Martijn On 10/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote: nothing in the works yet, still

[Wicket-user] How to render dynamic html back to the client?

2006-11-01 Thread Chan Man Kam
I stored the html inside the database and want to return these html back to the client? It is easy to do so in servlet. But how can I do that inside a wicket's page? Thanks. - Using Tomcat but need to do more? Need to

Re: [Wicket-user] How to render dynamic html back to the client?

2006-11-01 Thread Martijn Dashorst
span wicket:id=MyHTML/span new Label(MyHTML, ..).setEscapeModelStrings(false); Substitute . with your string or means to get the string. Martijn On 11/1/06, Chan Man Kam [EMAIL PROTECTED] wrote: I stored the html inside the database and want to return these html back to the client?

Re: [Wicket-user] Problem with RestartResponseAtInterceptPageException?

2006-11-01 Thread Johan Compagner
So the onsubmit is done.Then you do a redirect to a page that requires authentication.And the current user doesn't have that. And then it still goes to that page with the onsubmit?This is very strange. Set a breakpoint in PageMap. final void redirectToInterceptPage(final Page page)orfinal void

Re: [Wicket-user] about wicket 1.2.3

2006-11-01 Thread Johan Compagner
1 see the methods all have a pointer to where they are now* @deprecated will be moved to [EMAIL PROTECTED] IApplicationSettings} in 2.02 maybe igor can make a property for this3 Don't know what the current state is and what exactly the bug is now. in my eyes a ajax request should never up the

[Wicket-user] How can I change the tag value?

2006-11-01 Thread Carfield Yim
Say if I need to change the text of a link base on runtime information, e.g., for the following links: a href=# wicket:id=change_statusdeactivate/a For the active user it will show deactivate but for deactivate I would like it show activate. How can I do that in wicket?

Re: [Wicket-user] How can I change the tag value?

2006-11-01 Thread Erik van Oosten
Hi Carfield, Do something like this: a href=# wicket:id=change_statusspan wicket:id=statusdeactivate/span/a and Link link = new Link(change_status) { onSubmit() {...} }; link.add(new Label(status, )); Erik. Carfield Yim schreef: Say if I need to change the text of a link base

Re: [Wicket-user] about wicket 1.2.3

2006-11-01 Thread Erik van Oosten
I was planning on extending my ajax tabs with something that adds an # ancher to the url. That way the url does change but no page reload is triggered in the browser. Upon a reload the anchor can be used by the component to immediately display the correct tab. I did not investigate how to do

[Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Have read these two page: http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket Look like I have 2 options: 1) Have a of of span wicket:id=xxx/span at HTML and fill all those span at Java code. 2) Have a lot of

Re: [Wicket-user] What is path to component at WicketTester.assertComponent() ??

2006-11-01 Thread Carfield Yim
Do you mean that if this component is wrapped within other component, then it is other_component/this_component Otherwise this is just the component id? Am I correct? On 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i would imagine it is the relative path of the component from the page.

Re: [Wicket-user] Problem of using border

2006-11-01 Thread Korbinian Bachl
Hi, i dont know what you want to press - however, if you want to get a list containing users with name, email and a link to edit you need first to iterate over the wicket:id=users tag using a ListView - example can be found here: http://wicket.sourceforge.net/ExampleGuestBook.html (there the

Re: [Wicket-user] What is path to component at WicketTester.assertComponent() ??

2006-11-01 Thread Ingram Chen
the path used in assertComponent() is absolute path to that component in last rendered page. so it could be:tester.assertComponent(myLabel, Label.class);tester.assertComponent(foo:bar:myDeeperLabel, Label.class); tester.assertComponent(myForm:userNameField, TextField.class); etcuse : to

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Erik van Oosten
Hi Carfield, There is also the wicket:message tag. I am trying to find documentation on the wiki but I failed. I guess you'll have to google for it. Erik. Carfield Yim schreef: Have read these two page: http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket

Re: [Wicket-user] What is path to component at WicketTester.assertComponent() ??

2006-11-01 Thread Carfield Yim
Thanks, that very clear! Are you one of the developer of wicket? May be you can consider adding this to javadoc as I guess many user will have this question. On 11/1/06, Ingram Chen [EMAIL PROTECTED] wrote: the path used in assertComponent() is absolute path to that component in last rendered

[Wicket-user] session timeout listener,part 2

2006-11-01 Thread Alex Parvulescu
Hello,i am having some troubles with the Wicket Session.I need to know before the session expires,so i can log the 'inactive' username.so,reading through this list i got 3 options:1. an implementation of the http session listener - no good ,because i really need the wicket session,so i can grab

[Wicket-user] Development list @Apache

2006-11-01 Thread Martijn Dashorst
All, Just a reminder, the future of Wicket and the implementation details of models, components, behaviors and so forth are discussed on the development list. Many discussions are finalized by performing a vote on the issue, and you can all join in to create an even more active and engaged

[Wicket-user] popups

2006-11-01 Thread Alex Parvulescu
Hello,I have a popup with a form.A simple ok/cancel thing.what i need to do is,if the user clicks ok - i need to redirect to a different page,else - on cancel - just close the popup.i have been doing some _javascript_ tricks,but the redirect is giving me some headaches. (this is for closing the

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Thanks for pointing out this, this is very useful. However according to http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html Look like if for page class MyPage.class, then it will use the bundle define at MyPage_[locate].properties, right? However, I guess most people

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Martijn Dashorst
MyApplication.properties MyApplication_nl_NL.properties MyApplication_fr.properties MyApplication_bg.properties MyApplication_jp.properties Martijn On 11/1/06, Carfield Yim [EMAIL PROTECTED] wrote: Thanks for pointing out this, this is very useful. However according to

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Erik van Oosten
Wicket will search all resource files with the names equal to the components in your component hierarchy, with your application as a last resort (as Martin shows in his e-mail). So for a MyApplication, with a MyPage containing a MyPanel Wicket will look in: 1. MyPanel.properties (and _locale

Re: [Wicket-user] about wicket 1.2.3

2006-11-01 Thread Igor Vaynberg
On 11/1/06, Johan Compagner [EMAIL PROTECTED] wrote: 2 maybe igor can make a property for this please add an rfe 3 Don't know what the current state is and what exactly the bug is now. in my eyes a ajax request should never up the version of a page.because the url of the browser doesn't change so

Re: [Wicket-user] session timeout listener,part 2

2006-11-01 Thread Igor Vaynberg
afaik there is no way to know the session is expred _before_ it did so. so at any point that you know this within the serlvet spec it is no longer safe to access the http session - and thus you cannot access the wicket session either. what i would do is store the userid in a cookie and when you

[Wicket-user] Ajax autocompletion troubles

2006-11-01 Thread Erik van Oosten
Hi, The release notes of 1.2.3 state that the Ajax header contributions should be gone. Since the 1.2.3 release is still not in Ibiblio I just upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked that I am actually working with that copy. Unfortunately there are still

Re: [Wicket-user] popups

2006-11-01 Thread Igor Vaynberg
On 11/1/06, Alex Parvulescu [EMAIL PROTECTED] wrote: Hello,I have a popup with a form.A simple ok/cancel thing.are you using popupsettings? make sure you are doing new PopupSetings(PageMap.forName(mypopuppagemap)) so the popup page doesnt expire any pages out of the browser window that opened the

[Wicket-user] shades, and caching

2006-11-01 Thread Geoff hendrey
Is the Hibernate L2 cache a distributed cache? Because, if it isn't, just bear in mind that detaching your POJO no longer saves any memory, since the cache is holding a reference to your POJO. With regard to the Pages, and other session variables, could you walk me through how detachment works

[Wicket-user] Phonebook app links

2006-11-01 Thread John Patterson
Hi, I have checked out the latest wicket 2.0 code from apache and the phonebook from Sourceforge and everything compiles correctly after changing some onSubmit methods from protected to public. The phonebook home page displays correctly but no links work... maybe because they have links

Re: [Wicket-user] shades, and caching

2006-11-01 Thread Igor Vaynberg
On 11/1/06, Geoff hendrey [EMAIL PROTECTED] wrote: Is the Hibernate L2 cache a distributed cache?in hibernate it is a pluggable implementation. by default it uses ehcache which as of 1.2 has clustering support afaik. but i hope it doesnt replicate entities over the cluster and just replicates the

Re: [Wicket-user] session timeout listener,part 2

2006-11-01 Thread Eelco Hillenius
2. an extension of HttpSessionStore : class MySessionStore extends HttpSessionStore { @Override protected void onUnbind(String sessionId) { super.onUnbind(sessionId); System.out.println(session: + Session.get());

Re: [Wicket-user] Phonebook app links

2006-11-01 Thread Igor Vaynberg
johan are you reading with us? i am looking at WicketFilter.SERVLET_PATH_HOLDER and looks like you forgot to implement placeholder-realpath resolution like you intended to.-igor On 11/1/06, John Patterson [EMAIL PROTECTED] wrote: Hi,I have checked out the latest wicket 2.0 code from apache and

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread Eelco Hillenius
Did you check the actual HTML that is generated? Eelco On 10/31/06, dzenanr [EMAIL PROTECTED] wrote: Hi all, I determine the number of rows and columns for a text area using AttributeModifier. Usually there are more columns than rows and they are derived properly in my code. However, the

[Wicket-user] Validation without form submit...

2006-11-01 Thread Erik Brakkee
Hi, I have a form from displaying a number of items. The form also displays some validation problems. The user can correct these problems by editing items by clicking on a link and is then forwarded to another page using setResponsePage(...). After editing, the eidt page forwards back to the same

Re: [Wicket-user] mock-object based unit testing with custom session and application classes

2006-11-01 Thread Eelco Hillenius
If you want to test stuff that depends on such customizations, you might be better off using e.g. jWebUnit or selenium. I don't know what other's experiences are in this field. Eelco I am new to Wicket and am trying to write unit tests for the application that I am working on. I am using

Re: [Wicket-user] mock-object based unit testing with custom session and application classes

2006-11-01 Thread Eelco Hillenius
btw, Wicket-examples has some jwebunit tests you might want to take a look at. Eelco On 11/1/06, Eelco Hillenius [EMAIL PROTECTED] wrote: If you want to test stuff that depends on such customizations, you might be better off using e.g. jWebUnit or selenium. I don't know what other's

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread dzenanr
I have checked the generated HTML and it has correct values for the number of columns: textarea cols=64 rows=8 name=propertyNameLabelValuePanelListView:0:valuePanel:propertyFeedback:propertyValueHandling many-to-many relationships is still complicated./textarea However, the page displays the

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread Igor Vaynberg
thats hardly a wicket issuecheck your css-igorOn 11/1/06, dzenanr [EMAIL PROTECTED] wrote:I have checked the generated HTML and it has correct values for the number of columns:textarea cols=64

Re: [Wicket-user] urlFor() + HeaderContributor.forCss() = extra path

2006-11-01 Thread Eelco Hillenius
If you could create a unit test for this and attach that to an issue at http://issues.apache.org/jira/browse/WICKET, we could take a look at it. Eelco On 10/26/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I have a reference to a class that I have successfully generating the stylesheet and I'm

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread dzenanr
CSS is simple: span wicket:id = propertyFeedback textarea wicket:id = propertyValue rows = 8 cols = 80 /textarea /span I modify the number of rows and columns using AttributeModifier - those new numbers are in the generated HTML, but the page does not

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread Eelco Hillenius
Very weird indeed. Did you try different browsers and cleaning up the browser's cache? Eelco On 11/1/06, dzenanr [EMAIL PROTECTED] wrote: CSS is simple: span wicket:id = propertyFeedback textarea wicket:id = propertyValue rows = 8 cols = 80 /textarea

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread Igor Vaynberg
ummmthats html markup not css-igorOn 11/1/06, dzenanr [EMAIL PROTECTED] wrote:CSS is simple:span wicket:id = propertyFeedback textarea wicket:id = propertyValue rows = 8 cols = 80 /textarea/spanI modify the number of rows and columns using AttributeModifier - those new numbers are in the

[Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread smallufo
Hi , I have a question about mountBookmarkablePage...I don't know why mountBookmarkablePage() not work on my application...I did add the code in my WebApplication : mountBookmarkablePage(/ViewItem , ViewItem.class);But when I call add(new BookmarkablePageLink(link , ViewItem.class , pps)...It

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread dzenanr
The same problem with Microsoft Explorer and Firefox. I have cleaned all in Firefox. Still the same. Eelco Hillenius wrote: Very weird indeed. Did you try different browsers and cleaning up the browser's cache? Eelco On 11/1/06, dzenanr [EMAIL PROTECTED] wrote: CSS is simple:

Re: [Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread Igor Vaynberg
seems like that should work, what version of wicket are you using? can you produce a quickstart that replicates the problem?-igorOn 11/1/06, smallufo [EMAIL PROTECTED] wrote:Hi , I have a question about mountBookmarkablePage... I don't know why mountBookmarkablePage() not work on my

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread Eelco Hillenius
What is the resulting markup of your whole page, and any css files you use? Eelco On 11/1/06, dzenanr [EMAIL PROTECTED] wrote: The same problem with Microsoft Explorer and Firefox. I have cleaned all in Firefox. Still the same. Eelco Hillenius wrote: Very weird indeed. Did you try

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread dzenanr
?xml version='1.0' encoding='UTF-8'? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html head titledmRad Update Page/title meta name=author content=Dzenan Ridjanovic / link

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread Igor Vaynberg
heh you have a ton of css filesany one of those can define something like this:textarea { width:300px; height:300px; }and that will override rows and cols attributes in html-igor On 11/1/06, dzenanr [EMAIL PROTECTED] wrote: ?xml version='1.0' encoding='UTF-8'?!DOCTYPE html PUBLIC -//W3C//DTD XHTML

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread dzenanr
I have found the problem. It was CSS for a form - width 300px for the fieldset. Thank you for leading me towards the cause of the problem. /* form.css */ /* ===[ begin ]=== */ /* Title: Form Design Style Author: Dzenan Ridjanovic Influenced By:

Re: [Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread smallufo
Hi , I am using wicket 1.2.2 + Spring 2.0 + Hibernate 3.2 + Resin 2.1.16 + JavaEE5The code is as simple as any example.I don't know if it is Resin that cause this problem ...Anybody using Resin without this problem ??? 2006/11/2, Igor Vaynberg [EMAIL PROTECTED]: seems like that should work, what

Re: [Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread Igor Vaynberg
not sure what to tell you, it works fine over herehttp://www.wicket-library.com/wicket-examples/niceurldont think resin has anything to do with it as wicket is responsible for encoding those urls. set a breakpoint on your mount call and make sure it is really being called and you are doing it in

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread Eelco Hillenius
On 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: heh you have a ton of css files any one of those can define something like this: textarea { width:300px; height:300px; } and that will override rows and cols attributes in html -igor Yeah. And it is nested in a table, which might also

Re: [Wicket-user] AttributeModifier for TextArea

2006-11-01 Thread dzenanr
Actually the problem was a missing point in front of textarea within form.css. dzenanr wrote: I have found the problem. It was CSS for a form - width 300px for the fieldset. Thank you for leading me towards the cause of the problem. /* form.css */ /* ===[ begin ]=== */ /*

Re: [Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread Eelco Hillenius
That would be an easy test: deploy on tomcat or jetty and see what happens. But it is unlikely the app server is at fault here. Are you sure you mount the same class as for which you generate the link (e.g. do you have classes with the same name in different packages)? Eelco On 11/1/06,

Re: [Wicket-user] mountBookmarkablePage not working ?

2006-11-01 Thread smallufo
sorry , I found the problemIt's not related to wicket , it's related to eclipse for not compiling the latest version.Sorry for bother you :p2006/11/2, Igor Vaynberg [EMAIL PROTECTED]:not sure what to tell you, it works fine over here http://www.wicket-library.com/wicket-examples/niceurldont think

[Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Geoff hendrey
Hi, I'd like to react to a couple of your points, bearing in mind that I'm not claiming to be right, just putting it out there for discussion. See comments below Date: Wed, 1 Nov 2006 09:29:58 -0800 From: Igor Vaynberg [EMAIL PROTECTED] Subject: Re: [Wicket-user] shades, and caching To:

Re: [Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Igor Vaynberg
On 11/1/06, Geoff hendrey [EMAIL PROTECTED] wrote: I'd like to react to a couple of your points, bearing in mind that I'm not claiming to be right, just putting it out there for discussion.i wasnt claiming you were wrong :) as you said you wanted a discussion. Is the Hibernate L2 cache a

[Wicket-user] wicket + spring's OpenSessionInViewFilter still LazyInitializationException

2006-11-01 Thread smallufo
HiI am using Wicket 1.2.2 + Spring 2.0 + Hibernate 3.2 (same problem with Spring 1.2.8 + Hibernate 3.0.5)I added OpenSessionInViewFilter in web.xml but still get LazyInitializationExceptionHere is my settings : web.xml : context-param param-namecontextConfigLocation/param-name

Re: [Wicket-user] wicket + spring's OpenSessionInViewFilter still LazyInitializationException

2006-11-01 Thread Johan Compagner
when was that object really loaded?In the same request? Or was it hold on to it between a request?johanOn 11/1/06, smallufo [EMAIL PROTECTED] wrote:HiI am using Wicket 1.2.2 + Spring 2.0 + Hibernate 3.2 (same problem with Spring 1.2.8 + Hibernate 3.0.5)I added OpenSessionInViewFilter in web.xml

Re: [Wicket-user] Ajax autocompletion troubles

2006-11-01 Thread Caleb Land
Check out this bug:http://issues.apache.org/jira/browse/WICKET-7For now I just converted all of my component swapping links to normal links instead of ajax ones. I'd try to fix that bug myself, but from the discussions on this mailing list about it, it seems like a low level Wicket refactor is

Re: [Wicket-user] wicket + spring's OpenSessionInViewFilter still LazyInitializationException

2006-11-01 Thread smallufo
2006/11/2, Johan Compagner [EMAIL PROTECTED]: when was that object really loaded?In the outmost page... In the same request? Or was it hold on to it between a request?johanNo , it's not the same request. (pass to another page or PagingNavigator)Is it where the problem starts?Any way to solve this

Re: [Wicket-user] urlFor() + HeaderContributor.forCss() = extra path

2006-11-01 Thread Johan Compagner
so this:App maps to localhost/secure secure is the context path specified in your server config for that web app yes?Then wicket does it right. you shouldn't have the context path in any urls you haveBecause that is something we do.johan On 10/26/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I have

Re: [Wicket-user] wicket + spring's OpenSessionInViewFilter still LazyInitializationException

2006-11-01 Thread Johan Compagner
yes don't hold objects in mem between requeststhat doesn't work. You have to reload them with the new hibernate session.Thats why we have LoadableDetachableModel (attach/detach on IModel)johan On 11/1/06, smallufo [EMAIL PROTECTED] wrote: 2006/11/2, Johan Compagner [EMAIL PROTECTED]: when was

Re: [Wicket-user] Phonebook app links

2006-11-01 Thread Johan Compagner
it seems so. Fix now: use the wicket filter instead of the servlet.johanOn 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote:johan are you reading with us? i am looking at WicketFilter.SERVLET_PATH_HOLDER and looks like you forgot to implement placeholder-realpath resolution like you intended

[Wicket-user] Customizing Paging Navigation

2006-11-01 Thread Scott Sauyet
Is there a simple example around of how PagingNavigation can be customized? I can't figure out what I'm doing wrong. I *think* I'm following the example in the Javadocs, but my markup never matches my code. If anyone has a live example floating around that I could examine, I would appreciate

Re: [Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Gustavo Santucho
This is a great discussion It really is. Keep posting, both of you... ;-) - Gustavo. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology

Re: [Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Eelco Hillenius
On 11/1/06, Gustavo Santucho [EMAIL PROTECTED] wrote: This is a great discussion It really is. Keep posting, both of you... ;-) I'm just waiting for some hard data instead of the talking ;) Eelco - Using Tomcat but

Re: [Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Igor Vaynberg
why dont you create a jmx wrapper for ehcache jars mr jmx? :)-igorOn 11/1/06, Eelco Hillenius [EMAIL PROTECTED] wrote:On 11/1/06, Gustavo Santucho [EMAIL PROTECTED] wrote: This is a great discussion It really is. Keep posting, both of you... ;-)I'm just waiting for some hard data instead of the

Re: [Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Eelco Hillenius
I thought starting wicket-threadtest for load testing was a nice enough start. Eelco On 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: why dont you create a jmx wrapper for ehcache jars mr jmx? :) -igor - Using Tomcat

[Wicket-user] getVariation()

2006-11-01 Thread Otan
Why can't I do this?public class MyPage extends WebPage {String variant;public MyPage(PageParameters p) {variant = p.getString(var);}public String getVariation() {return variant;}}getVariation() always return null as if 'variant' never get

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Excellent! On 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote: Wicket will search all resource files with the names equal to the components in your component hierarchy, with your application as a last resort (as Martin shows in his e-mail). So for a MyApplication, with a MyPage containing a

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
sorry, one more question, can I involve messageformat class from wicket:message tag? On 11/2/06, Carfield Yim [EMAIL PROTECTED] wrote: Excellent! On 11/2/06, Erik van Oosten [EMAIL PROTECTED] wrote: Wicket will search all resource files with the names equal to the components in your

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Igor Vaynberg
no, since wicket:message takes no arguments there is no need for messageformatthe output is the exact string defined in the properties file for the specified key.-igor On 11/1/06, Carfield Yim [EMAIL PROTECTED] wrote: sorry, one more question, can I involve messageformat class fromwicket:message

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Thanks. By the way I just found that the key must existed otherwise the application will not run. I personally think as there is already default message for that tag, may be we don't need to make it as requirement of have key at bundle? On 11/1/06, Martijn Dashorst [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Please ignore this, I just make some other mistake at my code and lead me think the tag work in this way, in fact the key is not a requirement as I expected before On 11/2/06, Carfield Yim [EMAIL PROTECTED] wrote: Thanks. By the way I just found that the key must existed otherwise the

Re: [Wicket-user] getVariation()

2006-11-01 Thread Eelco Hillenius
Check that that constructor is actually called, and check that the var parameter returns not null. If that is the case, your code should work. Eelco On 11/1/06, Otan [EMAIL PROTECTED] wrote: Why can't I do this? public class MyPage extends WebPage { String

Re: [Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Igor Vaynberg
its good for load testing but it wont work for these types of stats.second level cache hit rate will highly depend on the type of application and usage patterns. as ive mentioned you need to tweak your app to increase the hit rate, its a custom job every time. and then to truelly measure it you

Re: [Wicket-user] more about caches, detachment, etc

2006-11-01 Thread Eelco Hillenius
Yeah, don't take my remark too seriously, I know it depends on many factors. However, making things measurable can be valuable, even if it doesn't correspond to any actual case closely. I was just poking :) Eelco On 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: its good for load testing but