Re: IAuthorizationStrategy and DropDownChoice

2007-10-17 Thread Maurice Marrink
Did you notice this method in AbstractChoice? protected boolean isDisabled(final Object object, int index, String selected) It is designed to do exactly what you want. In Wicket 1.3 only, in wicket 1.2 you need to override protected void appendOptionHtml(AppendingStringBuffer buffer, Object

Re: authorize - hasAny / hasAll ?

2007-10-17 Thread Maurice Marrink
Can't you create a role that implies all the other roles and then specifically check for that role? Maurice On 10/17/07, Eelco Hillenius [EMAIL PROTECTED] wrote: The wicket-auth project is intended more like an example then a full fledged project. Best thing you can do is just copy the things

RE: IAuthorizationStrategy and DropDownChoice

2007-10-17 Thread Maeder Thomas
I don't think that is what he's getting at, I guess the real questions are: 1) why is option enablement not forwarded to the authorization strategy? 2) Is there a blessed way to no render options depending on authorization. Of course you can hack it, but you'll end up with your authorization

Re: 1.3-beta4 development mode

2007-10-17 Thread Alex Objelean
I found out the problem causing it. It seems that when building the project, an older version of log4j (1.12.9) was added to the classpath as a transitive dependency, causing a conflict with the newer one (1.12.13). Thank you all! Nino.Martinez wrote: Hi Alex I cannot confirm this, I

Re: Dot ( . ) in the URL !

2007-10-17 Thread Matej Knopp
Still I believe the HybridUrlCodingStrategy should be able to process such url. Can you please create a JIRA entry for this? Thanks. -Matej On 10/17/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Not in the hybrid URL encoding. There the last two numbers are separated with a dot and represent

StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Chris Lintz
Hi all, I swapped beta3 for beta4 and to my surprise all of my StringResourceModels that have worked (even back to 1.2) suddenly dont work. The toString() call no longer returns the resource String. I dont see this in the release notes so to say the least, this was a very frustrating find. For

Re: Wicket Meetup: 33 attendees and counting

2007-10-17 Thread Wouter Huijnink
We're doing very well, with another 4 people signing up in the last two days for the Amsterdam meetup on November 30. why don't we involve the NL-Jug to get in touch with the developer community that may not be aware of this mailing list? Let me know what you think. If you'd like to

Wicket App/Component loading Portlets?

2007-10-17 Thread Jan Kriesten
Hi, just out of curiosity - what has a portlet-server to provide a portlet? Would it be (easily) achievalbe to have a wicket-application or -component load/display a portlet? Regards, --- Jan. - To unsubscribe, e-mail:

Re: hi questions about DateField, thanks!

2007-10-17 Thread raybristol
Thanks very much, I was looking at the log files in tomcat, but I don't think I found anything but in the console (I am using eclipse), I saw: 17-Oct-2007 10:53:41 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet NiceUrlApplication threw exception

Re: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Jan Kriesten
Hi Thomas, The javadoc pretty clearly says that this is useful for debugging and so on What lead you to believe this would always return a user-readable string? actually, I stumbled over this, too. I used StringResourceModel for IChoiceRenderer- and IOptionRenderer-Lists (where one

Re: Page expired upon file download + model update

2007-10-17 Thread Federico Fanton
On Thu, 11 Oct 2007 17:00:46 +0200 Federico Fanton [EMAIL PROTECTED] wrote: The button has setDefaultFormProcessing(false), and overrides onSubmit so that the form model object is sent to the persistence layer and printed immediately afterwards. The persistence layer *may* alter the object,

Re: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Jan Kriesten
Hi Thomas, Yes, but you were relying on an implementation detail which was in no way promised to remain stable. You should not have done that and you got properly burned. not really. The API of StringResourceModel.toString() says: Override of the default method to return the resource string

Wicket logo and badges anywhere?

2007-10-17 Thread Per Ejeklint
I thought I had seen the wicket logo and/or some small banners somewhere but maybe that's entirely made up in my head 'cause I just dont find it now (the logo, that is). Does it exist somewhere? /Per -- View this message in context:

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-17 Thread Matej Knopp
It depends on when you call the visitChildren method. The idea is that resolved components are on page only during page render. Otherwise they are removed from page. -Matej On 10/17/07, Juha Alatalo [EMAIL PROTECTED] wrote: In the JIRA issue following was commented: This doesn't seem to be a

RE: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Maeder Thomas
Fair enough, was I reading more importance into the second sentence (useful for debugging...). I still would not rely on toString() for anything but debugging purposes unless someone passes me an object of a well known, final class cheers Thomas -Original Message- From: Jan Kriesten

Re: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Jan Kriesten
Hi Thomas, Fair enough, was I reading more importance into the second sentence (useful for debugging...). I still would not rely on toString() for anything but debugging purposes unless someone passes me an object of a well known, final class right - but there are exceptions to rules. :-)

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-17 Thread Ari Suutari
Hi, But it looks like that in this case the visitChilder is performed during render, and it still won't find stuff added by autoAdd. It is not a very robust design if the behaviour of autoAdd/visitChilder would require some kind of component-hierarchy fine-tuning. This kind of approach might

