Update of wicketstuff-tinymce's set of javascript

2009-07-27 Thread Michał Letyński
Hi. According to: http://wicketstuff.org/jira/browse/WCTINYMCE-6 Are somebody planning to do an update of javascripts ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

javascript effects before an ajax call

2009-07-27 Thread Antony Stubbs
Was this ever implemented / solved?: Nov 21, 2006; 07:09am Re: Using Javascript Effects Before An Ajax Call This is possible to do with wicket, however it would require minor enhancement of the ajax processing code. We already have infrastructure for asynchronously postponing processing

Is Accordion example at wicketstuff-core.jquery broken?

2009-07-27 Thread Petr Fejfar
Hi all, I run wicketstuff-core.jquery-examples (revision #4859 from Jul26, using mvn jetty:run) and it seems that accordion's example does not work in all tested browsers (Chrome,IE,FF,Opera): all items are shown as expanded and only observable activity is cursor change to pointer over title.

Re: Disabled Auto link bookmarkable page

2009-07-27 Thread Iain Reddick
I guess the view is that using a span gives safe markup in any situation. The disableLink() method can be overriden it if you need cleaner markup in a particular situation. Cassio wrote: But it would change only the em and /em default markups and not the span that replace the a tag at

Re: javascript effects before an ajax call

2009-07-27 Thread Martijn Dashorst
Not 100% sure if it's already done, but I've bugged Matej with this request for 1.5's new Ajax implementation. Martijn On Mon, Jul 27, 2009 at 9:40 AM, Antony Stubbsantony.stu...@gmail.com wrote: Was this ever implemented / solved?: Nov 21, 2006; 07:09am Re: Using Javascript Effects Before

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Olger Warnier
On 26 jul 2009, at 22:59, Alex Objelean wrote: If you think this would help, then you could remove InvalidUrlException and invalidate the jira RFE created by me... I don't think this would heart anyone... Intresting, I assume that it is of value to have this construction, could you give

Re: Questions about Wicket sessions

2009-07-27 Thread Erik van Oosten
Igor Vaynberg wrote: 2. If I start IE or FF in another window, visitor activities on the same Wicket app are considered in the same or different session? always a different sessions, browsers do not share sessions. I think it depends on what David meant by 'another window'. I assumed

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Erik van Oosten
Olger Warnier schreef: Intresting, I assume that it is of value to have this construction, could you give me the link to the RFE ? https://issues.apache.org/jira/browse/WICKET-2200 -- Erik van Oosten http://day-to-day-stuff.blogspot.com/

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Alex Objelean
This is the link of the RFE: https://issues.apache.org/jira/browse/WICKET-2307 Olger Warnier-2 wrote: On 26 jul 2009, at 22:59, Alex Objelean wrote: If you think this would help, then you could remove InvalidUrlException and invalidate the jira RFE created by me... I don't think this

Re: urls with localization

2009-07-27 Thread Jan Kriesten
Hi, How is it possible to use such urls in wicket? If users clicks that link then appropriate page with defined locale will be shown. www.domain.com/uk/home www.domain.com/nl/home see this thread:

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Erik van Oosten
Sorry Olger, that was a copy paste error. Please see Alex' e-mail. Regards, Erik. Erik van Oosten schreef: Olger Warnier schreef: Intresting, I assume that it is of value to have this construction, could you give me the link to the RFE ? https://issues.apache.org/jira/browse/WICKET-2200

Re: log4j question with wicket

2009-07-27 Thread Maarten Bosteels
On Fri, Jul 24, 2009 at 3:47 PM, pieter claassen pie...@claassen.co.ukwrote: I think that slf4j is not working in my setup and it might have nothing to do with Tomcat. As a matter of fact, I assume I don't even have to have log4j or slf4j working with tomcat, but that as long as my POM

executing wicketSubmitFormById

2009-07-27 Thread Gatos
Hello, Wicket lovers! I'm trying to execute wicketSubmitFormById from my custom function. Function itselft looks like this: function wicketSubmitFormById(formId, url, submitButton, successHandler, failureHandler, precondition, channel) I have examined the ajax submit button and it has the

Re: urls with localization

2009-07-27 Thread Alex Objelean
There is another thread where I have posted a link with implementation (which is currently in production)... so, you can just reuse it: http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330 Alex Objelean Gatos wrote:

Re: [OT] Continue to support Wicket 1.2 in WicketForge

2009-07-27 Thread Maarten Bosteels
We only use wicket 1.4.* Regards, Maarten On Sat, Jul 25, 2009 at 2:16 PM, Erik van Oosten e.vanoos...@grons.nlwrote: Mostly Wicket 1.4 at my company, just 1 Wicket 1.3 project left. Regards, Erik. Nick Heudecker wrote: Hi, For those of you that don't know, I maintain WicketForge,

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Olger Warnier
Sorry to keep on buggin over this, I try to understand what is the best option to plugin the unauthorized type of exceptions into the wicket framework. It seems (maybe because of lack of understanding) that the UnAuthorizedException handling can't work as it is now. Now to move on: I've

Re: [OT] Continue to support Wicket 1.2 in WicketForge

2009-07-27 Thread Linda van der Pal
I've only ever seen questions on this list about 1.3 and 1.4 (in the few months I've been on it, that is), so I'm guessing that if there are users of 1.2 they are either knowledgable enough not to have questions, or they're simply not on this list. Regards, Linda Maarten Bosteels wrote: We

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Alex Objelean
You can treat runtime exceptions by overriding newRequestCycle method of your Application class... @Override public Page onRuntimeException(final Page page, final RuntimeException e) { if (e instanceof InvalidUrlException) { //redirect to 404 } else { return

Re: Disabled Auto link bookmarkable page

2009-07-27 Thread Cassio
Ok, Thanks! 2009/7/27 Iain Reddick iain.redd...@beatsystems.com I guess the view is that using a span gives safe markup in any situation. The disableLink() method can be overriden it if you need cleaner markup in a particular situation. Cassio wrote: But it would change only the em and

Re: Questions about Wicket sessions

2009-07-27 Thread Martijn Dashorst
Not only multiple tabs, but also resources can access the session, and will attach and detach the session during request processing. So session.onAttach() can be called twice before session.onDetach() is called. Martijn On Sun, Jul 26, 2009 at 10:23 PM, Igor Vaynbergigor.vaynb...@gmail.com

AW: AW: SSL - ajax login

2009-07-27 Thread Arthur Leigh Allen
I'll try to find out more. Here is the output from wicket debug console: --- SSL-Link clicked: INFO: focus set on link34 INFO: Using XMLHttpRequest transport INFO: INFO: Initiating Ajax POST request on

Re: executing wicketSubmitFormById

2009-07-27 Thread Gatos
I have temporary solved problem calling onclick function: document.getElementById('ajaxSubmitButton').onclick() Does anyone know any better solution? On Mon, Jul 27, 2009 at 1:02 PM, Gatos ega...@gmail.com wrote: Hello, Wicket lovers! I'm trying to execute wicketSubmitFormById from my

AW: AW: SSL - ajax login

2009-07-27 Thread Arthur Leigh Allen
Hi again Igor, I did the following now: I called the website directly with https://localhost:8443/projectname and then I performed a login and it worked. Any idea? Thx Arthur Von: Igor Vaynberg igor.vaynb...@gmail.com An: users@wicket.apache.org Gesendet:

the effective ways of wicket models to access database

2009-07-27 Thread David Chang
Hello, I am reading Wicket in Action to learn Wicket. The example on Page 99 is about teaching detachable models. Here it goes: --- public class CheeseModel extends Model { private Long id; private transient Cheese cheese; public CheeseModel() { }

Re: the effective ways of wicket models to access database

2009-07-27 Thread Martijn Dashorst
You can use spring to inject the service, using @SpringBean and calling in the constructor InjectorHolder.getInjector().inject(this); (or use salve) Service locator is also a possibility. That is why we left it open :) Martijn On Mon, Jul 27, 2009 at 2:20 PM, David Changdavid_q_zh...@yahoo.com

AW: the effective ways of wicket models to access database

2009-07-27 Thread Arthur Leigh Allen
what about the LoadableDetachableModel?   IModel model = new LoadableDetachableModel() {     protected Object load() {     return dao.getX();     } }; Von: David Chang david_q_zh...@yahoo.com An: users@wicket.apache.org Gesendet: Montag, den 27. Juli 2009,

Re: the effective ways of wicket models to access database

2009-07-27 Thread Linda van der Pal
Well the reason the book leaves it open is that it really is up to you how you get your DAOs. That has nothing to do with Wicket anymore and depends wholly on your own preferences. Regards, Linda David Chang wrote: Hello, I am reading Wicket in Action to learn Wicket. The example on Page 99

Re: How to determine which behavior corresponds to the currently handled request target

2009-07-27 Thread Vladimir K
Could anyone shed light on that? -- View this message in context: http://www.nabble.com/How-to-determine-which-behavior-corresponds-to-the-currently-handled--request-target-tp24635282p24680015.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: urls with localization

2009-07-27 Thread Gatos
I'm using wicket 1.3.5 and RequestDecorator could not be found. On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean alex_objel...@yahoo.comwrote: There is another thread where I have posted a link with implementation (which is currently in production)... so, you can just reuse it:

Re: the effective ways of wicket models to access database

2009-07-27 Thread David Chang
Martin and all, thanks for your input. You can use spring to inject the service, using @SpringBean and calling in the constructor InjectorHolder.getInjector().inject(this); (or use salve) You mean add a member to this CheeseModel class and use @SpringBean to inject it? From reading this book,

wicket-archetype-quickstart is not enough

2009-07-27 Thread Paul Szulc
I recently did some ranting about wicket-archetype-quickstart on my blog: http://paulszulc.wordpress.com/2009/07/26/wicket-archetype-quickstart-is-not-enough. To be person who not only complains, but also acts, I decided to create my own, more enhanced wicket archetype, that would aim the issues

RE: Questions about Wicket sessions

2009-07-27 Thread Ames, Tim
Question #2 can be muddy depending on how the new window was launched. In my experience (Using IE 6) if you click on a link (i.e target=_blank) that launches an application and log in, then go back and click that link again to open a new window to the same application, you will be using the

Re: the effective ways of wicket models to access database

2009-07-27 Thread Maarten Bosteels
On Mon, Jul 27, 2009 at 2:58 PM, David Chang david_q_zh...@yahoo.comwrote: Martin and all, thanks for your input. You can use spring to inject the service, using @SpringBean and calling in the constructor InjectorHolder.getInjector().inject(this); (or use salve) You mean add a member to

Re: urls with localization

2009-07-27 Thread Jan Kriesten
I'm using wicket 1.3.5 and RequestDecorator could not be found. You have to read the posts more carefully - there were two references to pastebin! --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: use a lable in several palces in a page

2009-07-27 Thread Fernando Wermus
Instead of having one text field with the same text, you can have several text fields pointed to the same model attribute. On Fri, Jul 24, 2009 at 2:34 PM, Jeremy Thomerson jer...@wickettraining.com wrote: That comes from the component use checker - which is only enabled by default in

Tree and TabbedPanel components

2009-07-27 Thread Raj Kaushik
I am using a wicket tree component in the left column of a table and a panel (here in details are replaced as you select the nodes of the tree) in the right column. One of the displayed panels is the TabbedPanel. In one TabPanel, I have a DropDownChoice box that makes a Form visible on

Re: urls with localization

2009-07-27 Thread Alex Objelean
RequestDecorator is nothing but a decorator implementation of Request class... [CODE] public class RequestDecorator extends Request { /** * Decorated request. */ private final Request request; /** * Constructor. * * @param request to decorate. */ public

WicketSessionFilter and empty HttpSession

2009-07-27 Thread Altuğ B . Altıntaş
Hi all ; I am working on WicketSessionFilter for a while and i have problem about accessing Wicket Session in my Servlet. My question is : In WicketSessionFilter.java (core class in wicket.1.3.6.jar) at doFilter() method HttpSession httpSession = httpServletRequest.getSession(false); above

Re: log4j question with wicket

2009-07-27 Thread pieter claassen
I am sure something is broken in tomcat. This is not a dependency issue as the build runs file and manually logging info with log4j also works (see below). The problem seems when wicket logs using slf4j and this only goes to catalina.log (I cannot get this redirected to my own log file). If I

Re: WicketSessionFilter and empty HttpSession

2009-07-27 Thread Igor Vaynberg
that means session has not yet been created. you should use Session.exists() to test for this. -igor On Mon, Jul 27, 2009 at 7:38 AM, Altuğ B. Altıntaşalt...@gmail.com wrote: Hi all ; I am working on WicketSessionFilter for a while and i have problem about accessing Wicket Session in my

Re: Tree and TabbedPanel components

2009-07-27 Thread Igor Vaynberg
are you using ajax? cause this sounds very strange. -igor On Mon, Jul 27, 2009 at 7:02 AM, Raj Kaushikraj.kaus...@route1.com wrote: I am using a wicket tree component in the left column of a table and a panel (here in details are replaced as you select the nodes of the tree) in the right

Re: AW: SSL - ajax login

2009-07-27 Thread Igor Vaynberg
hmm, it might be like you said - ajax request with an untrusted cert might be failing. it looks from the console like wicket is trying to hit that url, what you can do is set a breakpoint in wicketfilter and see if that request ever reaches the server. -igor On Mon, Jul 27, 2009 at 4:56 AM,

DZone Refcard - Getting Started with Apache Wicket

2009-07-27 Thread Andrew Lombardi
DZone launched a Refcard about Apache Wicket here - http://dzone.it/yml A quick description from the website: Among the dizzying number of Web frameworks available today, Wicket’s simple and intuitive approach to Web development has led it to become a favorite among many Java developers.

Re: WicketSessionFilter and empty HttpSession

2009-07-27 Thread Altuğ B . Altıntaş
It is impossible, I can get Session Id but then when I call servlet ' s doPost() method , WicketSessionFilter can not find the HttpSession. I mean : HttpSession httpSession = httpServletRequest.getSession(false); // WicketSessionFilter.java in wicket.1.3.6.jar returns NULL. so that my servlet

Re: WicketSessionFilter and empty HttpSession

2009-07-27 Thread Igor Vaynberg
thats why i said use Session.exists() to check first, and only call Session.get() if Session.exists() returned true. -igor On Mon, Jul 27, 2009 at 9:45 AM, Altuğ B. Altıntaşalt...@gmail.com wrote: It is impossible, I can get Session Id but then when I call servlet ' s doPost() method ,

Re: How to determine which behavior corresponds to the currently handled request target

2009-07-27 Thread Igor Vaynberg
you can use AjaxRequestTarget.get() to see if an ajax request is being processed. -igor On Mon, Jul 27, 2009 at 5:41 AM, Vladimir Kkoval...@gmail.com wrote: Could anyone shed light on that? -- View this message in context:

Re: executing wicketSubmitFormById

2009-07-27 Thread Igor Vaynberg
not really sure what you are trying to do -igor On Mon, Jul 27, 2009 at 3:02 AM, Gatosega...@gmail.com wrote: Hello, Wicket lovers! I'm trying to execute wicketSubmitFormById from my custom function. Function itselft looks like this: function wicketSubmitFormById(formId, url, submitButton,

Problem with SortableDataProvider

2009-07-27 Thread Elad Katz
Hi there, this is my first post on this list, so please be gentle :) I have a wicket application that uses SortableDataProvider (org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider). The source compiles nicely on my machine but when i try to deploy it I get the following

Re: log4j question with wicket

2009-07-27 Thread Maarten Bosteels
a) Where does the log4j.properties file for your webapp reside ? b) Do you have a log4j.jar in WEB-INF/lib/ ? M. On Mon, Jul 27, 2009 at 4:45 PM, pieter claassen pieter.claas...@gmail.comwrote: I am sure something is broken in tomcat. This is not a dependency issue as the build runs file and

