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

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)

[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 f

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

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 , 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 visibilty of the container to false

[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. Subscr

[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 chapte

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

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] 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 Runnabl

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 wick

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

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()); output[0]=tester.getout

[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 with

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 org.apache.wicket.Component.

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 th

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 thou

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 p

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 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 constru

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: http://www.nabble.com/Re%3A-getMarkupId-doesn%27t-return-t

Re: [Wicket-user] Wicket 1.3 and Velocity

2007-07-26 Thread Eelco Hillenius
On 7/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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("

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 -- > > i

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

[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 for

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 I am not sure if this is what you want. Regards Dipu On 7/26/07, Durai007

[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 Form

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 th

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 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]> wrote: >> >> >>

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] [ma

[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? Are

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: >

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] 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 window.top.location='url' What he meant: write your own page, that works like redirect page, but instead of doing http://redirected-url.com'/> >> >> ? >> Is a nested "script" tag allowed inside a "meta"

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: > window.top.location='http://redirected-url.com'/> > > ? > Is a nested "script" tag allowed inside a "meta" tag? Also, I tried looking > up "refresh" inside the

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 su

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 > window.top.location='url' I'm sorry, I think I'm missing something.. Do you mean I should write a page like http://www.w3.org/1999/xhtml";>

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 hurdle

[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"); props.setProperty("class.resource.loader.cl

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 my