Migration of generateCallbackScript to Wicket 6

2012-10-26 Thread Adriano dos Santos Fernandes
Hi! I'm migrating from Wicket 1.5 to 6, and I have a couple of generateCallbackScript usage that I have no idea what to do. An example: class ToolbarBehaviour extends AbstractDefaultAjaxBehavior { private static final long serialVersionUID = 1L; @Override

Mounting URLs with locale prefix

2012-08-27 Thread Adriano dos Santos Fernandes
Hi! I do want to mount our application URLs as following: /${locale}/PageName So I can access Page1 as: /pt-br/Page1 /en-us/Page1 The application is a simple website with not so many dynamic content, so in most cases it directly uses a href=... /, img src=... / without wicket:id. That's fine.

Wicket tags in output markup may change styles

2012-08-21 Thread Adriano dos Santos Fernandes
Hi! I was creating a website with Wicket and the CSS styles were fine. Then I decided to replace some texts with wicket:message / and it changed the formatting. I know setStripWicketTags(true), but I prefer to have it working with setStripWicketTags(false) in dev. mode. The html is actually a

Check the markup in onBeforeRender

2011-06-24 Thread Adriano dos Santos Fernandes
Hi! I want to add some components to the hierarchy dynamically based on the wicket:id presents in the HTML. Basically, I want to check if an used wicket:id was not explicitly added (with add method) by the user and then (in some cases) add it. But I'm having trouble to do that. I tried

Re: Google App Engine and Wicket

2009-04-12 Thread Adriano dos Santos Fernandes
Maarten Bosteels wrote: But AFAIK GAE doesn't use/guarantee sticky sessions, so I am afraid you can't rely on local memory. App Engine uses multiple web servers to run your application, and automatically adjusts the number of servers it is using to handle requests reliably. A given request may

Re: serialVersionUID

2009-04-11 Thread Adriano dos Santos Fernandes
Brill Pappin wrote: Yes, its fine. you really only need to worry about that kind of thing when you are passing java serialized classes between VMs (as in RMI). In fact, you likely don't really even need to bother for Wicket, and you can turn off that check in Eclipse. If you care about

Re: serialVersionUID

2009-04-11 Thread Adriano dos Santos Fernandes
Brill Pappin wrote: Actually i don't think a missing one will cause that to fail unless there are a lot of incompatible changes. Just one incompatible change of class stored in the session and it will not be deserialized. However... even if it does matter, *in no way* should anyone depend

WebResource and Guice

2009-03-30 Thread Adriano dos Santos Fernandes
Hi! I've this, on my Application class: getSharedResources().add(name, new WebResource() { private static final long serialVersionUID = 1L; @Override public IResourceStream getResourceStream() { return new AbstractResourceStream() { private static final long

Re: AjaxTabbedPanel stopped working.

2009-03-21 Thread Adriano dos Santos Fernandes
Mathias P.W Nilsson wrote: Hi, I know this code is long but for some reason my AjaxTabbedPanel,link,onSubmit() is not getting called. Create an onError and add the feedback panel to target, so you'll know why. Adriano -

Re: Update DropDownChoice with ModalWindow

2009-03-19 Thread Adriano dos Santos Fernandes
PDiefent escreveu: Hi, In my panel I have a DropDownChoice with names. An AjaxLink opens a ModalWindow where I can enter a new name. After submitting the modal window, the new name is stored in the database and the new entry is added to the DropDownChoice contents. All this works fine, but one

Re: Update DropDownChoice with ModalWindow

2009-03-19 Thread Adriano dos Santos Fernandes
PDiefent escreveu: Adriano, I don't know what you mean. In my point of view the LoadableDetachableModel representing the list with the names is updated, but the property model representing the actual name not. I'm using target.addComponent(nameDropDown) in the setWindowClosedCallback() method

Re: Correct use of RangeValidator

2009-03-17 Thread Adriano dos Santos Fernandes
Igor Vaynberg escreveu: textfield doesnt know that it has been declared as textfieldinteger at runtime unless it is an anonymous class. welcome to java generics. lookup type erasure. Hmm... And what about work done using IObjectClassAwareModel? It seems to work for me, I never need to pass

