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 wrote: > I am on Wicket 1.5.9 using WicketSt

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 TinyMCE#getAjaxRegionMarkupId(

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 var value on my page and accessed it from JS file using $("div.myVar").text() or something like that. The advantage of approach is that you can test it statically without deploying the webapp and your JS file can be

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 last

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 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
8:51 AM, Martin Grigorov 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 wrote: > >> It turned out that >> RequestCycle.get().getUrlRenderer().re

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

2012-11-12 Thread Alec Swan
, Nov 12, 2012 at 8:46 AM, Alec Swan 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, >

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 wrote: > To solve the proble

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 CachingSunJceCryptFactory(encryptio

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

2012-11-11 Thread Alec Swan
at org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:146) ... 63 more Thanks, Alec On Sun, Nov 11, 2012 at 5:21 AM, Sven Meier wrote: > Where is encodedStr coming from? Are you using Cryptomapper? > > Please give us a stacktrace. > > Sven > >

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 AbstractCrypt#

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 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 /app

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 a

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 wrote: > Hi, > > You can use set of class and set css on div class easily. > > Thanks! > > > > - > JBoss Developers || JBPM Workflow > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.

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 . However, when we add a Wicket behavior to this button we start receiving the following warning: WARN [http-bio-8080-exec-10] org.apache.wicket.ajax.AjaxEventBehavior - org.apache.wicket.ajax.markup.html.fo

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-02 Thread Alec Swan
r, I am not sure my support will help that much! :) ) >> >> > >> >> > I also think that we can keep this AttributeAppender even with the >> >> changes >> >> > to be done for wicket7 (with the Martin's suggestion for instance). At >> >&

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-02 Thread Alec Swan
tMessageCssClass(message.getLevel()) or something > 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 wrote: > >> @Sebastien The scenario you described it exa

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Alec Swan
>> we >> >should be able to apply the message-level-css-class to this repeater (and >> >be able to *not* apply it to LI nor SPAN... so the loop is looped*). >> > >> >If you, dev-team, think this request is not relevant for wicket-core, >> >plea

Re: Custom CSS for Feedback message is broken in 1.5

2012-11-01 Thread Alec Swan
> FeedbackPanel to achieve this goal... > > Thanks in advance & best regards, > Sebastien > > (*) hazardous translation from French... > > > On Wed, Oct 31, 2012 at 11:37 PM, Alec Swan wrote: > >> So, the patch can be applied to 1.5.8 and will replace >>

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 as well. Alec On Wed, Oct 31, 2012 at 4:33 PM, Alec Swan wrote: > I suggest that instead of o

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 you APPEND it to existing CSS classes. This will allow the user to specify their own CSS class in newMessageDisplayComponent(..) AND will support backward compatibility. Sounds like a win-win to me. Thoughts? Thanks, Alec On Wed, Oct 31, 2

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-23 Thread Alec Swan
t; > * http://en.wikipedia.org/wiki/Ouroboros > ** I am pretty sure this term has previously been used in this mailing 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 wrote: > >> Techn

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 wrote: > Done, https://issues.apache.org/jira/browse/WICKET-4831 > Please let me know if your encounter any issue (wrong base cod

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-20 Thread Alec Swan
What harm does it if the CSS class is on the too? > > Sven > > > On 10/20/2012 11:01 PM, Alec Swan wrote: >> >> Note that I need to set CSS styles on the label () and not the >> list item () and hence cannot override getCSSClass() because it is >>

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 () and not the list item () and hence cannot override getCSSClass() because it is applied to both. On Sat, Oct 20, 2012 at 2:58 PM, Alec Swan wrote: > Hello, > > This Wiki page explains how to add custom CSS styles to Feedback > mes

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 befo

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-10-01 Thread Alec Swan
4 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 wrote: > Hi, > > On Sun, Sep 30, 2012 at 7:42 PM, Alec Swan wrote: >> Perfect

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 wrote: > Perfect, thanks! Might be a good idea to put this on > https://cwiki.apache.org/

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-30 Thread Alec Swan
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 wrote: >> Thanks, but I mentioned above that we have a lot of pages mounted >> which take d

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 wrote: > On Sat, 29 Sep 2012 09:54:27 -0600 > Alec Swan

Re: HybridUrlCodingStrategy in Wicket 1.5

2012-09-29 Thread Alec Swan
cement. > WebApplication#mountPage() uses it. > > On Sat, Sep 29, 2012 at 1:51 AM, Alec Swan 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 ea

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 wrote: > Hello, > > What's the be

Re: Exception handling and testing

2012-09-27 Thread Alec Swan
Parameters? Thanks, Ale On Thu, Sep 27, 2012 at 1:18 AM, Martin Grigorov 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 wrote: >> Thanks,

Re: Exception handling and testing

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

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 wrote: > I also use this approach, but with authentication

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 wrote: >> Maybe you could simply use >> response.renderCSSReferenc

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-12 Thread Alec Swan
t 1:56 PM, Christoph Leiter 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 mount

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 su

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
Wicket 1.5 migration questions > > Hi Alec, > > See my previous response. Try it and then come back. > > On Wed, Sep 12, 2012 at 5:43 PM, Alec Swan wrote: >> Paul, I looked at IResource and ResourceReference classes but still >> can't figure out how to im

Re: Wicket 1.5 migration questions

2012-09-12 Thread Alec Swan
ok at IResource and the many different implementations of it and > see which one can help you most, or implement your own 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, >

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, Al

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 wrote: > But I want JavaScript files to be compresses by > JavaScriptResourceReference and CSS be

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 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: >> &

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 wrote: > I have used run-jetty-run as eclipse plugin... If this is n

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
ou ;). > > Thanks 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

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
improved, e.g by adding another > if-statement to it: > > if (toType.isInstance(value)) > { > result = toType.cast(value); > } > > Please open an issue in Jira. > > Sven > > > > On 09/0

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 wrote: > I attached a quickstart with a test in TestHomeP

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 w

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 nonN

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

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: Migration to 1.5: 'X' is not a valid Serializable

