Re: TinyMCE Twitter Bootstrap Toggle

2013-07-24 Thread Alec Swan
I noticed that TinyMce plugin in WicketStuff 1.5.9.1 packages an old version of TinyMce. Does anybody know what is the latest TinyMce Wicket plugin release compatible with Wicket 1.5.9? Thanks, Alec On Tue, Jul 23, 2013 at 2:13 PM, Alec Swan alecs...@gmail.com wrote: I am on Wicket 1.5.9

Re: TinyMCE Twitter Bootstrap Toggle

2013-07-23 Thread Alec Swan
I am on Wicket 1.5.9 using WicketStuff 1.5.9.1. I ended up overriding TinyMceBehavior#beforeRender in order to inject class=collapse on the TinyMCE wrapper DIV. Can you think of a cleaner solution? @Override public void beforeRender(Component component) {

Re: TinyMCE Twitter Bootstrap Toggle

2013-07-22 Thread Alec Swan
Andrea, thank you for a good pointer. The thing I am struggling with is adding class=collapse to the xxx_wrapper_component which seems to be created by TinyMCE JavaScript after my Wicket code can add AttributeModifier or even invoke $('# + getAjaxRegionMarkupId() + ').css('class', 'collapse');.

TinyMCE Twitter Bootstrap Toggle

2013-07-21 Thread Alec Swan
Hello, I have a bootstrap toggle button which the user can use to open and close TinyMCE editor. When the page is rendered I would like the TinyMCE editor to be closed and when user clicks on the toggle button - open. Note that twitter bootstrap button needs to know

Re: retriving the actual page instance

2012-11-16 Thread Alec Swan
I used this approach https://cwiki.apache.org/WICKET/requestcycle-in-wicket-15.html to retrieve the last page instance from request cycle. 1. Register handler in your Application: getRequestCycleListeners().add(new PageRequestHandlerTracker()); 2. Retrieve page as follows: IPageRequestHandler

Re: Relative Path and Resource loading in wicket

2012-11-16 Thread Alec Swan
I had a similar problem and considered Martin's approach, but ended up creating a div wicket:id=myVar class=myVarvar value/div on my page and accessed it from JS file using $(div.myVar).text() or something like that. The advantage of div approach is that you can test it statically without

Re: Wicket 1.5 migration: AbstractCrypt#decryptByteArray(..) throws IllegalBlockSizeException

2012-11-15 Thread Alec Swan
Does anybody have thoughts on this? Was this broken on 1.5? On Sun, Nov 11, 2012 at 4:39 PM, Alec Swan alecs...@gmail.com wrote: what is the salt that you use? because we use the session specific key, but that can also already be used like that in 1.4 is it maybe a different default so

Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-13 Thread Alec Swan
at 8:51 AM, Martin Grigorov mgrigo...@apache.org wrote: This is the reason why Wicket works with relative urls. The absolute ones do not work well behind proxies. On Mon, Nov 12, 2012 at 5:46 PM, Alec Swan alecs...@gmail.com wrote: It turned out that RequestCycle.get().getUrlRenderer

Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-12 Thread Alec Swan
It turned out that RequestCycle.get().getUrlRenderer().renderFullUrl(..) always returns URL starting with http://localhost:8080 even when I deploy my on the DEV server. Has anyone experienced this issue? Thanks, Alec On Tue, Nov 6, 2012 at 9:31 AM, Alec Swan alecs...@gmail.com wrote: To solve

Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-12 Thread Alec Swan
12, 2012 at 8:46 AM, Alec Swan alecs...@gmail.com wrote: It turned out that RequestCycle.get().getUrlRenderer().renderFullUrl(..) always returns URL starting with http://localhost:8080 even when I deploy my on the DEV server. Has anyone experienced this issue? Thanks, Alec On Tue, Nov 6

Re: Wicket 1.5 migration: AbstractCrypt#decryptByteArray(..) throws IllegalBlockSizeException

2012-11-11 Thread Alec Swan
, Alec Swan wrote: Hello, After we migrated from 1.4.x to 1.5.x my CachingSunJceCryptFactory.newCrypt().decryptUrlSafe(encodedStr) started returning null. In 1.4.x the same encodedStr parameter was decrypted without problems. We did not change the Java version and are still on 1.6.20. I

Re: Wicket 1.5 migration: AbstractCrypt#decryptByteArray(..) throws IllegalBlockSizeException

