[Wicket-user] AjaxRequest with expired session

2006-04-14 Thread Arto Arffman
Hi, What should happen when AjaxRequest is issued and session has expired? In my app nothing happens at all. /arto

[Wicket-user] Re: AjaxRequest with expired session

2006-04-14 Thread Arto Arffman
(((FormComponent)getComponent()).getInputName()).append('), null, null) + ;; 2006/4/14, Arto Arffman [EMAIL PROTECTED]: Hi, What should happen when AjaxRequest is issued and session has expired? In my app nothing happens at all. /arto

[Wicket-user] RAD Components

2006-04-03 Thread Arto Arffman
Hi, Probably this has been discussed before, but couldn't find those threads. The idea is that MarkupContainer could create components dynamically based on wicket:ids given in html-templates if there is no explicitly created component. This could be done by calling a method (for example

Re: [Wicket-user] RAD Components

2006-04-03 Thread Arto Arffman
Yes, so it does. Thank you! It's better than I could have dreamed :) 2006/4/3, Igor Vaynberg [EMAIL PROTECTED]: any container can implement the interface afaik. -Igor On 4/3/06, Arto Arffman [EMAIL PROTECTED] wrote: Heh, wicket is getting too big for me... Can I extend a Panel also? /arto

Re: [Wicket-user] RAD Components

2006-04-03 Thread Arto Arffman
Heh, wicket is getting too big for me... Can I extend a Panel also? /arto 2006/4/3, Igor Vaynberg [EMAIL PROTECTED]: not sure your patch is necessary. you can probably do the same with: DynamicMarkupContainer extends MarkupContainer implements IComponentResolver {... -Igor On 4/3/06, Arto

Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
OK, I'll check if it's my mistake or is there really a bug. (latest head, don't know what off trunk means) 2006/3/29, Igor Vaynberg [EMAIL PROTECTED]: it should and i thought i recently fixed it, are you working off trunk? -Igor On 3/28/06, Arto Arffman [EMAIL PROTECTED] wrote

Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
I think it's mistake. I was relying on Page's onAttach(). I suppose its only those components that get rendered, am I rigth? Funny though, Page.onDetach() is called, but Page.onAttach() is not. 2006/3/29, Arto Arffman [EMAIL PROTECTED]: hmm, i'm using svnroot/wicket/trunk/wicket, if that's what

Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
it should be a noop, and its a good safety net. -Igor On 3/29/06, Arto Arffman [EMAIL PROTECTED] wrote: I think it's mistake. I was relying on Page's onAttach(). I suppose its only those components that get rendered, am I rigth? Funny though, Page.onDetach() is called, but Page.onAttach

Re: [Wicket-user] onAttach() with ajax

2006-03-29 Thread Arto Arffman
hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean 2006/3/29, Arto Arffman [EMAIL PROTECTED]: OK, I'll check if it's my mistake or is there really a bug. (latest head, don't know what off trunk means) 2006/3/29, Igor Vaynberg [EMAIL PROTECTED]: it should and i thought i

Re: [Wicket-user] set an anchor to land on in onSubmit

2006-03-12 Thread Arto Arffman
Well, I have used different approach;with _javascript_ you can scroll to where you were before hitting submit. I once posted a behaviour that automatically takes care of that. I found it from archives ( http://sourceforge.net/mailarchive/message.php?msg_id=13241596). That was done for 1.1 and it

[Wicket-user] RestartResponseAtInterceptPageException

2006-02-09 Thread Arto Arffman
Hi, I have a link that redirects to a page where should be a link back to the original page. I tried to use RestartResponseAtInterceptPageException to accomplish this. OriginalPage: public OriginalPage() { ... add(new Link(link) { public void onClick() { throw new

Re: [Wicket-user] RestartResponseAtInterceptPageException

2006-02-09 Thread Arto Arffman
RestartResponseException(Page page)and then youre redirect page has a Constructor with a page param.and in the onClick you set that page as the return page. johan On 2/9/06, Arto Arffman [EMAIL PROTECTED] wrote: Hi, I have a link that redirects to a page where should be a link back to the original page. I tried

Re: [Wicket-user] RestartResponseAtInterceptPageException

2006-02-09 Thread Arto Arffman
PROTECTED]: why not pass in a page reference into the properties page. that way you can just setResponsePage(backPage) in your back link handler. -Igor On 2/9/06, Arto Arffman [EMAIL PROTECTED] wrote: I'll explain the use case: There is a general properties page that is called from several other

[Wicket-user] Options are always localized, even if they shouldn't

2006-01-29 Thread Arto Arffman
Hi, I have a DropDownList on a page that shows values from database. Values can be anything, because they are inputted by users. They can sometimes even match values that are in localization resource (properties file for the page). Well, in that case DropDown will show the localized value, not

[Wicket-user] finals again: StringResourceModel.getParameters()

2005-11-27 Thread Arto Arffman
Hi, Is it possible to remove final keyword from StringResourceModel.getParameters(). I know I could do this ognl-way, but I'd prefer the direct way: public NavigatorLabel(String id, final DataView dataView, final Component page) {super(id, new StringResourceModel(navigatorLabel, page, null,

Re: [Wicket-user] wicket:link recreates link component on each request

2005-11-19 Thread Arto Arffman
Never done bug reports with bugzilla but I think I can do it. But why links are generated in every render??? 2005/11/19, Juergen Donnerstag [EMAIL PROTECTED]: On 11/18/05, Arto Arffman [EMAIL PROTECTED] wrote: It might be the intention, but if it is, there is an error with this solution. When

Re: [Wicket-user] wicket:link recreates link component on each request

2005-11-19 Thread Arto Arffman
Me neither :) But it is very easy to repeat with navomatic example. Here's diff: Index: NavomaticBorder.html===RCS file: /cvsroot/wicket/wicket-examples/src/java/wicket/examples/navomatic/NavomaticBorder.html,vretrieving revision

Re: [Wicket-user] wicket:link recreates link component on each request

2005-11-19 Thread Arto Arffman
Great! It was not too serious problem, because it was possible to split links into several blocks. I already made the bug report as you probably noticed. 2005/11/19, Juergen Donnerstag [EMAIL PROTECTED]: Ok, found it. Will fix it in cvs now.JuergenOn 11/19/05, Arto Arffman [EMAIL PROTECTED

[Wicket-user] wicket:link recreates link component on each request

2005-11-18 Thread Arto Arffman
It might be the intention, but if it is, there is an error with this solution. When the template is parsed each link-tag inside wicket:link is assignedid named _autolink_. Later this tag is handled by AutoLinkResolver. AutoLinkResolver: private final Component resolveAutomaticLink(final

[Wicket-user] OutOfMemoryError when using wicket:link

2005-11-13 Thread Arto Arffman
Hi, There seems to be memory leak (in cvs head) when using wicket:link. I isolated the situation to rather simple case, but my wicket knowledgeis not enough for solving this. I attached the files that produce the error. Clicking the links a few times cause error java.lang.OutOfMemoryError: Java

Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?

2005-11-12 Thread Arto Arffman
Ok. The hint was there, but a little bit deeper. The key was to use PackageResourceReference instead of PackageResource in ImageButton's constructor. 2005/11/12, Arto Arffman [EMAIL PROTECTED]: Nope. I have to repeat the same image with exactly same src. Hangman repeats different images

Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?

2005-11-12 Thread Arto Arffman
Nope. I have to repeat the same image with exactly same src. Hangman repeats different images (and they have different src attributes as they should have) 2005/11/12, Juergen Donnerstag [EMAIL PROTECTED]: i guess the hangman is a good example for how to do it.JuergenOn 11/12/05, Arto Arffman

Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?

2005-11-12 Thread Arto Arffman
And by the way, thank you for your tip :) 2005/11/12, Arto Arffman [EMAIL PROTECTED]: Yes it does. I meant that I responded too hastily at first. When I looked deeper inhangman, I found that clicked Images did have src attributes like I wanted them. 2005/11/12, Juergen Donnerstag [EMAIL

Re: [Wicket-user] i18n messages in HTML

2005-11-09 Thread Arto Arffman
One more idea. How about using some reserved word for wicket:id. Like this: span wicket:id=$somereservedword$ value=message:key1 alt=message:key2/ This would create an automatic component (with a behaviour) that scans all attributes and does its magic. This could be easily extended to other

Re: [Wicket-user] i18n messages in HTML

2005-11-09 Thread Arto Arffman
2005/11/9, Andrew Berman [EMAIL PROTECTED]: Oh and the other nice feature would be that if you do it like this: wicket:message key=..My Text/wicket that the My Text would be the default text if the key is not found. How about using the content as the key wicket:messagekeyLabel/wicket:message?

Re: [Wicket-user] What is autoadd()?

2005-10-16 Thread Arto Arffman
case? How does your markup andyour java code look like?JuergenOn 10/16/05, Arto Arffman [EMAIL PROTECTED] wrote: That method causes some components to be rendered twice when there is a wicket:head in the page template. There is also a getter, Component.isAuto(), but it is package protected, so

Re: [Wicket-user] What is autoadd()?

2005-10-16 Thread Arto Arffman
I'll test it, but .. a PAGE template (not sure you meant it like that) (excludinginherited page markup as well) must not have a wicket:head tag. Thepurpose of wicket:head is for components to contribute to the page's head tag. Pages don't need that. They simply add directly to head Just

Re: [Wicket-user] What is autoadd()?

2005-10-16 Thread Arto Arffman
to provide a stripped down example to me (may be even a unit test like the ones weare using in src/test/wicket/markup/parser/filter/*..*9. That wouldmake my/our life much easier. Thanks.JuergenOn 10/16/05, Arto Arffman [EMAIL PROTECTED] wrote: I'll test it, but ... ... a PAGE template (not sure you

[Wicket-user] Inline Panels

2005-10-08 Thread Arto Arffman
If I understand it right, Panels are the easiest way to include conditional blocks of html into a page. Well, I hate to make a html template for each Panel separately. It would be nice if you could define the template inside the page's template, like this: html some normal stuff span

Re: [Wicket-user] how to keep scroll position

2005-10-08 Thread Arto Arffman
entered as a bug. Isubmitted one just now.Eelco On 10/8/05, Arto Arffman [EMAIL PROTECTED] wrote: hi, here is something back, a component that keeps the scroll position. Place it inside a form and scroll position is restored after a submit. I would appreciate any comments, implementation issues

Re: [Wicket-user] Inline Panels

2005-10-08 Thread Arto Arffman
WebMarkupContainer basically is equall to an open-body-close tag likespan wicket:id=panel1.../spanAnd anything you like can go inside.JuergenOn 10/8/05, Arto Arffman [EMAIL PROTECTED] wrote: If I understand it right, Panels are the easiest way to include conditional blocks of html into a page. Well, I

Re: [Wicket-user] Inline Panels

2005-10-08 Thread Arto Arffman
that with all components.JuergenOn 10/8/05, Arto Arffman [EMAIL PROTECTED] wrote: The purpose is to conditionally select one block of html from two or more blocks to be rendered. Is this possible with WebMarkupContainer? 2005/10/8, Juergen Donnerstag [EMAIL PROTECTED]: WebMarkupContainer are what

Re: [Wicket-user] Inline Panels

2005-10-08 Thread Arto Arffman
Thats the opposite I was aiming for: less html-files. 2005/10/8, Juergen Donnerstag [EMAIL PROTECTED]: If this kind of inline definition is too hard to implement could it at least be possible to create a component which can choose the template from a set of wicket:panel's.components support what

Re: [Wicket-user] Inline Panels

2005-10-08 Thread Arto Arffman
Well, I dont want anything messy :) Hope, that one day I know enough of the internals, so that I can make suggestions that makes more sense. Now the messy thing for the web designer is that html will get into separate, small html-files. I was trying to figure how that could be enhanced.

Re: [Wicket-user] Inline Panels

2005-10-08 Thread Arto Arffman
know how difficult that (panels in same markup) is. You're not the first to ask though. Juergen, if you're reading with us, what do you think of this RFE? Do you think it is doable or is it going to be a lot of work? I can see it can be convenient for several cases. Eelco On 10/8/05, Arto Arffman

Re: [Wicket-user] Re: Howto generate additional inputs to existing ListView of inpu ts.. ..

2005-10-03 Thread Arto Arffman
I did something similar with DataView. I used hidden row which was shown when user clicked the button (copy in my case). Well, it was quite an effort but it worked like a toilet of a train. _javascript_s were the hardest part for me. 2005/10/3, Johan Compagner [EMAIL PROTECTED]: if you want a