Re: wicket 1.4.21, glassfish, @font-face

2012-12-10 Thread Adam Gray
have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered..." Heed this warning. On Mon, Dec 10, 2012 at 5:05 PM, Adam

wicket 1.4.21, glassfish, @font-face

2012-12-10 Thread Adam Gray
I'm running into a curious issue and wondered if anyone has any idea what else I can look into for a solution. In wicket 1.4.21 (legacy app), I'm attempting to switch to font awesome for icons in twitter bootstrap. I've added the following patterns to the resource guard guard.addPattern("+*.svg

Re: css style in listview

2012-08-30 Thread Adam Gray
It could be this: " background-colr:red ". You're missing an 'o' in there. On Thu, Aug 30, 2012 at 6:55 AM, Martin Grigorov wrote: > Hi, > > On Thu, Aug 30, 2012 at 12:46 PM, Pratibha > wrote: > > Hi team > > > > i like to add style in listview as mentioned below > > item.add(new SimpleAttribu

Re: extending wicket classes - markup only

2012-07-21 Thread Adam Gray
Copy the html file in your code, make your modifications and put it in a folder structure that matches where it was in the wicket jar. I can't remember if we had to tweak our resource loading to get this to work, but I don't think so. It should find yours first. On Sat, Jul 21, 2012 at 5:50 PM,

Re: Refresh listItem only of listView

2012-06-03 Thread Adam Gray
Remember that the code in the onClick is really just a callback. This code won't be executed until you have an entire listview to work with, because the listview won't show up until it's completely rendered. So in the link callback, you just add the listview's container to the ajaxrequesttarget a

Re: Need a link in a dataview filter column

2012-06-03 Thread Adam Gray
Did you want to put the link in the rows of the datatable or in the header row with the filter column itself? If you're just adding the links to the data rows, I typically use a Fragment when making custom DataTable columns. You could create a new fragment that has the link that will call your se

Re: AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector

2012-05-17 Thread Adam Gray
gt; 'selected' and then uses ajax to make a batch update. > > On Wed, May 16, 2012 at 9:28 PM, Adam Gray wrote: > > Wicket 1.4.20 > > > > Use case: I have a rather large CheckGroup (~250 items) that is > > controlling filters to include for an ad hoc reportin

AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector

2012-05-16 Thread Adam Gray
Wicket 1.4.20 Use case: I have a rather large CheckGroup (~250 items) that is controlling filters to include for an ad hoc reporting solution. Because this is so large, the group itself needs to be collapsible. Easy enough. But because it's collapsible, form components in hidden areas won't be

Re: Unusual problem is coming in rendering component

2012-05-02 Thread Adam Gray
It looks that since you aren't giving the text field a model to bind to, it's walking up the component hierarchy to find a model to check for a getter getPostTextField(). I'm guessing that PostDomain does have a getPost() method, which it's finding and using. You'll either want to keep the wicket

Re: Override BrowserInfoPage

2012-03-23 Thread Adam Gray
You can provide your own markup for BrowserInfoPage if you place it in the correct package within your application (org.apache.wicket.markup.html.pages? I believe). From there you can replace the text with a that you can translate. On Fri, Mar 23, 2012 at 12:47 PM, sudeivas wrote: > Hello, >

Re: JavaScriptReference with TextTemplate only returns the first retrieved value

2012-01-26 Thread Adam Gray
I just ran into this today. Has this been solved yet (in 1.4)? On Tue, Aug 23, 2011 at 10:23 PM, Doug Leeper wrote: > I have encountered this issue as well...and I believe I know the reason for > this behavior. > > The TextTemplateResourceReference eventually is bound to the Application > share

Re: Wicket ajax page versioning

2011-12-07 Thread Adam Gray
That's funny, I was just really hoping for a way to do the exact opposite so that the back button works correctly. On Wed, Dec 7, 2011 at 7:31 AM, Nazaret Kazarian wrote: > Hi, > > I would like to ask whether wicket keeps version of pages when changes > are made with ajax requests. > > If it doe

Re: feedback messages not appearing using ajax button

2011-12-01 Thread Adam Gray
Perhaps you aren't overriding onError(AjaxRequestTarget) ? Add the feedback panel in there. On Fri, Dec 2, 2011 at 12:22 AM, Squash wrote: > I am using a SecureAjaxButton to do some business functionality. This > function throws an exception which I catch and then set an error. I then > add > t

Re: BookmarkablePageLink to an existing instance of a page?

2011-11-28 Thread Adam Gray
You mean something like: add(new Link("theLink") { @Override public void onClick() { setResponsePage(yourPageInstance); } }); On Mon, Nov 28, 2011 at 3:31 PM, Martijn Dashorst < martijn.dasho...@gmail.com> wrote: > Then the page is no longer bookmarkable, since you depend on state. > >

Re: Using multiple AjaxFormChoiceComponentUpdatingBehavior in a Panel

