Re: Wicket portlets on LIferay

2007-08-08 Thread Miso
Thx for help, but this doesn't sort it out. A tried: code ... protected void init() { getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); super.init(); } ... /code and also code ... protected void init() {

Re: {wicket 1.3 Beta 2} Adding panel via ajax...

2007-08-08 Thread Nino Saturnino Martinez Vazquez Wael
Of course:) This goes wrong: What I would like from below was for it to replace the PhoneSearchPanel with the next step (gotoPage) Now I have to use panel since im using the tabs from extension, originally I created this with pages.. I've though of having a container(which also would be a

Re: help script.aculo.us wicket

2007-08-08 Thread Nino Saturnino Martinez Vazquez Wael
look at the wiki? http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-scriptaculous anita nichols wrote: I download the jar, but how do I use script.aculo.us on wicket? Thanks, Anita - To unsubscribe,

Re: How to use form method=get?

2007-08-08 Thread thomaslarsson
Hi, being new to wicket I may be completely wrong about this but my thoughts are these. It cannot be done. When constructing a form in wicket, the action attribute value contains the url to the destination page including the wicket component navigation information, i.e.

Re: WicketTester vs Component.error()

2007-08-08 Thread Gabor Szokoli
On 8/7/07, Igor Vaynberg [EMAIL PROTECTED] wrote: in 1.2 you cannot call error/info/etc from component's constructor because you havent added that component to the page yet. in 1.3 it just works. Indeed. I was under the false impression that this function worked on regular deployment, but the

Re: resource reference vs resource

2007-08-08 Thread Kent Tong
Matej Knopp matej.knopp at gmail.com writes: Yeah, ResourceReference is like global resource factory. That is for resources that don't belong to any component/page (they can't touch any component instance while they are served). However, I don't understand why we should not just use static

Re: resource reference vs resource

2007-08-08 Thread Matej Knopp
I think it has more to do with the resource URL generation. The ResourceReference registers itself with application (using the Scope and name parameters). Then the application uses those information to generate resource reference url and looks up the resource reference on request. While regular

Re: Wicket portlets on LIferay

2007-08-08 Thread Martijn Dashorst
Now you are outside my area of expertise :-). I hope that Ate or Janne is reading this. Martijn On 8/8/07, Miso [EMAIL PROTECTED] wrote: Thx for help, but this doesn't sort it out. A tried: code ... protected void init() {

Re: Wicket portlets on LIferay

2007-08-08 Thread Martijn Dashorst
Also, make sure you are using the code from the experimental portlet branch, as that is the only part where the portlet support is built into (seeing you are using wicket 1.3 based code). Martijn On 8/8/07, Miso [EMAIL PROTECTED] wrote: Thx for help, but this doesn't sort it out. A tried:

Re: Wicket portlets on LIferay

2007-08-08 Thread Miso
Yes, I'm using this experimental portlet branch. -- View this message in context: http://www.nabble.com/Wicket-portlets-on-LIferay-tf4231110.html#a12051724 Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: Wicket portlets on LIferay

2007-08-08 Thread Miso
Me too :) -- View this message in context: http://www.nabble.com/Wicket-portlets-on-LIferay-tf4231110.html#a12051726 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED]

[Newbie] Add a yui calendar without a datetextfield

2007-08-08 Thread Per Newgro
Hi *, i'm new to the group and hope to find some answers here :-). I checked the examples and i got the idea to add a simple rendered yui calendar instance to a webpage. I don't want to add a datetextfield and then click the button beside it. Is this possible? And if so how? Thanks for your

wicketstuff-dojo questions and answers

2007-08-08 Thread Kirk Israel
I'm getting the feeling this list doesn't have a ton of patience for questions it considers dumb. (or related to a library rather than core wicket) So with the idea that I might have asked a few dumb things, and to show that I'm trying to resolve things on my own, I'm going to give my answers to

Re: [Newbie] Add a yui calendar without a datetextfield

