Re: Too Many Open Files Wicket 1.4.1

2009-12-30 Thread Ilja Pavkovic
https://issues.apache.org/jira/browse/WICKET-2534 Am Mittwoch, 30. Dezember 2009 04:29:00 schrieb Doug Leeper: > Was a JIRA ticket ever created for this? I couldn't find any thing related > to it. > > Is any one else seeing this issue? I just ran across it in our dev env > after redeploying my

Re: Tag Oriented Development

2009-12-30 Thread Ernesto Reinaldo Barreiro
IMHO. The good things about standards is that they introduce some order in places where otherwise complete chaos would arise... e.g. by several software vendors implementing similar functionality on non-compatible ways. The bad thing about standards is specifications have to be maintained and that

Re: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupContainer.add(Component) ?

2009-12-30 Thread Giovanni
I got the same error today, trying to use the JmxPanel with Wicket 1.3.7. Any idea about how to solve this issue? I would really like to use the JmxPanel in my application. Best regards, giovanni From: Trent Larson To: users@wicket.apache.org Sent: Wed, Ma

Re: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupContainer.add(Component) ?

2009-12-30 Thread Gerolf Seitz
i will try to find some time to take a look at it tonight. gerolf On Wed, Dec 30, 2009 at 11:51 AM, Giovanni wrote: > I got the same error today, trying to use the JmxPanel with Wicket 1.3.7. > > Any idea about how to solve this issue? > > I would really like to use the JmxPanel in my applica

generics and models that take X as model object but return Y

2009-12-30 Thread Sam Zilverberg
What's the best practice when using generics with models that take some object but return another type of object? examples: When you have a collection and need to convert it to a list for listview purposes. When you have some object and you need a wrapping model that creates some string representa

Re: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupContainer.add(Component) ?

2009-12-30 Thread Giovanni
Gerolf, I solved the problem. It was my wrong configuration of libraries on tomcat. regards giovanni From: Gerolf Seitz To: users@wicket.apache.org Sent: Wed, December 30, 2009 1:36:56 PM Subject: Re: wicketstuff-jmx-panel in Wicket 1.4, missing a MarkupCon

error page

2009-12-30 Thread tubin gen
We created our custom error page so any time error happens wicket redirects to this error page , I want also want to display the exception stack trace in this page , please tell me how to do this ?

Re: Too Many Open Files Wicket 1.4.1

2009-12-30 Thread adamatmagpie
I was able to track down the source of our problem and I did create a https://issues.apache.org/jira/browse/WICKET-2534 JIRA issue which was patched in Wicket 1.4.4. It boiled down to a resource leak in the URLResourceStream which is used by wicket to get access to the lastModifiedTime of jar fi

Initial page - state question

2009-12-30 Thread Jens Zastrow
Hi wicket-experts, If i access my wicket page by an url containing the wicket-page version-informations all ajax-modificatins (tree-selections, form-input) are still available after pressing the 'reload' button. Example: http://localhost:8080/?wicket:interface=:2 Unfortunly this does hold

Changing output of ListView, when the list is empty?

2009-12-30 Thread Jerouris
Hello Wickets, Does anyone know can I change the output of a listView when the included list is empty? It would be nice for example, when the list is empty, to show a message type "Sorry, no results". Best, Jerry

Re: Changing output of ListView, when the list is empty?

