Listview containing links not working, when created through AJAX update

2012-10-09 Thread Anders Sørensen
I have an application which worked in Wicket 1.5.x, but something seems to be broken, after updating to 6.1.1. I have a table listing machines on the left side. When an item is clicked, I update a table on the right using AJAX. This updated table contains a lot of AjaxLinks, but none of the

Re: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-12-16 Thread Anders Peterson
:marketWeight But the HashMap containing parameter values ONLY contain this: {instruments:0:marketWeight=[17.602]} This results in me getting null as FormComponent input. Anyone know what I've done wrong? /Anders On 2011-10-13 13:46, Anders Peterson wrote: Here the (simplified) code that creates

Solved: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-12-16 Thread Anders Peterson
, and it was in a ListView so I had several of them. I guess something related to replacing the name/id of a component changed from 1.4 to 1.5. /Anders On 2011-12-16 14:15, Anders Peterson wrote: Hello again, I still have this problem... (been working on other things) I've tracked

Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-10-13 Thread Anders Peterson
, or is there a difference between 1.4 and 1.5 that I've missed? /Anders - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-10-13 Thread Anders Peterson
Here the (simplified) code that creates the ListViev, TextFields and Label. /Anders final MyPageForm tmpForm = new MyPageForm(ID.FORM); this.add(tmpForm); final ContextLabelNumber tmpTotalWeightsLabel = new ContextLabelNumber(ID.TOTAL_WEIGHTS, new PropertyModelNumber

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Anders Smestad
But even when I follow the guidelines from the wicketstuff images examples, I get the WARN - ResourceReferenceRegistry - Resource reference not added to registry. reference.canBeRegistered() == false Why cannot a shared reference be registered? A On Mon, Jul 4, 2011 at 10:41 PM, Anders

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Anders Smestad
. But as I said I need to look in this code first before I can comment. I personally don't use SharedResourceReferences in my app and thus never faced this issue. On Tue, Jul 5, 2011 at 10:13 AM, Anders Smestad anders.smes...@gmail.com wrote: But even when I follow the guidelines from the wicketstuff

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Anders Smestad
to AjaxRequestTarget with Wicket 1.5-RC5.1 there is org.apache.wicket.markup.html.image.Image.shouldAddAntiCacheParameter() which you can override and say to not add this parameter for images which you think should not be updated On Tue, Jul 5, 2011 at 11:35 AM, Anders Smestad anders.smes...@gmail.com

Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Anders Smestad
Hi. I have a simple (test) page with an ajax link that displays a modal window when clicked. The modal window contains some text and an image-link. The image is added to a link as link.add(new Image(image, sharedResourceReference); When displaying the modal window, everything displays

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Anders Smestad
. On Mon, Jul 4, 2011 at 6:42 PM, Anders Smestad anders.smes...@gmail.com wrote: Hi. I have a simple (test) page with an ajax link that displays a modal window when clicked. The modal window contains some text and an image-link. The image is added to a link as link.add(new Image(image

SubmitLink and popup window

2010-03-04 Thread Anders Sørensen
popperupper()); }} I must however admit, I'm not quite following the example :-$ Med venlig hilsen/Best regards Anders Sørensen

Re: SubmitLink and popup window

2010-03-04 Thread Anders Sørensen
Hi Jeremy, What a simple solution. If you just knew what I have tried. Many, many thanks. Med venlig hilsen/Best regards Anders Sørensen On Thu, Mar 4, 2010 at 9:35 AM, Jeremy Thomerson jer...@wickettraining.comwrote: Simply add target=_results in your form tag. -- Jeremy Thomerson

Submitlink and show popup page

2010-03-01 Thread Anders Sørensen
popperupper()); }} I must however admit, I'm not quite following the example :-$ Med venlig hilsen/Best regards Anders Sørensen

Re: applet in wicket .. exception thrown ...

2009-12-16 Thread Anders Sørensen
this in my HTML file... applet code=HelloWorld.class width=150 height=25 / but still i get a class not found exception , why is that how do i resolve it ??? any clue ?? -- Med venlig hilsen/Best regards Anders Sørensen

Problems with displaying modal window

