Re: Pre render action common to all pages

2008-08-10 Thread Igor Vaynberg
create a custom request cycle and put this stuff in requestcycle#onbeginrequest -igor On Sun, Aug 10, 2008 at 11:15 PM, Benny Weingarten <[EMAIL PROTECTED]> wrote: > > Hello. > > I'm writing a wicket application for facebook, but I think my problem may be > common to many wicket applications. > >

Re: help with css and image background

2008-08-10 Thread Ernesto Reinaldo Barreiro
She's just trying to explain herself in a language that is not her own and that certainly she doesn't use for every day life... Have you ever been in such a situation? I know it well because I have been there myself... No need to be harsh... Best Regards, Ernesto. Daan van Etten wrote: I'

Pre render action common to all pages

2008-08-10 Thread Benny Weingarten
Hello. I'm writing a wicket application for facebook, but I think my problem may be common to many wicket applications. In my case, I'm using the wicket-facebook authentication strategy that is described in a different thread here on nabble. That works great - when a page is rendered, the Authen

Re: Absolute URL mounting for wicket links in a facebook application

2008-08-10 Thread Igor Vaynberg
class myabsolutelink extends bookmarkablepagelink{ protected string getURL() { return (RequestUtils.toAbsoluteUrl("http://whatever.server.you.want/context/mapping/";, super.getURL()); } } -igor On Sun, Aug 10, 2008 at 10:43 PM, Benny Weingarten <[EMAIL PROTECTED]> wrote: > > I am trying

Absolute URL mounting for wicket links in a facebook application

2008-08-10 Thread Benny Weingarten
I am trying to have restful URLs for my facebook application. These links are DYNAMIC, so I can't put them in the markup. I have to use some sort of wicket Link component. I have posted this question as a reply on an old thread, with little responses... so I'm trying to repost in a new thread.:wo

Re: PageParameters

2008-08-10 Thread Brill Pappin
I agree on the generics front... however are not the params supposed to be strings? or do they represent request parameters as well as page attributes? If they are representing both, maybe they should be separated. - Brill On 8-Aug-08, at 12:59 PM, Uwe Schäfer wrote: ok, maybe there was too

Re: Comparing JSF and Wicket

2008-08-10 Thread Eelco Hillenius
> I was only trying to gather arguments to support using Wicket in favor of > JSF, while making a minimal effort to be objective. I think that as a > technologist, and unlike some religious evangelist, I need to at least try > to support my opinions with empirical data, instead of just dismissing J

Re: Serialization of anonymous classes?

2008-08-10 Thread Igor Vaynberg
since the serialization's root is the outer class (page) and it contains references to inner classes, this is not an issue. this would only be a problem if, for example, you had an anonymous textfield and wanted to serialize just that - then the page would get pulled in as well which might be a pr

Serialization of anonymous classes?

2008-08-10 Thread Sergey Podatelev
Hello, In many of Wicket examples, components are added to pages as anonymous inner classes, like this: public class PageA { public PageA() { ... add(new SomeComponent() { public boolean overridenMethod() { ... } }); } Also, I understand that each Wicket component adde

Re: Problem with implementing borders

2008-08-10 Thread Igor Vaynberg
weird. create a quickstart and attach it to a jira issue -igor On Sun, Aug 10, 2008 at 9:24 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Yes, I replaced it with but it does not work if I default it to "hide". > > (border class) > public ShowHideBorder(String id, Form form, boolean > maximize

Re: color code options in drop down choice

2008-08-10 Thread Igor Vaynberg
On Sun, Aug 10, 2008 at 9:19 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > I may draft a patch soon. that would be great -igor > > ** > Martin > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail

Re: Problem with implementing borders

2008-08-10 Thread Martin Makundi
Yes, I replaced it with but it does not work if I default it to "hide". (border class) public ShowHideBorder(String id, Form form, boolean maximizeByDefault, final AjaxRequestListenerInterface listener) { super(id); setOutputMarkupPlaceholderTag(true).setRenderBodyOnly(false); add(new

Re: color code options in drop down choice

2008-08-10 Thread Martin Makundi
>> Another possibility would be to just enable suitable hooks in the >> rendering phase of xxChoices. I.e., a method "String >> getOptionAttributes(T t)" or similar would be called during the render >> phase of a DropDownChoice. > > sure, submit an RFE Ok, https://issues.apache.org/jira/browse/WIC

Re: Busy indicator for AjaxFallbackDefaultDataTable

2008-08-10 Thread Igor Vaynberg
there are various methods there that start with "new", override those and return indicating links instead -igor On Sun, Aug 10, 2008 at 7:52 AM, schapes <[EMAIL PROTECTED]> wrote: > > Hi , > > I am trying to do the exact same thing as this previous post. > > I'm not sure what it means to "overrid

Re: Problem with implementing borders

2008-08-10 Thread Igor Vaynberg
if you are going to hide/show the body, then contain it with div instead of wicket:container, and call setoutputmarkupplaceholdertag(true) on the div component -igor On Sat, Aug 9, 2008 at 10:54 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi Igor, another problem relating to the borders: > >

Re: color code options in drop down choice

2008-08-10 Thread Igor Vaynberg
On Sat, Aug 9, 2008 at 10:46 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: >> it will also break all existing implementations of the interface out there. > > Well, the effort will nicely blend in with the chores of refactoring > to the changes in generics... :) Or should it be made an abstract > cl

Re: Busy indicator for AjaxFallbackDefaultDataTable

2008-08-10 Thread schapes
Hi , I am trying to do the exact same thing as this previous post. I'm not sure what it means to "override the link factories" of the HeadersToolbar. I've created a subclass of HeadersToolbar but I don't know what method I need to override to add the indicating links. Thanks Karen igor.

How to get Image with Hibernate Spring Based Application

2008-08-10 Thread wiki
Hi I have this code for getting property list from database but I don't know how to display Image property [CODE prop.hbm.xml] [CODE]with ListView using compound property model. I got some code from Kent Tong book but don't know how to use compound property model for images. Thanks in Advan

Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

2008-08-10 Thread FakeBoy
Hi, I tried to submit form from ModalWindow with AjaxButton or AjaxSubmitLink. In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't. No onSubmit or onError method is fired after button or link cliked in IE 7. I used WICKET DEBUG console and after clik on Button or Link i see messag

Re: Comparing JSF and Wicket

2008-08-10 Thread nlif
Oh my God. You started off so nicely, I was caught completely unprepared for the blow :) Let's get a few things straight, then: I have used Wicket in a couple of small projects in the past, and really really liked it. I read the excellent and highly recommended "Wicket in Action" (I bought it via

Re: I do not see my wicket:container rendered?

2008-08-10 Thread Martijn Dashorst
Browsers don't know the wicket namespace, that is why we use it for our own stuff. That is also why we strip them in production mode to ensure that w3c validators won't bork on the markup. You could use multiple tags to achieve what you want. Martijn On Sun, Aug 10, 2008 at 7:49 AM, Martin Maku