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 u...@yahoo.dewrote: I have overwritten the newSession Method: public class Application extends WebApplication { @Override protected void init() {

Re: table columns ajax update

2009-10-05 Thread Pedro Santos
vineetsemwal1...@gmail.comwrote: Pedro, eagerly waiting for next version ;) thank you , -- regards, Vineet Semwal On Mon, Oct 5, 2009 at 4:25 AM, Pedro Santos pedros...@gmail.com wrote: Hi Semwal, it has capability to update some columns. I update HomePage on table-example to show

Re: table columns ajax update

2009-10-04 Thread Pedro Santos
;) thank you ! -- regards, Vineet Semwal On Sun, Oct 4, 2009 at 3:57 AM, Pedro Santos pedros...@gmail.com wrote: 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 vineetsemwal1

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 vineetsemwal1...@gmail.comwrote: can i update some columns in wicket-stuff table with ajax timer ? i have seen wicket-stuff table example but can't

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 a.roman...@gmail.comwrote: The line that throws the exception is below: CheckBoxMultipleChoice subMessagesCB = new CheckBoxMultipleChoice( subMessages, new

Re: AjaxPagingNavigation

2009-10-01 Thread Pedro Santos
, at 2:07 PM, Pedro Santos wrote: 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

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

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

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

2009-10-01 Thread Pedro Santos
could show a dynamic tooltip with data retrieved using ajax? Thank you very much. Joe -Original Message- From: Pedro Santos [mailto:pedros...@gmail.com] Sent: Thursday, October 01, 2009 8:19 AM To: users@wicket.apache.org Subject: Re: is it possible to somehow create a url to return

Re: Click link lost during self updating

2009-10-01 Thread Pedro Santos
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 pedros...@gmail.com wrote: I have a page that's refreshing its components every n seconds using

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

Re: Custom session is null

2009-10-01 Thread Pedro Santos
...@eccostudio.comwrote: 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 holding your session information. If you just

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 sena.pe...@gmail.com 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

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

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: 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: 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: 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: AjaxPagingNavigation

2009-09-30 Thread Pedro Santos
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 /?wicket:interface=:3:4::: You refers to html A tag generated by navigations links. What you

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 pswul...@gmail.com wrote: All, I am trying to use an AttributeModifier to change the stylesheet used on a Page of mine. WebComponent styleComponent

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 s...@sambarrow.com wrote: I'm getting this exception: java.lang.IllegalStateException:

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: Get converted value?

2009-09-29 Thread Pedro Santos
) { return (T) formComponent.getConverter(formComponent.getType()).convertToObject(formComponent.getValue(), Session.get().getLocale()); } BUT, is this necessary? Is there a framework method to do this for me? ** Martin 2009/9/29 Pedro Santos pedros...@gmail.com: So sometimes

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:

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

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 at

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

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 cmoulli...@gmail.comwrote: I use a DateTextField to check if a user encode

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 flav...@silverlion.com 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

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: [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 m...@jens-zastrow.de wrote: Hi, The TabbedPanel internaly uses a Loop to render the tab-components. During a normla GET

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

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

2009-09-25 Thread Pedro Santos
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 tp the the AjaxRequestTarget, which later leads to the ArrayIndexOutOfBoundsException. Pedro Santos schrieb: -- dipl

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

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 pedros...@gmail.com wrote: ajax wicket debug making the request but, I realized that It didn't call the constructor again

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: 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.

Re: IComponentAssignedModel and ComponentModel

2009-09-24 Thread Pedro Santos
ComponentModel is an public class: public class ComponentModelT implements IModelT, IComponentAssignedModelT 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, g...@gmx.net

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

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

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 pedros...@gmail.com 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: 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 koval...@gmail.comwrote: I would like to control programmatically the visibility of the border

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

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 captainbirds...@gmail.comwrote: Is there a way of having a

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

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

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

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: 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 rjoh...@gmail.com wrote: I'm trying to update a parent's, parent's, parent component using AJAX. I tried combing the archives and

Re: Unable to close ModalWindow 1.4.1

2009-09-16 Thread Pedro Santos
: pedros...@gmail.com 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 pedros...@gmail.com wrote: On this ajax

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 PropertyModelDistributor(devicesCreation, distributor), private Device deviceCreation; devicesCreation != deviceCreation On Wed,

Re: Select + SelectOptions question

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

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. Ex: private class

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

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

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 pedros...@gmail.com wrote: On this ajax response, we can see that the close script was appended 2 times. Make sure

Re: Unable to close ModalWindow 1.4.1

2009-09-15 Thread Pedro Santos
ModalWindow internal states updated. On Tue, Sep 15, 2009 at 5:56 PM, Pedro Santos pedros...@gmail.com wrote: 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

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 PropertyModelCollection(beanDayNews, sportNews); Depending on your model data heavy, you can use LoadableDetachableModel or Model...

Re: ResourceModel and Collection

2009-09-14 Thread Pedro Santos
db? Thanks in advance On Mon, Sep 14, 2009 at 8:46 AM, Pedro Santos pedros...@gmail.com wrote: 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 PropertyModelCollection

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 kobalicek.p...@gmail.comwrote:

Re: DropDownChoice with Java Enum

2009-09-11 Thread Pedro Santos
(); } Pedro Santos-6 wrote: 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 cmoulli...@gmail.com wrote: Thks for all. With the following

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

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
: ...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 a must have. Best regards, Andrej - Original Message - From: Pedro

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 cmoulli...@gmail.com wrote: You mean create something like this : add(new DropDownChoice(requestStatus,

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 cmoulli...@gmail.com wrote: Thks for all. With the following syntax : add(new

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

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

2009-09-09 Thread Pedro Santos
Please, what is user id that you refers? On Wed, Sep 9, 2009 at 5:31 AM, Anders innocentl...@gmail.com wrote: Hi, I can get the user id attribute from my authenticatedWebSession in a role-needed page. But I can't get user id when I go to no-role-needed page. Do I need to override

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

2009-09-09 Thread Pedro Santos
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? On Wed, Sep 9, 2009 at 5:31 AM, Anders innocentl...@gmail.com wrote: Hi, I

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,

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 {

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=4174r2= that has an similar situation... you can see on line 49 the parameter passage. I don't know other way to

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 shiraz.li...@googlemail.comwrote: Hi, I am trying to put multiple markers at the same position. It looks

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, da...@davidwbrown.name wrote: Hello all, I

Re: Help on wizard solution...

2009-09-08 Thread Pedro Santos
I think the wizard is the correct approach... You can try use DynamicWizardModel on your wizard. javadoc: * Wizard model that is specialized on dynamic wizards. Unlike the default, static * {...@link WizardModel wizard model}, this model isn't very intelligent, but rather delegates much * of

Re: ajax indicator for all ajax requests blocking page

2009-09-08 Thread Pedro Santos
try this js: var mask = new Wicket.Window.Mask(false); mask.show(); the Mask is the use by ModalWindow: http://www.wicket-library.com/wicket-examples/ajax/modal-window.2 On Tue, Sep 8, 2009 at 1:26 PM, fachhoch fachh...@gmail.com wrote: I also want to mask page along with loading

Re: Property Models

2009-09-08 Thread Pedro Santos
T is the type parameter for the model object ( http://static.ddpoker.com/javadoc/wicket/1.4-m1/org/apache/wicket/model/IModel.html), if you are creating an PropertyModel to retrieve and access an String property, so String is the correct type parameter for the PropertyModel... On Tue, Sep 8, 2009

Re: maven wicket stuff

2009-09-08 Thread Pedro Santos
sorry, I realize now: just set the artifactIdgmap2/artifactId line On Tue, Sep 8, 2009 at 5:53 PM, Pedro Santos pedros...@gmail.com wrote: Hi, I'm trying to add dependency to my project from wicket stuff like: dependency groupIdorg.wicketstuff/groupId

Re: Wicketstuff really needs some updates

2009-09-04 Thread Pedro Santos
Hi Johannes, recently I develop an jmx panel, to view and operate the applications mbeans. And latter I discover that the wicket stuff already has one! I rememer that, because in the ocasion I was afraid to start use the jmx wicket stuff panel, due it has the wicket 1.3.1 on classpath, and the

Re: Wicketstuff really needs some updates

2009-09-04 Thread Pedro Santos
Great Igor! I'm feeling like Homer Simpson On Fri, Sep 4, 2009 at 3:04 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: or you can request commit access and eat your own donuts :) -igor On Fri, Sep 4, 2009 at 10:43 AM, Johannes Schneidermaili...@cedarsoft.com wrote: Hi, I really love

Re: Wicketstuff really needs some updates

2009-09-04 Thread Pedro Santos
Done, I commit now the mbeanview to wicket stuff. Johannes, what about the donuts?! On Fri, Sep 4, 2009 at 3:34 PM, Johannes Schneider maili...@cedarsoft.comwrote: Well, who is the One? Igor Vaynberg wrote: or you can request commit access and eat your own donuts :) -igor On Fri,

Re: Can't update TextField via Ajax after a validation error

2009-09-04 Thread Pedro Santos
Take a look at: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/form/Button.html#setDefaultFormProcessing(boolean) On Fri, Sep 4, 2009 at 7:01 PM, Neil Curzon neil.cur...@gmail.com wrote: Hi all, I'm having a weird problem that causes an input to refuse

Re: AbortWithWebErrorCodeException and RequestCycle newRequestCycle

2009-09-03 Thread Pedro Santos
I thought to create a RuntimeException that will be thrown instead of the AbortWithWebErrorCodeException(...) and to analyze it in the onRuntimeException. don't you gona fall in to the same problem this way? Set error page in web.xml ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE web-app

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Pedro Santos
To one of the decorations script must to be appended the script responsible to call the behavior. You can get it invoking the AbstractDefaultAjaxBehavior.getCallbackScript() protected method. On Thu, Sep 3, 2009 at 7:59 AM, Arie Fishler arie@gmail.com wrote: Hi, We have been implementing

Re: clean way to avoid DynamicWebResource to look for non existing file

2009-09-03 Thread Pedro Santos
Hi Daniele, just an idea: @Override protected byte[] getImageData() { String basePath = upload/images/; Object name = logoModel.getObject(); File file = new File(., basePath + name); LoggerFactory.getLogger(getClass()).info(serving file: + file);

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Pedro Santos
and I want this function call to resume the wicket action (ajax click on a link or submit of a button) right after the function of the behavior is executed On Thu, Sep 3, 2009 at 2:09 PM, Pedro Santos pedros...@gmail.com wrote: To one of the decorations script must to be appended the script

Re: Getting the Ajax decorator of a link

2009-09-03 Thread Pedro Santos
, Pedro Santos pedros...@gmail.com wrote: value that is placed in the onClick event (which has the action for the link or button that has the behavior placed on) You has an parameter determining the action to be take, why don't you use polimorfism? My behavior just adds a function call

Re: why is getHomePage called multiple times?

2009-09-01 Thread Pedro Santos
Jason, the method getHomePage#MyWicketApplication only return the Class of your application home page, an call from Wicket to it's method, doesn't means that an instance of HomePage will to be generated. This is a code from WebRequestCodingStrategy for example: if

Re: Dynamic Optgroups in Wicket

2009-09-01 Thread Pedro Santos
correction: In your application u CAN populate your list of options, and pass it to an similar component. On Tue, Sep 1, 2009 at 9:07 AM, Pedro Santos pedros...@gmail.com wrote: Gary, Take a look at wicket.markup.html.form.DropDownChoicehttp://wicketstuff.org/wicket13/compref/;jsessionid

Re: is it possible to include script resources using the HeaderContributor above the WebPage component script references

2009-08-31 Thread Pedro Santos
Joe, an diferent option is create a custom WebPage with all needed resources to serve as super class for all web pages class of your application. Html for super class: html head wicket:link script type=text/javascript src=scripts/example.js/script /wicket:link /head body wicket:child / /body

Re: How to tackle Ajax Flooding

2009-08-31 Thread Pedro Santos
- area where the user sends multiple requests in very rapid succession - model on client side - alot of javascript Do you consider to choice an diferent framework for thi especific project? Take a look at: http://ptrthomas.wordpress.com/2008/09/04/wicket-and-gwt-compared-with-code/ On Mon, Aug

Session gc

2009-08-28 Thread Pedro Santos
Hi, I have an wicket application mantaing objects for the session, link consumer threads to background work. I want to make sure that these objects will to be garbage colected, finalized, etc. How can I listen the session timeout notice? I don't want to implements these rules on finally method of

Re: images in html or images in css

2009-08-28 Thread Pedro Santos
You can use wicket:link tag to convert the static reference see: http://cwiki.apache.org/WICKET/autolink.html On Fri, Aug 28, 2009 at 12:10 PM, Altuğ B. Altıntaş alt...@gmail.comwrote: Hi; Because your css file location and html file location are different. try to reach images via url way

Re: Male/Female messages

2009-08-28 Thread Pedro Santos
This remember me an idea. Will to be very helpful if wicket worked with syles hierarchy. For example, I worked on a application that have 3 styles: style1_grayscale, style1_colored, style2. In some css files for example, would be useful to write just the somePanelCssFile_style1.css, that can to

Re: Subclass of base page class not rendered

2009-08-27 Thread Pedro Santos
To force re-instantiate of an unknow subclass you can use reflection like: setResponsePage(getPage().getClass().getConstructors()[0].newInstance()); but a simple setResponsePage(getPage()) should work to update resources used by wicket:message for example On Thu, Aug 27, 2009 at 6:47 AM,

<    1   2   3   4   5