Re: "Page Expired" page with PatternDateConverter

2010-10-11 Thread Altuğ Bilgin Altıntaş
quickstart

11 Ekim 2010 16:00 tarihinde Hemant Shah  yazdı:

>  Yes, it works fine if we do not override the getConverter method. In which
> case it behaves like a normal AjaxEditableLabel, as would be expected, and
> we are using AjaxEditableLabel instances in many places in our application.
>
>
> - Hemant
>
>
> On 10/11/2010 6:24 AM, Altuğ Bilgin Altıntaş wrote:
>
>> if you don't override IConverter then everything works fine ?
>>
>> 2010/10/11 Hemant Shah
>>
>>   Altuğ, thanks for responding.
>>>
>>> There are no errors reported in the log. All the classes in the project
>>> are
>>> serializable.
>>>
>>> Could this be a bug?
>>>
>>> Regards,
>>>
>>>
>>> Hemant
>>>
>>>
>>>
>>> On 10/10/2010 5:03 PM, Altuğ Bilgin Altıntaş wrote:
>>>
>>>  Did you look at Wicket's logs ?

 Be sure serialization is done correctly.

 2010/10/10 Hemant Shah

   I am new to the Wicket framework and I hope I can get some help with a

> problem I am facing.
>
> I am using version 1.4.12.
>
> I am overriding the AjaxEditableLabel class and its overridden
> getConverter
> method is at follows:
>
>@Override
>public IConverter. getConverter(Class type) {
>return new PatternDateConverter("MM/dd/", true);
>}
>
> However, the first time in a session the component is updated, I get
> the
> "Page Expired" message.  The error results only when the getConverter
> method
> is called.
>
> Note that this happens only the first time I access it in a session. If
> I
> go to the home page and from there back to the page which contains the
> component, it works without any problems.
>
> I am not sure how to overcome this problem. I hope you guys can help.
> Thanks.
>
>
> - Hemant
>
>
>
>


Re: DropDownChoice loses Selection in Disabled Panels

2010-10-11 Thread vov

Can you write your code?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2991210.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket osgi (not Pax)

2010-10-11 Thread David Leangen

If you're already using Wicket successfully in OSGi, then I don't see what 
benefit using pax-wicket will add for you.

pax-wicket is useful to help get you going in OSGi, since the class loading / 
serialization stuff can be tricky. Sounds like you're doing ok, though.


=David



On Oct 12, 2010, at 3:09 PM, kugaprakash wrote:

> 
> Hi,
> I have multiple Wicket Applications running on different servers, each of
> them runs on OSGI/Jetty, and a Master Wicket Application also runs on
> OSGI/Jetty. Master wicket application, has its own server, where it gets the
> data from the sub servers.
> 
> Do you recommend Pax Wicket for such architechture?
> -- 
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/wicket-osgi-not-Pax-tp1893713p2991185.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket osgi (not Pax)

2010-10-11 Thread kugaprakash

Hi,
I have multiple Wicket Applications running on different servers, each of
them runs on OSGI/Jetty, and a Master Wicket Application also runs on
OSGI/Jetty. Master wicket application, has its own server, where it gets the
data from the sub servers.

Do you recommend Pax Wicket for such architechture?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-osgi-not-Pax-tp1893713p2991185.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: RadioChoice - what's wrong?

2010-10-11 Thread Jeremy Thomerson
Do you use Eclipse?  There is a compiler warning that you can turn on (it
should be on by default) that warns against this problem whenever you
may inadvertently be "hiding" other variables.  I suggest to everyone I
teach that they turn it on (and perhaps even turn it up from warning to
error), and of course, stop ignoring the little yellow squiggly lines :)

On Sun, Oct 10, 2010 at 12:47 PM, Zeldor  wrote:

>
> It does! Thanks a lot! I knew it was something stupid and trivial. Huh, but
> it should not cause that still - I was defining TextFields in same way and
> then again to add parameters and it went fine.
>
> On Sun, Oct 10, 2010 at 7:11 PM, Andrea Del Bene [via Apache Wicket] <
> ml-node+2970427-965616561-152...@n4.nabble.com
> 
> >
> > wrote:
>
> > Hello Zeldor,
> >
> > I've red your code and it seems that you define variable rc two times:
> > the first time as form private field and the second time just below
> > between braces. When onSubmit method calls rc.getModelObject() it uses
> > private field rc which was not initialized and so triggers a
> > NullPointerException. Try to remove the second type definition
> > "RadioChoice" and it should work.
> >
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


tomcat host gives 404 on dynamic resources including wicket-events.js

2010-10-11 Thread Terry

wicket 1.4 - tomcat 6.0 or 7.0

Having issue with resolving dynamic resources when deployed as virtual host
in tomcat

server.xml snippet...


  



  


both apps load with either url...
http://192.168.100.70:8080/BEMA OR http://a.bem.com:8080
http://192.168.100.70:8080/BEMB OR http://b.bem.com:8080

however - when the vitual host access is used (a.bem.com) requests for
dynamic resources produce 404 (static requests and pages load fine)

for example...http://a.bem.com:8080 ...cannot find wicket-event.js

---
Request
URL:http://a.bem.com:8080/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
Request Method:GET
Status Code:404 Not Found
---

