Unauthorized page instantiation, why does it occur and how to prevent it?

2010-07-09 Thread Martin Makundi
Hi! I get lots of these exceptions when persumably people use our application in produciton from bookmarks pointing to dynamic links and their session is out. How can this happen? The particular page requires authentiacation which is handled via

Re: Unauthorized page instantiation, why does it occur and how to prevent it?

2010-07-09 Thread Martin Makundi
Or is it possible that this is an OLD instance of a page (in PAGEMAP) and it is being rendered even if user is no longer authorized??? How can this be legal? Is it a bug or am I missing a setting somewhere? ** Martin 2010/7/9 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! I get lots

Re Refreshing a DropDownChoice - CRUD Pattern

2010-07-09 Thread Nivedan Nadaraj
Hi All, I have an issue with refreshing a DropDownChoice control. I would like the dropdown to have the Choose One option aevery time I want to a particular action like Create new account etc. I think it is how I designed my CRUD pattern, that I have this issue. Would like to get your

AW: AW: Serialization of injected EJBs

2010-07-09 Thread Harald Wellmann
Ok, I see what you mean and I think that would work. Only I'm not so sure about the couple of hours (have you looked at CDI BeanManager...?) and with that approach, I would end up having 3 proxies between my Wicket component and my EJB. Anyway, this is probably faster to implement than waiting

Re: AW: Serialization of injected EJBs

2010-07-09 Thread kbs
I am not sure if this is related but AFAIR we faced a similar problem with GlassFish V2.1 and determined the root cause of this to https://issues.apache.org/jira/browse/WICKET-2416 The exception stack trace may be different in V3 so I am not sure if it is same issue. Regards, Kulbhushan --

AW: AW: Serialization of injected EJBs

2010-07-09 Thread Harald Wellmann
Thanks for pointing this out, however, I think it's a related but different issue. I did not notice any classloader problems in my case, and anyway, we deploy our entire application (web pages, EJBs and entity classes) in a single WAR. Regards, Harald -Ursprüngliche Nachricht- Von:

Re: Wicket wicket-contrib-tinymce populate Styles drop-down

2010-07-09 Thread Peter Miklosko
I'm sort of dubious about your suggestion as I don't see any direct connection between this DropDownChoice and TinyMCE editor from wicket-contrib-tinymce. Would you care to explain little more about integration? Peter From: Pedro Santos pedros...@gmail.com

SV: Wicket wicket-contrib-tinymce populate Styles drop-down

2010-07-09 Thread Wilhelmsen Tor Iver
I'm sort of dubious about your suggestion as I don't see any direct connection between this DropDownChoice and TinyMCE editor from wicket-contrib- tinymce. I think Pedro misunderstood you and therefore posted code for changing the Wicket style which is something else. - Tor Iver

Re: about treeLink

2010-07-09 Thread 蔡茂昌
thank you. 2010/7/9 Jeremy Thomerson jer...@wickettraining.com http://www.wicket-library.com/wicket-examples/nested/ On Thu, Jul 8, 2010 at 9:09 PM, 蔡茂昌 caimaochang.c...@gmail.com wrote: is there any complete sample or demo of the treeLink thank you. - -- Jeremy

Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-09 Thread Conny Kühne
vov wrote: But question is still open:) Look to example public static boolean visibleFlag = true; public VisibilityButtonTest() { FormVoid form = new FormVoid(form); add(form); AjaxButton ajaxButton = new AjaxButton(button1) { @Override public

Re: How to combine a form and a link that submit the same page?

2010-07-09 Thread Kevin Stembridge
Thanks for the pointers Martin. Nope, I'm not parsing parameters manually. I don't have paging buttons, just links that are not part of a form. I decided to sidestep the whole issue by using the DataView and DataProvider classes. I was hoping to do things in a more stateless way but I guess

Re: How to combine a form and a link that submit the same page?

2010-07-09 Thread Martin Makundi
If you want to make dataview stateless I believe you can achieve it with some url encoding scheme... ;] 2010/7/9 Kevin Stembridge kevin.stembri...@gmail.com: Thanks for the pointers Martin. Nope, I'm not parsing parameters manually. I don't have paging buttons, just links that are not part of

Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-09 Thread vov
It can't work. Please, see org.apache.wicket.Component.internalBeforeRender() method. Method onBeforeRendering() colling only in case when visibility of component is true. In our example boolean variable 'available' false by default. This mean that component never be rendered. Can someone

OT: Trying to temporary unsubscribe...

2010-07-09 Thread Wilhelmsen Tor Iver
... but keep getting stopped in the spam filters when sending confirmation. Any trick to make it actually get through? Med vennlig hilsen TOR IVER WILHELMSEN Senior systemutvikler Arrive AS T (+47) 48 16 06 18 E-post: toriv...@arrive.no http://www.arrive.no http://servicedesk.arrive.no

Re: Wicket wicket-contrib-tinymce populate Styles drop-down

2010-07-09 Thread Pedro Santos
Hi, I misunderstood your question. I was think you are asking about session style. On Fri, Jul 9, 2010 at 5:30 AM, Peter Miklosko peter_b...@yahoo.com wrote: I'm sort of dubious about your suggestion as I don't see any direct connection between this DropDownChoice and TinyMCE editor from

Re: Wicket wicket-contrib-tinymce populate Styles drop-down

2010-07-09 Thread sander v F
I think you could do that like this: TinyMCESettings settings = new TinyMCESettings(); settings.register(new Plugin(style_formats) { @Override protected void definePluginSettings(StringBuffer buffer) { define(buffer, style_formats, [ + {title : 'Bold text', inline : 'b'}, + {title : 'Red text',

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread avrahamr
But a different page instance for each person or browser section is expected by any Java developer. What is not so much expected is that for the same person, in the same browser session, you can't rely on natural object identity, like Martin said, thanks to serialization... But you can rely on

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread James Carman
The equals()/hashCode() should already work as expected for components On Jul 9, 2010 8:28 AM, avrahamr avrah...@gmail.com wrote: But a different page instance for each person or browser section is expected by any Java developer. What is not so much expected is that for the same person, in the

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread Martin Makundi
But changes will not propagate. You might think that you are transferring money from account A to account B but are transferring money from account A' to account B' so you need to consider this when implementing. Ofcourse it's a dumb example nobody implements such transactions in session

Re: Wicket wicket-contrib-tinymce populate Styles drop-down

2010-07-09 Thread Peter Miklosko
I got following error from it ERROR - Objects- Error serializing object class com.admin.item.EditItemPage [object=[Page class = com.admin.item.EditItemPage, id = 4, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread 西门烧雪 Simon
I understand by doing the way Jeremy Thomerson suggests (onSubmit or onClick), Wicket will not create a new page instance upon request. But, I am experiencing this not so much expected scenario that for the same person, in the same browser session, click the browser's Refresh Button, or F5, a new

SV: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread Wilhelmsen Tor Iver
But, I am experiencing this not so much expected scenario that for the same person, in the same browser session, click the browser's Refresh Button, or F5, a new page instance is created. Is the latter behavior expected? For bookmarkable page URLs: Yes. Look into how versioned-setting and

Re: using comet to find all clients using a page

2010-07-09 Thread david_
you can solve this yourself by managing a Map where you put in the users in the constructor of the page on session expiration, you remove the user from the Map 2010/7/9 fachhoch [via Apache Wicket] ml-node+2283204-669277367-232...@n4.nabble.comml-node%2b2283204-669277367-232...@n4.nabble.com

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread James Carman
For session-level stuff, store the values in the session, not a component/page instance. On Jul 9, 2010 8:36 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: But changes will not propagate. You might think that you are transferring money from account A to account B but are

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread 西门烧雪 Simon
I have found only this link http://www.systemmobile.com/?p=249 and I will try find my Wicket in Action book for the terms you mentioned. Any good links for explaining the versioned-setting and statefulness concepts? Thanks On Fri, Jul 9, 2010 at 8:51 AM, Wilhelmsen Tor Iver toriv...@arrive.no

Re: AjaxButton documentation error?

2010-07-09 Thread Igor Vaynberg
sounds like a bug, file a jira. -igor On Thu, Jul 8, 2010 at 6:48 PM, Chris Colman chr...@stepaheadsoftware.com wrote: The JavaDoc for AjaxButton (and AjaxSubmitButton) says: A button that submits the form via ajax. Since this button takes the form as a constructor argument it does not need

Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread Ian Marshall
avrahamr wrote: But you can rely on object values, so if you correctly implement hash and equals it should be fine. I too have a problem with multiple calls to a WebPage constructor I have a bookmarkable page, a link to which can be followed from a verification E-mail which the app

Re: AW: Serialization of injected EJBs

2010-07-09 Thread Igor Vaynberg
well, i recently wrote a wicket-ioc module for seam and it took me a couple of hours :) -igor On Fri, Jul 9, 2010 at 12:52 AM, Harald Wellmann harald.wellm...@multi-m.de wrote: Ok, I see what you mean and I think that would work. Only I'm not so sure about the couple of hours (have you looked

AW: AW: Serialization of injected EJBs

2010-07-09 Thread Harald Wellmann
And Seam uses CDI/Weld, right? So your module might solve my problems... Is it public? Regards, Harald Von: Igor Vaynberg [igor.vaynb...@gmail.com] Gesendet: Freitag, 9. Juli 2010 18:06 An: users@wicket.apache.org Betreff: Re: AW: Serialization of

Re: AW: Serialization of injected EJBs

2010-07-09 Thread Igor Vaynberg
no, the module is for seam 2.1 which does not use weld. -igor On Fri, Jul 9, 2010 at 10:55 AM, Harald Wellmann harald.wellm...@multi-m.de wrote: And Seam uses CDI/Weld, right? So your module might solve my problems... Is it public? Regards, Harald

Re: Unauthorized page instantiation, why does it occur and how to prevent it?

2010-07-09 Thread Martin Makundi
Ok. My authentication scheme was not strict enough, this fixed the problem: /** * @see org.apache.wicket.authorization.strategies.page.AbstractPageAuthorizationStrategy#isActionAuthorized(org.apache.wicket.Component, org.apache.wicket.authorization.Action) */ @Override public boolean

Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-09 Thread Sven Meier
callOnBeforeRenderIfNotVisible() ? On 07/09/2010 12:26 PM, vov wrote: It can't work. Please, see org.apache.wicket.Component.internalBeforeRender() method. Method onBeforeRendering() colling only in case when visibility of component is true. In our example boolean variable 'available' false by

Re: using comet to find all clients using a page

2010-07-09 Thread fachhoch
In my case I have to refresh some pages based on some business logic, mine is a workflow applicaiton , workflow creates tasks for user.I show users tasks, these user task pages are implemented in wicket. we also have some admin functionality where admin can delete the task ,supposeadmin

Issues with form submit, not retaining values from session without ajax

2010-07-09 Thread Brown, Berlin [GCG-PFS]
I have a page that has a html components like a select list and radio buttons. And those components will invoke the onchange event to submit the form or move to the next page. It doesn't look like I am moving to the next page. My model values dont' seem to be retained, at least they aren't

Re: Issues with form submit, not retaining values from session without ajax

2010-07-09 Thread Sven Meier
Hi, public void onSelectionChanged(Object newSel) { this.setResponsePage(TestPage.class); } you're telling Wicket to switch to a new instance of TestPage on each selection change. Just leave this method empty and Wicket will re-render the current page, retaining the current