Re: Wicket logo and badges anywhere?

2007-10-17 Thread Martijn Dashorst
You should take a look at the maven-site-skin version 1.2 in svn. I think there's one or two badges in the style dir. https://svn.apache.org/viewvc/wicket/common/wicket-site-skin/src/main/resources/style/ otherwise you can find some here: http://wicketframework.org/style/ Martijn On 10/17/07,

[RFE] Transitive dependencies changes in parent/pom.xml

2007-10-17 Thread Alex Objelean
In parent/pom.xml there is a dependency on spring-2.0. I most of the projects, it is a best practice to not use the entire spring as a dependency, but to use modular dependencies (eg: spring-core, spring-web, etc). For instance, now you depend on spring-2.0 and the project we are building is

Re: [RFE] Transitive dependencies changes in parent/pom.xml

2007-10-17 Thread Martijn Dashorst
This has been discussed over and over. In our experience most people want to use the whole. And if not, then they *ONLY* need to exclude one dependency, whereas otherwise they have to do a lot more. We have made a conscious decision to use spring instead of spring-*. Martijn On 10/17/07, Alex

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-17 Thread Matej Knopp
Hi, I'm afraid you dont' really get what IComponentResolver is for. The purpose is to allow creating components from markup for a very short span of time - basically while the components are rendered and they should be removed immediate afterwards. So if you call visitChildren from another

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-17 Thread Ari Suutari
Hi, I'm afraid you dont' really get what IComponentResolver is for. The purpose is to allow creating components from markup for a very short span of time - basically while the components are rendered and they should be removed immediate afterwards. So if you call visitChildren from another

