Hi,
What should happen when AjaxRequest is issued and session has expired? In my app nothing happens at all.
/arto
(((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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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.
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
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
36 matches
Mail list logo