Wicket ExtJS

2011-10-07 Thread Entropy
So my project has used Wicket (albeit perhaps not well) on it's last couple projects. We are now adopting ExtJS. If I use a page transition style (reloading the browser page in it's entirely each time), I can populate the onReady() in each load, and I only have on Wicket stateful page on the

Re: RIA solution based on wicket

2011-10-20 Thread Entropy
That looks pretty good. I too am attempting to build a RIA with ExtJS using Wicket as my back-end. On first look it seems like the two should be a great fit as both rely heavily on building a hierarchical tree of components. If I could build a set of custom wicket components to output

Re: RIA solution based on wicket

2011-10-20 Thread Entropy
That looks pretty good. I too am attempting to build a RIA with ExtJS using Wicket as my back-end. On first look it seems like the two should be a great fit as both rely heavily on building a hierarchical tree of components. If I could build a set of custom wicket components to output

AjaxButton and a HiddenField

2013-02-11 Thread Entropy
I have a javascript component that updates a HiddenField. Then I want to submit to the server via an AjaxButton. It all works fine until I try to get the value of the hiddenField which evidently did NOT hitch a ride on the Ajax request. How do I get the hiddenfield to join the ajax request?

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
Okay, so the only AjaxRequestTarget I am aware of is the one passed to me in the onSubmit. This being after the ajax has submitted. I thought that was for OUTPUT, ie what controls will the ajax update when it returns from the ajax event. I am not trying to update the hiddenfield in the

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
To elaborate, I already made the Hidden a HiddenField, it just doesn't get updated before the onSubmit(). The Hidden's value is set via javascript on the client, and I want that value as INPUT into the code tha truns in onSubmit. -- View this message in context:

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
Yes, I have a form (wicket Form) around both the hidden and the ajaxbutton. We appear to be on 1.4.7. The java for the ajaxbutton looks like so: form.add(new AjaxButton(gridtestbutton) { protected void onSubmit(AjaxRequestTarget arg0, Form? arg1) { //some code that gets the HiddenField,

Re: AjaxButton and a HiddenField

2013-02-12 Thread Entropy
Well, I solved it and it turns out that it wasn't a Wicket issue. I was setting the value in javascript, but I eventually realized that I was setting it to the wrong object...so when i stepped and saw the value, I assumed that it was in the hidden, but I was wrong. Ooops. Thanks for your effort

JS and CSS package references

2013-03-06 Thread Entropy
So I am trying to do the package resource reference thing. https://cwiki.apache.org/WICKET/adding-javascript-or-css-using-a-resource.html https://cwiki.apache.org/WICKET/including-css-resources.html However, I am clearly not doing it right. The URLs rendered look like: script

Re: JS and CSS package references

2013-03-06 Thread Entropy
That's exactly what i am doing. Notice the comment marks /* and */ around the package stuff. I tried it both ways. And this in this case is ExtGrid.java. So I am also sending in that class. So I have to pre-register these resources in some way or something? Note that ExtGrid is a panel not a

Wizard extension and callbackUrl

2013-03-07 Thread Entropy
Hi all, I have a wizard upon which resides a third party js control. This control needs a callbackUrl to contact me at. I did this find within a page by using an AbstractAjaxBehavior and the following line: callbackUrl =

Wizard customization

2013-03-18 Thread Entropy
Googling, I found an old post by a guy promising to post some examples of customizing the wizard extension, but I can't seem to find those, so I will ask here instead: How exactly does one customize the wicket wizard? I have three steps, fairly simple, all three are mandatory and can be done in

Re: Wizard customization

2013-03-18 Thread Entropy
Question 3: Also, my page is being thrown off by the nested table structures that the Wizard component generates. My webby guy says he didn't anticipate that when he wrote our templates and it really demolishes the look and feel. Is there a way I can control the HTML the wizard generates? To

Re: Adding to the existing AjaxBehavior of a component

2013-03-25 Thread Entropy
I am Eugene's co-worker. The entire code block would be unreasonable as it contains alot of business rules that have nothing to do with the technical issue. The basic code summary is this: Inside a re-usable panel orgPanel: final DropDownChoiceStructureL structureDropDown = new

Re: Adding to the existing AjaxBehavior of a component

2013-03-25 Thread Entropy
Yeah, that is what I do with my panels I write. In this case though, I'd /RATHER/ just add the extra behavior because it means I don't have to alter any of that orgPanel's code. The panel build is done within a factory method and the inheritance and design of it doesn't really make exposing

Ajax and validators

2013-03-27 Thread Entropy
I had an ajaxbutton to add selected items from a multiple choice control to another multiple choice control. This worked spendidly with me getting the selected via the getInput() method. Well, along comes time for me to write and add a validator to the form, and suddenly the event does not

Re: Ajax and validators

2013-03-27 Thread Entropy
Thanks Sven, that was what I needed. Just for my learning, why doesn't AjaxLink report the user input? If it is not meant to, it doesn't seem to serve a purpose, so I have to assume I did something wrong there as well. -- View this message in context:

Exception with validator

2013-03-27 Thread Entropy
Form and button works fine without my validator (sounds similar to my last message but this is the next problem). Validator puts up message, and reloads page with error in it on form submit. But the following exception appears in my console. The situation is that a re-usable panel has an

Re: Exception with validator

2013-03-27 Thread Entropy
I meant to also mention that while other pages in the app use this panel and do NOT have this problem, those other pages do not have an extension of that class. I know some annotations do not inherit, but again, the lookupService is loaded at first. Entropy wrote Form and button works fine

Re: Exception with validator

2013-03-27 Thread Entropy
I tried marking the properties as transient, which got me past that error, but then the properties are null after the validation and that is not really better. :( Entropy wrote Form and button works fine without my validator (sounds similar to my last message but this is the next problem

Re: Exception with validator

2013-03-27 Thread Entropy
, so I don't know if this would qualify. I certainly will run it up the flagpole. But I wouldn't hold my breath. Regards Sven On 03/27/2013 07:49 PM, Entropy wrote: I tried marking the properties as transient, which got me past that error, but then the properties are null after

CheckboxMultipleChoice with a list of beans

2013-04-05 Thread Entropy
I wrote a checkboxmultiple choice that looks like the following: CheckBoxMultipleChoiceFilterValue forfTypes = new CheckBoxMultipleChoiceFilterValue( forfeitureTypes, lookupService.fetchFilterValuesByFilterName(Forfeiture Type), new

Re: CheckboxMultipleChoice with a list of beans

2013-04-05 Thread Entropy
Sven Meier wrote Seems like you're having an issue with generics. Introducing local variables should help identifying the problem. Yeah, I am definitely in generics hell. I tried spreading it out, and get the same problem. ArrayListFilterValue list = (ArrayListFilterValue)

Re: CheckboxMultipleChoice with a list of beans

2013-04-05 Thread Entropy
Solved. CheckBoxMultipleChoiceFilterValue adTypes = new CheckBoxMultipleChoiceFilterValue( adTypes, new Model((Serializable) model.getAdTypes()), lookupService.fetchFilterValuesByFilterName(Advertisement Type),

setDefaultFormProcessing and models

2013-04-07 Thread Entropy
Maybe I just need this explained to me a little clearer, but I was wondering about what appears to me to be a contradiction in how validation and model-setting and the setDefaultFormProcessing(false) works. Maybe contradiction is the wrong word. Let's say inconvenience. So I get that when I set

Re: setDefaultFormProcessing and models

2013-04-08 Thread Entropy
Bernard wrote Hi, Perhaps you can use a combination of what is avaliable in the javadoc of org.apache.wicket.markup.html.form.Form e.g. FormComponent#updateModel() That ALMOST works. The javadoc for updateModel says it assumes that convertInput() has been called. But convertInput() is

Wierd ajax thing

2013-05-03 Thread Entropy
I have a panel that consists of several combo boxes that hierarchically allow selection of an office/org hierarchy. Mostly the 1st combo filters the second which filters the third and so forth. I have a requirement to use this in a fashion that allows multiple selection. I am also being

Re: Wierd ajax thing

2013-05-06 Thread Entropy
That appears to have done it. clearInput solved my issue. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wierd-ajax-thing-tp4658543p4658574.html Sent from the Users forum mailing list archive at Nabble.com.

IE7 Submit button stops working

2013-05-16 Thread Entropy
Okay, I've got a riddle wrapped in an enigma wrapped in bacon for you. My page works perfectly in IE8. When I use the developer tools to go to IE7 compatability for testing, the submit button on my page stops working (I'll describe exact symptoms below). It works in IE8. Works in Firefox.

Re: IE7 Submit button stops working

2013-05-16 Thread Entropy
Presuming you meant on the form, no it does not. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658866.html Sent from the Users forum mailing list archive at Nabble.com.

Re: IE7 Submit button stops working

2013-05-16 Thread Entropy
New info: It works in IE8 from my localhost (using IBM RAD) but does NOT work in IE8 from a standalone server (WebSphere). However, it DOES still work in Firefox on the standalone server. -- View this message in context:

Re: IE7 Submit button stops working

2013-05-16 Thread Entropy
More Info: So I was able, through experimentation and heavy commenting in/out to narrow it down. It's an ajax behavior earlier in the page that is causing the button to misbehave. UserMultiSelect recipients = (UserMultiSelect) form.get(recipients_section);

Re: IE7 Submit button stops working

2013-05-17 Thread Entropy
More More Info: Tried keeping the recipients panel enabled, wondering if it being enabled was the problem or changing it via ajax was the problem. It appears that if it is always enabled the bug happens. So it's not the act of changing it. -- View this message in context:

Re: IE7 Submit button stops working

2013-05-17 Thread Entropy
Still more info: I drilled into my panel, and began removing things to find what component might be interacting poorly with the enabling. I found that it is my ajaxbuttons. If I remove all four, the page works. If I put ANY of the four back in, it interacts with the enabling to cause the form

Re: IE7 Submit button stops working

2013-05-17 Thread Entropy
SOLUTION: It was the button tags. Replace them with input type=button ... and it works fine. What a simple little cause of a wierd @ss problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658907.html Sent from the

Injecting proxy services in page.

2013-06-03 Thread Entropy
We are doing the annotation based approach described in this link (https://cwiki.apache.org/WICKET/spring.html). At least, we think we are. We get: [6/3/13 8:26:00:907 EDT] 0023 SystemOut O ERROR [WebContainer : 0] (RequestCycle.java:1521) - Could not deserialize object using

Re: Injecting proxy services in page.

2013-06-05 Thread Entropy
At the risk of turning this into a Spring discussion on a Wicket forum, how does one control that? I would like to try your suggestion, but am not sure what knob to twist. We just implement ApplicationContextAware, and point to our spring config file in web.xml. I don't set anywhere asking for

Wicket 1.4.7 request listener

2013-07-12 Thread Entropy
My project uses wicket 1.4.7. We need to run some standard code before and after every request (including ajax). How can I register sucha listener? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-7-request-listener-tp4660248.html Sent from the Users

Re: Wicket 1.4.7 request listener

2013-07-18 Thread Entropy
1) Many of those suggestions appear to be 1.5 or greater. I am in 1.4.7. 2) A simple filter does indeed get me the events, but at that point, how am I to know what page is being worked with? My objective is to set some properties that our database code picks up for the audit log. We want this

AJAX event response headers - redirect

2013-09-13 Thread Entropy
We have alot of ajax events in our app. Wicket makes it very easy to do so. However, all of our applications have Novell Access Manager (NAM) in front of them for single-sign-on. When the NAM session times out, it sends a redirect to the browser to bring them to a login page. But for ajax

Re: AJAX event response headers - redirect

2013-09-14 Thread Entropy
. --Groucho Marx On Sat, Sep 14, 2013 at 12:58 AM, Martin Grigorov-4 [via Apache Wicket] ml-node+s1842946n4661314...@n4.nabble.com wrote: how you would do it with naked Ajax? On Sep 13, 2013 10:50 PM, Entropy [hidden email] wrote: We have alot of ajax events in our app. Wicket makes it very easy

response headers in Wicket 6

2013-12-09 Thread Entropy
Hi, I'm converting one of our apps from 1.4.7 to 6.12. the old code extended WebResource. I changed it to extend ByteArrayResource. I changed setheaders to setResponseHeaders. But the code inside, I am not sure how to change to Wicket 6 as the parameters are very different. @Override

Re: response headers in Wicket 6

2013-12-09 Thread Entropy
Second question (the first is still open), in 1.4.7 the page object supported a removePersistedFormData() method and the TextField has a method setPersistent() on it. Both appear gone, and I don't see anything in the6 or 1.5 conversion guides about them. What is the replacement? -- View this

Re: response headers in Wicket 6

2013-12-10 Thread Entropy
Thanks Francois, Second question: In 1.4.7 the page object supported a removePersistedFormData() method and the TextField has a method setPersistent() on it. Both appear gone, and I don't see anything in the 6 or 1.5 conversion guides about them. What is the replacement? -- View this

Converting 1.4.7 to 6.12

2013-12-10 Thread Entropy
Hi, it's me again. I'm still converting to 6.12 from 1.4.7. Thanks for your help on previous questions. Here's the next item I didn't see in the conversion docs. In one of our pages, someone did this:

Converting 1.4.7 to 6.12 - Login Error

2013-12-11 Thread Entropy
So I am past my compile errors and am now running my shiny new 6.12 application. But it breaks down before I can get it off the dealer's lot. :( The problem is that the error is kind of ambiguous. The console says: [12/11/13 14:47:30:437 EST] 0026 servlet I

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-12 Thread Entropy
So, the app worked before I made my 1.4.7 - 6.12 changes. The general flow is that when I hit the URL for the app (with no parameters...that 404 URL is not something I typed from the browser) it goes to the Application.getHomePage(), which returns the home page (not the login page). We have a

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-12 Thread Entropy
I know it is a web container page. I may not have been clear on this before. The URL I hit is: http://localhost:9080/EquitableSharing Wicket the forwards me to: http://localhost:9080/EquitableSharing/gov.usdoj.afms.esp.modules.login.LoginPage?1 But Wicket is involved because the WicketFilter is

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-12 Thread Entropy
I just tried replacing the exception line with: try { throw new RestartResponseAtInterceptPageException((Page) getLoginPageClass().newInstance()); } catch (IllegalAccessException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (InstantiationException

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-13 Thread Entropy
Thanks Martin, that did it. It now works with the class instead of an instantiated page. I guess now pages passed through that exception must be mounted? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Converting-1-4-7-to-6-12-Login-Error-tp4662916p4663000.html

AutoComplete stopped working in 6.12

2013-12-16 Thread Entropy
Converting from 1.4.7 to 6.12. The page runs, but the autocomplete field has stopped working. It never produces an autocomplete, acting as if it were simply a normal . More strangely, no code in the containing panel was changed, nor do I see anything in the migration guide about

Re: AutoComplete stopped working in 6.12

2013-12-16 Thread Entropy
Solved. Not long after posting this I found http://stackoverflow.com/questions/14481767/wicket-autocomplete-in-wicket-6-2-0 which explains that Wicket now includes it's own jQuery...which I'd read, but hadn't made the connection to this problem. When I took out the jQuery base js include, the

AjaxLazyLoadPanel in wicket 6

2013-12-17 Thread Entropy
Hi, it's me again, and I am still converting from 1.4.7 to 6.12. I think I am starting to get down to the last few errors. I have an AjaxLazyLoadPanel that loads a grid of data that takes a little time to load. It worked fine in the 1.4.7 version of the app, though there are code changes from

Re: AjaxLazyLoadPanel in wicket 6

2013-12-17 Thread Entropy
I think so. Here's the output. It seems like the component id is wrong. Indeed, I DO see that show up. But that isn't the full set of what should show. Because the method I referenced previously was not called, the data that should be part of this isn't ever retrieved. I also notice that the

1.4.7 app form does not submit on server when panel is not visible.

2013-12-18 Thread Entropy
This is in one of our Wicket 1.4.7 apps that we have not converted yet. The problem does not happen in localhost test environments, but does happen on the server. Moreover, the problem only happens when a data condition causes a particular panel to be visible. When this panel is visible (and I

Re: 1.4.7 app form does not submit on server when panel is not visible.

2013-12-19 Thread Entropy
Yeah, I get that. The problem with that is that I can't reproduce the issue locally with the FULL APPLICATION, so I am reasonably certain that I won't be able to reproduce it with a quickstart. It only happens on the server AND when this panel is visible. I attached the panel as a file if that

Re: 1.4.7 app form does not submit on server when panel is not visible.

2013-12-19 Thread Entropy
New Info: So I've been promoting over and over, having backed the panel out and slowly building it back up. When I don't build the buttons in the middle, the page submits normally. The html for the buttons is: div id=tabbuttons button type=button title=Add

Re: 1.4.7 app form does not submit on server when panel is not visible.

2013-12-19 Thread Entropy
I can now add that if only the addSelected button is added, the problem happens, likewise if only addAll is included. So it appears that any of the four buttons creates the problem. add(new AjaxButton(addSelected) { private static final long

Re: 1.4.7 app form does not submit on server when panel is not visible.

2013-12-19 Thread Entropy
SOLVED I don't know why i didn't see this earlier, but the issue was using the button tag instead of input type=button. Somewhere along the line, someone started using button tags in our shop and we've noticed quirky behavior from them before (though nothing this quirky). Changed it to input

Re: AjaxLazyLoadPanel in wicket 6

2013-12-20 Thread Entropy
Hi, Does anyone have some insight on this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-in-wicket-6-tp4663083p4663163.html Sent from the Users forum mailing list archive at Nabble.com.

Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-23 Thread Entropy
Hello, I am just converted to Wicket 6, and I have a line like this in one component: response.render(JavaScriptHeaderItem.forScript(writeGridJS(), getId() + _js)); That writes some custom javascript which in turn run when Ext.onReady() is ready. However, this script generated so early that

Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-23 Thread Entropy
+s1842946n466391...@n4.nabble.com wrote: Hi, Read http://wicketinaction.com/2012/07/wicket-6-resource-management/ Martin Grigorov Wicket Training and Consulting On Thu, Jan 23, 2014 at 4:24 PM, Entropy [hidden email]http://user/SendEmail.jtp?type=nodenode=4663911i=0 wrote: Hello, I am

Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-24 Thread Entropy
(DefaultMarkupSourcingStrategy.java:71) at org.apache.wicket.Component.internalRenderComponent(Component.java:2549) ... 80 more Entropy wrote Browser giving me a little trouble. Apologies if I double-submitted this. My respoonse: I didn't even know such a website existed. Thanks. I am trying

Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-29 Thread Entropy
For posterity, the solution that eventually worked for me: response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(ExtGrid.class, ExtGridSupport.js))); response.render(OnDomReadyHeaderItem.forScript(writeGridJS())); The on dom ready delays my init long enough to serve

Invoke Wicket from JavaSctipt

2014-01-29 Thread Entropy
I want a javascript method to wrap the wicket invocation. I passed the following to Wicket.Ajax.ajax. This is what I see in firebug. attrs { c=grid6, u=./?3-6.IBehaviorListene...ent-assetListTable-grid, ep=[{action=cellClick}, {key=8}, {column=caseNumber} ] } But

Re: Invoke Wicket from JavaSctipt

2014-01-29 Thread Entropy
Thanks. Using the advanced method worked. Though I wasn't repeating parameters, so I am not sure why the previous didn't work. But it doesn't matter now. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invoke-Wicket-from-JavaSctipt-tp4664043p4664050.html Sent from

SpringBean and properties file.

2014-02-11 Thread Entropy
I think this is a problem in spring and wicket working together. This is in 1.4.7. In spring: bean id=portalResources class=gov.usdoj.afms.afmsportal.application.AFMSPortalResources init-method=init scope=singleton property name=portalService ref=portalService/

Show textfield as plaintext when disabled?

2014-02-28 Thread Entropy
Is there a way to have my textfield show as plain text when in a readonly mode rather than as a disabled textbox? Backup question: I can imagine making a panel to do this...having a textfield and label and hiding whichever I didn't want, but I would want my panel to bind to a textbox in the

RE: Show textfield as plaintext when disabled?

2014-03-04 Thread Entropy
What a great bunch of ideas. I'll be implementing at least one of them. Thanks for all your ideas. Does anyone have similar techniques for dropdowns? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Show-textfield-as-plaintext-when-disabled-tp4664723p4664771.html

Re: Show textfield as plaintext when disabled?

2014-03-10 Thread Entropy
Igor, This was great. Exactly what I needed. I applied this to my TextField and DropDownChoice with a few tweaks and it's perfect. But when I went to do the same to TextArea, I am told that onComponentTagBody is final and cannot be overridden. So i tired without that method overidden like so:

Expandable section in ListView

2014-03-18 Thread Entropy
I have a list view that will have a button on the left to expand or contract a section that starts out hidden. this section will have some additional details. Code and HTML below. When I click the button, the event arrives in my onActivityLogExpansion, and the wicket ajax debug control turns

Re: Show textfield as plaintext when disabled?

2014-03-20 Thread Entropy
*bump* I still need help making this technique work for TextAreas whose onComponentTagBody methods are final. I have also discovered the need for this in a RadioGroup. I apply RadioGroup to a wicket:container which wraps some markup that includes my radio buttons. Works fine. In readonly, I

Re: Show textfield as plaintext when disabled?

2014-03-20 Thread Entropy
Of course the instant I submit the question, I thought of something else to try. I stopped overriding onComponentTag and changed the body to: @SuppressWarnings(unchecked) public void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) {

ajax event not quite working as planned

2014-03-23 Thread Entropy
I have a listview where each row has an expandable section in it to show additonal detail on some rows. That works. But two aspects aren't working. 1) I am trying to change the + on the button to a -, and then back again when we collapse. My code looks like:

Re: ajax event not quite working as planned

2014-03-23 Thread Entropy
Setting that AND adding the form that contains the list to the target (which was inspired by that bit of text) seems to have solved issue #2, the collapse. Thanks! However, issue #1, the button label, is still not working correctly. Any insight there? -- View this message in context:

One field enabled in a disabled container

2014-03-27 Thread Entropy
A wierd requirement was just handed to me. We have a form that gets enabled/disabled depending on business rules as normal. However, now I am being told to disable ALL BUT TWO fields in a particular state. Is my only option here to leave the form enabled and then disable EVERY other control

RE: One field enabled in a disabled container

2014-03-27 Thread Entropy
Yeah, I considered that. Unfortunately the hierarchy is such that these two are in the middle and buried a bit in the HTML hierarchy. In a simpler situation, that would've worked spendidly. -- View this message in context:

Modal Popup JS errors on close

2014-04-09 Thread Entropy
We have a modal popup in an app that uses Wicket 1.4.7. We recently upgraded out first app to Wicket 6.8, and we want to add a modal popup to it. However, and it comes up okay, but on close, I get a JS error. Firebug says: this.content.contentWindow.Wicket.Window is undefined on line 785 of

Re: Modal Popup JS errors on close

2014-04-09 Thread Entropy
Just discovered that this happens in Firefox, not in IE, and even then only when firebug is open. So maybe not a real problem? But it is a little alarming to me that I get it even then. I'd still like to solve it, but obviously, that makes it less important. -- View this message in context:

Two Questions

2014-04-14 Thread Entropy
1) I have a feedback panel and when i add messages under info(), they do not show up. When I add the message via error(), it shows as expected. Why might this be? 2) I am using the @SpringBean annotation, works fine. But I want to inject a string property value that came from the properties

Modal Window and RestartResponseException

2014-04-17 Thread Entropy
I have an ajaxlink on my modal window that takes the user to a new page, one the modal window is not on. I have traditionall done stuff like this with RestartResponseException. But when I use that from the modal window, the new page renders INSIDE the modal window. Not the desired behavior. I

AjaxButton does not respect return false on client side

2014-04-21 Thread Entropy
I have an ajax button that launches a modal form. It binds to: input type=button wicket:id=btnCopy onclick='return false;' value=Copy To I've replace the javascript call that checks the condition with a flat return false to simplify things. This still launches the event, and renders the modal

Re: AjaxButton does not respect return false on client side

2014-04-21 Thread Entropy
So I figured out that what's happening is that evidently wicket 6 doesn't put the javascript inline, but uses event listener registration or whatever. And it seems like this overwrites my inline event in an AjaxButton. The solution: @Override

Re: AjaxButton does not respect return false on client side

2014-04-21 Thread Entropy
Nevermind. This secondary issue was caused by one of my many experiments to solve the original issue. Further, I also found that if I had needed to do this, the method to override is getOnClickScript(). I will say, that I am a little uncertain if this new style is a good thing. Traditionally,

Feedback Panel Request

2014-04-22 Thread Entropy
My analysis team has made some requests on how to show errors that I'd like some advice on how to accomplish in wicket. We have a page level feedback panel as well as a component level feedback panel. Currently, errors show in both and as plain text. Request #1 - Can we put links in the page

Feedback panel title area

2014-04-25 Thread Entropy
Is it possible to put some HTML inside the feedback panel that isn't messages? Possibly for some formatting or a title/instructions? The stuff would become visible at the same time as the error panel, but is static content otherwise outside the messages? I tried just sticking some HTML in

Re: Feedback panel title area

2014-04-25 Thread Entropy
I just tried putting some text inside the feedback panel's html like so: div class=errorpanel id=errorpanel wicket:id=feedbackThis is a test/div That didn't work. This is a test was overwritten when the feedback panel rendered. Which is exactly what I expected it to do. -- View this message

Link in Feedback Message

2014-05-02 Thread Entropy
I am currently putting a link into one of our feedback messages so give the user a quick way to navigate in response to a particular condition. I am doing it by just writing the tags into the message like so:String url = this.urlFor(SearchResultPage.class, new PageParameters().set(newSearch,

ComponentFeedbackPanel near radio group not working

2014-05-30 Thread Entropy
I am mystified. I have an error panel at the top of my page that show the errors for the page, but near each control is ALSO a ComponentFeedbackPanel to show the error near the control. These work fine for every control except this radio group. The error shows up top, has the right label, but

Re: ComponentFeedbackPanel near radio group not working

2014-05-31 Thread Entropy
On the group. It's the required rule. You can see group is set to required. And group is bound to the component feedback panel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentFeedbackPanel-near-radio-group-not-working-tp4666077p4666079.html Sent from

Re: ComponentFeedbackPanel near radio group not working

2014-06-04 Thread Entropy
. --Groucho Marx On Tue, Jun 3, 2014 at 10:26 PM, Paul Bors [via Apache Wicket] ml-node+s1842946n4666109...@n4.nabble.com wrote: Do you use any custom feedback filters? Have a great day, Paul Bors On May 31, 2014, at 9:29 AM, Entropy [hidden email] wrote: On the group. It's the required rule

Error page stack trace

2014-06-04 Thread Entropy
We set our error page via setInternalErrorPage on IApplicationSettings in 1.6. I'd like to bury the stack trace in a comment in the rendered page in our staging and dev environments to save time. But I have no idea how to get the originating trace in the error page. -- View this message in

Re: Error page stack trace

2014-06-04 Thread Entropy
The meta data facility looks intriguing but is a bit confusing. How is this supposed to work? I was expecting something like a map, but the key has to be this abstract object that takes an arrya of entry objects? And each entry object demands reference back to it's key? This is a confusing

Re: Error page stack trace

2014-06-04 Thread Entropy
Nevermind, I figured out from other examples that they tend to share the key in a static constant so that it becomes the object identity that allows you to access the meta data object. I wonder if that is really the intended use, but intended or not, it works. -- View this message in context:

Behavior to modify attributes

2014-07-18 Thread Entropy
I have a third party js library I am applying to my page. I have to mark the fields I want excluded with a particular HTML attribute. So I am implementing a custom behavior to do the work, and I want the behavior to act like it's an opt-in behavior instead of opt-out. So I wrote my behavior to

Re: Behavior to modify attributes

2014-07-21 Thread Entropy
Instead of doing: page.add(new MyBehavior(components)) do Behavior b = AttributeModifier.append(); for (Component c : components) { c.add(b) } Certainly that would work, I am trying to create a re-usable Behavior for my app that any page wishing to incorporate this

Re: Behavior to modify attributes

2014-07-21 Thread Entropy
Oh, I just tried it in my common page's onBeforeRender. Evidently I can do this from the page.onBeforeRender, just not from the behavior onBeforeRender. Which is probably what you meant. Okay, I can work with that. -- View this message in context:

InvalidUrlException

2014-07-26 Thread Entropy
We're getting alot of these in the logs from a Wicket 1.4.7 app. I presume that it came from some link somewhere that built improperly. Our classes aren't on the stack, so it's hard to know where in the app it's coming from. Any suggestions on how to track this down? I do know that by

Re: InvalidUrlException

2014-07-28 Thread Entropy
I am considering subclassing WebRequestCodingStrategy to override that one method (and otherwise just call super() everywhere) and forward that condition to the HomePage instead of exceptioning. But I am a little unsure how to get my subclassed WebRequestCodingStrategy into use. -- View this

Re: InvalidUrlException

2014-07-28 Thread Entropy
It turns out our ops team runs a script every ten minutes to test whether the app was up. The script was issuing this wierd URL a couple times per run due to it being broken. However, to protect against the future possibility, i implemented the forward to HomePage thingy discussed above. For

  1   2   3   >