2009-12-07 Thread Anders Sørensen
for this is, that I display MathML on the page. The modal window however does not contain MathML - it's just regular html. Environment: Wicket 1.4.3 JDK 1.6.0_17 Firefox 3.5.5 Does anybody have any input on this? -- Med venlig hilsen/Best regards Anders Sørensen

java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/PropertyResolver

2009-11-03 Thread Anders
My environment: . Apache Tomcat/6.0.18 . JDK 1.6.0_12-b04 I got this weird message in tomcat log, too: Nov 4, 2009 12:13:03 AM org.apache.catalina.startup.HostConfig checkResources INFO: Reloading context [/acm] Nov 4, 2009 12:13:03 AM org.apache.catalina.core.ContainerBase stop INFO: Container

Problems with displaying modal window

2009-11-02 Thread Anders Sørensen
for this is, that I display MathML on the page. The modal window however does not contain MathML - it's just regular html. Environment: Wicket 1.4.3 JDK 1.6.0_16 Firefox 3.5.4 Does anybody have any input on this? -- Med venlig hilsen/Best regards Anders Sørensen

NullPointException in subclass of FormComponentFeedbackBorder

2009-09-27 Thread Anders
Hi, I'd like to customize FormComponentFeedbackBorder class to provide a error icon, so I extend FormComponentFeedbackBorder class and copy FormComponentFeedbackBorder.html from wicket source. I modify FormComponentFeedbackBorder.html to add below: wicket:border span

Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Anders
Hi, I can get the user id attribute from my authenticatedWebSession in a role-needed page. But I can't get user id when I go to no-role-needed page. Do I need to override newSession() method in WebApplication? Please help me~ Belows are my classes: public class HelloWorldApplication extends

Wicket + Spring Security (PreAuthentication)

2009-08-28 Thread Anders
Hi, I refered to http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.htmland wicket-spring example web application and it works. Now my company has a single-sign on web page already, like https:///login.cgi. This SSO web page will set cookies and return a token after login.

Re: Have you ever run this example ?

2009-08-28 Thread Anders
I don't see any ctx variable in that web page. On Fri, Aug 28, 2009 at 10:37 PM, Altuğ B. Altıntaş alt...@gmail.comwrote: Hi all ; I am trying to run Spring Security and Wicket-auth-roles example. Url : http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html I

Re: Have you ever run this example ?

2009-08-28 Thread Anders
+ Wicket easily. (I think) On Fri, Aug 28, 2009 at 11:33 PM, Altuğ B. Altıntaş alt...@gmail.comwrote: How can i add ctx variable ? I am new in Spring Security Thanks... 2009/8/28 Anders innocentl...@gmail.com I don't see any ctx variable in that web page. On Fri, Aug 28, 2009

About getSignInPageClass() in AuthenticatedWebApplication class

2009-08-28 Thread Anders
Hi, I'd like to ask what if the login page is external login web page? I have no idea which class should be returned in getSignInPageClass(), Please give me some advices. Thank you very much -- -- ~Mia は 最高!~ --

org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = login]]

2009-05-11 Thread Anders Peterson
What exactly does this stacktrace (below) mean? In development, eclipse jetty, the application works fine. When deployed (tomcat) the app cannot render login page (I suppose it can't render anything). /Anders WicketMessage: Exception in rendering component: [MarkupContainer [Component

Re: org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = login]]

2009-05-11 Thread Anders Peterson
Thank you, it was the security manager. On Ubuntu Server it is turned on as a default. I turned it off by editing the file /etc/default/tomcat6. Set TOMCAT6_SECURITY=no. /Anders On 11 maj 2009, at 10.24, Anders Peterson wrote: What exactly does this stacktrace (below) mean

Re: [OT] wicket users around the world

2008-12-18 Thread Anders
Taipei, Taiwan !! Taiwan is not part of China~ We are independent for long time ago! I am using Wicket for production line process.

How can I use I18N in panel before add panel to a page?

2008-11-13 Thread Anders
Hi, I writed my own wicket panel component, and this component contains a label. I use Component's getString() to set label's model, like: *//constructor* * public InvoiceWaferDataSetPanel(String id, InvoiceWaferDataSet dataSet) { super(id); setModel(new

