[PROPOSAL] FragmentColumn...

2008-05-04 Thread James Carman
I came up with the following class that I find very useful in our application: public abstract class FragmentColumnT extends AbstractColumnT { private static final long serialVersionUID = 1L; protected FragmentColumn( IModelString displayModel ) { super(displayModel); }

Re: What is session.dirty() for?

2008-05-04 Thread Martin Makundi
If you subclassed the Session class and your attributes are properties of the subclass. Yes I did. But you are required to call session.dirty() only if your pages are stateless and your application is deployed on cluster. Why the session.dirty is called by the framework after modifying

Re: About the Session Leaking Problem

2008-05-04 Thread Jonathan Locke
actually, i think it would be more correct for the unset below to be inside a nested finally block. it's an edge case and probably will never happen, but technically speaking the try/catch below could fail for Throwables that are not exceptions (OOM errors, assertion failures, etc.) while

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread mfs
Looking for some follow up on this.. 1) Just wondering as to why isnt a constructor a good place to do the redirection to an external url , ? 2) What should be the right place for it, given my use-case.. Would writing a LogoutFilter be a good option.. Thanks in advance.. Johan Compagner

Re: keeping parameters when reloading a page

2008-05-04 Thread Eyal Golan
Johan, Wonderful, it worked. All I did was: mount(new HybridUrlCodingStrategy(/entityBrowser, EurekifyBrowserPage.class)); I'm going to investigate this class, but it actually did the job! Jeremy, As you can see, the filed get set by the PropertyModel: new DropDownChoice(confNames, new

Re: PropertyModel with default null model object ?

2008-05-04 Thread Per Newgro
Hello smallufo: the onclick and the onbeforerender methods will be called if page is presented (or immidiatly before). But this myLink.add(new Image(hexagramImage , new ResourceReference(MyObject.class , icons/byIndex/+ new PropertyModel(model,index).getObject().toString()+.gif)));

Re: What is session.dirty() for?

2008-05-04 Thread Matej Knopp
On Sun, May 4, 2008 at 8:09 AM, Martin Makundi [EMAIL PROTECTED] wrote: If you subclassed the Session class and your attributes are properties of the subclass. Yes I did. But you are required to call session.dirty() only if your pages are stateless and your application is deployed

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread Eyal Golan
Another question (mfs, if you don't mind). I did the invalidate on a link: Link logoutLink = new Link(logoutLink) { private static final long serialVersionUID = 1L; @Override public void onClick() { getSession().invalidateNow();

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread Johan Compagner
In a constructor of another page is just fine, but use an RestartXxxException. Else you have 2 things that wants to be the response, the redirect and the page you are in. On 5/4/08, mfs [EMAIL PROTECTED] wrote: Looking for some follow up on this.. 1) Just wondering as to why isnt a

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread Eyal Golan
I tried the normal invalidate before and got the same exception. I'm not sure I understood what you said about the constructor in your other reply. My scenario is like this: The user will press the logout link, the session logs out and I redirect to the Login page. I had another solution like

Re: Modal window and height

2008-05-04 Thread Cristi Manole
For me it works just by using setinitialwidth/height... doesn't it work for you too? Cristi Manole On Sat, May 3, 2008 at 3:14 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: The java doc for the modal windows says * licode[EMAIL PROTECTED] #setResizable(boolean)}/code specifies,

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread Johan Compagner
Why do you do invalidateNow? You want a new session for that next response page? It seems jetty does invalidate but doesnt give us a new one in the same request. Or wicket holds on to the http session object but i dont think we do that. On 5/4/08, Eyal Golan [EMAIL PROTECTED] wrote: Another

Re: How to avoid Lazy loading exception

2008-05-04 Thread Johan Compagner
for which request does it through there the exception? first you render it ? then you change it and it throws the exception on the second request? does load get called at that point? On Sun, May 4, 2008 at 12:37 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Thanks! This is what I'm trying

Re: How to avoid Lazy loading exception

