https://issues.apache.org/jira/browse/WICKET-470
And already an implementation attached that works.
just need to test that for multiply situations
johan
On 4/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
That's a good point. How about opening a feature request for this
(though no promise
And I also admit that I don't have the same patience as yours,
providing code snippets all the time, answering to every question
with such accuracy :-)
Congratulations, Igor!
+1 Igor for president!
-
This SF.net
Hi,
I'm currently writing a CMS in wicket. One of the things I'm wanting to do
is make it nice and flexible to be able to design new templates for
rendering the page.
I'm looking at producing an image gallery at the moment.
For the moment I'm using dummy.jpg or something similar in the html
Peter,
Thank you for sharing your experience with me. I'm beginning to come to
the same conclusions, so it's nice to hear the experiences of others.
I've looked a little bit into mootools, yui, scriptaculous, and dojo.
mootools: unless I'm blind, I can't find any docs. Since I'm not a js
guru,
Hi Andrew,
Your use-case is exactly what Wicket is about. In the template file, use
wicket:id attributes on the img tag. Place these tags in some kind of
container (span or div element) to be able to repeat it. In the code you
can attach an instance of Image (or variations, see javadoc). Use a
Hi,
Thanks for your reply.
I'm familiar with wicket (reasonably anyway), that may not have been clear
from the post.
The admin of the CMS system is all using wicket, and I'm fairly happy with
that.
The situation is where the CMS content template pages are unknown in
structure, but I just want to
Hello everybody,
I'm quite new to Wicket, and to web component framework to.
Until now I just try simple examples, which seem to work (really) fine.
So now, I want to pass to a little more complexe one, to try to
understand how things work in Wicket (version 1.3).
I work on LDAP directories,
updated
On 4/24/07, JulianS [EMAIL PROTECTED] wrote:
Update to Using frames on the Wicket Wiki:
http://cwiki.apache.org/WICKET/using-frames.html
I'm using 1.2.5 and I've found the syntax has changed slightly. Instead
of:
FRAME src=myapp?pagemap=leftframebookmarkablePage=
Hi Andrew,
I see. Yes that makes it quite different. I am not knowledgeable enough
on dynamic templates. So other could help you better.
There are a few other attempt to write Wicket components for a CMS.
Perhaps you can learn from those.
http://burgerweeshuis.sourceforge.net/
I want to start responce step immediately and I have to use the
following strange code:
throw new AbstractRestartResponseException() {
};
Why is this class abstract?
--
Andrew Klochkov
-
This SF.net email is
Because the exception is meant to be abstract. Use
RestartResponseException instead.
The generated javadoc [1] clearly tells the direct subclasses, and
your IDE should also be able to tell which are the subclasses
(Eclipse: press f4 on the AbstractRestartResponseException).
Martijn
[1]
Providing the source class and its corresponding Test class
package com.bsideinc.bsidecom.wicket.pages.sections;
import com.bsideinc.bsidecom.wicket.pages.DefaultBsidePage;
/**
* User: gutter
* Date: Feb 8, 2007
* Time: 1:38:03 PM
*/
public class DefaultHomePage extends DefaultBsidePage {
Dear Sirs,
The scenario is the following:
- Page1 Form1 (innerClass) input1(String)... inputN(String)
- Page2 Link/Button (whatever for going back to Page1 - has a reference
object of Page1)
...
- PageN Link/Button (idem)
It happens that, when flowing-back from Page2, or... PageN, to
This example renders correctly, but every time I edit one of the
values and hit the submit button, the TextFields are reverting to
their initial value. The desired behavior is that the 'strings' list
will be updated with whatever I enter into the text fields. What am I
doing wrong? I am
Sorry to make a short note:
http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html
Basically you need to setReuseItems(true) or use a repeater.
Martijn
On 4/24/07, Jesse Barnum [EMAIL PROTECTED] wrote:
This example renders correctly, but every time I edit one of the
values and hit
I'm now using Wicket 1.3 but, still, thanks for this release,
especially this part :
this interim release is provided outside of the ASF, solely as a service to
existing Wicket users to resolve existing bugs in the Wicket product.
It really shows how great a team you're !
Keep up the good work
Thanks for your answers.
I've read that one can override the method getStatelessHint() as following :
protected boolean getStatelessHint()
{
return true;
}
to have a stateless form/component.
However, in the SignInForm
Thanks, that's what I needed.
--Jesse Barnum, President, 360Works
http://www.360works.com
(770) 234-9293
On Apr 24, 2007, at 8:53 AM, Martijn Dashorst wrote:
Sorry to make a short note:
http://cwiki.apache.org/WICKET/listview-and-other-repeaters.html
Basically you need to
Hello, I tried to search through the forum, but I couldnt find answer, I hope
it is easy.
Consider html page where is a filtering form with this possibilities:
input type=radio / No filter input type=radio / FiltrSpecific :
input type=text / input type=radio / Filtr all
In java code, I
Thanks... Where is the best place to keep up to date on the snapshots? Are
you versioning them yet and is there a current recommended snapshot or
should we plan to keep up to date with the latest?
Jamie
igor.vaynberg wrote:
first start off by showing your code. second, update to the latest
Hi,
Thanks for your reply.
I'm familiar with wicket (reasonably anyway), that may not have been clear
from the post.
The admin of the CMS system is all using wicket, and I'm fairly happy with
that.
The situation is where the CMS content template pages are unknown in
structure, but I just
Hi all
As I'm new to wicket, I often wonder (especially when I encounter
hurdles ;)) if the approach I take is the good one. So, if you don't
mind, I will quickly introduce what I try to do, then present the
solution I've retained up to now and, finally, the current hurdle ;).
Feel free to
I've had a go with the freemarker panel, and can get a simple example going.
The thing is, instead of having a panel with a span tag, I'd like to
actually parse the whole .html template file that gets generated by wicket.
Does anyone know if it's possible to do that?
Is there a way of getting
On 4/24/07, Francois Armand [EMAIL PROTECTED] wrote:i only have time to
help you with one, so here goes
(I think that the printing of an entry would work on the same model,
say :
* given an entry {
print the dn ;
for each attribute {
select a formatting method;
for each value {
you cannot navigate from page1-page2 via a link because that will not
submit the form, and so you will lose all your values.
try submitlink and make sure there are no form errors - ie all models have
been updated with proper values - and then navigate to page2.
-igor
On 4/24/07, manu [EMAIL
you can put any kind of component into your RadioGroup container, it only
exists as a boundary for Radio components inside it. so to make it short add
the textfields into the radiogroup.
-igor
On 4/24/07, kubino [EMAIL PROTECTED] wrote:
Hello, I tried to search through the forum, but I
you best bet is to stay current via our svn.
there is also a maven repo with our stuff, but we make no guarantees about
it.
http://wicketstuff.org/maven/repository/
-igor
On 4/24/07, jamieballing [EMAIL PROTECTED] wrote:
Thanks... Where is the best place to keep up to date on the
see IResponseFilter, install your own and you are good to go.
-igor
On 4/24/07, Andrew Moore [EMAIL PROTECTED] wrote:
I've had a go with the freemarker panel, and can get a simple example
going.
The thing is, instead of having a panel with a span tag, I'd like to
actually parse the whole
Shame on me, I didnt try this.
Thanks a lot.
igor.vaynberg wrote:
you can put any kind of component into your RadioGroup container, it only
exists as a boundary for Radio components inside it. so to make it short
add
the textfields into the radiogroup.
-igor
On 4/24/07, kubino
I tried what you suggested i.e. swap a different fragment in but I can't
seem to get it to work. I have the following. When I click on the delete
link I want fragment1 to be replaced with fragment2. However fragment2
remains and is shifted to the right. What am I missing or doing wrong?
Thanks
I DID search in the forums, and couldn't find reference to sending emails
from within the framework. I did find a post where someone mentioned
writing there own class for doing this.
Does that mean there isn't any built-in classes that handle sending of
emails from within Wicket? If not, can
For the actual sending, you need to use Java's normal mail API
(http://java.sun.com/products/javamail/) or e.g. Spring's mail module.
If you want to create emails based on templates with some variable
substibution, I'd recommend you use e.g. Velocity for that.
Eelco
I DID search in the
I understand. I'm using the wicket-contrib-velocity package for some page
generation, but I am unsure how I would generate a template /just/ for an
email. Would you have an example of that? Or be able to point me to a
tutorial, etc.?
Much appreciated.
Eelco Hillenius wrote:
For the actual
I have a page with a DropDownChoice box and 3 Forms. The Forms and
DropDownChoice belong to the same Panel. I would like to only show one
Form at a time via the selection made on the DropDownChoice box. I have
added a AjaxFormComponentUpdatingBehavior onchange to the
DropDownChoice and
do forms start out as invisible when the page renders first? if so try
calling setoutputmarkupplaceholdertag(true) on them, or repaint their common
parent.
-igor
On 4/24/07, John Carlson [EMAIL PROTECTED] wrote:
I have a page with a DropDownChoice box and 3 Forms. The Forms and
What's the easiest way to do a pageable/sortable list with Wicket? Looking
at the following example, there's quite a few files required to replicate
the DisplayTag's functionality.
http://www.wicket-library.com/wicket-examples/displaytag
Is this packaged up as a component I can use?
The other
This is not a particularly beautiful, finished, or even
properly-indented (not sure how that happened) implementation but it
does manage to send me text emails with templated contents including
URLs going back into Wicket:
On Tuesday 24 April 2007 2:14 am, Johan Compagner escreveu:
And I also admit that I don't have the same patience as yours,
providing code snippets all the time, answering to every question
with such accuracy :-)
Congratulations, Igor!
+1 Igor for president!
+1 Thanks to
see
http://wicketstuff.org/wicket13/repeater/
namely the datatable example
-igor
On 4/24/07, mraible [EMAIL PROTECTED] wrote:
What's the easiest way to do a pageable/sortable list with
Wicket? Looking
at the following example, there's quite a few files required to replicate
the
You might want to make it so you can dynamically generate a page title
where you need to, instead of always requiring a static page title. The
trick is to return an IModel from the getPageTitle method in your base
page. Here's how I've done it:
title wicket:id=pageHeaderTitleFoo/title
public
This should get you started:
http://www.theserverside.com/tt/blogs/showblog.tss?id=SpringVelocityEmail
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control
this is bad. getpagetitle() might get called from a partially constructed
object
it should be
public BasePage() {
add(new Label(pageHeaderTitle, new pagetitlemodel()));
}
private class pagetitlemodel extends abstractreadonlymodel {
object getobject() { return
Hi, I have this working code. But I feel I'am mistaking and this is not the
most apropiate place for it.
Very simple, a logout panel (just a link) that on attached sets itself
visible or not. Here is the code.
public class LogoutPanel extends BasePanel {
/** Creates a new instance of
Excelent. That means that isVisible is called every page
refresh?
Thanks
On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
change
protected void onAttach() {
//Verify visible status
setVisible(getWicketSession().isUserLoggedIn());
}
to
boolean isVisible() { return
yes, any time the component is rendered
-igor
On 4/24/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED]
wrote:
Excelent. That means that isVisible is called every page
refresh?
Thanks
On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
change
protected void onAttach() {
Calling repaint on the entire panel did the job.
target.addComponent(dropdown.getParent()) Thanks
John
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
Vaynberg
Sent: Tuesday, April 24, 2007 8:38 AM
To:
Great, thanks Igor.
On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
yes, any time the component is rendered
-igor
On 4/24/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED]
wrote:
Excelent. That means that isVisible is called every page
refresh?
Thanks
On 4/24/07, Igor Vaynberg
Hi again group, I have the following problem. I use a DateValidator.range(min,
max) to add a validation to a text field.
Everything works fine, but as soon as I change the locale to german, french,
or italian, it does not validate again. It keeps validating wether or not is
required but not the
Ok figured it out. I set ListView.setReuseItems(true); and it works.
Thanks again for all your help
john.mattuc
[EMAIL PROTECTED]
Hello everyone, I was wondering for a proper way to handle sessions and
logging in and out of a wicket application in general.
The thing is as follows.
I have a Session called WicketSession, inside of which I use a CORBA
BUISINESS object labeled m_cSession to do a Login.
WicketSession has the
yes i would invalidate the session:
onclick() {
final string url=urlfor(HomePage.class);
getsession().invalidate();
getrequestcycle().pushTarget(new RedirectRequestTarget(url));
}
something like that
-igor
On 4/24/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED]
wrote:
Hello
Off the top of your head again?
¬_¬ (me needs that head).
Great thanks.
On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
yes i would invalidate the session:
onclick() {
final string url=urlfor(HomePage.class);
getsession().invalidate();
getrequestcycle().pushTarget(new
onclick() {
final string url=urlfor(HomePage.class);
getsession().invalidate();
getrequestcycle().pushTarget(new
RedirectRequestTarget(url));
}
Or just
onClick() {
Session.get().invalidate(); // invalidated after the request is handled
setResponsePage(Home.class);
}
This
Great, both of them worked.
Only this:
getRequestCycle().setRequestTarget(new RedirectRequestTarget(url));
On 4/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
onclick() {
final string url=urlfor(HomePage.class);
getsession().invalidate();
getrequestcycle().pushTarget(new
Great, both of them worked.
Only this:
getRequestCycle().setRequestTarget(new
RedirectRequestTarget(url));
What do you mean?
Eelco
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE
In the message that I sent I am sure that the text that Igor sent was
included.
if not here it is:
Igor Vaynberg wrote::
onclick() {
final string url=urlfor(HomePage.class);
getsession().invalidate();
getrequestcycle().pushTarget(new RedirectRequestTarget(url));
}
Only this:
That site has a way to view the source of the templates, but not the Java
code. Anywhere I can download that?
What's the least amount of required classes to do a sortable/pageable grid
with i18n? Compared to all the other web frameworks I've used, Wicket seems
to make this the most difficult.
You can check out the wicket-examples code from svn at
https://svn.apache.org/repos/asf/incubator/wicket/trunk/jdk-1.5/wicket-examples
(or download it, but where's the fun in that) and then check out
package org.apache.wicket.examples.repeater or
org.apache.wicket.examples.guestbook etc.
Eelco
Hi,
the code for sortable pageable list can look like this:
public class SortingPage extends BasePage
{
public SortingPage()
{
SortableContactDataProvider dp = new
SortableContactDataProvider();
final DataView dataView = new DataView(sorting, dp)
On 4/24/07, mraible [EMAIL PROTECTED] wrote:
That site has a way to view the source of the templates, but not the Java
code. Anywhere I can download that?
what i pointed to is the wicket-examples project. the source code is
available in our svn. the link to that is available on our site.
Ah, yes, this is much better. It bothered me enough to put a warning in
the Javadoc, but that's a poor substitute for something that just works.
I'll be fixing our code in the morning. Thanks Igor.
jk
On Tue, Apr 24, 2007 at 11:00:05AM -0700, Igor Vaynberg wrote:
this is bad. getpagetitle()
Thanks guys - I appreciate all your help. I've decided to go with DataView
over DefaultDataTable because I couldn't get the click on column value for
link[1] to work.
Unfortunately, the following doesn't work with Wicket 1.2.6:
item.add(new
Thanks guys - I appreciate all your help. I've decided to go with DataView
over DefaultDataTable because I couldn't get the click on column value for
link[1] to work.
Unfortunately, the following doesn't work with Wicket 1.2.6:
item.add(new
I'm trying to success messages working. In my Detail.java page, I have:
protected void onSaveUser(User user) {
userManager.saveUser(user);
getSession().info(It worked!);
setRedirect(true);
setResponsePage(backPage);
}
First of all, is this the proper way
The stack trace I was getting turned out to be caused by something else - the
code I posted actually does work.
As far as moving to 1.3, I'll be happy to do that if there's a beta (or
snapshot) release in a public Maven repo.
Thanks,
Matt
Eelco Hillenius wrote:
Thanks guys - I appreciate
Fresh snapshots are deployed on our maven repository[1] by bamboo[2] .
So including:
repository
repository
idwicket-stuff.org/id
urlhttp://wicketstuff.org/maven/repository//url
snapshots
enabledtrue/enabled
/snapshots
/repository
/repositories
and:
dependency
You can just add a FeedbackPanel to the Page:
add(new FeedbackPanel(feedback));
span wicket:id=feedback/span
Then call your info(...), error(...) or whatever method:
info(It Worked!);
I haven't worked with 1.3 yet, so I don't know if anything has changed
there.
On 4/24/07, mraible [EMAIL
I'm trying to success messages working. In my Detail.java page, I have:
protected void onSaveUser(User user) {
userManager.saveUser(user);
getSession().info(It worked!);
setRedirect(true);
setResponsePage(backPage);
}
First of all, is this the
Hi,
I'm having this problem when I back-button to a page with a panel that
replaced itself with another panel containing a link - and re-try the link:
WicketMessage: Method onLinkClicked of interface
org.apache.wicket.markup.html.link.ILinkListener targeted at component
[MarkupContainer
for a full crud app wicket+spring+hibernate/ibatis/shades see
wicket-phonebook project in wicket-stuff.sf.net
it has the feedback messages and grids you want.
also for models you can read here
http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
-igor
On 4/24/07,
Eelco Hillenius wrote:
I'm trying to success messages working. In my Detail.java page, I have:
protected void onSaveUser(User user) {
userManager.saveUser(user);
getSession().info(It worked!);
setRedirect(true);
setResponsePage(backPage);
}
Got it - I needed getSession().info() instead of info(). Thanks guys - I
really appreciate the excellent support.
Matt
mraible wrote:
Eelco Hillenius wrote:
I'm trying to success messages working. In my Detail.java page, I have:
protected void onSaveUser(User user) {
On 4/24/07, mraible [EMAIL PROTECTED] wrote:
You typically don't need to call setRedirect yourself though. Was
there any reason for doing that? Also, flash message works good here,
but if you already know the page you are going to display it on, you
might as well set it on there.
I'm
Can you give us the stack trace you get?
Eelco
On 4/24/07, Akshat [EMAIL PROTECTED] wrote:
Providing the source class and its corresponding Test class
package com.bsideinc.bsidecom.wicket.pages.sections;
import com.bsideinc.bsidecom.wicket.pages.DefaultBsidePage;
/**
* User: gutter
*
74 matches
Mail list logo