but ...http://192.168.100.70:8080/BEMA ...finds it just fine

---
Request
URL:http://192.168.100.70:8080/BEMA/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
Request Method:GET
Status Code:200 OK
---

Same exact apps...deployed by simply renaming war file...our customer want
to deploy the exact same app on Tomcat several - but with different
configurations/resources/database

Any ideas,

Thanks,
Terry
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tomcat-host-gives-404-on-dynamic-resources-including-wicket-events-js-tp2990681p2990681.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: repaint a fragment

2010-10-11 Thread Jeremy Thomerson
On Mon, Oct 11, 2010 at 10:59 PM, fachhoch  wrote:

>
> my fragment is inside a listitem ,on click I added this listitem to taget
> nothing happened but if I call listitem.replace with new fragment it was
> adding an additional div is ths the right way to repaint fragment ?


You can call item.setOutputMarkupId(true) and add that item to the
AjaxRequestTarget to repaint it (and the frag inside it).

Jeremy Thomerson
http://www.wickettraining.com


Re: repaint a fragment

2010-10-11 Thread fachhoch

my fragment is inside a listitem ,on click I added this listitem to taget
nothing happened but if I call listitem.replace with new fragment it was
adding an additional div is ths the right way to repaint fragment ?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/repaint-a-fragment-tp2990937p2991093.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: repaint a fragment

2010-10-11 Thread Scott Swank
Exactly.

On Mon, Oct 11, 2010 at 7:24 PM, fachhoch  wrote:
>
> you mean If I put this fragment inside a webmarkupcontainer and add this
> webmarkupcontainer to target this will repaint my fragmnet ?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/repaint-a-fragment-tp2990937p2991045.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Integrating Separate Different Wicket Applications Into One

2010-10-11 Thread Nivedan Nadaraj
Hi

When you say integrate different applications, do u mean each one is a
sub-application? Do those applications extend the WicketApplication class?
If they don't then I have had some experience to integrate sub-modules into
one main application. Let me know if that is what you mean. Otherwise I
guess some of the experts here would help out.

Cheers


On Tue, Oct 12, 2010 at 2:06 AM, kugaprakash wrote:

>
> Hi,
> Can you please let me know?
> thanks
> Kuga
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Integrating-Separate-Different-Wicket-Applications-Into-One-tp1889319p2990281.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: repaint a fragment

2010-10-11 Thread fachhoch

you mean If I put this fragment inside a webmarkupcontainer and add this
webmarkupcontainer to target this will repaint my fragmnet ?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/repaint-a-fragment-tp2990937p2991045.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




Re: repaint a fragment

2010-10-11 Thread Scott Swank
No html is rendered to represent a fragment.  You will have to wrap it
with a div and then refresh the div.

Scott

