Re: [Wicket-user] Anyone received complete Pro Wicket ebook?

2006-09-19 Thread middledot
I too bought a beta version of the book, hoping that I would be informed of the final release but no such luck. The e-book is still in beta version on their website. I tried to download the code for the book but it's not there either. Strange. Les De Soca wrote: Hello, just curious, has

[Wicket-user] urlFor on root

2006-09-19 Thread jan_bar
Hi, I observe strange behaviour. My web application is deployed as EAR with gc as context root. The servlet mapping is /*. The Url generated by urlFor() is: http://localhost:8091/gc?wicket:interface=:16:mainFrameBorder:processBar:wishEditor:editWish:-1:IFlashListener I think that urlFor should

Re: [Wicket-user] urlFor on root

2006-09-19 Thread Johan Compagner
yes this is a know problem. I think there is already a bug report for this. Funny that it only comes up now twice. And this behaviour is there already a long timeMaybe because it is not the recommended way of configuring the wicket servlet.. This kind of configuring is really only working right in

Re: [Wicket-user] Anyone received complete Pro Wicket ebook?

2006-09-19 Thread Martin Funk
download the book even if it still says (beta) in the download area. worked for me. mf middledot schrieb: I too bought a beta version of the book, hoping that I would be informed of the final release but no such luck. The e-book is still in beta version on their website. I tried to download

Re: [Wicket-user] urlFor on root

2006-09-19 Thread jan_bar
Thanks Johan I searched bugzilla, but did not found any similar bug report. What is wrong with this setup? Should I have Wicket servlet mapped as /something/* to avoid troubles? I am not versed in servlet context path, I cannot help you. I would append '/' if not already present in path. Jan

Re: [Wicket-user] urlFor on root

2006-09-19 Thread Johan Compagner
see:http://sourceforge.net/tracker/index.php?func=detailaid=1555483group_id=119783atid=684977 in 1.2 you should use a servlet mapping. Else everything will go through the wicket servlet. So it is recommended that you use something like /app/*johanOn 9/19/06, jan_bar [EMAIL PROTECTED] wrote:

[Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
Hi, Janne, After satisfactory testing the wicket-portlet-examples (1.x), I decided to test a part of my webapp, just a few linked pages to test navigation. So, what I did is just extending from PortletPage, instead of WebPage. No compilation errors, and also no errors when deploying the WAR in

Re: [Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
Ok, checking the markup I can see - following the rules - shouldn't I use parent html element body, neither elements updwards (head, html, etc...). Wicket-portlet-examples, ExamplePortlet.html and ExamplePortlet2.html just contain inner-body html code, so I should do the same... will check! On

[Wicket-user] Javascript property set by javacode?

2006-09-19 Thread Nino Wael
Hi I have some _javascript_ that I need to modify based on the java code. I have some _javascript_ that checks all checkboxes or unchecks em all but the ones that are disabled. Ive created a small component that handles the stuff and placed the _javascript_ in that component as well

Re: [Wicket-user] Wicket 2, modal window, ListChoice, auto completion

2006-09-19 Thread Johan Compagner
why the hell would you want to add something random into _javascript_ and css? those are static 99% of the time! if it by default appended the last_modified file date i would be much more impressedbut this is also a bit stupid. The last modified file date is already used for caching resourcesThat

[Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Stefan Arentz
I have a wicket:link in a master template and it seems to change from a aLink/a to a spanemLink/em when the current page is the same as the one linked to. Is it possible to turn this behaviour off or to customize it? S. -

Re: [Wicket-user] Wicket 2, modal window, ListChoice, auto completion

2006-09-19 Thread Johan Compagner
lastmodifiedtime is already set correctly for package resources.The expire header could be set better i guess. But that is a very small penalty because if it expiresit just checks in a head request if the lastmodification time is also changed. If not it doesn't get the file again. So it for the

Re: [Wicket-user] Download after form submit

2006-09-19 Thread Johan Compagner
that is wrong for wicket 1.2 yes.You should use a RequestTarget for that see for example: ResourceStreamRequestTargetOn 9/18/06, Ralf Ebert [EMAIL PROTECTED] wrote:Hi, the solution for downloading a file immediately after a form

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread jan_bar
Link.setAutoAnable() Jan Stefan Arentz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a wicket:link in a master template and it seems to change from a aLink/a to a spanemLink/em when the current page is the same as the one linked to. Is it possible to turn this behaviour

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Martijn Dashorst
wicket:link is very basic. You won't be able to change much, if anything at all. It was just meant as a quick way of building a working menu. If you want more, then you'll have to use BookmarkablePageLinks Martijn On 9/19/06, Stefan Arentz [EMAIL PROTECTED] wrote: On 9/19/06, jan_bar [EMAIL

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Juergen Donnerstag
You can't. The Wicket Link components are created automatically with a random id and hence not accessible to you. If you want to change the style, you have to use wicket:id in the markup, manually create a Link and change the style. BTW your manually created links can of course be inside

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Erik Brakkee
On 9/19/06, Igor Vaynberg [EMAIL PROTECTED] wrote: Person person = new Person(); CompoundPropertyModel personModel = new CompoundPropertyModel(person); Component parent = new Component(personPanel, personModel); Component child = new Component(addressPanel, new CompoundPropertyModel(new

[Wicket-user] Dynamic changing of controls and frames list

2006-09-19 Thread Ars
Hello, The number and configuration of frames and controls on a page in my program is determined dynamically, depending on some business logic. Is there any way to accomplish it in Wicket with its static HTML templates? -- Best regards, Arseny

[Wicket-user] IDataProvider/ atach()/detach()....

2006-09-19 Thread Erik Brakkee
Hi, I have a situation where I use a domain object as the source for a dataprovider. So to get the list of items for the data provider I am actually querying the domain object like: manager.getArtists(); Since the manager is a persistent object, I need to refresh it from the database. In my

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Johan Compagner
Person person = new Person(); CompoundPropertyModel personModel = new CompoundPropertyModel(person); Component parent = new Component(personPanel, personModel); Component child = new Component(addressPanel, new CompoundPropertyModel(new PropertyModel(address, personModel))); Just for my

Re: [Wicket-user] Dynamic changing of controls and frames list

2006-09-19 Thread Che Schneider
Hi Arseny, One way is to markup your main template with wicket-tagged elements in all the places where you can possibly have a control or frame. Then in your business logic you replace that element either with nothing (an empty component) or the panel you would like to have in the place.

Re: [Wicket-user] Dynamic changing of controls and frames list

2006-09-19 Thread Che Schneider
Hi again, I just re-read you message and maybe I missed your point a little. Maybe what you need is your own component that creates the markup you need for your control or frame. If you then replace a markup element in your html code, you can basically do whatever you want: Index.html

Re: [Wicket-user] DatePicker broken in IE6

2006-09-19 Thread Pierre-Yves Saumont
It appears that under some conditions, the script associated with the date picker in the HTML is not executed when the HTML is loaded through Ajax. So Calendar.setup never get called. I could not figure what those secific conditions are. (In a simple use case, it works without problem.) Any

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Stefan Arentz
On 9/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote: wicket:link is very basic. You won't be able to change much, if anything at all. It was just meant as a quick way of building a working menu. If you want more, then you'll have to use BookmarkablePageLinks Hm that kind of sucks :-)

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Frank Bille
On 9/19/06, Stefan Arentz [EMAIL PROTECTED] wrote: On 9/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote: wicket:link is very basic. You won't be able to change much, if anything at all. It was just meant as a quick way of building a working menu. If you want more, then you'll have to use

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Martijn Dashorst
This is totally against 'the Wicket' way. The whole idea is to minimize scripting in the markup. What you propose is just going in the oposite direction. Martijn On 9/19/06, Stefan Arentz [EMAIL PROTECTED] wrote: On 9/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote: wicket:link is very basic.

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Stefan Arentz
On 9/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote: This is totally against 'the Wicket' way. The whole idea is to minimize scripting in the markup. What you propose is just going in the oposite direction. Sometimes being practical is better than the wicket way ;) S.

Re: [Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Janne Hietamäki
What version of Wicket are you using? There should work with the current version from svn? JanneOn 19.9.2006, at 13.08, Manuel Barzi wrote:Ok, checking the markup I can see - following the rules - shouldn't Iuse parent html element body, neither elements updwards (head, html,etc...).

Re: [Wicket-user] How do I prevent a wicket:link to change style

2006-09-19 Thread Gwyn Evans
Well, being practical, why don't you just style them via CSS, e.g. div#listmenu em { /*disabled links*/ display:block; padding:0 6px; /*creates space each side of menu item's text */ font-style: normal; font-weight:normal; color:gray; } /Gwyn On 19/09/06, Stefan Arentz

