@SpringBean support for bean in child ApplicationContext

2016-02-24 Thread jchappelle
I'm working with the developer of PF4J(Plugin Framework for Java) to provide better plugin functionality for Wicket. There is already a pf4j-spring and a pf4j-wicket project to provide some basic integration. In order to allow the @SpringBean or @Inject annotations to have access to plugin beans in

Re: Conflicting warnings about location of wicket.properties in Wicket 7

2016-01-12 Thread jchappelle
Thank you Martin! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conflicting-warnings-about-location-of-wicket-properties-in-Wicket-7-tp4673269p4673277.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Conflicting warnings about location of wicket.properties in Wicket 7

2016-01-12 Thread jchappelle
I'm adding my own answer in hopes that it helps someone in the future. I figured it out by looking at the code for org.apache.wicket.Application. Here the developers mention that you should use the ServiceLoader class for Initializers. https://issues.apache.org/jira/browse/WICKET-5997. I noticed

Conflicting warnings about location of wicket.properties in Wicket 7

2016-01-12 Thread jchappelle
I have a dashboard library that we use at our company. It has an Initializer. The wicket.properties file is stored in the same package as the rest of the code, not in a META-INF folder. After upgrading to Wicket 7 I started noticing the following warning: //wicket.properties location is deprecated

Install/Setup page with Spring

2014-10-19 Thread jchappelle
This isn't a wicket problem but a general question to the community related to wicket and spring. We have a properties file that has configurations for 3 separate datasources and a couple of other things like license keys that are used by spring to configure the application and create the datasour

Re: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException when provider data for DataTable changes before paging (Wicket 6.x up to and including 6.15.0)

2014-06-11 Thread jchappelle
By the way that is exactly how we handle these errors as well. The only time I ever see ListenerInvocationNotAllowedExceptions are when the state of the database changes between clicks. With repainting the screen the users may click a link and then the link disappears which is weird. But that is wa

Re: Testing a DropDownChoice without a Form with wantOnSelectionChangedNotifications=true

2014-03-25 Thread jchappelle
Thanks that did it! Here is my code for anyone interested: DropDownChoice dropDownChoice = (DropDownChoice)tester.getComponentFromLastRenderedPage(pathToDropDownChoice); tester.getRequest().getPostParameters().setParameterValue(dropDownChoice.getInputName(), index);

Testing a DropDownChoice without a Form with wantOnSelectionChangedNotifications=true

2014-03-25 Thread jchappelle
I have a DropDownChoice that is not within a Form and I'm trying to write a test that selects an item in that DropDownChoice. I have been trying to use WicketTester.executeUrl and give it the url in the onchange attribute of the DropDownChoice but I'm not having any luck. Even if I do get that to w

Re: Pass exception to internal error page

2014-03-14 Thread jchappelle
Hi Martin, Thanks for the quick reply. We don't currently detect duplicate issues automatically. We do get several duplicates from users because they tend to click the same bad button over and over. I'm not too worried about attackers because you have to log in to get anywhere in our application.

Pass exception to internal error page

2014-03-13 Thread jchappelle
I am using wicket 6.14.0. I have a RequestCycleListener that listens for onException. I handle PageExpiredException, UnauthorizedInstantiationException(this is custom), and by default I redirect to a custom ErrorPage class that takes the Exception object in the constructor. It also contains a list

Re: The wicket way of getting application base URL

2014-03-13 Thread jchappelle
We just use a configuration property in our application that is stored in our "properties" database table. So our solution really doesn't involve wicket at all. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-wicket-way-of-getting-application-base-URL-tp4664925p466

Re: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
I tried using your code with wicket 6 and it wasn't working so I'm guessing you are using something earlier than wicket 6. ByteImageResource could not be resolved. I did make a change to the Article class and the TestView class that seemed to make it work. I changed Article to have a url String i

Re: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
I took your code and I could reproduce it but then I realized that my Article.getArticles() method was returning a new ArrayList every time it was called. I changed it to be static and it fixed it. I did omit the article.getSmallThumbImageResource() method though. Can you post the code for your Ar

Re: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
On your View page your ListView should have a LoadableDetachableModel passed to it instead of the Article.getArticles() list. In fact you could use the same model that you have feeding your DropDownChoice in your edit page. Just refactor that model out into a separate class and use in both cases.

Re: tinymce textarea in a modal window not letting to type

2014-02-07 Thread jchappelle
The original issue is pretty old but tinymce in a modal window worked in 1.5 and it is not working in 6.13.0. I guess I'm going to have to redesign my pages to not use the tinymce in a modal window. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-

Re: tinymce textarea in a modal window not letting to type

2014-02-05 Thread jchappelle
I am having this same issue in wicket 6.13.0. Any fixes as of yet? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664214.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-22 Thread jchappelle
I think I have it working like I want now. The IExceptionMapper that I had registered was causing an issue. I'm not sure why but when I used the RequestCycleListener.onException method it seems to send me PageExpiredExceptions when the session expires. This way I can redirect to the login page with

Re: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-22 Thread jchappelle
Martin, I noticed in one of your posts you point out the difference between session expiration and page expiration. I have been thinking they are the same thing when they are obviously not. I'm looking to redirect when the session expires. Although thinking through this I'm not sure there is a way

Re: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-22 Thread jchappelle
Martin, Yes our Application.init method is where we register a IAuthorizationStrategy and a IUnauthorizedComponentInstantiationListener. Do those override the setPageExpiredErrorPage() somehow? I'm trying to understand the interplay so that I can give our users a meaningful message when they click

Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-21 Thread jchappelle
I'm trying to set a custom PageExpiredErrorPage and I'm not able to do that. It appears that the framework is calling my onUnauthorizedInstantiation method in my implementation of IUnauthorizedComponentInstantiationListener instead. Here is how I am able to reproduce: 1. User logs in 2. Wait long

Re: ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-10 Thread jchappelle
Sometimes it's an AjaxLazyLoadPanel and sometimes it is an AjaxLink. This particular one is from an AjaxLazyLoadPanel. 2013-10-17 07:23:42,782 ERROR ajp-127.0.0.1-8009-6 com.redi.risk.ui.RiskExceptionMapper - Unexpected error occurred 2013-10-17 07:23:45,985 WARN ajp-127.0.0.1-8009-36 org.apache

ListenerInvocationNotAllowedException and EmptyRequestHandler

2014-01-10 Thread jchappelle
We are starting to get ListenerInvocationNotAllowedExceptions intermittently in production. What are some suggestions for handling this? My first thought is return an EmptyRequestHandler in my custom IExceptionMapper implementation. Is this a bad practice? Thanks for your time. -- View this messa

Re: TinyMce disappears with CryptoMapper

2014-01-08 Thread jchappelle
I have found a work around but this seems to be a bug in the wicketstuff-tinymce project. I looked in the wicket.contrib.tinymce.TinyMceInitializer class and the first line of the init method had this: application.getRootRequestMapperAsCompound().add(new TinyMceRequestMapper()); Th

Re: TinyMce disappears with CryptoMapper

2014-01-07 Thread jchappelle
Sorry I thought I posted it. Another thing I'll mention is when I turn on request logging I see these two lines logged out in the console when the problem occurs. It looks like the last couple of segments aren't being encrypted. http://localhost:8080/L7ExSNbPC4sb6TPJDblCAkN0baRJxw3qBR0wyJEtP3uLm

Re: TinyMce disappears with CryptoMapper

2014-01-07 Thread jchappelle
I have a quickstart now. The setResponsePage(new TinyMcePage()) seems to cause the issue. On the HomePage I have a tinymce and it displays fine. However if you click a link that does the setResponsePage and transition to a new page it does not display. Any ideas? -- View this message in context:

Re: TinyMce disappears with CryptoMapper

2014-01-06 Thread jchappelle
Yes. It is version 6.12.0 also. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TinyMce-disappears-with-CryptoMapper-tp4663499p4663504.html Sent from the Users forum mailing list archive at Nabble.com. --

TinyMce disappears with CryptoMapper

2014-01-06 Thread jchappelle
I have a weird problem in wicket 6.12.0 where the TinyMce component does not display. It will in certain cases and in some of those cases a browser refresh causes it to vanish. If I remove the CryptoMapper from my Application.init method then it works fine. I tried creating a quickstart but I was u

Re: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread jchappelle
That's a good point. We use those in a lot of our data tables that take a while to load. In fact I have created a base class that hides that and automatically wraps the DataTable in an AjaxLazyLoadPanel. I might make a custom TabbedPanel that wraps the panel in an AjaxLazyLoadPanel. -- View this

Re: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread jchappelle
I have found the issue and I can finally reproduce it! The issue is similar to what you described. We have a dashboard panel that has several tabs. Those tabs are ajax tabs. If a user clicks a tab and it takes a while to load then they click on a link on the current tab while waiting then you will

Re: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread jchappelle
Thanks for the replies. Marco there is a good possibility that is what we are facing too. I have just been guessing at the causes at this point and haven't considered the double click. I wonder if there is there a more global way to set that for all Ajax links instead of creating a custom AjaxLin

Detecting when nothing is added to AjaxRequestTarget

2014-01-04 Thread jchappelle
We get a lot of ComponentNotFoundExceptions in production and I have not been able to reproduce them. I've had discussions on here before about this and I think what is happening is that the user clicks something to change the state of the page, say it removes a button. If we don't add the panel to

Link to BreadCrumbPanel from javascript

2013-11-22 Thread jchappelle
I have written an integration between Google Visualization api and Wicket. I can click on a chart and receive an onSelection() event in java and it hands me information about what was clicked. This all works great. The problem is that often times I want to bread crumb to another panel instead of

Setting Session timezone without using getClientInfo()

2013-11-17 Thread jchappelle
I have been googling and searching this forum and haven't found an answer to my question so I'm hoping someone can help me. I have dates stored in a database that are stored as UTC. The application that stores the data has the -Duser.timezone=UTC property set. My users have a timezone that is set

Re: AutoCompleteTextField ajax update problem

2013-09-03 Thread jchappelle
Thanks for your response Sven. The AutoCompleteTextField was part of a bigger component that was a homegrown tagging component. I ended up re-implementing it using wicket-select2 and it works now, even better I might add! However, I did have a similar problem on another panel where loading the Auto

AutoCompleteTextField ajax update problem

2013-09-02 Thread jchappelle
I am in the process of migrating our app from wicket 1.5.10 to 6.10.0. I have a panel that uses an AutoCompleteTextField with an AjaxFormComponentUpdatingBehavior("onchange") behavior attached. It works fine the first time I type something and select it, but it does not fire the onchange event afte

Re: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Thanks for the answer Martin. Would you suggest I extend AbstractPageManager and apply that change for now? If so how to you install a custom page manager? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/NullPointerException-in-Page-constructor-tp4657502p4657525.ht

Re: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Sorry I left out HomePage. Here it is. public class HomePage extends MasterPage { @Override protected WebMarkupContainer makeBodyPanel(String id, PageParameters parms, Object[] objParms) { return new HomePanel(id); } } -- View this message in c

Re: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Here is MasterPage and below it is it's parent class BasePage. public abstract class MasterPage extends BasePage implements Protected, ProtectedComponent { private static final String bodyId = "bodyPanel"; private final BaseProtectedComponent protection;

Re: NullPointerException in Page constructor

2013-03-26 Thread jchappelle
Sure thing. Obviously the last two methods are getting in to my code but this will let you see how it gets there. Message: Can't instantiate page using constructor 'public com.mycompany.ui.HomePage()'. Might be it doesn't exist, may be it is not visible (public). Root cause: java.lang.NullPointer

NullPointerException in Page constructor

2013-03-25 Thread jchappelle
We have just upgraded from wicket 1.5.4 to 1.5.10 and we are getting a NullPointerException in the constructor of all the pages. It is happening because our AuthorizationStrategy.isActionAuthorized calls a method on the on our BasePage class. A NullPointerException occurrs in that method because th

RE: Suppress Ajax ComponentNotFoundException

2013-03-21 Thread jchappelle
Did anyone ever find a solution to this? We are having the same problem with ComponentNotFoundExceptions. Thanks, Josh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Suppress-Ajax-ComponentNotFoundException-tp4650209p4657428.html Sent from the Users forum mailing

Re: Parsing company id from url

2012-12-27 Thread jchappelle
Sebastian, That makes a lot of sense. I think I like that solution better because it seems simpler and more intuitive. I may write a ServletFilter that does the app lookup part and store it in the session. Thanks a lot! Josh -- View this message in context: http://apache-wicket.1842946.n4.na

Parsing company id from url

2012-12-23 Thread jchappelle
I'm hoping this will be an easy question to answer for the wicket gurus out there. I'm developing an app that will have pages specific to companies. They will be able to configure styles and logos and all the pages will be branded for their company. The root url looks like http://server/app. I'm g

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
I'll do the timer then. Thanks for your help Igor. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IExceptionMapper-to-notify-support-of-errors-tp4651251p4651256.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
Thanks for the quick response Igor. Are there any callback methods in Panel that will allow me to put my notification code and guarantee that it will be rendered to the user? Worst case I could add a timer behavior to the panel that makes a callback to the server and executes the notification, but

IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
I have written an IExceptionMapper that notifies our support team if an unexpected exception occurs. It will redirect the user to our ErrorPage and in the ErrorPanel.onBeforeRender I send a notification via email in a new Thread. This mostly works except we are getting several false positives. What

Re: Editing list in Dataview

2012-08-07 Thread jchappelle
You don't have to have Spring to do this one table, it just makes it easier to do many more like really fast in the future. It is more scalable. The Dataview and ListView components are just the UI component(the view). So your query won't have to change. The main thing that will change is how you

Re: MountedMapper and CryptoMapper

2012-08-07 Thread jchappelle
I think what I am going to do is have a mounted page called AbcMountedPage that throws a RestartResponseAtInterceptPageException so that it redirects to AbcPage. That way AbcPage will be handled by CryptoMapper. I've also noticed that there is a RedirectPage. I could extend that I suppose. It's no

Re: MountedMapper and CryptoMapper

2012-08-07 Thread jchappelle
Hi Jesse, Thanks for the response. I am using 1.5.4. And I don't have any other IRequestMappers installed. I will say that it doesn't affect other pages. So if I click a link that takes me to another page then it's fine. However, we use bread crumb pages quite a bit so if one page has encryptio

MountedMapper and CryptoMapper

2012-08-06 Thread jchappelle
Currently I am using CryptoMapper for my application. It is installed in the init method of my application like this: setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));. I need some of my pages to be bookmarkable with a url like /abc. I was able to accomplish this by doing this i

Re: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
rom the backend service or if you are > certain that the image url is context relative then pass it first to > org.apache.wicket.core.util.string.UrlUtils#rewriteToContextRelative() > before setting it in the model. > > On Thu, Jul 26, 2012 at 11:43 PM, jchappelle <[hidden > email]

Re: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
m> wrote: > That's hard to say from the snippet you've provided here, especially > since a few markup tags didn't make it through. > > Please create an issue and attach your quickstart to it. > > Sven > > On 07/26/2012 09:31 PM, jchappelle wrote: > > > I

Re: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
id-Mobiltelefon mit K-9 Mail > gesendet. > > > > jchappelle <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4650810&i=0>> > schrieb: > > I went back and edited my post. It might not have come through the mailing > list but if you look at it from the

Re: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
Issue created. https://issues.apache.org/jira/browse/WICKET-4678 https://issues.apache.org/jira/browse/WICKET-4678 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805p4650809.html Sent from the Users forum mailing list archive at

Re: Image urls with CryptoMapper

2012-07-26 Thread jchappelle
that your panel markup works? I can not see any wicket Tag > in it? > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail > gesendet. > > > > jchappelle <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4650807&i=0>> > sch

NonCachingImage and CryptoMapper do not work together

2012-07-06 Thread jchappelle
I have a NonCachingImage that gets loaded via ajax and I have noticed the the ajax debug window that the src attribute of the img is encrypted except for the antiCache url parameter at the end. The problem I am seeing is that the image is the browser red x instead of the image I am requesting. I'm

Re: Help I need to understand page locking

2012-04-18 Thread jchappelle
I am having this same issue. Have you figured out what the issue was? Thanks, Josh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Help-I-need-to-understand-page-locking-tp3543950p4568549.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: Streaming a zip file then going back to previous BreadCrumbPanel

2012-03-22 Thread jchappelle
Ahhh. I see what you are saying. I don't have a problem with the user seeing the previous panel and then seeing the download prompt. I think I can get the url for my IRequestHandler from the RequestCycle and then just generate the javascript that goes back to the server and initiates the download.

Re: Streaming a zip file then going back to previous BreadCrumbPanel

2012-03-21 Thread jchappelle
When you say "Can you initiate the download *after* your redirect?" I'm guessing you mean this: List participants = crumbModel.allBreadCrumbParticipants(); crumbModel.setActive(participants.get(participants.size() - 2)); getRequestCycle().scheduleRequestHandlerAfterCurrent(target); I have trie

Re: Adding a header contribution as the first in the head tag

2012-03-02 Thread jchappelle
Thanks! I was able to write an IResponseFilter and install it within my Application.init via the method getRequestCycleSettings().addResponseFilter(...). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-a-header-contribution-as-the-first-in-the-head-tag-tp44374

Re: StalePageException with CryptoMapper

2012-02-10 Thread jchappelle
Martin, Here is the jira bug: https://issues.apache.org/jira/browse/WICKET-4404 I created a quickstart and the results are slightly different but it still does not work. I don't get a StalePageException but the respond method of my behavior never gets called. Thanks for the help. Josh -- Vie

Re: StalePageException with CryptoMapper

2012-02-06 Thread jchappelle
Hi Martin, The reason I don't extend the AjaxEventBehavior is because I'm using the YUI javascript library to create my menu and my behavior is not being attached to a dom element. There are two ways they allow you to create the menu. One way is by having some markup that backs up the javascript o

Re: generateCallbackScript in Wicket 1.5.4 with CryptoMapper

2012-02-01 Thread jchappelle
By the way the ajax response above is not rendering what I put in there. It has a CDATA section and contains [../../../fyBfZ9p6trO9WTR7h0OMLw/fyBce/R7h42]. Josh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/generateCallbackScript-in-Wicket-1-5-4-with-CryptoMapper-tp

generateCallbackScript in Wicket 1.5.4 with CryptoMapper

2012-02-01 Thread jchappelle
I have a behavior that generates a url to a page. This behavior is attached to menu items. I have the behavior code below. After moving to Wicket 1.5.4 this is not working. I get a message in the "WICKET DEBUG" window like this "500 error had text: ". I will say that we are using the CryptoMapper

Re: Wicket 1.5.3 AutoCompleteTextField not working in ModalWindow

2012-01-20 Thread jchappelle
I found that there is a jira bug on the issue. Here is the link: https://issues.apache.org/jira/browse/WICKET-4294 https://issues.apache.org/jira/browse/WICKET-4294 If you put the following CSS in your style sheet for your AutoCompleteTextField it will fix it. /* * FIXES rendering issue of aut

Wicket 1.5.3 AutoCompleteTextField not working in ModalWindow

2012-01-20 Thread jchappelle
Hi, I'm upgrading to 1.5.3 and one of the issues that I can't figure out is why the AutoCompleteTextField has stopped working in ModalWindows. I've tested in IE9. Before upgrading this worked fine. I'm using the DefaultCssAutoCompleteTextField and I've looked at the style sheets from each version

YUI sub menu not showing until refresh

2011-12-14 Thread jchappelle
Hi, We have been using the wicket-yui menu for some time now and I recently updated our jar file to the 1.4.15 version because of a problem we were hitting with the 1.4.2 version. Well it seems that we have traded one problem for another. The 1.4.15 version will not show the drop down icons for th

Re: wicket + jasper reports

2011-10-18 Thread jchappelle
I believe the way I have done this in the past is by putting the report file at the root of the WEB-INF/classes folder when building the war file. I don't use maven so I can't advise you on where to place the files in your project before deployment. I hope this helps. Josh -- View this message i

Re: AutoCompleteTextField problems

2011-10-09 Thread jchappelle
One way to do it is to extend AutoCompleteTextField and override the getConverter() method. That will define to wicket how to convert to and from your domain object. Right now wicket is trying to convert your domain object to a String and that's why you are getting the casting problem. If you don'

Re: Using Wicket.Event.add in javascript

2011-10-04 Thread jchappelle
Thanks a lot! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-Wicket-Event-add-in-javascript-tp3870815p3870841.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe

Using Wicket.Event.add in javascript

2011-10-04 Thread jchappelle
Is the Wicket.Event.add method considered part of the public api for wicket? I have been writing more and more javascript lately and have found it useful but I can roll my own if needed. I just didn't know if these methods are subject to change without notice. Thanks, Josh -- View this message i

Detect dirty text field

2011-09-29 Thread jchappelle
Hi, I have a behavior that changes the background color of a TextField if the user presses any keys. It does this by changing the className in the dom. This works fine but the problem I have is that when I have a form that submits via Ajax I need to remove the added className. Currently if I overr

Show ModalWindow when a RuntimeException occurrs

2011-09-26 Thread jchappelle
Hi, Currently I have subclassed the RequestCycle and overridden the onRuntimeException method in it to return a custom error page for the user. It works very well but the only problem is that it takes the user away from the page they were on. I would like to be able to show a ModalWindow with a c

Re: YUI menu and development mode

2011-09-18 Thread jchappelle
Thanks a lot Ernesto! That pointed me in the right direction and I found the specific setting that was causing the problem. The following code is in my Application subclass's init method and it seems to fix the problem for me. getMarkupSettings().setStripWicketTags(true); Thanks, Josh -- View t

Re: YUI menu and development mode

2011-09-18 Thread jchappelle
I am having the same issue. Has anyone found a solution to this? I am using wicket version 1.4.15. Thanks, Josh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/YUI-menu-and-development-mode-tp1882092p3822359.html Sent from the Users forum mailing list archive at Nab

Re: Adding multiple ajax behaviour on same event

2009-04-02 Thread jchappelle
I am also having the same problem with CompositeBehavior. I am using wicket 1.3.4 and I copied the code from the following wiki: http://cwiki.apache.org/WICKET/composite-behaviors.html. I had to make some slight modifications. It looks like the RequestCycle.urlFor(...) method needs to know the i

Re: Switch tab only if user doesn't want to save changes.

2009-03-11 Thread jchappelle
Could you post how you are detecting unsaved changes? I am trying to implement something similar. Thanks, Josh Fabio Fioretti wrote: > > Thank you Maurice, > > what you suggested matched the way I was trying to solve the problem, > but I had to add a bit of client-side logic to decide whethe

YUI Menu shows incorrect selected item

2009-03-03 Thread jchappelle
I have a YUI menu on my base page and it works fine except for when the user clicks an item. The item indicates that it has been selected but when the page refreshes that selection is lost and it appears that another random item in the menu is selected instead. It indicates selection by blue highl

Re: YUI menu and wicker border problem

2009-03-03 Thread jchappelle
I am having a similar problem. I have a MasterPage class that is my common page. When I hard code the menu as a page that extends Webpage everything is fine but when I extend my MasterPage class it doesn't work. Could someone please help? Josh Michal Hybler wrote: > > Hi all! > I want to com

RE: TinyMCE in an Ajax loaded panel

2009-02-18 Thread jchappelle
I am trying to implement something similar. Would you mind telling me how you added the AjaxCallDecorator? You said add it to the Panel but I don't see any methods for that. Thanks, Josh Sverre Boschman wrote: > > For wicket 1.3.4/5 in combination with the latest 1.3 wicket-tinymce > snaphot

RadioGroup in a DataTable?

2009-02-13 Thread jchappelle
Is it possible to have a RadioGroup in a DataTable. I am trying to display a list of items from the database and I want the user to only select one of these items. There could be a lot of items so I am letting the user filter the values by using a FilterForm and a DataTable. Any ideas? Thanks,

Limited length html label

2009-01-01 Thread jchappelle
I have strings in a databse that are raw html text and it is being displayed on a blog page. Users are able to edit the text using the TinyMCE component and therefore add formatting to their blog entries. I am using the setEscapeModelStrings(false) to correctly display the html formatting. However

TreeTable text-align

2008-12-18 Thread jchappelle
I have a TreeTable that I would like to have some columns with a "text-align: right;" style. I have tried overriding the newCell method on the PropertyRenderableColumn and returning a Label with an AttributeModifier. That did not work nor did returning a custom Panel with an AttributeModifier. T

TreeTable text-align

2008-12-18 Thread jchappelle
I have a TreeTable that I would like to have some columns with a "text-align: right;" style. I have tried overriding the newCell method on the PropertyRenderableColumn and returning a Label with an AttributeModifier. That did not work nor did returning a custom Panel with an AttributeModifier. T

Dynamically update TreeTable model

2008-12-17 Thread jchappelle
I have a TreeTable and I have links within it. When a user clicks a link they are presented with a modal window with a FileUpload component in it. When they upload a new file and click close on the modal window, the TreeTable is not updated. I tried to use a LoadableDetachableModel that returns a

Re: TinyMCE init method rendering twice

2008-12-10 Thread jchappelle
r.append(",\n\ttheme_advanced_buttons2: \"\""); > buffer.append(",\n\ttheme_advanced_buttons3: \"\""); > return buffer.toString(); > } > > Then you can also remove most of your disableButton calls. Or use the > simple theme in

Re: TinyMCE init method rendering twice

2008-12-09 Thread jchappelle
ne I guess. > > You can remove the statusbar via > TinyMceSettings.setStatusbarLocation(null) (which by the way is the > default). See > http://wiki.moxiecode.com/index.php/TinyMCE:Configuration#Layout for a > comprehensive list and documentation on all available options. > &

TinyMCE init method rendering twice

2008-12-08 Thread jchappelle
I have a TinyMCE component in one of my pages and I am trying to remove the "Path:" toolbar at the bottom. I have noticed that the init method renders on my page twice. I only have one textarea on my page and I am adding a custom TinyMceBehavior to it. I am trying to disable the visualaid button(i

CheckGroup model only has one element

2008-12-05 Thread jchappelle
I have a CheckGroup inside of a WizardStep panel. In the constructor I am giving it a PropertyModel like this: final CheckGroup group = new CheckGroup("group", new PropertyModel(RegistrationWizard.this, "contacts")); My wizard class has a setContacts and a getContacts that take a Set and return

CheckGroupSelector not working at all in a Wizard

2008-12-05 Thread jchappelle
I have followed the example exactly(from what I can see) and when I click my "Select All" button nothing happens to the other buttons. Here is the code: This is in the constructor of a WizardStep: Form form = new Form("form") {

Where can I download wicket extensions?

2008-12-04 Thread jchappelle
The most logical place would be at http://www.wicketframework.org/wicket-extensions/. However the link to the sourceforge site from there gives me old code(1.2.7). I have a jar right now that is 1.3.2 and I'm not sure where it came from. I need the source code so I can customize the wizard compo

Re: WicketMockServlet-filestore question

2008-11-07 Thread jchappelle
you have to subclass your application, override newsessionstore > and return httpsessionstore for your tests. > > -igor > > On Fri, Nov 7, 2008 at 10:51 AM, jchappelle <[EMAIL PROTECTED]> wrote: >> >> I am using version 1.3.4. >> >> I am creating my Wicke

Re: WicketMockServlet-filestore question

2008-11-07 Thread jchappelle
s like dummywebapplication, which the tester uses by default, uses > HttpSessionStore which should not cause any directories to be created. > what wicket version are you using? > > -igor > > On Fri, Nov 7, 2008 at 9:04 AM, jchappelle <[EMAIL PROTECTED]> wrote: >> >> I

WicketMockServlet-filestore question

2008-11-07 Thread jchappelle
I have started unit testing my wicket pages using the WicketTester class. For now most of my tests just consist of something like this: WicketTester tester = getWicketTester(); tester.startPage(new AdminPage()); tester.assertRenderedPage(AdminPage.

QueryStringUrlCodingStrategy question

2008-11-03 Thread jchappelle
I have the following code: PageParameters parms = new PageParameters(); parms.put("answerId", Long.toString(answer.getEntityId())); add(new BookmarkablePageLink("edit", EditBlogEntryPage.class, parms)); In my Application init method I have:

Saving panel state

2008-10-29 Thread jchappelle
I have some reused panels that have a custom built CollapsiblePanelHeader component in them. I would like to save the boolean value of whether it is collapsed or not within the Session object. I had it working for a while by using a Map in the Session with the panel's classname as the key and the

Re: tinymce ajax submit

2008-10-16 Thread jchappelle
Has that code been posted for wicketstuff-1.3? I am using the old wicket-contrib-tinymce-1.3-SNAPSHOT.jar. Where would I find an updated snapshot? Thanks, Josh sander v F wrote: > > For a project I also needed a AjaxSubmitLink to submit the tinyMce data, > so > i've searched for a solution a

Re: stopping event bubbling from link to enclosing div

2008-10-16 Thread jchappelle
lDecorator(); } Thanks, Josh jchappelle wrote: > > I have an AjaxLink inside a div. There is an onclick event handler added > at the document level in the dom. If I am clicking the div that contains > my AjaxLink the event will fire. However, I don't want it to fire if I > click

stopping event bubbling from link to enclosing div

2008-10-16 Thread jchappelle
I have an AjaxLink inside a div. There is an onclick event handler added at the document level in the dom. If I am clicking the div that contains my AjaxLink the event will fire. However, I don't want it to fire if I click the link. It seems that there is a way to do this in javascript. I think

Re: form components within an AccordionPanel

2008-10-16 Thread jchappelle
wrote: > > Looking at YUI... They do actually link directly to the js I based the > accordion component on: > > http://developer.yahoo.com/yui/animation/ > > Did you try writing to the guy who did the js script? > > Nino Saturnino Martinez Vazquez Wael wrote: >>

  1   2   >