Re: How to generate a name=myQuickLink html tag

2008-07-14 Thread Igor Vaynberg
add(new webmarkupcontainer(anchor) { oncomponenttag(tag) { tag.put(name,somename); } }); a wicket:id=anchorfoo/a -igor On Mon, Jul 14, 2008 at 7:15 PM, liny [EMAIL PROTECTED] wrote: Hi, I'd like to generate html tag, so reader can quick jump to the position. How can I do? Thanks --

Re: IFormValidator - I need some clarification please

2008-07-16 Thread Igor Vaynberg
you will have to at least use wicket's type conversion validators unless your beans only have string properties. -igor On Wed, Jul 16, 2008 at 2:30 AM, Ned Collyer [EMAIL PROTECTED] wrote: Thanks Lars, That's the same *conclusion* I had come to :) I'll have to override process I think

Re: generics

2008-07-16 Thread Igor Vaynberg
this is actually a perfect example where generifying Component broke down in 1.4m2. dataview does not use its model, it uses the dataprovider which it stores as a field. so right now you can just say new DataViewFoo and it will expect IDataProviderFoo and you are free to attach any type of model

Re: StyleSheetReference - what does href mean?

2008-07-17 Thread Igor Vaynberg
it is a virtual mapping. wicket knows how to process it and retrieve the resource. there is no actual resources folder. -igor On Thu, Jul 17, 2008 at 9:45 AM, puschteblume [EMAIL PROTECTED] wrote: Hello First of all .. thanks for this wonderful peace of software. I don't understand what the

Re: Just switched to 1.4-M3

2008-07-18 Thread Igor Vaynberg
inline... On Fri, Jul 18, 2008 at 4:52 AM, Anders Peterson [EMAIL PROTECTED] wrote: Another (great) web application framework that I've used doesn't have component at the root of the inheritance tree, but element - component extends element. The elements are the UI atoms, and components are

Re: RelativePathPrefixHandler and form action attributes

2008-07-18 Thread Igor Vaynberg
override oncomponenttag() of the form and call super followed by tag.put(action, whateverurl); -igor On Fri, Jul 18, 2008 at 12:56 PM, Brad Fritz [EMAIL PROTECTED] wrote: I am trying to rewrite an HTML form action attribute (for a non-Wicket form) inside a Wicket Panel and could use some

Re: modal window navigation?

2008-07-20 Thread Igor Vaynberg
you want to refresh the page that contains the modal window? in that case you will have to do something like: onsubmit(ajaxrequesttarget target) { target.appendjavascript(window.top.location=+urlfor(Explorepage.class, null)); } -igor On Sat, Jul 19, 2008 at 11:19 PM, Ryan McKinley [EMAIL

Re: passing objects between pages

2008-07-21 Thread Igor Vaynberg
the easiest thing to do is to pass the imodelgroup into the second page. i assume you already have a detachable group model that you are using to list users, so just pass it to the next page. in general keeping references to objects is safe for as long as the objects them selves are valid. the

Re: @SpringBean vs @Configurable

2008-07-21 Thread Igor Vaynberg
you have to be careful not to pass references to injected beans to other objects. other than that i think you should be fine. -igor On Mon, Jul 21, 2008 at 9:22 AM, Leon Faltermeyer [EMAIL PROTECTED] wrote: Hi, Is there any difference in using Spring framework' s @Configurable annotation or

Re: @SpringBean vs @Configurable

2008-07-21 Thread Igor Vaynberg
class usersdataprovider implements dataprovider { final userservice svc; public int size() { return svc.size(); } } @configurable class userspage extends webpage { private userservce svc; public userspage() { add(new dataview(users, new dataprovider(svc))); } this takes a reference

Re: @SpringBean vs @Configurable

2008-07-22 Thread Igor Vaynberg
is not serializable (not a proxy)? Regards, Rik 2008/7/21 Igor Vaynberg [EMAIL PROTECTED]: class usersdataprovider implements dataprovider { final userservice svc; public int size() { return svc.size(); } } @configurable class userspage extends webpage { private userservce svc; public

Re: DataTable + CheckGroup with CheckGroupSelector

2008-07-22 Thread Igor Vaynberg
there is a checkgroup inside datatable example in wicket-stuff phonebook -igor On Tue, Jul 22, 2008 at 3:37 AM, nanotech [EMAIL PROTECTED] wrote: Hi All, Looking for some pointers. Anyone? nanotech wrote: Hi, I am trying to add a column of checkboxes in data table with CheckGroup

Re: Localized error()

2008-07-22 Thread Igor Vaynberg
then use component.getstring() that takes a model which is a map of key, values that will be interpolated in the string. if you want {0} format then use java's formatter to interpolate it -igor On Tue, Jul 22, 2008 at 7:08 AM, liny [EMAIL PROTECTED] wrote: What if I want to pass parameter to

Re: Asynchronous Components

2008-07-23 Thread Igor Vaynberg
if you want the page to render all at once you have to spin off as many threads as there are components and block rendering until all threads are done. you can do this in page#onbeforerender() which is called before any components start to render. the problem with this is that if it takes a while

Re: WebPage: empty response

2008-07-23 Thread Igor Vaynberg
throw new AbortResponseWithStatusCode(HttpServletResponse.SC_OK); should do it -igor 2008/7/23 Martijn Dashorst [EMAIL PROTECTED]: 2 options: 1. don't use Wicket but a normal servlet for this 2. getRequestCycle().setRequestTarget(new EmptyRequestTarget()); #2 should work, but I haven't

Re: Getting hold of Container's markup

2008-07-23 Thread Igor Vaynberg
see IResponseFilter. as far as spitting out text, wicket works with xml not plain text. but if you call setrenderbodyonly(true) on all components there wont be any xml tags left in the output. -igor On Wed, Jul 23, 2008 at 8:20 AM, Ricky [EMAIL PROTECTED] wrote: Hi, I have two questions

Re: How to render component markup to string?

2008-07-23 Thread Igor Vaynberg
myrequestcycle extends requestcycle { onbeginrequest() { setresponse(new stringresponse()); } onendrequest() { string str=((stringresponse)getresponse()).getstring(); // do whatever } } -igor On Wed, Jul 23, 2008 at 6:41 AM, Enes Fazli [EMAIL PROTECTED] wrote: Hello,

[ANN] Brix 1.0 beta1

2008-07-23 Thread Igor Vaynberg
we have released Brix 1.0 beta1 [1] yesterday. for those of you who do not know what Brix is, it is an embeddable CMS for wicket apps based on wicket (of course) and the jcr (jackrabbit). Brix is pretty much feature-complete for 1.0, next we are going to focus on stabilizing it for the 1.0

Re: [ANN] Brix 1.0 beta1

2008-07-23 Thread Igor Vaynberg
cemal, thanks. unfortunately i cant be in london at that time, so you will have to see if matej can make it out. its a lot closer for him anyways :) -igor On Wed, Jul 23, 2008 at 11:08 AM, jWeekend [EMAIL PROTECTED] wrote: Igor, This looks like it's fast becoming another high quality and

Re: Problem when deploying to Tomcat

2008-07-24 Thread Igor Vaynberg
On Thu, Jul 24, 2008 at 3:44 AM, Tormod Øverlier [EMAIL PROTECTED] wrote: When I deploy a new version of a Wicket application without restarting Tomcat, the new version is not fully used. Java changes are applied immediately, but html changes are not applied before I restart Tomcat. I have

Re: This time last year .... is Wicket really a disappointment?

2008-07-24 Thread Igor Vaynberg
On Thu, Jul 24, 2008 at 3:30 AM, Fabrizio Giudici [EMAIL PROTECTED] wrote: Keeping the discussion more in general, as per thread subject, my point is that Wicket is imposing me too many constraints on my design. what are these many constraints. so far you have only listed the one -

Re: passing objects between pages

2008-07-24 Thread Igor Vaynberg
can be summarized as the object being a value object Thomas On Mon, Jul 21, 2008 at 6:25 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: the easiest thing to do is to pass the imodelgroup into the second page. i assume you already have a detachable group model that you are using to list users, so

Re: Change default sort order in OrderByBorder

2008-07-24 Thread Igor Vaynberg
we can add setdefaultorder on both link and border. the problem is then how is that set up in the headers toolbar... why dont you take some time and come up with a list of changes you will need for this and we can come up with a patch. -igor On Thu, Jul 24, 2008 at 9:31 AM, Tauren Mills [EMAIL

Re: [ANN] Brix 1.0 beta1

2008-07-24 Thread Igor Vaynberg
space. -igor Best, Korbinian Igor Vaynberg schrieb: we have released Brix 1.0 beta1 [1] yesterday. for those of you who do not know what Brix is, it is an embeddable CMS for wicket apps based on wicket (of course) and the jcr (jackrabbit). Brix is pretty much feature-complete for 1.0

Re: [ANN] Brix 1.0 beta1

2008-07-24 Thread Igor Vaynberg
there is no BrixPanel yet. should not be too difficult to build, we just havent had a need for it yet. -igor On Thu, Jul 24, 2008 at 1:21 PM, Korbinian Bachl - privat [EMAIL PROTECTED] wrote: Hi Igor! Igor Vaynberg schrieb: On Thu, Jul 24, 2008 at 12:52 PM, Korbinian Bachl - privat [EMAIL

Re: [ANN] Brix 1.0 beta1

2008-07-24 Thread Igor Vaynberg
: news, events, recipes. -igor -- Jeremy Thomerson http://www.wickettraining.com [1] - http://www.oscommerce.com/ On Thu, Jul 24, 2008 at 3:42 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: there is no BrixPanel yet. should not be too difficult to build, we just havent had a need for it yet

Re: Question about transient and serialization

2008-07-24 Thread Igor Vaynberg
last accessed page instance is stored in http session and therefore in memory without being serialized. if you ran this on a two-node cluster with round robin you would see testString being null. -igor On Thu, Jul 24, 2008 at 2:34 PM, H [EMAIL PROTECTED] wrote: Hi! I have this example

Re: Session.get covariant override and back button issue?

2008-07-24 Thread Igor Vaynberg
and so what is the actual class being returned? -igor On Thu, Jul 24, 2008 at 7:21 PM, Ritz123 [EMAIL PROTECTED] wrote: Hi, I have a custom Session object which is registered in the custom WebApplication class as newSession method override. The session object overrides static

Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Igor Vaynberg
the war file being built is brixdemo.war not brix-demo.war so the context when using war is /brixdemo i am thinking i will switch the war to brix-demo so it is more consistent with how mvn jetty:run does it -igor On Fri, Jul 25, 2008 at 3:58 AM, Newgro [EMAIL PROTECTED] wrote: The url in

Re: Session.get covariant override and back button issue?

2008-07-25 Thread Igor Vaynberg
public static NeobitsWebSession get() { Class clazz=Session.get(); System.out.println(clazz.getName()); return (NeobitsWebSession)Session.get(); } what does that print? -igor On Fri, Jul 25, 2008 at 10:00 AM, Ritz123 [EMAIL PROTECTED] wrote: Igor, I have posted

Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Igor Vaynberg
, 2008 at 8:08 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: the war file being built is brixdemo.war not brix-demo.war so the context when using war is /brixdemo i am thinking i will switch the war to brix-demo so it is more consistent with how mvn jetty:run does it -igor On Fri, Jul 25, 2008

Re: FeedbackPanel HTML file question

2008-07-25 Thread Igor Vaynberg
there is feedbackpanel.html next to feedbackpanel.class inside the jar. open it and copy it. create a subclass of feedbackpanel eg myfeedbackpanel and next to it put myfeedbackpanel.html and paste into it the contents you copied from feedbackpanel.html.now you can customize the html, but be sure

Re: Getting hold of Container's markup

2008-07-25 Thread Igor Vaynberg
going on the right track or is there a better way?? Thanks and Regards Vyas, Anirudh On Thu, Jul 24, 2008 at 1:47 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: application.init() { getrequestcyclesettngs().addresponsefilter(new iresponsefilter() { public appendingatringbuffer filter

Re: Possible bug in Localizer?

2008-07-25 Thread Igor Vaynberg
already fixed in m3 -igor On Fri, Jul 25, 2008 at 10:41 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Please take a look at this and tell me what you think. I'm on 1.4-m2 (haven't upgraded to m3 yet - but looking forward to it). Localizer : 332 while (cursor != null)

Re: DataView and No items label

2008-07-26 Thread Igor Vaynberg
you can create such a label yourself easily. simply pass in the dataview into it and override isvisible() { return dataview.getitemcount()==0; } -igor On Sat, Jul 26, 2008 at 5:53 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, Can anyone suggest a way to add a messages like

Re: DataView and No items label

2008-07-27 Thread Igor Vaynberg
of three: DataView, PagingNavigator and NoItemLabel (or kind of). Vitaly On Sun, Jul 27, 2008 at 4:36 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: you can create such a label yourself easily. simply pass in the dataview into it and override isvisible() { return dataview.getitemcount()==0

Re: serving raw bytes from dynamic files

2008-07-27 Thread Igor Vaynberg
why not use a servlet? -igor On Sun, Jul 27, 2008 at 9:33 AM, Brill Pappin [EMAIL PROTECTED] wrote: I've run into a bit of code that I'm not sure how to deal with (or am not sure what the wicket way would be). I need to be able to serve raw bytes from dynamic files in the system. Think of it

Re: serving raw bytes from dynamic files

2008-07-27 Thread Igor Vaynberg
that it would be better to handle all parts through Wicket since everything else is built in Wicket. If there is not a designed way to do this, then a servlet may be the best option. - Brill On 27-Jul-08, at 1:15 PM, Igor Vaynberg wrote: why not use a servlet? -igor On Sun, Jul 27, 2008

Re: AJAXIFY Palette: Can't get to the Recorder

2008-07-28 Thread Igor Vaynberg
override newrecorder() { recorder r=super.newrecorder(); r.add(new whateverbehavior()); return r; } -igor On Mon, Jul 28, 2008 at 12:33 AM, Edvin Syse [EMAIL PROTECTED] wrote: The javadocs for the Palette says to add AjaxFormComponentUpdatingBehaviour to the Recorder like this: Form

Re: Is there any way to use WebResource or DynamicWebResource the same way as WebPage with BookmarkablePageLink and PageParameter.

2008-07-28 Thread Igor Vaynberg
see upload download page on the wiki -igor On Mon, Jul 28, 2008 at 2:09 AM, Ali Sakebi [EMAIL PROTECTED] wrote: Hi Is there any way to use WebResource or DynamicWebResource the same way as WebPage with BookmarkablePageLink and PageParameter? That is creating a bookmarkable link with

Re: Wicket example on Ajax - Modal window not working

2008-07-28 Thread Igor Vaynberg
are you using wicket 1.2? -igor On Mon, Jul 28, 2008 at 2:18 AM, mabel25 [EMAIL PROTECTED] wrote: Hi, I have attached my source code and the error window. Thanks! Pills wrote: We need more info please paste your code and tell us where is the error mabel25 a écrit : Hi, I have

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
try with regular paging navigator, it will most likely work. the problem is that because you are using ajaxpagingnavigator, when you click the top you do not redraw the bottom. you need to add that behavior yourself. -igor On Mon, Jul 28, 2008 at 12:01 PM, Daniel Freitas [EMAIL PROTECTED] wrote:

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
two html elements cannot have the same id within the same html document... -igor On Mon, Jul 28, 2008 at 1:55 PM, Daniel Freitas [EMAIL PROTECTED] wrote: I don't. I expected it to be rendered twice with the same id ;). Which is not possible, thus I had to create two components with two ids to

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
right?). Anyways, I will just keep that in mind. Two components work as expected. 2008/7/28 Igor Vaynberg [EMAIL PROTECTED] two html elements cannot have the same id within the same html document... -igor On Mon, Jul 28, 2008 at 1:55 PM, Daniel Freitas [EMAIL PROTECTED] wrote: I don't

Re: passing objects between pages

2008-07-28 Thread Igor Vaynberg
understanding? On Thu, Jul 24, 2008 at 11:45 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: sure you can have a constructor with a signature (IModelGroup, IModelUser) at runtime it will just look like (IModel,IModel) which is a perfectly good signature. -igor On Thu, Jul 24, 2008 at 4:50 AM, John

Re: @SpringBean and serialization

2008-07-29 Thread Igor Vaynberg
On Tue, Jul 29, 2008 at 1:11 AM, Gerald Reinhart [EMAIL PROTECTED] wrote: jwcarman wrote: Why are you doing this again? @SpringBean already takes care of re-establishing the connection upon deserialization. Are you sure ? read the spring page on the wiki -igor Sebastiaan van Erk

Re: @SpringBean and serialization

2008-07-29 Thread Igor Vaynberg
so you decrease the efficiency of your application so that your static analysis tool stops reporting false positives? -igor On Tue, Jul 29, 2008 at 8:10 AM, Gerald Reinhart [EMAIL PROTECTED] wrote: We use Findbugs on our build process, with this @SpringBean(name = mySpringBean) private

Re: IE 7 form submission issue

2008-07-29 Thread Igor Vaynberg
what do you expect the response to be? you have shown no code or anything for us to go on... create a jira issue and attach a quickstart to it. -igor On Tue, Jul 29, 2008 at 8:53 AM, Ritesh Trivedi [EMAIL PROTECTED] wrote: Hi, No responses yet - anyone pointers on debugging the issue?

Re: Refreshing a listview using AJAX

2008-07-29 Thread Igor Vaynberg
mypage extends page{ private string dept; public mypage() { add(new dropdownchoice(id, new propertymodel(this, dept)); add(new listview(list, new propertymodel(this, users)); } public listuser getusers() { db.queryusers(dept); } } } -igor On Tue, Jul 29, 2008 at 1:44 PM, Edbay [EMAIL

Re: Refreshing a listview using AJAX

2008-07-29 Thread Igor Vaynberg
read the models page on the wiki, its a real eye opener -igor On Tue, Jul 29, 2008 at 3:04 PM, Edbay [EMAIL PROTECTED] wrote: Worked!!! Can you explain how putting the model name in quotes does the trick? mypage extends page{ private string dept; public mypage() { add(new

Re: problem with AjaxFallbackButton.setDefaultFormProcessing and WicketTester

2008-07-30 Thread Igor Vaynberg
yep, file a jira issue -igor On Wed, Jul 30, 2008 at 1:53 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I have the following simplified situation: A page with one form containing a radiogroup with one option and two AjaxFallbackButtons. One of the two buttons has its defaultFormProcessing

Re: problem with generating project using quickstart

2008-07-30 Thread Igor Vaynberg
jar opens just fine over here... -igor On Wed, Jul 30, 2008 at 2:32 AM, lars vonk [EMAIL PROTECTED] wrote: Hi, I am trying to generate a wicket project using quickstart but I get these errors: Downloading:

Re: How to protect against Session Fixation attacks?

2008-07-30 Thread Igor Vaynberg
doing that should be fine, just make sure that after login you redirect to a bookmarkable url which will then create a new session. so session.invalidate(); loginuser(); setrequesttarget(new bookmarkablepagetarget(...)); getrequest().setredirect(true); -igor On Wed, Jul 30, 2008 at 7:15 AM,

Re: DropDownChoice default value not found because of equal method

2008-07-30 Thread Igor Vaynberg
On Wed, Jul 30, 2008 at 3:02 AM, Andrea Jahn [EMAIL PROTECTED] wrote: Reason is, that the Country class contains an equal() method. Wicket calls this method, but the comparison of the id delivers false (different instances of the Integer object). this doesnt make any sense unless you do

Re: WicketSessionFilter Problem: java.lang.IllegalStateException

2008-07-30 Thread Igor Vaynberg
also make sure that there is an actual session to be set...there is session.exists() iirc. -igor On Wed, Jul 30, 2008 at 4:38 AM, Johan Compagner [EMAIL PROTECTED] wrote: he? And what you are trying to do is completely the opposite (accessing the wicket session in struts) But if you want to

Re: Mapping url params to instance variables

2008-07-30 Thread Igor Vaynberg
no, but i suppose you can write a utility to do that... -igor On Wed, Jul 30, 2008 at 1:37 PM, Ryan O'Hara [EMAIL PROTECTED] wrote: When using setResponsePage(SearchPage.class, PageParameters) in a page with a QueryStringUrlCodingStrategy, is there a way to automatically map parameters values

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread Igor Vaynberg
sorry, dont really understand where your problem is...wicket-1189 has been fixed a long time ago. are you saying the bug is back or something else is a problem? -igor On Thu, Jul 31, 2008 at 3:28 AM, alex2008 [EMAIL PROTECTED] wrote: I have the same problem described on:

Re: SpringWebApplicationFactory cannot load WA from parent bean factory

2008-07-31 Thread Igor Vaynberg
what does this addComponentInstantiationListener (new SpringComponentInjector (this)); have to do with whether or not you use a servlet or a filter? you always have to do that for @SpringBean annotation to work... -igor On Thu, Jul 31, 2008 at 9:03 AM, alex2008 [EMAIL PROTECTED] wrote:

Re: Restricting Javascript entry in TextField/TextArea

2008-07-31 Thread Igor Vaynberg
you can check for script tags using a patternvalidator or a custom validator -igor On Thu, Jul 31, 2008 at 9:44 AM, Doug Leeper [EMAIL PROTECTED] wrote: Is there a way to restrict either on the front end or some validator on the backend in Wicket to identify if a field has Javascript within

Re: Creating a new session if new browser tab is opened

2008-07-31 Thread Igor Vaynberg
there isnt really a way to do that cleanly because it is the browser that recycles the session, so its not completely in your control what you can do is, and this is hacky, turn off cookie support for session tokens in your application server and when you detect a new tab redirect to some page

Re: Adding child components in constructor? Best practice?

2008-07-31 Thread Igor Vaynberg
you can feel free to do it in onbeforerender. this pattern is used, for example, when you need to have user-overridable factory methods for child components. the constructor works for 90% usecase and does not require extra checks like onbeforerender because you know the constructor only runs once.

Re: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Igor Vaynberg
how should we handle that? -igor On Thu, Jul 31, 2008 at 2:43 PM, Hoover, William [EMAIL PROTECTED] wrote: Seems strange that Component#modelChanging and Component#modelChanged are never called when IModel#setObject is called... https://issues.apache.org/jira/browse/WICKET-1764

Re: Component#modelChanging and Component#modelChanged when IModel#setObject

2008-07-31 Thread Igor Vaynberg
: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 6:01 PM To: users@wicket.apache.org Subject: Re: Component#modelChanging and Component#modelChanged when IModel#setObject how should we handle that? -igor On Thu, Jul 31, 2008 at 2:43 PM, Hoover, William [EMAIL PROTECTED

Re: Where has DateLabel gone to

2008-07-31 Thread Igor Vaynberg
it is in wicket-datetime project -igor On Thu, Jul 31, 2008 at 3:13 PM, Daniel Freitas [EMAIL PROTECTED] wrote: I'm reading Wicket in Action and I'm using Wicket 1.3.4. On the chapter about models, the author uses a DateLabel which he says can be found in the extensions project. Well, I have

Re: Stack overflow when extending from page

2008-07-31 Thread Igor Vaynberg
yeah, we should fix it. please file a jira issue. -igor On Thu, Jul 31, 2008 at 4:22 PM, Daniel Freitas [EMAIL PROTECTED] wrote: I typo got me to a stack overflow. Instead of extending WebPage, I extended Page directly and when wicket tried to render the page it threw a StackOverflowError

Re: How to open a Modal Window by clicking a button

2008-08-01 Thread igor . vaynberg
or attach ajaxlink to button tag :) -Igor On 8/1/08, steviezz [EMAIL PROTECTED] wrote: You could use an AjaxLink, but style the link with CSS to make it look like an HTML button. Steve a_godin wrote: I won't post the whole thing but here's the parts related to the modal window In

Re: Size() is invoked twice

2008-08-04 Thread Igor Vaynberg
i jotted down the reason to this in the jira issue if anyone is interested. -igor On Fri, Aug 1, 2008 at 3:48 AM, Rik van der Kleij [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/WICKET-1766 2008/8/1 James Carman [EMAIL PROTECTED] It would be helpful to include a link to

Re: Palette header

2008-08-04 Thread Igor Vaynberg
those are factory methods, not meant to be called by you. if you want to customize the behavior you should instead override those methods... -igor On Mon, Aug 4, 2008 at 12:20 PM, Edbay [EMAIL PROTECTED] wrote: This code does not override the list headers. I'm using 1.3.4 - what am I doing

Re: LinkTree's overridden onNodeLinkClicked not being invoked after migrating from 1.3.3 to 1.4-m2

2008-08-04 Thread Igor Vaynberg
you should run code cleanup wizard on your code. it will add missing @override annotations, which will help you catch method sig changes...eg if it doesnt add @override to the method you think should be overriding something. -igor On Mon, Aug 4, 2008 at 1:09 PM, Goldstein, Jonathan A [EMAIL

Re: How to refresh panel?

2008-08-04 Thread Igor Vaynberg
all you have to do is make sure the components inside the panel are using models that do not cache values between requests. that way when the panel repaints on the next request it will reflect the current state instead of the state as it was when the panel was created. there is a great models page

Re: How to protect against Session Fixation attacks?

2008-08-05 Thread Igor Vaynberg
invested some more research on this topic because session.invalidate didn't work and came up with a solution. We've created a JIRA-Ticket regarding this topic to document our solution. https://issues.apache.org/jira/browse/WICKET-1767 Regards Enes F. On Wed, Jul 30, 2008 at 5:59 PM, Igor

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Igor Vaynberg
why dont you use the code in spring or databinder as an example then? best way to learn anyways. -igor On Tue, Aug 5, 2008 at 2:31 AM, HITECH79 [EMAIL PROTECTED] wrote: Hallo, i need help for a configuration or tutorial or example for a project with Wicket+Hibernate+Tomcat. Please no

Re: Customizing palette

2008-08-05 Thread Igor Vaynberg
add an rfe to make image urls part of the css... -igor On Tue, Aug 5, 2008 at 6:24 AM, edbay [EMAIL PROTECTED] wrote: Thanks. I will do that. I was just looking for an easier way to customize the presentation. I did find out though that you can override the style sheet palette.css pretty

Re: 'html' for Fragment not found

2008-08-05 Thread Igor Vaynberg
use markupprovider argument when constructing the fragment. -igor On Tue, Aug 5, 2008 at 6:23 AM, cresc [EMAIL PROTECTED] wrote: I have a block which i replace it with an empty fragment or a fragment containing a form object based on a flag. When adding the empty fragment I dont get any

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Igor Vaynberg
never too late to add an RFE... -igor On Tue, Aug 5, 2008 at 8:15 AM, James Carman [EMAIL PROTECTED] wrote: Well, I used to not be big into Spring (I'm a member of the HiveMind team), but it just makes things so easy for us. You don't have to tie your models to Spring at all, really.

Re: Customizing palette

2008-08-05 Thread Igor Vaynberg
issues.apache.org -igor On Tue, Aug 5, 2008 at 1:00 PM, edbay [EMAIL PROTECTED] wrote: Thanks, everyone. I did manage to replace the images by subclassing Palette and overriding newAddComponent() and newRemoveComponent(). Strange I could not do the same for the CSS file, so I created my own

Re: Questions about wicket-phonebook-1.2

2008-08-05 Thread Igor Vaynberg
On Tue, Aug 5, 2008 at 8:51 AM, alex2008 [EMAIL PROTECTED] wrote: 1) On ListContactsPage.java: // set up data provider ContactsDataProvider dataProvider = new ContactsDataProvider(getDao()); There is a reference to getDao(). Where is declared this method? can you not ctrl click it in

Re: why does ExternalLink generate span instead of a simple a

2008-08-05 Thread Igor Vaynberg
you need to do [a wicket:id=link] rather then [span wicket:id=link] wicket does not mutate your markup -igor On Tue, Aug 5, 2008 at 3:20 PM, dukehoops [EMAIL PROTECTED] wrote: This code: ExternalLink profileLink = new ExternalLink(componentId, profileURL, dto.getUserName());

Re: why does ExternalLink generate span instead of a simple a

2008-08-05 Thread Igor Vaynberg
you can add the link to a fragment, and then add the fragment to the column. eg [wicket:fragment wicket:id=frag][a wicket:id=link]link[/a][/wicket:fragment] there is an example of this in wicket-phonebook example in wicket-stuff -igor On Tue, Aug 5, 2008 at 3:31 PM, dukehoops [EMAIL

Re: Wicket Ajax Safari DomReady Conflicts

2008-08-05 Thread Igor Vaynberg
is this happening only in safari? no, there is no wicket:foot because there is no foot html element...and what is the point of putting everything right before /body since we now have nice event handling such as domready/window onload... -igor On Tue, Aug 5, 2008 at 3:53 PM, zonathen [EMAIL

Re: Wicket Ajax Safari DomReady Conflicts

2008-08-05 Thread Igor Vaynberg
] wrote: loading scripts at the end of the document just prior to the /body tag makes rendering the page more efficient. It is one of the golden rules for page performance (see the yslow plugin for firefox). Martijn On Wed, Aug 6, 2008 at 1:00 AM, Igor Vaynberg [EMAIL PROTECTED] wrote

Re: Customizing palette

2008-08-05 Thread Igor Vaynberg
no, but the images can be rewritten to be controlled via the css... so if you can override the css you can override the images. -igor On Tue, Aug 5, 2008 at 10:41 PM, James Carman [EMAIL PROTECTED] wrote: I don't think you'll get very far with the RFE. The Palette class doesn't maintain an

Re: Remove underline in OrderByBorder link

2008-08-06 Thread igor . vaynberg
td.mycss a { text-decoration: none;} -Igor On 8/6/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Erik: Thx, I agree.but how do I set the CSS for the link in the border and have that CSS changed when the sort changes? By default the link has a void CSS while the Border CSS manages the

Re: ListView in Forms

2008-08-06 Thread Igor Vaynberg
add a feedbackpanel and see if there are any validation errors -igor On Wed, Aug 6, 2008 at 7:19 AM, Markus Haspl [EMAIL PROTECTED] wrote: hi, first, i'm a very newbie to wicket... I want to add a ListView in a Form. The ListView has two Texfields and one Checkbox each row. When i submit the

Re: Best way to create a Root Page that every page in your app extends

2008-08-06 Thread Igor Vaynberg
see markup inheritance page on the wiki -igor On Wed, Aug 6, 2008 at 8:01 AM, Riyad Kalla [EMAIL PROTECTED] wrote: Hey guys, having a major brain-fart today... I swear I had this figured out at one point. I essentially want to create a RootPage (extends WebPage) that represents the root of

Re: Help on create a list with dataview

2008-08-06 Thread Igor Vaynberg
are you using wicket 1.2??? -igor On Wed, Aug 6, 2008 at 7:33 AM, alex2008 [EMAIL PROTECTED] wrote: This is the code: public class ListProductPage extends WebPage { public ListProductPage() { add(new Link(createLink) { /** * Go to the Edit

Re: Help on create a list with dataview

2008-08-06 Thread Igor Vaynberg
i guess i am wondering where this code came from? looks like code from 1.2... /** * Returns null to indicate there is no nested model. * @return Null */ public IModel getNestedModel() { return null; } -igor On Wed, Aug 6, 2008 at 8:29 AM, alex2008 [EMAIL PROTECTED] wrote:

Re: ListView in Forms

2008-08-06 Thread Igor Vaynberg
; default: isValid = false; } return isValid; } } } -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 11:04 AM To: users

Re: ListView in Forms

2008-08-06 Thread Igor Vaynberg
, Markus Haspl [EMAIL PROTECTED] wrote: there are no valiation errors. with info() i get the old values. info(+property.getName()+: +property.getValue()+ == +property.isDefaultProperty()); On Wed, Aug 6, 2008 at 5:03 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: add a feedbackpanel and see

Re: Hook for hiding columns of DataTable?

2008-08-06 Thread Igor Vaynberg
this is on my list for 1.5, in 1.4/1.3 it would require too many api breaks i think. for now you can just replace the datatable with a new instance. the only state you have to carry over is the current page, so its pretty easy. -igor On Wed, Aug 6, 2008 at 9:45 AM, Ladislav Thon [EMAIL

Re: Multiple instances of pages and spring integration

2008-08-06 Thread Igor Vaynberg
well normally you would just do class monitorpage extends webpage { public monitorpage(string deviceid) { .. do whatever with deviceid } } if you need your pages to be bookmarkable then just use class monitorpage extends webpage { public monitorpage(pageparameters params) {

Re: Comparing JSF and Wicket

2008-08-06 Thread Igor Vaynberg
On Wed, Aug 6, 2008 at 2:13 AM, nlif [EMAIL PROTECTED] wrote: Prior to posting here, I googled a bit, and found a few forum-threads and blog posts on this topic, but most are from 1-2 years ago and in framework years, this may be considered obsolete. actually, imho, this is one of wicket's

Re: properties files search efficiency

2008-08-06 Thread Igor Vaynberg
wicket caches a lot of this stuff, so i wouldnt worry about performance -igor On Wed, Aug 6, 2008 at 1:09 PM, lesterburlap [EMAIL PROTECTED] wrote: Hi: I understand how Wicket searches for property keys: MyPage.properties - MyComponentA.properties - MyComponentB.properties -

Re: Turn off SWARM

2008-08-06 Thread Igor Vaynberg
just do something like this in your login page's constructor: if (system.getproperty(autologin)!=null) { authenticate(system.getproperty(username), system.getproperty(password)); throw new restartresponseexception(getapplication().gethomepage()); } and launch your app with those system props

Re: Comparing JSF and Wicket

2008-08-07 Thread Igor Vaynberg
On Thu, Aug 7, 2008 at 12:12 AM, nlif [EMAIL PROTECTED] wrote: Thanks Igor, While it is very good to know that it's relatively easy to develop Wicket components, bear in mind that management (at least mine) is more easily convinced when presented with a wide selection of 3rd party component

Re: How to Embed PDF in a Web Page

2008-08-07 Thread igor . vaynberg
What does wicket have to do with this? -igor On 8/7/08, shetc [EMAIL PROTECTED] wrote: Hello All, I'm looking for some advice on how to embed a PDF into a web page using Wicket. Any help would be most appreciated. Thanks, Steve -- View this message in context:

Re: ListView in Forms

2008-08-07 Thread Igor Vaynberg
Form a submit-button. that wouldn't be so nice... thanks On Wed, Aug 6, 2008 at 7:01 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: if there are no errors then you are not using your models properly TextField propertiesName = new TextField(name,new Model(pluginProperties.getName())); to get

Re: NPE

2008-08-07 Thread Igor Vaynberg
whats the stacktrace for the npe? -igor 2008/8/7 Uwe Schäfer [EMAIL PROTECTED]: Hi the current (1.4-m3) impl of ComponentStringResourceLoader.loadStringResource(Class,String,Locale,String) throws an NPE, that i am not sure of. I´d suggest: public String loadStringResource(Class clazz,

Re: modify an arbitrary dom element

2008-08-07 Thread Igor Vaynberg
you have to make it a component if you want to do it on serverside if you want to do it on clientside you would do something like document.getelementbyid(link).parentnode.style.foo=bar -igor On Thu, Aug 7, 2008 at 10:15 AM, Brill Pappin [EMAIL PROTECTED] wrote: I have a case where I want to

Re: How to Embed PDF in a Web Page

2008-08-07 Thread Igor Vaynberg
see DownloadLink for how to stream stuff to the client -igor On Thu, Aug 7, 2008 at 10:45 AM, shetc [EMAIL PROTECTED] wrote: Hi Igor, Let me rephrase: I am working with an Acrobat Form, which is a PDF with extensions to add fields and buttons. These extensions include a button to submit

<    5   6   7   8   9   10   11   12   13   14   >