Re: Problem with SortableDataProvider

2009-07-27 Thread Igor Vaynberg
make sure you packaged wicket-extensions.jar in your ear or war -igor On Mon, Jul 27, 2009 at 10:18 AM, Elad Katze...@xtify.com wrote: Hi there, this is my first post on this list, so please be gentle :) I have a wicket application that uses SortableDataProvider

Re: WicketSessionFilter and empty HttpSession

2009-07-27 Thread Altuğ B . Altıntaş
OK. Problem occurs because of swfupload - swfupload.org/ swfupload is a flash based file upload tool and it doesn't send cookie information in the http header so i can't access Wicket Session. I am sending Session Id in URL when posting via swfupload; Is there any way to access Session object

Re: WicketSessionFilter and empty HttpSession

2009-07-27 Thread Igor Vaynberg
no, there is not afaik. what you need to do is pass it in the url just like the servlet container would /context;JSESSIONID=x?foo=bar -igor On Mon, Jul 27, 2009 at 11:09 AM, Altuğ B. Altıntaşalt...@gmail.com wrote: OK. Problem occurs because of swfupload - swfupload.org/ swfupload is a

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-27 Thread Olger Warnier
Well, I'll add that to the WaspWebApplication and check if that will do. Thanks. I'll check On 27 jul 2009, at 12:37, Alex Objelean wrote: You can treat runtime exceptions by overriding newRequestCycle method of your Application class... @Override public Page onRuntimeException(final

Re: WicketSessionFilter and empty HttpSession

2009-07-27 Thread Altuğ B . Altıntaş
Thanks Igor. 2009/7/27 Igor Vaynberg igor.vaynb...@gmail.com no, there is not afaik. what you need to do is pass it in the url just like the servlet container would /context;JSESSIONID=x?foo=bar -igor On Mon, Jul 27, 2009 at 11:09 AM, Altuğ B. Altıntaşalt...@gmail.com wrote: OK.

DropDownChoice with ID and Value

2009-07-27 Thread carlson weber filho - Master CIM Informá tica
Newbie question: I have a list of 3 options, let's supose it's 1=abc, 2=def, 3=ghi I will present to my user the select field with the choices abc, def and ghi. I want that my model updates with 1, 2 and 3. I did not find a way to achieve this (must me a simple thing). best regards,

Re: DropDownChoice with ID and Value

2009-07-27 Thread Scott Swank
Look at ChoiceRenderer. It's pretty easy to write one that takes a map in it's constructor if your needs are that simple. Scott 2009/7/27 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Newbie question: I have a list of 3 options, let's supose it's 1=abc, 2=def, 3=ghi

Re: DropDownChoice with ID and Value

2009-07-27 Thread carlson weber filho - Master CIM Informá tica
Will try it, thanks a lot Scott Swank escreveu: Look at ChoiceRenderer. It's pretty easy to write one that takes a map in it's constructor if your needs are that simple. Scott 2009/7/27 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Newbie question: I have a list of

Re: How to determine which behavior corresponds to the currently handled request target

2009-07-27 Thread Vladimir K
I'm trying to add AjaxFormComponentUpdating behavior to FormComponentPanel. The latter is inherintly not suited for Ajax requests. So I have to use some workarounds to update model of FormComponentPanel by ajax update on onblur js event on inner input, see code posted here. It works for now but

Re: DropDownChoice with ID and Value

2009-07-27 Thread Mathias Nilsson
class Choice{ private int id; private Stringvalue; // getters and setters } ListChoice choices = new LinkedListChoice(); Choice c = new Choice(); c.setId( 1 ); c.setValue( abc ); choices.add( c ); // add the other values // The choice with id 1 will be selected. DropDownChoice drop =

Re: How to determine which behavior corresponds to the currently handled request target

2009-07-27 Thread Igor Vaynberg
you can always override getcallbackurl() and append a marker parameter you can use to differentiate between the different modes. -igor On Mon, Jul 27, 2009 at 12:31 PM, Vladimir Kkoval...@gmail.com wrote: I'm trying to add AjaxFormComponentUpdating behavior to FormComponentPanel. The latter

Re: DropDownChoice with ID and Value

2009-07-27 Thread John Krasnay
This is an awkward way to do it, and still doesn't set the selected value back into his model. The golden rule of DropDownChoice is: objects in the list must be of the same type as the model object. If you want your model to be updated with an int, you have to give DDC a list of Integer. The

Re: Reg next line character in the passed String

2009-07-27 Thread Swapna Rachamalla
HI Igor I have tried with you suggestions..now it is displaying the whole content but it is not displaying in the next line wherever i need to display.. Here is the code in HTML: div class=marginLeft20 wicket:id=mfg a class=bottomCellLinks href=# wicket:id=mfgLink pre

Caching a resource on the browser side

2009-07-27 Thread ZedroS Schwart
hi We need to provide a flash application (www.amcharts.com if anyone is interested) with some content through some files. As the files are users specific (and determined with data from the session), we went for some page delivering the content like this : public AMChartDataProviderPage(final

will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-27 Thread Jason Wang
Hi all, Although I am using spring-wicket to prevent the whole spring being serialized, It still brothers me to see the references in the model object, for example: Instead of using this: public class MyViewObjectProvider extends SortableDataProvider{ @SpringBean(daoService)

Re: DropDownChoice with ID and Value

2009-07-27 Thread Mathias Nilsson
Wasn't this more awkward? -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24690478.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe,

WicketTester and org.slf4j.LoggerFactory and org.slf4j.Logger not serializable

2009-07-27 Thread David Brown
Hello, I have a Wicket 1.4rc4 application with a homegrown set of JDBC DAO classes: basic JDBC Connection and various methods for SQL queries and transactions. And Connection pooling is imported into the same JDBC DAO class and works well against the JUnit TestCases. The JUnit TestCases for the

Re: WicketTester and org.slf4j.LoggerFactory and org.slf4j.Logger not serializable

2009-07-27 Thread Jeremy Thomerson
Your logger instances should either be transient or static - so that they are not serialized. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Jul 27, 2009 at 8:01 PM, David Browndbr...@sexingtechnologies.com wrote: Hello, I have a Wicket 1.4rc4 application with a homegrown set of

Re: [OT] Continue to support Wicket 1.2 in WicketForge

2009-07-27 Thread Nick Heudecker
Thanks for the feedback. Looks like I can safely remove Wicket 1.2 support. On Mon, Jul 27, 2009 at 3:33 AM, Linda van der Pal lvd...@heritageagenturen.nl wrote: I've only ever seen questions on this list about 1.3 and 1.4 (in the few months I've been on it, that is), so I'm guessing that if