Re: AutoComplete textfield ignores visible property within hierarchy.

2009-09-30 Thread Ann Baert
I already opened a jira issue: https://issues.apache.org/jira/browse/WICKET-2497 igor.vaynberg wrote: please open a jira issue. -igor On Tue, Sep 29, 2009 at 7:59 AM, Ann Baert ann.ba...@tvh.be wrote: When writing an autocomplete textfield on a form that is first visible, and after

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-30 Thread Carlo Camerino
hi, actually i'm able to make it work some how using this setting getPageSettings().setAutomaticMultiWindowSupport(true); it creates a new page map everytime i open a page in a new tab or new window. however in the wicket documentation it says that it is enabled by default. but upon checking it

Wicket Throwing Out Of Memory Errors When AutomaticMultipleWindowSupport is set to true

2009-09-30 Thread Carlo Camerino
Hi, I'm having problems . I think there is a bug in wicket in which the memory usage zooms up exponentially when i copy and paste a url into a new tab continuously. This only happens when I explicity set automaticmultiplewindowsupport to true. It seems to happen due to multiple page maps for the

Re: RadioChoice and Ajax to display a panel of dropdowns

2009-09-30 Thread Per Newgro
Hey Jeff, did you override this? /** * Override this method if you want onBeforeRender to be called even when your component is not * visible. default this returns false. * * @return boolean, if true then onBeforeRender is called even for none visible components, *

Re: Preventing Copy Pasting URL's In Same Browser Session

2009-09-30 Thread Igor Vaynberg
the javadoc in the later versions mentions that it is enabled by default, however if you are using the default secondlevel caching page store it will be disabled... -igor On Tue, Sep 29, 2009 at 11:10 PM, Carlo Camerino carlo.camer...@gmail.com wrote: hi, actually i'm able to make it work

Re: Wicket Throwing Out Of Memory Errors When AutomaticMultipleWindowSupport is set to true

2009-09-30 Thread Igor Vaynberg
try on 1.4.1 and see if you get the same result. -igor On Tue, Sep 29, 2009 at 11:16 PM, Carlo Camerino car...@sxchange.com.ph wrote: Hi, I'm having problems . I think there is a bug in wicket in which the memory usage zooms up exponentially when i copy and paste a url into a new tab

Re: wicketstuff-dojo with wicket 1.4 compatibility

2009-09-30 Thread 新希望软件 -- 俞宏伟
I have same problem. my project has used wicketstuff-dojo component, now I want to upgrade wicket from 1.3.7 to 1.4.1, all test well but wicketstuff-dojo's component throw exception. do wicketstuff-dojo project stop develop? On Mon, Sep 28, 2009 at 14:22, Elena Stoll elenast...@alice-dsl.net

Re: wicketstuff-dojo with wicket 1.4 compatibility

2009-09-30 Thread 新希望软件 -- 俞宏伟
I find lastest code url is : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1

Re: Complicated workflows

2009-09-30 Thread Phil Housley
2009/9/30 Igor Vaynberg igor.vaynb...@gmail.com: there is really no point in having your tasks be components. why not simply repeatingview rv=.. for (task t:tasks) {  if (t.hasUIComponent()) {     rv.add(t.getUIComponent());  } } -igor Although only one task panel is ever drawn at the

Re: Complicated workflows

2009-09-30 Thread Phil Housley
2009/9/30 Randy S. randypo...@gmail.com: Have you thought about using Spring Web Flow for this? I'm not a SWF expert, but it sounds like something well-tailored to your needs. For example, a flow can have steps that don't have UIs. Our group at work is looking into Wicket SWF integration. I

Re: better way to strip wicket markup / tags per page?

2009-09-30 Thread Antoine van Wel
Craig: didn't consider that. So, no clean solution seems to be possible. Pedro: yes I was talking about having the wicket-tags turned on for the application except for a certain (xml) page, since it is causing parse errors in the xml there. Antoine On Tue, Sep 29, 2009 at 9:23 PM, Craig

Consequences of sharing ajax request target by attribute or by static determination

2009-09-30 Thread Per Newgro
Hi *, i would like to know if there hidden consequences if i exchange sharing by attribute through sharing by static determination. To couple my event-components with it's higher ranking components i use a listener based approach. Each parent adds a listener to the child can be involved if an

Re: wicketstuff-dojo with wicket 1.4 compatibility

2009-09-30 Thread Martin Grigorov
Feel free to upgrade it to 1.4. It should be easy. Just check out the code, follow the instructions at http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html and if you wish donate your work back to community. El mié, 30-09-2009 a las 14:37 +0800, 新希望软件 -- 俞宏伟 escribió: I find lastest code

RE: Where can I find this Wicket application?

2009-09-30 Thread Magnus Haraldsen Amundsen
http://svn.carmanconsulting.com/public/wicket-advanced/ doesn't work. -Original Message- From: Maarten Bosteels [mailto:mbosteels@gmail.com] Sent: 27. september 2009 19:58 To: users@wicket.apache.org Subject: Re: Where can I find this Wicket application?

Show Validation Errors

2009-09-30 Thread Peter Arnulf Lustig
Hi, I am trying to show validation errors on a page. Somehow it won't function! But I don't understand why? I mean I am using the right Validation class... Why don't wicket show any error when the user does a wrong input? Thanks! import java.util.Date; import

Re: Show Validation Errors

2009-09-30 Thread Matthias Keller
Hi Peter Try adding a FeedbackPanel to your page Without that, wicket doesn't even know where and how to display the messages. Matt Peter Arnulf Lustig wrote: Hi, I am trying to show validation errors on a page. Somehow it won't function! But I don't understand why? I mean I am using

AW: Show Validation Errors

2009-09-30 Thread Peter Arnulf Lustig
Thank you! That does it! - Ursprüngliche Mail Von: Matthias Keller matthias.kel...@ergon.ch An: users@wicket.apache.org Gesendet: Mittwoch, den 30. September 2009, 10:23:11 Uhr Betreff: Re: Show Validation Errors Hi Peter Try adding a FeedbackPanel to your page Without that,

Re: Bookmarkable page with a form. The URL switches from the mounted one into an unfriendly one.

2009-09-30 Thread quinya
I'm having a similar, but different problem. I have a PasswordResetPage for reseting a user password. I am using Spring Security and need to link to it from a login.jsp. So in my WebApplication class I have: mountBookmarkablePage(ConstantsCommon.PASSWORD_RESET_PATH, PasswordResetPage.class);

How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
Hi, I'd like to create a delete link where you can delete a row in a datagrid. But when you click on the delete link, the delete label should change and a warning occurs: Do you really want to delete xyz. After the second click it finally deletes the content. How can I achieve that? Could you

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
In addition: my specific problem is, that after clicking on a link which is generated in the datagrid, I am not able to manipulate other components!? How is this possible? - Ursprüngliche Mail Von: Peter Arnulf Lustig u...@yahoo.de An: users@wicket.apache.org Gesendet: Mittwoch,

Re: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Matthias Keller
Hi Peter For that we usually add an AttributeModifier which adds something like that to the onclick javascript event: if (!confirm('Do you really want to delete this entry')) return false; Matt Peter Arnulf Lustig wrote: Hi, I'd like to create a delete link where you can delete a row in a

Re: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Ernesto Reinaldo Barreiro
What about replacing the link. e.g. via AJAX, with a new one containing the Do you really want to delete xyz warning... that once clicked actually deletes your entry... and refreshes the datagrid. You could even use the same link and have a flag that says userWantsToDeleteRow and use it to

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
Hi Ernesto, I don't get it: How can I change the Label-Text? When I try to change the Model of the component Label, nothing happens. The page reloads and the Label has the old Text (not the new one which is meant to be changed) - Ursprüngliche Mail Von: Ernesto Reinaldo Barreiro

Re: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Linda van der Pal
I created a deteletButton as follows. I have a DeleteButton innerclass, and a method that adds this button to the panel that is shown in the table. private class DeleteButton extends Button { private static final long serialVersionUID = 1L; public DeleteButton(final String id,

Re: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Ernesto Reinaldo Barreiro
Use an AJAX link inside a panel that you can replace via AJAX? Once the link is clicked it will go to back to the page set the flag I'm on delete mode and replace itself. All you have to do is has a model that says if(onDeleteMode) return Do you really want to delete XYZ? else { return

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
Thank you! Your solution is really nice. It functions well! I have a problem which the datagrid. After removing a row in the database it throws an exception, because wicket is unable to populate an item (I assume the deleted one) How can I tell wicket to reload the datagrid because something

Rendered html to string

2009-09-30 Thread Luca Provenzani
Hi all, does someone know how to render a wicket component into a String? Thanks Luca

AW: Rendered html to string

2009-09-30 Thread Peter Arnulf Lustig
getMarkupStream().toString(); maybe? - Ursprüngliche Mail Von: Luca Provenzani eufor...@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr Betreff: Rendered html to string Hi all, does someone know how to render a wicket component into a

Re: Rendered html to string

2009-09-30 Thread Martin Makundi
http://mail-archives.apache.org/mod_mbox/wicket-users/200811.mbox/%3c5de41c7d0811050222r5948a447r5fd68b5cefac5...@mail.gmail.com%3e 2009/9/30 Peter Arnulf Lustig u...@yahoo.de: getMarkupStream().toString(); maybe? - Ursprüngliche Mail Von: Luca Provenzani eufor...@gmail.com

Re: better way to strip wicket markup / tags per page?

2009-09-30 Thread Pedro Santos
no clean solution seems to be possible. Inheritance seems to be clean On Wed, Sep 30, 2009 at 4:03 AM, Antoine van Wel antoine.van@gmail.comwrote: Craig: didn't consider that. So, no clean solution seems to be possible. Pedro: yes I was talking about having the wicket-tags turned on for

exclude wicket:panel

2009-09-30 Thread Martin Letendre
Don't display the wicket:panel tag 1- I am using a wicket panel to create a component here is the code. wicket:panel div ... some code /div /wicket:panel 2- The call to the component is div wicket:id=actionMenuOneactions/div 3- The generated HTML by wicket is div

Re: Rendered html to string

2009-09-30 Thread Luca Provenzani
oops, yes, you are right! :-) 2009/9/30 Peter Arnulf Lustig u...@yahoo.de getMarkupStream().toString(); maybe? - Ursprüngliche Mail Von: Luca Provenzani eufor...@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr Betreff:

Re: exclude wicket:panel

2009-09-30 Thread Alex Objelean
In your Application class add the following line: getMarkupSettings().setStripWicketTags(true); Martin Letendre wrote: Don't display the wicket:panel tag 1- I am using a wicket panel to create a component here is the code. wicket:panel div ... some code /div

Wrong path to wicket-event.js resulting in 404 after calling wicket from javascript

2009-09-30 Thread rozkovec . wl
Hallo, I came across strange problem I do not know whether it is mine fault or wicket's problem. On a page, there is a widget, which list news records. Each record has an edit and delete link. Edit link opens new dialog in jquery's thickbox window, which is practically IFrame. The code for

Re: Rendered html to string

2009-09-30 Thread Martin Sachs
if you want just one component in the hierarchie to be rendered to a String you have to make a Behaviour and use the StringResponse-class to replace the hole Response in beforeRender for this component. in onRendered you can add the string again to the hole Response. We do this for caching HTML

Re: Rendered html to string

2009-09-30 Thread Luca Provenzani
it seems to be interesting for us... can you send a code example? 2009/9/30 Martin Sachs sachs.mar...@gmail.com if you want just one component in the hierarchie to be rendered to a String you have to make a Behaviour and use the StringResponse-class to replace the hole Response in

Re: exclude wicket:panel

2009-09-30 Thread Pedro Santos
maybe you want have an custom WicketNamespaceHandler On Wed, Sep 30, 2009 at 8:01 AM, Alex Objelean alex_objel...@yahoo.comwrote: In your Application class add the following line: getMarkupSettings().setStripWicketTags(true); Martin Letendre wrote: Don't display the wicket:panel tag

Re: AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Linda van der Pal
I used this with a AjaxFallbackDefaultDataTable and then I didn't have to tell it that the DB had changed. Peter Arnulf Lustig wrote: Thank you! Your solution is really nice. It functions well! I have a problem which the datagrid. After removing a row in the database it throws an exception,

AW: AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
could you tell me how to use this? I have a Dataview like this: dataView = new DataViewAdministrator(benutzer, new AdministratorDataProvider()) { } thanks! - Ursprüngliche Mail Von: Linda van der Pal lvd...@heritageagenturen.nl An: users@wicket.apache.org Gesendet: Mittwoch, den

Re: exclude wicket:panel

2009-09-30 Thread Martin Letendre
My component is ment to be distribute to a third party. I have no access to the Application class. Is there a way to apply the same behavior to a single component... On Wed, Sep 30, 2009 at 7:01 AM, Alex Objelean alex_objel...@yahoo.comwrote: In your Application class add the following line:

Re: exclude wicket:panel

2009-09-30 Thread Pedro Santos
take a look at how GMap2 component resolve that problem: /** * @see org.apache.wicket.MarkupContainer#onRender(org.apache.wicket.markup.MarkupStream) */ @Override protected void onRender(MarkupStream markupStream) { super.onRender(markupStream); if

Re: Consequences of sharing ajax request target by attribute or by static determination

2009-09-30 Thread Pedro Santos
I think ajax fallback strategy is a good idea: class AjaxFallbackEvent{ void handleSomething( target){ // user implementations test for target == null } } On Wed, Sep 30, 2009 at 4:38 AM, Per Newgro per.new...@gmx.ch wrote: Hi *, i would like to know if there hidden consequences if i

Re: AW: AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Linda van der Pal
table = new AjaxFallbackDefaultDataTable(datatable, createColumns(), contentProvider, 10); @Override protected IColumn?[] createColumns() { IColumn?[] columns = new IColumn[3]; columns[0] = createActionsColumn(); columns[1] = new PropertyColumnString(new

Re: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread rmattler
Another approach would be to created a model window to appear when the delete link is clicked. With the message Are you sure you want to delete xxx? If you select yes, the row is deleted then ajax is used to refresh the dataview. Let me know if you want to use this approach and I will post

Component initModel() order (design issue?)

2009-09-30 Thread Edmund Urbani
Hi, I was just trying to create a component of my own which - in some of my pages - is created without a model. In the initModel() method I would then call super.initModel() and wrap the resulting model for use in a child component. The problem is the initialization order: The child model's

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
How do you achieve, that the dataview is refreshed after clicking delete? - Ursprüngliche Mail Von: rmattler robertmatt...@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 30. September 2009, 14:51:19 Uhr Betreff: Re: How would you realize a delete-Link in a datagrid row?

Re: exclude wicket:panel

2009-09-30 Thread Jeremy Thomerson
If you're distributing it to third parties, it's really their problem - in that this will be universal for all components in their app. If they don't want the tags there, they will strip them (which is default in production). -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 30,

RE: RadioChoice and Ajax to display a panel of dropdowns

2009-09-30 Thread Jeffrey Schneller
I did not override the method.I just did and it is still not working. Here is what I have: Also, where would one find this type of information. I don't think the online example show it and blindly guessing methods to look at in javadoc doesn't seem efficient. HTML: tr

[tinymce] problem adding/removing TinyMceBehavior dinamically

2009-09-30 Thread Daniele Dellafiore
Hi. I have a problem with this example code: tinyMceBehavior = new TinyMceBehavior(); PropertyModelBoolean richProperty = new PropertyModel(model, rich); add(new AjaxCheckBox(switchRte, richProperty) { @Override protected void onUpdate(AjaxRequestTarget

Re: TinyMCE in an Ajax loaded panel

2009-09-30 Thread Daniele Dellafiore
On Thu, Nov 27, 2008 at 5:57 PM, Martijn Lindhout mlindh...@jointeffort.nl wrote: Hi all, I searched nabble, but couldn't find any recent posts that brought me a solution to this problem: I have a page with two panels, a master/detail setup. The master has a list of items, the detail a

Re: Component initModel() order (design issue?)

2009-09-30 Thread Pedro Santos
The child model's initModel() gets called first There are no especial ordering programing to initModels calls. Basically they are called by public final IModel? getDefaultModel() { IModel? model = getModelImpl(); // If model is null if (model == null) {

Re: Wrong path to wicket-event.js resulting in 404 after calling wicket from javascript

2009-09-30 Thread Vladimir K
I believe the code that causes the problem is # @Override # protected CharSequence getURL() # { # return super.getURL() + String.format(TB_iframe=trueheight=%dwidth=%dmodal=false, getHeight(), getWidth()); # } IFAIK wicket encodes URL parameters

What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Petr Fejfar
Hi all, I have an enum type e.g. public enum MapType UNDEFINED,ROADMAP,MOBILE,SATELITE,TERRAIN,HYBRID; public static String toKeyword(MapType mapType) { switch (mapType) { case ROADMAP: return roadmap; ... public static MapType

Re: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread rmattler
Sorry spelling error not model window but modal window. rmattler wrote: Another approach would be to created a model window to appear when the delete link is clicked. With the message Are you sure you want to delete xxx? If you select yes, the row is deleted then ajax is used to

AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread Peter Arnulf Lustig
yes I thought it... :) How do you achieve that the dataview is refreshed after deletion of a row? - Ursprüngliche Mail Von: rmattler robertmatt...@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 30. September 2009, 16:19:11 Uhr Betreff: Re: How would you realize a

Re: What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Matthias Keller
Hi Petr We use a custom EnumConverter for that. It can be added to the application like so: @Override protected IConverterLocator newConverterLocator () { ConverterLocator converterLocator = (ConverterLocator) super.newConverterLocator();

Re: Complicated workflows

2009-09-30 Thread Vladimir K
I tried JBoss JBPM and it worked for complex compound workflows. It also had a eclipse designer plugin that could save the workflow image and provided a class that visualised the current workflow state. It had persistence module that was based on Hibernate. I had just to implement simple UI to

Re: What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Pedro Santos
I don't know if you need wicket api to reach your objective: public enum MapType { UNDEFINED, ROADMAP, MOBILE, SATELITE, TERRAIN, HYBRID; public String toKeyword() { return toString().toLowerCase(); } public String verbose() {

Re: What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Ernesto Reinaldo Barreiro
On my applications I add an IStringResourceLoader that looks for resources at packages where beans are defined... So, all I do is register a key like xxx.mypakage.MapType:MOBILE and then this IStringResourceLoader will look for a resource file namedBeans.properties at package xxx.mypakage and

Re: What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Ernesto Reinaldo Barreiro
Sorry, I should has said Igor and Juergen... look for org.apache.wicket.resource.loader.PackageStringResourceLoader Ernesto On Wed, Sep 30, 2009 at 4:37 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: On my applications I add an IStringResourceLoader that looks for resources at

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Paul Huang
igor.vaynberg wrote: form { onsubmit() { try { users.persist(getmodelobject()); } catch (usernamealreadyexistsexception e) { error(error.username.exists); } } } -igor Thanks, it works like a charm. I did not know I could show an

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Nicolas Melendez
why do you use an exception for user already exits?Don`t you think that return true/false, could be better? i said that, because if the application start growing, you will have lot of exceptions class. thanks, NM On Wed, Sep 30, 2009 at 4:43 PM, Paul Huang paulhuan...@gmail.com wrote:

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Paul Huang
The AbstractValidator approach is fine, or you can do it the shorter way the Igor showed. Either way, when the page that has the username is submitted, you're going to have to write that record to the database, even if you don't have all the info. The way you wrote the question, I presume

Re: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-09-30 Thread bgooren
It's not possible to add TinyMCE dynamically due to the way TinyMCE works. What you can do however, is pre-load TinyMCE, and dynamically enable/disable it on a component. Daniele Dellafiore wrote: Hi. I have a problem with this example code: tinyMceBehavior = new TinyMceBehavior();

Re: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-09-30 Thread nino martinez wael
Actually AFAIK the resources just need to be on path, then you can pretty much do whatever you want. Could be what your definition of preloading are :) I have a panel that are added by ajax so I had to make sure the resources used by that panel always where on the containing page. regards

Re: Wrong path to wicket-event.js resulting in 404 after calling wicket from javascript

2009-09-30 Thread rozkovec . wl
I have tried removing the override completely, but it did not help. I just would like to know, whether I am doing something obviously stupid, or if I should start debugging deeper or make a quickstart. Vit I believe the code that causes the problem is # @Override #

Re: AW: How would you realize a delete-Link in a datagrid row?

2009-09-30 Thread rmattler
Wrap the dataview in a WebMarkupContainer . 1) Create a WebMarkupContainer 2) Create your data view 3) Add the dataview into the wmc 4) Don't forget to set .setOutputMarkupId(true); on the dataview 5) On the return of the Modal window refresh the target I.E.

Re: User name validation - how to check database to find if a name has already been taken?

2009-09-30 Thread Igor Vaynberg
actually you got it completely wrong. especially as your project, and the number of devs who work on it, grows exceptions are a much more scalable way of handling errors. 1) the compiler tells you exactly what the exceptions are right off the bat 2) exception class name gives you a clue as to

Re: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-09-30 Thread bgooren
Well, that's what I meant with preloading. You cannot use TinyMCE if you're loading its javascripts from your ajax request. If the TinyMCE scripts are loaded from the containing page, then it will work (as you say). nino martinez wael wrote: Actually AFAIK the resources just need to be on

Newbie question - HTML Labels and IDs

2009-09-30 Thread Phillip Sacre
Hi, I've been using Wicket now for a couple of weeks and am getting on pretty well with it. I still run into issues occasionally though, and I'd like to know what the recommended way of solving this one is! I have the following HTML snippet in a component: tr td label

Re: Newbie question - HTML Labels and IDs

2009-09-30 Thread Igor Vaynberg
see FormComponentLabel and SimpleFormComponentLabel -igor On Wed, Sep 30, 2009 at 8:34 AM, Phillip Sacre psa...@clifford-thames.com wrote: Hi, I've been using Wicket now for a couple of weeks and am getting on pretty well with it. I still run into issues occasionally though, and I'd like to

RE: Newbie question - HTML Labels and IDs

2009-09-30 Thread Phillip Sacre
That's great, thanks - I knew there must be a simple way of doing it! Phill -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: 30 September 2009 16:36 To: users@wicket.apache.org Subject: Re: Newbie question - HTML Labels and IDs see FormComponentLabel and

Re: What is preferred/recommended way to localize texts of non-visual components

2009-09-30 Thread Petr Fejfar
On Wed, Sep 30, 2009 at 4:40 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Thank you for the prompt reply to all of you. for org.apache.wicket.resource.loader.PackageStringResourceLoader Currently I used iteration through getStringResourceLoaders(), later on I'd like to implement

1 EAR, 2 WARs causes Spring Context Problem

2009-09-30 Thread Steve Hiller
Hi All, I'm not sure if this is a Wicket, Spring or WebSphere issue or some combination of the 3. General Setup: WebSphere 6.1, wicket 1.3.7, Spring 2.5.6 Specific Setup: 1 EAR contains 2 WARs, call them WAR1 and WAR2. Each WAR uses the Wicket Spring frameworks. The EAR is deployed to

Re: [tinymce] problem adding/removing TinyMceBehavior dinamically

2009-09-30 Thread Daniele Dellafiore
that is what I do. enable disable for me means add/remove to/from a component, while the javascript is loaded as the page is loaded. but, after removing the behavior, the save generate that error. or maybe you mean something different with enable/disable. On Wed, Sep 30, 2009 at 4:50 PM,

Re: Component initModel() order (design issue?)

2009-09-30 Thread Edmund Urbani
You're right, getDefaultModel ensures initialization. I should have suggested that instead of getModel (which is not available in the component class anymore in 1.4.x). However, I did not want to override the initModel() method (and copy most of its code) just for that. So now I solved it by

Re: Component initModel() order (design issue?)

2009-09-30 Thread Igor Vaynberg
why not class mytextefield extends panel { public mytextfield { add(new textfield() { initmodel() { return mytextfield.this.getdefaultmodel(); }}); } } since this is essentially what you want to do - have textfield use the same model as the panel. -igor On Wed, Sep 30, 2009 at 9:47

Re: RadioChoice and Ajax to display a panel of dropdowns

2009-09-30 Thread Per Newgro
Only a shot in the dark, but is typeBox.setOutputMarkupPlaceholderTag(true) helping? You could use it instead of setOutputMarkupId(true), because its done there to. Otherwise i would have to create a testcase for this situation. There are different places to get informations: - search this

Re: Wicket in Italy

2009-09-30 Thread Daniele Dellafiore
On Wed, Sep 23, 2009 at 7:49 PM, Giovanni pino_o...@yahoo.com wrote: Hi, are there any Wicketers living in Turin, Italy? Hi, Milano :) -- Daniele Dellafiore http://blog.ildella.net http://twitter.com/ildella - To

Re: 1 EAR, 2 WARs causes Spring Context Problem

2009-09-30 Thread Martin Sachs
Hi, you have to user a classloader per Webapp, so the InjectorHolder has for each webapp the correct Springcontext. (injectorholder uses a static variable) martin Steve Hiller schrieb: Hi All, I'm not sure if this is a Wicket, Spring or WebSphere issue or some combination of the 3.

Re: AjaxPagingNavigation

2009-09-30 Thread Douglas Ferguson
That's my point. If your url is getting replaced, then it isn't using ajax. It is redrawing the page. D/ On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote: I'm using the AjaxPagingNavigation component and it works well, but when I click on one of the links, my url is replaced with

Re: AjaxPagingNavigation

2009-09-30 Thread Pedro Santos
Ok, it is a bug. Could you send us some code? I'm curios to see the html code generated to link on your page. On Wed, Sep 30, 2009 at 3:59 PM, Douglas Ferguson doug...@douglasferguson.us wrote: That's my point. If your url is getting replaced, then it isn't using ajax. It is redrawing the

RE: RadioChoice and Ajax to display a panel of dropdowns

2009-09-30 Thread Jeffrey Schneller
Adding the call to that method seemed to solve the problem. The places you mentioned are the usual places to look for information. However I searched the list, read the wiki, checked the examples, and looked through some books. I also tried to google what I was trying to do. It just seemed

Re: RadioChoice and Ajax to display a panel of dropdowns

2009-09-30 Thread Per Newgro
The books you mentioned are the places to look at. If i google wicket component not visible the third entry brings up the solution. And in the list this question was answered quite often. But it surely depends on search phrase. But now it's answered again. At least here you will get almost

Bookmarkable link to parent frame from a Modal window?

2009-09-30 Thread Ryan McKinley
Hi- How do I make a bookmarkable link to the parent window from a Modal window? I added a bookmarkable link and a target=_top, this functionally works good, but it adds a pagemap parameter to the URL: http://localhost:8080/my/page/wicket:pageMapName/modal-dialog-pagemap How can I remove the

Re: Default implementation of IChainingModel

2009-09-30 Thread Scott Swank
I searched the JIRA for IChainingModel and didn't get any hits. Did anyone create a JIRA issue? Here's an implementation of mine. public class BaseChainingModel implements IChainingModel { private static final long serialVersionUID = 1L; private Object target; public

Re: Default implementation of IChainingModel

2009-09-30 Thread Jeremy Thomerson
I don't think one was ever created and it fell off my radar. If you create one, can you post yours and post a link to it back on this thread? Thanks! -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 30, 2009 at 4:45 PM, Scott Swank scott.sw...@gmail.com wrote: I searched the

Re: Default implementation of IChainingModel

2009-09-30 Thread Scott Swank
https://issues.apache.org/jira/browse/WICKET-2498 We're still on Wicket 1.3.5, so I put in a 1 hour estimate for someone to add generic typing. Scott On Wed, Sep 30, 2009 at 3:58 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I don't think one was ever created and it fell off my radar.

Re: Complicated workflows

2009-09-30 Thread Randy S.
We are also trying to find the right balance of how much we move to declarative. It will depend on how well we get Web Flow to fit in. With Wicket being Controller-less and wanting to launch right into the home page, Web Flow is a clear candidate to do initial data load and logic to determine the

Re: AjaxPagingNavigation

2009-09-30 Thread Douglas Ferguson
Well.. I have a class that overrides AjaxPagingNavigation I just add that to my page. Class markup below: public class BSPagingNavigator extends AjaxPagingNavigator { private static final long serialVersionUID = -1l; IPageable pageable; public BSPagingNavigator(String id,

Re: AjaxPagingNavigation

2009-09-30 Thread Douglas Ferguson
I just realized that this might be what you wanted to know.. a class=font-xsmall title=Go to page 2 wicket:id=pageLink href=?wicket:interface=:3:pagination:navigation: 1:pageLink::ILinkListener:: span class=pagin-number wicket:id=pageNumber2/span /a On Sep 30, 2009, at 2:07 PM, Pedro Santos

is it possible to somehow create a url to return the contents of a panel

2009-09-30 Thread Joe Hudson
Hi - hopefully I can explain this clearly... I understand that I can use the AjaxEventBehavior to refresh the contents of any components that I have on the screen or add new components. I am trying to use a tooltip to display additional details for grid data. I plan to use a tooltip library

Re: is it possible to somehow create a url to return the contents of a panel

2009-09-30 Thread Jeremy Thomerson
search this list for how to generate emails with wicket. there are a bunch of posts of that sort. that will teach you how to render a component to a string. this could be used to return the contents. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 30, 2009 at 8:10 PM, Joe

RE: Complicated workflows

2009-09-30 Thread Chris Colman
Also, because we run in very large clusters, redirects are out of the question due to the potential that the second request hits a different server before HTTP session has been properly persisted/shared. Can't you set up server affinity for the cluster to avoid that from occurring?

Re: RE: Complicated workflows

2009-09-30 Thread Randy S.
We use server affinity but you can't guarantee same server and I can't go in with a 100% plan. We have had funny routing in some cases where requests from the same user even bounce from one data center to another... and back. We've done a lot of work to prevent these things but in the end it's