Re: Could someone please give me access to the wicketstuff wiki front page?

2009-10-13 Thread Pedro Santos
Hi Erik, it is just apply some label to your page, and it goes to wiki page. I add the 'component' one, hope that help. http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki On Tue, Oct 13, 2009 at 9:23 AM, Erik Post wrote: > Hi all, > > I created a page on the wicketstuff wiki for Inmethod's

Re: How to organize pages layout in real world applications

2009-10-13 Thread Pedro Santos
You can write the links on Nav Page with target for Client page, and no ajax is needed 2009/10/13 Zenberg Ding > Hi all, > > We'll plan to use wicket in our application for one enterprise's > information management system. > > the app's portal layout is someting like this: > >

Re: Showing Modal window within a wizard step

2009-10-09 Thread Pedro Santos
t; > > called from. You would think this is easy. But again I am stuck. > > > > > > Wizard > > > WizardStep ==> data show is read only with a modify link > > > which brings > > > the modal up. > > > Modal =

Re: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
riginal Message- > From: Pedro Santos [mailto:pedros...@gmail.com] > Sent: Thursday, October 08, 2009 12:38 PM > To: users@wicket.apache.org > Subject: Re: Showing Modal window within a wizard step > > I have built multiple large sites with jsp/servlets/javascript/ajax that &

Re: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
Ops, the modal window object on browser is created on 'document.body' level. Maybe you want to create an form to your ModifyPeoplePanel form components. On Thu, Oct 8, 2009 at 1:38 PM, Pedro Santos wrote: > I had an similar problem time ago. In my case a solve adding an submi

Re: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
both the wizard > step and the modal window. > > Regards, > > Mike > > > Passing a model between a page to modal window is the same as passing a > model between pages > > Ok. How do I use the same model? The model I have on step 1 if I > pass > > it into

Re: wicketstuff-progressbar and Wicket 1.4.1 problem

2009-10-08 Thread Pedro Santos
This project is using wicket 1.3 If there are no problem, wicket stuff devs can update the project dependencies. It is just update pom + refactoring or need to create an branch in svn? 2009/10/8 zabian > Hi there, > > I'm working on progress bar in my app, i'm trying to use > wicketstuff-progres

Re: Showing Modal window within a wizard step

2009-10-08 Thread Pedro Santos
Hi Jeffrey, the wiki example refers to an "chooserPanel", that is not the case of your "editorPanel". Simple use the same model on step 1 on your Modal window. On Wed, Oct 7, 2009 at 5:19 PM, Jeffrey Schneller < jeffrey.schnel...@envisa.com> wrote: > I am trying to show a modal window within a wi

Re: London Wicket Event, Saturday November 21st

2009-10-07 Thread Pedro Santos
Hi Nicolas, great idea On Wed, Oct 7, 2009 at 3:25 PM, Nicolas Melendez wrote: > When a Wicket Event in Buenos Aires, Argentina ?? We also have lots of > pubs > :) > > On Wed, Oct 7, 2009 at 5:21 PM, Ioannis Mavroukakis < > imavrouka...@gameaccount.com> wrote: > > > If my mate can't lend me his

Re: Feedback messages, input and label

2009-10-07 Thread Pedro Santos
Wicket is Sparta? http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg17023.html On Wed, Oct 7, 2009 at 3:05 PM, Tomás Rossi wrote: > Yeah, we'd need 300 programmers for that task ;) > > So you have to specify the label for each component in a property file? And > then you'd have a

Re: custom resolving of relative paths in head section of panel

2009-10-07 Thread Pedro Santos
This works well when the html is viewed as standalone. but in the context of the application i need the tag to be rendered as: I think that is the case to use: On Wed, Oct 7, 2009 at 9:55 AM, Ittay Dror wrote: > > > Ernesto Reinaldo Barreiro wrote: > > This solution will wor

Re: how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel

2009-10-07 Thread Pedro Santos
It is up to your object structure, use wicket api to get such object reference sounds bad On Wed, Oct 7, 2009 at 6:43 AM, wrote: > There are 3 tabs in a tabbedpanel, a TextField component is in the first > tab, and several form components in the other tabs for user input. I added a > save button