Re: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Gwyn Evans
Beta3 said this for toString() /** * Override of the default method to return the resource string represented * by this string resource model. Useful in debugging and so on, to avoid * the explicit need to call the getString() method. * *

Re: [Wicket-Contrib-Scriptaculous] Effects Examples

2007-10-17 Thread Nick Heudecker
Thanks. That's what I was looking for. On 10/16/07, Ryan Sonnek [EMAIL PROTECTED] wrote: I think this is what you're looking for: add(new AjaxLink(myLink) { protected void onClick(AjaxTarget target) { target.appendJavascript(new Effect.Fade(myPanel).toJavascript()); } }); On

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-17 Thread Matej Knopp
Well, I believe we can keep the component instance until the end of request and then clean it up in detach, would this help you? (it still wouldn't be the same as before the fix, as the instance was (supposed to be) cleaned during the next request, but this means keeping additional state for no

Re: hi questions about DateField, thanks!

2007-10-17 Thread raybristol
I found the problem, it's because my Tomcat has confict severlet jar files... thanks very much! raybristol wrote: Hi, I try to add a datefield to my page, accroding to the examples in http://www.wicketstuff.org/wicket13/index.html but I get a error and then I try to do it on a sperate

Re: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Igor Vaynberg
actually the check you should be doing is: if (obj instanceof imodel) { return ((imodel)obj.getobject()).tostring(); } that is the model contract and that is how it is used properly. -igor On 10/17/07, Jan Kriesten [EMAIL PROTECTED] wrote: Hi Thomas, The javadoc pretty clearly says that

Re: Portlet howto

2007-10-17 Thread Charly
Hello, I have the beginning of a solution ! My code is based on Liferay's struts support with some adaptations. At this time, Guestbook portlet sample is ok, and I've made a modification in wicket to get Navomatic and other bookmarkablePage working. The main point is that Liferay want a new

Re: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Chris Lintz
I also read documentation - it may have been on the Pro Wicket book.. I dont recall. Nonetheless I thought it was strange to also reley on toString().. but seeing documentation and examples of toString() pushed me into using it without much thought. And like I said this worked all the way back

Re: Some help. I think I found a bug, but I am a wicket newbie anyway.

2007-10-17 Thread Fernando Wermus
I fixed!!! It is working accurately now. Thanks a lot. On 10/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote: svn co https://svn.apache.org/repos/asf/wicket/trunk wicket cd wicket mvn install -igor On 10/16/07, Fernando Wermus [EMAIL PROTECTED] wrote: I found a solution to my developing.

Re: Some help. I think I found a bug, but I am a wicket newbie anyway.

2007-10-17 Thread Fernando Wermus
As you know I ve only changed the style in Form.java. I am using TabPanel class, and if I switch to AjaxTabPanel doesn't work properly. For some reason, the window Ajax debug close when I click in some panel. Anyway, I will still use TabPanel with my fix. I don't know which is the connection

(OT) Calendar UI?

2007-10-17 Thread Jeremy Thomerson
A bit off-topic, but I need to port an event calendar on our site to Wicket (as part of our overall conversion). The backend stuff is all a piece of cake. But does anyone know of a good component or UI kit that will make a nice looking calendar UI easy? Something that looks like Google

IFormValidator complaining...

2007-10-17 Thread Gwyn Evans
I've got a page with a form with some checkboxes, and when one of the checkboxes is clicked, I make visible a settings panel (within the form). This panel itself has a form with a number of text fields, two of which are checked via a EqualInputValidator. The problem I have is that if I use the

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-17 Thread Ari Suutari
Hi, Well, I believe we can keep the component instance until the end of request and then clean it up in detach, would this help you? (it still wouldn't be the same as before the fix, as the instance was (supposed to be) cleaned during the next request, but this means keeping additional state

Re: VisitChildren + IComponentResolver broken in beta 4?

2007-10-17 Thread Ari Suutari
Hi, Well, I believe we can keep the component instance until the end of request and then clean it up in detach, would this help you? (it still wouldn't be the same as before the fix, as the instance was (supposed to be) cleaned during the next request, but this means keeping additional state

is anybody using Wicket 1.3 and SiteMesh together?

2007-10-17 Thread Sean Sullivan
Is anybody using Wicket 1.3 and SiteMesh together? http://www.opensymphony.com/sitemesh Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: is anybody using Wicket 1.3 and SiteMesh together?

2007-10-17 Thread Alex Objelean
Why would you use SiteMesh, when wicket has such a nice templating? Sean Sullivan-3 wrote: Is anybody using Wicket 1.3 and SiteMesh together? http://www.opensymphony.com/sitemesh Sean - To unsubscribe, e-mail:

Re: redirect request for Page A to page B without contructing A?

2007-10-17 Thread dukehoops
Implemented a SimplePageAuthorizationStrategy; works but there is a gotcha: Say the home page has a (non-ajax) login form: 1. unauthenticated users navigates to home page and is authorized 2. user submits valid login info. 3. At this point I'd assumed Home page would be re-requested (does wicket

[OT] Blocking, Persistent Queue suggestions?

2007-10-17 Thread Gwyn Evans
A bit off-topic, as non-Wicket specific, but I'm stuck for ideas at the moment... I've got a simple servlet that gets requests and queues them for later asynch processing by a number of 'background' threads. The data's only a pair of short strings in each item, so I'm currently using an

Ajax question

2007-10-17 Thread Doug Leeper
I have a question that I hopefully someone will be able to answer. I have created a Wicket based framework on top of YUI Context menu in wicketstuff (menu2). Everything works as expected. It can be used on Tree/Table for those that are interested. However, the issue that I have come across is