Re: How can I use I18N in panel before add panel to a page?

2008-11-13 Thread Anders
Thank you, Jeremy. 2008/11/14 Jeremy Thomerson [EMAIL PROTECTED] Use StringResourceModel. 2008/11/13 Anders [EMAIL PROTECTED] Hi, I writed my own wicket panel component, and this component contains a label. I use Component's getString() to set label's model, like

Re: setOutputMarkupId and Ajax

2008-10-04 Thread Anders Peterson
Why can't all components always output that id? Or can't it be a global option to turn it on/off for all components? Is there some situation where you do not want that id? /Anders Igor Vaynberg wrote: like which ones? -igor On Fri, Oct 3, 2008 at 12:44 PM, Rob Sonke [EMAIL PROTECTED] wrote

Re: OnChangeAjaxBehavior in ListView

2008-10-04 Thread Anders Peterson
' was edited; therefore the refreshed components gets an incorrect value. When/if I submit the form the usual (non ajax) way everything is corrected. /Anders Anders Peterson wrote: Here the code, html and Java fragments, for the tr. /Anders Timo Rantalaiho wrote: On Mon, 29 Sep 2008, Anders Peterson

Re: OnChangeAjaxBehavior in ListView

2008-09-30 Thread Anders Peterson
Here the code, html and Java fragments, for the tr. /Anders Timo Rantalaiho wrote: On Mon, 29 Sep 2008, Anders Peterson wrote: I'm using OnChangeAjaxBehavior with a TextField. The TextField is in a table cell that is repeated using a ListView. When I change the value of one

OnChangeAjaxBehavior in ListView

2008-09-29 Thread Anders Peterson
. If I modify the first TextField then all underlying models get the same value. If I modify the second then all except the first... Anyone else seen this? Wicket 1.4M3 /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED

Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Anders Peterson
. Is this a known problem or could I be doing something wrong? /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Anders Peterson
) { super.onSelectionChanged(newSelection); ...; } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }); Nothing strange... /Anders Daan van Etten wrote: On 17 sep 2008, at 14:55, Anders