On Mon, Oct 11, 2010 at 5:06 PM, fachhoch  wrote:
>
> I have a fragment I want to  repaint when user click on ajax link
>
> here is my fragment
>
>        private class  ProgramFragment  extends  Fragment {
>                Long sysAuditProgId;
>                public ProgramFragment( final ProgramStatusDTO  
> programStatusDTO) {
>                        super("program", 
> "programFragment",ProgramStatusPanel.this);
>                        
> this.sysAuditProgId=programStatusDTO.eaAuditProgram.getSysAuditProgId();
>                        setOutputMarkupId(true);
>
>                        add(new Label("programAcronym",
> programStatusDTO.eaAuditProgram.getInfGrantProgram().getProgAcronym()));
>                        EaAuditProgramAmednment amendment=
> programStatusDTO.eaAuditProgram.getAmednment();
>                        add(new Label("modifier",amendment==null ? "" 
> :"(Amend)"));
>                        add(new Label("status",programStatusDTO.getName()));
>                        add(new
> Label("daysPassed",programStatusDTO.getDaysPassed()==0?"-":String.valueOf(programStatusDTO.getDaysPassed(;
>                }
>        }
>
>
> in onClick I am calling
>
>
> target.addComponent(getPage().get("program")));
>
>
>
> when I click on the link nothing happens, a refreshing view or ListView
> onPopulate method is called for repaint, for a Fragment or
> WebMarkupContainer what method is called ?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/repaint-a-fragment-tp2990937p2990937.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



repaint a fragment

2010-10-11 Thread fachhoch

I have a fragment I want to  repaint when user click on ajax link

here is my fragment

private class  ProgramFragment  extends  Fragment {
Long sysAuditProgId;
public ProgramFragment( final ProgramStatusDTO  
programStatusDTO) {
super("program", 
"programFragment",ProgramStatusPanel.this);

this.sysAuditProgId=programStatusDTO.eaAuditProgram.getSysAuditProgId();
setOutputMarkupId(true);

add(new Label("programAcronym",
programStatusDTO.eaAuditProgram.getInfGrantProgram().getProgAcronym()));
EaAuditProgramAmednment amendment=
programStatusDTO.eaAuditProgram.getAmednment();
add(new Label("modifier",amendment==null ? "" 
:"(Amend)"));
add(new Label("status",programStatusDTO.getName()));
add(new
Label("daysPassed",programStatusDTO.getDaysPassed()==0?"-":String.valueOf(programStatusDTO.getDaysPassed(;
}
}


in onClick I am calling 


target.addComponent(getPage().get("program")));



when I click on the link nothing happens, a refreshing view or ListView
onPopulate method is called for repaint, for a Fragment or
WebMarkupContainer what method is called ?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/repaint-a-fragment-tp2990937p2990937.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma

Doh!  Never mind.  I just discovered that buried in my Page was this piece of
code: AjaxFormValidatingBehavior.addToAllFormComponents(form,"onblur");  
That's what was adding the onblur call to the dropdown.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-Question-tp2968982p2990385.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Integrating Separate Different Wicket Applications Into One

2010-10-11 Thread kugaprakash

Hi,
Can you please let me know?
thanks
Kuga
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Integrating-Separate-Different-Wicket-Applications-Into-One-tp1889319p2990281.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma



Again, I can offer a hack :D

public class DoSomeHackBehavior extends AbstractBehavior {

private static final long serialVersionUID = 3554634545756435367L;

@Override
public void onComponentTag(Component component, ComponentTag tag) {
FormComponent comp = (FormComponent) component;
tag.getAttributes().remove("onblur");
}
}

}

after that, you can add this behaviour to any component

component.add(new DoSomeHackBehaviour());

:D

I have found that Wicket adds an onblur Ajax call to every HTML event you
can define for the AjaxFormComponentUpdatingBehavior on a DropDownChoice
control.  I haven't tested this on other controls.  This means your server
will be getting an extra Ajax call each time a user moves focus away from
the dropdown, even if they didn't change the dropdown selection.   This
seems like a bug.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-Question-tp2968982p2990266.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Confused about Resource basics

2010-10-11 Thread Wayne Pope
Further to this - if I look at the code in the wicket filter:

resource = webApplication.getSharedResources().get(resourceReferenceKey);

// If resource found and it is cacheable
if ((resource != null) && resource.isCacheable())
{
..
Session.findOrCreate(request, response);


It seems that shared resources will also load the session etc time.
How can I avoid the session being loaded?



On Mon, Oct 11, 2010 at 6:25 PM, Wayne Pope
 wrote:
> Hi,
>
> I just realised that our session is getting loaded multiple times per
> web request. I see that aside from the page request the session is
> getting loaded for items such as css, js, etc that are referenced in
> the code.
> Now I'm trying to make sure I understand resources correctly in terms
> of session synchronization. I can;t find much documentation on that
> aside from the mention in SharedResources javadoc.
>
> Can someone correct me on this. But aside from SharedResrouces are all
> other types of resources sync'd with the session (ie its loaded)?
> Including StyleSheetReference, all ResourceReference's, etc?
>
> It seems that all our css and javascript references that are part of
> components are going through loading the session.
>
> thanks for any pointers on this as I'm really confused.
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma


meduolis wrote:
> 
> Again, I can offer a hack :D
> 
> public class DoSomeHackBehavior extends AbstractBehavior {
> 
>   private static final long serialVersionUID = 3554634545756435367L;
> 
>   @Override
>   public void onComponentTag(Component component, ComponentTag tag) {
>   FormComponent comp = (FormComponent) component;
>   tag.getAttributes().remove("onblur");
>   }
>   }
>   
> }
> 
> after that, you can add this behaviour to any component
> 
> component.add(new DoSomeHackBehaviour());
> 
> :D
> 
Thanks again.  But unfortunately the onblur Ajax called survived.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-Question-tp2968982p2990115.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Confused about Resource basics

2010-10-11 Thread Wayne Pope
Hi,

I just realised that our session is getting loaded multiple times per
web request. I see that aside from the page request the session is
getting loaded for items such as css, js, etc that are referenced in
the code.
Now I'm trying to make sure I understand resources correctly in terms
of session synchronization. I can;t find much documentation on that
aside from the mention in SharedResources javadoc.

Can someone correct me on this. But aside from SharedResrouces are all
other types of resources sync'd with the session (ie its loaded)?
Including StyleSheetReference, all ResourceReference's, etc?

It seems that all our css and javascript references that are part of
components are going through loading the session.

thanks for any pointers on this as I'm really confused.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Testing concurrant updates on database

2010-10-11 Thread CREMONINI Daniele
SOLVED!

I followed your advice and added an hidden field to the Page (this is much 
simpler than my previous solution) but instead of using a Validator I made the 
service layer catch OptimisticLockingFailureException (thrown by the ORM layer) 
and rethrow a custom Exception.

Your advice on testing the Page using a single session works fine with the 
realistic assumption that the lifecycle has not any "pitfall" and I'll adopt 
this method.

Thanks a lot.
Good bye
Daniele Cremonini



-Original Message-
From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On 
Behalf Of James Carman
Sent: 11 October 2010 10:09
To: users@wicket.apache.org
Subject: Re: Testing concurrant updates on database

You're really not supposed to be monkeying with the version property
yourself.  You're supposed to let the ORM provider do that.  What I
would do is create a hidden field and put a validator on that.  The
validator would check to make sure that the current version in the
database is the same as what you got when you read the record out
initially.  You then just basically need to test that this works
properly (using mock objects for your DAOs).  You can assume that the
database ORM provider's locking works property, or at least I would.
To make sure nobody turns off the optimistic locking in the future,
just add in a unit test case that validates that the optimistic
locking is turned on by checking the metadata.


On Mon, Oct 11, 2010 at 4:00 AM, CREMONINI Daniele
 wrote:
> Thank you for your reply.
>
> I'm using Wicket 1.3.4.
>
> The optimistic locking is enabled for sure (the program has been written by 
> me) and metadata and data confirm that things are actually functioning the 
> way I thought.
>
> Because the Page contains a LoadableDetachableModel, every time I submit the 
> page, Wicket reloads the object overwriting the version attribute.
> To workaround this behaviour I overridden the onBeforeRender method to save 
> the version as soon as I open the page or refresh part of it:
>
> public class ExtraDataForm extends Form {
>
>        
>
>       �...@override
>        protected void onBeforeRender() {
>                setDataBaseVersion(getModelVersion());
>                super.onBeforeRender();
>        }
>
> }
>
> In order to update the version when saving I had to "force" the version into 
> the extraDataNew object:
>
>                add(new Button("btnSave") {
>                       �...@override
>                        public void onSubmit() {
>                                try {
>                                        final ExtraDataNew extraDataNew = 
> (ExtraDataNew)extraDataModel.getObject();
>                                        
> extraDataNew.setVersion(getDataBaseVersion());
>                                        
> edManager.saveExtraDataNew((ExtraDataNew)extraDataModel.getObject());
>                                        info("Extra data saved.");
>                                } catch (Exception e) {
>                                        log.error("Could not save: ",e);
>                                        error(e.getMessage());
>                                }
>                        }
>                });
>
> That's why I need to test the Page using two different sessions.
>
> Thanks
> Daniele Cremonini
>
> -Original Message-
> From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On 
> Behalf Of James Carman
> Sent: 08 October 2010 12:13
> To: users@wicket.apache.org
> Subject: Re: Testing concurrant updates on database
>
> What exactly are you trying to test?  Are you trying to test the
> optimistic locking?  You didn't write that.  If you want to test that
> you actually have optimistic locking turned on, then you can do that
> by checking the metadata.
>
> On Fri, Oct 8, 2010 at 3:27 AM, CREMONINI Daniele
>  wrote:
>> Hi everybody,
>>
>> My problem is I have to test a Page that should prevent lost updates via 
>> optimistic lock checking.
>>
>> I resolved the problem using JPA optimistic lock and if I use two different 
>> browsers then the Page works in the desired way.
>>
>> The problem comes in the test phase: to emulate two concurrent sessions I 
>> would instantiate two pages accessing to the same object (record) on the 
>> database this way having two sessions that I will call A and B.
>> Then on the session A I update and save (everything is expected to be 
>> correct), then on session B I update and save (an exception is expected to 
>> be thrown).
>>
>> My approach might be
>>
>> final WicketTester.DummyWebApplication testWebApplication1 = new 
>> WicketTester.DummyWebApplication() ...
>> final WicketTester.DummyWebApplication testWebApplication2 = new 
>> WicketTester.DummyWebApplication() ...
>>
>> ...
>>
>> tester1 = new MyAppWicketTester(testWebApplication);
>> tester2 = new MyAppWicketTester(testWebApplication);
>>
>> tester1.startPage(new ITestPageSource() ...
>> tester2.startPage(

Re: chrome + wicket ajax + back button = problem?

2010-10-11 Thread Pointbreak
See https://issues.apache.org/jira/browse/WICKET-923 for a solution.

On Mon, 11 Oct 2010 09:31 -0500, "Ryan Crumley" 
wrote:
> I have (I am using MixedParamHybridUrlCodingStrategy) however in this
> case
> the browser is not contacting the server on back button click so the
> UrlCodingStrategy does not come into play.
> 
> Ryan
> 
> On Wed, Oct 6, 2010 at 4:13 PM,  wrote:
> 
> > I've had similar issues, have you tried  HybridUrlCodingStrategy?
> >
> >
> >
> > Notice: This communication, including any attachments, is intended solely
> > for the use of the individual or entity to which it is addressed. This
> > communication may contain information that is protected from disclosure
> > under State and/or Federal law. Please notify the sender immediately if
> > you have received this communication in error and delete this email from
> > your system. If you are not the intended recipient, you are requested not
> > to disclose, copy, distribute or take any action in reliance on the
> > contents of this information.
> 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: chrome + wicket ajax + back button = problem?

2010-10-11 Thread Ryan Crumley
I have (I am using MixedParamHybridUrlCodingStrategy) however in this case
the browser is not contacting the server on back button click so the
UrlCodingStrategy does not come into play.

Ryan

On Wed, Oct 6, 2010 at 4:13 PM,  wrote:

> I've had similar issues, have you tried  HybridUrlCodingStrategy?
>
>
>
> Notice: This communication, including any attachments, is intended solely
> for the use of the individual or entity to which it is addressed. This
> communication may contain information that is protected from disclosure
> under State and/or Federal law. Please notify the sender immediately if
> you have received this communication in error and delete this email from
> your system. If you are not the intended recipient, you are requested not
> to disclose, copy, distribute or take any action in reliance on the
> contents of this information.


Re: "Page Expired" page with PatternDateConverter

2010-10-11 Thread Hemant Shah
 Yes, it works fine if we do not override the getConverter method. In 
which case it behaves like a normal AjaxEditableLabel, as would be 
expected, and we are using AjaxEditableLabel instances in many places in 
our application.



- Hemant

On 10/11/2010 6:24 AM, Altuğ Bilgin Altıntaş wrote:

if you don't override IConverter then everything works fine ?

2010/10/11 Hemant Shah


  Altuğ, thanks for responding.

There are no errors reported in the log. All the classes in the project are
serializable.

Could this be a bug?

Regards,


Hemant



On 10/10/2010 5:03 PM, Altuğ Bilgin Altıntaş wrote:


Did you look at Wicket's logs ?

Be sure serialization is done correctly.

2010/10/10 Hemant Shah

   I am new to the Wicket framework and I hope I can get some help with a

problem I am facing.

I am using version 1.4.12.

I am overriding the AjaxEditableLabel class and its overridden
getConverter
method is at follows:

@Override
public IConverter. getConverter(Class type) {
return new PatternDateConverter("MM/dd/", true);
}

However, the first time in a session the component is updated, I get the
"Page Expired" message.  The error results only when the getConverter
method
is called.

Note that this happens only the first time I access it in a session. If I
go to the home page and from there back to the page which contains the
component, it works without any problems.

I am not sure how to overcome this problem. I hope you guys can help.
Thanks.


- Hemant





Re: DropDownChoice loses Selection in Disabled Panels

2010-10-11 Thread splitshade

Hi,
yes exactly.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2989706.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DropDownChoice loses Selection in Disabled Panels

2010-10-11 Thread Altuğ Bilgin Altıntaş
did you bind DropDownChoices with models (ex : PropertyModel)  ?

2010/10/11 splitshade 

>
> Hi,
>
> i have spent some time researching this strange behaviour.
> I have a Page with some Panels, that contain DropDownChoices.
> These Panels are initially disabled on the Page.
>
> If a validationError occurs on this page, ALL dropdownchoices that are in
> disabled panels
> lose their values.
>
> Is this a known Bug? an Implementation Issue?
>
> Some hints are greatly appreciated, thanks in advance.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2989677.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


DropDownChoice loses Selection in Disabled Panels

2010-10-11 Thread splitshade

Hi,

i have spent some time researching this strange behaviour.
I have a Page with some Panels, that contain DropDownChoices.
These Panels are initially disabled on the Page.

If a validationError occurs on this page, ALL dropdownchoices that are in
disabled panels 
lose their values.

Is this a known Bug? an Implementation Issue?

Some hints are greatly appreciated, thanks in advance.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2989677.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: "Page Expired" page with PatternDateConverter

2010-10-11 Thread Altuğ Bilgin Altıntaş
if you don't override IConverter then everything works fine ?

2010/10/11 Hemant Shah 

>  Altuğ, thanks for responding.
>
> There are no errors reported in the log. All the classes in the project are
> serializable.
>
> Could this be a bug?
>
> Regards,
>
>
> Hemant
>
>
>
> On 10/10/2010 5:03 PM, Altuğ Bilgin Altıntaş wrote:
>
>> Did you look at Wicket's logs ?
>>
>> Be sure serialization is done correctly.
>>
>> 2010/10/10 Hemant Shah
>>
>>   I am new to the Wicket framework and I hope I can get some help with a
>>> problem I am facing.
>>>
>>> I am using version 1.4.12.
>>>
>>> I am overriding the AjaxEditableLabel class and its overridden
>>> getConverter
>>> method is at follows:
>>>
>>>@Override
>>>public IConverter. getConverter(Class type) {
>>>return new PatternDateConverter("MM/dd/", true);
>>>}
>>>
>>> However, the first time in a session the component is updated, I get the
>>> "Page Expired" message.  The error results only when the getConverter
>>> method
>>> is called.
>>>
>>> Note that this happens only the first time I access it in a session. If I
>>> go to the home page and from there back to the page which contains the
>>> component, it works without any problems.
>>>
>>> I am not sure how to overcome this problem. I hope you guys can help.
>>> Thanks.
>>>
>>>
>>> - Hemant
>>>
>>>
>>>


Re: ajax lazy suggestion box

2010-10-11 Thread James Carman
No problem.  Glad to help.  Happy Wicketeering!

On Mon, Oct 11, 2010 at 4:44 AM, Josh Kamau  wrote:
> Just did it.
>
> It worked just as i wanted.
>
> Thanks.
>
> On Mon, Oct 11, 2010 at 11:39 AM, Josh Kamau  wrote:
>
>> Thanks James.
>>
>> Let me look at it.
>>
>> Seems like there is always an answer with wicket.
>>
>> Regards.
>> Josh
>>
>>
>> On Mon, Oct 11, 2010 at 11:35 AM, James Carman > > wrote:
>>
>>> The lookup functionality is provided by you.  You can do whatever you
>>> want with the input.  Look at the example and implementation of the
>>> getChoices() method.  It would be trivial to change it to do a
>>> "contains" rather than "startsWith" search.
>>>
>>>
>>> On Mon, Oct 11, 2010 at 4:29 AM, Josh Kamau 
>>> wrote:
>>> > I have looked at the autocomplete box that you have suggested. The issue
>>> i
>>> > have with it is that if i type some text that appears in the middle , it
>>> > wont be looked up. If for example am looking for United Arabs Emirates,
>>> i
>>> > cant look up by  typing Arabs. I have to start by typing United. get my
>>> > point?
>>> >
>>> > On Mon, Oct 11, 2010 at 11:24 AM, James Carman
>>> > wrote:
>>> >
>>> >> It's called a auto-complete:
>>> >>
>>> >> http://wicketstuff.org/wicket14/ajax/autocomplete
>>> >>
>>> >>
>>> >> On Mon, Oct 11, 2010 at 4:19 AM, Josh Kamau 
>>> wrote:
>>> >> > Hi Team,
>>> >> >
>>> >> > I am looking for a dropdown list that narrows down based on what is
>>> typed
>>> >> > and Loads the values from the database as the user types. Something
>>> like
>>> >> the
>>> >> > dropdown in visural wicket
>>> >> > http://wicket.visural.net/examples/app/dropdownbut doesnt preload
>>> all
>>> >> > the values.  My other option is the create a Lookup
>>> >> > value dialog box but i would like to avoid this .
>>> >> >
>>> >> > Any suggestion is welcome.
>>> >> >
>>> >> > Regards.
>>> >> > Josh
>>> >> >
>>> >>
>>> >> -
>>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>>> >>
>>> >>
>>> >
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
Just did it.

It worked just as i wanted.

Thanks.

On Mon, Oct 11, 2010 at 11:39 AM, Josh Kamau  wrote:

> Thanks James.
>
> Let me look at it.
>
> Seems like there is always an answer with wicket.
>
> Regards.
> Josh
>
>
> On Mon, Oct 11, 2010 at 11:35 AM, James Carman  > wrote:
>
>> The lookup functionality is provided by you.  You can do whatever you
>> want with the input.  Look at the example and implementation of the
>> getChoices() method.  It would be trivial to change it to do a
>> "contains" rather than "startsWith" search.
>>
>>
>> On Mon, Oct 11, 2010 at 4:29 AM, Josh Kamau 
>> wrote:
>> > I have looked at the autocomplete box that you have suggested. The issue
>> i
>> > have with it is that if i type some text that appears in the middle , it
>> > wont be looked up. If for example am looking for United Arabs Emirates,
>> i
>> > cant look up by  typing Arabs. I have to start by typing United. get my
>> > point?
>> >
>> > On Mon, Oct 11, 2010 at 11:24 AM, James Carman
>> > wrote:
>> >
>> >> It's called a auto-complete:
>> >>
>> >> http://wicketstuff.org/wicket14/ajax/autocomplete
>> >>
>> >>
>> >> On Mon, Oct 11, 2010 at 4:19 AM, Josh Kamau 
>> wrote:
>> >> > Hi Team,
>> >> >
>> >> > I am looking for a dropdown list that narrows down based on what is
>> typed
>> >> > and Loads the values from the database as the user types. Something
>> like
>> >> the
>> >> > dropdown in visural wicket
>> >> > http://wicket.visural.net/examples/app/dropdownbut doesnt preload
>> all
>> >> > the values.  My other option is the create a Lookup
>> >> > value dialog box but i would like to avoid this .
>> >> >
>> >> > Any suggestion is welcome.
>> >> >
>> >> > Regards.
>> >> > Josh
>> >> >
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
Thanks James.

Let me look at it.

Seems like there is always an answer with wicket.

Regards.
Josh

On Mon, Oct 11, 2010 at 11:35 AM, James Carman
wrote:

> The lookup functionality is provided by you.  You can do whatever you
> want with the input.  Look at the example and implementation of the
> getChoices() method.  It would be trivial to change it to do a
> "contains" rather than "startsWith" search.
>
>
> On Mon, Oct 11, 2010 at 4:29 AM, Josh Kamau  wrote:
> > I have looked at the autocomplete box that you have suggested. The issue
> i
> > have with it is that if i type some text that appears in the middle , it
> > wont be looked up. If for example am looking for United Arabs Emirates, i
> > cant look up by  typing Arabs. I have to start by typing United. get my
> > point?
> >
> > On Mon, Oct 11, 2010 at 11:24 AM, James Carman
> > wrote:
> >
> >> It's called a auto-complete:
> >>
> >> http://wicketstuff.org/wicket14/ajax/autocomplete
> >>
> >>
> >> On Mon, Oct 11, 2010 at 4:19 AM, Josh Kamau 
> wrote:
> >> > Hi Team,
> >> >
> >> > I am looking for a dropdown list that narrows down based on what is
> typed
> >> > and Loads the values from the database as the user types. Something
> like
> >> the
> >> > dropdown in visural wicket
> >> > http://wicket.visural.net/examples/app/dropdownbut doesnt preload all
> >> > the values.  My other option is the create a Lookup
> >> > value dialog box but i would like to avoid this .
> >> >
> >> > Any suggestion is welcome.
> >> >
> >> > Regards.
> >> > Josh
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: ajax lazy suggestion box

2010-10-11 Thread James Carman
The lookup functionality is provided by you.  You can do whatever you
want with the input.  Look at the example and implementation of the
getChoices() method.  It would be trivial to change it to do a
"contains" rather than "startsWith" search.


On Mon, Oct 11, 2010 at 4:29 AM, Josh Kamau  wrote:
> I have looked at the autocomplete box that you have suggested. The issue i
> have with it is that if i type some text that appears in the middle , it
> wont be looked up. If for example am looking for United Arabs Emirates, i
> cant look up by  typing Arabs. I have to start by typing United. get my
> point?
>
> On Mon, Oct 11, 2010 at 11:24 AM, James Carman
> wrote:
>
>> It's called a auto-complete:
>>
>> http://wicketstuff.org/wicket14/ajax/autocomplete
>>
>>
>> On Mon, Oct 11, 2010 at 4:19 AM, Josh Kamau  wrote:
>> > Hi Team,
>> >
>> > I am looking for a dropdown list that narrows down based on what is typed
>> > and Loads the values from the database as the user types. Something like
>> the
>> > dropdown in visural wicket
>> > http://wicket.visural.net/examples/app/dropdownbut doesnt preload all
>> > the values.  My other option is the create a Lookup
>> > value dialog box but i would like to avoid this .
>> >
>> > Any suggestion is welcome.
>> >
>> > Regards.
>> > Josh
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
I have looked at the autocomplete box that you have suggested. The issue i
have with it is that if i type some text that appears in the middle , it
wont be looked up. If for example am looking for United Arabs Emirates, i
cant look up by  typing Arabs. I have to start by typing United. get my
point?

On Mon, Oct 11, 2010 at 11:24 AM, James Carman
wrote:

> It's called a auto-complete:
>
> http://wicketstuff.org/wicket14/ajax/autocomplete
>
>
> On Mon, Oct 11, 2010 at 4:19 AM, Josh Kamau  wrote:
> > Hi Team,
> >
> > I am looking for a dropdown list that narrows down based on what is typed
> > and Loads the values from the database as the user types. Something like
> the
> > dropdown in visural wicket
> > http://wicket.visural.net/examples/app/dropdownbut doesnt preload all
> > the values.  My other option is the create a Lookup
> > value dialog box but i would like to avoid this .
> >
> > Any suggestion is welcome.
> >
> > Regards.
> > Josh
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: ajax lazy suggestion box

2010-10-11 Thread James Carman
It's called a auto-complete:

http://wicketstuff.org/wicket14/ajax/autocomplete


On Mon, Oct 11, 2010 at 4:19 AM, Josh Kamau  wrote:
> Hi Team,
>
> I am looking for a dropdown list that narrows down based on what is typed
> and Loads the values from the database as the user types. Something like the
> dropdown in visural wicket
> http://wicket.visural.net/examples/app/dropdownbut doesnt preload all
> the values.  My other option is the create a Lookup
> value dialog box but i would like to avoid this .
>
> Any suggestion is welcome.
>
> Regards.
> Josh
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
Hi Team,

I am looking for a dropdown list that narrows down based on what is typed
and Loads the values from the database as the user types. Something like the
dropdown in visural wicket
http://wicket.visural.net/examples/app/dropdownbut doesnt preload all
the values.  My other option is the create a Lookup
value dialog box but i would like to avoid this .

Any suggestion is welcome.

Regards.
Josh


Re: Testing concurrant updates on database

2010-10-11 Thread James Carman
You're really not supposed to be monkeying with the version property
yourself.  You're supposed to let the ORM provider do that.  What I
would do is create a hidden field and put a validator on that.  The
validator would check to make sure that the current version in the
database is the same as what you got when you read the record out
initially.  You then just basically need to test that this works
properly (using mock objects for your DAOs).  You can assume that the
database ORM provider's locking works property, or at least I would.
To make sure nobody turns off the optimistic locking in the future,
just add in a unit test case that validates that the optimistic
locking is turned on by checking the metadata.


On Mon, Oct 11, 2010 at 4:00 AM, CREMONINI Daniele
 wrote:
> Thank you for your reply.
>
> I'm using Wicket 1.3.4.
>
> The optimistic locking is enabled for sure (the program has been written by 
> me) and metadata and data confirm that things are actually functioning the 
> way I thought.
>
> Because the Page contains a LoadableDetachableModel, every time I submit the 
> page, Wicket reloads the object overwriting the version attribute.
> To workaround this behaviour I overridden the onBeforeRender method to save 
> the version as soon as I open the page or refresh part of it:
>
> public class ExtraDataForm extends Form {
>
>        
>
>       �...@override
>        protected void onBeforeRender() {
>                setDataBaseVersion(getModelVersion());
>                super.onBeforeRender();
>        }
>
> }
>
> In order to update the version when saving I had to "force" the version into 
> the extraDataNew object:
>
>                add(new Button("btnSave") {
>                       �...@override
>                        public void onSubmit() {
>                                try {
>                                        final ExtraDataNew extraDataNew = 
> (ExtraDataNew)extraDataModel.getObject();
>                                        
> extraDataNew.setVersion(getDataBaseVersion());
>                                        
> edManager.saveExtraDataNew((ExtraDataNew)extraDataModel.getObject());
>                                        info("Extra data saved.");
>                                } catch (Exception e) {
>                                        log.error("Could not save: ",e);
>                                        error(e.getMessage());
>                                }
>                        }
>                });
>
> That's why I need to test the Page using two different sessions.
>
> Thanks
> Daniele Cremonini
>
> -Original Message-
> From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On 
> Behalf Of James Carman
> Sent: 08 October 2010 12:13
> To: users@wicket.apache.org
> Subject: Re: Testing concurrant updates on database
>
> What exactly are you trying to test?  Are you trying to test the
> optimistic locking?  You didn't write that.  If you want to test that
> you actually have optimistic locking turned on, then you can do that
> by checking the metadata.
>
> On Fri, Oct 8, 2010 at 3:27 AM, CREMONINI Daniele
>  wrote:
>> Hi everybody,
>>
>> My problem is I have to test a Page that should prevent lost updates via 
>> optimistic lock checking.
>>
>> I resolved the problem using JPA optimistic lock and if I use two different 
>> browsers then the Page works in the desired way.
>>
>> The problem comes in the test phase: to emulate two concurrent sessions I 
>> would instantiate two pages accessing to the same object (record) on the 
>> database this way having two sessions that I will call A and B.
>> Then on the session A I update and save (everything is expected to be 
>> correct), then on session B I update and save (an exception is expected to 
>> be thrown).
>>
>> My approach might be
>>
>> final WicketTester.DummyWebApplication testWebApplication1 = new 
>> WicketTester.DummyWebApplication() ...
>> final WicketTester.DummyWebApplication testWebApplication2 = new 
>> WicketTester.DummyWebApplication() ...
>>
>> ...
>>
>> tester1 = new MyAppWicketTester(testWebApplication);
>> tester2 = new MyAppWicketTester(testWebApplication);
>>
>> tester1.startPage(new ITestPageSource() ...
>> tester2.startPage(new ITestPageSource() ...
>>
>> but as soon as run the complete set of test anything "blow up".
>>
>> Do you have any suggestion?
>> Thanks
>> Daniele Cremonini
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> __
> This message has been scanned for viruses.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Customizing the Datepicker for a background mask

2010-10-11 Thread amigo


Hello all,

Have anyone tried to resolve this issue with wicket datepicker earlier?...
Any suggestions regarding how to proceed are also welcome.

Thanks in advance,
Amigo
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customizing-the-Datepicker-for-a-background-mask-tp2967939p2989358.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Testing concurrant updates on database

2010-10-11 Thread CREMONINI Daniele
Thank you for your reply.

I'm using Wicket 1.3.4.

The optimistic locking is enabled for sure (the program has been written by me) 
and metadata and data confirm that things are actually functioning the way I 
thought.

Because the Page contains a LoadableDetachableModel, every time I submit the 
page, Wicket reloads the object overwriting the version attribute.
To workaround this behaviour I overridden the onBeforeRender method to save the 
version as soon as I open the page or refresh part of it:

public class ExtraDataForm extends Form {



@Override
protected void onBeforeRender() {
setDataBaseVersion(getModelVersion());
super.onBeforeRender();
}

}

In order to update the version when saving I had to "force" the version into 
the extraDataNew object:

add(new Button("btnSave") {
@Override
public void onSubmit() {
try {
final ExtraDataNew extraDataNew = 
(ExtraDataNew)extraDataModel.getObject();

extraDataNew.setVersion(getDataBaseVersion());

edManager.saveExtraDataNew((ExtraDataNew)extraDataModel.getObject());
info("Extra data saved.");
} catch (Exception e) {
log.error("Could not save: ",e);
error(e.getMessage());
}
}
});

That's why I need to test the Page using two different sessions.

Thanks
Daniele Cremonini

-Original Message-
From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On 
Behalf Of James Carman
Sent: 08 October 2010 12:13
To: users@wicket.apache.org
Subject: Re: Testing concurrant updates on database

What exactly are you trying to test?  Are you trying to test the
optimistic locking?  You didn't write that.  If you want to test that
you actually have optimistic locking turned on, then you can do that
by checking the metadata.

On Fri, Oct 8, 2010 at 3:27 AM, CREMONINI Daniele
 wrote:
> Hi everybody,
>
> My problem is I have to test a Page that should prevent lost updates via 
> optimistic lock checking.
>
> I resolved the problem using JPA optimistic lock and if I use two different 
> browsers then the Page works in the desired way.
>
> The problem comes in the test phase: to emulate two concurrent sessions I 
> would instantiate two pages accessing to the same object (record) on the 
> database this way having two sessions that I will call A and B.
> Then on the session A I update and save (everything is expected to be 
> correct), then on session B I update and save (an exception is expected to be 
> thrown).
>
> My approach might be
>
> final WicketTester.DummyWebApplication testWebApplication1 = new 
> WicketTester.DummyWebApplication() ...
> final WicketTester.DummyWebApplication testWebApplication2 = new 
> WicketTester.DummyWebApplication() ...
>
> ...
>
> tester1 = new MyAppWicketTester(testWebApplication);
> tester2 = new MyAppWicketTester(testWebApplication);
>
> tester1.startPage(new ITestPageSource() ...
> tester2.startPage(new ITestPageSource() ...
>
> but as soon as run the complete set of test anything "blow up".
>
> Do you have any suggestion?
> Thanks
> Daniele Cremonini
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


__
This message has been scanned for viruses.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org