Re: Why are we top-posting...

2009-03-14 Thread Adriano dos Santos Fernandes
Jeremy Thomerson wrote: In my experience, top vs bottom vs interleaved posting is dependent on the community. Yes. In my opinion, I appreciate top posting I do not. When you post something, and one reply with his (mis)understands, it's much more difficult to continue a decent dialog when

Re: building a wicket app with maven 1

2009-03-12 Thread Adriano dos Santos Fernandes
Steve Swinsburg escreveu: Hi all, I have a need to backport my wicket app that builds perfectly in Maven2 to Maven1. I think I've adjusted all the pom.xml to project.xml correctly as all the classes and dependent jars looks like they are where they need to be, but on startup I get this:

ModalWindow and JQueryBehavior

2009-03-10 Thread Adriano dos Santos Fernandes
Hi! Has anyone used ModalWindow with JQueryBehavior from wicket-stuff? It seems to cause Javascript problems and the behavior does not do the job. Is ModalWindow susceptible to problems with many Javascript interrelated contributions, some inline and some references? Wicket DateTime

Re: DropDownChoice with disabled items

2009-03-06 Thread Adriano dos Santos Fernandes
and SelectOption at http://jweekend.com/dev/ArticlesPage/ . Regards - Cemal http://jWeekend.com jWeekend Adriano dos Santos Fernandes-3 wrote: Is there an easy way to do it? Output would be: select optionEnabled item/option option disabled=disabledDisabled item/option ... /select

Re: DropDownChoice with disabled items

2009-03-06 Thread Adriano dos Santos Fernandes
jWeekend escreveu: Adriano, I'm glad it was useful - these classes make DDCs pretty versatile. Wicket 1.3 is designed to be ale to run on Java versions before 1.5 (when generics were introduced to the language). Take a look at http://wicket.apache.org/docs/1.4/ SelectOption in Wicket 1.4 if

DropDownChoice with disabled items

2009-03-05 Thread Adriano dos Santos Fernandes
Is there an easy way to do it? Output would be: select optionEnabled item/option option disabled=disabledDisabled item/option ... /select Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Uppercasing inputs

2009-03-04 Thread Adriano dos Santos Fernandes
public class UpperCaseBehavior extends AttributeAppender { private static final long serialVersionUID = 1L; public UpperCaseBehavior() { super(style, new ModelString(text-transform: uppercase), ;); } @Override public void bind(Component component) {

Re: NullPointerExceptions due to missing Spring constructor injection - Workaround

2009-02-28 Thread Adriano dos Santos Fernandes
Christian Helmbold wrote: I've found a workaround. Not elegant, but it works: public class ArticlePage extends WebPage { @SpringBean private ArticleRepository repository; private Article article; public ArticlePage() { InjectorHolder.getInjector().inject(this);

DropDownChoice constructor

2009-02-27 Thread Adriano dos Santos Fernandes
Hi! Maybe I'm dumb today :-), but I can't access this constructor: public DropDownChoice(String id, IModelList? extends T choices, IChoiceRendererT renderer) So I had created new functions using similar generics parameter, and it also don't work for the DDC equivalent: private T void

Re: DropDownChoice constructor

2009-02-27 Thread Adriano dos Santos Fernandes
Seems I'm late reading this list, and encounter the same problem discussed in another thread today. :-) Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: using a model with DropDownChoice

2009-02-27 Thread Adriano dos Santos Fernandes
What do you mean with read only here? Adriano Igor Vaynberg escreveu: ? extends Foo collections are read only, it would be too inconvenient to make the model collection read only :) -igor On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson jer...@wickettraining.com wrote: This is what I

Border body inside a fragment

2009-02-25 Thread Adriano dos Santos Fernandes
Hi! I'm having some difficulties to achieve this, may be it's not supported? My Border have: wicket:border wicket:fragment wicket:id=windowFragment ... wicket:body / ... /wicket:fragment wicket:border I.e., could the border body be inserted inside a fragment? I want

IResourceStream.close

2009-02-17 Thread Adriano dos Santos Fernandes
Hi! Why does IResourceStream have a close() method? I don't see it being called in 1.4-RC2. Shouldn't ResourceStreamRequestTarget.detach call it? Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: IResourceStream.close

2009-02-17 Thread Adriano dos Santos Fernandes
, Feb 17, 2009 at 12:44, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Hi! Why does IResourceStream have a close() method? I don't see it being called in 1.4-RC2. Shouldn't ResourceStreamRequestTarget.detach call it? Adriano

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-16 Thread Adriano dos Santos Fernandes
Johan Compagner escreveu: That settings just triggers some code that checks if the pagemap name is equal to the window name if that isnt the case then it does a redict to a new page so that every browser window has its own pagemap Why do you have that setting enabled? With the disk store it is

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-15 Thread Adriano dos Santos Fernandes
then it does a redict to a new page so that every browser window has its own pagemap Why do you have that setting enabled? With the disk store it is not really needed anymore On 13/02/2009, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Johan Compagner escreveu: if that happens

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-14 Thread Adriano dos Santos Fernandes
, Feb 12, 2009 at 11:45 AM, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Thomas Mäder escreveu: Why don't you put a breakpoint in the constructor and see let us know what you find out? Is the constructor called through the same stack trace twice? The constructor

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-13 Thread Adriano dos Santos Fernandes
Johan Compagner escreveu: if that happens then the newWindowBrowser detection is enabled and executed. This makes sure that a new tab or browser window (but same session) will have there own pagemap I have getPageSettings().setAutomaticMultiWindowSupport(true). But why AbstractAjaxTimerBehavior

AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-12 Thread Adriano dos Santos Fernandes
I've a simple page as below, and when I call it from Firefox, ReportPage constructor is almost always called two times. Some times it's correctly called once. What may be wrong? public class ReportPage extends WebPage { private static final long serialVersionUID = 1L; private static

Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-12 Thread Adriano dos Santos Fernandes
Thomas Mäder escreveu: Why don't you put a breakpoint in the constructor and see let us know what you find out? Is the constructor called through the same stack trace twice? The constructor is called by the filter, it's another request from the browser. The first URL is the entered one, and the

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Adriano dos Santos Fernandes
Andreas Petersson wrote: hi timo, thanks for the links. well, i've modeled my application after reading the mentioned example. from Wicket, Guice and Ibatis example: public class MyPage extends WebPage { @Inject protected MyDao myDao; --- i wonder: myDao is most likely not

Re: best way to obtain component reference?

2009-01-22 Thread Adriano dos Santos Fernandes
Phillip Rhodes wrote: I am trying to update the label text on a page from a inner class (onSubmit) of my page. I used the page.get(componentid) method, but it returns null. While I could just store the reference to the label as a variable in my page class, I would like to understand how to

Re: Sorting a column populated through pupulateItem method...

2009-01-08 Thread Adriano dos Santos Fernandes
nitinkc wrote: I have a requirement to sort a column of a Datatable which does not have any property values. Sorting property columns is easy using the getSortProperty() method. However in this case, I am populating the values in the column using the

Re: DateTimeField Error and Question

2009-01-01 Thread Adriano dos Santos Fernandes
As following: protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel) { return DateTextField.forDateStyle(id, dateFieldModel, M-); } Adriano Gerolf Seitz wrote: you can override the method newDateTextField(String, PropertyModel) and return a

Re: feedback message without a form

2008-12-30 Thread Adriano dos Santos Fernandes
miro escreveu: here is my code public void onClick(AjaxRequestTarget target) { if(assignProgramsDTO.getGrantsAssigned().size()==0){ getPage().error(Please assing grants); return;

Re: any better at dealing with Image in DataTable

2008-12-30 Thread Adriano dos Santos Fernandes
Kirk Israel wrote: Running into the same issue as seen in: http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg03706.html where you try to put an Image in a DataTable and get Component cell must be applied to a tag of type 'img', not 'span wicket:id=cell' (line 0, column 0) Is

DataTable columns markup

2008-12-26 Thread Adriano dos Santos Fernandes
Hi! First, I must say that I'm not a expert on valid HTML, I just tested my markup with the w3c validator. I created a MultiLinePropertyColumn class, that basically have: @Override public void populateItem(ItemICellPopulatorT item, String componentId, IModelT rowModel) {

SignInPanel of wicket-auth-roles (1.4-rc1)

2008-12-23 Thread Adriano dos Santos Fernandes
Hi! Different from the SignInPanel of the examples, the wicket-auth-roles component doesn't do setType(String.class) for username and password. That causes warnings in the log about unrecognized model type. Should not the setType be there? Adriano

Re: Adding images for sorting to HeadersToolbar

2008-12-19 Thread Adriano dos Santos Fernandes
Emanuele Gesuato escreveu: Hi there, We are using the default HeadersToolbar in an our customized DataTable, now we would like to add in every cell of the header two images (an up and down arrows) for helping the user sorting the table. I think this is a common feature and i was wondering

Re: How to determine which page I am on?

2008-12-17 Thread Adriano dos Santos Fernandes
pieter claassen escreveu: Adriano, that worked, thanks!! Why did it work? On the Panel constructor, it's not yet added to any page, as you need an instance to add it to a page. :-) On onBeforeRender, you have the complete components hierarchy ready. Adriano

Re: strange 404 error

2008-12-17 Thread Adriano dos Santos Fernandes
I'm having similar errors (not 404, but internal error, sorry but do not have stack trace right now, and is not always reproducible). I use Wicket 1.4-rc1 and auth-roles with Tomcat6. It seems that when there is no session, just after the login the error happens. It was a NoMethodFound from

Re: strange 404 error

2008-12-17 Thread Adriano dos Santos Fernandes
Matthew Hanlon wrote: This is a Jetty thing... One way to fix it is to suppress the jsessionid in the url. Jetty allows you to suppress the jsessionid in the url as a context parameters in the web.xml or webdefault.xml. Note, if the user does not have cookies enabled this will cause problems.

Re: Overriding Text No Records Found

2008-12-16 Thread Adriano dos Santos Fernandes
HITECH79 escreveu: Hallo, how can i override/modify the text No Records Found If you are talking about the DataTable component, write a YourApplication.properties on the same package as YourApplication class, and put: datatable.no-records-found=Nenhum registro encontrado Adriano

Re: CSS urls

2008-12-16 Thread Adriano dos Santos Fernandes
Knowing about HeaderContributor.forCss, I didn't realized that the images urls would be correctly resolved. Thanks. Wicket is so cool. :-) Adriano Martijn Dashorst escreveu: See HeaderContributor.forCss() Martijn On Tue, Dec 16, 2008 at 10:51 AM, Adriano dos Santos Fernandes adrian

Re: CSS urls

2008-12-16 Thread Adriano dos Santos Fernandes
No good/better way? The problem of using the web directory is that I can't do that with non-web utility projects in Eclipse and have the files being contributed to web projects. Adriano Adriano dos Santos Fernandes escreveu: Hi! What is the better way to handle CSS urls [background: url

Re: How to determine which page I am on?

2008-12-16 Thread Adriano dos Santos Fernandes
pieter claassen wrote: I am trying to write a menu that formats the link nicely for the page I am on. So far, the novomatic tut helped the most, but there is no detail on how to customize the implementation. My strategy is to determine which page I am on and then to set an attribute on the link

Re: Remove bulletpoints from messagetext in feedbackpanel

2008-12-15 Thread Adriano dos Santos Fernandes
HITECH79 escreveu: Hallo, how can i remove the bulletpoints from messagetext in the feedbackpanel?? With CSS stylesheet: li.feedbackPanelINFO { list-style-type: none; } li.feedbackPanelERROR { list-style-type: none; } Adriano

CSS urls

2008-12-13 Thread Adriano dos Santos Fernandes
Hi! What is the better way to handle CSS urls [background: url(...)], inside HTML style tags? As I see, wicket:link doesn't work, so I'm writing url(style.css) and putting style.css on the normal html directory. Obviously, this don't work if I mount pages with path different than /.

NPE when redeploying

2008-12-10 Thread Adriano dos Santos Fernandes
Hi! With Eclipse+Tomcat, that problems happens often when redeploying an application. Is it something that can be fixed? I'm using 1.4-rc1. Adriano WicketMessage: Exception in rendering component: [MarkupContainer [Component id = _header_0]] Root cause: java.lang.NullPointerException at

Re: using annotation @AuthorizeInstantiation

2008-12-05 Thread Adriano dos Santos Fernandes
Bruno Borges escreveu: Note that this is really type-safe, and these classes will never be instantiated. I don't think this has any value in this context. Where will the roles x user will be? On the database, certainly... So why declare dummy classes for them? If yon don't want to repeat

Session invalidation - 1.4-rc1

2008-12-02 Thread Adriano dos Santos Fernandes
Hi! After upgrade from m3 to rc1, a problem with session invalidation appeared. I have a Exit menu, using Ajax (AbstractDefaultAjaxBehavior). On its respond, it does: getSession().invalidate(); setResponsePage(HomePage.class); This worked with m3, but now nothing happens, and in the

Re: Session invalidation - 1.4-rc1

2008-12-02 Thread Adriano dos Santos Fernandes
PageParameters has being passed... Adriano Adriano dos Santos Fernandes escreveu: Hi! After upgrade from m3 to rc1, a problem with session invalidation appeared. I have a Exit menu, using Ajax (AbstractDefaultAjaxBehavior). On its respond, it does: getSession().invalidate

Monitor session size in Tomcat

2008-12-01 Thread Adriano dos Santos Fernandes
Hi! This is not a direct wicket question, but important for wicket usage, so I'm asking here... What you use to monitor Tomcat sessions size? (preferable something that I can use in production) I tried with JMX/jconsole and with LambdaProbe. The former doesn't seems to have that info, and

Re: Monitor session size in Tomcat

2008-12-01 Thread Adriano dos Santos Fernandes
So does that mean there is nothing already made to monitor session size at container level instead of application level? Adriano Johan Compagner escreveu: you can monitor what wicket does with the IRequestLogger On Mon, Dec 1, 2008 at 16:13, Adriano dos Santos Fernandes [EMAIL PROTECTED

Portlets (JSR-168) and Ajax

2008-11-22 Thread Adriano dos Santos Fernandes
Hi! I'm trying to create portlets with Wicket, to use in Oracle Portal. Portlets on it is with JSR-168 via WSRP. And I'm having trouble... But before go further, I want to know, with JSR-168 can I use Ajax? On my environment, Oracle Portal and the portlets application runs in different

Re: Portlets (JSR-168) and Ajax

2008-11-22 Thread Adriano dos Santos Fernandes
Thijs Vonk wrote: I have no experience with WSRP, but I do know that the portal should support a bit more then just jsr-168. See http://cwiki.apache.org/WICKET/portal-howto.html also the way DWR does it is different then the way wicket works. Sure. If I remember correctly DWR functions as a

Markup for a component interior

2008-11-18 Thread Adriano dos Santos Fernandes
I have a generic Form component (extends Form) and it adds child components to this. But where I place this form, I need to specify more content for the form interior. Kind of: form ... tags put by the Form class tags put by who inserted the class on the page /form In my prototype

Validators in 1.4-rc1

2008-11-18 Thread Adriano dos Santos Fernandes
I had this in 1.4-m3 working: long value = ...; textField.add(NumberValidator.maximum(value)); My textField is instantiated as TextFieldInteger and declared as TextField?, so I put a long validation for a Integer TextField. It also works in 1.4-rc1, but NumberValidator is deprecated.

Re: Validators in 1.4-rc1

2008-11-18 Thread Adriano dos Santos Fernandes
Jeremy Thomerson escreveu: how about new MaximumValidatorInteger(value)? The problem is that I'm iterating on a list of unknown text fields. And the maximum value is from a Entity using Hibernate Annotation. So it seems a valid case to validate a TextFieldInteger with a long. Adriano

Re: Markup for a component interior

2008-11-18 Thread Adriano dos Santos Fernandes
John Krasnay escreveu: You probably want to implement a Border instead of extending Form. Border is exactly what I was looking for. But I'm having problems [Cannot modify component hierarchy after render phase has started (page version cant change then anymore)] with component hierarchies.

Re: authenticatedWebApplication error with jaas

2008-11-14 Thread Adriano dos Santos Fernandes
francesco dicarlo escreveu: package it.eurosoft; import it.eurosoft.gui.module.login.LoginBase; import it.eurosoft.gui.module.pratiche.PraticheBase; import it.eurosoft.mapping.convenzioni.Convenzione; import it.eurosoft.util.MySession; import java.util.Locale; import

Re: offtopic (a bit ;) for all the generics lovers here on the list :)

2008-11-14 Thread Adriano dos Santos Fernandes
The code is not so cool as the compiler error messages! :-) Adriano Igor Vaynberg escreveu: youve never coded WTL? -igor On Fri, Nov 14, 2008 at 8:17 AM, Johan Compagner [EMAIL PROTECTED] wrote: Who has a real live example of this function:

Top-level classpath Resources

2008-11-07 Thread Adriano dos Santos Fernandes
Hi! With this: component.add(HeaderContributor.forCss(YuiButtonBehavior.class, yui/build/button/assets/skins/sam/button.css)); I need to put yui directory inside the directory of YuiButtonBehavior. How could I make yui a top directoy, i.e., just inside the resources (on the

Re: Top-level classpath Resources

2008-11-07 Thread Adriano dos Santos Fernandes
Bruno Borges escreveu: By the way, Adriano, there's a Wicket Portuguese community around there... If you want to join us, please feel free. groups.google.com/wicket-ptbr Yup. I'm there too. :-) Adriano - To unsubscribe,

Re: How does serialization work?

2008-11-04 Thread Adriano dos Santos Fernandes
I had a serialization problem (when redeploying the application in Tomcat) that I can't understand... Basically, I had this on my Page.onBeforeRender: --- visitChildren(TextField.class, new VisitorTextField?() { private static final long serialVersionUID =

Re: How does serialization work?

2008-11-04 Thread Adriano dos Santos Fernandes
Johan Compagner escreveu: thats simple what you there create is an inner class in an inner class... so your textfield has a ajax behavior that is an inner class fo the Visitor inner class so that behavior has a parent reference to the visitor.. make that ajax behavior his own class and your

Advice for a YUI Button Component

2008-11-04 Thread Adriano dos Santos Fernandes
Hi! I didn't found any project integrating YUI Button with Wicket, and I'd want it. The problem that I'm seen is that onclick should not be on the button tag, but specified from javascript. Would be possible to have *Link classes working (inheriting, or with behaviors) this way without need

Re: Advice for a YUI Button Component

2008-11-04 Thread Adriano dos Santos Fernandes
Thanks, Nino. That is the good and easy way that I want to know. Adriano Nino Saturnino Martinez Vazquez Wael escreveu: Sure.. Just make the javascript call what ever the link calls.. You can see the input events contrib on wicketstuff on howto do this.. Adriano dos Santos Fernandes wrote

Re: Redirect from an AjaxSelfUpdatingTimerBehavior

2008-11-03 Thread Adriano dos Santos Fernandes
Done: https://issues.apache.org/jira/browse/WICKET-1911 Adriano Igor Vaynberg escreveu: yes -igor On Sat, Nov 1, 2008 at 11:25 AM, Adriano dos Santos Fernandes [EMAIL PROTECTED] wrote: Yes. Do you want a quickstart demonstrating the problem

Re: Redirect from an AjaxSelfUpdatingTimerBehavior

2008-11-01 Thread Adriano dos Santos Fernandes
Yes. Do you want a quickstart demonstrating the problem? Adriano Igor Vaynberg wrote: does it work if you do not use ajax? -igor On Fri, Oct 31, 2008 at 6:38 AM, Adriano dos Santos Fernandes [EMAIL PROTECTED] wrote: Francisco Diaz Trepat - gmail escreveu: Hi Adriano, maybe

Redirect from an AjaxSelfUpdatingTimerBehavior

2008-10-31 Thread Adriano dos Santos Fernandes
Hi! I added AjaxSelfUpdatingTimerBehavior to a WebMarkupContainer (div), and inside its onPostProcessTarget I loaded a PDF (ResourceStreamRequestTarget) and called RequestCycle.get().setRequestTarget(requestTarget). After that, redirection doesn't happen, and I see the PDF content on the

Re: Redirect from an AjaxSelfUpdatingTimerBehavior

2008-10-31 Thread Adriano dos Santos Fernandes
Francisco Diaz Trepat - gmail escreveu: Hi Adriano, maybe looking for PDF dynamic resource will bring something up. We had a similiar issue and discussed it on the list a while ago. f(t) Are you referring to this one http://www.nabble.com/Hi%2C-PDF-Question-td15050471.html#a15065319? It seems

Background processing

2008-10-31 Thread Adriano dos Santos Fernandes
Hi! AFAIK, processing for ResourceStreamRequestTarget is not synchronized, so I can have more than one running in the same session. But due to my other problem, I had to wrap it on a Page to redirect. But that suspend user interaction until a report is completed, a thing that I don't want.

Re: Background processing

2008-10-31 Thread Adriano dos Santos Fernandes
.. Adriano dos Santos Fernandes wrote: Hi! AFAIK, processing for ResourceStreamRequestTarget is not synchronized, so I can have more than one running in the same session. But due to my other problem, I had to wrap it on a Page to redirect. But that suspend user interaction until a report

Re: Background processing

2008-10-31 Thread Adriano dos Santos Fernandes
Nino Saturnino Martinez Vazquez Wael escreveu: Ahh forget full me! there is ofcouse another option :) In wicketstuff theres the progress something contrib. That might just be what you are looking for. http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-progressbar Hmm

Re: Redirect to a page on a new browser window

2008-10-29 Thread Adriano dos Santos Fernandes
To make this work in Firefox with window.open, it seems I need Sjax (synchronous) to call window.open just inside the onclick handler. Is it possible in Wicket, in any way? Adriano Adriano dos Santos Fernandes escreveu: In a non-Wicket application, I had a page for report parameters

Redirect to a page on a new browser window

2008-10-24 Thread Adriano dos Santos Fernandes
In a non-Wicket application, I had a page for report parameters editing and an execute button. Parameter validation was is Javascript, and I want my report opening on a new browser window. I done it with a form target=_blank tag. Now with Wicket, I succeeded done the same thing but I have

Override panel markup

2008-10-23 Thread Adriano dos Santos Fernandes
Hi! I would want to override a panel markup, for instance, I want to add a SignInPanel to my page but don't want to use builtin SignInPanel.html. Is there a way to do it, preferable without creating a specific html file for the new component, i.e., I want to override the content direct on

Re: Call the server from a javascript function

2008-10-08 Thread Adriano dos Santos Fernandes
jWeekend escreveu: Adriano, Create the AbstractAjaxBehaiour you want, call getCallbackUrk() on it and use the returned URL as a parameter to wicketAjaxGet in the JavaScript you're generating. Thanks, Cemal. I'm now able to go further. Adriano

Prevent component markup regeneration in ajax call

2008-10-07 Thread Adriano dos Santos Fernandes
Hi! I'd like to have extjs toolbar/menu working with Wicket ajax. What I want is, for example, in an ajax event show/hide menu items. I created the classes and the menu is rendered correctly. My toolbar render everything from its renderHead (IHeaderContributor) method. All javascript code

Re: Prevent component markup regeneration in ajax call

2008-10-07 Thread Adriano dos Santos Fernandes
Timo Rantalaiho escreveu: On Tue, 07 Oct 2008, Adriano dos Santos Fernandes wrote: So my question is how I could prevent wicket from regenerate the div when updating a component added to an AjaxRequestTarget? Not sure if this helps, but you can always add smaller parts inside your div

Call the server from a javascript function

2008-10-07 Thread Adriano dos Santos Fernandes
I need to call the server side from a javascript (generated by a component) function. Kind of Link/AjaxLink onClick, but instead of have it attached to a DOM event, I need to generate the javascript function that does the job. Could you point me out how I could do it? Adriano

Re: wicket:link, markup inheritance and packages

2008-10-01 Thread Adriano dos Santos Fernandes
Should I create a Jira issue for this? (using BookmarkablePageLink works correctly) Adriano Adriano dos Santos Fernandes wrote: Hi! I've created a BasePage.html/java in directory/package mm.sistema.web. Its body is: body wicket:link a href=HomePage.htmlHome/a a href

wicket:link, markup inheritance and packages

2008-09-30 Thread Adriano dos Santos Fernandes
Hi! I've created a BasePage.html/java in directory/package mm.sistema.web. Its body is: body wicket:link a href=HomePage.htmlHome/a a href=adm/ADM0190F.htmlADM0190F/a /wicket:link br / br / wicket:child / /body In same directory I have the HomePage.html,

Re: The Wicket Reflex Game Post thoughts?

2008-09-26 Thread Adriano dos Santos Fernandes
Nino Saturnino Martinez Vazquez Wael wrote: Hi Guys One of the major problems with the game are that if you click a box(AjaxEventBehavior) while the heartbeat(AbstractAjaxTimerBehavior) are in process you will get an error, since the box's component has changed and no longer carries that

Session lost when redeploying

2008-09-25 Thread Adriano dos Santos Fernandes
Hi! On a non Wicket application running on OC4J, I had the problem of the HTTP session being lost when the application was redeployed. The usage of session data was minimum, for authentication purpose. I'd solved the problem with a custom encrypted cookie that reconstructs the server session.

Re: WebResource and authentication

2008-09-11 Thread Adriano dos Santos Fernandes
Am I on wrong direction? How can I have a PDF generator integrated with Wicket authentication? I can't image how can I ask Wicket if user is authenticated or not. I don't even see how can I access the Session from WebResource... Adriano Adriano dos Santos Fernandes escreveu: H! I

Dynamic (generated) HTML

2008-09-11 Thread Adriano dos Santos Fernandes
Can wicket be used with dynamic (generated) HTML? I mean, for example, HTML is generated to a stream based on a table metadata and wicket reads that stream and call the page class to add logic (also querying the metadata) to it normally (as if the HTML was static). If yes, can anyone point

Re: WebResource and authentication

2008-09-11 Thread Adriano dos Santos Fernandes
Serkan Camurcuoglu escreveu: Session javadoc says: *Access via Thread Local *- In the odd case where neither a RequestCycle nor a Component is available, the currently active Session for the calling thread can be retrieved by calling the static method Session.get(). This last form should

WebResource and authentication

2008-09-09 Thread Adriano dos Santos Fernandes
H! I inherited my application class from AuthenticatedWebApplication so my pages requires authentication. It worked. But I've created a class inherited from WebResource to deliver Jasper Report in PDF and mounted it with this code: mountSharedResource(/Report, new

Authentication and authorization not working

2008-09-02 Thread Adriano dos Santos Fernandes
Hi! I'm starting with Wicket. Yesterday I created a test and put basic authentication and authorization to work. After some changes, it doesn't work anymore. Basically, I have this: WebSession class extending AuthenticatedWebSession Application class overriding getHomePage(),

Re: Authentication and authorization not working

2008-09-02 Thread Adriano dos Santos Fernandes
I figured the problem myself... I didn't called super.init() when I override Application.init. Adriano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]