Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-30 Thread Igor Vaynberg
ag); > tag.put("src", GIVE-ME-YOU-LOCATION-PLEASE + tag.getString("src")); > } > > }); > > where "GIVE-ME-YOU-LOCATION-PLEASE" is some method to get > "/resources/com.mycompany.component.MyComponent/"? > > On Sun, Mar 30, 2008 at

Re: Intention of PropertyModel in 1.3

2008-03-30 Thread Igor Vaynberg
patch applied. always report a jira issue, that way things dont get forgotten, and as you can see submitting a patch helps too :) -igor On Sun, Mar 30, 2008 at 9:36 PM, David Leangen <[EMAIL PROTECTED]> wrote: > > I didn't happen to see a reply to this thread, and the stack trace is > still dr

Re: Best method of testing behaviors.

2008-03-30 Thread Igor Vaynberg
class behaviortestpage extends webpage { public behaviortestpage(IBehavior subject) { add(new webmarkupcontainer("container").add(subject)); } } behaviortestpage.html -igor On Sun, Mar 30, 2008 at 9:45 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Do you have an example of how we wou

Re: Best method of testing behaviors.

2008-03-30 Thread Igor Vaynberg
weird, we use that construct all over the place. eg see FormSubmitTest -igor On Sun, Mar 30, 2008 at 10:31 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > That's great. > > However, I'm having strange behavior when I send an instance of a page to > the tester. I'll start ripping out bits of m

Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-30 Thread Igor Vaynberg
geImage("img", MyComponent.class)); > > And this gets the src fixed up to point to the image file. I think it could > be useful in general. Should Wicket have one built-in? > > > > On Sun, Mar 30, 2008 at 9:33 PM, Igor Vaynberg <[EMAIL PROTECTED]> >

Re: Best method of testing behaviors.

2008-03-30 Thread Igor Vaynberg
it might be just that wickettester doesnt work with the compressing url coding strategy. please file a bug and attach the quickstart to that. -igor On Sun, Mar 30, 2008 at 11:26 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Upon further investigation, > > I am using UrlCompressingWebRequestPr

Re: Inspecting AjaxRequestTarget

2008-03-31 Thread Igor Vaynberg
you should probably open a jira issue, that way we wont forget about it...because i already have -igor On Mon, Mar 31, 2008 at 12:19 AM, Federico Fanton <[EMAIL PROTECTED]> wrote: > On Fri, 28 Mar 2008 09:31:39 -0700 > "Igor Vaynberg" <[EMAIL PROTECTED]> wrote:

Re: Best method of testing behaviors.

2008-03-31 Thread Igor Vaynberg
On Mon, Mar 31, 2008 at 1:50 AM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Doh - i didnt search adequately. I raised > http://issues.apache.org/jira/browse/WICKET-1466 > but I've marked it as a dupe. > > I'm not sure if you guys want it just "linked" as dupe, or resolved as dupe. > At the mo

Re: Mount causes strange effects on my web application

2008-03-31 Thread Igor Vaynberg
does sound very strange. are you sure you dont have something like in your markup? empty src will cause the browser to re-request the same url.. -igor On Mon, Mar 31, 2008 at 2:54 AM, SteamR <[EMAIL PROTECTED]> wrote: > > Hi, I hope someone could help me with this... > > I have 5 pages which

Re: AjaxSubmitButton and Session Timeout (1.2.7)

2008-03-31 Thread Igor Vaynberg
you can register general failure handlers in your page: easiest way is to simply have function wicketGlobalFailureHandler() { ... } defined somewhere, a better way is to define it like this: Wicket.Ajax.registerFailureHandler(function() { ...}) -igor On Mon, Mar 31, 2008 at 10:15 AM, Markus Str

Re: Wicket:enclosure isn't working with ajax?

2008-03-31 Thread Igor Vaynberg
enclosures dont really work with ajax. you would have to update some container that the enclosure is in -igor On Mon, Mar 31, 2008 at 10:22 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: > Hi, > > is there any way to set a component, which is surrounded by > wicket:enclosure, visible via ajax? se

Re: Wicket:enclosure isn't working with ajax?

2008-03-31 Thread Igor Vaynberg
wicket:enclosure is a _convinience_ so dont expect it to work everywhere for every imaginable usecase. -igor On Mon, Mar 31, 2008 at 10:30 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: > Ok. That's the answer I was afraid of. > > - Juha > > > > Igor Vaynberg wr

Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-31 Thread Igor Vaynberg
On Mon, Mar 31, 2008 at 11:44 AM, Matthew Young <[EMAIL PROTECTED]> wrote: > > src="resources/com.mycompany.component.MyComponent/open.png" or just > >so i would say, no, it takes 10 minutes to write one > > I completely agree it's very trivial to create after getting help here > :) St

Re: London Wicket Event - Wednesday evening at Google

2008-03-31 Thread Igor Vaynberg
you can make roundtripping easier. for example, you develop a login panel that lets users either login or signup. a wicket component may look something like this: add(new LoginPanel("panel") { onLoging(String username, String password) {..} onSignup(String first, String last, String login, Str

Re: London Wicket Event - Wednesday evening at Google

2008-03-31 Thread Igor Vaynberg
i thought this is woogle: http://www.google.com/coop/cse?cx=00079654818618231%3Aenjwek-gxxg -igor On Mon, Mar 31, 2008 at 3:48 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Woogle would be so much cooler :). He could be another Ewok for sure! > > > > jweekend wrote: > > > > As for the

Re: URL Binding

2008-03-31 Thread Igor Vaynberg
and IndexedUrlCodingStrategy -igor On Mon, Mar 31, 2008 at 7:29 PM, Nick Heudecker <[EMAIL PROTECTED]> wrote: > mountBookmarkablePage(..) in Application? > > > > > On Mon, Mar 31, 2008 at 8:48 PM, Alan Gutierrez <[EMAIL PROTECTED]> wrote: > > > How do I implement this URL strategy? > > > > h

Re: URL Binding

2008-03-31 Thread Igor Vaynberg
cant mount the homepage to "/" yet, will be available in a later release. so just mount("/foo", getHomePage()) -igor On Mon, Mar 31, 2008 at 7:53 PM, Alan Gutierrez <[EMAIL PROTECTED]> wrote: > Nope. > > java.lang.IllegalArgumentException: The mount path '/' is reserved > for the application

Re: Best Wicket Books or Tutorials

2008-03-31 Thread Igor Vaynberg
On Mon, Mar 31, 2008 at 9:07 PM, Eyal Golan <[EMAIL PROTECTED]> wrote: > I would like to have some info regarding CompoundPropertyModel ... http://cwiki.apache.org/WICKET/working-with-wicket-models.html -igor > > > > On Mon, Mar 31, 2008 at 11:10 AM, Gabor Szokoli <[EMAIL PROTECTED]> wrote: >

Re: export excel file via an OutputStream

2008-04-01 Thread Igor Vaynberg
see Streams.copy() in wicket utils package -igor On Tue, Apr 1, 2008 at 12:31 AM, <[EMAIL PROTECTED]> wrote: > Hello: > I am trying to export dynamically generated excel file. > The generator would send the file.xls to an OutputStream. > > In wicket, I am trying to use example as below but >

Re: export excel file via an OutputStream

2008-04-01 Thread Igor Vaynberg
see DownloadLink -igor On Tue, Apr 1, 2008 at 12:45 AM, <[EMAIL PROTECTED]> wrote: > This does not apply as it copies input to output. > My issue is that in OnClick() I call > > excelGen(OutputStream) > > to produce the bytes on the fly. but the ResourceStream > needs InputStream that wi

Re: export excel file via an OutputStream

2008-04-01 Thread Igor Vaynberg
is it really that difficult to do some legwork? the hint in downloadlink is to do getrequestcycle().setrequesttarget(new irequesttarget() {..}); irequesttarget has a respond(requestcycle cycle); cycle in turn has a cycle.getresponse().getoutputstream(). -igor On Tue, Apr 1, 2008 at 12:59 AM,

Re: export excel file via an OutputStream

2008-04-01 Thread Igor Vaynberg
wtf -igor On Tue, Apr 1, 2008 at 1:12 AM, <[EMAIL PROTECTED]> wrote: > In a raw servlet programming, it is trivial, > just get response outputstream, set headers and pass it > to the excelGen (as a poorman's way, close the connection after done) > Wicket got to have a more structured api for

Re: Question on page inheritance...

2008-04-01 Thread Igor Vaynberg
such a check belongs in ISecurityStrategy and not really in your page hierarchy. see wicket-auth-roles for examples. -igor On Tue, Apr 1, 2008 at 10:28 AM, Bruce Petro <[EMAIL PROTECTED]> wrote: > I'm just getting started in wicket, so forgive me if this is a too-dumb > question... > > > > I k

Re: RequestCycle exception explanation

2008-04-01 Thread Igor Vaynberg
On Tue, Apr 1, 2008 at 1:51 PM, Al Maw <[EMAIL PROTECTED]> wrote: > OK, but the reason is always the same - the user will be trying to click on > something that doesn't exist any more. > > I can't quite remember how our page versioning works for this (Eelco? Igor?) > but it might be possible tha

Re: Validate HTML generated from getMarkupResourceStream()

2008-04-01 Thread Igor Vaynberg
you can probably user our markupparser... -igor On Tue, Apr 1, 2008 at 1:26 PM, hjuturu <[EMAIL PROTECTED]> wrote: > > Hi All > I use a class which implements IMarkupResourceStreamProvider, > IMarkupCacheKeyProvider to > generated HTML dynamically and sent it to wicket as a IResourceStream.

Re: refreshing page

2008-04-01 Thread Igor Vaynberg
in soviet wicket the page calls you! yes, read the models link given to you below. -igor On Tue, Apr 1, 2008 at 2:25 PM, Andrew Broderick <[EMAIL PROTECTED]> wrote: > All I want to know is how you tell a page that its data is dirty and it > should reload. > > Thanks > > > > -Original Mes

Re: RequestCycle exception explanation

2008-04-01 Thread Igor Vaynberg
ject factory > > Not sure if they are related.. We are running 1.3.1. Are these manifesting > in errors for users, we haven't seen any as far as we can tell. > > Jeremy > > On Tue, Apr 1, 2008 at 4:58 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >

Re: RequestCycle exception explanation

2008-04-01 Thread Igor Vaynberg
ime and requesting expired pages... > > Jeremy > > On Tue, Apr 1, 2008 at 8:14 PM, Igor Vaynberg <[EMAIL PROTECTED]> > > > wrote: > > > does it only happen to ILinkListener urls? > > > > -igor > > > > > > On Tue, Apr 1, 2008 at

Re: How to display a swing component/applet in wicket?

2008-04-01 Thread Igor Vaynberg
by work with swing what do you mean exactly? wicket is a web framework, swing is a desktop framework, not really meant to work together... -igor On Tue, Apr 1, 2008 at 5:52 PM, jianfei <[EMAIL PROTECTED]> wrote: > > I am developing an webapp that has to use the JTreeMap > (http://jtreemap.sour

Re: unclosed leading to trouble

2008-04-01 Thread Igor Vaynberg
img src="" will issue another request to the server to the same url, which will most likely bump up your version and render ajax stuff useless because versions wont match. its in the faqs and gotchas. -igor On Tue, Apr 1, 2008 at 6:07 PM, atul singh <[EMAIL PROTECTED]> wrote: > I by mistake had

Re: How to capture not BookmarkablePage

2008-04-01 Thread Igor Vaynberg
just keep a reference to it, thats all you need -igor On Tue, Apr 1, 2008 at 6:32 PM, freak182 <[EMAIL PROTECTED]> wrote: > > Hello, > > 1. My problem is how to capture not bookmarkable page? (I already see the > wicket-example on how to capture bookmarkable page) > 2. All data i put in the

Re: How to display a swing component/applet in wicket?

2008-04-01 Thread Igor Vaynberg
yep, an applet is probably the most straight forward way. -igor On Tue, Apr 1, 2008 at 8:37 PM, jianfei <[EMAIL PROTECTED]> wrote: > > Yes, and that's why I am having the trouble. I need that JTreeMap thingy, > which is like a map with different squres in it. I want that map to be able > to d

Re: Reg: issue in using ListView component

2008-04-01 Thread Igor Vaynberg
read models wiki page -igor On Tue, Apr 1, 2008 at 9:59 PM, Sathish Gopal <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm trying to create a table using wickets repeater component ListView. The > problem that i face now is i have search panel where search query will be > entered. When the for

Re: export excel file via an OutputStream

2008-04-01 Thread Igor Vaynberg
it is trivial to implement and can be pretty much factored out of downloadlink. -igor On Tue, Apr 1, 2008 at 11:35 PM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > That looks like an excellent API. Would it be very hard to implement this? > > Personally I am also looking for something like this

Re: Reg: issue in using ListView component

2008-04-02 Thread Igor Vaynberg
new model(listdata) is the same as a static reference. like i said, read the models page because without understanding them you wont get far. basically you would have a loadabledetachablemodel that in its load performs the search query based on user's criteria. -igor On Wed, Apr 2, 2008 at 1:06

Re: Writing to .properties files and make changes happen?

2008-04-02 Thread Igor Vaynberg
do they reload properly if wicket is running in development mode? -igor On Wed, Apr 2, 2008 at 7:51 AM, unka_hahrry <[EMAIL PROTECTED]> wrote: > > I'm using a BufferedWriter to change my .properties files dynamically, the > .properties files are updated well but the changes don't appear in my

Re: Problem with serializing objects

2008-04-02 Thread Igor Vaynberg
omfg, you guys COULD just use PropertyListView -igor On Wed, Apr 2, 2008 at 5:55 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > You mean item.setModel(new CompoundPropertyModel(item.getModel()));, right? ;) > > And no wicket does not keep string references, it uses models so it > won't have

Re: wicket support for page customisation at runtime

2008-04-02 Thread Igor Vaynberg
huh? hardly any logic for presenting? wicket is a ui framework, it wouldnt be a good one if you couldnt present dynamic things... anywho, there is support for all you want. your question is too general to be answered, if you have a more specific usecase you want to talk about feel free. as far as

Re: including dynamic page

2008-04-02 Thread Igor Vaynberg
see markup inheritance wiki page -igor On undefined, Milan Křápek <[EMAIL PROTECTED]> wrote: > Hi, > I am newbie to wicket. And I am just discovering all beautifel thing that > wicket provides to me. > > I am trying to add to my pages some common look. At first i would like to > add to my

Re: Removing the jsessionid for SEO

2008-04-02 Thread Igor Vaynberg
you would think that the crawl bots are smart enough to ignore jsessionid tokens... -igor On Wed, Apr 2, 2008 at 5:20 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote: > victori_ provided this information on IRC and I just wanted to share it with > everyone else. Googlebot and others don't use cookies

Re: Removing the jsessionid for SEO

2008-04-02 Thread Igor Vaynberg
also by doing what you have done users with cookies disabled wont be able to use your site... -igor On Wed, Apr 2, 2008 at 7:44 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you would think that the crawl bots are smart enough to ignore > jsessionid tokens... > > -igor >

Re: Modifying inline CSS in head of document

2008-04-03 Thread Igor Vaynberg
see IHeaderContributor -igor On Thu, Apr 3, 2008 at 12:43 AM, rzechner <[EMAIL PROTECTED]> wrote: > I want to resize the height of my pages dynamically, therefore I need to set > the height of some markup elements dynamically. I don't want to use > Javascript (although I found a nice solution wit

Re: Mount causes strange effects on my web application

2008-04-03 Thread Igor Vaynberg
where does your javascript live? context folder? package folder? -igor On Thu, Apr 3, 2008 at 2:22 AM, SteamR <[EMAIL PROTECTED]> wrote: > > OK, it seems that image paths are filtered with correct path, and thus leaves > my javascript reference as is, since I add it myself. Is there somehow I

Re: wicket support for page customisation at runtime

2008-04-03 Thread Igor Vaynberg
they click the up link, you update the db with the correct order, and repaint the page. where is the problem? -igor On Thu, Apr 3, 2008 at 2:34 AM, kumark <[EMAIL PROTECTED]> wrote: > > Thanks Igor. > > Here's an example of the usecase I am referring to. Two panels lets say (one > with sports

Re: Tabbed Panel

2008-04-03 Thread Igor Vaynberg
tabbedpanel is meant for swapping inner panels not urls. you will need to roll your own variant that only has tabs and no body. see the source of tabbedpanel for inspiration. -igor On Thu, Apr 3, 2008 at 9:34 AM, Milan Křápek <[EMAIL PROTECTED]> wrote: > Hi, > I want to use tabbed panel in my

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
right. if you strip sessionid then all your nonbookmarkable urls will resolve to a 404. that will probably drop your rank a lot faster -igor On Thu, Apr 3, 2008 at 9:16 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > the problem is that then you have to have all stateless pages. Else google

Re: Throw AbortWithWebErrorCodeException in onBeforeRender

2008-04-03 Thread Igor Vaynberg
jira... -igor On Wed, Apr 2, 2008 at 2:41 AM, Michael Sparer <[EMAIL PROTECTED]> wrote: > > (Using wicket 1.3.2) I have a super class (WebPage) that throws a > AbortWithWebErrorCodeException(404) depending on some properties of its > subclasses. Therefore I can't check the subclasses' properti

Re: CheckBoxMultipleChoice with sections

2008-04-03 Thread Igor Vaynberg
you could use CheckGroup/Check components -igor On Thu, Apr 3, 2008 at 6:37 AM, Brian Edwards <[EMAIL PROTECTED]> wrote: > I am trying to create a CheckBoxMultipleChoice subclass that supports > sections. The class of items in the list will have a section name and > a description. The l

Re: should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread Igor Vaynberg
whats the usecase there? -igor On Thu, Apr 3, 2008 at 6:29 AM, i ii <[EMAIL PROTECTED]> wrote: > > but what if items per page is needed not in iterator? > > > Date: Thu, 3 Apr 2008 15:08:27 +0200 > > From: [EMAIL PROTECTED] > > To: users@wicket.apache.org > > Subject: Re: should DataView.set

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
n the result. > > However, preserving session makes lot of sense with hybrid url. Google > remembers the original url (without page instance) while indexing the > real page (after redirect). > > I think though that the crawler is quite advanced. I'm would think it > su

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
sibility. > > > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2008 3:26 PM > To: users@wicket.apache.org > Subject: Re: Removing the jsessionid for SEO > > dataview can work in a stateless mode, just us

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
gt; bookmarkable). I'm talking about the links that the Navigator generates. > How do I make it so page 2 is bookmarkable? > > > -----Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, April 03, 2008 3:30 PM > To: use

Re: should DataView.setItemsPerPage(int items) be in IDataProvider?

2008-04-03 Thread Igor Vaynberg
what is that have to do with dataprovider? i think you are doing something very strange. maybe you should subclass the dataview instead of dataprovider -igor On Thu, Apr 3, 2008 at 5:22 PM, i ii <[EMAIL PROTECTED]> wrote: > > i need update method to know how many items updated out of how many i

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
decode it, recreate something from it, and then apply that something onto the components. This is the crapwork that wicket does for you usually. -igor > > > > -Original Message- > > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday

Re: Removing the jsessionid for SEO

2008-04-03 Thread Igor Vaynberg
ke a bit of work though. -igor > > > > > -Original Message- > > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday, April 03, 2008 5:45 PM > > To: users@wicket.apache.org > > Subject: Re: Removing the jsessionid for SEO >

Re: Mount causes strange effects on my web application

2008-04-03 Thread Igor Vaynberg
see ContextImage and how it generates the necessary ../../ prefix, do the same for your javascript inside iheadercontributor. -igor On Thu, Apr 3, 2008 at 11:22 PM, SteamR <[EMAIL PROTECTED]> wrote: > > My project structure is as follows: > > root > --> WEB-INF > --> classes >

Re: IE 6 & 7 Ajax Refresh Issue

2008-04-04 Thread Igor Vaynberg
make sure you dont have any span tags attached to wicket components that have div tags inside. also past the output of wicket ajax console -igor On Thu, Apr 3, 2008 at 11:52 PM, Cristi Manole <[EMAIL PROTECTED]> wrote: > Hello, > > I have on a page 3 radio buttons in a group and for each radio

Re: DataPicker problem

2008-04-04 Thread Igor Vaynberg
you werent kidding about 3 hours of sleep... -igor On Fri, Apr 4, 2008 at 12:57 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > you don't have joda-time in your classpath. > Gerolf > > On Fri, Apr 4, 2008 at 9:55 AM, lienok > <[EMAIL PROTECTED]<[EMAIL PROTECTED]>> > wrote: > > > > > > > Hel

Re: Error using JUnit: Can't instantiate page using constructor

2008-04-04 Thread Igor Vaynberg
look at the stacktrace, the root cause is: Caused by: java.lang.ClassCastException: org.apache.wicket.util.tester.WicketTester$DummyWebApplication cannot be cast to com.cheesr.CheesrApplication in your page you are trying to cast application to cheesrapplicatio, but by default wickettester uses

Re: FeedbackPanel ul has no class

2008-04-05 Thread Igor Vaynberg
you can just subclass the panel and provide your own markup with the class on the ul. also add a jira issue to have it added to the core panel -igor On Sat, Apr 5, 2008 at 2:08 PM, Matthew Young <[EMAIL PROTECTED]> wrote: > The book is incorrect. There is no class attribute in the tag and > t

Re: Using twice wicket:message in element

2008-04-06 Thread Igor Vaynberg
cant remember if its a comma or semicolon though... -igor On Sun, Apr 6, 2008 at 4:19 AM, Martin Grigorov <[EMAIL PROTECTED]> wrote: > Hi, > > I want to internationalize both 'alt' and 'title' attributes of > element: > >wicket:message="title:aPanel.buttons.equals.title"/> > > But Wicke

Re: Using twice wicket:message in element

2008-04-06 Thread Igor Vaynberg
super, thanks -igor On Sun, Apr 6, 2008 at 4:56 AM, Martin Grigorov <[EMAIL PROTECTED]> wrote: > Thanks! It's a comma. > > I'll update http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html with > this usecase. > > Regards > Martin > > > >

Re: Navigation bar

2008-04-07 Thread Igor Vaynberg
add(new listview("links", linksmodel) { onpopulateitem(item item) { e=new externallink("link", item.getmodel().getlink(), item.getmodel().getlabel()); } } link -igor On Mon, Apr 7, 2008 at 3:44 AM, Milan Křápek <[EMAIL PROTECTED]> wrote: > Hi, > I need your help. After few days I am out

Re: RadioButton inside DataTable

2008-04-07 Thread Igor Vaynberg
no, it means you can only add one radio to radiogroup with the same id. this is a wicket requirement, nothing to do with radiogroups anywho, this: radioGroup.add(new Radio("selected", new Model(""))); add(radioGroup); should be add(new Radio("selected", new Model("")));

Re: Problems with cookie

2008-04-07 Thread Igor Vaynberg
you really should use an IDE other then that you can do requestcycle.get() instead -igor On Mon, Apr 7, 2008 at 7:56 AM, Fabien D. <[EMAIL PROTECTED]> wrote: > > Hi > > I have a problem to set and use cookie !! > > I have followed the example found in wickets example : > > Cookie cookieUser

Re: AjaxSubmitLink accessing model object non-existent property

2008-04-07 Thread Igor Vaynberg
you forgot to give ajaxsubmitlink a model, so getmodelobject() will either return null or a compound model.confirm - neither of which i think you want. -igor On Mon, Apr 7, 2008 at 1:00 PM, Tim Squires <[EMAIL PROTECTED]> wrote: > Hi, > > When adding an AjaxSubmitLink, the onSubmit method tries

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

2008-04-07 Thread Igor Vaynberg
can you try with 1.3.1, 1.3.0. would help us isolate where the problem is... seems kind of strange that you are the only one seeing this though... -igor On Mon, Apr 7, 2008 at 1:40 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: > Today I deployed an application based on Wicket 1.3.3 that has close t

Re: AjaxSubmitLink accessing model object non-existent property

2008-04-07 Thread Igor Vaynberg
no, components do not randomly pick up models from their parents. i would suggest reading the models wiki page. -igor On Mon, Apr 7, 2008 at 3:11 PM, Tim <[EMAIL PROTECTED]> wrote: > Thanks Igor but should it not pick-up the model from the Form? There's no > constructor that takes a model. Sh

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

2008-04-07 Thread Igor Vaynberg
hm, slf4j supports MDC. dont know if it emulates it for logging impls that dont support it or not. here we use logback and have a thing like this: public class RequestIdLogFilter implements Filter { private static final String MDC_REQUEST_ID = "requestId"; private static AtomicInteger req

Re: Request based DataProvider

2008-04-07 Thread Igor Vaynberg
what is the actual use case? sounds a bit weird when you say those things for a wicket app -igor On Mon, Apr 7, 2008 at 4:00 PM, Ritz123 <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using SortableDataProvider and have a need to access request attributes > to get the next set of "items". IData

Re: IntegerConverter cannot parse or display locale specific format like "999,999"

2008-04-07 Thread Igor Vaynberg
maybe in string->object we can try both? first with grouping off and then with groupin on? that way it should cover all possible usecases... -igor On Mon, Apr 7, 2008 at 11:39 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > It is disabled i think because else all the numbers that we display > g

Re: Problems with cookie

2008-04-08 Thread Igor Vaynberg
like i said change your code to ((WebResponse)RequestCycle.get().getResponse()).addCookie(... -igor On Tue, Apr 8, 2008 at 12:48 AM, Fabien D. <[EMAIL PROTECTED]> wrote: > > Thank you for your response... > > But it's possible to explain me a little more??? > I have tried : > > > ((WebRespons

Re: Question on component hierarchy

2008-04-08 Thread Igor Vaynberg
you dont need a panel for the repeater itself. as for variable component hierarchy inside the repeater itself, you are correct: you have to either use a panel or a fragment. -igor On Tue, Apr 8, 2008 at 9:37 AM, Eric Rotick <[EMAIL PROTECTED]> wrote: > I thought I understood the component hierar

Re: Request based DataProvider

2008-04-08 Thread Igor Vaynberg
well, you can access the request from the dataprovider using requestcycle.get().getrequest() -igor On Tue, Apr 8, 2008 at 10:10 AM, Ritz123 <[EMAIL PROTECTED]> wrote: > > Its probably not required for "pure" wicket applications - but when wicket is > used with "legacy" or some other applicati

Re: Question on component hierarchy

2008-04-08 Thread Igor Vaynberg
udiments of Wicket to a project team > > I guess the teacher should know what they are talking about. > > > > > > On Tue, Apr 8, 2008 at 6:50 PM, Igor Vaynberg <[EMAIL PROTECTED]> > > wrote: > > > > > you dont need a panel for the repe

Re: AjaxSubmitLink accessing model object non-existent property

2008-04-08 Thread Igor Vaynberg
you said it yourself: "Insure that the component identifier names match the appropriate property names." what that says is that the model you get is the property of the model object that is in the cpm with the name of component id. so since your links id is "foo" it will try to pull out the mode

Re: Best way to tie a link to a checkbox?

2008-04-08 Thread Igor Vaynberg
click -igor On Tue, Apr 8, 2008 at 4:32 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I need to sync a link to a checkbox. Meaning, that clicking on the > checkbox or clicking on the link should select/deselect the checkbox. > > I was thinking on adding an AbstractBehavior to the link and th

Re: A few Wicket Questions

2008-04-08 Thread Igor Vaynberg
On Tue, Apr 8, 2008 at 5:08 PM, mraible <[EMAIL PROTECTED]> wrote: > > 1. Is it possible to load templates from a remote server/url/jar? yes. you will have to roll your own IResourceStreamLocator > 2. Is it possible to set breakpoints in templates and debug them using an > IDE? no. but why wo

Re: LoadableDetachableModel load() question

2008-04-08 Thread Igor Vaynberg
bind the textfield to some property, and then reference the property in load() -igor On Tue, Apr 8, 2008 at 10:06 PM, Warren <[EMAIL PROTECTED]> wrote: > I have a page with a form that uses a LoadableDetachableModel nested in a > CompoundPropertyModel. The form has a lot of labels and one text

Re: ListView with images and getting absolut path

2008-04-08 Thread Igor Vaynberg
there are RequestUtils that can convert a wicket relative url to an absolute one, if thats what you are asking. there is no better way for you to get the src because direct access to WEB-INF is not allowed, so you do have to stream it using a middleman such as Image component instead of having the

Re: AjaxSubmitLink accessing model object non-existent property

2008-04-09 Thread Igor Vaynberg
you can, just give the cpm reference to link as the model. -igor On Wed, Apr 9, 2008 at 1:31 AM, Tim Squires <[EMAIL PROTECTED]> wrote: > OK. It's clicked. I was hoping to have a simple ajaxed submit link > without having to create a fake property on the model object. No problem, > I can se

Re: MarkupCache change in 1.3.2 breaks style/variation/locale markup support

2008-04-09 Thread Igor Vaynberg
what if the cache knew the actual resource path of the resource also then we can cache login.html, default.html, default_style1.html, default_style2.html independently of what they actually map to... -igor On Wed, Apr 9, 2008 at 11:41 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > but then we

Re: Integrating Wicket and Jersey

2008-04-09 Thread Igor Vaynberg
you can make both to /* wicket is a filter, so if it thinks it cant handle the url it will let it fall through at which point jersey will have a try -igor On Wed, Apr 9, 2008 at 1:31 PM, Michael Laccetti <[EMAIL PROTECTED]> wrote: > > Is there any way to integrate Wicket and Jersey (REST frame

Re: Navigation etc. URLs for DefaultDataTable - multiple issues

2008-04-09 Thread Igor Vaynberg
On Wed, Apr 9, 2008 at 5:05 PM, Ritz123 <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to use DefaultDataTable - out of the box, the URLs generated for > the header (sorting) and navigation look really weird. I have setup > URLStrategy for the application and would like these DefaultDataTab

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-10 Thread Igor Vaynberg
httpsession already has a settimeout no? so once a user logs in you can set it to a longer period -igor On Thu, Apr 10, 2008 at 7:38 AM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > Thanks for the tip. I came up with an idea last night that I would like to > get input on. I created an HttpSe

Re: WebRequest question

2008-04-10 Thread Igor Vaynberg
On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > My two questions: > > 1. is this necessary / bad? no, it just adds some extra capability to the request > 2. what if I need different types of requests in my application? i doubt you will. what usecases do you hav

Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Igor Vaynberg
why wouldnt page be generic? class edituserpage extends webpage { public edituserpage(imodel user) {...}} -igor On Thu, Apr 10, 2008 at 5:22 PM, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > yeah. if Page/WebPage are not going to be generic, maybe they should extend > (Web)MarkupContaine

Re: StringResourceModel with computed values/expression?

2008-04-10 Thread Igor Vaynberg
see NavigatorLabel in extensions -igor On Thu, Apr 10, 2008 at 5:57 PM, Ritz123 <[EMAIL PROTECTED]> wrote: > > Hi, > > How would I pass in mathematical formula which is dynamic? e.g. in the > resource bundle properties file I would like a label like > mylist.navlabel=Displaying {0}-{1} of N

Re: Attaching stuff to pages

2008-04-10 Thread Igor Vaynberg
mount a page using indexed url coding strategy then in the page check if there is a parameter. if there is one add the details panel, if not add the list panel -igor On Thu, Apr 10, 2008 at 7:39 PM, David Leangen <[EMAIL PROTECTED]> wrote: > > I know this type of question has been asked befor

Re: ajax error handling on server side exception

2008-04-10 Thread Igor Vaynberg
actually i believe this is how it worked original, but then users wanted any kind of serverside error to go to the error page so we changed it -igor On Thu, Apr 10, 2008 at 8:20 PM, ywtsang <[EMAIL PROTECTED]> wrote: > > i can sucecssfuly use "getFailureScript" to act against the "client-side" >

Re: WebRequest question

2008-04-11 Thread Igor Vaynberg
Apr 10, 2008 at 4:10 PM, Martijn Lindhout > > > > > > > > > <[EMAIL PROTECTED]> wrote: > > > > If I remember well, Wasp/Swarm needs its own WebRequest subclass? > > > > > > > > 2008/4/10, Igor Vaynberg <[EMAIL PROTECT

Re: Model refreshing and behaviors

2008-04-11 Thread Igor Vaynberg
you can just call A.getmodel().detach() to uncache the model -igor On Fri, Apr 11, 2008 at 7:52 AM, Alexis <[EMAIL PROTECTED]> wrote: > > Okay, i've managed to get it working with removing and adding the component > to its parent, here's a snippet : > > final ChaptersTreeView treeView

Re: WebMarkupContainer - images cannot be found after move to 1.3?

2008-04-11 Thread Igor Vaynberg
what url gets constructed? is the imageresource ever hit? -igor On Fri, Apr 11, 2008 at 8:34 AM, V. Jenks <[EMAIL PROTECTED]> wrote: > > Sorry, I forgot to include this class, which someone here on the mailing list > gave to me way back in '06 when I first built this app. It's been so long >

Re: Change css style of AjaxButton

2008-04-11 Thread Igor Vaynberg
you can add an attributemodifier to the button that alters the style attribute -igor On Fri, Apr 11, 2008 at 10:01 AM, Karen Schaper <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to change the color of a button after clicking it. The button was > added to the page using AjaxButton. > > Is th

Re: Ajax and isTransparentResolver

2008-04-11 Thread Igor Vaynberg
i dont think we can support transparent resolvers as ajax targets -igor On Fri, Apr 11, 2008 at 10:00 AM, Meetesh Karia <[EMAIL PROTECTED]> wrote: > Hi all, > > We're seeing an issue with ajax and isTransparentResolver set to return > true and I'm wondering if this is something we're doing wron

Re: Forms within borders

2008-04-11 Thread Igor Vaynberg
try formborder extends border { formborder() { form.add(getbodycontainer(); } } if that doesnt help you might have to say formborder.getbodycontainer().add(textfield); but i think the first tweak should fix it -igor On Fri, Apr 11, 2008 at 11:54 AM, John Krasnay <[EMAIL PROTECTED]> wrote: >

Re: Forms within borders

2008-04-11 Thread Igor Vaynberg
keep your eye on https://issues.apache.org/jira/browse/WICKET-1237 -igor On Fri, Apr 11, 2008 at 1:22 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 01:12:15PM -0700, Igor Vaynberg wrote: > > try > > > > formborder extends border { >

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Igor Vaynberg
which wicket does for every url via webrequest.encodeurl or something like that. of course if you subclass webrequest and dont forward the encodeurl to httpservletrequest you effectively strip jsessionid from the urls. -igor On Fri, Apr 11, 2008 at 6:53 PM, James Carman <[EMAIL PROTECTED]> wrote

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Igor Vaynberg
On Fri, Apr 11, 2008 at 6:37 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > If you go to http://www.texashuntfish.com/thf/app/home, you will notice that > the first time you hit the page, there are jsessionids in every link - same > if you go there with cookies disabled. as far as i know jse

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Igor Vaynberg
on the IPs. The > traffic was from: > > cuill.com crawler4 (interesting - new search engine - didn't know > about it before) > googlebot4 > live.com bot1 > unknown13 > user28 > yahoo crawler26 > > > > > On Fri, Apr 11,

  1   2   3   4   5   6   7   8   9   10   >