Re: Big Problem with TinyMCE

2010-05-03 Thread Robert Kimotho
On your AjaxButton add TinyMceAjaxSubmitModifier. Kimotho. On Fri, Apr 30, 2010 at 12:53 AM, Brad Grier brad.gr...@salusnovus.comwrote: I'm trying to use a TinyMCE editor on a form (itself belonging to a panel added to a page via Ajax). The form is submitted via an AjaxButton. From other

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-05-03 Thread Robert Kimotho
When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟 nhsoft@gmail.com image upload example run failuer, the application

Re: The better way tp add component directly

2010-05-03 Thread Sven Meier
AbstractRepeater (and its subclasses) does it this way with its onPopulate() method, so this strategy should fit your case too. Perhaps think about a reuse strategy, i.e. don't create a new component if the type hasn't changed. Sven -- View this message in context:

Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
Hi, I have 2 questions: 1. is there a way to know from RequestCycle if a call is Ajax? 2. is there a way to know which Link reference initiated a call from RequestCyclle? thanks --

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ernesto Reinaldo Barreiro
Hi, 1. is there a way to know from RequestCycle if a call is Ajax? AjaxRequestTarget.get() != null or ((WebRequestCycle)WebRequestCycle.get()).getWebRequest().isAjax(); 2. is there a way to know which Link reference initiated a call from RequestCyclle? Do you mean which Link

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
On 1. Thanks On 2. yeah which link was clicked or in another way, the component path which the ongoing request will refers to What am trying to do: I allocate resources to each call from each request however some resources are not needed to be allocated during some ajax calls. i need to filter

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ernesto Reinaldo Barreiro
On 2. Can you just retrieve the URL and use that to decide? Best, Ernesto On Mon, May 3, 2010 at 2:40 PM, Ayodeji Aladejebi aladej...@gmail.com wrote: On 1. Thanks On 2. yeah which link was clicked or in another way, the component path which the ongoing request will refers to What am

AjaxEditableLabel with icon in addition to label

2010-05-03 Thread Erich W Schreiner
Dear all, I would like to add an icon next to the label of an AjaxEditableLabel component. I tried to use a Panel or WebMarkupContainer, but both are not subtypes to WebComponent (which is the return type of newLabel() that I tried to overwrite). Can you please provide me with suggestions

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
Yeah thanks that worked ! On Mon, May 3, 2010 at 1:47 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: On 2. Can you just retrieve the URL and use that to decide? Best, Ernesto On Mon, May 3, 2010 at 2:40 PM, Ayodeji Aladejebi aladej...@gmail.com wrote: On 1. Thanks On 2.

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
Please is there a way to get an ajax Behavior call string such as * wicket:interface=:1:homeScreen:helpForm:helpContainer:clientName:label::IBehaviorListener:0: * before rendering occurs? That is the Query String from a Label with an AjaxEditableBehavior On Mon, May 3, 2010 at 2:03 PM, Ayodeji

Re: AjaxEditableLabel with icon in addition to label

2010-05-03 Thread Igor Vaynberg
use css... -igor On Mon, May 3, 2010 at 5:51 AM, Erich W Schreiner eschrei...@yahoo.com wrote: Dear all, I would like to add an icon next to the label of an AjaxEditableLabel component. I tried to use a Panel or WebMarkupContainer, but both are not subtypes to WebComponent (which is the

Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ernesto Reinaldo Barreiro
use urlFor(AjaxEditableBehavior...) on onbeforerender()? Best, Ernesto On Mon, May 3, 2010 at 3:45 PM, Ayodeji Aladejebi aladej...@gmail.com wrote: Please is there a way to get an ajax Behavior call string such as *

Re: Big Problem with TinyMCE

2010-05-03 Thread Fernando Wermus
I run into the same problem. I cant see the text written in text area. Could show the code you have written? thanks in advance On Mon, May 3, 2010 at 4:04 AM, Robert Kimotho kimot...@gmail.com wrote: On your AjaxButton add TinyMceAjaxSubmitModifier. Kimotho. On Fri, Apr 30, 2010 at 12:53

Re: wicketstuff-minis status?

2010-05-03 Thread nmetzger
Hi Nino, is there any update planned for mootools 1.2.4? Thanks, Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2124092.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Big Problem with TinyMCE

2010-05-03 Thread nicolas melendez
hey! do this: add to the page a hidden ajaxSubmitLink and se it an id, for example: submitToServer. In the onclick java method of the hidden ajaxSubmitLink do your java magic server-side. Then in your submit button of the html page, add a small javascript that save HTML and then clicks the

Survey -- Tool Success Theory Empirical Study - Apache Wicket

2010-05-03 Thread Eric Reagan
Hello All, I recieved an email entitled Tool Success Theory Empirical Study - Apache Wicket. I was seeing if anyone else got this. Just wanted to make sure that the request is valid before I go and fill out the survey. Thanks -- Eric Reagan

Re: Survey -- Tool Success Theory Empirical Study - Apache Wicket

2010-05-03 Thread Fernando Wermus
I did. don't know if valid. sorry :) On Mon, May 3, 2010 at 12:21 PM, Eric Reagan reaga...@gmail.com wrote: Hello All, I recieved an email entitled Tool Success Theory Empirical Study - Apache Wicket. I was seeing if anyone else got this. Just wanted to make sure that the request is

Combo Box

2010-05-03 Thread Brian Mulholland
I've got a combo box with the list in a List of string arrays (code and decode). The bean has the currently selected code. I created a DropDownChoice with a custom ChoceRenderer as below. The CR interface is invoked for both the acquisition of the bean value and for each row of the list, which

autocomplete based on other field's value + storing the reference

2010-05-03 Thread Istvan Soos
Hi, I've the following stripped down hierarchy: form wicket:id=form |- input type=text wicket:id=main |- input type=text wicket:id=description |- input type=hidden wicket:id=reference I'd like the description field to work as an autocomplete field: when the users clicks into it, it might

Re: autocomplete based on other field's value + storing the reference

2010-05-03 Thread Jeremy Thomerson
you'll need to do some customization, but you have the pieces with ajaxformcomponentupdatingbehavior, ajaxsubmitbehavior, and the built-in autocomplete. Some combination of those will help you. -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 3, 2010 at 12:27 PM, Istvan Soos

Re: Survey -- Tool Success Theory Empirical Study - Apache Wicket

2010-05-03 Thread Mauro Ciancio
I also received the survey. This has been discussed a few weeks ago. Search in the archives and you'll find the survey's author mail. Regards. On Mon, May 3, 2010 at 1:06 PM, Fernando Wermus fernando.wer...@gmail.com wrote: I did. don't know if valid. sorry :) On Mon, May 3, 2010 at 12:21

statefulness, and multiple tabs

2010-05-03 Thread Ray Weidner
I have a question about how to approach a certain kind of problem. Let me first explain what I'm doing, and then what the problem is with that. For the web app I'm creating, a user can, using a web form, edit data which is backed by a model that fetches the persistent object being modified.

Wicket 1.4.8 released

2010-05-03 Thread Igor Vaynberg
Wicket 1.4.8 is released! This is the eighth maintenance release of 1.4.x series and brings over 20 bug fixes and improvements. tag: https://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.8/ maven: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId

Math captcha with Wicket?

2010-05-03 Thread Thomas Götz
Did anyone ever integrate some kind of math capture with Wicket (please solve the following simple equation ...)? How would I do this, someone got a code pointer for me? -Tom - To unsubscribe, e-mail:

Re: Big Problem with TinyMCE

2010-05-03 Thread Fernando Wermus
Nicolas, Your proposal work. But I have my TinyMCE in a modal window and it has stopped to close. In the other case, I don't get any string in text area, but my modal window close. I need both. Any suggestion? thanks in advance On Mon, May 3, 2010 at 12:06 PM, nicolas melendez

Re: Big Problem with TinyMCE

2010-05-03 Thread Fernando Wermus
I've solved it with the following @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator(){ private static final long serialVersionUID = 4430011596296790970L; @Override public CharSequence decorateScript(CharSequence script) { return

Re: Math captcha with Wicket?

2010-05-03 Thread Igor Vaynberg
off the top of my head class question { int lhs, int rhs, boolean plus; void randomize() { lhs=math.random()*10, rhs=math.random()*10; plus=math.random()0.5;} string tostring() { return +lhs+ +((plus)?+:-)+ +rhs; } boolean check(int answer) { if (plus) return answer==lhs+rhs else return

Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Tony Wu
I have an application where on session timeout, I want to redirect to different pages based on what their last visited page was. Currently my app only redirects to the same page all the time through getApplicationSettings().setPageExpiredErrorPage(LoginPage.class). Is there any way to capture the

Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Igor Vaynberg
you can append the class name of the last visited page to every url by creating your own url coding strategy -igor On Mon, May 3, 2010 at 4:59 PM, Tony Wu e90t...@gmail.com wrote: I have an application where on session timeout, I want to redirect to different pages based on what their last

Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Tony Wu
Seems messy to have to carry that to every single URL. I was thinking about redirecting to a Proxy page and having the logic there to redirect elsewhere. The thing is I don't know what page I'm from once I'm at the proxy. I suppose I can store the last visited page in a cookie, but I'd like to

Re: Session Timeout - detect last visited page and redirect accordingly

2010-05-03 Thread Igor Vaynberg
if not in url or cookies your only other space is session, and since that has timed out... -igor On Mon, May 3, 2010 at 5:43 PM, Tony Wu e90t...@gmail.com wrote: Seems messy to have to carry that to every single URL. I was thinking about redirecting to a Proxy page and having the logic there

When to use InjectorHolder

2010-05-03 Thread Douglas Ferguson
Do I need to use InjectorHolder when using @Inject in a model?

Re: When to use InjectorHolder

2010-05-03 Thread Ryan Gravener
Not sure wicket-guice works with injectorholder. If you are not extending component, then you should pass the service to the constructor. Sent from my Incredible. On Mon, May 3, 2010 at 10:58 PM, Douglas Ferguson doug...@douglasferguson.us wrote: Do I need to use InjectorHolder when using

Re: When to use InjectorHolder

2010-05-03 Thread Douglas Ferguson
I thought that it did working with 1.4.8 On May 3, 2010, at 10:07 PM, Ryan Gravener wrote: Not sure wicket-guice works with injectorholder. If you are not extending component, then you should pass the service to the constructor. Sent from my Incredible. On Mon, May 3, 2010 at 10:58

Re: When to use InjectorHolder

2010-05-03 Thread Jeremy Thomerson
Yes - on anything that does not extend Component you will need to inject manually. Components are injected automagically by adding the component instantiation listener (which is called from Component's constructor). -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 3, 2010 at 9:58

Re: When to use InjectorHolder

2010-05-03 Thread Jeremy Thomerson
Yes - it should - I think :) -- Jeremy Thomerson http://www.wickettraining.com On Mon, May 3, 2010 at 10:27 PM, Douglas Ferguson doug...@douglasferguson.us wrote: I thought that it did working with 1.4.8 On May 3, 2010, at 10:07 PM, Ryan Gravener wrote: Not sure wicket-guice works

Re: When to use InjectorHolder

2010-05-03 Thread Douglas Ferguson
Since the ConfigurableInjector doesn't implement the guice injector, how would I inject my mocks using my test module and the guice injector? D/ On May 3, 2010, at 10:31 PM, Jeremy Thomerson wrote: Yes - it should - I think :) -- Jeremy Thomerson http://www.wickettraining.com On

Re: Wicket Bench

2010-05-03 Thread bht
A nice NetBeans plugin: http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3586 Provides refactoring support and more. So if you rename or move between packages any Wicket components including pages then the plugin renames and moves the HTML, too. I think that an IDE