2012-11-11 Thread Alec Swan
what is the salt that you use? because we use the session specific key, but that can also already be used like that in 1.4 is it maybe a different default so that you now use a session key as salt? We did not change the encryptionKey in cryptFactory = new

Wicket 1.5 migration: AbstractCrypt#decryptByteArray(..) throws IllegalBlockSizeException

2012-11-10 Thread Alec Swan
Hello, After we migrated from 1.4.x to 1.5.x my CachingSunJceCryptFactory.newCrypt().decryptUrlSafe(encodedStr) started returning null. In 1.4.x the same encodedStr parameter was decrypted without problems. We did not change the Java version and are still on 1.6.20. I debugged into

Re: Links in modal dialog are relative to dialog URL and not base page URL

2012-11-06 Thread Alec Swan
())); } Please let me know if there is a problem with this approach. Thanks, Alec On Mon, Nov 5, 2012 at 2:09 PM, Alec Swan alecs...@gmail.com wrote: Hello, I have a base page mounted at /app/root URL. This page loads and pops up a modal dialog (DIV) which content is loaded from

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-05 Thread Alec Swan
Is anybody merging this in 1.5.9? On Fri, Nov 2, 2012 at 11:37 PM, miteshaegis mitesh.ae...@gmail.com wrote: Hi, You can use set of div class and set css on div class easily. Thanks! - JBoss Developers || JBPM Workflow -- View this message in context:

Links in modal dialog are relative to dialog URL and not base page URL

2012-11-05 Thread Alec Swan
Hello, I have a base page mounted at /app/root URL. This page loads and pops up a modal dialog (DIV) which content is loaded from /app/root/dialog URL. All links on the dialog are relative to the dialog URL and not base page URL. However, the browser resolves relative links against base page URL

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-02 Thread Alec Swan
equivalent as we spoke before, so that's fine for me. Well done! Thanks again best regards, Sebastien. On Thu, Nov 1, 2012 at 11:57 PM, Alec Swan alecs...@gmail.com wrote: @Sebastien The scenario you described it exactly the scenario I used to start this thread. Please read my original post

HTML storyboard and Maybe there are several Ajax event behaviors warning

