Re: [Wicket-user] Using Link on an internal anchor

2006-05-11 Thread Eelco Hillenius
It would be nicer if it could be integrated in our existing link classes. Eelco On 5/11/06, Johan Compagner [EMAIL PROTECTED] wrote: you could make a nice component for that? AnchorLink? it is requested before so maybe it is a simple class for the core. johan On 5/10/06, Jerry Smith

[Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and buttons on same page

2006-05-11 Thread Ari Suutari
Hi, We are experiencing odd behaviour when a page has - a region, which is constantly updated by AjaxSelfUpdatingTimerBehavior (say each 3 seconds) - form with buttons When the page is initially loaded, timer starts updating values as expected. When a button on form is pressed, page is

[Wicket-user] FeedBackPanel in a ListView throws an Exception?

2006-05-11 Thread Ali Zaid
Hi Guys; It's been a long time since I have a time to return and code with wicket (long time is almost 3 weeks, I'm wicket adicted) :) Anyway, I have a problem, I have a Panel which I add a ListView to it, each Item in the ListView is a Panel, 2 types of Panels, one is just a row (Labels and

Re: [Wicket-user] wicket legacy integration (high level suggestion)

2006-05-11 Thread Johan Compagner
you can render components only see IComponentRequestTarget for that.On 5/11/06, Ittay Dror [EMAIL PROTECTED] wrote:i think it will help wicket's cause if it has some way of integrating into existing applications, especially existing pages. what can be done is to have a way for the page's markup

Re: [Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and buttons on same page

2006-05-11 Thread Johan Compagner
So the url that the ajax behaviour has isn't updated to version 1? When the page is rerendered?johanOn 5/11/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi,We are experiencing odd behaviour when a page has - a region, which is constantly updated by AjaxSelfUpdatingTimerBehavior (say each 3 seconds)-

Re: [Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and buttons on same page

2006-05-11 Thread Martijn Dashorst
Add the updating region to the ajax target of the button request. That should update the URL for the self updating timer.MartijnOn 5/11/06, Johan Compagner [EMAIL PROTECTED] wrote: So the url that the ajax behaviour has isn't updated to version 1? When the page is rerendered?johan On 5/11/06, Ari

Re: [Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and buttons on same page

2006-05-11 Thread Matej Knopp
Martijn Dashorst wrote: Add the updating region to the ajax target of the button request. That should update the URL for the self updating timer. This doesen't really make sense, versioning is turned of during ajax requests. Martijn On 5/11/06, *Johan Compagner * [EMAIL PROTECTED]

Re: [Wicket-user] FeedBackPanel in a ListView throws an Exception?

2006-05-11 Thread Eelco Hillenius
Hi Ali, What version of Wicket are you using and what is the exception you get? If you got some code to share, maybe it's best to file and issue (bug report) with the code attached to it. Eelco On 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote: Hi Guys; It's been a long time since I have a time

Re: [Wicket-user] FeedBackPanel in a ListView throws an Exception?

2006-05-11 Thread Ali Zaid
I will attach these tonight, Thanks :) On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Hi Ali, What version of Wicket are you using and what is the exception you get? If you got some code to share, maybe it's best to file and issue (bug report) with the code attached to it. Eelco On

[Wicket-user] Link to Anchor

2006-05-11 Thread Ali Zaid
Hay Guys; I was testing RC3 and I have noticed that anchors are not implemented, I think I file a request for this, let me explain if I have a link that say a href=#clientPanel wicket:id=newClinetLink new Client/a when redirect to the new client page it should jump to that anchor, the way I

[Wicket-user] RequestCycleProcessor / Transactions again

2006-05-11 Thread Ralf Ebert
Hi, I'm using a RequestCycleProcessor to provide a threadlocal-based transaction to my application. I use something like: protected IRequestCycleProcessor newRequestCycleProcessor() { return new DefaultWebRequestCycleProcessor() {

Re: [Wicket-user] RequestCycleProcessor / Transactions again

2006-05-11 Thread John Patterson
You can either implement your transaction handling in your business objects that are simply called from wicket or if you really want transactional code in your pages you can subclass WebRequestCycle and override the methods: onRuntimeException() - rollback transaction onEndRequest() -

Re: [Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and buttons on same page

2006-05-11 Thread Johan Compagner
and in the form action you see another url that also goes to 2 but it has a version in it?johanOn 5/11/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi,The ajax timer only updates small region. Button updates the whole page. There is a simplified example

Re: [Wicket-user] RequestCycleProcessor / Transactions again

2006-05-11 Thread Johan Compagner
use RequestCyle.onBeginRequest/onEndRequest for that.johanOn 5/11/06, Ralf Ebert [EMAIL PROTECTED] wrote:Hi,I'm using a RequestCycleProcessor to provide a threadlocal-based transaction to my application. I use something like:protected IRequestCycleProcessor newRequestCycleProcessor() {return new

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Johan Compagner
So something like this?Link: protected final void onComponentTag(final ComponentTag tag) { // Default handling for tag super.onComponentTag(tag); // Set href to link to this link's linkClicked method CharSequence url = "">String maybeAnchor = tag.getAttributes().getString(href);

Re: [Wicket-user] about development/deployment mode setting

2006-05-11 Thread Johan Compagner
this is because you shouldn't call configure(XXX) yourself.Configure is the one property that is configured i wicket.you should use the web.xml for that and and use the configure property for that. On 5/11/06, R.A [EMAIL PROTECTED] wrote: I have a question about development/deployment mode

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Vincent Jenks
+1 - I think that's pretty cool! Couldn't that be done w/ an ExternalLink? AttributeModifier? On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah, I like that idea. So, if the contents of the url start with #, we append that to the url... that's the idea, right? What do other people

RE: [Wicket-user] Visibility of clearInput method

2006-05-11 Thread Roan O'Sullivan
Thanks for making the change Johan. Good to know about FormComponent#valid() method too. You guys are doing a great job of supporting your users. Roan From: [EMAIL PROTECTED] on behalf of Johan Compagner Sent: Wed 5/10/2006 6:19 PM To:

Re: [Wicket-user] RequestCycleProcessor / Transactions again

2006-05-11 Thread Eelco Hillenius
Or hide your business logic in 'services' and make those transactional. That gives you most control, but also is a bit more work. Eelco --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with

Re: [Wicket-user] RequestCycleProcessor / Transactions again

2006-05-11 Thread Gustavo Santucho
It's simple with Spring, but you don't need Spring for that... You just need a thread local and a proxy around your services interfaces. Then you wrap all services calls with proper transaction handling in the proxy implementation. I'm doing this with plain JDBC, its just a few lines. -

Re: [Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and buttons on same page

2006-05-11 Thread Igor Vaynberg
fixed in trunk, can you test please?-IgorOn 5/11/06, Johan Compagner [EMAIL PROTECTED] wrote: and in the form action you see another url that also goes to 2 but it has a version in it? johanOn 5/11/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi,The ajax timer only updates small region. Button

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Andrew Berman
I'd rather have a setter added to Link called setAnchor which appends the #anchor automatically to the url. On 5/11/06, Vincent Jenks [EMAIL PROTECTED] wrote:+1 - I think that's pretty cool!Couldn't that be done w/ an ExternalLink?AttributeModifier? On 5/11/06, Eelco Hillenius [EMAIL PROTECTED]

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Ayodeji Aladejebi
Link.setAnchor () +1 dabar On 5/11/06, Andrew Berman [EMAIL PROTECTED] wrote: I'd rather have a setter added to Link called setAnchor which appends the #anchor automatically to the url. On 5/11/06, Vincent Jenks [EMAIL PROTECTED] wrote: +1 - I think that's pretty cool!Couldn't that be done

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Ali Zaid
Hay Guys; Glad you like the idea, as for adding a setter, I don't think it's any different than overridding the method as above, as wicket always does, it uses what in HTML, and this will help in design time too. On 5/11/06, Andrew Berman [EMAIL PROTECTED] wrote: I'd rather have a setter added

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Eelco Hillenius
On 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote: Hay Guys; Glad you like the idea, as for adding a setter, I don't think it's any different than overridding the method as above, as wicket always does Yeah, you got a point there too. So we don't have to add the property, unless it's a clear win

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Philip A. Chapman
You might want to check for content after the #. As a general rule, I put # in the href of my template's a tags. I picked that up from examples and such. I think it'd work fine to have the # hanging on the end, but there's no need for it. On Thu, 2006-05-11 at 08:21 -0600, Vincent Jenks

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Igor Vaynberg
yeaha href="" wicket:id=blahyou need that # so the link renders like a link when you preview in the browser.-IgorOn 5/11/06, Philip A. Chapman [EMAIL PROTECTED] wrote: You might want to check for content after the #. As a general rule, I put # in the href of my template's a tags. I

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Philip A. Chapman
I guess it wouldn't be too hard to satisfy both camps? if setLink() isn't called, look in the template to see if an anchor was indicated. if setLink() was called, use the passed value. Is that too much black magic? On Thu, 2006-05-11 at 19:16 +0300, Ali Zaid wrote: Hay Guys; Glad you like

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Andrew Berman
The only reason why I like the setAnchor over overriding the getUrl() method is that it gives it a more standard feel to add anchors. Overriding getUrl() to me signifies that you really want to do something more complicated to the URL than just adding an anchor. Just my two cents. On 5/11/06, Igor

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Ali Zaid
in prevoius post I did suggest to check what after #, I would also like to suggest adding something like setResponsePage(somePage, someAnchor), it may not only be needed for a link, we may need to jump to that anchor after sumitting a link :), don't hate me guys ;) On 5/11/06, Igor Vaynberg

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Ali Zaid
Sorry, I ment submitting a formOn 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote: in prevoius post I did suggest to check what after #, I would also like to suggest adding something like setResponsePage(somePage, someAnchor), it may not only be needed for a link, we may need to jump to that anchor

[Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Shouldn't these calls override any locale the user is sending at the request (from the browser)? getApplicationSettings().setDefaultLocale(new Locale(pt, BR)); getResourceSettings().setDefaultLocale(new Locale(pt, BR)); I still get english messages, that comes from Application.properties. My

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Igor Vaynberg
no, the default locale is used when we cannot figure out what the user's local is afaik. since the browser is sending a locale that will be used.-IgorOn 5/11/06, Bruno Borges [EMAIL PROTECTED] wrote: Shouldn't these calls override any locale the user is sending at the request (from the browser)?

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Eelco Hillenius
What about both? Btw, I'm not sure whether anchor is the best name, as any a tag technically is an anchor. That said, I wouldn't know an alternative. So, what we could do is use that property if it is set. If it is not set we look at whether the attribute value starts with #, and when that's not

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Wouldn't be useful to have a method that sets a Locale to be used, and if this options is setted, Wicket should ignore user's locale?On 5/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no, the default locale is used when we cannot figure out what the user's local is afaik. since the browser is

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Eelco Hillenius
That might be the idea, but doesn't work either. It's always overriden by ServletWebRequest.getLocale, which in case it can't make up the locale from the request header, defaults to the server's locale - which is not the locale that is set as the default for Wicket. Eelco On 5/11/06, Igor

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Maybe the setFixedLocale(Locale); could be implemented. Wicket should ignore any locale coming from the user and use the Locale passed here. This setting can be undo by calling setFixedLocale(null);Now... I couldn't find any reference to IApplicationSettings.getDefaultLocale() in Wicket's Core.

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Eelco Hillenius
This is needed because some applications aren't localized, and it's not necessary because some websites are regional (not world wide). And because of this, I must avoid Wicket from displaying messages in English/Japanese/Chinese or whatever computer the user (let's say some brazilian guy

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Ali Zaid
I don't see why we can't have both, but really, I think we need to set anchors in setResponsePage() too, it will be good for forms too. On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: What about both? Btw, I'm not sure whether anchor is the best name, as any a tag technically is an anchor.

[Wicket-user] Wicket in action?

2006-05-11 Thread Ali Zaid
hay :) when do we expect this? I want to eat this book!!! :) -- Regards, Ali - Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D --- Using Tomcat but need to do more? Need to support

Re: [Wicket-user] Wicket in action?

2006-05-11 Thread Nick Heudecker
Won't that make it hard to read?On 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote: hay :) when do we expect this? I want to eat this book!!! :)

Re: [Wicket-user] Link to Anchor

2006-05-11 Thread Eelco Hillenius
Yeah, I do that all the time too. But having an url that ends with # is no problem. Though, if nothing comes behind it we might ditch it too. Eelco On 5/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yeah a href=# wicket:id=blah you need that # so the link renders like a link when you

[Wicket-user] Invalidating a ResourceReference

2006-05-11 Thread Timothy Bennett
Wicketeers,I'm on Wicket 1.2-rc3 and I'm having some trouble invalidating a loaded resource reference. I've got a tabular list view of data that has an action panel as one of the fields in the list view. This action panel contains a link to view the tabular data in the form of a graphical chart

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Eelco Hillenius
Hmmm... that looks like a mess. The default locale of resource settings does not seem to be used at all. Furthermore it does look like that method is supposed to 'fix' the session (and btw it helps for executing test cases), as resources naturally fall back on files without the localized

Re: [Wicket-user] Wicket in action?

2006-05-11 Thread Eelco Hillenius
I guess he wants to digest it fully. Eelco On 5/11/06, Nick Heudecker [EMAIL PROTECTED] wrote: Won't that make it hard to read? On 5/11/06, Ali Zaid [EMAIL PROTECTED] wrote: hay :) when do we expect this? I want to eat this book!!! :)

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Johan Compagner
rename it? something like:getFixedSessionLocale()?and then this code in getSession()if(getFixedSessionLocale() == null){ // take request locale}else{ set he fixed session locale. }Default doesn't seem to do anything yes. Because it is always overriden again with the request locale.Also the methods

Re: [Wicket-user] Invalidating a ResourceReference

2006-05-11 Thread Johan Compagner
if you make a resoure reference to a shared resource that is or can change.Then you need to control the caching headers and last modified times. Else the browser will not know that it needs to refresh it.See resource.setCacheable (boolean cacheable) and protected void configureResponse(final

Re: [Wicket-user] Wicket in action?

2006-05-11 Thread Vincent Jenks
He'll definitely internalize every word. Really absorbing the contents...hyuck hyuck. Alright, I'm done now. On 5/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I guess he wants to digest it fully. Eelco On 5/11/06, Nick Heudecker [EMAIL PROTECTED] wrote: Won't that make it hard to read?

Re: [Wicket-user] about development/deployment mode setting

2006-05-11 Thread R.A
Hi Johan. I set configuration in the web.xml, so work fine. Thanks very much! Regards, R.A -- View this message in context: http://www.nabble.com/about-development-deployment-mode-setting-t1599854.html#a4351178 Sent from the Wicket - User forum at Nabble.com.

Re: [Wicket-user] Default Locale not working

2006-05-11 Thread Bruno Borges
Just one question:How to authenticate an user and right after that create a session with a Locale coming from the... database, for example? Remembering that the ISessionFactory is called from the (Custom)WebApplication that has no knowledge about any request, login form... anything. I think that,

[Wicket-user] 优惠代开发票!

2006-05-11 Thread 腾达实业有限公司
贵公司负责人(经理/财务)您好: 腾达税务代理(深圳)有限公司为贵单位合理合法避税,节省贵单位经营成本和开支的原则, 在双方互惠互利的基础上对外代开发票. 代开范围:(商品普通销售、广告、运输发票、其它服务、租赁、建筑安装、餐饮定额及其他发票等) 费率仅收(1%-1.5%左右),增值发票(6%左右),(不再另外收费)。 所开票据均为各相关企业在税局领取,可在网上查询和验证;如有需要敬请来电洽商详细合作。 欢迎来电洽谈...如有打扰,请见谅!

[Wicket-user] Re: [Wicket-user] 优惠代开发票!

2006-05-11 Thread Bruno Borges
WTF?Please, speak english... :POn 5/11/06, 腾达实业有限公司 [EMAIL PROTECTED] wrote: 贵公司负责人(经理/财务)您好:腾达税务代理(深圳)有限公司为贵单位合理合法避税,节省贵单位经营成本和开支的原则,在双方互惠互利的基础上对外代开发票.代开范围:(商品普通销售、广告、运输发票、其它服务、租赁、建筑安装、餐饮定额及其他发票等)费率仅收(1%-1.5%左右),增值发票(6%左右),(不再另外收费)。所开票据均为各相关企业在税局领取,可在网上查询和验证;如有需要敬请来电洽商详细合作。