Re: custom resolving of relative paths in head section of panel

2009-10-07 Thread Pedro Santos
sorry, I miss that that tag will handle the 'href' attribute, the script tag has 'src' On Wed, Oct 7, 2009 at 8:58 AM, Ittay Dror wrote: > > > Pedro Santos wrote: > >> Hi Ittay, you can use wicket:link tag to resolve that path dynamically >> too. &

Re: custom resolving of relative paths in head section of panel

2009-10-07 Thread Pedro Santos
Hi Ittay, you can use wicket:link tag to resolve that path dynamically too. that way you keep the reference valid whe html is viewed as standalone, and in the context of the application On Wed, Oct 7, 2009 at 8:26 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > You could do

Re: Wicket LinkTree and Performance

2009-10-06 Thread Pedro Santos
No really something nice for user, I had this issue and combine extensible selectable and hierarchical data presentation with an accordion container for major data organization, and inners LinkTree components on it. http://www.dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/layout/accordion-contai

Re: table columns ajax update

2009-10-05 Thread Pedro Santos
wrote: > Pedro, > eagerly waiting for next version ;) > > thank you , > > -- > regards, > Vineet Semwal > > On Mon, Oct 5, 2009 at 4:25 AM, Pedro Santos wrote: > > > Hi Semwal, > > it has capability to update some columns. I update HomePage on > > ta

Re: How to list files by name in Eclipe's Package Explorer?

2009-10-05 Thread Pedro Santos
I hope that work: https://bugs.eclipse.org/bugs/show_bug.cgi?id=291387 On Mon, Oct 5, 2009 at 1:27 PM, David Chang wrote: > Thanks for your input! It seems to does the trick. The only thing I don't > like is that it shows all the levels of directories, which is unnecessary > and makes the Naviga

Re: WebSession Casting unable

2009-10-05 Thread Pedro Santos
your implementation needs to return an instance of SecurePageSession On Mon, Oct 5, 2009 at 8:43 AM, Peter Arnulf Lustig wrote: > I have overwritten the newSession Method: > > > > public class Application extends WebApplication { > >@Override >protected void init() { >super.init()

Re: Nav bar - stateful

2009-10-05 Thread Pedro Santos
You can keep page instances on session. On Mon, Oct 5, 2009 at 7:57 AM, Phillip Sacre wrote: > Hi > > Another newbie question, sorry! > > Is there any way of making a nav bar like this: > > >Browse | >Search > > > Stateful, i.e. only one instance of each page is created. So if y

Re: table columns ajax update

2009-10-04 Thread Pedro Santos
n ;) > > thank you ! > -- > regards, > Vineet Semwal > > > On Sun, Oct 4, 2009 at 3:57 AM, Pedro Santos wrote: > > > Hi Semwal, I'm currently working on Table class design to turn simple > this > > kind of extension. > > > > On Sat, Oct 3, 2

Re: table columns ajax update

2009-10-03 Thread Pedro Santos
Hi Semwal, I'm currently working on Table class design to turn simple this kind of extension. On Sat, Oct 3, 2009 at 10:38 AM, vineet semwal wrote: > can i update some columns in wicket-stuff table with ajax timer ? > i have seen wicket-stuff table example but can't understand how to do it .. > >

Re: ModalWindow and LazyLoading Exception

2009-10-02 Thread Pedro Santos
use *OpenSessionInViewFilter* to avoid lazy initialization exceptions On Fri, Oct 2, 2009 at 8:42 AM, Albert Romanius wrote: > The line that throws the exception is below: > CheckBoxMultipleChoice subMessagesCB = new CheckBoxMultipleChoice( > "subMessages", new PropertyModel(this, >

Re: Doubt with Link

2009-10-01 Thread Pedro Santos
Refresh the page is default link behavior, you may want to use AjaxLink to avoid it On Thu, Oct 1, 2009 at 5:44 PM, Pedro Sena wrote: > Hi Guys, > > First of all, sorry for a so newbie question, but I'm really a newbie in > Wicket. > > I'm trying to add a Behaviou to my link, it works fine with

Re: Custom session is null

2009-10-01 Thread Pedro Santos
en Nelson wrote: > > On 1 Oct 2009, at 15:11, Pedro Santos wrote: > > I have bookmarkable pages for the login and the form page. >> Now I go to the form page >> If you using a link to go to form page, for some reason you don't get an >> cookie on your browser holdin

Re: Custom session is null

2009-10-01 Thread Pedro Santos
I have bookmarkable pages for the login and the form page. Now I go to the form page If you using a link to go to form page, for some reason you don't get an cookie on your browser holding your session information. If you just writing the url to form page on browser, you are not passing session in

Re: Click link lost during self updating

2009-10-01 Thread Pedro Santos
ation. There are lots of components that need to be refreshed, and > adding to each of them the behavior don't seem trivial. > > I'll give it a try anyway. > > Thank you > Ale > > On Thu, Oct 1, 2009 at 1:17 PM, Pedro Santos wrote: > > > I

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

2009-10-01 Thread Pedro Santos
> > Is type of behavior possible? If not, does anyone have any other ideas as > to how I could show a dynamic tooltip with data retrieved using ajax? Thank > you very much. > > Joe > > > -Original Message- > From: Pedro Santos [mailto:pedros...@gmail.com] >

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

2009-10-01 Thread Pedro Santos
1) Is there a component (the someMadeUpAjaxComponent) that I can get a URL for which will trigger the onClick method http://wicket.apache.org/docs/1.4/org/apache/wicket/IRequestTarget.html http://wicket.apache.org/docs/1.4/org/apache/wicket/behavior/AbstractAjaxBehavior.html#getCallbackUrl%28%29 2

Re: Click link lost during self updating

2009-10-01 Thread Pedro Santos
I have a page that's refreshing its components every n seconds using AbstractAjaxTimerBehavior. Among these components there's a list of links. Would be nice if you apply AbstractAjaxTimerBehavior only to components that need to be updated. Than you don't get in trouble with your links... On Thu,

Re: AjaxPagingNavigation

2009-10-01 Thread Pedro Santos
lt; doug...@douglasferguson.us> wrote: > I just realized that this might be what you wanted to know.. > > href="?wicket:interface=:3:pagination:navigation: > 1:pageLink::ILinkListener::"> > 2 > > > > On Sep 30, 2009, at 2:07 PM, Pedro Santos wrote: > > &

Re: AjaxPagingNavigation

2009-09-30 Thread Pedro Santos
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: 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: 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: 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 wrote: > Hi *, > > i would like to know if there "hidden" consequences if i exchange sharing

Re: exclude

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 (Applic

Re: exclude

2009-09-30 Thread Pedro Santos
maybe you want have an custom WicketNamespaceHandler On Wed, Sep 30, 2009 at 8:01 AM, Alex Objelean wrote: > > In your Application class add the following line: > > getMarkupSettings().setStripWicketTags(true); > > > Martin Letendre wrote: > > > > Don't display the tag > > > > 1- I am using a wi

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 wrote: > 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 excep

Re: AjaxPagingNavigation

2009-09-29 Thread Pedro Santos
I'm using the AjaxPagingNavigation component and it works well, but when I click on one of the links, my url is replaced with /?wicket:interface=:3:4::: You refers to html "A" tag generated by navigations links. What you got on onclick tag attribute on your rendered page? On Mon, Sep 28, 2009 a

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

2009-09-29 Thread Pedro Santos
We have this requirement in which we cannot allow the customer to copy paste the url that's appearing in the address bar into the same browser. Crazy thing. How about to include an request counter to your url encode/decode strategy? On Tue, Sep 29, 2009 at 1:41 PM, Carlo Camerino wrote: > Hi eve

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

2009-09-29 Thread Pedro Santos
on the wiki[1] it is described how to get rid of wicket markup such as wicket:id attributes on a page basis page basis is an specific page on your project, or you want to strip wicket tags to all pages? you can override application init method and put your configuration lines: getMarkupSet

Re: Get converted value?

2009-09-29 Thread Pedro Santos
method: > @SuppressWarnings("unchecked") > public static T getConvertedValue(FormComponent formComponent) { >return (T) > formComponent.getConverter(formComponent.getType()).convertToObject(formComponent.getValue(), > Session.get().getLocale()); > } > > BUT, is

Re: Get converted value?

2009-09-29 Thread Pedro Santos
So sometimes validators will process formcomponents whose input has not been converted?? Sometimes the form component validation method will test himself and children for validations errors reported, before and after the user input get converted. On Tue, Sep 29, 2009 at 2:04 AM, Martin Makundi <

Re: Attempt to set model object on null model of component

2009-09-29 Thread Pedro Santos
You need to find if the component who throw the exception is the same agent constructed with lines you report and on what moment the component lost his model. On Mon, Sep 28, 2009 at 11:28 PM, Sam Barrow wrote: > I'm getting this exception: > java.lang.IllegalStateException: Attempt to set mode

Re: AttributeModifier & relative path rendering in conflict

2009-09-29 Thread Pedro Santos
May help: http://javathoughts.capesugarbird.com/2007/08/branding-wicket-application-take-2.html On Tue, Sep 29, 2009 at 2:03 AM, pete swulius wrote: > All, > > I am trying to use an AttributeModifier to change the stylesheet used on a > Page of mine. > > WebComponent styleComponent = new WebComp

Re: Form Processing problem on pages with Border - Wicket 1.4.1

2009-09-28 Thread Pedro Santos
Flavius, I took the liberty: https://issues.apache.org/jira/browse/WICKET-2494 On Sat, Sep 26, 2009 at 12:24 AM, Flavius wrote: > > > When I first posted this, I posted it multiple times thinking > that it wasn't going through. Sorry about that. Pedro S had > posted a reply to one of the dupli

Re: How can we display by example the format to be used to input Date in DateTextField ?

2009-09-28 Thread Pedro Santos
about question 1, yes: http://static.ddpoker.com/javadoc/wicket/1.4-rc2/org/apache/wicket/util/convert/ConversionException.html#setResourceKey%28java.lang.String%29 On Mon, Sep 28, 2009 at 10:57 AM, Charles Moulliard wrote: > I use a DateTextField to check if a user encode date according to the >

Re: confused about component parent field

2009-09-28 Thread Pedro Santos
Hi Haulyn, if you call currentPanel.replaceWith(targetPanel); an got java.lang.IllegalStateException: This method can only be called on a component that has already been added to its parent. the only thing that can cause that exception is: currentPanel hasn't an parent. Work direct with the par

Re: html tag doesn't render by the browser

2009-09-25 Thread Pedro Santos
Wicket is using html scape character to output your string on model, so it will to be presented as '<' and '>'. u can set FLAG_ESCAPE_MODEL_STRINGS to the componet http://static.ddpoker.com/javadoc/wicket/1.4-rc2/org/apache/wicket/Component.html#getDefaultModelObjectAsString() On Fri, Sep 25, 2009

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Pedro Santos
et us know... On Fri, Sep 25, 2009 at 3:21 PM, Fernando Wermus wrote: > Pedro, > I chose the second option and now is working. What I do not understand > is why there isnt a ListDataProvider (provided by wicket) that accepts > models. > > On Fri, Sep 25, 2009 at 2:23 PM, Pedro

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Pedro Santos
of a model. > > There is a mail talking about this issue. > > > http://osdir.com/ml/users-wicket.apache.org/2009-03/msg01175.html > > > > On Fri, Sep 25, 2009 at 1:42 PM, Pedro Santos wrote: > > > ajax wicket debug making the request but, I realized that It didn

Re: AjaxLink refresh and calling the constructor again.

2009-09-25 Thread Pedro Santos
ajax wicket debug making the request but, I realized that It didn't call the constructor again the components add to ajax request target already are instantiated. You need to resolve the complexity of new data refresh on your component model. See if at some point you are updating players property

Re: [Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Pedro Santos
like in your example. > Using a normal Link the TabbedPanel doesnt throw the exception. > > Try your example with the AjaxTabbedPane and a AjaxFallbackLink. > Then in onClick() you have to add the the the AjaxRequestTarget, which > later leads to the ArrayIndexOutOfBoundsException.

Re: [Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Pedro Santos
A mean remove a tab fom the model. Take a look at this code: public class HomePage extends WebPage { final List tabs = new ArrayList(); public HomePage(final PageParameters parameters) { tabs.add(new AbstractTab(new Model("tab 1")) { @Override

Re: Wizard help

2009-09-25 Thread Pedro Santos
I am just having trouble with the move from Step 1 to Step 2. I assume the success logic would be implemented in the onFinish() method of my ForgotPasswordWizard You can use an listener to implement success logic, onFinish will to be called when Finish button get pressed http://static.ddpoker.com

Re: [Ajax/TabbedPanel] Issue deleting all tabs + ajax-update

2009-09-25 Thread Pedro Santos
You can avoid this exception making sure to remove the tab from your panel before the request cycle enter in RESPOND step. On Fri, Sep 25, 2009 at 9:05 AM, Jens Zastrow wrote: > Hi, > > The TabbedPanel internaly uses a Loop to render the tab-components. During > a normla GET request the Loop.onP

Re: Date validation in a form / Javascriupt generation at the client side

2009-09-25 Thread Pedro Santos
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? you can use: org.apache.wicket.datetime.markup.html.form.DateTextField ex: DateTextField date = DateTextField.forDatePattern("date", "dd/MM/"); This component will validate the inputs against

Re: IComponentAssignedModel and ComponentModel

2009-09-24 Thread Pedro Santos
ComponentModel is an public class: public class ComponentModel implements IModel, IComponentAssignedModel why not just have an attribute on the "outer" class and assign the component to it in wrapOnAssignment(Component component)? could you draw? On Thu, Sep 24, 2009 at 8:49 AM, wrote: > hi, >

Re: image html element's (img) src attribute processing

2009-09-24 Thread Pedro Santos
1) Where exactly is the code which doing this? http://wicket.apache.org/docs/1.4/org/apache/wicket/request/IRequestCodingStrategy.html 2) How can I obtain this changed url for static resources? You can create an resource reference to your image resource. http://wicket.apache.org/docs/wicket-1.3.2/w

Re: maven/quickstart question

2009-09-23 Thread Pedro Santos
They probably are at user home. You can know more about maven settings at: http://maven.apache.org/settings.html * localRepository*: This value is the path of this build system's local repository. The default value is ${user.home}/.m2/repository. This element is especially useful for a main build

Re: Best way to handle circular references

2009-09-23 Thread Pedro Santos
It looks like you are looking for cohesion. In the class menupanel.java I must reference Page In the class Page.java I must reference MenuPanel menupanel can to be an parameter to PageXXX; PageXXX can to be abstract and have an abstract method : abstract protected Page getPageToSetOnReturn

Re: Form Processing problem on pages with Border - Wicket 1.4.1

2009-09-22 Thread Pedro Santos
I mean override the updateModel :P On Tue, Sep 22, 2009 at 11:03 AM, Pedro Santos wrote: > The internalUpdateFormComponentModels method in 1.3.6 didn't look for the > border and visit it's components. It's not obvious to me why this needs to > be done now in 1.4.

Re: Form Processing problem on pages with Border - Wicket 1.4.1

2009-09-22 Thread Pedro Santos
The internalUpdateFormComponentModels method in 1.3.6 didn't look for the border and visit it's components. It's not obvious to me why this needs to be done now in 1.4. The objective is to notify form's event to generic containers... When the form is submitted, the DropDownChoice's value is bein

Re: Column Pagingview

2009-09-21 Thread Pedro Santos
Hi Ryan, I just update http://wicketstuff.org/confluence/display/STUFFWIKI/Table If you not mind to work with TableModel from swing api, than you can use the table component from wicket stuff. On Mon, Sep 21, 2009 at 1:15 PM, Ryan Burns wrote: > Is there a way of having a paging view for columns

Re: Defaulting a DropDownChoice

2009-09-21 Thread Pedro Santos
Hi Tim, I think what happens is that the playerModel is an instance of AbstractReadOnlyModel. So DDC can not set the choice on it. As you need to avoid the player serialization on playerModel, I suggest you create an custom model ( and forgot any AbstractReadOnlyModel class or subclass usage for yo

Re: + key as alternative for tab key

2009-09-21 Thread Pedro Santos
Good question, pretty much javascript work. I'm curios know your final solution. One fine solution is to create an subclass of AjaxFormComponentUpdatingBehavior to onchange event. On this behavior you can put your javascript rules. Take a look at OnChangeAjaxBehavior to see how it could be done.

Re: how to control visibility of Border's markup?

2009-09-21 Thread Pedro Santos
If you set the borders as transparent resolvers, implement they isVisible method, and add the components direct to the border parent component? On Sun, Sep 20, 2009 at 6:53 AM, Vladimir Kovalyuk wrote: > I would like to control programmatically the visibility of the border > itself, meaning that

Re: rpc question

2009-09-18 Thread Pedro Santos
ideally that I can expose web services through some Wicket page like class I remember this post with question: How to easily provide simple RESTful Web Services with Wicket? http://blog.brunoborges.com.br/2008/11/restful-web-services-with-wicket.html On Fri, Sep 18, 2009 at 11:20 AM, Petr Kobalí

Re: Defaulting a DropDownChoice

2009-09-18 Thread Pedro Santos
The DDC uses the model choises internaly, if you want manage this model, use it on other places, why don't you keep an refecence to by yourself? setResponsePage(new ViewPicksPage(playersModel)); on DDC default model will have only the selected item, provided by choices options you passed On Fri,

Re: AjaxLazyLoadPanel

2009-09-18 Thread Pedro Santos
i'm using the Wicket Wizard and the list is generated out of previous input, so i have to use the AjaxLazyLoadPanel you can use dynamic models http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-DynamicModels is it in principle possible to load this dynamic list

Re: Creating a panel inside an enclosure via an IComponentResolver

2009-09-17 Thread Pedro Santos
Do you consider to use jsp for this project? They do the entire servlet based on the tag name.(just kidding) Make sure of remove the old standard EnclosureResolver and add your new one on: getApplication().getPageSettings().getComponentResolvers() http://wicket.apache.org/docs/1.4/org/apache/wick

Re: Update parent component from child component

2009-09-17 Thread Pedro Santos
See if it work, I don't think you are needing an asynchronous behavior to your link... setResponsePage(getPage()); On Wed, Sep 16, 2009 at 4:30 PM, Ryan O'Hara wrote: > I'm trying to update a parent's, parent's, parent component using AJAX. I > tried combing the archives and came up with some

Re: wicket and livequery (jquery plugin)

2009-09-17 Thread Pedro Santos
The problem is that jQuery does not sense the new dom elements while I'm retrieving them with Wicket Ajax I had an similar problem with javascript that was not executed when component was rendered with ajax in my case, the javascript was programed on onRender override method. In the occasion,

Re: Is it the best way to code a Link depending on a condition

2009-09-17 Thread Pedro Santos
I think that this is a general remark that some users make about Wicket. It is very difficult to reuse part of the code. I do not agree... refactore your code, apply some design pattern, do somethin... In your first case, here is an draft. You can creante an class of this anonimus sub classes and

Re: Select + SelectOptions question

2009-09-16 Thread Pedro Santos
With Select you have more control over the markup between the tag and its children tags >From Select javadoc: Component that represents a box. Elements are provided by one or more SelectChoice or SelectOptions components in the hierarchy below the Select component. Advantages to the standard c

Re: dropdownchoice selection problem after pressing the wizard previous button

2009-09-16 Thread Pedro Santos
The device on wizard model need to be the same instance that was passed to the DropDownChoice? See if at some point you are working with 2 intances of Device. new PropertyModel(devicesCreation, "distributor"), private Device deviceCreation; devicesCreation != deviceCreation On Wed, Sep 16, 200

Re: Unable to close ModalWindow 1.4.1

2009-09-16 Thread Pedro Santos
l file includes a head section with my javascript and the > markup has > > > > wicket elements viz where the close links are rendered. I have two > such > > > > links - both of which are rendered useless when used in this > configuration - > > > > although the main cl

Re: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Pedro Santos
> To: users@wicket.apache.org > > > > by close(target) or ModalWindow.close(target) > > --> use close(target), to maintain ModalWindow internal states updated. > > > > On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos > wrote: > > > > > On this ajax re

Re: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Pedro Santos
by close(target) or ModalWindow.close(target) --> use close(target), to maintain ModalWindow internal states updated. On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos wrote: > On this ajax response, we can see that the close script was appended 2 > times. Make sure that it appended only

Re: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Pedro Santos
On this ajax response, we can see that the close script was appended 2 times. Make sure that it appended only once, by close(target) or ModalWindow.close(target). Before click the "close link", in a moment that was causing trouble, see if these variables are not null: Wicket.Window.current window.

Re: Selectively ignoring required fields

2009-09-15 Thread Pedro Santos
On the other hand, maybe that whole criteria panel is deselected, in which case I want to be able to stop the whole thing from doing any validation at all, so it won't even look at whether the check box is checked. disable panel don't work on that case? On Tue, Sep 15, 2009 at 11:10 AM, Phil Hous

Re: Selectively ignoring required fields

2009-09-15 Thread Pedro Santos
Maybe you should turn your enforcements to the framework hot spots. >>> (+) search by X >>> a: [_] >>> b: [_] >>> >>> () search by Y >>> ... >>> >>> () search by Z Each group of options is its own panel You can create an validation with those conditions, and add only on necessary fiels.

Re: ResourceModel and Collection

2009-09-14 Thread Pedro Santos
? > > Thanks in advance > > On Mon, Sep 14, 2009 at 8:46 AM, Pedro Santos wrote: > > > Hi, > > the best approach depends on your project. If the your collections of > > strings is an bean property, you can use PropertyModel, > > CompoundPropertyM

Re: ResourceModel and Collection

2009-09-14 Thread Pedro Santos
Hi, the best approach depends on your project. If the your collections of strings is an bean property, you can use PropertyModel, CompoundPropertyModel ex: new PropertyModel(beanDayNews, "sportNews"); Depending on your model data heavy, you can use LoadableDetachableModel or Model... http://wicke

Re: how to get resource path to use it in own js

2009-09-12 Thread Pedro Santos
I think you are looking for: http://wicket.sourceforge.net/apidocs/wicket/RequestCycle.html#urlFor(wicket.ResourceReference ) Ex: RequestCycle.get().getUrlFor(new ResourceReference(SomeClass.class,"path-to-resource")) On Sat, Sep 12, 2009 at 7:34 AM, Petr Kobalíček wrote: > Hi list, > > how to g

Re: understanding models

2009-09-11 Thread Pedro Santos
should "remember" its selected values throwout requests. This is the job of a model This is the job of a static model, maybe you are using a dynamic one. On Fri, Sep 11, 2009 at 6:27 AM, Tomek Sniadach < tomek.sniad...@googlemail.com> wrote: > Hi, > i have probably a simple question: I have a co

Re: DropDownChoice with Java Enum

2009-09-11 Thread Pedro Santos
this.requestType = ProcessingStatusType.valueOf( requestType > ).getValue(); > } > > > > Pedro Santos-6 wrote: > > > > The value on model are on ProcessingStatusType instance. Use > > ((ProcessingStatusType)model.getObject()).getValue() to access the value > >

Re: CheckBoxMultipleChoice Component

2009-09-10 Thread Pedro Santos
The component let all options enabled or disabled. I wondering 3 options: 1- you can implement an AbstractReadOnlyModel that returns only the avaliable options to your CheckboxMultipleChoice 2 - open an JIRA asking to CheckboxMultipleChoice use an isEnabled(choice, index, selected) method to resolv

Re: Password Field Question

2009-09-10 Thread Pedro Santos
PasswordTextField passwordField1 = new PasswordTextField("password"); PasswordTextField passwordField2 = new PasswordTextField("controlPassword"); on these lines you are creating components with null model, and on wicket models can be inherited from components higher in the hierarchy. I think i

Re: DropDownChoice with Java Enum

2009-09-10 Thread Pedro Santos
The value on model are on ProcessingStatusType instance. Use ((ProcessingStatusType)model.getObject()).getValue() to access the value REJEC On Thu, Sep 10, 2009 at 12:39 PM, cmoulliard wrote: > > Thks for all. > > With the following syntax : > >add(new DropDownChoice("requestStatus", >

Re: DropDownChoice with Java Enum

2009-09-10 Thread Pedro Santos
@Override public String getDisplayValue(Object status) { return ((ProcessingStatusType) status).getDescription(); } On Thu, Sep 10, 2009 at 9:46 AM, cmoulliard wrote: > > You mean create something like this : > > add(new DropDownChoice("requestStatus", > Arrays.asList(Processi

Re: How to use AjaxPagingNavigationIncrementLink without Navigator...

2009-09-10 Thread Pedro Santos
ception that the navigator is missing. > > The javadoc says: ...it will update the pageable and itself or the > navigator component which it is part of. > > But it cannot be used without that component. I have understood the text > that the navigator should be optional and is not

Re: How to hide html sections

2009-09-10 Thread Pedro Santos
With OO you can teach you objects to behave, rater the set then every time: String property; add(new Button("red"){ @Override public boolean isVisible() { return property == red condition } }); add(new Button("green")

Re: How to use AjaxPagingNavigationIncrementLink without Navigator...

2009-09-10 Thread Pedro Santos
Hi, I din't find were javadoc says that AjaxPagingNavigationIncrementLink can to be used as standalone component *AjaxPagingNavigationIncrementLink *javadoc: An incremental Ajaxian link to a page of a PageableListView. Assuming your list view navigation looks like [first / << / <] 1 | 2 | 3 [>

Re: Transparent resolver parent child working but cannot add third component

2009-09-09 Thread Pedro Santos
"I want an added third component (a WebPage class) to be displayed" setResponsePage(third component) are not enough because you adding the third component inside an iframe? can you send significant code of parent page? On Fri, Sep 4, 2009 at 8:08 PM, wrote: > Hello all, I have a WebPage parent t

Re: placing multiple gmap markers

2009-09-09 Thread Pedro Santos
See if it occurs on http://maps.google.com/ too. You can put markers on this map too. If the problem remains, you can disable the zoom out. On Wed, Sep 9, 2009 at 11:35 AM, shiraz memon wrote: > Hi, > > I am trying to put multiple markers at the same position. It looks fine if > I > magnifies it

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Pedro Santos
Hi, for curios, I take a look at wicket-gmap.js on http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/wicket-gmap.js?r1=4174&r2= that has an similar situation... you can see on line 49 the parameter passage. I don't know other way to p

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Pedro Santos
ok: non-Wicket-JavaScript-Function is bingJavaScriptFunctionCalledOnYourApp so: function bingJavaScriptFunctionCalledOnYourApp(){ /* callback script */ } How can I get the callback script? I'm wondering something like: class BingTask extends AbstractDefaultAjaxBehavior { @Override

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2009-09-09 Thread Pedro Santos
If you have able to fire an JavaScript function when the user places a pusphin and write the task as an AbstractDefaultAjaxBehavior implementation, you can use it getCallbackScript( http://wicket.apache.org/docs/1.4/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.html#getCallbackScript%28%29) me

Re: ResourceModel and getting the key in it

2009-09-09 Thread Pedro Santos
The ResourceModel just call: Application.get().getResourceSettings().getLocalizer().getString(resourceKey, (Component)null, defaultValue) using the resourceKey you parse. You can call getString of your localizer by your own, using your assembled resourceKey On Wed, Sep 9, 2009 at 12:47 PM, Ferna

Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Pedro Santos
want to set user id into session attribute. > After I call WebSession.bind(), now the problem is solved. > But why MyauthenticatedWebSession is temporary in default? (no session id) > > > > Pedro Santos-6 wrote: > > > > Please, what is "user id" that you refers? >

<    1   2   3   4   5   6   >