2011-11-28 Thread Adam Gray
I'll get one created in the next couple hours. Thanks. On Mon, Nov 28, 2011 at 1:58 PM, Martin Grigorov wrote: > Hi, > > Create a quickstart application and attach it to a ticket in Jira > > On Mon, Nov 28, 2011 at 6:49 PM, Adam Gray wrote: > > In a nutshell, we

Re: Using multiple AjaxFormChoiceComponentUpdatingBehavior in a Panel

2011-11-28 Thread Adam Gray
nothing. So, group1's ajax behavior will fire while group2's will not. On Mon, Nov 28, 2011 at 12:43 PM, Martin Grigorov wrote: > Hi, > > What exactly is the problem ? > > On Mon, Nov 28, 2011 at 6:15 PM, Adam Gray wrote: > > I'm using the

Using multiple AjaxFormChoiceComponentUpdatingBehavior in a Panel

2011-11-28 Thread Adam Gray
I'm using the latest 1.4 release and it seems like there is an issue where two AjaxFormChoiceComponentUpdatingBehavior will not work correctly. The first one will function properly but the second one does nothing. We've looked for a resolution to this, but have thusfar come up empty. Is there a

Re: Apache Wicket is a Flawed Framework

2011-11-18 Thread Adam Gray
That's actually interesting you feel that way because I was just making the comment that I was surprised at how little hate was being displayed. Sure there are a couple here and there, but par for the internet is far, far lower (higher? maybe a golf analogy was a bad idea) than what we're seeing h

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Adam Gray
I'm curious why you wasted your time if you have already determined that "Stateful, component-based frameworks are a terrible idea." Html5 + jQuery + Restlet is over --> http://www.restlet.org/ No framework is for everyone or even the best solution for every problem. If you have real suggestions

Re: Clarification on defining component visibility

2011-11-11 Thread Adam Gray
And, as usual, twitter ends up being faster. Thanks Igor. 8) Answer: none of the above (below?). Call override onConfigure() and call setVisible() from there. On Nov 11, 2011, at 4:14 PM, Adam Gray wrote: > Recently some co-workers and I started questioning what is the (most) corr

Clarification on defining component visibility

2011-11-11 Thread Adam Gray
Recently some co-workers and I started questioning what is the (most) correct method for determining component visibility. In the past we've gone from calling setVisible() to overriding isVisible() and now are finding some people pointed to using setVisibilityAllowed() in onBeforeRender while over

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Adam Gray
What type of collection are you using in the model object? On Wed, Jul 27, 2011 at 2:09 PM, Martin Grigorov wrote: > I didn't see the question. > > On Wed, Jul 27, 2011 at 8:42 PM, Archana.AA > wrote: > > Hi All, > > > > I am using a DropDownChoice with a list of values. The choice list come > f

Re: image from data

2011-07-02 Thread Adam Gray
Perhaps check out DynamicImageResource? On Sat, Jul 2, 2011 at 7:39 AM, Miroslav F. wrote: > Hi folks, > > I have images in database as BLOBs and retrieving it with JDBC (not good > code, just test at the moment) > with this (just snip of the code): > > conn = Utils.makeConnection();//make conne

Re: MockHttpServletRequest

2011-06-07 Thread Adam Gray
or this name. > > Please create a ticket. > > On Tue, Jun 7, 2011 at 4:11 PM, Adam Gray wrote: > > My application's base page does checking against the user agent string to > > redirect unsupported browsers to a "support" page. The problem we're > seei

MockHttpServletRequest

2011-06-07 Thread Adam Gray
My application's base page does checking against the user agent string to redirect unsupported browsers to a "support" page. The problem we're seeing is that WicketTester is using a hardcoded user agent from a crazy-old version of firefox. Is there any recommended way to specify the user-agent us

Re: JavaScript enabled or disabled

2011-05-21 Thread Adam Gray
Unless there's another way I'm not familiar with, I believe you can use getScreenHeight or getScreenWidth from ClientProperties. Someone correct me if I'm wrong, but I believe these values will still be -1 (their default) if javascript is disabled. Be sure to add: getRequestCycleSettings().setGat

Re: ComponentFeedbackPanel works during ajax validation, not on form submit

2011-05-05 Thread Adam Gray
Wow. I guess that's me not understanding the inner-workings of list view. Thanks for pointing me at the list view. Once that was pointed out, the documentation explained it very well. Knowing where to look seemed to be what was blocking me. Thanks again. ~Adam On Thu, May 5, 2011 at 11:03 AM

Re: ComponentFeedbackPanel works during ajax validation, not on form submit

2011-05-05 Thread Adam Gray
I believe that method is intended to render a placeholder tag when a component isn't visible on the page to allow ajax updates. My ajax validation works great already. The component feedback panel is never hidden, it just doesn't get picked up as a valid destination for feedback messages on a non

ComponentFeedbackPanel works during ajax validation, not on form submit

2011-05-04 Thread Adam Gray
I have a component hierarchy that looks (grossly oversimplified) like: page --form components --form barcodeTextField barcodeFeedbackPanel TextField barcodeField = new TextField("barcode"); barcodeField.add(new StringValidator.ExactLengthValidator(11)); form.add(barcodeField); Compon