ModalWindow minHeight minWidth ignored

2014-04-18 Thread Wolfgang

Hi List!

I'm struggeling with ModalWindow's in combination with the iPad.

I've created a quickstart to show the problem:
http://www.woifal.at/modalwindowipad.tar.gz

I'm setting the minWidth, minHeight, initialWidth and initialHeight of 
the ModalWindow but when you're zoomed in on the page and click the 
link to show the ModalWindow it ignores the settings and just shows the 
modalwindow very small - hiding most of the content.

And you don't have a chance to resize it.
You can even try it with firefox when resizing the browser window very 
very small (so you just see the link text in my example) - then the 
ModalWindow will also be very small.



I would expect the window to be the size I've setted no matter how small 
the browser window is.

Can anybody suggests a solution to it?

Thanks
-Wolfgang

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



Re: Link to last version of stateful page

2013-08-28 Thread Wolfgang

Hi Junixar!

You have to give the Page Object to the new Class like:
onClick() { setResponsePage(new MyPage(Frontpage.this))}

This should help.

Greetings

On 2013-08-28 15:21, junixar wrote:

I have a number of stateful pages with some state for each page. For example
each page has already submitted form.

How can I organize a menu with links to last versions of these stateful
pages? Should I store anywhere (may be in the session) reference to
appropriate object for each page? If I use

onClick() { setResponsePage(MyPage.class); }

than I lose the previous state of the page. I want to link to last state of
the page.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-last-version-of-stateful-page-tp4661116.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 returning XML or JSON ?

2013-04-25 Thread Wolfgang

Hi heikki!

I needed the same so I did following:

extending AbstractResource
implemented the needed:

protected ResourceResponse newResourceResponse(Attributes attributes) {
  ResourceResponse resourceResponse = new ResourceResponse();
  final StringBuilder sb = new StringBuilder();
  //do sb.append() here your json etc.
  resourceResponse.setWriteCallback(new WriteCallback() {
@Override
public void writeData(Attributes attributes) throws 
IOException {

Response response = attributes.getResponse();
response.write(sb.toString());
}
});

resourceResponse.setContentType(application/json);
return resourceResponse;
}

written a subclass of ResourceReference which takes a Class as 
constructor parameter.

@Martin: why doesn't wicket hasn't something generic?

public class GenericResourceReference extends ResourceReference {
private Class? extends IResource iResourceClass;

public GenericResourceReference(Class? extends IResource 
iResourceClass) {

super(iResourceClass.getName());
this.iResourceClass = iResourceClass;
}

@Override
public IResource getResource() {
try {
return iResourceClass.newInstance();
} catch (InstantiationException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}

and mounted it in the WebApplication init() method like this:
mountResource(/my.json, new GenericResourceReference(MyResource.class));

Greetings from sunny Austria.
-Wolfgang

On 04/25/2013 04:28 PM, heikki wrote:

thanks,

that example does indeed work fine, but I'd rather have *no* markup file,
just generate the XML or JSON myself and send that back in the response.

So I need a mounted IResource to do that ? Any tip how to go about it for
this use case, e.g. use a ByteArrayResource ?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-returning-XML-or-JSON-tp4658271p4658273.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 returning XML or JSON ?

2013-04-25 Thread Wolfgang

ok Martin thanks for explanation!

On 04/25/2013 05:00 PM, Martin Grigorov wrote:

Hi Wolfgang,


On Thu, Apr 25, 2013 at 5:46 PM, Wolfgang wicket-us...@woifal.at wrote:


Hi heikki!

I needed the same so I did following:

extending AbstractResource
implemented the needed:

protected ResourceResponse newResourceResponse(Attributes attributes) {
   ResourceResponse resourceResponse = new ResourceResponse();
   final StringBuilder sb = new StringBuilder();
   //do sb.append() here your json etc.
   resourceResponse.**setWriteCallback(new WriteCallback() {
 @Override
 public void writeData(Attributes attributes) throws
IOException {
 Response response = attributes.getResponse();
 response.write(sb.toString());
 }
 });

 resourceResponse.**setContentType(application/**json);
 return resourceResponse;
}

written a subclass of ResourceReference which takes a Class as constructor
parameter.
@Martin: why doesn't wicket hasn't something generic?


I guess because it is too simple.

Or maybe it is not ?! See below.



public class GenericResourceReference extends ResourceReference {
 private Class? extends IResource iResourceClass;


Problem 1) You keep a reference to a class!
- may lead to class loader leaks
- definitely a problem in OSGi environment



 public GenericResourceReference(**Class? extends IResource
iResourceClass) {
 super(iResourceClass.getName()**);

 this.iResourceClass = iResourceClass;

 }

 @Override
 public IResource getResource() {
 try {
 return iResourceClass.newInstance();


What if there is no default constructor ? Users will ask for a factory...
It is much easier to do:
mountResource(/my.json, new ResourceReference(someName) {
   @Override
 public IResource getResource() {
   return new MyResource(...);
 }
});

No usage of reflection. The application developer knows what constructor
arguments to pass, etc.

 } catch (InstantiationException e) {

 throw new RuntimeException(e);
 } catch (IllegalAccessException e) {
 throw new RuntimeException(e);
 }
 }

and mounted it in the WebApplication init() method like this:
mountResource(/my.json, new GenericResourceReference(**
MyResource.class));

Greetings from sunny Austria.
-Wolfgang


On 04/25/2013 04:28 PM, heikki wrote:


thanks,

that example does indeed work fine, but I'd rather have *no* markup file,
just generate the XML or JSON myself and send that back in the response.

So I need a mounted IResource to do that ? Any tip how to go about it for
this use case, e.g. use a ByteArrayResource ?




--
View this message in context: http://apache-wicket.1842946.**
n4.nabble.com/Wicket-**returning-XML-or-JSON-**tp4658271p4658273.htmlhttp://apache-wicket.1842946.n4.nabble.com/Wicket-returning-XML-or-JSON-tp4658271p4658273.html
Sent from the Users forum mailing list archive at Nabble.com.

--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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



HighlightForm without consuming FeedbackMessages

2012-10-02 Thread Wolfgang

Hi everybody!

I have made a subclass of org.apache.wicket.markup.html.form.Form
with name HighlightForm

The purpose of this class is to give all Fields a css class fieldError 
if validation failed for all FormComponents.
But in a way that it's generic - so I can use this class as DropIn 
Replacement for normal Wicket-Form class.


I have uploaded a quickstart example here:
http://www.woifal.at/testHighlightForm.zip

So I visit all Children/FormComponents of the Form via an IVisitor and 
add an AttributeModifier where I have overwritten the
isEnabled(Component) Method so to only enable the modifier when current 
component is not valid.


So the invalid fields get the css class fieldError which makes there 
background coloured in red. I don't show the feedbackMessages anywhere.


This worked with wicket 1.5.
Now with Wicket 6 the handling of FeedbackMessage have changed - so they 
get marked to be cleared after they are rendered.

FeedbackMessage.markRendered()

As I don't render the messages they survive even when I input valid 
values into the form and submit it again - validation continues to fail.

therefore in the
isEnabled(Component component)
method of the AttributeModifier I go through all FeedbackMessages and 
call markRendered()

is this the right way? Is there a better place to do this?

start with
mvn jetty:run


Thank you very much
Wolfgang

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



ResourceLink and page versioning

2011-11-07 Thread Wolfgang Schreiner
Hi all,

I got a couple of questions ...

1) I would like to open a new browser tab and display a PDF when I click a 
link. I extended ByteArrayResource but getData is not always called. 
Seems like once generated the documents get cached and randomly displayed, 
which of course is not acceptable, because the PDFs depend on user 
selection. How can I fix that?

2) Is there a way to generally disable page versioning 
(getPageSettings().setVersionPagesByDefault(false)) but enable versioning 
for a single page?

Hope you can help me. Thanks!

w


Re: ResourceLink and page versioning

2011-11-07 Thread Wolfgang Schreiner
One more thing:

I implemented page authentication according to wicketstuff.org. My 
application class sets the AuthorizationStrategy in the init method. 
isActionAuthorized throws a 
RestartResponseAtInterceptPageException(Login.class), if the user is not 
signed in.

The Login class however throws a ReplaceHandlerException when I invoke 
continueToOriginalDestination, and the original page is not displayed.

Am I missing something? I have to get this to work.

Thanks




From:
Wolfgang Schreiner/AUT/CSC@CSC
To:
users@wicket.apache.org
Date:
07.11.2011 18:40
Subject:
ResourceLink and page versioning



Hi all,

I got a couple of questions ...

1) I would like to open a new browser tab and display a PDF when I click a 

link. I extended ByteArrayResource but getData is not always called. 
Seems like once generated the documents get cached and randomly displayed, 

which of course is not acceptable, because the PDFs depend on user 
selection. How can I fix that?

2) Is there a way to generally disable page versioning 
(getPageSettings().setVersionPagesByDefault(false)) but enable versioning 
for a single page?

Hope you can help me. Thanks!

w




Re: Weblogic deployment

2011-10-19 Thread Wolfgang Schreiner
Thanks guys, removing the white spaces did the trick!




From:
jcgarciam jcgarc...@gmail.com
To:
users@wicket.apache.org
Date:
18.10.2011 16:47
Subject:
Re: Weblogic deployment



Nop, this is a bug in the container no within the wicket framework.

On Tue, Oct 18, 2011 at 11:44 AM, Wolfgang Schreiner [via Apache Wicket] 
ml-node+s1842946n3915620...@n4.nabble.com wrote:

 Ok thanks, will give it a go

 Is there another workaround? Like removing wicket.properties and calling
 the Initializers from code?




 From:
 jcgarciam [hidden email]
http://user/SendEmail.jtp?type=nodenode=3915620i=0

 To:
 [hidden email] http://user/SendEmail.jtp?type=nodenode=3915620i=1
 Date:
 18.10.2011 16:26
 Subject:
 Re: Weblogic deployment



 Weblogic doesn't play well with classpath resouces having space on its
 path.

 As Manuel, suggest try putting your domain in a path without space on it

 On Tue, Oct 18, 2011 at 11:02 AM, manuelbarzi [via Apache Wicket] 
 [hidden email] http://user/SendEmail.jtp?type=nodenode=3915620i=2
 wrote:

  Application.initializeComponents()
 
  may you try running wl in non-blank-spaces path? (zip:C:/Documents[16
  charater here])...)
  .
 
 
 
  On Tue, Oct 18, 2011 at 3:31 PM, Wolfgang Schreiner [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3915471i=0
  wrote:
 
   Hi all,
  
   I am having problems deploying my web application on Weblogic 
10.3.2.
   Everything works fine on 10.3.5 but I am running into the following
   exception when deploying on 10.3.2 - see below
  
   How can I resolve this? And when and where is wicket.properties
 loaded?
 
   Can't find references in the sources ...
  
   Thanks!
  
  
   18.10.2011 14:17 Uhr MESZ Error HTTP BEA-101165 Could not
 load
   user def
   ined filter in web.xml: 
org.apache.wicket.protocol.http.WicketFilter.
   org.apache.wicket.WicketRuntimeException: 
java.net.URISyntaxException:
   Illegal c
   haracter in opaque part at index 16: zip:C:/Documents and
   Settings/schrewo3/Orac
  
 
 
le/Middleware/user_projects/domains/test1/servers/AdminServer/tmp/_WL_user/edoc-


 
   web/11vfn0/war/WEB-INF/lib/wicket-core-1.5.0.jar!/wicket.properties
  at
   
org.apache.wicket.application.AbstractClassResolver.getResources(Abst
   ractClassResolver.java:156)
  at
   
org.apache.wicket.Application.initializeComponents(Application.java:4
   90)
  at
   org.apache.wicket.Application.initApplication(Application.java:806)
  at
   
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:3
   46)
  at
   
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:2
   86)
  Truncated. see log file for complete stacktrace
   Caused By: java.net.URISyntaxException: Illegal character in opaque
 part
   at inde
   x 16: zip:C:/Documents and
   Settings/schrewo3/Oracle/Middleware/user_projects/dom
  
 
 
ains/test1/servers/AdminServer/tmp/_WL_user/edoc-web/11vfn0/war/WEB-INF/lib/wick


 
   et-core-1.5.0.jar!/wicket.properties
  at java.net.URI$Parser.fail(URI.java:2809)
  at java.net.URI$Parser.checkChars(URI.java:2982)
  at java.net.URI$Parser.parse(URI.java:3019)
  at java.net.URI.init(URI.java:578)
  at java.net.URL.toURI(URL.java:918)
  Truncated. see log file for complete stacktrace
 
  -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3915471i=1
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=3915471i=2
 
 
 
  --
   If you reply to this email, your message will be added to the
 discussion
  below:
 
 

 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915471.html


   To unsubscribe from Apache Wicket, click here

 
 



 --

 JC


 --
 View this message in context:

 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915574.html


 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=3915620i=3
 For additional commands, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=3915620i=4





 --
  If you reply to this email, your message will be added to the 
discussion
 below:

 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915620.html

  To unsubscribe from Apache Wicket, click here
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=
.





-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915632.html

Sent from the Users forum mailing list archive at Nabble.com

Weblogic deployment

2011-10-18 Thread Wolfgang Schreiner
Hi all,
 
I am having problems deploying my web application on Weblogic 10.3.2. 
Everything works fine on 10.3.5 but I am running into the following 
exception when deploying on 10.3.2 - see below
 
How can I resolve this? And when and where is wicket.properties loaded? 
Can't find references in the sources ...
 
Thanks!
 
 
18.10.2011 14:17 Uhr MESZ Error HTTP BEA-101165 Could not load 
user def
ined filter in web.xml: org.apache.wicket.protocol.http.WicketFilter.
org.apache.wicket.WicketRuntimeException: java.net.URISyntaxException: 
Illegal c
haracter in opaque part at index 16: zip:C:/Documents and 
Settings/schrewo3/Orac
le/Middleware/user_projects/domains/test1/servers/AdminServer/tmp/_WL_user/edoc-
web/11vfn0/war/WEB-INF/lib/wicket-core-1.5.0.jar!/wicket.properties
at 
org.apache.wicket.application.AbstractClassResolver.getResources(Abst
ractClassResolver.java:156)
at 
org.apache.wicket.Application.initializeComponents(Application.java:4
90)
at 
org.apache.wicket.Application.initApplication(Application.java:806)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:3
46)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:2
86)
Truncated. see log file for complete stacktrace
Caused By: java.net.URISyntaxException: Illegal character in opaque part 
at inde
x 16: zip:C:/Documents and 
Settings/schrewo3/Oracle/Middleware/user_projects/dom
ains/test1/servers/AdminServer/tmp/_WL_user/edoc-web/11vfn0/war/WEB-INF/lib/wick
et-core-1.5.0.jar!/wicket.properties
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parse(URI.java:3019)
at java.net.URI.init(URI.java:578)
at java.net.URL.toURI(URL.java:918)
Truncated. see log file for complete stacktrace

Re: Weblogic deployment

2011-10-18 Thread Wolfgang Schreiner
Ok thanks, will give it a go

Is there another workaround? Like removing wicket.properties and calling 
the Initializers from code?




From:
jcgarciam jcgarc...@gmail.com
To:
users@wicket.apache.org
Date:
18.10.2011 16:26
Subject:
Re: Weblogic deployment



Weblogic doesn't play well with classpath resouces having space on its 
path.

As Manuel, suggest try putting your domain in a path without space on it

On Tue, Oct 18, 2011 at 11:02 AM, manuelbarzi [via Apache Wicket] 
ml-node+s1842946n3915471...@n4.nabble.com wrote:

 Application.initializeComponents()

 may you try running wl in non-blank-spaces path? (zip:C:/Documents[16
 charater here])...)
 .



 On Tue, Oct 18, 2011 at 3:31 PM, Wolfgang Schreiner [hidden email]
http://user/SendEmail.jtp?type=nodenode=3915471i=0
 wrote:

  Hi all,
 
  I am having problems deploying my web application on Weblogic 10.3.2.
  Everything works fine on 10.3.5 but I am running into the following
  exception when deploying on 10.3.2 - see below
 
  How can I resolve this? And when and where is wicket.properties 
loaded?

  Can't find references in the sources ...
 
  Thanks!
 
 
  18.10.2011 14:17 Uhr MESZ Error HTTP BEA-101165 Could not 
load
  user def
  ined filter in web.xml: org.apache.wicket.protocol.http.WicketFilter.
  org.apache.wicket.WicketRuntimeException: java.net.URISyntaxException:
  Illegal c
  haracter in opaque part at index 16: zip:C:/Documents and
  Settings/schrewo3/Orac
 
 
le/Middleware/user_projects/domains/test1/servers/AdminServer/tmp/_WL_user/edoc-

  web/11vfn0/war/WEB-INF/lib/wicket-core-1.5.0.jar!/wicket.properties
 at
  org.apache.wicket.application.AbstractClassResolver.getResources(Abst
  ractClassResolver.java:156)
 at
  org.apache.wicket.Application.initializeComponents(Application.java:4
  90)
 at
  org.apache.wicket.Application.initApplication(Application.java:806)
 at
  org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:3
  46)
 at
  org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:2
  86)
 Truncated. see log file for complete stacktrace
  Caused By: java.net.URISyntaxException: Illegal character in opaque 
part
  at inde
  x 16: zip:C:/Documents and
  Settings/schrewo3/Oracle/Middleware/user_projects/dom
 
 
ains/test1/servers/AdminServer/tmp/_WL_user/edoc-web/11vfn0/war/WEB-INF/lib/wick

  et-core-1.5.0.jar!/wicket.properties
 at java.net.URI$Parser.fail(URI.java:2809)
 at java.net.URI$Parser.checkChars(URI.java:2982)
 at java.net.URI$Parser.parse(URI.java:3019)
 at java.net.URI.init(URI.java:578)
 at java.net.URL.toURI(URL.java:918)
 Truncated. see log file for complete stacktrace

 -
 To unsubscribe, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=3915471i=1
 For additional commands, e-mail: [hidden email]
http://user/SendEmail.jtp?type=nodenode=3915471i=2



 --
  If you reply to this email, your message will be added to the 
discussion
 below:

 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915471.html

  To unsubscribe from Apache Wicket, click here
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=
.





-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-palette-tp3859111p3915574.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: How to update a palette?

2011-10-01 Thread Wolfgang Schreiner
Finally solved it:

had a choice renderer

new ChoiceRendererDocumentDto() {
  public Object getDisplayValue(DocumentDto object) {
return object.getDocumentType();
  }
}

which apparently messed things up

changed it to new ChoiceRenderer(documentType, documentId) and 
everything works fine

overriding getIdValue also works!

Have a nice weekend




From:
Wolfgang Schreiner/AUT/CSC@CSC
To:
users@wicket.apache.org
Date:
30.09.2011 13:26
Subject:
Re: How to update a palette?



What do you mean by refresh? I apply setOutputMarkupId on the palette 
and add it to the Ajax request target.

This is how I thought it should work, apparently I missed something ...

final ListModel types = loadChoicesFromDB();
final ListModel selectedTypes = new ListModel(new ArrayList());
final Palette palette = new Palette(palette, selectedTypes, types ... );
palette.setOutputMarkupId(true);
...
final DropDownChoice profiles = ...
profiles.add(new AjaxComponentUpdatingBehavior(onchange) {
  public void onUpdate(AjaxRequestTarget target) {
Integer profileId = profiles.getModelObject().getProfileId();
// selectedTypes.detach();
selectedTypes.setObject(loadSelectedTypesFromDB(profileId));
...
target.add(palette);
  }
});





From:
Duy Do doquoc...@gmail.com
To:
users@wicket.apache.org
Date:
30.09.2011 12:58
Subject:
Re: How to update a palette?



Did you refresh the pallete after chaning its model?

Duy

On Fri, Sep 30, 2011 at 3:03 PM, Wolfgang Schreiner 
wschrei...@csc.comwrote:

 Dear all,

 I need to create a palette which has to be updated on selection changes 
in
 a drop down choice. The drop down choice contains a list of profiles. 
Each
 profile has the same choices but different selected items stored in a
 database. When a user changes the profile selection (Ajax), the palette
 has to show different available and selected choices.

 I am searching for a solution for a while now, and there seem to be a
 number of people having similar issues but I couldn't find a working
 example. The problem is that the selected panel does not update
 correctly (remains empty), although during debugging the model and the
 choices imho contain the correct vales. Removing and adding the 
palette
 from the form doesn't work either. I need to use a palette because the
 order of the items is important!

 Any help is highly appreciated. It's getting pretty frustrating.

 Cheers,

 w




-- 
Duy Do






How to update a palette?

2011-09-30 Thread Wolfgang Schreiner
Dear all,

I need to create a palette which has to be updated on selection changes in 
a drop down choice. The drop down choice contains a list of profiles. Each 
profile has the same choices but different selected items stored in a 
database. When a user changes the profile selection (Ajax), the palette 
has to show different available and selected choices.

I am searching for a solution for a while now, and there seem to be a 
number of people having similar issues but I couldn't find a working 
example. The problem is that the selected panel does not update 
correctly (remains empty), although during debugging the model and the 
choices imho contain the correct vales. Removing and adding the palette 
from the form doesn't work either. I need to use a palette because the 
order of the items is important!

Any help is highly appreciated. It's getting pretty frustrating.

Cheers,

w


Re: How to update a palette?

2011-09-30 Thread Wolfgang Schreiner
What do you mean by refresh? I apply setOutputMarkupId on the palette 
and add it to the Ajax request target.

This is how I thought it should work, apparently I missed something ...

final ListModel types = loadChoicesFromDB();
final ListModel selectedTypes = new ListModel(new ArrayList());
final Palette palette = new Palette(palette, selectedTypes, types ... );
palette.setOutputMarkupId(true);
...
final DropDownChoice profiles = ...
profiles.add(new AjaxComponentUpdatingBehavior(onchange) {
  public void onUpdate(AjaxRequestTarget target) {
Integer profileId = profiles.getModelObject().getProfileId();
// selectedTypes.detach();
selectedTypes.setObject(loadSelectedTypesFromDB(profileId));
...
target.add(palette);
  }
});





From:
Duy Do doquoc...@gmail.com
To:
users@wicket.apache.org
Date:
30.09.2011 12:58
Subject:
Re: How to update a palette?



Did you refresh the pallete after chaning its model?

Duy

On Fri, Sep 30, 2011 at 3:03 PM, Wolfgang Schreiner 
wschrei...@csc.comwrote:

 Dear all,

 I need to create a palette which has to be updated on selection changes 
in
 a drop down choice. The drop down choice contains a list of profiles. 
Each
 profile has the same choices but different selected items stored in a
 database. When a user changes the profile selection (Ajax), the palette
 has to show different available and selected choices.

 I am searching for a solution for a while now, and there seem to be a
 number of people having similar issues but I couldn't find a working
 example. The problem is that the selected panel does not update
 correctly (remains empty), although during debugging the model and the
 choices imho contain the correct vales. Removing and adding the 
palette
 from the form doesn't work either. I need to use a palette because the
 order of the items is important!

 Any help is highly appreciated. It's getting pretty frustrating.

 Cheers,

 w




-- 
Duy Do




Re: Forms in a base class

2010-07-28 Thread Wolfgang


Jeremy Thomerson-5 wrote:
 
 you need to be adding the components to the form.  you're currently adding
 them to the page itself.  the component hierarchy is thus broken.  on your
 child page, either do getForm().add(foo) [you'll need to expose a getForm
 method that returns the form from the parent page] or else on your parent
 page (BaseEditPage), setTransparentResolver(true) on the form and add the
 form children to the page then.
 

It's working but is far from satisfying... It breaks the encapsulation of
the sub-classes (and those of the sub-sub-classes) because they have to know
they can't use add() anymore but have to use some addToForm(). Once you have
a form somewhere in the hierarchy, trouble begins.

Also, you cannot declare the form as a transparent resolver anymore which
means that every component, not only form components, need to use that
special method. I'm currently trying to find a way to avoid changing all the
hundreds of add() calls in my project...
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Forms-in-a-base-class-tp1891692p2304644.html
Sent from the Wicket - User 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



TagTester after Ajax

2010-06-28 Thread Wolfgang

TagTester works on the content of the last response which, in case of an Ajax
response, is not the whole page but only a small snippet. Even worse, this
snippet doesn't contain the wicket:ids anymore I use for testing.

Is there a way to Ajax-enable TagTester such that...
...you can use TagTester after Ajax refreshes without bothering about this
fact?
...you can use wicket:id attributes to evaluate the result?

It is because I want to test certain Ajax-relevant features that cannot be
tested using the component-based assert... methods on WicketTester and that
cannot be tested if Ajax is disabled.

I know it is a certain additional work for Wicket to enable that kind of
testing because, from the technical point of view, the required document is
not naturally available. However, since Wicket defines its own Ajax engine
it should be able to mock this one such that the Ajax responses are
incorporated in the document and the result can be evaluated as a whole.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TagTester-after-Ajax-tp2270712p2270712.html
Sent from the Wicket - User 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



Cache menu

2010-05-05 Thread Wolfgang

I'm working on a web site that has a menu bar with sub-items, and
sub-sub-items. The configuration of this menu is computed from hilariously
complex SQL queries and needs quite some time to be established. The menu
looks different for each user (session) but stays the same for the lifetime
of the session. So it's time for caching as this menu shows up on most of
the pages.

From other posts on this site I've taken that it's not a good idea to share
the components that represent the menu among different pages. Now I wonder
on which level I can cache and re-use objects.

Is it advisable to share models (in the Wicket sense), i.e. store the menu
models on the session and construct the menu components according to their
information for every page?

Or do I have to create separate, Wicket-independent data structures that
hold the menu structure information and store it on the session or in the
database?

Or am I on a complete wrong track and should look for caching of the
rendered HTML code on a component basis?

Thanks in advance for sharing your knowledge/experience. 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cache-menu-tp2130976p2130976.html
Sent from the Wicket - User 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



Caching menu

2010-05-05 Thread Wolfgang

I'm working on a web site that has a menu bar with sub-items, and
sub-sub-items. The configuration of this menu is computed from hilariously
complex SQL queries and needs quite some time to be established. The menu
looks different for each user (session) but stays the same for the lifetime
of the session. So it's time for caching as this menu shows up on most of
the pages.

From other posts on this site I've taken that it's not a good idea to share
the components that represent the menu among different pages. Now I wonder
on which level I can cache and re-use objects.

Is it advisable to share models (in the Wicket sense), i.e. store the menu
models on the session and construct the menu components according to their
information for every page?

Or do I have to create separate, Wicket-independent data structures that
hold the menu structure information and store it on the session or in the
database?

Or am I on a complete wrong track and should look for caching of the
rendered HTML code on a component basis?

Thanks in advance for sharing your knowledge/experience.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Caching-menu-tp2130813p2130813.html
Sent from the Wicket - User 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: Dynamic checkbox form

2010-05-05 Thread Wolfgang

Each checkbox will be associated with a model. After submitting the form (in
your onSubmit method), these models contain the value of the checkbox. As
you have a dynamic set of checkboxes you have to make you store the models
in an appropriate collection. Or, you remember the references to the
checkbox components and ask them about their model value.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-checkbox-form-tp2125793p2130820.html
Sent from the Wicket - User 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



Bug in Page refresh?

2010-04-16 Thread Wolfgang Grossinger
We have a DropDownChoice to change the language of a page (the language 
in mapped through an enum). The handler to change the code is as follows.


@Override
protected void onSubmit(AjaxRequestTarget target) {

getSession().setLocale(getLanguage().getObject().getLocale());

setResponsePage(getPage());
}

We just have 3 pages and a login page. The code works on 2 of 3 pages 
but I don't know why it doesn't work on the third page (the code to find 
the language and to get the current page seems also to be correct and 
working). My question is does anybody have some hints what I could do wrong?


Regards,

Wolfgang



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



Master/Detail with DropDownChoice

2010-03-27 Thread Wolfgang Grossinger

Hi,

I have a real big problem and cant find any solution: What I want to do 
ist to have a master/detail view, where a DropDownChoice is the master 
to select the detail. The detail view is also used to save new Items and 
where some fields are 'required'.


1.) I need some kind of submit behavior. AjaxEventBehavior(onchange) 
will not work, because it doesn't deliver the current selection.
2.) Master and detail must be 2 different forms, because if I use one 
form, I would get a validation error when the required fields are not 
set what is not intended when I just want to select another item.


What I did at the moemnt is something like

wicket:panel
form id=masterForm method=post wicket:id=masterForm
select id=selNotamFilter2 wicket:id=selNotamFilter2/
/form
form id=detailsForm method=post wicket:id=detailsForm
   .

and the handling is done in this way:

   protected void onSubmit(AjaxRequestTarget target) {
DropDownChoiceString component = 
(DropDownChoiceString) this.getComponent();
Details selected = 
getMatchingItem(component.getConvertedInput());


So I come to the point that I have the right details to set and can also 
set the details to the model, but whatever I add via 
target.addComponent(...) is not updated after the request.


So my question is what do I wrong? (Is it not possible to update one 
form from another form?)
What can I do to get this right? (I find absolutely no solution for a 
quite common ans simpel problem in my opinion and this stuff cost me 
already days).


Thanks a lot for any help!

Wolfgang


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



wicket.markup.html.basic.MultiLineLabel with Links, different word color inside?

2009-05-12 Thread Wolfgang . Schele

Hi,

I have a request to put a link into a MultiLineLabel, or to set
some Words within the MultiLineLabel with a different color.

Is this possible in general?

thx
- jk



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



Validate, Navigate Wizards

2009-05-04 Thread Wolfgang . Schele

Hi,

when I validate the data of a WizardStep after pressing Next, I
navigate within the validate method to the WizardStep.previous()
step in the false case.

Works fine! But calling the method WizardStep.previous() works
not for the first Wizard step. That's ok, there is no previous
one.
But how can I do it right?

Is there in general a way to navigate programmatically the
wizards? Depending to the user input the order of the wizards is
different.

Is it possible to override any method before a Wizard Step is
called on the client. What I found was a onNext() Method. But
this method is not existing anymore in the v1.4.

best regards
- jk



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



Validate, Navigate Wizards

2009-05-04 Thread Wolfgang . Schele

Hi,

when I validate the data of a WizardStep after pressing Next, I
navigate within the validate method to the WizardStep.previous()
step in the false case.

Works fine! But calling the method WizardStep.previous() works
not for the first Wizard step. That's ok, there is no previous
one.
But how can I do it right?

Is there in general a way to navigate programmatically the
wizards? Depending to the user input the order of the wizards is
different.

Is it possible to override any method before a Wizard Step is
called on the client. What I found was a onNext() Method. But
this method is not existing anymore in the v1.4.

best regards
- jk



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



Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-04-09 Thread Wolfgang Gehner

I am sorry to report that we see the same problem. We run a page in IE, enter
some values, ajax-submit, open the same page in Firefox, and the values are
already there. 

Does the serialization ignore the user session? We store values in
CompoundPropertyModel.

As for the other posters, this is critical for us.

We are using the april 6 snapshot from
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/

We need that snapshot because it has the StreamCorrupted fix. We can't use
1.3.3 final because it doesn't have that fix.

Please advise.

Wolfgang Gehner


Niels Bo wrote:
 
 Yes, I can do that.
 
 It is both Application and Session at the same time.
 RequestCycle I have never seen it happen for.
 
 Niels
 
 
 Johan Compagner wrote:
 
 could you change that method that it checks this after the fact?
 and then see if there is an error for that thread before? for example
 also
 log the url call so that we can see
 what kind of request did let one thread local be there?
 
 Which one is it by the way?
 is it app, session or request cycle?
 
 i just checked our code and we have finally blocks pretty much every
 where
 in WicketFilter.doGet
 and in RequestCycle.steps
 
 And i have no idea how those can be jumped over.
 
 johan
 
 
 On Wed, Apr 9, 2008 at 12:22 PM, Niels Bo [EMAIL PROTECTED]
 wrote:
 

 We have kind of the same problem.
 It looks like Application and Session are not always cleared from the
 request thread, and to test this I have just deployed a subclassed
 WicketServlet with these checks (and also as a workaround):

protected void service(HttpServletRequest req, HttpServletResponse
 resp)
 throws ServletException, IOException {
if(Application.exists()) {
LogHelper.applicationLog(ILogEvents.LOGEVENT_UNEXPECTED,
 Application on Thread);
Application.unset();
}
if(Session.exists()) {
LogHelper.applicationLog(ILogEvents.LOGEVENT_UNEXPECTED,
 Session on Thread);
Session.unset();
}
if(RequestCycle.get() != null) {
LogHelper.applicationLog(ILogEvents.LOGEVENT_UNEXPECTED,
 RequestCycle on Thread);
RequestCycle.get().detach();
}

super.service(req, resp); // call WicketServlet
}

 Our logs show that it actually happens that both Application and Session
 are
 already attached to the thread before the request is processed.
 I have only seen it once or twice in our development environment, but it
 happens a few times every hour on the production server.

 Niels
 --
 View this message in context:
 http://www.nabble.com/Invoulentary-session-sharing-leakage-in-Wicket-1.3.x-tp16550360p16583880.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Invoulentary-session-sharing-leakage-in-Wicket-1.3.x-tp16550360p16585349.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-07 Thread Wolfgang Gehner
We use CompoundPropertyModel(HashMap map) where the map has wicket-ids
for map keys and the model value as map value.

How do we bring that to ComponentPropertyModel? It doesn't have an
Object constructor.

Wolfgang

On Mon, Apr 7, 2008 at 3:14 PM, Matej Knopp [EMAIL PROTECTED] wrote:
 No, if you use new ComponentPropertyModel it should still work.

  -Matej

  On Tue, Apr 8, 2008 at 12:11 AM, André Souza [EMAIL PROTECTED] wrote:
   Is this something new to 1.3? We have 3705 uses of TextField in our app so
far, and growing. We use CompoundPropertyModel out of the box.
  
Does that mean the TextField(String wickedId) constructor stopped working
with CompoundPropertyModel?
  
  
  
  
On 4/7/08, Matej Knopp [EMAIL PROTECTED] wrote:

 Is this a new error? Looks like your models are unable to provide
 target type. In that case you have to specify the property type in
 your textfields, either though the TextField constructor or call
 TextField.setType().

 This should not be required when you use (Component)PropertyModels
 only, but when you have custom models you have to call it unless your
 models implement IObjectClassAwareModel.

 -Matej

 On Mon, Apr 7, 2008 at 11:57 PM, André Souza [EMAIL PROTECTED]
 wrote:
  We are still having problems with the migration to 1.3.
 
   One fix we needed was not in the 1.3.3 release so we continued using
 
 
 
 http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/
 
   for now.
 
   We get this on the console, repeatedly:
 
 
   WARN  AbstractTextComponent () - Couldn't resolve model type of

   
 Model:classname=[org.apache.wicket.model.CompoundPropertyModel$AttachedCompoundPropertyModel]:nestedModel=[Model:classname=[org.apache.wicket.model.CompoundPropertyModel]:nestedModel=[...],
 
  please set the type yourself.
 
   After we get this message a number of variables we have in are set to
 null.
 
   What is the common cause of this message?
 
 
 
 
 
 
   On 4/7/08, Johan Compagner [EMAIL PROTECTED] wrote:
   
what do you mean?
that fix is no in the 1.3.3 release but will be in 1.3.4
   
   
On Mon, Apr 7, 2008 at 9:42 PM, Matej Knopp [EMAIL PROTECTED]
 wrote:
   
 Actually, it seems that I'm wrong about this...

 -Matej

 On Mon, Apr 7, 2008 at 9:26 PM, Matej Knopp [EMAIL PROTECTED]
wrote:
  Wicket 1.3.3 was released before april 06. The overflow fix is
 not
   part of the release.
 
   -Matej
 
 
 
   On Mon, Apr 7, 2008 at 9:13 PM, Daniel Wu [EMAIL PROTECTED]
wrote:
I've updated to the released Wicket 1.3.3, but I'm having 
 the
 stackoverflow
 there, but it wasn't happening on the snapshot of april 06.
 Was
this
 fix
 incorporated on the official Wicket 1.3.3 release?
   
 On Sun, Apr 6, 2008 at 6:10 PM, Johan Compagner 
 [EMAIL PROTECTED]
 wrote:
   
   
   
  Dont know if the stream corrupt has the same root problem
 as the
  stackoverflow
  But that is just fixed.
 
  johan
 
 
  On Sat, Mar 29, 2008 at 11:22 PM, Daniel Wu 
[EMAIL PROTECTED]
 wrote:
 
  
   I've updated my wicket application to Wicket 1.3.2, but
 now,
 when I try
  to
   switch between my application tabs (my tabs extend
  
 org.apache.wicket.extensions.markup.html.tabs.AbstractTab) I'm
 getting
   this
   error:
  
   ERROR RequestCycle () - Could not deserialize object
 using
  
  
 

   
 
 `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
   object factory
   java.lang.RuntimeException: Could not deserialize 
 object
 using
  
  
 

   
 
 `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
   object factory
  at
  

 org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
  at
  
  
 

   
 
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
  at
  
  
 

   
 
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-07 Thread Wolfgang Gehner
Is that for text fields only, or other components as well? We have a
class RTextField that extends TextField so we override the default
constructor RTextField(String id) to do super(id, String.class)

On Mon, Apr 7, 2008 at 3:26 PM, Wolfgang Gehner [EMAIL PROTECTED] wrote:
 Everything that needs state. And yes, that could be lists of data,
  serializable objects with hashmaps. How do you define a null
  reference?



  On Mon, Apr 7, 2008 at 3:22 PM, Johan Compagner [EMAIL PROTECTED] wrote:
   still what really goes into that CPM?
another model? with what kind of object?
Does some properties go over lists or maps or object graphs with null
references in them?
  
  
  
On Tue, Apr 8, 2008 at 12:11 AM, André Souza [EMAIL PROTECTED] wrote:
  
 Is this something new to 1.3? We have 3705 uses of TextField in our app 
 so
 far, and growing. We use CompoundPropertyModel out of the box.

 Does that mean the TextField(String wickedId) constructor stopped 
 working
 with CompoundPropertyModel?


 On 4/7/08, Matej Knopp [EMAIL PROTECTED] wrote:
 
  Is this a new error? Looks like your models are unable to provide
  target type. In that case you have to specify the property type in
  your textfields, either though the TextField constructor or call
  TextField.setType().
 
  This should not be required when you use (Component)PropertyModels
  only, but when you have custom models you have to call it unless your
  models implement IObjectClassAwareModel.
 
  -Matej
 
  On Mon, Apr 7, 2008 at 11:57 PM, André Souza [EMAIL PROTECTED]
  wrote:
   We are still having problems with the migration to 1.3.
  
One fix we needed was not in the 1.3.3 release so we continued 
 using
  
  
 
 
 http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/
  
for now.
  
We get this on the console, repeatedly:
  
  
WARN  AbstractTextComponent () - Couldn't resolve model type of
 
  
  
 Model:classname=[org.apache.wicket.model.CompoundPropertyModel$AttachedCompoundPropertyModel]:nestedModel=[Model:classname=[org.apache.wicket.model.CompoundPropertyModel]:nestedModel=[...],
  
   please set the type yourself.
  
After we get this message a number of variables we have in are set 
 to
  null.
  
What is the common cause of this message?
  
  
  
  
  
  
On 4/7/08, Johan Compagner [EMAIL PROTECTED] wrote:

 what do you mean?
 that fix is no in the 1.3.3 release but will be in 1.3.4


 On Mon, Apr 7, 2008 at 9:42 PM, Matej Knopp [EMAIL PROTECTED]
  wrote:

  Actually, it seems that I'm wrong about this...
 
  -Matej
 
  On Mon, Apr 7, 2008 at 9:26 PM, Matej Knopp 
 [EMAIL PROTECTED]
 wrote:
   Wicket 1.3.3 was released before april 06. The overflow fix 
 is
  not
part of the release.
  
-Matej
  
  
  
On Mon, Apr 7, 2008 at 9:13 PM, Daniel Wu 
 [EMAIL PROTECTED]
 wrote:
 I've updated to the released Wicket 1.3.3, but I'm having
 the
  stackoverflow
  there, but it wasn't happening on the snapshot of april 
 06.
  Was
 this
  fix
  incorporated on the official Wicket 1.3.3 release?

  On Sun, Apr 6, 2008 at 6:10 PM, Johan Compagner 
  [EMAIL PROTECTED]
  wrote:



   Dont know if the stream corrupt has the same root 
 problem
  as the
   stackoverflow
   But that is just fixed.
  
   johan
  
  
   On Sat, Mar 29, 2008 at 11:22 PM, Daniel Wu 
 [EMAIL PROTECTED]
  wrote:
  
   
I've updated my wicket application to Wicket 1.3.2, 
 but
  now,
  when I try
   to
switch between my application tabs (my tabs extend
   
  org.apache.wicket.extensions.markup.html.tabs.AbstractTab) I'm
  getting
this
error:
   
ERROR RequestCycle () - Could not deserialize object
  using
   
   
  
 

 
 
 `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
object factory
java.lang.RuntimeException: Could not deserialize
 object
  using
   
   
  
 

 
 
 `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
object factory

Re: java.io.StreamCorruptedException: invalid type code: 29

2008-04-07 Thread Wolfgang Gehner
Everything that needs state. And yes, that could be lists of data,
serializable objects with hashmaps. How do you define a null
reference?

On Mon, Apr 7, 2008 at 3:22 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 still what really goes into that CPM?
  another model? with what kind of object?
  Does some properties go over lists or maps or object graphs with null
  references in them?



  On Tue, Apr 8, 2008 at 12:11 AM, André Souza [EMAIL PROTECTED] wrote:

   Is this something new to 1.3? We have 3705 uses of TextField in our app so
   far, and growing. We use CompoundPropertyModel out of the box.
  
   Does that mean the TextField(String wickedId) constructor stopped working
   with CompoundPropertyModel?
  
  
   On 4/7/08, Matej Knopp [EMAIL PROTECTED] wrote:
   
Is this a new error? Looks like your models are unable to provide
target type. In that case you have to specify the property type in
your textfields, either though the TextField constructor or call
TextField.setType().
   
This should not be required when you use (Component)PropertyModels
only, but when you have custom models you have to call it unless your
models implement IObjectClassAwareModel.
   
-Matej
   
On Mon, Apr 7, 2008 at 11:57 PM, André Souza [EMAIL PROTECTED]
wrote:
 We are still having problems with the migration to 1.3.

  One fix we needed was not in the 1.3.3 release so we continued using


   
   
 http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/

  for now.

  We get this on the console, repeatedly:


  WARN  AbstractTextComponent () - Couldn't resolve model type of
   


 Model:classname=[org.apache.wicket.model.CompoundPropertyModel$AttachedCompoundPropertyModel]:nestedModel=[Model:classname=[org.apache.wicket.model.CompoundPropertyModel]:nestedModel=[...],

 please set the type yourself.

  After we get this message a number of variables we have in are set to
null.

  What is the common cause of this message?






  On 4/7/08, Johan Compagner [EMAIL PROTECTED] wrote:
  
   what do you mean?
   that fix is no in the 1.3.3 release but will be in 1.3.4
  
  
   On Mon, Apr 7, 2008 at 9:42 PM, Matej Knopp [EMAIL PROTECTED]
wrote:
  
Actually, it seems that I'm wrong about this...
   
-Matej
   
On Mon, Apr 7, 2008 at 9:26 PM, Matej Knopp 
   [EMAIL PROTECTED]
   wrote:
 Wicket 1.3.3 was released before april 06. The overflow fix is
not
  part of the release.

  -Matej



  On Mon, Apr 7, 2008 at 9:13 PM, Daniel Wu 
   [EMAIL PROTECTED]
   wrote:
   I've updated to the released Wicket 1.3.3, but I'm having
   the
stackoverflow
there, but it wasn't happening on the snapshot of april 06.
Was
   this
fix
incorporated on the official Wicket 1.3.3 release?
  
On Sun, Apr 6, 2008 at 6:10 PM, Johan Compagner 
[EMAIL PROTECTED]
wrote:
  
  
  
 Dont know if the stream corrupt has the same root problem
as the
 stackoverflow
 But that is just fixed.

 johan


 On Sat, Mar 29, 2008 at 11:22 PM, Daniel Wu 
   [EMAIL PROTECTED]
wrote:

 
  I've updated my wicket application to Wicket 1.3.2, but
now,
when I try
 to
  switch between my application tabs (my tabs extend
 
org.apache.wicket.extensions.markup.html.tabs.AbstractTab) I'm
getting
  this
  error:
 
  ERROR RequestCycle () - Could not deserialize object
using
 
 

   
  
   
   `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
  object factory
  java.lang.RuntimeException: Could not deserialize
   object
using
 
 

   
  
   
   `org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
  object factory
 at
 
   
org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:411)
 at
 
 

   
  
   
   
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:228)
 at
 
 

   
  
   
   
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:706)
 at