2008-05-04 Thread Mathias P.W Nilsson
Thanks! This is what I'm trying to do but I still get the exception. This is from my DAO @SuppressWarnings( unchecked ) public ListCollection getCollections(){ org.hibernate.Session hibernateSession = (org.hibernate.Session)getEntityManager().getDelegate(); return

Re: Modal window and height

2008-05-04 Thread Cristi Manole
even if you don't use setcookiename at all? try not setting anything related to a cookie... this is how i do it and it works: reportModalWindow = new ModalWindow(reportWindow); reportModalWindow.setInitialHeight(410); reportModalWindow.setInitialWidth(750);

Re: Modal window and height

2008-05-04 Thread Mathias P.W Nilsson
No it does not work. I have looked in the source code as well but to see if I'm doing something wrong but I still get default height and width that is set in the source. -- View this message in context: http://www.nabble.com/Modal-window-and-height-tp16960447p17044911.html Sent from the Wicket

Re: How to avoid Lazy loading exception

2008-05-04 Thread Mathias P.W Nilsson
I have a page that list a Items that is hibernated annotated. When clicking on a wicket link using setResponsePage( new ItemPage( item ) ); I get the exception when trying to render my DropDownChoice. I use Detached model for this. load is not called, if you mean hibernatesession.load or

Re: Modal window and height

2008-05-04 Thread Matej Knopp
You have specified the cookie name. Thus it should remember the last size - that takes precedence over the specified initial size. -Matej On Tue, Apr 29, 2008 at 3:29 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I can't set initial height and width on my modal window. It's always the

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread Johan Compagner
with using invalidate you shouldnt get that message becacuse then invalidate is being done as last What is the stacktrace then? this should tjust work: getSession().invalidate(); setResponsePage(com.eurekify.web.Login.class); On Sun, May 4, 2008 at 12:02 PM, Eyal Golan [EMAIL PROTECTED] wrote:

Re: PropertyModel with default null model object ?

2008-05-04 Thread smallufo
Thank you , I found a way to solve this : myLink.add(new Image(hexagramImage , new PropertyModel(model , index) { @Override public Object getObject() { int index = ((Integer)super.getObject()).intValue(); return new ResourceReference(MyObject.class ,

Re: Modal window and height

2008-05-04 Thread Mathias P.W Nilsson
I have tried that. Still does not work. The only differens is that it is a resizable( false ) window -- View this message in context: http://www.nabble.com/Modal-window-and-height-tp16960447p17045142.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread Eyal Golan
I got this stack trace: 2008-05-04 14:55:17,638 ERROR [org.mortbay.log] - /eurekify/portal/: java.lang.IllegalStateException at org.mortbay.jetty.servlet.AbstractSessionManager$Session.setAttribute(AbstractSessionManager.java:916) at

Re: How to avoid Lazy loading exception

2008-05-04 Thread Stefan Fußenegger
Do you have OpenSessionInViewFilter in your web.xml? If no, you will get this exception whenever you try to do lazy loading outside your DAOs. add to web.xml: filter filter-nameOpenSessionFilter/filter-name filter-class

Re: why swarm not render link

2008-05-04 Thread Maurice Marrink
Well everything looks fine, so i will ask you to verify a few things for me. -Your hive file has permissions which continue over the next line, i assume this is caused by copy pasting the file here and that in the actual hive file each permission is on exactly 1 line. -I assume all the page

Re: AjaxSelfUpdatingTimerBahaviour to enable button when process compete

2008-05-04 Thread Maurice Marrink
You can override onPostProcessTarget of your AjaxSelfUpdatingTimerBehavior and enable your button there. Maurice On Sun, May 4, 2008 at 2:08 PM, Andrew Moore [EMAIL PROTECTED] wrote: Hi, I'm currently using an ajaxselfupdatingtimerbehaviour to update a message field for when a job is

Re: About the Session Leaking Problem

2008-05-04 Thread Johan Compagner
yes thats better. i changed it On Sun, May 4, 2008 at 8:50 AM, Jonathan Locke [EMAIL PROTECTED] wrote: actually, i think it would be more correct for the unset below to be inside a nested finally block. it's an edge case and probably will never happen, but technically speaking the

Re: AjaxSelfUpdatingTimerBahaviour to enable button when process compete

2008-05-04 Thread Andrew Moore
Thanks, that's just what I was looking for. Cheers Andrew Mr Mean wrote: You can override onPostProcessTarget of your AjaxSelfUpdatingTimerBehavior and enable your button there. Maurice On Sun, May 4, 2008 at 2:08 PM, Andrew Moore [EMAIL PROTECTED] wrote: Hi, I'm currently using

RE: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Hoover, William
Is there a reason why StringResourceModel is not using StringResourceModelT ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille Sent: Friday, May 02, 2008 4:09 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; users@wicket.apache.org; Apache Wicket

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Frank Bille
It wasn't done at the time of m1. It's fixed in trunk (hardcoded to String) Frank On Sun, May 4, 2008 at 5:47 PM, Hoover, William [EMAIL PROTECTED] wrote: Is there a reason why StringResourceModel is not using StringResourceModelT ? -Original Message- From: [EMAIL PROTECTED]

Re: How to lookup Page or Class from a URI path ?

2008-05-04 Thread Chris Lintz
Sorry I should be more clear. I know how to use mounts. What I need to lookup the Class associated to a particular mount point. Please see my code below: return new WebRequestCycle(this, (WebRequest) request, response) { @Override protected void

Re: Gzipping of pages (HTML output, not only resources)

2008-05-04 Thread Stefan Simik
One simple idea. It's possible, that we use different versions of Jetty. I am using version 6.1.8. I could'nt find either the same closing code in Gzip filter, nor finishResponse() method, nor such a string - This output stream has already been closed in my jetty source code. public void

RE: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Hoover, William
Is that the same case for UploadProgressBar ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bille Sent: Sunday, May 04, 2008 11:52 AM To: users@wicket.apache.org Subject: Re: [ANNOUNCE] Apache Wicket 1.4-M1 It wasn't done at the time of m1. It's

Re: How to lookup Page or Class from a URI path ?

2008-05-04 Thread Johan Compagner
why do you want to know it there? you are to early there. Wicket only knows it much later when it generates a RequestTarget from the url johan On Sun, May 4, 2008 at 6:09 PM, Chris Lintz [EMAIL PROTECTED] wrote: Sorry I should be more clear. I know how to use mounts. What I need to lookup

Re: How to lookup Page or Class from a URI path ?

2008-05-04 Thread Chris Lintz
Because I need the Class so i can check for the presence of an annotation (@InternalPage). If that annotation is present, only internal requests from 10.x.x.x are allowed. Otherwise a 403 (Forbidden) will be generated. Obviously i can control access with Apache, or a ServletFilter..heck for

RE: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Hoover, William
Also, looks like most of the models are not generic typed (BoundCompoundPropertyModel, CompoundPropertyModel, etc.) are these fixed in trunk as well? -Original Message- From: Hoover, William [mailto:[EMAIL PROTECTED] Sent: Sunday, May 04, 2008 12:15 PM To: users@wicket.apache.org

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Johan Compagner
not everything is done yet its an ongoing thing On Sun, May 4, 2008 at 6:29 PM, Hoover, William [EMAIL PROTECTED] wrote: Also, looks like most of the models are not generic typed (BoundCompoundPropertyModel, CompoundPropertyModel, etc.) are these fixed in trunk as well? -Original

Re: How to avoid Lazy loading exception

2008-05-04 Thread Mathias P.W Nilsson
I have session in view filter but still gets LazyLoadingException even if I use detached models! Ahhh... Solved it temporarily by using Eager fetch but this is going to end up bad if everything is eager. -- View this message in context:

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Johan Compagner
BoundCompoundPropertyModel can be depricated i think It doesnt have any added bonus over the normal CPM johan On Sun, May 4, 2008 at 6:29 PM, Hoover, William [EMAIL PROTECTED] wrote: Also, looks like most of the models are not generic typed (BoundCompoundPropertyModel, CompoundPropertyModel,

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Igor Vaynberg
my version of bcpm doesnt have deprecations, where are those? -igor On Sun, May 4, 2008 at 10:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: we already have * @deprecated See [EMAIL PROTECTED] CompoundPropertyModel#bind(String)} On Sun, May 4, 2008 at 7:12 PM, Igor Vaynberg [EMAIL

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Igor Vaynberg
ah, lol, i see that was your latest commit. fine, +1 to deprecate it. -igor On Sun, May 4, 2008 at 10:20 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: my version of bcpm doesnt have deprecations, where are those? -igor On Sun, May 4, 2008 at 10:14 AM, Johan Compagner [EMAIL PROTECTED]

Re: why swarm not render link

2008-05-04 Thread Maurice Marrink
The log indicates all requested permissions are granted. In fact the only thing that raises my eyebrow in the log is : 05-04 21:14:10.000[UserAccountServiceImpl.java:40 :ERROR] org.springframework.orm.ObjectRetrievalFailureException: Object of class [wm.model.UserAccount] with identifier [nhsoft]:

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Johan Compagner
we already have * @deprecated See [EMAIL PROTECTED] CompoundPropertyModel#bind(String)} On Sun, May 4, 2008 at 7:12 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: it has the bind methods, we can move those into compound though -Igor On Sun, May 4, 2008 at 10:02 AM, Johan Compagner [EMAIL

Re: South African Wicket Users?

2008-05-04 Thread Izak Wessels
Thanks for the advice Eelco, I have lived in the Englang for 5 years, love the weather and have no problem with the small housing :) I do a good knowledge of the Dutch language. I will have a look at the companies that you provided, thanks for that. Am I correct in assuming that most of the

Re: South African Wicket Users?

2008-05-04 Thread Johan Compagner
no randstad is not just amsterdam its pretty much the 4 big city's and everything around that circle Amsterdam , Den Haag, Rotterdam and Utrecht. johan On Sun, May 4, 2008 at 7:45 PM, Izak Wessels [EMAIL PROTECTED] wrote: Thanks for the advice Eelco, I have lived in the Englang for 5

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread mfs
though my case is a bit different, but just tried out what u are doing and i dont get any exception, whether i do invalidate or invalidateNow().. not sure why u are getting it and how to avoid the same.. Eyal Golan wrote: Another question (mfs, if you don't mind). I did the invalidate on a

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Erik van Oosten
Hi, I am correct in the assumption -1- that the goal for 1.4 is to only introduce generics, -2- and to keep the rest of the product stable, -3- and it is therefore safe to use milestone 1 for development, -4- and perhaps even for production usages? Regards, Erik. Frank Bille wrote: The

Re: [ANNOUNCE] Apache Wicket 1.4-M1

2008-05-04 Thread Martijn Dashorst
On 5/4/08, Erik van Oosten [EMAIL PROTECTED] wrote: I am correct in the assumption -1- that the goal for 1.4 is to only introduce generics, yes -2- and to keep the rest of the product stable, Yes -3- and it is therefore safe to use milestone 1 for development, Yes, but we expect to

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread mfs
Also my major problem is that when i do an invalidate() in the constructor (with or without any redirection) i am taken to the session-expiry page..I wonder why is that happening...can you please explain that behavior please ? ..the reason as i explained earlier i had to do the same in the in the

Refactoring Support For Wicket in Netbeans? Wonderful

2008-05-04 Thread Ayodeji Aladejebi
I grabbed the latest plugin for wicket from Netbeans plugin portal and to my suprise, my HTML files are automatically refactored when a corresponding wicket component class is refactored. Just excited to see this you could also give it a try

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread Martijn Dashorst
I think we need a RedirectToExternalException extends AbortRestartResponseException that sets the RedirectRequestTarget to an external page. Isn't too hard to implement I suppose... public class RedirectToExternalException extends AbstractRestartResponseException { private static final

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-05-04 Thread mfs
Thanks for the follow up Martijn, i will look into this... though I just discovered something which i cant comprehend, but before that below is what i do in my logout page.. String identityToken = MySession.get().getIdentityToken(); Cookie cookie = new Cookie(_JSESSIONID,);

Wicket Training Class - Austin, TX (July) / San Francisco, CA (September)

2008-05-04 Thread Jeremy Thomerson
I am excited to announce that I will now be offering Wicket training classes in the United States. I have been teaching other courses for some time now, but since I started using Wicket several years ago, I have been looking forward to being able to offer these courses to other developers. Here

Re: validation: Wicket does the right thing? Or right tool?

2008-05-04 Thread Eelco Hillenius
1. It is too much coding. Anybody used Valang in Spring Module? By using Valang, the validation code is much clean and a lot fewer and you dont need to create a class simply for this simple validation. The example you quoted is an example of a reusable validator that checks the values of

Re: validation: Wicket does the right thing? Or right tool?

2008-05-04 Thread David Chang
Eelco, Thanks so much for your input! I am still seriously learning Wicket now and will see if I will change my mind. BTW, what is the best Wicket example website? I often have many questions when reading tutorials with simple examples. I wonder Wicket can do or how do more callenging/complex

Re: validation: Wicket does the right thing? Or right tool?

2008-05-04 Thread Eelco Hillenius
Thanks so much for your input! I am still seriously learning Wicket now and will see if I will change my mind. BTW, what is the best Wicket example website? Best to download the Wicket examples distribution or check out from our subversion repo, so that you can browse through the source.

Re: why swarm not render link

2008-05-04 Thread 宁波新希望信息技术有限公司 -- 俞宏伟
*Can you check which block is executed, the if or the else. *the else block code will never execute after login in if i change BaseSecurePage class extends from WebPage(same as BasePage), the link will be visible. when turn on wicket debug detail information show the link object is exist, but

Re: Is there a setGatherAbbreviatedBrowserInfo(true) as appose to setGatherExtendedBrowserInfo(true)?

2008-05-04 Thread Eelco Hillenius
On Fri, May 2, 2008 at 4:59 PM, Matthew Young [EMAIL PROTECTED] wrote: I only want to find out the user's timezone. setGatherExtendedBrowserInfo(true) redirect page take too long, sometimes it stays on the screen many seconds. You can often best do this in a custom way by either creating

Re: How to lookup Page or Class from a URI path ?

2008-05-04 Thread Eelco Hillenius
Because I need the Class so i can check for the presence of an annotation (@InternalPage). If that annotation is present, only internal requests from 10.x.x.x are allowed. Otherwise a 403 (Forbidden) will be generated. Obviously i can control access with Apache, or a ServletFilter..heck for

Regarding Print page function?

2008-05-04 Thread Edi
Hello, I have created one html link and during the onclick, I have called the javascript print function, window.print(), the entire page is printing nicely. But in all the corner sides, I am getting some improper wicket codes also printing(FYI: My IE version is 6.0). But in firefox is

Re: way to traverse / get all form validators

2008-05-04 Thread Eelco Hillenius
On Fri, May 2, 2008 at 11:56 AM, Gerolf Seitz [EMAIL PROTECTED] wrote: there is final ListIValidator getValidators() {...} on FormComponent which you can use like this: Use a visitor, like: visitChildren(FormComponent.class, new IVisitor() { public Object component(final Component c) {

Re: Regarding Print page function?

2008-05-04 Thread Martin Makundi
Could you show the markup and the code? 2008/5/5 Edi [EMAIL PROTECTED]: Hello, I have created one html link and during the onclick, I have called the javascript print function, window.print(), the entire page is printing nicely. But in all the corner sides, I am getting some