2009-12-30 Thread Martin Makundi
You can have: add(listview = listview(...) { // Show list only if it has stuff isvisible() { return !getList().isEmpty(); } } add(label(..., "Sorry, no results") { // Show label only if list is empty isvisible() { return listview.getList().isEmpty(); } } ** Martin 2009/12/30 J

Re: generics and models that take X as model object but return Y

2009-12-30 Thread Igor Vaynberg
/** * Simplifies implementing wrapper models that adapt from model object of one type to another * * @author igor.vaynberg * * @param *new type * @param *old type */ public abstract class AdapterModel implements IModel { private static final long serialVersion

Re: error page

2009-12-30 Thread Igor Vaynberg
reqauestcycle.onruntimeexception(exception e) { return new myerrorpage(e); } -igor On Wed, Dec 30, 2009 at 7:22 AM, tubin gen wrote: > We created our custom error page so any time error happens wicket redirects > to this error page , I want also want to display the exception stack trace > in thi

Re: Too Many Open Files Wicket 1.4.1

2009-12-30 Thread Igor Vaynberg
we had to revert a part of that patch in 1.4.5 to fix a resource streaming problem. please check with that. -igor On Wed, Dec 30, 2009 at 8:02 AM, adamatmagpie wrote: > > I was able to track down the source of our problem and I did create a > https://issues.apache.org/jira/browse/WICKET-2534 JIR

Re: Initial page - state question

2009-12-30 Thread Igor Vaynberg
while not being an "official" solution it works. -igor On Wed, Dec 30, 2009 at 8:09 AM, Jens Zastrow wrote: > Hi wicket-experts, > > If i access my wicket page by an url containing the wicket-page > version-informations all ajax-modificatins (tree-selections, form-input) > are still available af

Re: Changing output of ListView, when the list is empty?

2009-12-30 Thread Jerouris
Thanks Martin, It's a nice idea to create a panel with these to components. Jerry 2009/12/30 Martin Makundi > You can have: > > add(listview = listview(...) { // Show list only if it has stuff > isvisible() { > return !getList().isEmpty(); > } > } > add(label(..., "Sorry, no results") {

creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
Is there a way to create an item only after a form has been submitted? For example, how can I do the following: ---Java Psuedo-Code--- Panel panel1 = new RandomPanel("panel1"); add(panel1); add(new AjaxButton("button", form){ onSubmit(AjaxRequestTarget target, Form form){ Panel

Re: creating item after form is submitted via ajax

2009-12-30 Thread James Perry
you have not added panel2 and you would need to it to panel1. I.e. panel1.add(panel2) why don't you add it on page construction and then change its visibility on form submit? best, james. 2009/12/30 wic...@geofflancaster.com : > Is there a way to create an item only after a form has been submitt

Re: creating item after form is submitted via ajax

2009-12-30 Thread Igor Vaynberg
this should help http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ the trick is to add the markup that the component is anchored to using javascript. -igor On Wed, Dec 30, 2009 at 9:13 AM, wic...@geofflancaster.com wrote: > Is there a way to create an ite

Re: Too Many Open Files Wicket 1.4.1

2009-12-30 Thread adamatmagpie
Just took a quick look and it seems that our problem should still be solved. As a recap - were running into a problem with the URLConnection.getLastModfiedTime(), which under the hood opens a connection to a jar file using the JARURLConnection whose close() method is hidden. Combine this with the

Re: creating item after form is submitted via ajax

2009-12-30 Thread Scott Swank
Alternately, you can put an EmptyPanel in as a placeholder until you have Panel2. ---Java Psuedo-Code--- Panel panel1 = new RandomPanel("panel1"); panel1.add(new EmptyPanel("panel2")); add(panel1); add(new AjaxButton("button", form){ onSubmit(AjaxRequestTarget target, Form form){ Pa

How to partially update a popuppage from another page with ajax?

2009-12-30 Thread Richard Wiesinger
Hi, in my app I have a page A and page B which is opened as a Popup. I know how to update the whole page B from page A. I know how to partially update page B from within page B (for example with an AjaxLink). But is it possible to partially update page B from page A? It would be perfect to have a

Re: SOLVED: Is AnnotApplicationContextMock() broken in Wicket 1.4.5? @l

2009-12-30 Thread Murat Yücel
It doesnt work in all cases. You therefore need to set the wicket application before running the code below. /Murat 2009/12/28 Alec Swan : > The problem was that the test case was creating AnnotApplicationContextMock > before creating the WebApplication itself. The following code worked for me: >

Re: creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
I'm trying this but the panel isn't being displayed. Should I also see the contents of the panel displayed in the tags on the "wicket ajax debug window"? As of right now, all I see in the tags is the javascript to add the markup. Original Message: - From: Igor Vaynberg igor.vaynb.

Re: creating item after form is submitted via ajax

2009-12-30 Thread Jeremy Thomerson
target.add(panelFoo) -- Jeremy Thomerson http://www.wickettraining.com On Wed, Dec 30, 2009 at 12:57 PM, wic...@geofflancaster.com < wic...@geofflancaster.com> wrote: > I'm trying this but the panel isn't being displayed. Should I also see the > contents of the panel displayed in the tags on

Re: creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
AjaxRequestTarget doesn't have an "add" method. Original Message: - From: Jeremy Thomerson jer...@wickettraining.com Date: Wed, 30 Dec 2009 13:28:26 -0600 To: users@wicket.apache.org, wic...@geofflancaster.com Subject: Re: creating item after form is submitted via ajax target.add

Re: creating item after form is submitted via ajax

2009-12-30 Thread Jeremy Thomerson
addComponent - sorry - the point is, you need to add that panel to the ajax response so that it's actually repainted. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Dec 30, 2009 at 1:46 PM, wic...@geofflancaster.com < wic...@geofflancaster.com> wrote: > AjaxRequestTarget doesn't hav

Re: creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
I'm doing that. I'm doing what the link referenced earlier in this thread said to do. Original Message: - From: Jeremy Thomerson jer...@wickettraining.com Date: Wed, 30 Dec 2009 13:50:35 -0600 To: users@wicket.apache.org, wic...@geofflancaster.com Subject: Re: creating item after f

Re: error page

2009-12-30 Thread fachhoch
what is the difference between @Override public IApplicationSettings getApplicationSettings() { IApplicationSettings settings= super.getApplicationSettings(); settings.setInternalErrorPage(internalErrorPage) return settings;

Re: RequiredTextField

2009-12-30 Thread Igor Vaynberg
you have to tell wicket that it should convert the string into an integer by either calling settype(integer.class) on the textfield or using the constructor that takes the class type arg -igor On Wed, Dec 30, 2009 at 12:52 PM, Josh Glassman wrote: > Hi all, > > I am having a problem with Ajax up

Re: RequiredTextField

2009-12-30 Thread Igor Vaynberg
alternatively you can let your testmodel implement IObjectClassAwareModel and return the type of object that the model contains so that wicket can do the conversion automatically. this is why you dont need to do this explicitly when using propertymodels directly. -igor On Wed, Dec 30, 2009 at 1:0

Re: RequiredTextField

2009-12-30 Thread Josh Glassman
Thanks Igor! On Wed, Dec 30, 2009 at 4:02 PM, Igor Vaynberg wrote: > alternatively you can let your testmodel implement > IObjectClassAwareModel and return the type of object that the model > contains so that wicket can do the conversion automatically. this is > why you dont need to do this expli

selected value in a form that is in a modal dialog

2009-12-30 Thread Roger Ball
*I am trying to capture the selected value in a form that is in a modal dialog. I want to capture this value and update an input text field in the "host" page after the dialog is closed. Has anyone done this? Any example code* -- Roger Ball Creoss Web UI Development - SBIR 1745 Shea Center Dr., S

[announce] Wicket Stuff Core - JavaEE Inject

2009-12-30 Thread Major Péter
Hi all, I am proud to announce the semi-new JavaEE Inject project in Wicket Stuff Core, which was formerly known as wicket-contrib-javaee. The goal of the project: Make the @EJB, @Resource and @PersistenceUnit annotations available for Wicket users, to make the development more easier. This means

question about swarm

2009-12-30 Thread Sam Barrow
I hope this is the right list for wasp/swarm. How do i manage permissions for an anonymous subclass? I have a page called ItemPage. I can view ItemPage, but if I try to redirect to an anonymous subclass of ItemPage, i get an access denied error. this works: setResponsePage(new CreateItemPage(getP

wicketstuff portlets - where did it go?

2009-12-30 Thread Steve Swinsburg
Hi all, The link from this page: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-portlets references this spot in SVN: http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-13/wicket-portlets which doesn't exist. Anyone know where it went or have a copy of it? I

Re: wicketstuff portlets - where did it go?

2009-12-30 Thread Steve Swinsburg
Ah looks like I may have found it: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/attic/wicket-portlets/ On 31/12/2009, at 5:18 PM, Steve Swinsburg wrote: > Hi all, > > The link from this page: > http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-portlets > > references th