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
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.
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
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
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
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
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
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
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
-
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
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
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
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
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:
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
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
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
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
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)
{
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);
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
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:
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
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
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
, 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
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
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
, 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
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
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
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
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
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
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
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
miro escreveu:
here is my code
public void onClick(AjaxRequestTarget target) {
if(assignProgramsDTO.getGrantsAssigned().size()==0){
getPage().error(Please assing grants);
return;
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
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)
{
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
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
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
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
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.
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
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
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
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
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
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 /.
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
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
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
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
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
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
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
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
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
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.
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
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.
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
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:
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
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,
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 =
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
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
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
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
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
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
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
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.
..
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
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
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
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
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
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
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
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
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
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
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,
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
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.
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
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
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
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
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(),
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]
94 matches
Mail list logo