2007-08-08 Thread Igor Vaynberg
i used to use the code below, but now i see eelco has removed AbstractCalendar :( so maybe he can tell us how we can accomplish it now package com.tbs.webapp.component; import java.util.Date; import java.util.Map; import org.apache.wicket.extensions.yui.calendar.AbstractCalendar; import

Re: [Newbie] Add a yui calendar without a datetextfield

2007-08-08 Thread Gerolf Seitz
i was looking for AbstractCalendar too... hm, maybe we could use this as an opportunity to provide an all around YUI Calendar integration with features like a standalone calendar, multiple calendars, calendars that open when a specific event occurs (eg. focus of textfield or click on an image).

Re: [Newbie] Add a yui calendar without a datetextfield

2007-08-08 Thread Eelco Hillenius
On 8/8/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i used to use the code below, but now i see eelco has removed AbstractCalendar :( Sorry. I put it back. The problem is that it isn't maintained well, as all the effort so far has been around the date picker. And since the datepicker is a

Re: [Newbie] Add a yui calendar without a datetextfield

2007-08-08 Thread Eelco Hillenius
On 8/8/07, Gerolf Seitz [EMAIL PROTECTED] wrote: i was looking for AbstractCalendar too... hm, maybe we could use this as an opportunity to provide an all around YUI Calendar integration with features like a standalone calendar, multiple calendars, calendars that open when a specific event

Re: [Newbie] Add a yui calendar without a datetextfield

2007-08-08 Thread Igor Vaynberg
can you not factor out the common thing into an abstract behavior and have abstractcalendar add that abstract behavior to itself and bridge config methods through itself? -igor On 8/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 8/8/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i used to

Re: wicketstuff-dojo questions and answers

2007-08-08 Thread Eelco Hillenius
I'm getting the feeling this list doesn't have a ton of patience for questions it considers dumb. I think it's more a matter of us being incredibly busy :) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: wicketstuff-dojo questions and answers

2007-08-08 Thread Igor Vaynberg
On 8/8/07, Kirk Israel [EMAIL PROTECTED] wrote: I'm getting the feeling this list doesn't have a ton of patience for questions it considers dumb. (or related to a library rather than core wicket) So with the idea that I might have asked a few dumb things, and to show that I'm trying to

Re: wicketstuff-dojo questions and answers

2007-08-08 Thread Eelco Hillenius
Q. a. Why isn't this stuff documented in more depth? b. And why don't people answer every stupid little question I have. A. a. Wicketstuff-Dojo is still a fairly young project with people who are currently more into coding it for more functionality than documenting. You're certainly welcome

Re: [Newbie] Add a yui calendar without a datetextfield

2007-08-08 Thread Eelco Hillenius
On 8/8/07, Igor Vaynberg [EMAIL PROTECTED] wrote: can you not factor out the common thing into an abstract behavior and have abstractcalendar add that abstract behavior to itself and bridge config methods through itself? Possibly. Core of the matter is that we should get rid of the code

Re: wicketstuff-dojo questions and answers

2007-08-08 Thread Kirk Israel
On 8/8/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 8/8/07, Kirk Israel [EMAIL PROTECTED] wrote: not the case. what you have to understand is that dojo stuff is a wicket-stuff project. created and maintained by developers that are not core developers. so it is really up to those developers to

Re: wicketstuff-dojo questions and answers

2007-08-08 Thread Igor Vaynberg
no they havent. i am not saying that this isnt the place to ask questions, i am saying dont expect to receive the same quality of service as you receive when asking questions about the core projects. also not that not everyone on this list uses that wicket-stuff project, so probably most people

Adding Ajax behavior on radio button

2007-08-08 Thread jq58
I have a 2 radio buttons that enable a dropdown and a text field respectively. Thus, depending on which radio button is selected, either the dropdown or the text field is enabled. Thus I need ajax capability when a radio button is selected, but evidently this can't happen in Wicket, because,

Re: mountBookmarkablePage and missing parameters - exception thrown

2007-08-08 Thread Dariusz Wojtas
I believe this syntax should be forgiving to the user. A framework should ease life where possible. What is the benefit of encoding URLs /param1/value1/param2/value2 over ?param1=value1param2=value2 ? The way it is shown to the users. Not for developers. And not only for search engine

Re: mountBookmarkablePage and missing parameters - exception thrown

2007-08-08 Thread Igor Vaynberg
On 8/8/07, Dariusz Wojtas [EMAIL PROTECTED] wrote: I want to use it in cases where the user may be given feeling that he is browsing some structure. well, my point was that structure is probably better represented by indexed coding strategy, which is forgiving. for example

Re: Adding Ajax behavior on radio button

2007-08-08 Thread jq58
This looks like it's 1.3, I'm on 1.2.6. Is it 1.3? Maybe AjaxEventBehavior(onchange) could help? It seems to be acting erratic though. I can get to the onEvent method on on button, but not the other. Have exactly the same onEvent method set up on both radio buttons (which are part of a

Motivation for having setRequired()

2007-08-08 Thread David Leangen
I guess this was already discussed at some point on the dev list, but I couldn't find the thread. I'm just very curious about the motivation of deprecating RequiredValidator in favour of the setRequired method. Knowing how clever you devs are, I'm sure there's a good reason, but at first glace,

Re: Motivation for having setRequired()

2007-08-08 Thread Igor Vaynberg
the whole refactor started because validators were doing a lot of repeitive stuff. for example lets say you have a textfield for a purchase quantity. you add three validators to it, requred, min1) and checkinventory. min(1) = { if (input==null) return; int i=typeconvertinput(); if (i1) error();

Re: How to put a form on each row within a DataView?

2007-08-08 Thread Igor Vaynberg
if you get duplicate id exception you are probably doing this populate(Item item) { Form f=new Form(f); add(form); } instead of the correct way: populate(Item item) { Form f=new Form(f); item.add(f); } -igor On 8/8/07, Mark van Leeuwen [EMAIL PROTECTED] wrote: Hi I have a table

Custom RequiredValidation message (was: Motivation for having setRequired())

2007-08-08 Thread David Leangen
Ok, thanks for the explanation, Igor. Maybe, then, you can tell me if there is a better way of doing what I'm doing... I'm working on customising the required messages for each field. For example, for a contact form, rather than writing: - A value for field 'Enter your email' is required - A

Re: Custom RequiredValidation message (was: Motivation for having setRequired())

2007-08-08 Thread David Leangen
Ok, that's much nicer than my way. Thank you! On Wed, 2007-08-08 at 20:00 -0700, Igor Vaynberg wrote: there are two ways you can do it. if you want total control you can put this in the .properties of the page with the form formid.email.Required=Enter your email

Re: Custom RequiredValidation message

2007-08-08 Thread Igor Vaynberg
afaik they .properties can be attached to any container with associated markup: so page/panel/border should work furthermore you can move them up to the application.properties which is a global file. -igor On 8/8/07, David Leangen [EMAIL PROTECTED] wrote: if you want total control you can

Re: Wicket-auth-roles 1.2.6 1.4 JVM

2007-08-08 Thread Erik van Oosten
Sorry Flavio, I don't have it anymore. The guy who actually did the the port left our company. I asked him to make a source jar as well, he didn't. Regards, Erik. Flavio schreef: Hi Erik, me again. Can you send me the source code? Thanks, Flavio. On 7/30/07, Flavio [EMAIL