Re: [Wicket-user] html compression (whitespace removal)

2006-08-04 Thread Eelco Hillenius
I think you're looking for IMarkupSettings#setCompressWhitespace Eelco On 8/4/06, Alexei Sokolov <[EMAIL PROTECTED]> wrote: > Hi All, > > Is it possible to remove unnecessary whitespaces (end-of-line & space > characters) from wicket output without changing original templates? I'm > sorry if thi

[Wicket-user] html compression (whitespace removal)

2006-08-04 Thread Alexei Sokolov
Hi All,Is it possible to remove unnecessary whitespaces (end-of-line & space characters) from wicket output without changing original templates? I'm sorry if this question was answered before...Alex - Take Surveys. Earn Cash. I

Re: [Wicket-user] Form-question

2006-08-04 Thread Mats Norén
Thanks, I'll give it a try! On 8/4/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yep this will indeed require "model trickery" which is not really that > tricky. > > public class PersonPropertyModel extends AbstractModel { >private final IModel person; >private final IModel type; > >

Re: [Wicket-user] links in a DataTable

2006-08-04 Thread Gwyn Evans
Thanks, I've used that (and the way I do it) in a new page on the Wiki http://www.wicket-wiki.org.uk/wiki/index.php/Extensions:datatablelinks /Gwyn On 04/08/06, Joe Toth <[EMAIL PROTECTED]> wrote: > Thats exactly what I did...here is how I implemented it. I use this a lot, > maybe slap it in exte

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Igor Vaynberg
add an rfe so it doesnt slip, or of course a patch would be welcome :)-IgorOn 8/4/06, Alexei Sokolov < [EMAIL PROTECTED]> wrote:And if you can do it in 1.2.2 it would be great. AlexOn 8/4/06, Igor Vaynberg < [EMAIL PROTECTED] > wrote: we can add a set() to request cycle as well :) -IgorOn 8/4/06, A

Re: [Wicket-user] links in a DataTable

2006-08-04 Thread Decebal Suiu
This is exactly what I needed. Thanks! --- Joe Toth <[EMAIL PROTECTED]> wrote: > Thats exactly what I did...here is how I implemented > it. I use this a > lot, maybe slap it in extensions? > > > wicket:id="label">link > > > > package com.whatever; > > import > wicket.extensions.markup.htm

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Alexei Sokolov
And if you can do it in 1.2.2 it would be great.AlexOn 8/4/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:we can add a set() to request cycle as well :) -IgorOn 8/4/06, Alexei Sokolov < [EMAIL PROTECTED] > wrote: For Application & Session you have set() methods. So, you can backup current values and

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Igor Vaynberg
we can add a set() to request cycle as well :)-IgorOn 8/4/06, Alexei Sokolov <[EMAIL PROTECTED] > wrote:For Application & Session you have set() methods. So, you can backup current values and then restore them. AlexOn 8/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: request cycle is not the only p

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Alexei Sokolov
For Application & Session you have set() methods. So, you can backup current values and then restore them.AlexOn 8/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:request cycle is not the only problem. we have application and session threadlocals as well. -IgorOn 8/4/06, Alexei Sokolov < [EMAIL PRO

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Igor Vaynberg
request cycle is not the only problem. we have application and session threadlocals as well.-IgorOn 8/4/06, Alexei Sokolov < [EMAIL PROTECTED]> wrote:You can introduce push/pop methods on RequestCycle in the next version of wicket. AlexOn 8/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: yeah, the

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Alexei Sokolov
You can introduce push/pop methods on RequestCycle in the next version of wicket.AlexOn 8/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it. -IgorOn 8/4/06, Alexei Soko

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Igor Vaynberg
yeah, the threadlocal context vars are prob going to be a problem. you can spin off a worker thread to do the render and wait for it.-IgorOn 8/4/06, Alexei Sokolov <[EMAIL PROTECTED]> wrote: One more roadblock... RequestCycle constructor & current ThreadLocal variable. There is no way to alter val

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Alexei Sokolov
One more roadblock... RequestCycle constructor & current ThreadLocal variable. There is no way to alter value of current RequestCycle after it was set in the constructor, which means that I cannot suspend current request cycle, generate my page into a string, and then resume the original request cy

Re: [Wicket-user] links in a DataTable

2006-08-04 Thread Joe Toth
Thats exactly what I did...here is how I implemented it. I use this a lot, maybe slap it in extensions?link package com.whatever;import wicket.extensions.markup.html.repeater.data.table.PropertyColumn;import wicket.extensions.markup.html.repeater.refreshing.Item;import wicket.markup.html.basic.Lab

Re: [Wicket-user] generating e-mail reports with wicket

2006-08-04 Thread Alexei Sokolov
Well, for some reason I cannot render a page using MockupWebApplication. I get an exception saying that all components on the page failed to render. Log file, however, says that every one of them was rendered. I think that the problem lies inside ComponentRequestTarget.respond(final RequestCycle r

Re: [Wicket-user] links in a DataTable

2006-08-04 Thread Igor Vaynberg
instead of using a property column you have to implement your own column that creates a panel/fragment with the link and text-IgorOn 8/4/06, Decebal Suiu <[EMAIL PROTECTED]> wrote: I created a table with wicket (1.2.1) using aDataTable (DefaultDataTable) and a DataProvider(SortableDataProvider).My

[Wicket-user] links in a DataTable

2006-08-04 Thread Decebal Suiu
I created a table with wicket (1.2.1) using a DataTable (DefaultDataTable) and a DataProvider (SortableDataProvider). My table has one column like PropertyColumn(new Model("name'), name, name). Is it possible to have a linkable name instead of a plain name? Here's the code: List projectColumn

Re: [Wicket-user] wicket --> JSR 168 Portlet --> WSRP ?

2006-08-04 Thread Eelco Hillenius
Still being worked on (by Janne, and possibly soon by Ate as well), so the more people that can test/ play with it, the better. Eelco On 8/4/06, Julian Klappenbach <[EMAIL PROTECTED]> wrote: > Thanks guys! > > On 8/4/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > I assume you have checked o

Re: [Wicket-user] wicket --> JSR 168 Portlet --> WSRP ?

2006-08-04 Thread Julian Klappenbach
Thanks guys! On 8/4/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > I assume you have checked out wicket-portal-examples? > > It hasn't received a release yet, but you can find it in SVN: > > https://svn.sourceforge.net/svnroot/wicket/branches/WICKET_1_2/ > > Martijn > > On 8/3/06, Christofer Je

Re: [Wicket-user] Form-question

2006-08-04 Thread Igor Vaynberg
yep this will indeed require "model trickery" which is not really that tricky.public class PersonPropertyModel extends AbstractModel {   private final IModel person;   private final IModel type;    //imagine a constructor here//   Object getObject(Component c) {  Person p=person.getObject(c

Re: [Wicket-user] no-cache in development mode

2006-08-04 Thread Eelco Hillenius
Wicket provides the following: Override configureResponse in WebPage is one, where this is the default: /** * @see wicket.Page#configureResponse() */ protected void configureResponse() { super.configureResponse(); final We

Re: [Wicket-user] RadioGroup getModelObject() null ?

2006-08-04 Thread Igor Vaynberg
final RadioGroup radioGroup = new RadioGroup("myValue");System.out.println("nat model: " + radioGroup.getModelObject());        //this //outputs null everytime - that's my problemwhy wouldnt it output null? you havent set the model on the RadioGroup so it is null unless there is a compound model s

Re: [Wicket-user] IBATIS (and Spring)

2006-08-04 Thread Gwyn Evans
Just to follow up on this, I'd flag the fact that there's a rather impressive code generation tool for iBATIS called Abator that can do a *lot* of the basic work needed if you've got a DB table to point it at! I might even have to go back & branch wicket-phonebook to show it at some stage! /Gwyn

[Wicket-user] Form-question

2006-08-04 Thread Mats Norén
Hi, I've got a form problem that I don't really now how to handle. I've got three entities Person, PersonProperty and PropertyType. A Person has a Set A PersonProperty has a reference to a Person, a PropertyType and contains a value. What I would like to do is to edit a users dynamic properties

Re: [Wicket-user] RadioGroup getModelObject() null ?

2006-08-04 Thread Alex Parvulescu
hello,the code is like this ://final RadioGroup radioGroup = new RadioGroup("myValue");System.out.println("nat model: " + radioGroup.getModelObject());        //this //outputs null everytime - that's my problemfinal List optLabelList = Ar

Re: [Wicket-user] no-cache in development mode

2006-08-04 Thread Korbinian Bachl
Hi, the only 100% way is to deactivate the cache in the browser itself - as i found out some versions dont count on that no-cache, if they get the data for the same connection within short time, they usually use the chunks in the 0-time cache, especially if its embedded (like CSS files). the best

[Wicket-user] no-cache in development mode

2006-08-04 Thread Pierre-Yves Saumont
Hi, I like to have browser be automatically instructed not to cache anything when in Wicket development mode. (I can't count the times I did not remember to clear the cache after making some modification in a CSS and couldt not find why the changes were not visible). May be it's there and I co

Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-04 Thread Johan Compagner
But this:i really don't like.That is worsed of both worlds. You still don't have default/preview but you do have an extra input attribute to parse. Ok knowing that something must be i18n is easier.But you are right about that it looks neather when with multiply attributes.But this should also work

Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-04 Thread Jean-Baptiste Quenot
1 [ ] 2 [X] > If you want to express it without a default value, that would be written as: And if Wicket is going to support multiple attributes: -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ --

Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-04 Thread Matej Knopp
1 [X] Btw. We are using ${key} everywhere (customized markup parsing) and it's much more convenient than wicket:message :-) -Matej Eelco Hillenius wrote: > For localized attributes - so that you don't have to attach attribute > modifiers all over the place for that sole reason - we have two >

Re: [Wicket-user] problems migrating the application to the latestwicket

2006-08-04 Thread Dipu
Hi Eelco, Thanks very much for the reply, i assume the problem is some class path issue, because the same set of files works the way it is supposed to work on another machine. Regards Dipu - Original Message - From: "Eelco Hillenius" <[EMAIL PROTECTED]> To: Sent: Thursday, August 03,

Re: [Wicket-user] wicket --> JSR 168 Portlet --> WSRP ?

2006-08-04 Thread Martijn Dashorst
I assume you have checked out wicket-portal-examples? It hasn't received a release yet, but you can find it in SVN: https://svn.sourceforge.net/svnroot/wicket/branches/WICKET_1_2/ Martijn On 8/3/06, Christofer Jennings <[EMAIL PROTECTED]> wrote: > Sorry if this question is off topic, but has an

Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-04 Thread Joni Freeman
On Fri, 2006-08-04 at 08:50 +0200, Korbinian Bachl wrote: > thus im quite new, > > 2[x] > > be ** up (hopefully...) by your next designer who changed the text so it > looks better... This a good point, with option 1 it is likely that designers touch the value-attribute. In option 2, it doe