[Wicket-user] Wicket 1.3 and Velocity

2007-07-26 Thread [EMAIL PROTECTED]
Hi, I am working with wicket 1.3 and use Velocity for generating emails by templates. With wicket it works good, but now (with wicket 1.3) Velocity cannot load templates Properties props = new Properties(); props.setProperty(resource.loader, file);

Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Federico Fanton
On Thu, 26 Jul 2007 11:11:38 +0200 Federico Fanton [EMAIL PROTECTED] wrote: meta refresh output scriptwindow.top.location='http://redirected-url.com'/script/ ? Is a nested script tag allowed inside a meta tag? Also, I tried looking up refresh inside the HTML4 specs on www.w3.org but

Re: [Wicket-user] Removing Markup Component (From HTML) using Java

2007-07-26 Thread Dipu Seminlal
add a WebMarkupContainer and set the visibilty of the container to false, In your Form add the container like this WebMarkupContainer container = new WebMarkupContainer(container ) add(container) And in the HTML span wicket:id=containerinput type=text name=ordinary text box/span I am not

Re: [Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Tremelune
Here's a stack trace, if it helps: org.apache.wicket.WicketRuntimeException: No RequestCycle is currently set! at org.apache.wicket.Component.getRequest(Component.java:1417) at com.holla.pages.SomeWebPage.onBeforeRender(SomeWebPage.java:180) at

Re: [Wicket-user] - Wicket 1.3 release date?

2007-07-26 Thread Upayavira
Martijn Dashorst wrote: We are already a month overdue, and the number of open bugs haven't been going down lately, despite some serious effort put in by several committers. I hate to say it, but I currently can't make any guarantees. As for the beta's: we have a beta 3 planned, but it

Re: [Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Igor Vaynberg
because of all the threadlocals you should probably run wickettester in a separate thread: onclick() { final String[] output=new String[1]; Runnable gen=new Runnable() { run() { WicketTester tester=new WicketTester(); tester.startPage(new MailPage());

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Matej Knopp
Problem is when you call getMarkupId(). If you call this method before the first page render, Wicket is not able to get the markup attribute for some components (because of borders and transparent resolvers which break the 1:1 mapping of component tree - markup. -Matej On 7/26/07, Scott Swank

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-07-26 Thread Eelco Hillenius
I'm not familiar with JIRA, where should I go to sign up or post a bug? http://issues.apache.org/jira/browse/WICKET then look for a way to register. Eelco - This SF.net email is sponsored by: Splunk Inc. Still grepping

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Igor Vaynberg
the general problem here is that hardcoding ids into wicket markup is mostly dangerous because things are so reusable. if you put an id into a repeater then it will be repeated all the time - causing multiple elements with the same id - which will lead to invalid html. hardcoding an id inside a

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Eelco Hillenius
I'm a little surprised this isn't more of a high priority item... It is scheduled as major, with fix version beta 3. That's a pretty high priority. The fact is though that until I stumbled upon this, we had no complaints of users to deal with in this matter. I know Repeaters et al might need

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Kirk Israel
On 7/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: http://issues.apache.org/jira/browse/WICKET-694 i guess there were problems when implementing this, maybe eelco can ellaborate more on the unforeseen side effects Yeah, they were listed in the thread that is mentioned in the issue:

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Eelco Hillenius
http://issues.apache.org/jira/browse/WICKET-694 i guess there were problems when implementing this, maybe eelco can ellaborate more on the unforeseen side effects Yeah, they were listed in the thread that is mentioned in the issue:

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Igor Vaynberg
On 7/26/07, Kirk Israel [EMAIL PROTECTED] wrote: (I started moving myself to the other list but am not quite there yet) Empirically, it looks like there might have been a change in behavior from 1.2, but I couldn't verify that on http://cwiki.apache.org/WICKET/migrate-13.html -- if you're

Re: [Wicket-user] FormComponentPanel with setRequired

2007-07-26 Thread Igor Vaynberg
i just made formcomponent.checkrequired() none final. i think most implementations of formcomponentpanel will want to override it and always return true. that way required validation will be performed on formcomponentpanel's convertedinput rather then raw http post input. makes sense? -igor On

Re: [Wicket-user] execute long running ajax task after page is loaded

2007-07-26 Thread jonaqua
Thanks Martijn, I haven't attempted this yet - I've been working on other things (since functionally this part of my app works fine). When I revisit this I'm sure I'll have some questions for you :) Thanks again Martijn Dashorst wrote: Create a processing thread, and dispatch it. Have the

Re: [Wicket-user] Removing Markup Component (From HTML) using Java

2007-07-26 Thread Durai007
Suppose, Consider in html, I have ordinary html textbox.for e.g input type=text name=user In this situation, How can I remove? Pls tell your suggestion. Thanks Regards, Durai igor.vaynberg wrote: simply gridform.setvisible(false); -igor On 7/25/07, Durai007 [EMAIL PROTECTED]

Re: [Wicket-user] - Wicket 1.3 release date?

2007-07-26 Thread Martijn Dashorst
We are already a month overdue, and the number of open bugs haven't been going down lately, despite some serious effort put in by several committers. I hate to say it, but I currently can't make any guarantees. As for the beta's: we have a beta 3 planned, but it still has 27 issues open. Not all

Re: [Wicket-user] - Wicket 1.3 release date?

2007-07-26 Thread Seldon, Richard
Whps! Just reread my own email, and to clear up any ambiguity... Please read first question as being broad estimate either to the day or week or month etc [even between month ranges]. Appreciate this is open source! Best regards, Richard. -Original Message- From: [EMAIL PROTECTED]

[Wicket-user] - Wicket 1.3 release date?

2007-07-26 Thread Seldon, Richard
Hello, a couple of quick questions regarding Wicket release dates. Trying to do a bit of forward planning on our project. At present, I understand Wicket 1.3.0-beta2 is latest 'version'. Is there an approximate release date in mind (day / week / month) for an official 1.3 (non-beta) version?

Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Federico Fanton
On Thu, 26 Jul 2007 02:45:44 -0700 (PDT) Erik van Oosten [EMAIL PROTECTED] wrote: scriptwindow.top.location='url' .etc Now I see, thanks! Sorry for the OT :/ Many thanks again! - This SF.net email is

Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Federico Fanton
On Wed, 25 Jul 2007 10:16:27 -0700 Igor Vaynberg [EMAIL PROTECTED] wrote: write your own page, that works like redirect page, but instead of doing meta refresh output scriptwindow.top.location='url' I'm sorry, I think I'm missing something.. Do you mean I should write a page like !DOCTYPE

[Wicket-user] Regarding Wicket Run-time exceptions?

2007-07-26 Thread Edi
Hi, I am using wicket + jexcel, I got the following error, wicket.WicketRuntimeException: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: com.ui.page.MainPage Caused by: java.io.NotSerializableException: jxl.read.biff.LabelSSTRecord Please tell

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Scott Swank
How hard would it be to add a method like useHtmlElementId()? It would default to false, but when a component returns true then the element id from the template would be used. Scott On 7/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the general problem here is that hardcoding ids into wicket

Re: [Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Tremelune
Nailed it, thanks. I thought I tried this, but clearly my threading code was out of whack. igor.vaynberg wrote: because of all the threadlocals you should probably run wickettester in a separate thread: onclick() { final String[] output=new String[1]; Runnable gen=new Runnable() {

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Scott Swank
Would it make sense to override the method on border (et al), make it final, and just have it always return false? Or does the 1:1 problem lie with components within such a border? On 7/26/07, Matej Knopp [EMAIL PROTECTED] wrote: Problem is when you call getMarkupId(). If you call this method

[Wicket-user] Wicket in Action now available through Manning Early Access Program

2007-07-26 Thread Martijn Dashorst
Eelco and I are really happy to announce the availability of our first two chapters of our forthcoming book Wicket in Action. Chapter 1 is a FREE(!) download for users that subscribe to our new Apache Wicket user list. First send a message to [EMAIL PROTECTED] and then proceed to download chapter

[Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Tremelune
This issue is ultimately stemming from a specific issue I encountered during my trials and tribulations in http://www.nabble.com/How-to-get-HTML-source-code-from-a-wicket-page-tf3968790.html#a11548230 this thread , but it was getting buried a bit in the rest of the thread...I figured I'd ask

Re: [Wicket-user] How to get HTML source code from a wicket page

2007-07-26 Thread Tremelune
For some reason, after my custom WebRequestProcessorCycle.respond() fires, RquestCycle.get() returns null...I can't seem to escape that... I'm not familiar with JIRA, where should I go to sign up or post a bug? Eelco Hillenius wrote: It seems to be such a recurring issue (and tbh, I

Re: [Wicket-user] Wizard question

2007-07-26 Thread Eelco Hillenius
On 7/25/07, Will Jaynes [EMAIL PROTECTED] wrote: Using 1.3beta2. I'm new, so maybe I shouldn't be trying to work with the Wizard stuff from wicket-extentions this early, but... I just don't see how to get at my model in between steps, or rather, at the end of a step. My wizard constructor

[Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Kirk Israel
(I started moving myself to the other list but am not quite there yet) Empirically, it looks like there might have been a change in behavior from 1.2, but I couldn't verify that on http://cwiki.apache.org/WICKET/migrate-13.html -- if you're writing custom javascript (in this case an arbitrary

[Wicket-user] Handling exceptions

2007-07-26 Thread Federico Fanton
Hi everyone! I was wondering if there's a best practice for handling exceptions in a Wicket application.. I'm implementing an IDataProvider for a DataView, and I see that this interface doesn't throw any exception, so I'd guess that if something happens inside - say - iterator() that throws an

[Wicket-user] FormComponentPanel with setRequired

2007-07-26 Thread Stephane Boisson
Hello, I was wondering what were the guidelines about using setRequired for a FormComponentPanel and for its child FormComponent.. For example I made a FormComponentPanel made of three DropDownChoice to pick a date (easier to enter birthday date than other date pickers). But if i make this

Re: [Wicket-user] Redirecting top frame

2007-07-26 Thread Erik van Oosten
Igor wrote: write your own page, that works like redirect page, but instead of doing meta refresh output scriptwindow.top.location='url' What he meant: write your own page, that works like redirect page, but instead of doing meta refresh=... etc output

Re: [Wicket-user] Regarding Wicket Run-time exceptions?

2007-07-26 Thread Edi
Ok. I will Check. But When I get the cellType of each cell. It shows wrong type. for e.g Testing shows :: Date - wrong 12/12/07 shows :: Date- correct 200.00 shows :: Date - wrong. It looks like confusing. Please advise. Thanking You. Regards, Edi Ayodeji Aladejebi wrote:

Re: [Wicket-user] Regarding Wicket Run-time exceptions?

2007-07-26 Thread Ayodeji Aladejebi
i suppose its a Jexcel issue because the Cell implementations are not Serializable so you should not make them a dependent object in your application like having private Cell cell; in your webpage or panel you could make it transient to avoid making it a serialization concern or if you follow

[Wicket-user] Wicket User at sourceforge is moving!

2007-07-26 Thread Martijn Dashorst
You may already have heard this, but we want to get the message out loud and clear: the sourceforge.net mailinglists for users are closing down. If you want to continue to read, write and respond to user questions concerning Wicket, you have to subscribe to the new Apache Wicket user list.

Re: [Wicket-user] The future of wicket-user@lists.sourceforge.net

2007-07-26 Thread Martijn Dashorst
Is already taken care of (see development list). Martijn On 7/26/07, Federico Fanton [EMAIL PROTECTED] wrote: On Wed, 25 Jul 2007 21:05:04 +0200 Martijn Dashorst [EMAIL PROTECTED] wrote: With great pleasure I can announce that we have finally established one of the last hurdles in our

Re: [Wicket-user] The future of wicket-user@lists.sourceforge.net

2007-07-26 Thread Federico Fanton
On Wed, 25 Jul 2007 21:05:04 +0200 Martijn Dashorst [EMAIL PROTECTED] wrote: With great pleasure I can announce that we have finally established one of the last hurdles in our migration to Apache: we have our own user list at the Apache Wicket project. I'm sorry, what about gmane.org

Re: [Wicket-user] Removing Markup Component (From HTML) using Java

2007-07-26 Thread Durai007
no. In wicket html page, if i draw ordinary html textbox input type=text name=text box, we have no need to mention in java file. Initial page loading, I want to hide the above mentioned html text box. Thanks Regards, Durai Dipu Seminlal wrote: add a WebMarkupContainer and set the

Re: [Wicket-user] Regarding Wicket Run-time exceptions?

2007-07-26 Thread Edi
any reply, please Edi wrote: Ok. I will Check. But When I get the cellType of each cell. It shows wrong type. for e.g Testing shows :: Date - wrong 12/12/07 shows :: Date- correct 200.00 shows :: Date - wrong. It looks like confusing. I am using cell.getType()

[Wicket-user] To Form or not to Form

2007-07-26 Thread David Leangen
I have a Panel that I'd like to be able to either render as a FormComponent in the context of a known Form (by passing the parent Form in this component's constructor) or, if the parent Form is null, to itself render as a complete Form. At first, I thought this would work: WebMarkupContainer

Re: [Wicket-user] To Form or not to Form

2007-07-26 Thread Igor Vaynberg
always add a form around it, wicket supports nested forms. -igor On 7/26/07, David Leangen [EMAIL PROTECTED] wrote: I have a Panel that I'd like to be able to either render as a FormComponent in the context of a known Form (by passing the parent Form in this component's constructor) or, if

Re: [Wicket-user] To Form or not to Form

2007-07-26 Thread David Leangen
Great! Very simple! Thanks, Igor! On Thu, 2007-07-26 at 22:31 -0700, Igor Vaynberg wrote: always add a form around it, wicket supports nested forms. -igor On 7/26/07, David Leangen [EMAIL PROTECTED] wrote: I have a Panel that I'd like to be able to either render as