Wicket 1.4.2 Released!

2009-10-10 Thread Igor Vaynberg
The Apache Wicket project is proud to announce the second maintenance release of Apache Wicket 1.4. Download Apache Wicket 1.4 --- You can download the release here: http://www.apache.org/dyn/closer.cgi/wicket/1.4.2 Or use this in your Maven pom's to

commit access for wicket stuff

2009-10-10 Thread danisevsky
Hi, I would like commit access for wicket stuff. I plan working on YUI. My sourceforge user name is danisevsky Regards,

Re: Wicket 1.4.2 Released!

2009-10-10 Thread Anton Veretennikov
Congratulations! This is a great news for all wicket lovers! -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-10-10 Thread Daniele Dellafiore
yep I do that. Actually, I wrote that article :) My problem is more subtle here and I have discovered now that is related to javascript execution order. In fact I open a new thread to investigate that specific issue. I also try to produce a ExamplePage to commit on tinymce example project. On

Re: Wicket 1.4.2 Released!

2009-10-10 Thread Giovanni
Wow!!! I will upgrade my project for a major italian bank on coming monday. Thanks a lot for all your efforts in developing this great web framework! Best regards, giovanni Resources are limited, Imagination is unlimited.

Re: Wicket 1.4.2 Released!

2009-10-10 Thread Haulyn R. Jason
Congratulations, I will upgrade next week. On Sat, Oct 10, 2009 at 8:05 PM, Giovanni pino_o...@yahoo.com wrote: Wow!!! I will upgrade my project for a major italian bank on coming monday. Thanks a lot for all your efforts in developing this great web framework! Best regards, giovanni

how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread Paul Huang
Suppose I write my own wicket component called XYZ that have the following markup wicket:panel div wicket:id=id_xxx /div /wicket:panel How can I inject some js code into this markup so when it's rendered in a page, I got something like wicket:panel div wicket:id=id_xxx script

Re: AjaxRequestTarget javascript execution order

2009-10-10 Thread McIlwee, Craig
Have you tried prependJavascript(String) instead of append? Javadoc: Adds javascript that will be evaluated on the client side before components are replaced Sounds like what you're looking for if I'm understanding your question correctly. Craig _ From: Daniele Dellafiore

Re: AjaxRequestTarget javascript execution order

2009-10-10 Thread Daniele Dellafiore
you are my favourite person in the world today :) On Sat, Oct 10, 2009 at 3:07 PM, McIlwee, Craig craig.mcil...@openroadsconsulting.com wrote: Have you tried prependJavascript(String) instead of append?  Javadoc: Adds javascript that will be evaluated on the client side before components are

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread McIlwee, Craig
If your component is a MarkupContainer you can override getAssociatedMarkupStream(boolean) and build the markup on the fly. So maybe still have the HTML file that you read in as a template with some place holder string and in the override you replace the place holder with stuff you want to be

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
McIlwee, Craig wrote: If your component is a MarkupContainer you can override getAssociatedMarkupStream(boolean) and build the markup on the fly. So maybe still have the HTML file that you read in as a template with some place holder string and in the override you replace the place

RE: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread Fatih Mehmet UCAR
Add a div to your page like below: html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleInsert title here/title /head body div wicket:id=csp/div /body /html -Original Message- From: PaulH98 [mailto:paulhuan...@gmail.com] Sent: 10 October 2009

RE: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
Fatih Mehmet UCAR wrote: Add a div to your page like below: html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleInsert title here/title /head body div wicket:id=csp/div /body /html Thanks Fatih, Indeed, I had div wicket:id=csp/div in

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread Igor Vaynberg
can you not just use a label whose model is the script.../script string? -igor On Sat, Oct 10, 2009 at 5:34 AM, Paul Huang paulhuan...@gmail.com wrote: Suppose I write my own wicket component called XYZ that have the following markup wicket:panel div wicket:id=id_xxx /div