2012-09-06 Thread Alec Swan
his be fixed in 1.5.9? Alec On Thu, Sep 6, 2012 at 2:41 PM, Alec Swan 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

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: Wicket 1.5 migration questions

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

Re: Wicket 1.5 migration questions

2012-09-06 Thread Alec Swan
his to 1.5 so that I can still access http://../global/js/common.js and http://../global/js/styles.css? Thanks, Alec On Tue, Sep 4, 2012 at 5:10 PM, Martin Grigorov wrote: > On Tue, Sep 4, 2012 at 11:17 PM, Alec Swan wrote: >> Well, mountPackage did not work for me either. >>

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

2012-09-04 Thread Alec Swan
Hello, I ran into another problem while migrating to 1.5. I have a form with a TextField(new PropertyModel(obj, "value")). The test that fills and submitts the form in 1.4 worked just fine. In 1.5 I get an error "'X' is not a valid Serializable" where 'X' is what's returned from obj.getValue() met

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
js URL. 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 wrote: > Tom, > > I have com.myco.app.res.GlobalResourceScope.class and events.js in the >

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
est ui > instead of wicket tester :) > > -igor > > On Tue, Sep 4, 2012 at 12:07 PM, Alec Swan 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 >

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Alec Swan
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

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 getComponentFromLastRende

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
7/wicket-1-5-mounting-resources/ > > Cheers, >-Tom > > > On 04.09.2012, at 17:33, Alec Swan wrote: > >> I saw the link explaining how to migrate >> "SharedResources#putClassAlias(GlobalResourceScope.class, "global")" >> before but

Re: Back button doesn't work with AjaxTabbedPanel

2012-09-04 Thread Alec Swan
uest/mapper/parame > ter/PageParameters.html > > Not sure 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, Se

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
ple. All I need to do is use "global" in place 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 wrote: > Please see my inline comments. > > Cheers, >-Tom > > > >>> On 04.09.201

Re: Wicket 1.5 migration questions

2012-09-04 Thread Alec Swan
pache.org/WICKET/migration-to-wicket-15.html > >-Tom > > On 04.09.2012, at 02:36, Alec Swan 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 th

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 wrote: > Can't you just keep a reference to the backPage and then simply call > setResponsePage(backPage)? > > ~ Thank you, > Paul Bors > > -Original Message- >

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 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. >

Re: Back button doesn't work with AjaxTabbedPanel

2012-08-30 Thread Alec Swan
gt; > On 08/30/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/mave

Re: Back button doesn't work with AjaxTabbedPanel

2012-08-30 Thread Alec Swan
utton/Page4AjaxBackButton.java On Thu, Aug 30, 2012 at 12:36 PM, Sven Meier 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

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 M

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 alternativ

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

2012-08-29 Thread Alec Swan
ng wrote: >> *HTML* >> * >> * >> >> /* script will be >> rendered here */ >> >> *JAVA* >> >> String FacbookJS = " var facebookID = \"" + >> this.getfacebookID(CurrentDomain) + "\"); "; >> Label Facebook

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 tha

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 f

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
override WebApplication#newAjaxRequestTarget() and add it for each > and every ART. > > On Mon, Aug 20, 2012 at 11:56 PM, Alec Swan 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

Re: Add page feedback to every AjaxRequestTarget

2012-08-20 Thread Alec Swan
stener to your app via 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

Re: Add page feedback to every AjaxRequestTarget

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

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 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 AjaxF

Re: Add page feedback to every AjaxRequestTarget

2012-08-19 Thread Alec Swan
ubmit 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 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? Th

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

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 fo

Re: How to display a grid with empty cells

2012-08-09 Thread Alec Swan
t 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 >

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 t

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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";> alert("Hello!");

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 key

Re: Understanding Wicket redirect behavior

2012-07-17 Thread Alec Swan
Anybody? On Sat, Jul 14, 2012 at 5:24 PM, Alec Swan 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 wrote: >&g

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 wrote: > Michael, > > I integrated DisabledJSessionIDinUrlFilter code that you sent me and I > still get a 302 redirect

Re: Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
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

Re: Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
p/src/main/java/de/wicketpraxis/web/thema/howto/servletfilter/DisabledJSessionIDinUrlFilter.java > > Michael mosmann > > -- > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. > > > > Alec Swan schrieb: > > Thanks Josh, I upgraded to Tomca

Re: Understanding Wicket redirect behavior

2012-07-14 Thread Alec Swan
ws what kind of > browser its dealing with ... and if cookies are supported, it wont embed > the session id in the url but will put it in a cookie.. > > Now to tell tomcat to always use the cookies , you add > > > COOKIE > > > > In your web.xml file.. > > C

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 cookie

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

2012-07-12 Thread Alec Swan
:18 AM, Alec Swan 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 session

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

2012-07-12 Thread Alec Swan
http://java.sun.com/xml/ns/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

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 wrote: > Hello, > > We started receiving complaints from users saying that Facebook Like > buttons don't work on our we

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 page

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Alec Swan
So, this is a bug, right? On Wed, Jun 20, 2012 at 2:36 AM, Martin Grigorov wrote: > On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel > wrote: >> On Tue, 19 Jun 2012 15:21:17 -0600 >> Alec Swan wrote: >> >>> I had to make sure that my element had a clo

  1   2   3   4   >