Craig: didn't consider that. So, no clean solution seems to be possible.
Pedro: yes I was talking about having the wicket-tags turned on for the
application except for a certain (xml) page, since it is causing parse
errors in the xml there.
Antoine
On Tue, Sep 29, 2009 at 9:23 PM, Craig McIlwee
Hi *,
i would like to know if there "hidden" consequences if i exchange
sharing by attribute through sharing by static determination.
To couple my event-components with it's higher ranking components i use
a listener based approach. Each parent adds a
listener to the child can be involved if a
Feel free to upgrade it to 1.4.
It should be easy. Just check out the code, follow the instructions at
http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html
and if you wish donate your work back to community.
El mié, 30-09-2009 a las 14:37 +0800, 新希望软件 -- 俞宏伟 escribió:
> I find lastest code
http://svn.carmanconsulting.com/public/wicket-advanced/ doesn't work.
-Original Message-
From: Maarten Bosteels [mailto:mbosteels@gmail.com]
Sent: 27. september 2009 19:58
To: users@wicket.apache.org
Subject: Re: Where can I find this Wicket application?
http://svn.carmanconsulting.c
Hi,
I am trying to show validation errors on a page. Somehow it won't function! But
I don't understand why?
I mean I am using the right Validation class... Why don't wicket show any error
when the user does a wrong input?
Thanks!
import java.util.Date;
import org.apache.wicket.markup.html.f
Hi Peter
Try adding a FeedbackPanel to your page Without that, wicket doesn't
even know where and how to display the messages.
Matt
Peter Arnulf Lustig wrote:
Hi,
I am trying to show validation errors on a page. Somehow it won't function! But
I don't understand why?
I mean I am using
Thank you! That does it!
- Ursprüngliche Mail
Von: Matthias Keller
An: users@wicket.apache.org
Gesendet: Mittwoch, den 30. September 2009, 10:23:11 Uhr
Betreff: Re: Show Validation Errors
Hi Peter
Try adding a FeedbackPanel to your page Without that, wicket doesn't
even know whe
I'm having a similar, but different problem.
I have a PasswordResetPage for reseting a user password.
I am using Spring Security and need to link to it from a login.jsp.
So in my WebApplication class I have:
mountBookmarkablePage(ConstantsCommon.PASSWORD_RESET_PATH,
PasswordResetPage.class);
Hi,
I'd like to create a delete link where you can delete a row in a datagrid. But
when you click on the delete link, the delete label should change and a warning
occurs: "Do you really want to delete xyz".
After the second click it finally deletes the content.
How can I achieve that? Could you
In addition:
my specific problem is, that after clicking on a link which is generated in the
datagrid, I am not able to manipulate other components!?
How is this possible?
- Ursprüngliche Mail
Von: Peter Arnulf Lustig
An: users@wicket.apache.org
Gesendet: Mittwoch, den 30. September
Hi Peter
For that we usually add an AttributeModifier which adds something like
that to the onclick javascript event:
if (!confirm('Do you really want to delete this entry')) return false;
Matt
Peter Arnulf Lustig wrote:
Hi,
I'd like to create a delete link where you can delete a row in a d
What about replacing the link. e.g. via AJAX, with a new one containing
the "Do you really want to delete xyz" warning... that once clicked actually
deletes your entry... and refreshes the datagrid. You could even use the
same link and have a flag that says "userWantsToDeleteRow" and use it to
cond
Hi Ernesto,
I don't get it: How can I change the Label-Text? When I try to change the Model
of the component Label, nothing happens. The page reloads and the Label has the
old Text (not the new one which is meant to be changed)
- Ursprüngliche Mail
Von: Ernesto Reinaldo Barreiro
A
I created a deteletButton as follows. I have a DeleteButton innerclass,
and a method that adds this button to the panel that is shown in the table.
private class DeleteButton extends Button {
private static final long serialVersionUID = 1L;
public DeleteButton(final String id, fin
Use an AJAX link inside a panel that you can replace via AJAX? Once the link
is clicked it will "go to back" to the page set the flag I'm on delete mode
and replace itself. All you have to do is has a model that says
if(onDeleteMode)
return "Do you really want to delete XYZ"?
else {
return "
Thank you! Your solution is really nice.
It functions well!
I have a problem which the datagrid. After removing a row in the database it
throws an exception, because wicket is unable to populate an item (I assume the
deleted one)
How can I tell wicket to reload the datagrid because something i
Hi all,
does someone know how to render a wicket component into a String?
Thanks
Luca
getMarkupStream().toString();
maybe?
- Ursprüngliche Mail
Von: Luca Provenzani
An: users@wicket.apache.org
Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr
Betreff: Rendered html to string
Hi all,
does someone know how to render a wicket component into a String?
Thanks
Luca
http://mail-archives.apache.org/mod_mbox/wicket-users/200811.mbox/%3c5de41c7d0811050222r5948a447r5fd68b5cefac5...@mail.gmail.com%3e
2009/9/30 Peter Arnulf Lustig :
> getMarkupStream().toString();
> maybe?
>
>
>
>
> - Ursprüngliche Mail
> Von: Luca Provenzani
> An: users@wicket.apache.org
no clean solution seems to be possible.
Inheritance seems to be clean
On Wed, Sep 30, 2009 at 4:03 AM, Antoine van Wel
wrote:
> Craig: didn't consider that. So, no clean solution seems to be possible.
>
> Pedro: yes I was talking about having the wicket-tags turned on for the
> application excep
Don't display the tag
1- I am using a wicket panel to create a component here is the code.
... some code
2- The call to the component is
actions
3- The generated HTML by wicket is
... some code
4- The tag is breaking som
oops, yes, you are right! :-)
2009/9/30 Peter Arnulf Lustig
> getMarkupStream().toString();
> maybe?
>
>
>
>
> - Ursprüngliche Mail
> Von: Luca Provenzani
> An: users@wicket.apache.org
> Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr
> Betreff: Rendered html to string
>
> Hi
In your Application class add the following line:
getMarkupSettings().setStripWicketTags(true);
Martin Letendre wrote:
>
> Don't display the tag
>
> 1- I am using a wicket panel to create a component here is the code.
>
>
>
>... some code
>
>
>
>
> 2- The call to
Hallo,
I came across strange problem I do not know whether it is mine fault or
wicket's problem.
On a page, there is a widget, which list news records.
Each record has an edit and delete link. Edit link opens new dialog in jquery's
thickbox window, which is practically IFrame.
The code for page
if you want just one component in the hierarchie to be rendered to a
String you have to make a Behaviour and use the StringResponse-class to
replace the hole Response in beforeRender for this component.
in onRendered you can add the string again to the hole Response. We do
this for caching HTML Fra
it seems to be interesting for us... can you send a code example?
2009/9/30 Martin Sachs
> if you want just one component in the hierarchie to be rendered to a
> String you have to make a Behaviour and use the StringResponse-class to
> replace the hole Response in beforeRender for this component
maybe you want have an custom WicketNamespaceHandler
On Wed, Sep 30, 2009 at 8:01 AM, Alex Objelean wrote:
>
> In your Application class add the following line:
>
> getMarkupSettings().setStripWicketTags(true);
>
>
> Martin Letendre wrote:
> >
> > Don't display the tag
> >
> > 1- I am using a wi
I used this with a AjaxFallbackDefaultDataTable and then I didn't have
to tell it that the DB had changed.
Peter Arnulf Lustig wrote:
Thank you! Your solution is really nice.
It functions well!
I have a problem which the datagrid. After removing a row in the database it
throws an exception,
could you tell me how to use this?
I have a Dataview like this:
dataView = new DataView("benutzer", new
AdministratorDataProvider()) {
}
thanks!
- Ursprüngliche Mail
Von: Linda van der Pal
An: users@wicket.apache.org
Gesendet: Mittwoch, den 30. September 2009, 13:37:44 Uhr
Betreff:
My component is ment to be distribute to a third party. I have no access to
the Application class. Is there a way to apply the same behavior to a single
component...
On Wed, Sep 30, 2009 at 7:01 AM, Alex Objelean wrote:
>
> In your Application class add the following line:
>
> getMarkupSettings(
take a look at how GMap2 component resolve that problem:
/**
* @see
org.apache.wicket.MarkupContainer#onRender(org.apache.wicket.markup.MarkupStream)
*/
@Override
protected void onRender(MarkupStream markupStream)
{
super.onRender(markupStream);
if
(Applic
I think ajax fallback strategy is a good idea:
class AjaxFallbackEvent{
void handleSomething( target){
// user implementations test for target == null
}
}
On Wed, Sep 30, 2009 at 4:38 AM, Per Newgro wrote:
> Hi *,
>
> i would like to know if there "hidden" consequences if i exchange sharing
table = new AjaxFallbackDefaultDataTable("datatable", createColumns(),
contentProvider, 10);
@Override
protected IColumn[] createColumns() {
IColumn[] columns = new IColumn[3];
columns[0] = createActionsColumn();
columns[1] = new PropertyColumn(new
ResourceModel("label.n
Another approach would be to created a model window to appear when the
delete link is clicked. With the message "Are you sure you want to delete
xxx?" If you select yes, the row is deleted then ajax is used to refresh
the dataview. Let me know if you want to use this approach and I will post
Hi,
I was just trying to create a component of my own which - in some of my pages -
is created without a model. In the initModel() method I would then call
super.initModel() and wrap the resulting model for use in a child component. The
problem is the initialization order:
The child model's initM
How do you achieve, that the dataview is refreshed after clicking "delete"?
- Ursprüngliche Mail
Von: rmattler
An: users@wicket.apache.org
Gesendet: Mittwoch, den 30. September 2009, 14:51:19 Uhr
Betreff: Re: How would you realize a "delete"-Link in a datagrid row?
Another approach
If you're distributing it to third parties, it's really their problem - in
that this will be universal for all components in their app. If they don't
want the tags there, they will strip them (which is default in production).
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Sep 30, 20
I did not override the method.I just did and it is still not
working. Here is what I have:
Also, where would one find this type of information. I don't think the
online example show it and blindly guessing methods to look at in
javadoc doesn't seem efficient.
HTML:
Hi. I have a problem with this example code:
tinyMceBehavior = new TinyMceBehavior();
PropertyModel richProperty = new PropertyModel(model, "rich");
add(new AjaxCheckBox("switchRte", richProperty) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
On Thu, Nov 27, 2008 at 5:57 PM, Martijn Lindhout
wrote:
>
> Hi all,
>
> I searched nabble, but couldn't find any recent posts that brought me a
> solution to this problem:
>
> I have a page with two panels, a master/detail setup. The master has a list
> of items, the detail a TinyMCE editor. The
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)
{
I believe the code that causes the problem is
#
@Override
#
protected CharSequence getURL()
#
{
#
return super.getURL() +
String.format("&TB_iframe=true&height=%d&width=%d&modal=false", getHeight(),
getWidth());
#
}
IFAIK wicket encodes URL paramet
Hi all,
I have an enum type e.g.
public enum MapType
UNDEFINED,ROADMAP,MOBILE,SATELITE,TERRAIN,HYBRID;
public static String toKeyword(MapType mapType) {
switch (mapType) {
case ROADMAP:
return "roadmap";
...
public static MapType fromKey
Sorry spelling error not model window but modal window.
rmattler wrote:
>
> Another approach would be to created a model window to appear when the
> delete link is clicked. With the message "Are you sure you want to
> delete xxx?" If you select yes, the row is deleted then ajax is used to
yes I thought it... :)
How do you achieve that the dataview is refreshed after deletion of a row?
- Ursprüngliche Mail
Von: rmattler
An: users@wicket.apache.org
Gesendet: Mittwoch, den 30. September 2009, 16:19:11 Uhr
Betreff: Re: How would you realize a "delete"-Link in a datagrid r
Hi Petr
We use a custom EnumConverter for that. It can be added to the
application like so:
@Override
protected IConverterLocator newConverterLocator () {
ConverterLocator converterLocator = (ConverterLocator)
super.newConverterLocator();
converterLocator.set(MyEnum.class,
I tried JBoss JBPM and it worked for complex compound workflows. It also had
a eclipse designer plugin that could save the workflow image and provided a
class that visualised the current workflow state.
It had persistence module that was based on Hibernate. I had just to
implement simple UI to pr
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()
{
On my applications I add an IStringResourceLoader that looks for resources
at packages where beans are defined... So, all I do is register a key like
xxx.mypakage.MapType:MOBILE and then this IStringResourceLoader will look
for a resource file namedBeans.properties at package xxx.mypakage and then
Sorry, I should has said Igor and Juergen... look
for org.apache.wicket.resource.loader.PackageStringResourceLoader
Ernesto
On Wed, Sep 30, 2009 at 4:37 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:
> On my applications I add an IStringResourceLoader that looks for resources
> at pac
igor.vaynberg wrote:
>
> form {
> onsubmit() {
>try {
> users.persist(getmodelobject());
>} catch (usernamealreadyexistsexception e) {
> error("error.username.exists");
>}
>}
> }
>
> -igor
>
Thanks, it works like a charm. I did not know I co
why do you use an exception for user already exits?Don`t you think that
return true/false, could be better?
i said that, because if the application start growing, you will have lot of
exceptions class.
thanks,
NM
On Wed, Sep 30, 2009 at 4:43 PM, Paul Huang wrote:
>
>
>
> igor.vaynberg wrote:
>
The AbstractValidator approach is fine, or you can do it the shorter
way the Igor showed.
Either way, when the page that has the username is submitted, you're
going to have to write that record to the database, even if you don't
have all the info. The way you wrote the question, I presume you
It's not possible to add TinyMCE dynamically due to the way TinyMCE works.
What you can do however, is pre-load TinyMCE, and dynamically enable/disable
it on a component.
Daniele Dellafiore wrote:
>
> Hi. I have a problem with this example code:
>
> tinyMceBehavior = new TinyMceBehavior()
Actually AFAIK the resources just need to be on path, then you can pretty
much do whatever you want. Could be what your definition of preloading are
:)
I have a panel that are added by ajax so I had to make sure the resources
used by that panel always where on the containing page.
regards
2009/9
I have tried removing the override completely, but it did not help. I just
would like to know, whether I am doing something obviously stupid, or if I
should start debugging deeper or make a quickstart.
Vit
>
> I believe the code that causes the problem is
>
> #
> @Override
> #
>
Wrap the dataview in a WebMarkupContainer .
1) Create a WebMarkupContainer
2) Create your data view
3) Add the dataview into the wmc
4) Don't forget to set .setOutputMarkupId(true); on the dataview
5) On the return of the Modal window refresh the target I.E.
target.addComponent(wmcDataTable
actually you got it completely wrong. especially as your project, and
the number of devs who work on it, grows exceptions are a much more
scalable way of handling errors.
1) the compiler tells you exactly what the exceptions are right off the bat
2) exception class name gives you a clue as to what
Well, that's what I meant with "preloading". You cannot use TinyMCE if you're
loading its javascripts from your ajax request. If the TinyMCE scripts are
loaded from the containing page, then it will work (as you say).
nino martinez wael wrote:
>
> Actually AFAIK the resources just need to be on
Hi,
I've been using Wicket now for a couple of weeks and am getting on
pretty well with it. I still run into issues occasionally though, and
I'd like to know what the "recommended" way of solving this one is!
I have the following HTML snippet in a component:
Model
see FormComponentLabel and SimpleFormComponentLabel
-igor
On Wed, Sep 30, 2009 at 8:34 AM, Phillip Sacre
wrote:
> Hi,
>
> I've been using Wicket now for a couple of weeks and am getting on
> pretty well with it. I still run into issues occasionally though, and
> I'd like to know what the "recomm
That's great, thanks - I knew there must be a simple way of doing it!
Phill
-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: 30 September 2009 16:36
To: users@wicket.apache.org
Subject: Re: Newbie question - HTML Labels and IDs
see FormComponentLabel and Sim
On Wed, Sep 30, 2009 at 4:40 PM, Ernesto Reinaldo Barreiro
wrote:
Thank you for the prompt reply to all of you.
> for org.apache.wicket.resource.loader.PackageStringResourceLoader
Currently I used iteration through getStringResourceLoaders(), later
on I'd like to implement EnumConverted as advi
Hi All,
I'm not sure if this is a Wicket, Spring or WebSphere issue or some combination
of the 3.
General Setup:
WebSphere 6.1, wicket 1.3.7, Spring 2.5.6
Specific Setup:
1 EAR contains 2 WARs, call them WAR1 and WAR2.
Each WAR uses the Wicket & Spring frameworks.
The EAR is deployed to WebSphe
that is what I do.
enable disable for me means add/remove to/from a component, while the
javascript is loaded as the page is loaded.
but, after removing the behavior, the save generate that error.
or maybe you mean something different with enable/disable.
On Wed, Sep 30, 2009 at 4:50 PM, bgooren
You're right, getDefaultModel ensures initialization. I should have suggested
that instead of getModel (which is not available in the component class anymore
in 1.4.x).
However, I did not want to override the initModel() method (and copy most of its
code) just for that. So now I solved it by creat
why not
class mytextefield extends panel {
public mytextfield {
add(new textfield() { initmodel() { return
mytextfield.this.getdefaultmodel(); }});
}
}
since this is essentially what you want to do - have textfield use the
same model as the panel.
-igor
On Wed, Sep 30, 2009 at 9:47
Only a shot in the dark, but is
typeBox.setOutputMarkupPlaceholderTag(true) helping? You could use it
instead of
setOutputMarkupId(true), because its done there to. Otherwise i would
have to create a testcase for this situation.
There are different places to get informations:
- search this lis
On Wed, Sep 23, 2009 at 7:49 PM, Giovanni wrote:
> Hi,
>
> are there any Wicketers living in Turin, Italy?
Hi, Milano :)
--
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella
-
To unsubscribe, e-mail: users
Hi, you have to user a classloader per Webapp, so the InjectorHolder has
for each webapp the correct Springcontext. (injectorholder uses a static
variable)
martin
Steve Hiller schrieb:
> Hi All,
>
> I'm not sure if this is a Wicket, Spring or WebSphere issue or some
> combination of the 3.
>
> G
That's my point.
If your url is getting replaced, then it isn't using ajax.
It is redrawing the page.
D/
On Sep 29, 2009, at 3:56 PM, Pedro Santos wrote:
> I'm using the AjaxPagingNavigation component and it works well, but
> when I
> click on one of the links, my url is replaced with
>
> /?
Ok, it is a bug. Could you send us some code? I'm curios to see the html
code generated to link on your page.
On Wed, Sep 30, 2009 at 3:59 PM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:
> That's my point.
>
> If your url is getting replaced, then it isn't using ajax.
> It is redrawing
Adding the call to that method seemed to solve the problem.
The places you mentioned are the usual places to look for information.
However I searched the list, read the wiki, checked the examples, and
looked through some books. I also tried to google what I was trying to
do.
It just seemed lik
The books you mentioned are the places to look at.
If i google "wicket component not visible" the third entry brings up the
solution.
And in the list this question was answered quite often. But it surely
depends on
search phrase. But now it's answered again.
At least here you will get almost
Hi-
How do I make a bookmarkable link to the parent window from a Modal
window? I added a bookmarkable link and http://localhost:8080/my/page/wicket:pageMapName/modal-dialog-pagemap
How can I remove the page map name? It looks like I could set the
IPageMap on the BookmarkablePageLink, but from
I searched the JIRA for IChainingModel and didn't get any hits. Did
anyone create a JIRA issue? Here's an implementation of mine.
public class BaseChainingModel implements IChainingModel {
private static final long serialVersionUID = 1L;
private Object target;
public Bas
I don't think one was ever created and it fell off my radar. If you create
one, can you post yours and post a link to it back on this thread?
Thanks!
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Sep 30, 2009 at 4:45 PM, Scott Swank wrote:
> I searched the JIRA for IChainingMode
https://issues.apache.org/jira/browse/WICKET-2498
We're still on Wicket 1.3.5, so I put in a 1 hour estimate for someone
to add generic typing.
Scott
On Wed, Sep 30, 2009 at 3:58 PM, Jeremy Thomerson
wrote:
> I don't think one was ever created and it fell off my radar. If you create
> one, ca
We are also trying to find the right balance of how much we move to
declarative. It will depend on how well we get Web Flow to fit in. With
Wicket being Controller-less and wanting to launch right into the "home"
page, Web Flow is a clear candidate to do initial data load and logic to
determine th
Well.. I have a class that overrides AjaxPagingNavigation
I just add that to my page.
Class & markup below:
> public class BSPagingNavigator extends AjaxPagingNavigator {
>
> private static final long serialVersionUID = -1l;
>
> IPageable pageable;
>
> public BSPagingNavigator(Stri
I just realized that this might be what you wanted to know..
2
On Sep 30, 2009, 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.
Hi - hopefully I can explain this clearly...
I understand that I can use the AjaxEventBehavior to refresh the contents of
any components that I have on the screen or add new components.
I am trying to use a tooltip to display additional details for grid data. I
plan to use a tooltip library wh
search this list for how to generate emails with wicket. there are a bunch
of posts of that sort. that will teach you how to render a component to a
string. this could be used to return the contents.
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Sep 30, 2009 at 8:10 PM, Joe Hudso
> Also, because we run in very large clusters, redirects
> are out of the question due to the potential that the second request
hits
> a different server before HTTP session has been properly
persisted/shared.
Can't you set up server affinity for the cluster to avoid that from
occurring?
We use server affinity but you can't guarantee same server and I can't go in
with a <100% plan. We have had funny routing in some cases where requests
from the same user even bounce from one data center to another... and back.
We've done a lot of work to prevent these things but in the end it's nev
85 matches
Mail list logo