Re: [Wicket-user] urlFor on root

2006-09-19 Thread Gwyn Evans
See the wicket-quickstart/-template/etc for examples, but we typically run with /app/* and as a default, have a index.html in / that does a HTTP redirect to /app/. /Gwyn On 19/09/06, jan_bar [EMAIL PROTECTED] wrote: Thanks Johan I searched bugzilla, but did not found any similar bug report.

Re: [Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
:? it already works, since this morning! the issue was auto-solved... Thank you. On 9/19/06, Janne Hietamäki [EMAIL PROTECTED] wrote: What version of Wicket are you using? There should work with the current version from svn? Janne On 19.9.2006, at 13.08, Manuel Barzi wrote: Ok,

Re: [Wicket-user] WebPage 2 PortletPage, but error...

2006-09-19 Thread Manuel Barzi
Forgot to answer this... here it is: What version of Wicket are you using? There should work with the current version from svn? wicket-1.2-SNAPSHOT.jar - Take Surveys. Earn Cash. Influence the Future of IT Join

Re: [Wicket-user] Javascript property set by javacode?

2006-09-19 Thread Igor Vaynberg
see PackagedTextTemplate and HeaderContributor. the template supports variable substitution.-IgorOn 9/19/06, Nino Wael [EMAIL PROTECTED] wrote: Hi I have some _javascript_ that I need to modify based on the java code. I have some _javascript_ that checks all checkboxes or

Re: [Wicket-user] IDataProvider/ atach()/detach()....

2006-09-19 Thread Igor Vaynberg
in 2.0 IDataProvider extends IDetachable. in 1.x it still supports it although it doesnt implement it directly (so we can stay backwards compatible), so you have to do it yourselfclass MyDataProvider extends SortableDataProvider implements IDetachable here is the snippet from

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Igor Vaynberg
On 9/19/06, Johan Compagner [EMAIL PROTECTED] wrote: yeah thats nice, but you just lost the flexibility of where the address can come from (no imodel indirection - yeah you can make yet another constructor) and more importantly the short hand compound property model notation. if i can use the

Re: [Wicket-user] urlFor on root

2006-09-19 Thread Igor Vaynberg
yes, i think jonathan borrowed /app/* from tapestry :)-IgorOn 9/19/06, Gwyn Evans [EMAIL PROTECTED] wrote:See the wicket-quickstart/-template/etc for examples, but we typically run with /app/* and as a default, have a index.html in / that does aHTTP redirect to /app/./GwynOn 19/09/06, jan_bar

Re: [Wicket-user] Dynamic changing of controls and frames list

2006-09-19 Thread Igor Vaynberg
break your page into smaller panels, and add the ones that are appropriate. panels provide their own markup that is how you get something like this to work.-IgorOn 9/19/06, Ars [EMAIL PROTECTED] wrote: Hello, The number and configuration of frames and controls on a page in my program is

Re: [Wicket-user] Dynamic changing of controls and frames list

2006-09-19 Thread Eelco Hillenius
Yep. Che, directly writing tags is possible, not not something we recommend, as besides the fact that you'll probably create an unmaintainable mess for yourself, those tags would never be 'meaningful' in the sense that they could be interpreted as special wicket tags, components, etc. There are a

Re: [Wicket-user] Download after form submit

2006-09-19 Thread Eelco Hillenius
I just improved that request target a bit. Property responseType is not needed there, as that can be (and should be) retrieved from the resource stream (deprecated in 1.2, removed in 2.0) and I added a fileName property which can optionally be used for the very common use case where you want to

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Johan Compagner
and there is another problem with the automatic-versioning-that-would-make-your-life-as-a-wicket-developer-much-more-easier because now form components don't do version of there models.. Because it is data and we most likely don't want to version that But with our

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Igor Vaynberg
hmm but form components are written by us, we can make those fields transient?i dont know, for 2.0 it might be cool to just clone the page every time - we already do this anyways when storing to disk. the change thing is pretty error prone and hard for n00bz and even not so n00bz. the other big

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Johan Compagner
form components transient fields?where are you talking about?I was talking about the models under the form components which now are not causing a model change even if new data is comming inbut if we do a complete capture i see those model changes and i say he it is changed, now create a new

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Erik Brakkee
private void writeObject(java.io.ObjectOutputStream out) throws IOException private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException;No but what does that solve? It will save a lot of complexity for the serialization because you can delegate to the

Re: [Wicket-user] IDataProvider/ atach()/detach()....

2006-09-19 Thread Erik Brakkee
Thanks, that reminds me to look at wicket 2 before I start asking questions. Forgot to do that this time. On 9/19/06, Igor Vaynberg [EMAIL PROTECTED] wrote:in 2.0 IDataProvider extends IDetachable. in 1.x it still supports it although it doesnt implement it directly (so we can stay backwards

[Wicket-user] wicket bench 0.4

2006-09-19 Thread Joni Freeman
In addition to a few bug fixes this version contains following improvements and new features. - Improved preview Preview pane is now wicket:preview attribute aware. There's no limit how deep the previewed hierarchies can be. Preview pane can also inline non-packaged CSS and relocate images. A

Re: [Wicket-user] monitoring the size of a session.

2006-09-19 Thread Erik Brakkee
Ok, thanks.On 9/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote: There's this: http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.debug.InspectorPage You can check out the examples to see how that works. Suggestions toimprove monitoring are welcome. We

Re: [Wicket-user] Javascript property set by javacode?

2006-09-19 Thread Eelco Hillenius
The Slider component from wicket-stuff/wicket-contrib-yui uses this if you want to see code. Eelco On 9/19/06, Igor Vaynberg [EMAIL PROTECTED] wrote: see PackagedTextTemplate and HeaderContributor. the template supports variable substitution. -Igor On 9/19/06, Nino Wael [EMAIL

[Wicket-user] AjaxAutoCompleteBehavior which appends selected values to component

2006-09-19 Thread Roland Kaercher
Hello, I would like to use the ajax autocomplete feature to add words to an inputfield. default behaviour of the javascript in AbstractAutoCompleteBehavior is to replace the contents of the inputfield with the selected value. Is there an easy (intended) way of overriding this behaviour in a way

Re: [Wicket-user] [Wicket-develop] wicket bench 0.4

2006-09-19 Thread Igor Vaynberg
nice!one feature i wanted but havent had time to add in yet was when you create a panel (w/out usign the wizard) you should be able to click on the html tab and have it create an empty html file for you, same for properties. -IgorOn 9/19/06, Joni Freeman [EMAIL PROTECTED] wrote: In addition to a

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Igor Vaynberg
but you know they are formcomponents, so the versioning thing can skip models of formcomponents-IgorOn 9/19/06, Johan Compagner [EMAIL PROTECTED] wrote:form components transient fields?where are you talking about? I was talking about the models under the form components which now are not causing

Re: [Wicket-user] Sharing parts of a model between components...

2006-09-19 Thread Igor Vaynberg
Especially the determination of differences between object graphs might get complex. By the way, it might be useful to look at Hibernate and JDO because these tools do something similar, detecting changes made to an object-graph and performing the appropriate (minimal) updates (changes) towards a

Re: [Wicket-user] Download after form submit

2006-09-19 Thread Sean C. Sullivan
In my application, I created an abstract base form (BaseForm.java) which declares this method: public void setResponse(byte[] filedata, String filename) All of my form classes extend the BaseForm class. Here's my code: http://oscon2006.sourceforge.net/xref/oscon2006/web/BaseForm.html

Re: [Wicket-user] Anyone received complete Pro Wicket ebook?

2006-09-19 Thread De Soca
Hi Martin, thanks, that did it. Strange that they never changed the link. Cheers. Martin Funk wrote: download the book even if it still says (beta) in the download area. worked for me. mf middledot schrieb: I too bought a beta version of the book, hoping that I would be informed of

Re: [Wicket-user] Anyone received complete Pro Wicket ebook?

2006-09-19 Thread De Soca
Sorry, my celebrations were premature, its the same 9 chapters as the beta book. What rotten service. Called and let a message with Apress support still no reply. De Soca wrote: Hi Martin, thanks, that did it. Strange that they never changed the link. Cheers. Martin Funk wrote: