Re: production quality wicket applications running on GAE

2010-07-16 Thread Richard Nichols
Since I replied to that post, I've read in other threads about the notion of using a Memcache based PageStore on GAE. This may eliminate some of the issues I had with GAE/Wicket. I haven't had a chance to experiment since. Maybe someone else could comment if they've got production sites running

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Nivedan Nadaraj
Hi Thanks for the pointer. I did read through models and LoadableDetachableModel. Not sure if this model addresses the problem at hand. Isn't LDM related to performance and resoles Serialization issues? In the same note I came across Chaining of models. or Nesting of Models...can you/someone give

Browser Back Button and WicketTester

2010-07-16 Thread Harald Wellmann
Does WicketTester emulate the browser back button? E.g. tester.submitForm(myform); tester.goBack(); tester.submitForm(myform); // assert correct solution of double submit problem The Javadoc comment for WicketTester.NonPageCachingDummyWebApplication mentions the back button and

Re: Models and panel updates

2010-07-16 Thread Arjun Dhar
Help me understand this, An AjaxBased components send update events as they change! That means except for SAVE having to save the data in one ajax request you dont need the other fields being AJAX based. See onAfterRender() this is able to give you the updated value as it happens: public

Re: IPropertyReflectionAwareModel

2010-07-16 Thread Uwe Schäfer
Igor Vaynberg schrieb: no reason that i can see, file a jira. cant be fixed in 1.4 though. WICKET-2947. yes, would be a breaking change. thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread James Carman
Your form can edit two different objects. It will edit whatever you bind your fields to On Jul 16, 2010 4:23 AM, Nivedan Nadaraj shravann...@gmail.com wrote: Hi Thanks for the pointer. I did read through models and LoadableDetachableModel. Not sure if this model addresses the problem at

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Nivedan Nadaraj
Thanks. How do i let the form know that it has one or more models? In the above I invoke the super(id, new CompoundPropertyModelStudy(study)); So this wraps the model as study. How will be able to add the second model in the same manner? If it sounds too basic do bear with me I will experiment as

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Jeremy Thomerson
Either create a model object that contains your study and foo objects, or hold an IModelfoo as a private variable. Remember it's just regular java, so you can use member variables. Just don't forget to detach any model you hold as a variable manually. Jeremy Thomerson -- sent from my smartphone -

WicketPortlet and Custom Modes

2010-07-16 Thread Gareth Western
Hi All, I've recently started using Wicket to create some Portlets for WebSphere Portal. The basic examples work great, however I've hit a small problem when trying to switch portlet modes. How do I link the portlet mode with a given page? Right now all the standard modes (VIEW, EDIT, HELP) all

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Nivedan Nadaraj
Hi Jeremy, Nice I follow you now. I can have a container java class and have any number of member variables which in turn can be a hibernate entity and a regular java bean. The container java class will be the model. And on detach; i would have to have the container java class extend IModel and

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Pedro Santos
Hi Nivedan, Jeremy write IModelfoo as a private variable and James Your form can edit two different objects. It will edit whatever you bind your fields to If you have an form with some fields for some bean, and other fields for other beans, you can do something like: class panel { private

FormTester.submitLink located outside of the form tags miss the update

2010-07-16 Thread Andrea Selva
Hi list, I'm new to wicket. I've some problem with a Formteser.submitLink that should sumbit a form throught a link that stay outside the form. I've played with the wicket provided test case org.apache.wicket.markup.html.link.submitLink.FormPage and FormPageTest. in the FormPage I've changed the

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread James Carman
You could put your components for editing the two different objects onto two different panels, which each have a CPM inside your form. On Fri, Jul 16, 2010 at 7:29 AM, Nivedan Nadaraj shravann...@gmail.com wrote: Thanks. How do i let the form know that it has one or more models? In the above I

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Nivedan Nadaraj
HI Pedro Thanks for taking the time. I really appreaciate this community and love it. What Jeremy mentioned provided the solution where in the we let wicket use the hierarchy to use the model class that contains other beans and introspect the property expression and set/get values. That way the

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Nivedan Nadaraj
James Thanks mate. I have couple of options i guess that is what pedro meant as well. I guess Jeremy's solution is what i was looking for. in that the form instance will have a CPM that refers a container bean that has members. The solution u provided also is the identical but the members are in

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread nino martinez wael
Hmm do you end up with an exception or? 2010/7/15 Martin Makundi martin.maku...@koodaripalvelut.com Hi! I would like to avoid this error, to prevent the render alltogether. How can I do that? 2010-07-15 17:15:52,117 75919560 [24056...@qtp-13963314-568] ERROR RequestCycle - Component

Re: Browser Back Button and WicketTester

2010-07-16 Thread Igor Vaynberg
no, it does not. its a testing tool for simple cases. -igor On Fri, Jul 16, 2010 at 1:38 AM, Harald Wellmann harald.wellm...@multi-m.de wrote: Does WicketTester emulate the browser back button? E.g.   tester.submitForm(myform);   tester.goBack();   tester.submitForm(myform);   // assert

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Martin Makundi
I get this exception.. I don't want it ;] I want wicket to serve onunauthorizedaccess page. ** Martin 2010/7/16 nino martinez wael nino.martinez.w...@gmail.com: Hmm do you end up with an exception or? 2010/7/15 Martin Makundi martin.maku...@koodaripalvelut.com Hi! I would like to avoid

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread nino martinez wael
I would have thought that wicket auth would pick it up and intercept the request in the request cycle and redirect.. Aparrently the last bit(redirecting) are missing.. You should be able to implement this yourself.. I know this is vague. I'd start by looking in the source of wicket auth.. regards

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Martin Makundi
Do you have an idea where the leak occurs so I can prevent this? ** Martin 2010/7/16 nino martinez wael nino.martinez.w...@gmail.com: I would have thought that wicket auth would pick it up and intercept the request in the request cycle and redirect.. Aparrently the last bit(redirecting) are

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Pedro Santos
Hi Martin, the AuthorizationException handle mechanism that redirect response to the AccessDeniedPage is implemented at AbstractRequestCycleProcessor response method. You can set the onunauthorizedaccess page at the accessDeniedPage property on the ApplicationSettings. I don't understand what do

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Martin Makundi
Hi! This is what I have: /** * @see org.apache.wicket.RequestCycle#onRuntimeException(org.apache.wicket.Page, java.lang.RuntimeException) */ @Override public Page onRuntimeException(Page page, RuntimeException e) { if ((e instanceof PageExpiredException)