2012-11-02 Thread Alec Swan
Hello, Our designer put together an HTML storyboard where navigation is implemented with button onclick=window.location='NextPage.html'. However, when we add a Wicket behavior to this button we start receiving the following warning: WARN [http-bio-8080-exec-10]

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Alec Swan
(*) hazardous translation from French... On Wed, Oct 31, 2012 at 11:37 PM, Alec Swan alecs...@gmail.com wrote: So, the patch can be applied to 1.5.8 and will replace label.add(levelModifier); with label.add(new AttributeAppender(class, replacementModel)) You may want to add AttributeAppender

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Alec Swan
... Thanks in advance best regards, Sebastien (*) hazardous translation from French... On Wed, Oct 31, 2012 at 11:37 PM, Alec Swan alecs...@gmail.com wrote: So, the patch can be applied to 1.5.8 and will replace label.add(levelModifier); with label.add(new AttributeAppender(class

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-31 Thread Alec Swan
I suggest that instead of overriding CSS class on the span you APPEND it to existing CSS classes. This will allow the user to specify their own span CSS class in newMessageDisplayComponent(..) AND will support backward compatibility. Sounds like a win-win to me. Thoughts? Thanks, Alec On Wed,

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-31 Thread Alec Swan
So, the patch can be applied to 1.5.8 and will replace label.add(levelModifier); with label.add(new AttributeAppender(class, replacementModel)) You may want to add AttributeAppender to li as well. Alec On Wed, Oct 31, 2012 at 4:33 PM, Alec Swan alecs...@gmail.com wrote: I suggest that instead

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-23 Thread Alec Swan
Technically it should be getListItemCSS, not getListCSS. Or maybe have all three getListCSS, getListItemCSS and getLabelCSS On Mon, Oct 22, 2012 at 12:46 PM, Sebastien seb...@gmail.com wrote: Done, https://issues.apache.org/jira/browse/WICKET-4831 Please let me know if your encounter any issue

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-23 Thread Alec Swan
list but I don't remember who... So there is a credit for someone somewhere :) On Tue, Oct 23, 2012 at 9:15 PM, Alec Swan alecs...@gmail.com wrote: Technically it should be getListItemCSS, not getListCSS. Or maybe have all three getListCSS, getListItemCSS and getLabelCSS On Mon, Oct 22, 2012

Custom CSS for Feedback message is broken in 1.5

2012-10-20 Thread Alec Swan
Hello, This Wiki page explains how to add custom CSS styles to Feedback messages in 1.4+: https://cwiki.apache.org/WICKET/css-enabled-feedback-panel.html Basically, it suggests that you override FeedbackPanel#newMessageDisplayComponent(..) method and add the custom CSS class to the component

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-20 Thread Alec Swan
Note that I need to set CSS styles on the label (span) and not the list item (li) and hence cannot override getCSSClass() because it is applied to both. On Sat, Oct 20, 2012 at 2:58 PM, Alec Swan alecs...@gmail.com wrote: Hello, This Wiki page explains how to add custom CSS styles to Feedback

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-10-01 Thread Alec Swan
was /param1Name/param1Value/param2Name/param2Value. Was there a reason why it was changed to encoding parameters in the URL query string? Thanks, Alec On Mon, Oct 1, 2012 at 2:06 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Sun, Sep 30, 2012 at 7:42 PM, Alec Swan alecs...@gmail.com wrote

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-30 Thread Alec Swan
: It seems you actually used *Indexed*HybridUrlCodingStrategy. To have this you need UrlPathPageParametersEncoder. See MountedMapper constructors. On Sat, Sep 29, 2012 at 7:51 PM, Alec Swan alecs...@gmail.com wrote: Thanks, but I mentioned above that we have a lot of pages mounted which take

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-30 Thread Alec Swan
I am wondering why default URL encoding strategy was changed from indexed to query parameters? What was the reasoning behind this decision? Thanks, Alec On Sun, Sep 30, 2012 at 10:42 AM, Alec Swan alecs...@gmail.com wrote: Perfect, thanks! Might be a good idea to put this on https

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-29 Thread Alec Swan
. WebApplication#mountPage() uses it. On Sat, Sep 29, 2012 at 1:51 AM, Alec Swan alecs...@gmail.com wrote: I'd like to clarify that we have a lot of pages mounted with HybridUrlCodingStrategy, so I need to implement it in 1.5 without knowing the names of parameters for each page. Thanks On Fri, Sep

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-29 Thread Alec Swan
Thanks, but I mentioned above that we have a lot of pages mounted which take different parameters. So I need to accomplish this without specifying parameter names explicitly. On Sat, Sep 29, 2012 at 10:44 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Sat, 29 Sep 2012 09:54:27 -0600 Alec

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-28 Thread Alec Swan
I'd like to clarify that we have a lot of pages mounted with HybridUrlCodingStrategy, so I need to implement it in 1.5 without knowing the names of parameters for each page. Thanks On Fri, Sep 28, 2012 at 4:47 PM, Alec Swan alecs...@gmail.com wrote: Hello, What's the best way to implement

Re: Exception handling and testing

2012-09-27 Thread Alec Swan
? Thanks, Ale On Thu, Sep 27, 2012 at 1:18 AM, Martin Grigorov mgrigo...@apache.org wrote: Make the TabbedPanel stateless by using BookmarkablePageLink. P.S. Please start a new thread when you have new questions. On Wed, Sep 26, 2012 at 10:56 PM, Alec Swan alecs...@gmail.com wrote: Thanks

Re: Exception handling and testing

2012-09-26 Thread Alec Swan
to the default tab after he logs in on HomePage. Thoughts? Thanks, Alec On Wed, Sep 26, 2012 at 12:52 AM, Martin Grigorov mgrigo...@apache.org wrote: You have to return a IRequestHandler. See RenderPageRequestHandler On Wed, Sep 26, 2012 at 1:45 AM, Alec Swan alecs...@gmail.com wrote: I am

Re: Exception handling and testing

2012-09-25 Thread Alec Swan
) { throw new RestartResponseAtInterceptPageException(annotation.homePage()); } } } return super.onException(cycle, ex); } } Thanks, Alec On Fri, Jun 8, 2012 at 2:54 PM, Alec Swan alecs...@gmail.com wrote: I also use this approach

Re: Wicket 1.5 migration questions

2012-09-13 Thread Alec Swan
Martin, I tried and came back :) Could you clarify how you suggest response.renderCSSReference to pass parameters which are then retrieved in ResourceReference#getName() On Wed, Sep 12, 2012 at 4:26 PM, Alec Swan alecs...@gmail.com wrote: Maybe you could simply use response.renderCSSReference

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
either from scratch or extending an existing one :) http://wicket.apache.org/apidocs/1.5/org/apache/wicket/request/resource/IRes ource.html ~ Thank you, Paul Bors -Original Message- From: Alec Swan [mailto:alecs...@gmail.com] Sent: Tuesday, September 11, 2012 11:42 AM To: users

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
at 5:43 PM, Alec Swan alecs...@gmail.com wrote: Paul, I looked at IResource and ResourceReference classes but still can't figure out how to implement an alternative to putClassAlias. In 1.4 you could do putClassAlias(GlobalResourceScope.class, global) and after that all new ResourceReference

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
PackageResourceReference IS-A ResourceReference and neither has a no-arg constructor. My point exactly. That's why I can't just do mountResource(/global, new MyRR()) as Martin suggested. To see examples of how to implement your own PackageResourceReference take a look at its children such as

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
...@christophleiter.com wrote: On 12.09.2012 21:38, Alec Swan wrote: PackageResourceReference IS-A ResourceReference and neither has a no-arg constructor. My point exactly. That's why I can't just do mountResource(/global, new MyRR()) as Martin suggested. My quick try: public class

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
Maybe you could simply use response.renderCSSReference(getRequest().getContextPath() + /global/css/styles.css); or is there a problem with it? That didn't fix request.getUrl().toString() returning an empty string when called from ResourceReference.getExtension()

Re: Wicket 1.5 migration questions

2012-09-11 Thread Alec Swan
I take it by global you mean http://myServer:###/myWebApp/global? Yes. If so, why don't you just add the folder to the root of your war? Good point, I could do that, but I'd rather keep my current folder structure. So, does it mean that putClassAlias functionality is gone in 1.5? Thanks,

Re: Wicket 1.5 migration questions

2012-09-10 Thread Alec Swan
Any update on this? How can I mount CSS and JS resources under /global/ without having to do a mountResource() for every such file? Thanks, Alec On Thu, Sep 6, 2012 at 12:07 PM, Alec Swan alecs...@gmail.com wrote: But I want JavaScript files to be compresses by JavaScriptResourceReference

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
to it: if (toType.isInstance(value)) { result = toType.cast(value); } Please open an issue in Jira. Sven On 09/08/2012 09:11 PM, Alec Swan wrote: An easy fix for this bug is to change the first line

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
for creating the issue. Sven On 09/09/2012 09:22 AM, Alec Swan wrote: Here is a new JIRA https://issues.apache.org/jira/browse/WICKET-4755 I added the following code in my application class to implement what you recommended as a fix. Maybe this will help other people who run into this problem

Re: Setup Wicket in Eclipse without need to re-initialize the whole servlet container

2012-09-09 Thread Alec Swan
I had pretty good luck with JRebel. In addition I use RemoteSyncronizer IntelliJ plugin to automatically copy HTML/JS/CSS files from my source tree to webapp deployment dir. Alec On Sun, Sep 9, 2012 at 11:36 AM, Michael Mosmann mich...@mosmann.de wrote: I have used run-jetty-run as eclipse

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
Perfect, thanks for your help! On Sun, Sep 9, 2012 at 3:13 PM, Sven Meier s...@meiers.net wrote: Sorry, my statement was wrong: If you register your converter for Object and Serializable, everything should be fine. Sven On 09/09/2012 07:21 PM, Alec Swan wrote: In which case can it cause

Re: Issues with default type conversion in 1.5

2012-09-08 Thread Alec Swan
An easy fix for this bug is to change the first line in org.apache.wicket.util.lang.Objects#convertValue from Object result = null; to Object result = value; Thanks, Alec On Sat, Sep 8, 2012 at 1:02 PM, Alec Swan alecs...@gmail.com wrote: I attached a quickstart with a test in TestHomePage

Re: Migration to 1.5: 'X' is not a valid Serializable

2012-09-07 Thread Alec Swan
// Via generics Paul, I am not seeing this comment in the actual code. I am assuming that you added this comment to clarify something for me, but I am not getting it. Thus if you use generics your problem would most likely go away Are you saying that Wicket has a different code path for models

Issues with default type conversion in 1.5

2012-09-07 Thread Alec Swan
Hello, I decided to extract this issue into a separate thread. I keep running into issues with default type converters in 1.5. I also think I found a bug in org.apache.wicket.util.lang.Objects#convertValue. A call to convertValue(nonNullNonArrayValue, Object.class) will always return null if

Re: Migration to 1.5: 'X' is not a valid Serializable

2012-09-07 Thread Alec Swan
As you must have figured it out by now if you do not specify a type for the form field then Wicket converts the input via FormComponet#convertValue(getInputAsArray()) which is what your code hits and the type passed to it is not Object.class but rather String[]. I just opened a new thread

Re: Wicket 1.5 migration questions

2012-09-06 Thread Alec Swan
http://../global/js/common.js and http://../global/js/styles.css? Thanks, Alec On Tue, Sep 4, 2012 at 5:10 PM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Sep 4, 2012 at 11:17 PM, Alec Swan alecs...@gmail.com wrote: Well, mountPackage did not work for me either. Basically, what I want

Re: Wicket 1.5 migration questions

2012-09-06 Thread Alec Swan
its #getName() to read the name from the request path/parameters mountResource(/global, new MyPRR()) On Thu, Sep 6, 2012 at 7:57 PM, Alec Swan alecs...@gmail.com wrote: In 1.4 I had the following classes in com.myco.app.res package: GlobalJavascriptResourceReference extends

Re: Migration to 1.5: 'X' is not a valid Serializable

2012-09-06 Thread Alec Swan
I just ran into another problem with type resolution. In fact, it looks like a bug in org.apache.wicket.util.lang.Objects#convertValue. The call convertValue(nonNullNonArrayValue, Object.class) will always return null if nonNullNonArrayValue is a value that is not null and not an array! Is that a

Re: Migration to 1.5: 'X' is not a valid Serializable

2012-09-06 Thread Alec Swan
in 1.5.9? Alec On Thu, Sep 6, 2012 at 2:41 PM, Alec Swan alecs...@gmail.com wrote: I just ran into another problem with type resolution. In fact, it looks like a bug in org.apache.wicket.util.lang.Objects#convertValue. The call convertValue(nonNullNonArrayValue, Object.class) will always return null

Re: Migration to 1.5: 'X' is not a valid Serializable

2012-09-06 Thread Alec Swan
Besides calling #setType() do you actually use generics with your models and components? Sorry, don't quite understand the question. I am not calling setType() hence the problems with type detection in Wicket. Why is it important if I use generics if they are only compile-time syntactic sugar?

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
://cwiki.apache.org/WICKET/migration-to-wicket-15.html -Tom On 04.09.2012, at 02:36, Alec Swan alecs...@gmail.com wrote: Hello, I finally decided to bite the bullet and migrate to Wicket 1.5. It turned out a lot harder than I expected. Here are some of the issues I ran into: * How

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
of GlobalResourceScope.class in the URLs. How do I do this in 1.5? Thanks, Alec On Tue, Sep 4, 2012 at 9:07 AM, Thomas Götz t...@decoded.de wrote: Please see my inline comments. Cheers, -Tom On 04.09.2012, at 02:36, Alec Swan alecs...@gmail.com wrote: * How to implement HybridUrlCodingStrategy

Re: Back button doesn't work with AjaxTabbedPanel

2012-09-04 Thread Alec Swan
if you really want to go to this extreme, but feel free to do so if you must. ~ Thank you, Paul Bors -Original Message- From: Alec Swan [mailto:alecs...@gmail.com] Sent: Saturday, September 01, 2012 12:05 PM To: users@wicket.apache.org Subject: Re: Back button doesn't work

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
/2011/07/wicket-1-5-mounting-resources/ Cheers, -Tom On 04.09.2012, at 17:33, Alec Swan alecs...@gmail.com wrote: I saw the link explaining how to migrate SharedResources#putClassAlias(GlobalResourceScope.class, global) before but was found it confusing because global and images aliases

Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
Hello, Now that most of my production code is migrated to 1.5 I started migrating my tests. The first problem I ran into is with BaseWicketTester#startPanel and BaseWicketTester#getComponentFromLastRenderedPage. In 1.4 I could use startPanel and then find components with

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
if there is a place for improvement it is too late now. There are many apps in production with 1.5 at that time and this change will break them. You can extend WicketTester and override the problematic method to behave as you need it. On Tue, Sep 4, 2012 at 8:11 PM, Alec Swan alecs...@gmail.com wrote

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
. but, we use selenium to test ui instead of wicket tester :) -igor On Tue, Sep 4, 2012 at 12:07 PM, Alec Swan alecs...@gmail.com wrote: This makes me wonder how many big apps actually migrated from 1.4 to 1.5 (instead of starting from scratch) if this problem has never been discovered. I also

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
. In 1.4 it was simple with putClassAlias(com.myco.app.res.GlobalResourceScope, global). How can I do this with 1.5? Thanks, Alec On Tue, Sep 4, 2012 at 10:59 AM, Alec Swan alecs...@gmail.com wrote: Tom, I have com.myco.app.res.GlobalResourceScope.class and events.js in the same package. So

Wicket 1.5 migration questions

2012-09-03 Thread Alec Swan
Hello, I finally decided to bite the bullet and migrate to Wicket 1.5. It turned out a lot harder than I expected. Here are some of the issues I ran into: * How to implement HybridUrlCodingStrategy in 1.5? * I saw a ticket related to putClassAlias, but I couldn't figure out how to port this one

Re: Back button doesn't work with AjaxTabbedPanel

2012-09-01 Thread Alec Swan
How do I know when the back button is pressed? On Fri, Aug 31, 2012 at 6:48 PM, Paul Bors p...@bors.ws wrote: Can't you just keep a reference to the backPage and then simply call setResponsePage(backPage)? ~ Thank you, Paul Bors -Original Message- From: Alec Swan [mailto:alecs

Re: Back button doesn't work with AjaxTabbedPanel

2012-08-31 Thread Alec Swan
So, is there an easy way to support Back button with AjaxTabbedPanel? On Thu, Aug 30, 2012 at 1:04 PM, Alec Swan alecs...@gmail.com wrote: Well, I have other ajax interactions and I thought if I could fix Back button for AjaxTabbedPanel I'd be able to fix it for other ajax interactions

Back button doesn't work with AjaxTabbedPanel

2012-08-30 Thread Alec Swan
Hello, I am using AjaxTabbedPanel to implement an ajax-swappable menu on the Main page which is mounted with mountBookmarkablePage. For some reason the Back button in the browser does not take the user to the previously selected tab. It takes them out to the page which was shown before user saw

Re: Back button doesn't work with AjaxTabbedPanel

2012-08-30 Thread Alec Swan
/Page4AjaxBackButton.java On Thu, Aug 30, 2012 at 12:36 PM, Sven Meier s...@meiers.net wrote: Swapping components via Ajax will not change the browser's page history. Thus the Back button works as expected - it takes you to the previous url. Sven On 08/30/2012 07:55 PM, Alec Swan wrote: Hello, I am using

Re: Back button doesn't work with AjaxTabbedPanel

2012-08-30 Thread Alec Swan
/2012 08:45 PM, Alec Swan wrote: What can I do to allow user to go back to the previously selected tab with a Back button? I tried the following approach but it doesn't seem to work: http://grepcode.com/file/repo1.maven.org/maven2/org.wicketstuff/jquery-examples/1.4.7/org/wicketstuff/jquery

Re: Best practices for passing configurations, such as Facebook app_id, to JavaScript

2012-08-29 Thread Alec Swan
August 2012 15:33, Alec Swan alecs...@gmail.com wrote: Hello, We deploy our web app on different domains which means that JavaScript Facebook integration needs to use different app_id values. I am planning to store these values in a configuration file and wonder how to expose them

Re: ajax and browser back button in wicket 6

2012-08-29 Thread Alec Swan
I found the following class which adds back button support to AJAX components: http://grepcode.com/file/repo1.maven.org/maven2/org.wicketstuff/jquery-examples/1.4.7/org/wicketstuff/jquery/ajaxbackbutton/Page4AjaxBackButton.java Is this the recommended solution for 1.4.x? What are other

Best practices for passing configurations, such as Facebook app_id, to JavaScript

2012-08-27 Thread Alec Swan
Hello, We deploy our web app on different domains which means that JavaScript Facebook integration needs to use different app_id values. I am planning to store these values in a configuration file and wonder how to expose them to JavaScript. I would also like to write a unit test that verifies

Wicket Ant/Ivy template project

2012-08-23 Thread Alec Swan
Hello, I noticed a couple of Maven projects that can be used as templates for creating Wicket/Spring/Hibernate webapps. I was surprised that I wasn't able to find an Ant/Ivy project for this tech stack given that Wicket, Ant and Ivy are all Apache projects. Does anybody have an Ant/Ivy template

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
Thoughts, anybody? On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote: The main problem I am facing is that in Wicket 1.4.x I can't figure out how to access ART from the component that was not added to this ART, e.g. during ajax form submission. I tried to add

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
AjaxRequestTarget.get() Tibor On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote: Thoughts, anybody? On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote: The main problem I am facing is that in Wicket 1.4.x I can't figure out how to access ART from the component

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
getRequestCycleListeners() which adds the feedback panel in onRequestHandlerResolved? In that method, check if the handler type is an AjaxRequestTarget and add your feedback panel to it. On 20/08/2012 11:45 AM, Alec Swan wrote: It seems that I cannot access ART from the component

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
#newAjaxRequestTarget() and add it for each and every ART. On Mon, Aug 20, 2012 at 11:56 PM, Alec Swan alecs...@gmail.com wrote: IRequestCycleListener was added in 1.5.x. Is there anything else I can do in 1.4.x? On Mon, Aug 20, 2012 at 12:15 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote

Re: Add page feedback to every AjaxRequestTarget

2012-08-19 Thread Alec Swan
functionality and basically broke them all. Now I am thinking about adding an onclick behavior which will add my component to ART to every AjaxSubmitLink child of the page. But this seems to be pretty ugly. Thoughts? Thanks, Ale On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan alecs...@gmail.com wrote: Hello

Re: Add page feedback to every AjaxRequestTarget

2012-08-17 Thread Alec Swan
Hello, Thank you for the link. I used your code to register an ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is created, but it does not get called when the form is submitted and hence it never adds the FeedbackPanel to ART of form submission. Where should I add this listener?

Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Alec Swan
Hello, I have a FeedbackPanel on a page. The page can contain different kinds of forms depending on the end-user preference. Some of those forms are submitted via AJAX and may or may not add any components to AjaxRequestTarget. How can I add the page's FeedbackPanel to AjaxRequestTarget of the

Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Alec Swan
-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent I think it does what you need. On 15/08/2012 3:59 PM, Alec Swan wrote: Hello, I have a FeedbackPanel on a page. The page can contain different kinds of forms depending on the end-user preference. Some of those forms are submitted

Re: How to display a grid with empty cells

2012-08-09 Thread Alec Swan
used the GridView directly so I can't help you with it specifically. However, have you considered modifying your provider to always return 9 records with some having an empty placeholder? It's definitely a hack, but it may be worth a try. Bertrand On 08/08/2012 10:56 PM, Alec Swan wrote

How to display a grid with empty cells

2012-08-08 Thread Alec Swan
Hello, I am using Wicket 1.4.17 and need to display a 3x3 table with all of its cells, some of which may not have a model and hence blank. So, if my DataProvider returns 0 elements than I want all 9 cells to be shown as blank. I started using GridView and overrode its populateEmptyItem() method

Re: Where to add javascript in html pages which follow inheritance relationship.

2012-07-31 Thread Alec Swan
Try the following and let us know what happens when Page 2 is rendered by Wicket. Page1: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en

Re: Understanding Wicket redirect behavior

2012-07-17 Thread Alec Swan
Anybody? On Sat, Jul 14, 2012 at 5:24 PM, Alec Swan alecs...@gmail.com wrote: Is there a way in 1.4.x to avoid a 302 redirect to /lrm/ms/oid/123.0 when the user opens /lrm/ms/oid/123? Thanks, Alec On Sat, Jul 14, 2012 at 5:09 PM, Alec Swan alecs...@gmail.com wrote: Michael, I

Re: Next database key pre-filled in form and associated with PropertyModel returns null

2012-07-17 Thread Alec Swan
How do you determine which next key is available? If two users open the form at the same time will they see the same key? If so, then you need to handle errors from concurrent form submissions with the same key. Which means for one of these concurrent requests you will have to issue a different

Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
Hello, While working on my previous problem I found out that when I do a GET to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302 redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx. However, when I do a GET to /lrm/network I get a 200 response and jsessionid is set as a

Re: Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
.. Cheers Josh On Sat, Jul 14, 2012 at 8:30 PM, Alec Swan alecs...@gmail.com wrote: Hello, While working on my previous problem I found out that when I do a GET to one of my bookmarkable pages, e.g. /lrm/ms/oid/123, I get a 302 redirect to /lrm/ms/oid/../../ms/oid/123.0;jsessionid=xxx

Re: Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
/wicketpraxis/web/thema/howto/servletfilter/DisabledJSessionIDinUrlFilter.java Michael mosmann -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Alec Swan alecs...@gmail.com schrieb: Thanks Josh, I upgraded to Tomcat7 and was able to disable cookies as you

Re: Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
/yourPage?0 (0 or other - wicket page version) Michael Am Samstag, den 14.07.2012, 14:47 -0600 schrieb Alec Swan: Thanks Michael. I read the first link before and the only thing that I didn't do (and probable cannot do) is make my pages stateless. As far as the second link

Re: Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
Is there a way in 1.4.x to avoid a 302 redirect to /lrm/ms/oid/123.0 when the user opens /lrm/ms/oid/123? Thanks, Alec On Sat, Jul 14, 2012 at 5:09 PM, Alec Swan alecs...@gmail.com wrote: Michael, I integrated DisabledJSessionIDinUrlFilter code that you sent me and I still get a 302

Re: Anybody is having problems with Wicket and Facebook Like button?

2012-07-12 Thread Alec Swan
/javaee/web-app_3_0.xsd; id=WebApp_ID version=3.0 -Original Message- From: Alec Swan [mailto:alecs...@gmail.com] Sent: Friday, 6 July 2012 6:47 a.m. To: users@wicket.apache.org Subject: Re: Anybody is having problems with Wicket and Facebook Like button? Sorry for pushing this again

Re: Anybody is having problems with Wicket and Facebook Like button?

2012-07-12 Thread Alec Swan
:18 AM, Alec Swan alecs...@gmail.com wrote: I used Apache httpd.conf to rewrite our URLs to exclude jsessionids, but this did not fix the problem with Facebook Like button. Now I am wondering if the problem is related to Wicket inserting ../../ in the middle of the URL when Tomcat redirects

Re: Anybody is having problems with Wicket and Facebook Like button?

2012-07-05 Thread Alec Swan
Sorry for pushing this again, but this is a huge issue for us. Is anybody having problems with Facebook Like button? On Tue, Jul 3, 2012 at 3:34 PM, Alec Swan alecs...@gmail.com wrote: Hello, We started receiving complaints from users saying that Facebook Like buttons don't work on our web

Anybody is having problems with Wicket and Facebook Like button?

2012-07-03 Thread Alec Swan
Hello, We started receiving complaints from users saying that Facebook Like buttons don't work on our web site anymore. I don't know what happened on the Facebook side but now we are seeing the following errors when user clicks Like button, e.g. on http://galecsy.com:88/lrm/ms/oid/74989: The

Verifying image HREF with Wicket tester

2012-06-19 Thread Alec Swan
Hello, How can I access and verify the HREF attribute of an Image with WicketTester? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Verifying image HREF with Wicket tester

2012-06-19 Thread Alec Swan
and then you can check the attributes. On Tue, Jun 19, 2012 at 5:39 PM, Alec Swan alecs...@gmail.com wrote: Hello, How can I access and verify the HREF attribute of an Image with WicketTester? Thanks, Alec - To unsubscribe

Re: Verifying image HREF with Wicket tester

2012-06-19 Thread Alec Swan
, Jun 19, 2012 at 6:26 PM, Alec Swan alecs...@gmail.com wrote: Martin, this method works fine on the top page elements but not on the nested panel's elements. I need to get the HREF attribute of myForm:rows:1:cols:2:myPanel:myImage on the top page. '2' is the component id of an item inside

Re: Verifying image HREF with Wicket tester

2012-06-19 Thread Alec Swan
Martin, if there was a problem with repeater wouldn't I have had multiple myPanel components? Yet, tester.getTagByWicketId(myPanel) works. On Tue, Jun 19, 2012 at 9:46 AM, Alec Swan alecs...@gmail.com wrote: getTagByWicketId(..) JavaDoc says that if there are multiple components

  1   2   3   >