Re: SerializableChecker$WicketNotSerializableException:

2009-10-10 Thread Ceki Gulcu
Eelco Hillenius wrote: I've looked at it briefly. The main thing you need to keep in mind is that it unfortunately is a limitation of Wicket that you can't have references in Components that aren't serializable (unless you don't care about back button support and turn of the second level

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread Anton Veretennikov
For example I use this markup: script wicket:id=focusScript/script and associate it with simple class: public class FocusScript extends Label { public FocusScript(String id, String focusFieldMarkupId, boolean selectAll) { super(id, getFocusScript(focusFieldMarkupId, selectAll));

Re: SerializableChecker$WicketNotSerializableException:

2009-10-10 Thread Ceki Gulcu
Igor Vaynberg wrote: On Fri, Oct 9, 2009 at 1:41 PM, Ceki Gulcu c...@qos.ch wrote: Anyway, my application handles a complex tree-like structure, with almost all of the contents non-serializable and outside my control. I don't think I can use a Loadable Detachable Model, because loading the

Re: SerializableChecker$WicketNotSerializableException:

2009-10-10 Thread Igor Vaynberg
what is the lifecycle of this data? when do you no longer need to store it? if this is runtime data you can create a runtime store for it, even a simple map can do. this map can live in servlet context, spring context, as a field of your wicket application, etc. the user pages can then retrieve

Re: SerializableChecker$WicketNotSerializableException:

2009-10-10 Thread Igor Vaynberg
in other words, if you were building this app using jsps or servlets how would you carry over this data structure between requests? -igor On Sat, Oct 10, 2009 at 9:09 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: what is the lifecycle of this data? when do you no longer need to store it?

Re: SerializableChecker$WicketNotSerializableException:

2009-10-10 Thread Ceki Gulcu
Igor Vaynberg wrote: in other words, if you were building this app using jsps or servlets how would you carry over this data structure between requests? No, I actually would not carry the data between requests. When the page is requested, I would run my test suite to compute the results.

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread McIlwee, Craig
Didn't think of that approach, looks good. But to clear up my previous suggestion since I guess I wasn't clear enough and its useful in other situations also, you need to _override_ getAssociatedMarkupStream(boolean), not just call it. public static final String JAVASCRIPT_PLACEHOLDER =

Re: SerializableChecker$WicketNotSerializableException:

2009-10-10 Thread Igor Vaynberg
if you do not need to hold on to the data structure between requests then there is no need to keep any references to it in the components themselves. pass it into the constructor, create whatever components you need to represent it in the ui and throw it away. you may have to create wrappers

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
Anton Veretennikov wrote: For example I use this markup: script wicket:id=focusScript/script and associate it with simple class: public class FocusScript extends Label { public FocusScript(String id, String focusFieldMarkupId, boolean selectAll) { super(id,

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
McIlwee, Craig wrote: Didn't think of that approach, looks good. But to clear up my previous suggestion since I guess I wasn't clear enough and its useful in other situations also, you need to _override_ getAssociatedMarkupStream(boolean), not just call it. public static final String

Re: Wicket 1.4.2 Released!

2009-10-10 Thread Luca Provenzani
Thank You very much, I'll update our project early. Luca 2009/10/10 Igor Vaynberg igor.vaynb...@gmail.com The Apache Wicket project is proud to announce the second maintenance release of Apache Wicket 1.4. Download Apache Wicket 1.4 --- You can

Re: DropDownChoice and onSelectionChanged error.

2009-10-10 Thread Altuğ B . Altıntaş
Thanks Fatih. It is my fault, i solved the problem. Altug. 2009/10/9 Fatih Mehmet Ucar fmu...@gmail.com If you use the below constrcutor, it should solve your problem. DropDownChoice(java.lang.String id, IModel model, IModel choices, IChoiceRenderer renderer) 2009/10/9 Altuğ B. Altıntaş