Sure there a dozens of ways todo this, mine is just one of them. Im
starting a new thread since it'll be more exposed then.
The idea is following:
Parent:
public class BasePage extends WebPage {
protected final String LINK_LABEL_ID = linkText;
protected final String LINK_ID = link;
You could add a Button to the form, use the button's onSubmit to do
the form processing instead of Form.onSubmit and tell the button to
turn of default form processing.
That way you can validate the form yourself in in case of a failure
set the response page.
Otoh you could also stay on the same
EEK!, I'll try once more to create a new thread!
Nino Saturnino Martinez Vazquez Wael wrote:
Sure there a dozens of ways todo this, mine is just one of them. Im
starting a new thread since it'll be more exposed then.
The idea is following:
Parent:
public class BasePage extends WebPage {
Sure there a dozens of ways todo this, mine is just one of them. Im
starting a new thread since it'll be more exposed then.
The idea is following:
Parent:
public class BasePage extends WebPage {
protected final String LINK_LABEL_ID = linkText;
protected final String LINK_ID = link;
Hmm, I actually also thought of doing clickable regions for images for
wicket inputevents. I just might steal some of your stuff if it's okay,
when you get around producing it..?
Jonathan Locke wrote:
i've been given permission to open source the kitten captcha i wrote for
thoof. i don't
Hehehe, very cool and different way of doing it:)
Jonathan Locke wrote:
i've been given permission to open source the kitten captcha i wrote for
thoof. i don't have time right now, but hope to get to it before too long.
to see it, you can submit a story on thoof.
jon
Nino.Martinez
hello,i got the same problem.
PageParameters params = new PageParameters();
params.put(pid, pid);
this.setResponsePage(FirstLogin.class,
new PageParameters(params));
in FirstLogin.java ---
PageParameters params = new PageParameters();
Stephan, what you want is not PageParameters.getKey(id), but
PageParameters.getInt(id);
@zhangjunfeng:
PageParameters params = new PageParameters();
System.out.print(pid= + params.getKey(pid));--the output is null
yes, the output is null, you just created a new, empty page parameters
On 3/5/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
Sure there a dozens of ways todo this, mine is just one of them. Im
starting a new thread since it'll be more exposed then.
The idea is following:
Parent:
public class BasePage extends WebPage {
protected
Hello
my next problem has to do with the LoadableDetachable models, do you
really use them for every object you get from Hibernate? My views will
be full of various informational panels, drop-downs and others that
are based on data from the DB (retrieved as objects by Hibernate).
So if I have to
On 3/5/08, Wojciech Biela [EMAIL PROTECTED] wrote:
Hello
my next problem has to do with the LoadableDetachable models, do you
really use them for every object you get from Hibernate? My views will
be full of various informational panels, drop-downs and others that
are based on data from
James Carman wrote:
On 3/5/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
Sure there a dozens of ways todo this, mine is just one of them. Im
starting a new thread since it'll be more exposed then.
The idea is following:
Parent:
public class BasePage extends
Answer below:
James Carman Wrote:
Couldn't you use a VelocityPanel to generate your markup and have it
parse the markup after it's generated to avoid the whole need to use
the right markup ids part? I was thinking about doing something like
this for generating dynamic editor
On 3/5/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
Answer below:
James Carman Wrote:
Couldn't you use a VelocityPanel to generate your markup and have it
parse the markup after it's generated to avoid the whole need to use
the right markup ids part? I
Hi Wicket-User,
I have a similar situation - I'm tasked to build a site that appears
to have multiple directories but that actually use the same set of
pages. So for example:
http://mysite.com/clientname/Login
http://mysite.com/clientname/Register
James Carman wrote:
On 3/5/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:
Answer below:
James Carman Wrote:
Couldn't you use a VelocityPanel to generate your markup and have it
parse the markup after it's generated to avoid the whole need to use
the
You also have to consider what you want to do when you're using
versioned objects. If you just go get the latest object from the
database every time, then you'll never run into the version mismatch
and you won't know if one user is blowing away edits done by another
user. In this case,
I try to modify the upload example
(http://www.wicket-library.com/wicket-examples/upload/single) for my own need.
I would like to be able to upload the file in a directory under my context (ie.
tomcat_install/webapps/MyApp/DownloadedFiles) and generate the corresponding
internet url for the
Theres file in utils package.. Producing a url for that could be
mounting a resource and using the urlfor...
Pierre Gilquin wrote:
I try to modify the upload example
(http://www.wicket-library.com/wicket-examples/upload/single) for my own need.
I would like to be able to upload the file
Hello
This time my question is not so general.
We have a big form, part of this form there is a component which
should be a dynamic list of fields like this:
|TextField| - remove
|TextField| - remove
|TextField| - remove
|TextField| - add
if you click add another row |TextField| - remove
currently my code is in src/main/java and my css, images and scripts
are all in src/main/resources/css, src/main/resources/images and
src/main/resources/script respectively. The maven build put all the
resources at the root, which is of course the issue. What's standard
practice for wicket
We usually follow this approach
-load initial list
-clone initial list for working copy
-if the list is likely to be altered often or by multiple persons
store a flag for each item indicating if it was removed or added
-have wicket modify the working copy (and or the flags)
-in the onsubmit load a
oh ya... and all the css and javascript is static, meaning that it
doesn't have to be referenced in code, but either way
On 2008-03-05 07:36:43 -0700, Andy Czerwonka [EMAIL PROTECTED] said:
currently my code is in src/main/java and my css, images and scripts
are all in
We too, have images / css in a folder located at the root of the
webapp, this works just fine as long as you only reference them in
your html, it gets a bit trickier if you try to use the Image
component. So we don't use it (much) ;)
The html is however located besides the java just like wicket
According to the
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
they should reside in src/main/webapp
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Andy Czerwonka
Sent: Wednesday, March 05, 2008 9:43 AM
To:
True,
Fortunately the war plugin allows for a warSourceDirectory config
property http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
It is customary in our company to have a src/webapp dir where most of
the images/ css/ web.xml etc are located.
Maurice
On Wed, Mar 5, 2008 at 3:50 PM,
I searched the wiki and the list archives, but I haven't found any
sort of wicket reference appropriate for a web designer who doesn't
speak Java. The list of xhtml tags in the wiki is the closest, but
it's definitely written more for the programmers.
Am I missing something? If not, I'll
Thanks Nino,
Sorry, I dont understand. Please be more detailed.
I try to use Folder from util.file package
uploadFolder = new Folder(?, DownloadedFiles);
then can I use the folder as resource ? how ?
I still dont have any idea how to have my uploadFolder in the context
Thank you for our opinion Maurice,
problem is that what you're telling me is not exactly my problem
(although it will be further on, so thank you anyway)
as I see I have to submit the whole form in order to retain (not yet
save do DB!) those values from this particular dynamic list component,
I
Hello,
I have a weird problem with the file upload using Wicket.
I have a flex application on client side, and the user can upload some
files. Flex code is as simple as:
var fr:FileReference=new FileReference();
fr.addEventListener(Event.SELECT, function(e:Event):void {
var
Thanks.. all good now.
On 2008-03-05 07:50:06 -0700, Hoover, William [EMAIL PROTECTED] said:
According to the
http://maven.apache.org/guides/introduction/introduction-to-the-standard-
directory-layout.html they should reside in src/main/webapp
[snip]
Hi,
I've got a few rendering issues with wicket:
I'd like to use IDs to select elements via jQuery on the clientside,
eg. a form with wicket:id=commentForm should also have
id=commentForm. Wicket generates id=commentForm4 or
id=commentForm5 - I've got no idea where that number comes from.
The simplest solution (if your company will allow) would be just to place them
in src/main/webapp/css and src/main/webapp/images ;o)
-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2008 10:02 AM
To: users@wicket.apache.org
Subject: Re: Re:
afaik you can set a static id using component.setMarkupId(some id); you
can also get at the wicket markup id using component.getMarkupId() (so long
as you set component.setOutputMarkupId(true) on your component), this is
useful when you are writing your javascript in java as a string then
Hi Wojciech,
You should use Buttons instead of links. Button (or AjaxFallbackButton)
does submit the form. The only thing you need to do is disable
validation on the button (call button.setDefaultFormProcessing(false)),
otherwise the onSubmit of the button is not called when some field in
Hi Jörn,
-- Ids
This one of the exceptions in just taking existing HTML. Our designers
also use jquery and solved the problem by using classes. Something like:
class=idCommentForm. For jquery it doesn't matter much, and by
including id in the class name the intend is still clear.
-- Wicket
can you try not casting to DiskFileItem and just use FileItem.getinputstrema()?
-igor
On Wed, Mar 5, 2008 at 7:25 AM, Piller Sébastien [EMAIL PROTECTED] wrote:
Hello,
I have a weird problem with the file upload using Wicket.
I have a flex application on client side, and the user can
Inside of a Modal Window, I have a Panel with a Fragment that has
AjaxFallbackLink that we use for indicating selection.
(The onClick toggles a selection status in the underlying model)
The trouble is a shift or ctrl click opens up a new window or tab with an
Internal Error showing-
ideally we'd
-- Wicket tags
This is all time high FAQ :) Do
getMarkupSettings().setStripWicketTags(true) in the init() of your
application class. (I still wonder why it is not the default.)
Don't explicitly turn off wicket tag, unless you have real good reason to.
This setting is automatically determined by
Hi Gin,
I understand the reasoning. I have just never ever had any use for this
debugging feature.
Oh, well. It is only one line of code ;)
Regards,
Erik.
--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
Gin Yeah wrote:
-- Wicket tags
This is all time high FAQ :) Do
Hi,
I'm Bill Seyler of Pentaho and I am currently overseeing the Halogen
development. The Halogen project has moved from a 'proof of concept' into
an 'incubator' project. The goal is much as stated above. Give the
commercial guys a run for their money and update/replace the
long-in-the-tooth
Nino.Martinez wrote:
Sounds like a great idea, and maybe give companies like SAS institute
and SPSS a little run for it:)
I'd love to do that, but unfortunalty I'ts not a business case for my
company.. I'd be glad to help out a little though:)
regards Nino
Jay Hogan wrote:
Thanks for the feedback Bill. I have some questions about Halogen but I
don't want to get too far off-track. This is a Wicket forum after all! I'll
head over to the Halogen site and post them there.
Thanks!
On Wed, Mar 5, 2008 at 2:54 PM, Shudoman [EMAIL PROTECTED] wrote:
Hi,
I'm Bill
I have a problem and I have thought of 2 ways to get it done but I can not
make either work nor am I sure which one is the best.
I want the user to be able to add as many customers as they want.
So I have thought of 2 ways to do this.
1) I have a link that when clicked creates a popup with all
Assuming you are using a listview or dataview to display all the
customers you can simply add a link to the items, attach a label
displaying the name and you have your clickable name. You could rig
the link to open the popup.
To get the customer data from the popup to the page i would choose to
A web designer being a graphics or a HTML guy (or a combination thereof)?
Seriously tho, design your site, give the output to the programmer to
wicket up.
I don't see how wicket will work for you if you don't understand the basic
bits of java. If you do, the tutorials and examples on the
Actually AjaxFormComponentUpdatingBehavior accomplishes the desired
behavior without submitting the entire form. I can see the tricky part
in loosing changes to the text in the textfields if you replace the
div surrounding them but i thought nested forms in wicket 1.3.? solved
this by only
My team is currently working on a web project composed of a entirely
of plain old servlets. We are looking at potentially replacing it
with Wicket, but we do not have the luxury of rewriting the entire
project, and would need to integrate Wicket gradually with the
existant functionality.
Is
maybe this will help
http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/
-igor
On Wed, Mar 5, 2008 at 2:46 PM, Steve Thompson [EMAIL PROTECTED] wrote:
My team is currently working on a web project composed of a entirely
of plain old servlets. We are looking at
Thanks. Yes, your code is similar to what I am doing.
But trying to sych the Ajax dropdown state with the page parameters is
defeating me. There are effectively two ways of getting to the results page
- search form post and directly from a bookmarked URL.
I'm using a CompoundPropertyModel
I am looking for an easy way to sort single items within a list...basically I
need to re-order a list. For example, I have 30 table rows and I want to
move row 13 to be before row 10. An example I found that is similar to what
I am looking for is located at http://demos.mootools.net/Sortables.
there's a wicket project that integrates the scriptaculous sortable
object which might be what you're looking for:
http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView
On Wed, Mar 5, 2008 at 5:00 PM, jeredm [EMAIL PROTECTED] wrote:
I am looking for an easy way
The default new PopupSettings() makes a resizable popup and I don't see a
flag to turn resizable to off.
--
View this message in context:
http://www.nabble.com/How-to-make-a-PopupWindow-non-resizable--tp15863664p15863664.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi All,
I am trying to do an inline edit ajax label .
This is the snippet of code i am using
add(new EditableSNLabel(title+snote.getId(),new Model(snote.getName(;
in my wicket panel.
EditableSNLabel extends AjaxEditableLabel class.
When i click the label nothing happens. So i am
I must be doing it wrong. I have this in my popup template:
lt;a wicket:id=closeMegt;Closelt;/agt;
In java:
add(new PopupCloseLink(closeMe) {
@Override public void onClick() {
// HERE HERE
}
});
onClick() is called but the popup window stays.
Another question, how to
any javascript errors in your browser? is the popupcloselink inside
the popup window - which is another window that is NOT a modal
window...?
-igor
On Wed, Mar 5, 2008 at 4:28 PM, MYoung [EMAIL PROTECTED] wrote:
I must be doing it wrong. I have this in my popup template:
lt;a
Hi All,
I have a edit in place label in my wicket page .
When i try to edit it i get this exception. I am using wicket 1.3.1 and
Tomcat 6.0.14.
Can anyone tell me what is the problem.
DEBUG - EditableSNLabel.onSubmit(41) | == in
SUBMIT===
Mar 5, 2008 5:58:01
I need to display messages from the Session in a plain JavaScript alert
window instead of a feedback panel. I wrote something that seems to work
only part of the time. I am writing my messages to error(...) on the Session
and retrieving them from the Session with
thanks,but there is no method of Page.getPageParameters(), how to use it ?
may you show me in detial ?
Stephan, what you want is not PageParameters.getKey(id), but
PageParameters.getInt(id);
PageParameters params = new PageParameters();
System.out.print(pid= +
this should be fixed in trunk...
-igor
On Wed, Mar 5, 2008 at 6:00 PM, hjuturu [EMAIL PROTECTED] wrote:
Hi All,
I have a edit in place label in my wicket page .
When i try to edit it i get this exception. I am using wicket 1.3.1 and
Tomcat 6.0.14.
Can anyone tell me what is the
feedback messages are not cleaned up until the end fo request, so you
should be able to retrieve them...
if you are doing this across pages make sure you call
getsession().error(..) not just error(..)
-igor
On Wed, Mar 5, 2008 at 6:01 PM, Warren [EMAIL PROTECTED] wrote:
I need to display
I'd potentially like to use this component, but its putting a ridiculous
amount of markup into the script section in the head. Including a copy of
the license...
Is there an easy way to move this into a separate request/resource - 1 per
locale used?
Also, if I add 2 date pickers it puts all
I was trying to retrieve the messages before they were placed into the
Session. I now am retrieving them in the page's onBeforeRender() method and
it seems to be working. Do you see any problems doing it this way?
-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent:
There is no Javascript generated at the browser end at all:
a href=?wicket:interface=Salumonunu:0:closeLink::ILinkListener::
wicket:id=closeLinkClose/a
The popup is open with this:
Java:
PopupSettings ps = new PopupSettings()
.setHeight(200)
.setWidth(100)
On 3/6/08, Ned Collyer [EMAIL PROTECTED] wrote:
I'd potentially like to use this component, but its putting a ridiculous
amount of javascript into the script section in the head. Including a
copy
of the license...
Is there an easy way to move this into a separate request/resource - 1
ok, but do you see javascript errors after you press the link? because
that outputs a window.close() javascript to close the window...
-igor
On Wed, Mar 5, 2008 at 9:03 PM, Gin Yeah [EMAIL PROTECTED] wrote:
There is no Javascript generated at the browser end at all:
a
should be fine
-igor
On Wed, Mar 5, 2008 at 8:40 PM, Warren [EMAIL PROTECTED] wrote:
I was trying to retrieve the messages before they were placed into the
Session. I now am retrieving them in the page's onBeforeRender() method and
it seems to be working. Do you see any problems doing it
it seems to be working just fine here
http://wicketstuff.org/wicket13/dates/
-igor
On Wed, Mar 5, 2008 at 8:33 PM, Ned Collyer [EMAIL PROTECTED] wrote:
I'd potentially like to use this component, but its putting a ridiculous
amount of markup into the script section in the head.
How to see Javascript error? Something to turn on in the browser?
On Wed, Mar 5, 2008 at 10:22 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
ok, but do you see javascript errors after you press the link? because
that outputs a window.close() javascript to close the window...
-igor
On Wed,
I actually thought your question to be good, I think using markup
inheritance could help some inorder for web designers since the could
have a larger base of the html in one file..
But again all your panels html are still fragmented.
btw I belive that designers should just ignore the wicket
Ok, I got it. I need to call super.onClick(). Thanks!
On Wed, Mar 5, 2008 at 10:22 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
ok, but do you see javascript errors after you press the link? because
that outputs a window.close() javascript to close the window...
-igor
On Wed, Mar 5, 2008
Yes there is, it's in Page.java at line 319
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 6. März 2008 03:11
To: users@wicket.apache.org
Subject: Re:RE: getPageParameters() NullPointer
thanks,but there is no method of
72 matches
Mail list logo