SOLVED Re: Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Anders Peterson
there! /Anders Anders Peterson wrote: This is the code that creates the DropDownChoice: myForm.add(new DropDownChoiceBLView(views, this.getPortfolio().getViews(), new ChoiceRendererBLView(toDisplayString)) { @Override protected void onSelectionChanged(BLView newSelection

Re: Wicket 1.4M3 migration

2008-07-23 Thread Anders Peterson
off where it wasn't needed. /Anders Ned Collyer wrote: I've just converted over a project to 1.4-m3 from m1. I skipped m2 because of the drastic changes between 1, 2 and 3. I must say, I think generics at a component level - when I initially started using it felt like unneeded overhead

Just switched to 1.4-M3

2008-07-18 Thread Anders Peterson
type parameter as TextField itself - the way it was in M2. (This could be defined in Element.) /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Just switched to 1.4-M3

2008-07-18 Thread Anders Peterson
Sorry... I guess generics design has been discussed enough. /Anders Igor Vaynberg wrote: On Fri, Jul 18, 2008 at 4:52 AM, Anders Peterson wrote: As it is now Component is not generified, but further down you introduce generics to some components that you feel benefit from it. I think you

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Anders Peterson
won't be using 1.4. if Wicket doesn't go for my Not sure about definitely, but if IModel isn't generified I'll evaluate other frameworks for my next project. /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

OutOfMemoryError when deploying (only)

2008-04-14 Thread Anders Peterson
of behavior would suggest that you've done something seriously/obviously wrong. But, when I run/debug the application in eclipse it behaves perfectly normal. How can I get info from Tomcat regarding what's happening? /Anders

Re: OutOfMemoryError when deploying (only)

2008-04-14 Thread Anders Peterson
Problem seems to be fixed... I was building/deploying my application using wicket 1.3.3. Tomcat on the deployment server had wicket-examples-1.3.0 installed. When I removed that the problem disappeared. /Anders Anders Peterson wrote: Hi, I've got a problem when deploying my wicket

Re: [announce] Wicket 1.3 has been branched, trunk is now 1.4

2008-04-09 Thread Anders Peterson
How far away is wicket with generics? /Anders Martijn Dashorst wrote: If you are depending on trunk and build your own Wicket versions, please note that trunk is now Wicket 1.4 and will be used for the next Wicket version. If you wish to continue building 1.3 jars then switch your local

Re: Strange Exception

2008-02-27 Thread Anders Peterson
That wasn't it. Just happened again... /Anders Anders Peterson wrote: No (don't know what it is). I think maybe this problem was caused by the RunJettyRun plugin picking up my wicket-1.3.0 jars that I had forgotten to delete from my project. I did not reference those jars, but the files

Re: Strange Exception

2008-02-27 Thread Anders Peterson
plugins and project cleaning. Then the problem disappeared. There wasn't much to clean, but I did have that older version of wicket still in the project directory. (Must have had it there since 1.3.1 was released.) /Anders Igor Vaynberg wrote: are you using class reloading filter? -igor On Sun

Strange Exception

2008-02-24 Thread Anders Peterson
= se.optimatika.blapp.gui.PgEvaluateResults, id = 4, version = 0]-image2-IResourceListener. Use Wicket 1.3.1. /Anders Feb 24, 2008 3:54:00 PM sun.reflect.NativeMethodAccessorImpl invoke0 INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog Feb 24, 2008 3:54:00

Re: How do you do this in wicket?

2008-01-14 Thread Anders Peterson
Anders Peterson wrote: Is that the problem: Do I have to call this.setResponsePage(LoginPage.class); after super.onClick(); ? Yes, that was it. Thanks Martijn and Maurice! /Anders - To unsubscribe, e-mail: [EMAIL

Re: How do you do this in wicket?

2008-01-13 Thread Anders Peterson
with the login page. /Anders Martijn Dashorst wrote: Have one session that knows when authentication has happened... public MySession extends WebSession { private String username; public void setUsername(){} public boolean isAuthenticated() { return username != null

Re: How do you do this in wicket?

2008-01-13 Thread Anders Peterson
login page, but get Page Expired. /Anders Martijn Dashorst wrote: iirc: setResponsePage(LoginPage.class); setRedirect(true); getSession().invalidate(); Martijn On 1/13/08, Anders Peterson [EMAIL PROTECTED] wrote: I have a related question. What should I do when the user logs out. Currently I

Re: How do you do this in wicket?

2008-01-13 Thread Anders Peterson
Then where do I call that invalidation code? It's not possible to override onClick() with BookmarkablePageLink. /Anders Martijn Dashorst wrote: You *MUST* redirect to a bookmarkable page, not a page instance. A page instance is always relative to your current session, which you just

Re: How do you do this in wicket?

2008-01-13 Thread Anders Peterson
() { super.onClick(); this.setRedirect(true); this.getSession().invalidate(); } Is that the problem: Do I have to call this.setResponsePage(LoginPage.class); after super.onClick(); ? (Don't have access to the code at the moment.) /Anders Martijn Dashorst wrote: If you

Re: JPA best-practices?

2007-11-13 Thread Anders Peterson
, Cayenne and others. Which would you rather depend on; exPOJO or JPA? /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Apache Wicket 1.3.0-rc1 released!

2007-11-12 Thread Anders Peterson
like it to be using a generified version of Wicket. /Anders --- http://ojalgo.org/ Martijn Dashorst wrote: This is the first release candidate for Apache Wicket we have prepared for your pleasure. It contains over 80 fixes to issues with previous releases and todo items we

Re: Wicket 1.4 expectations (was Re: Apache Wicket 1.3.0-rc1 released!)

2007-11-12 Thread Anders Peterson
you use to be up to date. The Models is probably the part of Wicket that needs generification the most. /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DataTable with DropDownChoice to set rowsPerPage

2007-08-26 Thread Jerry Anders
I would like to be able to add a dropdown to a DataTable so that a user can change the rowsPerPage. Has anyone done this before? If not, what is the best / recommended approach? I tried the following, but I get: IllegalStateException: Attempt to set model object on null model of component: