Re: [Wicket-user] Hibernate transactions

2005-12-17 Thread Igor Vaynberg
about service interfaces. -IgorOn 12/17/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote: as i said, imho, that is a good place for boundaries because that is the only place where you should be modifying data. any modification outside an event handler should result in an error. at least this is how i

Re: [Wicket-user] Hibernate transactions

2005-12-17 Thread Igor Vaynberg
On 12/17/05, John Patterson <[EMAIL PROTECTED]> wrote: Ahh yes this does sound like a better approach.  I have never used Springbefore.  a couple of questions:Can you call multiple operations on your service interfaces in the sametransaction?  Or is this not done? yes. if you mark your service meth

Re: [Wicket-user] Hibernate transactions

2005-12-17 Thread Igor Vaynberg
On 12/17/05, John Patterson <[EMAIL PROTECTED]> wrote: On Saturday 17 Dec 2005 19:24, Igor Vaynberg wrote:> > Can you call multiple operations on your service interfaces in the same> > transaction?  Or is this not done?>> yes. if you mark your service method as PROPOGATION

Re: [Wicket-user] Hibernate transactions

2005-12-17 Thread Igor Vaynberg
tomise core frameworkcode which becomes a maintenance nightmare.Cheers, JohnOn Saturday 17 Dec 2005 19:24, Igor Vaynberg wrote:> On 12/17/05, John Patterson <[EMAIL PROTECTED]> wrote:> > Ahh yes this does sound like a better approach.  I have never used Spring > > before.  a couple of

Re: [Wicket-user] Hibernate transactions

2005-12-17 Thread Igor Vaynberg
llback !! PROPOGATION only ocurrs within out-most service method.On 12/18/05, Igor Vaynberg < [EMAIL PROTECTED]> wrote: On 12/17/05, John Patterson <[EMAIL PROTECTED]> wrote: On Saturday 17 Dec 2005 19:24, Igor Vaynberg wrote:> > Can you call multiple operations on your service int

Re: [Wicket-user] Hibernate transactions

2005-12-17 Thread Igor Vaynberg
if application.onRuntimeException() is not being called then its a bug. if you verify that it is indeed the case please file a bug.-IgorOn 12/17/05, John Patterson <[EMAIL PROTECTED]> wrote: On Saturday 17 Dec 2005 23:10, John Patterson wrote:> I have checked it out and it looks to me like the met

Re: [Wicket-user] Hibernate transactions

2005-12-17 Thread Igor Vaynberg
this is indeed a bug. i have a patch ready but i would like to discuss it with the other devs because it causes an api break dude to request cycle refactorings. i will post the patch and the discussion to the devel list. -Igor On 12/17/05, Igor Vaynberg <[EMAIL PROTECTED]> wro

Re: [Wicket-user] How to have dynamic table data and column count

2005-12-18 Thread Igor Vaynberg
also look into datatable. it makes it trivial to have variable numbers of columns with varable column outputs. basically exactly what you are asking for. and it takes care of all the html/paging/etc. it lives in wicket-extensions. you can see it in action in wicket-examples / repeaters. -IgorOn 1

Re: [Wicket-user] beginner: error with simple HelloWorld App with tomcat 5.5

2005-12-20 Thread Igor Vaynberg
i dont think you can share wicket between contexts. the problem is that wicket cannot create your application's class using Class.newInstance() because the server classloader that loads it from the shared libs dir does not see jars inside context dirs. This works opposite to a webapp classloader th

Re: [Wicket-user] beginner : What happens on submit ?

2005-12-20 Thread Igor Vaynberg
after the page is rendered it is put into a PageMap. the pagemap lives in session and keeps the last 10  pages ( this number is configurable through application settings object). so when you submit a form or click a link the page is brought back from pagemap and the link/form handler is executed on

Re: [Wicket-user] beginner : What happens on submit ?

2005-12-20 Thread Igor Vaynberg
x27;d i be getting it from the PageMap instead?   I didnt do setResponsePage(Welcome.class) since am not sure how i can supply the model for the "message" component in the 'Welcome.html'   thanks karthik  On 12/21/05, Igor Vaynberg <[EMAIL PROTECTED] > wrote: after the

Re: [Wicket-user] beginner : doubt on PageMap

2005-12-20 Thread Igor Vaynberg
can we see your code please.-IgorOn 12/20/05, karthik Guru <[EMAIL PROTECTED]> wrote: this is the flow in my application   Page1  --on submit --> Page2 (has link to Page1)  on click of link --> Page1   I see the Page1 constructor is getting called twice for the same session since am accessing it tw

Re: [Wicket-user] beginner : What happens on submit ?

2005-12-20 Thread Igor Vaynberg
On 12/20/05, karthik Guru <[EMAIL PROTECTED]> wrote: Thanks Igor for your patience :)  Yes this solution is neat. So in this case we are by passing the PageMap concept built into wicket since we are creating the WelcomePage ourselves?no, we are not bypassing the pagemap. wicket will put any page w

Re: [Wicket-user] beginner : doubt on PageMap

2005-12-20 Thread Igor Vaynberg
what version of wicket are you using?when i run your example i get:Login Constructor called!User id was asdadasda and the password was asdasdasdWelcome Constructor!which is the output i would expect. -IgorOn 12/20/05, karthik Guru <[EMAIL PROTECTED]> wrote: Hi Igor,   this is the code..   #Login pa

Re: [Wicket-user] beginner : doubt on PageMap

2005-12-20 Thread Igor Vaynberg
i click the link (Login.html) on Welcome.html, i see the Login.java constructor getting called.     On 12/21/05, Igor Vaynberg <[EMAIL PROTECTED] > wrote: what version of wicket are you using?when i run your example i get:Login Constructor called! User id was asdadasda and the passwor

Re: [Wicket-user] Re: wicket bug

2005-12-21 Thread Igor Vaynberg
NTINUE_TRAVERSAL;} });}}It seems to work. Any objections?JuergenOn 12/21/05, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:> On 12/21/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> > h

Re: [Wicket-user] Re: wicket bug

2005-12-21 Thread Igor Vaynberg
omponent was added        final Page page = findPage();        if (page != null)        {            page.componentAdded(component);        }    } johan On 12/22/05, Igor Vaynberg < [EMAIL PROTECTED]> wrote: what do you think about performance? seems kind of overkill to traverse the entire tree

Re: [Wicket-user] beginner: Loop and ListView difference

2005-12-24 Thread Igor Vaynberg
i think what you want can be accomplished via something like this:add(new Link("link", listItem.getModel()) {  public void onClick() { MyObject obj=(MyObject)getModelObject(); setResponse(new MyPage( obj.getId(), ... ));  }}this way you pass the parameters into the page constructorsee the l

Re: [Wicket-user] Firefox misbehavior and wicket problem

2005-12-25 Thread Igor Vaynberg
i started a wiki page to collect these types of gotchas and to make a list of best practices.http://www.wicket-wiki.org.uk/wiki/index.php/Best_Practices_and_Gotchas feel free to add to it.-IgorOn 12/25/05, Iman Rahmatizadeh <[EMAIL PROTECTED] > wrote:I posted this problem last week where clicking o

[Wicket-user] spring integration

2005-12-26 Thread Igor Vaynberg
hello all,the spring integration packages moved from wicket-stuff project to wicket project and are available aswicket-spring wicket-spring-examples wicket-spring-annot wicket-spring-annot-examples there is a request to cleanup the wicket-stuff cvs already in progress.there are a couple of new feat

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-27 Thread Igor Vaynberg
this was due to a new check we introduced. basically it would throw an error if you try to add a component that already had a parent set. this would help users catch errors in certain situtations, but obviously caused problems in others. i changed it so now the component is removed from its previou

[Wicket-user] spring integration with commons attributes support

2005-12-28 Thread Igor Vaynberg
hi people,there is now a wicket-spring-cattr project that integrates spring injection with the commons attributes through the use of a @@SpringBean commons attribute. great for people on jdk1.4 that wont annotation-like functioanlity and dont mine a post-compilation step. http://jakarta.apache.org/

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-28 Thread Igor Vaynberg
be to correct the> > MarkupContainer.removeAll() method. But it has maybe been done this> > way (just setting the children property to null) for performance > > reasons ?> >> >> >> >> > On 12/28/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> &

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-28 Thread Igor Vaynberg
esubclassed as a team (similar to hashCode() and equals()).Gili Igor Vaynberg wrote:> i do not think removeAll() should call the regular remove(). removeAll()> generates a single change object and clears out the children, i think> that is enough. it does what it says in a simple and efficient way. >> -Igor

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-28 Thread Igor Vaynberg
children components. On 12/28/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> so what you are saying is that we should not optimize removeall() and just> make it loop over components and call container.remove() on them?>> this would be much simpler then the current implementation tha

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-28 Thread Igor Vaynberg
i just added a note to removall() saying it does not use remove()-IgorOn 12/28/05, Laurent PETIT < [EMAIL PROTECTED]> wrote:yes,this has to be clear in the javadoc, at least. On 12/28/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> i think gili's point was more to the tune

Re: [Wicket-user] Error with ReuseIfModelsEqualStrategy and last version of wicket/wicket-extensions

2005-12-28 Thread Igor Vaynberg
quot;unmanaged", but I think that a container component should be> responsible of the lifecycle/management of its children components. >>>>> On 12/28/05, Igor Vaynberg <[EMAIL PROTECTED]> [EMAIL PROTECTED] >> wrote:>  > so what you are saying

Re: [Wicket-user] Component-Level AJAX Response

2005-12-28 Thread Igor Vaynberg
imho, i think this is the wrong approach because it will cause problems with links and forms. if you do max_pages_in_pagemap ajax requests and then click a link or submit a form that was not updated by ajax you will get a page expired error. it also creates a sync issue because the page you are loo

Re: [Wicket-user] Component-Level AJAX Response

2005-12-28 Thread Igor Vaynberg
or put a placeholder panel with empty markup for comments, then in the ajax handler replace it with an actual panel, render it, and replace it back with the placeholder. this might be even cleaner then having an invisible listview. -Igor On 12/28/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote

Re: [Wicket-user] Component-Level AJAX Response

2005-12-28 Thread Igor Vaynberg
i think that might work. i havent played with ajax that much since the latest request cycle refactorings, so i am only guessing. the only way to find out is to give it a try :) -Igor On 12/28/05, R.J. Lorimer <[EMAIL PROTECTED]> wrote: Igor,Thanks for your feedback. I'm certainly not a Wicket expe

Re: [Wicket-user] Building scalable app with wicket

2005-12-30 Thread Igor Vaynberg
my recomendation would to be to start working with the HEAD version. it offers a lot of improvements on 1.1 that make life easiermainlypage url mounting: which give you nice looking stateful urls that can be bookmarked (see niceurl example in wicket-examples) IPageSource that lets you customize exa

Re: [Wicket-user] Re: XsltPanel?

2005-12-30 Thread Igor Vaynberg
i think this is possible. will probably look something like this, i havent tried itXsltPanel extends Panel { onComponentTagBody(...) {   // wicket renders markup into response so we create a standin that will collect the markup for us    StringBufferResponse response=new StringBufferResponse();   /

Re: [Wicket-user] Re: XsltPanel?

2005-12-31 Thread Igor Vaynberg
so when this is completed border will extend from the abstract output transformer container and perform an empty transform as opposed to extending the markup container?-Igor On 12/31/05, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:I committed a first attempt. I called them OutputTransformer. They

Re: [Wicket-user] Re: XsltPanel?

2006-01-01 Thread Igor Vaynberg
ed an additional tagand an additional container.JuergenOn 12/31/05, Igor Vaynberg < [EMAIL PROTECTED]> wrote:> so when this is completed border will extend from the abstract output> transformer container and perform an empty transform as opposed to extending > the markup conta

Re: [Wicket-user] threading question

2006-01-02 Thread Igor Vaynberg
this is a correct assumption. wicket synchronizes page processing on the user's session so that you dont have to worry about any threading issues.this is done here in case you are curious:PageRequestTarget.java :93/**     * @see wicket.IRequestTarget#getLock(RequestCycle)     */    public Object ge

Re: [Wicket-user] Wicket outside of servlet container

2006-01-03 Thread Igor Vaynberg
we already have the abstraction outside of the mock objects. i think juergen meant for you to look at those to get the idea of how things work, but not to reuse them directly.we have Application, Session, Request, Response all these have the WebXXX subclasses which provide http servlet specific fun

Re: [Wicket-user] Re: Safari caching

2006-01-03 Thread Igor Vaynberg
maybe we need to rethink how we allow users to set headers. the redirect_to_buffer is broken because it just spits out the buffer w/out the headers that were set on the page, so it doesnt really record the entire state. it is worse because it is our default render strategy. somehow we need to recor

Re: [Wicket-user] basic ListView question

2006-01-03 Thread Igor Vaynberg
this is the right approach. this is exactly why the listview either takes a collection instance or an imodel instance instead.-IgorOn 1/3/06, karthik Guru <[EMAIL PROTECTED]> wrote: I'm want to be able to supply the ListView with a IModel that tells it how to get to the list. I'm not in a position

Re: [Wicket-user] Re: Safari caching

2006-01-04 Thread Igor Vaynberg
pagner < [EMAIL PROTECTED]> wrote: i will see if i can hold on to the header settings in a redirect to buffer.On 1/4/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:maybe we need to rethink how we allow users to set headers. the redirect_to_buffer is broken because it just spits out th

Re: [Wicket-user] Re: Safari caching

2006-01-05 Thread Igor Vaynberg
will be set. johanOn 1/4/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: thats why i said maybe we should provide a datastructure just for this instead of letting the user mock response objects.something like Headers getHeaders() in the page and Headers has addHeader(..). that way we can store it

Re: [Wicket-user] Using OrderedRepeatingView and try to setRenderBodyOnly(true)

2006-01-05 Thread Igor Vaynberg
ordered repeating view lets its children use its markup but doesnt render anything itself. so you should setrenderbodyonly(true) on the panel you are adding to the view not the view itself -Igor On 1/5/06, Caghan Ozbek <[EMAIL PROTECTED]> wrote: Hi,I am trying to remove tags and usingsetRenderBody

Re: [Wicket-user] AJAX handler HOWTO

2006-01-06 Thread Igor Vaynberg
try AjaxHandler.getCallbackUrl();-IgorOn 1/6/06, pepone pepone <[EMAIL PROTECTED]> wrote: I Read AjaxHandler javadoc in wicket-1.2.SNAPSHOOTbut i can't found how my _javascript_ can make a call to the Handler what is the url for make a call to a AjaxHandler add to a Panelthanks--play tetris http://

Re: [Wicket-user] Cancel button that doesn't do validation

2006-01-06 Thread Igor Vaynberg
Button.setDefaultFormProcessing(false);i usually have a subclass called CancelButton that makes that call in the constructor.-IgorOn 1/6/06, Jonathan Carlson <[EMAIL PROTECTED]> wrote: I hope I didn't just miss this in the documentation (or maybe I do :-)How would I turn off validation for a "Canc

Re: [Wicket-user] dinamic markup

2006-01-09 Thread Igor Vaynberg
you would need to implement IResourceStreamLocator that can pull the markup from the database and set it with getResourceSettings().setResourceStreamLocator(...)you might want to write your locator as a wrapper that can delegate to the default locator in case it cannot locate markup. that way all o

Re: [Wicket-user] Upgrading when 1.2 is released

2006-01-09 Thread Igor Vaynberg
Sven, could you look over the wiki article and maybe tell us if something was missing from what you had to do when moving from 1.1 to 1.2thanks,-IgorOn 1/9/06, Sven Meier <[EMAIL PROTECTED]> wrote:I did it today (assuming the current SNAPSHOT being close to a final) and it took me 2 hours.Quite a

Re: [Wicket-user] Problem with the basics?

2006-01-09 Thread Igor Vaynberg
you are using user indirectly as the model for form components. that means when the components get serialized into session they will need to serialize their model (the user object) but you did not declare it as serializable. so try private class User implements Serializable.that should solve the pr

Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108

2006-01-09 Thread Igor Vaynberg
so why isnt this really void?-IgorOn 1/9/06, Johan Compagner <[EMAIL PROTECTED]> wrote: What do you expect it should do?Just an empty page? Or an internal error page? If you look at the signin examples you see that we set a response page: redirectToInterceptPage(newPage(SignIn2.class)); So if you d

Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108

2006-01-09 Thread Igor Vaynberg
e access but still the targets are the same...   // We should redirect to something else...    }                    break;                 }On 1/9/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: so why isnt this really void?-IgorOn 1/9/06, Johan Compagner

Re: [Wicket-user] dinamic markup

2006-01-09 Thread Igor Vaynberg
better. -IgorOn 1/9/06, pepone pepone <[EMAIL PROTECTED]> wrote: I need my component can choose a diferent template at run timedepending of a RequestParameteris posible to handle this in wicket-1.2?thenOn 1/9/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:> you would ne

Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108

2006-01-09 Thread Igor Vaynberg
im not a big fan of the null = continue idea since its very implicit.-IgorOn 1/9/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:May that is how we should change it. Instead of return a boolean a Page. If null than go on, else goto the page provided.JuergenOn 1/9/06, Johan Compagner <[EMAIL PROTE

Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108

2006-01-10 Thread Igor Vaynberg
PROTECTED]> wrote:> > > > Maybe you remember johan and i worked on introducing a security > > > > framework into wicket. One of the things we had (still do actually :))> > > > was an access denied page that could be overridden by the developper.> > > >>

Re: [Wicket-user] I submited a new bug in wicket-1.2-20060108

2006-01-10 Thread Igor Vaynberg
no, the whole point of the interfaces was to make them point to the same objectso the same setting can be accessed from multiple interfacesOn 1/10/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Now we have marker interfaces, isn't it obvious to create multiple settings classes?What would happen i

Re: [Wicket-user] Problem with the basics?

2006-01-10 Thread Igor Vaynberg
keep in mind that wicket will not be the most common source of this exception. imho the more common source will be servlet container when it tries to serialize the session. in this case wicket is powerless to provide a better exception message so you will still see writeObject() failed or similar m

Re: [Wicket-user] Wicket 1.2 reload HTML files

2006-01-11 Thread Igor Vaynberg
or to be more precise you need the following two calls in your application.init() or constructor:        getResourceSettings().addResourceFolder("src/java"); // this is the path to your source folder relative to project folder and where the html files live         getResourceSettings().setResourceP

Re: [Wicket-user] Multible Panel Markup inside the page

2006-01-11 Thread Igor Vaynberg
if the panels are not meant to be shared make them a private static class and use the parent$inner.html syntax to define html files like karthik mentioned.i dont know if we need such a syntactic sugar in wicket, because then we need to start looking in multiple places to find a problem. ie look for

Re: [Wicket-user] Wicket 1.2 reload HTML files

2006-01-11 Thread Igor Vaynberg
yeah good point.-igorOn 1/11/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Reloading from the classpath should work out the box, right? SogetResourceSettings().setResourcePollFrequency( Duration.seconds(2));should work.EelcoOn 1/11/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:>

Re: [Wicket-user] Multible Panel Markup inside the page

2006-01-11 Thread Igor Vaynberg
because border is meant to /wrap/ things not replace them.-IgorOn 1/11/06, Laurent PETIT <[EMAIL PROTECTED] > wrote:Euuuhh,and why not just subclass Border ?On 1/11/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:> if the panels are not meant to be shared make them a private static cla

Re: [Wicket-user] beginner: Retain state when navigating using paging navigator

2006-01-11 Thread Igor Vaynberg
everything is so complicated...and why?have a list of ids or whatever the checkbox represents in your page and use submit links.here is a simple model for the checkbox that will push proper items into the list, currently i use it with ajax, but i think it will work with submit links just fine. reme

Re: [Wicket-user] How is it possible for ImageMap to reference a BufferedDynamicImage?

2006-01-11 Thread Igor Vaynberg
i havent used imagemap personally, but i think you can do the followingbuild a url for the buffered image resource and add an attribute modifier to the imagemap that will change that src attribute to that url. -IgorOn 1/9/06, a a <[EMAIL PROTECTED]> wrote: According to Wicket's documentation,  Imag

Re: [Wicket-user] Previous page

2006-01-12 Thread Igor Vaynberg
expired page is a regular page afaik. you can config wicket to use it by calling Application.get().getApplicationSettings.setPageExpiredErrorPage(class of new page)wicket will instantiate it whenever its needed. -IgorOn 1/12/06, Juhani K <[EMAIL PROTECTED]> wrote: 2006/1/11, Eelco Hillenius <[EMAIL

Re: [Wicket-user] beginner: DataView (wicket 1.2) question

2006-01-12 Thread Igor Vaynberg
turn a different ListDataProvider.   DataViewBase.internalGetDataProvider( ) is final so am unable to override it in my DataView derived class. What do you think is the best way to accomplish this now?   thanks karthik  On 1/4/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote: this is the right approac

Re: [Wicket-user] beginner: Retain state when navigating using paging navigator

2006-01-12 Thread Igor Vaynberg
begin with, adjusted my CheckBoxmodel according to your suggestion with some modifications. And bingo! it seems to be working fine.  But seriously this looks like magic andi'm not sure if it really works !! :)On 1/11/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote:> everything is so c

Re: [Wicket-user] beginner: DataView (wicket 1.2) question

2006-01-12 Thread Igor Vaynberg
thing I can do is tweaking something in onBeginRequest().I hope IDataProvider can provide "single" hook instead of two hooks. On 1/13/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: the dataprovider is quieried every request for the data, so manipulate the data in the object that t

Re: [Wicket-user] beginner: DataView (wicket 1.2) question

2006-01-12 Thread Igor Vaynberg
the contents of ListDataProvider dynamicallysince the List is private.  So I have my version of ListDataProvider that allows me to set the list later as well.On 1/12/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> the dataprovider is quieried every request for the data, so manipulate the > data in the o

Re: [Wicket-user] beginner: DataView (wicket 1.2) question

2006-01-12 Thread Igor Vaynberg
oh and the idataprovider works with an iterator because that is the lowest common denominator i could think of to traverse a set of data w/out knowing where it came from.-Igor On 1/12/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: this is an entirely different story then that of Ingram.y

Re: [Wicket-user] beginner: Need to get DropDownChoice to 'actually' submit the form

2006-01-12 Thread Igor Vaynberg
you want the behaviour we intentionally got away from because our users wanted it to work the way it does now, and i would have to agree.what comes to mind is to try something like this: instead of using the wantOnChangeNotification.-IgorOn 1/12/06, karthik Guru < [EMAIL PROTECTED]> wrote:my DropDo

Re: [Wicket-user] Basic questions about form usage

2006-01-12 Thread Igor Vaynberg
please see here for page lifecycle explanationhttp://thread.gmane.org/gmane.comp.java.wicket.user/7195your label is not being updated because its value is set only once in its constructor add( new Label( "page.test.label", getField() ) );since the page is not recreated and neither is the label the

Re: [Wicket-user] Basic questions about form usage

2006-01-12 Thread Igor Vaynberg
it. -IgorOn 1/12/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: please see here for page lifecycle explanationhttp://thread.gmane.org/gmane.comp.java.wicket.user/7195 your label is not being updated because its value is set only once in its constructor add( new Label( "page.test.label",

Re: [Wicket-user] beginner: DataView (wicket 1.2) question

2006-01-12 Thread Igor Vaynberg
is too big. MartijnOn 1/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> but you would still have to access the database twice. once to retrieve the > total count and once to retrieve the page. true idataprovider makes it> difficult to aquire all this in a single transaction, but what

Re: [Wicket-user] beginner: DataView (wicket 1.2) question

2006-01-13 Thread Igor Vaynberg
rn new DefaultPageableData(allBookList);     }};The API is not elegant as original IDataProvider but at least this solves all of my problemsIf this is not possible, I hope that 1.2 DataView can accept IModel as 1.1 do. On 1/13/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote: yep. the point of the datavie

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
if you need a default parameter why not set it in the default constructor? and have both default and pageparams constructor forward to an init method?-IgorOn 1/13/06, pepone pepone <[EMAIL PROTECTED]> wrote: Hello allis posible with wicket 1.2 set a default parameter to homePagethanks--play tetris

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
View=new HomeView("HomeView"));}};HomeView instaciate difrent panels depending of pageParameters. and depending of what panel instaciate the panel can need to read adiferent parameter.On 1/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > if you need a default parameter

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
tionat oz.web.html.portal.HomeView.getView(Unknown Source)at oz.web.html.portal.WidgetStack .(Unknown Source)at oz.web.html.portal.HomeView.(Unknown Source)    at oz.web.html.portal.Home.init(Unknown Source)at oz.web.html.portal.Home.(Unknown Source)... 28 more On 1/13/06, Igor Vaynberg <[EMA

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
im fixing it right nowwill prob have it fixed before you open the bug :)-IgorOn 1/13/06, pepone pepone < [EMAIL PROTECTED]> wrote:Must i open a bug for this issue?On 1/14/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:> hmm> looks like the constructor with PageParameters is

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
  init(constructDefaultParams());    }> >> > public Home(PageParameters params) {     if (params.size()==0) { init(constructDefaultParams()); }    else { init(params); }> > }-IgorOn 1/13/06, Igor Vaynberg <[EMAIL PROTECTED]

Re: [Wicket-user] (no subject)

2006-01-13 Thread Igor Vaynberg
ok i just checked in a fix. had to touch most of the tests but its done.-IgorOn 1/13/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:argh, maybe not. i fixed it, but that it broke a lof of tests. looks like this bug has been around for a while and weve come to depend on wicket working like it

Re: [Wicket-user] Best way to deploy wicket app under root

2006-01-16 Thread Igor Vaynberg
you can move your app to the root, but map the servlet as /app/* not as /* so that your static resources can still be accessed normally. the index.html can have a meta-redirect tag to redirect to /app.so you go to www.site.com but end up at www.site.com/app?path=0 thanks to the meta refresh.-IgorO

Re: [Wicket-user] Re: Best way to deploy wicket app under root

2006-01-16 Thread Igor Vaynberg
im not really sure as far as tomcat specific stuff goes, maybe someone else can help you there. but as far as wicket3) sounds right, copy the static files into the context folder4) sounds right5) here is an example     -IgorOn 1/16/06, Dan Gould <[EMAIL PROTECTED]> wrote: > you can move your app t

Re: [Wicket-user] Re: Re: Best way to deploy wicket app under root

2006-01-16 Thread Igor Vaynberg
http://www.site.com/?path=0 are not illegal, at least i dont think. depends on the browser/server i guess.the main problem with the /* mapping is that you now map every request through the wicket servlet, so all your static content ends up being served through wicket which adds some overhead. -Igor

Re: [Wicket-user] ListView and multiple items

2006-01-16 Thread Igor Vaynberg
while the css definition of the class is a design issue, i disagree that the application of it is. in my view the code SHOULD decide what class to apply if it is decided dynamically.also look at the markup you want to get working. you replicated everything twice which will make it a pain to maintai

Re: [Wicket-user] auto generating page files

2006-01-16 Thread Igor Vaynberg
this is not really feasible. the markup does not contain enough information about the component.doesnt tell me what component i want to put in. is it a label? is it a panel? something else? does it have a default constructor? which constructor to use? which model? once you get used to wicket it is

Re: [Wicket-user] How can I separate the java and html?

2006-01-16 Thread Igor Vaynberg
please seehttp://www.wicket-wiki.org.uk/wiki/index.php/Control_where_HTML_files_are_loaded_fromcheck out the wiki in general http://www.wicket-wiki.org.uk/wiki/index.php/Main_Pagethere is some good info under the getting started and reference library links. -IgorOn 1/16/06, Ittay Dror <[EMAIL PROTE

Re: [Wicket-user] ListView and multiple items

2006-01-16 Thread Igor Vaynberg
On 1/17/06, Ittay Dror <[EMAIL PROTECTED]> wrote: Igor Vaynberg wrote:> while the css definition of the class is a design issue, i disagree that> the application of it is. in my view the code SHOULD decide what class> to apply if it is decided dynamically. that mens commu

Re: [Wicket-user] Problems with simple examples in Eclipse 3.1 / Tomcat 5.5.12..

2006-01-17 Thread Igor Vaynberg
you are free to use the kickstart w/out the embedded jetty. its just a small project with the base structure setup for you. there is nothing stopping you from running maven war or ant war and building a war for tomcat, or configuring a tomcat plugin to launch the project. sure the jetty stuff is ex

Re: [Wicket-user] Return binary files in a dynamic way

2006-01-17 Thread Igor Vaynberg
you can use Resources to do this, thats what they are for, and they have stable urls. -IgorOn 1/17/06, pepone pepone < [EMAIL PROTECTED]> wrote:Hi allI have a web application that store documents and images in Application objects I need a page or a component that can return this files in a dynamic

Re: [Wicket-user] Return binary files in a dynamic way

2006-01-17 Thread Igor Vaynberg
dd all resources again and my applicationhas thousands of dynamic resourcesis posible to add the resource the first time same body access if the resource not exist?and is posible redirect a response to a resource?thanksOn 1/17/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> you can use Resources to

Re: [Wicket-user] Re: text in Link vs ExternalLink

2006-01-17 Thread Igor Vaynberg
this is some textorthis works for Link or ExternalLink, no webmarkup containers, etc. -IgorOn 1/17/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote: I use ExternalLink all the time. You're saying we should instead have spansnested in anchor tags, represented in Java as Label objects nested inWebMarkupC

Re: [Wicket-user] Re: Re: text in Link vs ExternalLink

2006-01-17 Thread Igor Vaynberg
that sounds good to me. anyone opposed?-IgorOn 1/17/06, Nathan Hamblen <[EMAIL PROTECTED] > wrote:But is ExternalLink's ability to replace its body ok or is it bad? Iactually thought that was the only way it worked, but now I see that it switches in onComponentTagBody depending on whether a label w

Re: [Wicket-user] Return binary files in a dynamic way

2006-01-17 Thread Igor Vaynberg
k with parameters i canfound any info about this?thanksOn 1/18/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > the resources have access to url parameters, so you can have one resource> that streams different things based on the url params.>> -Igor>>>> On 1/17/06, pepone pepone

Re: [Wicket-user] IModel

2006-01-18 Thread Igor Vaynberg
the model is a locator for the underlying value object, so what it really affords you is a level of indirection. take a simple read only example. the use of the model allows the underlying value object to change dynamically w/out the component knowing or worrying about it. so for example new Label(

Re: [Wicket-user] IModel

2006-01-18 Thread Igor Vaynberg
@Override protected void populateItem(ListItem row)  {    Person person=row.getModelObject();    row.add(new Label("firstName", person.getFirstName());    ...  }}is that easier to understand at a first glance if you dont know wicket? i think so.-IgorOn 1/18/06, Igor Vaynberg <[EMAIL

Re: [Wicket-user] IModel

2006-01-18 Thread Igor Vaynberg
played Wicket in my article, it wasn't on purpose.  I tried to say most of my issues were my own lack of understanding.  I like Wicket.  I am still just trying to determine if it is something I want to invest time in and use.   Thanks for the help.   Gregg    On 1/18/06, Igor Vaynberg <[EMA

Re: [Wicket-user] IModel

2006-01-18 Thread Igor Vaynberg
tyModel(new PropertyModel(this, "person"))); i hope you are still awake.-IgorOn 1/18/06, Gregg D Bolinger <[EMAIL PROTECTED] > wrote:Thanks, I check out that link.  It makes more since now.  So would you use a CompountPropertyModel when you want to get the value of an object?  Say

Re: [Wicket-user] IModel

2006-01-18 Thread Igor Vaynberg
no problem. thats what this list is for :)-IgorOn 1/18/06, Gregg D Bolinger <[EMAIL PROTECTED]> wrote: Thanks Igor.  That helps a lot.  I am going to read the documentation again and run through some more examples.  I really appreciate your time.   Gregg  On 1/18/06, Igor Vaynberg &

Re: [Wicket-user] Grouping Radio Type

2006-01-19 Thread Igor Vaynberg
see RadioGroup/Radio componentsyou can put the RadioGroup outside the listview, and have Radio components inside the panels.the Radio component always links to the closest RadioGroup in its upstream hierarchy. -IgorOn 1/19/06, Dipu <[EMAIL PROTECTED]> wrote: Hi   I have a panel displayed in

Re: [Wicket-user] Grouping Radio Type

2006-01-19 Thread Igor Vaynberg
wicket.markup.html.list.ListView.onRender(ListView.java:535) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1136) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.

Re: [Wicket-user] IModel

2006-01-19 Thread Igor Vaynberg
nto a page on theWiki?  I've done a cut & paste to http://www.wicket-wiki.org.uk/wiki/index.php/Using_Models but it needsa bit of tweaking before it's linked from anywhere 'public'!/GwynOn 19/01/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:> no problem. thats what

Re: [Wicket-user] text in Link vs ExternalLink

2006-01-20 Thread Igor Vaynberg
i use the model of the link sometimes. that way in the onclick i can just remove the model, cast it, and act on it.so if you are going to add that use a different model please.-Igor On 1/20/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: On 1/20/06, Johan Compagner <[EMAIL PROTECTED]> wrote:> i k

Re: [Wicket-user] Choose location of validation messages

2006-01-20 Thread Igor Vaynberg
see ComponentFeedbackPanel in HEAD.its a feedback panel that filters messages for a certain component.so you do:TextField tf=new TextField("name");add(tf);add(new ComponentFeedbackPanel("nameError", tf)); add(nf);and the same markup as in your example.-IgorOn 1/20/06, Jesper Preuss <[EMAIL PROTECTE

Re: [Wicket-user] greetings and question on FormInput example and userGuide

2006-01-20 Thread Igor Vaynberg
irt compoundpropertymodels:i recently tried to give an explanation, see herehttp://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg08877.html irt wicket's feedback modelthe feedback is reported using error/warn/info methods in Component. these are then stored in the page.the feedbackpanel

<    1   2   3   4   5   6   7   8   9   10   >