Or you can use wro4j (http://code.google.com/p/wro4j/wiki/GettingStarted)
for this. It is a small framework which helps you organize your resources
(js css) by loading from virtually anywhere (classpath, servletContext,
absolute location, disc location, etc). Also, it merge all the resources
Hi,
It is very easy to achieve this. E.g.
public class MyPanel extends Panel {
private static final long serialVersionUID = 1L;
public static ResourceReference JS = new
ResourceReference(MyPanel.class, mypanel.js);
public static ResourceReference CSS = new
Any other hints for this right now?
I want to submit an ajax-Form by hiting enter in Textfield, but i want
wicket to call the same Method as i defiend in AjaxButton ... any ideas?
Thanks a lot in Advance
John Patterson wrote:
It is being used indirectly through AjaxButton.
Hey,
I currently have a wicket container that has an onclick, now that container
needs to have a link inside of it.
But when I click the link it also fires the onclick for the container.
How can I avoid this?
D/
-
To
Just found this
http://markmail.org/message/2ps3auq3326zq3nq
On Feb 4, 2010, at 3:47 AM, Douglas Ferguson wrote:
Hey,
I currently have a wicket container that has an onclick, now that container
needs to have a link inside of it.
But when I click the link it also fires the onclick for
Greetings,
I am wondering if there is in wicket or another framework a
class/interface/enum containing string values for html tag attributes ?
It would be great to use it for instance with SimpleAttributeModifier.
-
To
Hi Haiko,
Jericho-parser contains a comprehensive set of all HTML elements,
attributes etc. It also groups these constants per type (e.g. inline,
open/close or not, etc. etc.).
Regards,
Erik.
haiko van der schaaf wrote:
Greetings,
I am wondering if there is in wicket or another
I have the same problem today (what a coincidence :)).
This works ok for me in Firefox 3.5 and Opera 10, but does not work in
Chrome, Safari and IE.
PS. I'm using Wicket 1.4.4.
DS
On Thu, Feb 4, 2010 at 10:38 AM, MattyDE ufer.mar...@gmail.com wrote:
Any other hints for this right now?
I
Hi Folks,
i've to implement many form-pages with a lot of (more than 30) input fields,
and each of them should be validated at least of required or not.
but the request is to show the validation-errors behind the depeding
component.. so iam using FormComponentFeedbackIndicator now and everything
something along the lines [1] ?
[1] http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail:
I did this with an IVisitor, that traverses all form components and adds an
AbstractBehavior to each required inputfield. This Behavior writes an
span*/span right after the component has been painted.
Watch this pdf for an example:
http://code.google.com/p/londonwicket/downloads/list and than
Hello guys!
I've got three pages, where I do certain check in the beginning and if the
criteria is not met, I redirect to home page. I make it that way:
public MyPageClass {
if (something) {
system.out.println(mypageclass - we're in);
Hi,
the setresponsepage only marks, that the pagetarget is something else on
the end of the cycle, but it isn't stopping the execution of the current
page. If you want that, then use:
throw new RestartResponseException(getApplication().getHomePage());
Regards,
Peter
2010-02-04 14:16
Thanks friend! Works great! You saved me a lot of time!
Best regards,
Martin
-Original Message-
From: Major Péter [mailto:majorpe...@sch.bme.hu]
Sent: Thursday, February 04, 2010 3:21 PM
To: users@wicket.apache.org
Subject: Re: setResponsePage in the beggining of a constructor does not
MattyDE wrote:
Any other hints for this right now?
I want to submit an ajax-Form by hiting enter in Textfield, but i want
wicket to call the same Method as i defiend in AjaxButton ... any ideas?
Thanks a lot in Advance
If I remember correctly, my patch was applied so you can now
Hi Martin,
Thanks for the feedback!
To clarify for other users, it is (now) pretty clear how to perform
configuration and configure Realms via the link I sent in my last mail
- please read it if you want to give it a try again. Maybe this was
written after you tried Shiro, but at least it is
Hello,
How is it possible to add event behavior for the document?
I tried this one, but it didn't work:
add(new AjaxEventBehavior(onkeypress){
@Override
protected void onEvent(final AjaxRequestTarget target) {
LOG.debug(keypress);
}
});
I just upgraded from 1.4.1 to 1.4.6 and now I'm getting this error too
without changing anything else in my source code:
04 Feb 2010 16:01:20,352 ERROR [org.apache.wicket.RequestCycle:1521] Could
not find child with id: object_title_classification_prefix in the
wicket:enclosure
I just upgraded from 1.4.1 to 1.4.6 and now I'm getting this error too
without changing anything else in my source code:
04 Feb 2010 16:01:20,352 ERROR [org.apache.wicket.RequestCycle:1521]
Could not find child with id: object_title_classification_prefix in the
wicket:enclosure
It seems that problem prepending resource URLs resurrected again.
https://issues.apache.org/jira/browse/WICKET-2491
vineet semwal wrote:
i have opened the jira issue for the same problem,
https://issues.apache.org/jira/browse/WICKET-2717
On Thu, Feb 4, 2010 at 1:07 AM, vineet semwal
Add a WebMarkupContainer to body, i.e.
body wicket:id=body.../body
add(new WebMarkupContainer(body)
.add(new AjaxEventBehavior(onkeypress){
protected void onEvent(final AjaxRequestTarget target) {
LOG.debug(keypress);
}
Hi,
I've just started with css and I would like to know the tag names of the
paging navigator. I had a look in the wicket source code, but my css file
doesn't work. I mean the area in the upper right corner like
1 2 3 4 5
I don't like the italic font-weight. Any help is much
see imarkupsettings#setDefault(Before|After)DisabledLink()
-igor
On Thu, Feb 4, 2010 at 8:29 AM, Andreas Lüdtke sam.lued...@t-online.de wrote:
Hi,
I've just started with css and I would like to know the tag names of the
paging navigator. I had a look in the wicket source code, but my css
I've just found out that the outcome of a JUnit test using WicketTester
(v1.3.7) depends on the JVM version. This test
public void testRender_deployment() throws Exception
{
WicketTester tester = doRender(DEPLOYMENT);
tester.assertResultPage(
i believe we fixed this in 1.4.x using a linkedhashmap
-igor
On Thu, Feb 4, 2010 at 8:53 AM, Stefan Fussenegger s...@molindo.at wrote:
I've just found out that the outcome of a JUnit test using WicketTester
(v1.3.7) depends on the JVM version. This test
public void testRender_deployment()
Yes you are right, file full path file is never send. In fact exploring DOM
I've found no property to fetch it. Thank you! So I use a simple TextField.
@kinabalu
getClinetFilename() does not return the full path, while temp file path is
the path on the server where the file is phisically copied,
Hi,
I am validating a field(user presses validation button) and if its invalid I
highlight the field in the following way:
AjaxSubmitLink checkName = new AjaxSubmitLink(check_name, form) {
public void onSubmit(AjaxRequestTarget target, Form? form) {
if
It's better to use a validator for this. And, you can add a behavior
(look at forms with flair presentation) to change the class (I would
do that instead of in-lining the style) of the components in error.
On Thu, Feb 4, 2010 at 2:05 PM, Anna Simbirtsev asimbirt...@gmail.com wrote:
Hi,
I am
Can you give an example please?
Actually I am validating uniqueness of the name, i just put the length as an
example.
But if you could give me an example of how to change the class using a
behaviour, that would be nice.
On Thu, Feb 4, 2010 at 2:20 PM, James Carman
That's the one. That's where I borrowed my code from. :)
On Thu, Feb 4, 2010 at 2:30 PM, Riyad Kalla rka...@gmail.com wrote:
Anna, I think James literally meant this presentation, it's got the code
snippets you want:
http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf
Anna, I think James literally meant this presentation, it's got the code
snippets you want:
http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf
-R
On Thu, Feb 4, 2010 at 12:25 PM, Anna Simbirtsev asimbirt...@gmail.comwrote:
Can you give an example please?
Actually I am
Hello,
This is more a JavaScript problem than wicket, but I'm encountering it in the
context of a wicket component so maybe others have had the same issue and can
offer some guidance. I'm having some trouble with Wicket.AutoComplete's
getOffsetParentZIndex definition, in IE 7 it's returning 0
I've found the problem with any version after 1.4.2. With 1.4.2 I seem
to be able to use enclosures just fine - even when the children are
supplied by a component resolver - but any 1.4.3, 1.4.4 and 1.4.5 cause
problems. I haven't yet tried 1.4.6 but from what you're saying it
probably has the
I've searched everywhere and can't find the wicket 1.4 compatible dojo jar
file. There isn't one in the maven repository.
Has one been developed? If so can someone point me in the right direction?
Thanks,
Josh
Yes. There is the component. It is in the wiki, and you have to copy and
paste it. It works fine.
On Wed, Feb 3, 2010 at 12:17 AM, Mathias Nilsson
wicket.program...@gmail.com wrote:
Hi,
I was wondering if anyone has built swfobject ( javascript ) integration
to
wicket? What I want to do
Could I use RestartResponseException to redirect to a URL instead of a
bookmarkable page?
My problem is that all of my pages require a parameter (even the home page but
that's fine because the Tomcat container server.xml configures the appropriate
redirection for me - users never have to enter
Just write this in WebApplication#init:
getApplicationSettings().setPageExpiredErrorPage(PageExpiredError.class);
This should solve your problem.
Regards,
Peter
2010-02-05 00:59 keltezéssel, Chris Colman írta:
Could I use RestartResponseException to redirect to a URL instead of a
bookmarkable
Thanks Ernesto,
That is very useful.
Hi,
It is very easy to achieve this. E.g.
public class MyPanel extends Panel {
private static final long serialVersionUID = 1L;
public static ResourceReference JS = new
ResourceReference(MyPanel.class, mypanel.js);
public static
Hi nino,
I just use
table wicket:id=table cellspacing=0 width=100% class=grid
to display my datatable.
I dont want to change the CSS style for the class.I want the change the
width of each Column ,according to the value read from XML.
Something like:
int colWidth=vcol.getColumnWidth();
For future reference.
https://issues.apache.org/jira/browse/WICKET-2713
Thanks for the tips,
I found the solution:
public void populateItem(ItemICellPopulatorE cellitem,
String id, IModelE model) {
cellitem.add(new
SimpleAttributeModifier(style,width:+width+px));
}
regards
umanga
nino martinez wael wrote:
I susspect you should add
Hello, I am learning Wicket by reading Wicket in Action. I am using Wicket
1.4.5 and Java 6.
On page 244, the sample code is as follows:
private int counter = 0;
public MyPage() {
super(new CompoundPropertyModel(this));
final Label counterLabel = new Label(counter);
add(counterLabel);
They don't need to be bookmarkable. You can call specific constructors of a
class if you want:
throw new RestartResponseException(new MyClass(something));
cheers,
Steve
On 05/02/2010, at 10:59 AM, Chris Colman wrote:
Could I use RestartResponseException to redirect to a URL instead of a
After upgrading to 1.4.6 , it always pops up this warning :
WARN http.WicketURLDecoder - No current Application found - defaulting
encoding to UTF-8
It is ok in 1.4.5 , but I don't know why it has such warning in 1.4.6 .
How to get rid of it ?
Thanks ...
Hi,
I am dynamically adding panel components to my display and eventually
the list of panels grows big enough that the most recently added is not
visible (not in visible scroll region) in the browser.
I am looking for an approach to force the last panel added to scroll
into view if it's
WiA covers 1.3, there's a wiki page that covers the differences here:
http://cwiki.apache.org/WICKET/migrating-to-wicket-14.html
95% of WiA is going to work just fine though, aside from the changes mentioned
in the migration link above
On Feb 4, 2010, at 7:51 PM, David Chang wrote:
Hello, I
disable it in your logging configuration
-igor
On Thu, Feb 4, 2010 at 8:13 PM, smallufo small...@gmail.com wrote:
After upgrading to 1.4.6 , it always pops up this warning :
WARN http.WicketURLDecoder - No current Application found - defaulting
encoding to UTF-8
It is ok in 1.4.5 , but I
I think there is a dojo project on wicketstuf
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-dojo-1.1but
it seems it is 1.1 Unless documentation is outdated?
Best,
Ernesto
On Thu, Feb 4, 2010 at
Thanks a lot Igor. This works!!
igor.vaynberg wrote:
if you keep working on the same page instance it is kept in http
sessison and is not serialized. when you go to a new page it pushes
the old instance out, forcing serialization, and setting the transient
field to null.
a proper way
In Wicket it usually helps to look at the classes that are near in the
class hierarchy. In this case RestartResponseException extends from
AbstractRestartResponseException. Another subclass of
AbstractRestartResponseException is RedirectToUrlException, which does
exactly what you ask.
Hi Folks,
I'am getting totally confused how to add and remove css classes to and form
my text-input-fields on ajax-form-validation.
At first i try to add two css classes step by step:
IteratorFeedbackMessage iter =
51 matches
Mail list logo