;Wicket way," as it seems like it should be
> easier than this. Does ListChoice *intentionally* not allow for an
> empty list? I expected to find something like
> "allowEmpty(boolean)"...but no dice.
>
Have you tried my code? The list has no selectable entry.
---
ted CharSequence getDefaultChoice(Object selected) {
return "";
}
};
-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
--
View this message in context:
http://www.nabble.com/Empty-ListChoice-tf4604759.html#a13172939
Sen
Gwyn suggested. If you insist on using a
pre-built
validator, try PatternValidator("[+|-]?(\\d)*[1-9](\\d)*") but then the
model has to
be a String, not a number.
-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
--
View this message in contex
}
return items;
}
};
DefaultDataTable t = new DefaultDataTable("t", columns,
dataProvider, 3);
add(t);
}
}
-
--
Kent Tong
Wicket tutorials freely available at http://www.agileski
RequiredTextField t = new RequiredTextField("captchaInput", new
Model());
t.add(new CaptchaValidator());
add(t);
add(new Image("captchaImage", ...));
}
}
-
--
Kent Tong
Wicket tutorials freely available
d and redisplayed to the
user. By default it is clear only when the form is submitted and validation
is passed successfully.
-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
--
View this message in context:
http://www.nabble.com/CompoundPropertyModel-
chickabee wrote:
>
> Any idea why I am getting :
>
> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
> Unable to serialize class: sun.font.AttributeMap
>
This is fixed in beta 4 (https://issues.apache.org/jira/browse/WICKET-819).
--
Kent Ton
The ParFiltro class is a utility class wich contains a pair property-value
> used in the page to filter data.
> That's because I need to invoke the page.render() method.
> I'm doing something wrong? There is another way to do it?
>
Am I missing something here? You should call:
Artur W. wrote:
>
> I tried to do the same in tomcat 5.5. I added autoDeploy="true" to the
> but it doesn't
> work. Anyone has any idea how to force tomcat to do that?
>
You need reloadable in , not autoDeploy. There is step-by-step in
my free
tutorial (see
at you use CSS to do the
layout.
See http://www.quirksmode.org/css/forms.html for a simple example.
--
Kent Tong
Free tutorials on Wicket at http://www.agileskills2.org/EWDW
--
View this message in context:
http://www.nabble.com/Form.onComponentTagBody%28%29-tf4575419.html#a13070025
Sent fr
IS WHAT
YOU NEED
target.addComponent(recommendationPanel);
}
});
--
Kent Tong
Free tutorials on Wicket at http://www.agileskills2.org/EWDW
--
View this message in context:
http://www.nabble.com/CompoundPropertyModel-stops-working-when-form-validation-fails
Fabio Fioretti wrote:
>
> The ListChoice uses the same AbstractModel on which the panel inside
> the form builds its CompoundPropertyModel (see my previous posts):
> when user's selection changes, the AbstractModel correctly replaces
> its object with the newly selected instance and the form get
Dan Syrstad-2 wrote:
>
> Your page code is almost exactly the same as mine. However, your HTML does
> not look correct - it has no tag with a wicket:id in it. So maybe your
> component never rendered.
>
No, your mail client has stripped the code. Let me show you the code again:
ice recommendation = new ListChoice("recommendation", ...) {
protected boolean wantOnSelectionChangedNotifications() {
return true;
}
protected void onSelectionChanged(Object newSelection) {
recommendationForm.cl
testing if the model is now detached. That's it. By checking the output
you can be sure that the model was once attached.
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
--
View this message in context:
http://www.nabble.com/Page.detachModels%28%29-not-worki
Dan Syrstad-2 wrote:
>
> Nope. I tried detach() too and that doesn't work - the test still fails. I
> had to write my own method which was basically was a copy of the old
> Page.detachModels() code.
>
> The thing is that In beta3, Page now just acts like a Component as far as
> detachModels()
Juan Gabriel Arias wrote:
>
> Im trying to dinamically show or hide html components, like links,
> buttons,
> etc.
>
something like:
public class MyPage {
public MyPage() {
Link myLink = ...;
MetaDataRoleAuthorizationStrategy.authorize(myLink, RENDER,
"role1,role2");
}
}
--
Vi
Dan Syrstad-2 wrote:
>
> This has broken a JUnit test that was testing a detachable model using
> WicketTester. The same test passes in Wicket 1.2.6. Is there something
> different I should be doing in 1.3?
>
If it was calling detach() instead of detachModels(), then it should
continue
to pass
lizz wrote:
>
> I really dont want to add more steps that the ones I already have. for the
> case when step c is no longer valid I woild like the next button to be
> disabled and the finish button to be enabled. Isn't there a method for
> updating the button panel?
>
As I said, you can enable
lizz wrote:
>
> I have three wizard steps A, B and C
> In step B I have a drop down choice. Whether step c is valid or not
> depends on the selection in the drop down choice in step B.
>
> Everytime the user changes the selection in the drop down choice the
> wizard must be updated (the evaluat
lizz wrote:
>
> Has anyone made a menu (with menu items and submenus) in wicket? I would
> like a menu that looks more or less like the Swing JMenu.
>
> I saw a reference to
> http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-extensions-menubar/
> but didn’t find that pro
lizz wrote:
>
> A parameter in my wizard step decides whether the next step is valid or
> not.
> The end user can change this parameter and I therefore need to be able to
> reevaluate the next wizard steps when this is changed. I use ICondition
> and I guess there is a way for me to force the e
lizz wrote:
>
> How do I change the label on the previous, next and finish buttons in the
> wizard?
> I would like to change the label of the FinishButton to "save".
>
In your .properties file, add:
org.apache.wicket.extensions.wizard.next=Proceed
org.apache.wicket.extensions.wizard.previous
Sam Hough wrote:
>
> Your still breaking my requirement that this behaviour is encapsulated
> within MyFancyRepeatingView ;) I really do appreciate all your code and I
> think I'm learning a lot even if I sound horribly ungrateful. I'm warming
> to every child component having a special behaviou
Sam Hough wrote:
>
> I'm full of cold so probably being very thick but that doesn't work for
> RepeatingView does it as it implies notification of objects being attached
> to a parent :( It looks very clever but I'm not having one of those "god
> that is so simple why didn't I think of that" mo
Nick Busey wrote:
>
> Hey, I'm trying to use a RefreshingView, but can't figure it out. On top
> of that, the examples are broken:
> http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.RefreshingPage
> http://wicketstuff.org/wicket13/repeate
cblehman wrote:
>
> It looks like they insert default classes "headers" "even" and "odd"
> into the table header and rows, but I was wondering if there is an easy
> way for me to either set a property or create a subclass so that I can
> use my own class names rather than these defaults?
>
Try
Sam Hough wrote:
>
> In my ignorance it seems tough to make that work the second time if the
> list has changed. It is also less pretty as the only extension points I
> have are renderIterator and renderChild. I can think of nasty hacks like
> using IdentityHashMap to hold onto Components I've a
Peter Dotchev wrote:
>
> I'd like to use the same value in several places of a page, e.g. two
> labels with same content.
> Let's say I want to substitute the same property using
> CompoundPropertyModel.
>
Try:
public class Home extends WebPage {
private String l1 = "abc";
pu
Adam Koch wrote:
>
> It is mapped to an app and not to the root. The directories I listed
> are in the war file, but I tried to access them with
> http://localhost/myapp/ ...
>
Then I'd suggest you:
1) deploy your app in Tomcat to see if it works.
2) file a jira issue and upload a bare minima
Francisco Diaz Trepat - gmail wrote:
>
> What it is happening is that because of some fields are invalid (Empty) I
> cannot get to the selected option of the DropDownChoice, and by that
> change
> part of the form.
>
Try:
private void showHideDetailsOnForm(AjaxRequestTarget target) {
SantiagoA wrote:
>
> I have a mainpage with some inputfields with ajax in, a submitbutton and a
> TabbePanel with three panels.
> The panels are for output only.
> one of the panels holds an Iframe.
>
> But if the panel with the Iframe is active, means the Tab for the panel
> was clicked, none
SantiagoA wrote:
>
> Sorry, doesn´t work for me either.
>
> The Problem is, that the refreshing in the "main"-page does not work, if
> the particular Panel is active.
> The inputs and the ajax are nested in the main page, the panel shows a
> "readonly" Iframe with no inputs.
>
Sorry that I do
Gwyn wrote:
>
> Please raise an issue - https://issues.apache.org/jira/browse/WICKET
> Feel free to have a go at a patch, as that'll help it's chances of
> getting done!
>
Done (https://issues.apache.org/jira/browse/WICKET-1004). No time to make a
patch though...
--
View this message in conte
Hi,
I think this is one of the most common gotcha's in Wicket: a Label
associated with
an open/close tag like will silently output nothing. As I really can't
think of
a use case when this behavior is the desired behavior (wanting the Label to
output
nothing?), I'd suggest that either it change
pixotec wrote:
>
> I want to use LinkTree to represent a very very large hierarchy (the
> loading of the whole thing is expensive...).
> Is there an AJAX way of loading the children of a node just when clicking
> on the "plus-icon" for expanding?
>
You may try my code below which seems to work
Martijn Dashorst wrote:
>
> I think you need to resend again, this time escaping the markup. It
> seems like nabble have changed something in their interface, as this
> is a recurring theme lately.
>
No problem.
Home:
public class Home extends WebPage {
public Home() {
Chris Colman wrote:
>
> I would have thought that an external link without any protocol prefix
> should always default to an absolute link to an http:// page and not a
> relative link from the current page. Being an external link, by
> definition, it could never be a relative link from the curre
Newgro wrote:
>
> is there a wicket way for handling exceptions? I call my beans from my
> controller which manages the wicket-view (Panel, Page ...). Some
> exceptions i
> want to handle in the controller. But sometimes there are NPEs or IAEs. I
> would like to send them all to an error page
Adam Koch wrote:
>
> In fact, I couldn't get the JS/CSS in any way when using the servlet. I
> tried putting the JS in my app.war in these directories:
> / (root)
> /classes/com/.../someJS.js
> /WEB-INF/classes/com/.../someJS.js (same directory as Class and html)
>
Are you mapping the Wicket s
NateBot2000 wrote:
>
> I created an extension of AjaxSubmitLink that accepts a static html form
> id string as an argument (AjaxFormSubmitBehavior forces setOutputMarkupId
> on the Form by default). In so doing, I extended
> AjaxFormSubmitBehavior... and then I add this custom behavior to my cu
carloc wrote:
>
> public CCTIDetachableModel extends Loadable DetachableModel {
>
> private String id;
> private Integer version;
> private Dao dao;
>
> public Object load() {
> MyObject myobj = dao.get(id);
> if (version == null) {
> version = myobj.getVersion();
> }
> e
SantiagoA wrote:
>
> One of them has an IFrame.
> If this TabbedPanel is active, then the onUpdate-Methode of the
> InputFields won´t be reached.
> Is one of the TabbedPanels without an IFrame active, everything works
> fine.
> This happens that way for IE and Firefox.
>
It works fine for me.
Nick Busey wrote:
>
> So I've got what appears to be a very strange bug. I have a CheckGroup
> with a ListView of Checks among other things. Everything seems to work
> fine if you render the form and submit it without any errors the first
> time. However, if you hit any errors (like not selectin
igor.vaynberg wrote:
>
> heh, "there is something wrong" doesnt really give me any context to help
> you :)
>
> i would guess you need to put the radiogroup around the entire datatable.
>
At least make sure there is a form component enclosing the RadioGroup.
--
View this message in context
Doug Leeper wrote:
>
> I know this is probably one of the most trivial things to do...but I am
> stumped. No example that I found on the Wicket example site has shown
> this. I know that AjaxRequestTarget#focusComponent plays a part in this
> but not sure how. Could someone post a quick code
Nino.Martinez wrote:
>
> I was wondering how I should be testing with wicket. I've created the
> bbcodecomponent, I have a bbcodeLabel. And I would like to write a test
> for that. I can see that I can't use the assertLabel as that just gets
> modelObjectToString, in the bbcodeLabel some for
Yes,sir. I have run the code more three times before.
Maybe it's because I run the code with wicket 1.2.6 and
wicket-extensions-1.2.6 and jdk 1.4.12.
Really I don't know what happen! Thank's your help again. Thanks!
Then try using 1.3 beta3.
--
View this message in context:
http://www.nabble.
Helo! Kent Thanks for your help.
But I still have the same question.
That's if I choice A with select A1 to selectedList and then choice B with
selected nothing to selectedList.
It's ok when I choice A again and see the A1 at selectedList.
But if I choice A with select A1 to selectedList and th
JohnSmith333 wrote:
>
> I have use a Palette with DropDownChoice. I want to change the
> DropDownChoice's selected value and then update the Palette's lists. And
> when I click the Palette's value ,I hope to save the change result.
> But it's not work normally. Could anyone kind to help me? Tha
Andrew Klochkov wrote:
>
> Wow, Kent, thanks a lot for the code!!
>
> I wonder shouldn't something like this be in the framework core?
>
I simply adapted the code from the CompressedPackageResource.
As reusable components should have their resources bundled with
them in the classpath, Compr
Kent Tong wrote:
>
> Yeah, it is in there because it hasn't been serialized and deserialized.
>
If your code was like:
public class QueryDetachableModel extends LoadableDetachableModel {
public QueryDetachableModel(Object instance) {
james yong wrote:
>
> I am using IndexedParamUrlCodingStrategy. Is there is a good way to check
> the number of available parameters? Currently i have to use
> getString("0"), getString("1") etc. to check for null before I arrived at
> the size of the available parameters.
>
Have you tried:
carloc wrote:
>
> Somehow, it seems that transient objects are stored in the session.
> WHen I try to look at the session in eclipse's debug mode,
> I can actually see my User object in there even though I marked as
> transient.
>
Yeah, it is in there because it hasn't been serialized and des
Jonathan Locke wrote:
>
> Your QueryDetachableModel will break under clustering. The transient
> "instance" Object will become null when the container deserializes it and
> your load method will be unable to reload the object.
>
> If you're using these QueryDetachableModels, yes, the object
Potje rode kool wrote:
>
> I used the log config files from the wicket example that comes with wicket
> (apache-wicket-1.3.0-beta3) and set it to debug.
>
> Any idea what I am missing to see the debugging of Wicket for the
> org.apache.wicket.util.resource package?
>
Are you sure you're using
Andrew Klochkov wrote:
>
> Hi!
>
> How to compress resources (css, java scripts) which are lying not in
> the classpath but in /css and /js in the webapp context folder? How can
> I create a CompressedResourceReference to such a resource?
>
Try:
public class MyApp extends WebApplication
Hi Dan,
It looks very powerful! BTW, why chose to use a config file (beanprops)
instead of Java code?
I think doing in Java for everything other than the standard web stuff
(HTML/CSS/js) is a
basic principle of Wicket.
--
View this message in context:
http://www.nabble.com/Re%3A-Wicket-Web-Be
Kevin Liu-4 wrote:
>
> Unable to find component with id 'userName' in [MarkupContainer
> [Component id = _relative_path_prefix_14, page =
> com.cmip.web.pages.TopFrame, path =
> 3:topForm:_relative_path_prefix_13:_relative_path_prefix_14.WebMarkupContainer,
> isVisible = true, isVersioned = tr
spencer.c wrote:
>
> StringValidator.maximum=${label} must be no longer than ${maximum}
> characters.
> sendForm.senderField.Required=You must provide your email address to
> proceed.
>
Try:
sendForm.senderField.StringValidator.maximum=${label} must be no longer than
${maximum} characters.
se
bhupat parmar wrote:
>
> hi
> i have to add an iamge in my ImageMap.RectangleLink which is not
> predefined
> THE IMAGE IS LOADED from database?
>
You can try using an AttributeModifier to modify the "src" attribute of the
tag. You can
subclass ResourceReference to load the image from your
Thanks, yes, my solution was close to this, but I opted instead to subclass
the Include class. I think the solution that you propose below may cause
wicket to create an absolute URL to the HTML files under the WEB-INF dir
which will be inaccessible by the browser. /quote>
No. The URL is never s
Jason Mihalick wrote:
>
> Thank you for the suggestion. This looks like it ought to work fine for
> exploded WARs, but it seems like it would be a problem when then app is
> deployed in a WAR. Is there any way to do this that will work when the
> app is deployed in a WAR archive? Or is there
Sebastiaan van Erk wrote:
>
> Ok, to answer my own question, it seems that ExternalLink does not have
> the ability to be disabled like Link.
>
Looks like a bug to me. I'd suggest that you submit a JIRA issue at
http://issues.apache.org/jira/browse/WICKET
--
View this message in context:
h
Chris Lintz wrote:
>
> Hi,
> When a user logouts of the site, i want to kill the session and have it be
> removed from disk immediately. I have extended WebSession properly, but
> no methods on the WebSession class seem to do the trick for me.
>
> Is there a way to to trigger the removal of t
John Carlson-5 wrote:
>
> I get the following error output in the console when I click on the link
> on the actual page...
>
> INFO - uestTargetResolverStrategy - component not enabled or visible,
> redirecting to calling page, component: null
>
It probably means the your container which co
Jason Mihalick wrote:
>
> However, if I try to move my pages under WEB-INF, wicket has a problem
> loading resources that are bound via the
> org.apache.wicket.markup.html.include.Include class. In my case, I have
> several static pages that I want to load dynamically which are located in
> my
Alastair Maw-2 wrote:
>
> The English in question is:
> '${input}' is not a valid URL.
>
The Traditional Chinese (zh_TW) version is:
UrlValidator='${input}'\u4e0d\u662f\u4e00\u500b\u5408\u6cd5\u7684URL\u3002
The Simplified Chinese (zh_CN) version is:
UrlValidator='${input}'\u4e0d\u662f\u4e
pixotec wrote:
>
> YOU GUESS WHAT?!!
> I JUST RENAMED THE FILE TO "dialogTable.htm" AND NOW IT IS WORKING!!
> it is the fact of not being able to serve "html"-files!
>
> I think this fact should be documented in the JAVADOC of the
> Resource-classes!
>
Just upgrade to the latest v1.3 beta and
pokkie wrote:
>
> Worked like a charm, thanks Kent.
>
> You the same Kent Tong that wrote a online Tapestry book?
>
Yep.
--
View this message in context:
http://www.nabble.com/AjaxFallbackLink-inside-ListView-tf4389622.html#a12534270
Sent from the Wicket - User mailing
pokkie wrote:
>
> My question is, how do I use this information to get the selected entity
> which represents a row in my listView?
>
Try:
public class Test extends WebPage {
public Test() {
List list = Arrays.asList(new String[] { "a", "b", "c"
});
fero wrote:
>
> I found what was wrong but I can not explain it
>
> In markup of LabelLink I had
>
>
>
>
> When I changed "button" tags to "a" it was working, but I want my links to
> look like buttons
>
>
>
>
>
>
I tried using a button and it works fine. Here is my co
Jeremy Thomerson-3 wrote:
>
> Is there a way to append an anchor to the URL generated for the
> SubmitLink?
>
Try:
form.add(new AttributeModifier("action", null) {
protected String newValue(String currentValue,
St
igor.vaynberg wrote:
>
> yeah, but you are forgetting that you will also need the compound variant,
> blah blah. before you know it you have replicated a bunch of the
> hierarchy.
> like i said, lets have a vote, propose as many variants of this as you
> want
> and we can see where it goes/what
igor.vaynberg wrote:
>
> cmon, there are plenty of things you can abuse in wicket, or any other
> framework. that is just the nature of the beast. as framework developers
> we
> put out features and hope that our users know how to use them responsibly.
> we cannot continuously cater to newbie u
igor.vaynberg wrote:
>
> i really dont think this is breaking encapsulation. i will concede that
> there is one case where it can break encapsulation and that is when you
> start out with what is publically accessible and then later you change
> your
> mind and make it completely private, but fo
David Leangen leangen.net> writes:
> Well... the end goal is to use the URL as the controlling input for the
> branding of my application. So I have a BrandingService with something like:
>
> Branding getBranding( String url );
Have you considered using mod_rewrite (in Apache) to convert the
Matej Knopp gmail.com> writes:
> Yeah, ResourceReference is like global resource factory. That is for
> resources that don't belong to any component/page (they can't touch
> any component instance while they are served).
However, I don't understand why we should not just use static class
members
Matej Knopp gmail.com> writes:
> basically, there are two kinds of resources in wicket. One is
> application-scope resources, that don't need the context of a page
> (javascriptps, css...) and the other is component resources, which
> kind of belong to a component - so they have access to compone
Hi,
I'm having some doubts about why the concept of resource reference is
needed; it seems resource already suffices. As I understand the purpose
of resource reference is to reduce the memory used and the need to
replicate changes in a cluster. However, a resource can also generate
or load the da
101 - 180 of 180 matches
Mail list logo