Maybe I should explain one of use-cases. Let's say we have a form to
enter RSS feed information. There are two TextFields:
- url for RSS feed (urlModel)
- custom RSS feed name (nameModel).
Both are required and both have OnChangeBehavior attached. When user
enter url for RSS the name of it
hrbaer wrote:
In a fit of despair I tried to replace my ListView component with a
RepeatingView component to access either my ListFragen or
Frage/Input - unfortunatelly without success :(
If you use a RepeatingView you can add any Component to it (I think) so
erzeugeEingabeFeld(..) could
Hi,
i've copied the solution described in
https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:message.
Wicket: 1.4.15
MyPage.java
public MyPage() {
final VatList vatList = new VatList(_vatExecutor.getVats());
add(new Label(vat1value,
I also use 1.5-SNAPSHOT and all is ok here.
If you can create a quickstart that reproduces then create a ticket in Jira.
On Fri, Feb 18, 2011 at 1:11 PM, Josh Kamau joshnet2...@gmail.com wrote:
Hello there, i had an application that was working with snapshots but
now am getting the below
Change
wicket:message key=item.pricedisclaimer1
[Disclaimer 1]
span wicket:id=vat1value[Vat1]/span.
span wicket:id=vat2value[Vat2]/span.
/wicket:message
with
wicket:message key=item.pricedisclaimer1
[Disclaimer 1]
/wicket:message
span
Hi Martin,
this isn't what i try to achieve. The wiki states Starting from Wicket
1.4 you can nest components within a wicket:message element.. And i
would like to exchange the placeholders with the 2 values on the label.
Btw. i tried your change solution and it gives me the same exception.
I didn't know about this feature until now ...
Create a ticket with a quickstart please.
On Fri, Feb 18, 2011 at 2:46 PM, Mike Mander wicket-m...@gmx.de wrote:
Hi Martin,
this isn't what i try to achieve. The wiki states Starting from Wicket 1.4
you can nest components within a
Hi
Are the existing children of a RepeatingView/RefreshingView being
informed, when
the View is newly populated (RefreshingView.onPopulate).
I'd like to clean some internal references in this case.
I tried:
- aChild.onRemove is not called in this situation
- aChild.setParent(null) is called.
Done. https://issues.apache.org/jira/browse/WICKET-3454
It seems to be a border or sub-page problem. Adding this feature to a
plain simple page is working as expected.
Thanks for support
Mike
I didn't know about this feature until now ...
Create a ticket with a quickstart please.
On Fri,
Hi,
I'm really new to wicket and I'm trying to learn about with wicket in
action.
Now the problem: I've initialized a project trought maven quikstart version:
1.5rc1.
A first test with the jetty engine work as aspected.
the session is implemented with the following class:
public class
Hi, I'm having trouble storing user uploaded images.
In my WicketApplication class, I setup a folder to store users
pictures, so I end up with a folder structure similar to this:
ROOT FOLDER
- user1_folder (pic1.jpg, pic2.jpg, etc...)
- user2_folder ( ... )
- ...
The issue I am having is that
in CheesrApplication class you need to override newSession() method and
return new CheesrSession()
On Fri, Feb 18, 2011 at 3:56 PM, xaver saverio.scave...@googlemail.comwrote:
Hi,
I'm really new to wicket and I'm trying to learn about with wicket in
action.
Now the problem: I've
don't use . (current folder) in web apps
better user servletcontext.getAttribute(javax.servlet.context.tempdir) and
use that as root folder
if you need the uploads to be persistent (to be there after server restart)
then create your own folder (e.g. /apps/myapp/image-uploads)
On Fri, Feb 18,
Have you overwriten the newSession(request, response) method in your
WebApplication?
There you have to instantiate your ChesrSession.
Cheers
Mike
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional
Hi,
Is this Open to people outside Belgium, Am in Nairobi.Kenya.Africa.
Kind regards.
Josh.
On Thu, Feb 17, 2011 at 11:10 PM, Maarten Bosteels
mbosteels@gmail.comwrote:
Hi everyone,
We are looking for a senior Java Developer, preferably with good knowledge
of Wicket.
You will join a
On Fri, Feb 18, 2011 at 9:21 AM, Martin Grigorov mgrigo...@apache.org wrote:
if you need the uploads to be persistent (to be there after server restart)
then create your own folder (e.g. /apps/myapp/image-uploads)
Or a database.
Thks.
It works!!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-in-action-session-Problems-tp3312697p3312794.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To
Any idea?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/EmailAddressValidator-triggers-on-empty-input-field-tp3299464p3312795.html
Sent from the Users forum mailing list archive at Nabble.com.
-
Hi Igor, the file isn't saved anywhere, it's immediately returned to the user
in the browser, as follows:
(in Form OnSubmit)
---
File f = generateExcelFile(); // generates a File object
ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(
Am 18.02.2011 15:39, schrieb hrbaer:
Any idea?
Did you check INullAcceptingValidatorT and
AbstractValidatorT.validateOnNullValue() ?
They discribe what is to do.
Cheers
Mike
-
To unsubscribe, e-mail:
Hi,
I have a list view, and I am using LoadableDetachableModel as the
model for the list view.
The only problem that I have is I also have add more button, that adds
extra rows to the list view using ajax.
Since the model is read only, I can't add any rows to it.
WebMarkupContainer myPanel =
Right, but for this validator you are forced to use the singleton,
which doesn't allow you to customize this feature.
On Fri, Feb 18, 2011 at 9:53 AM, Mike Mander wicket-m...@gmx.de wrote:
Am 18.02.2011 15:39, schrieb hrbaer:
Any idea?
Did you check INullAcceptingValidatorT and
On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
validation is there to make sure the user of the webapp cannot push an
illegal value into a model. it doesnt matter if its just the component
that is being submitted or the entire form. components decide whether
or
I checked a little example and it worked as expected:
- nothing in field ENTER results in All valid!
- wrong email in field ENTER results in oops
- valid email in field ENTER results in All valid!
public class HomePage extends WebPage {
public HomePage(final PageParameters parameters) {
Explore the option of having a Resource mounted at a Fixed URL that will
serves your file (It will create/load your file on demand) if you hit that
URL. In that way you can do what Igor's said.
On Fri, Feb 18, 2011 at 11:49 AM, eugenebalt [via Apache Wicket]
That would introduce a whole new level of complexity. Such a resource service
would need to be thread-safe, it would have to have cleanup of old
documents, or maybe the documents would need to be stored in a database.
Is there a relatively easy way to take care of this problem, which is
Hi,
I assume your query model loads the records from a db? Then persist the new
Myrecord first (via a DAO and/or service layer) and then detach the model
explicitely to let it query a fresh state.
WebMarkupContainer myPanel = new WebMarkupContainer(myPanel);
myPanel.setOutputMarkupId(true);
No, it sends a request somewhere and gets a response, I can't change
the response. is there any other way? or maybe I need to change the
model?
On Fri, Feb 18, 2011 at 10:52 AM, Sven Meier s...@meiers.net wrote:
Hi,
I assume your query model loads the records from a db? Then persist the new
Hi,
Using Wicket 1.5RC1, how do I mount a Page to root that is other than the
home page? E.g.:
www.myapp.com -IndexPage.class
www.myapp.com/${username} -OtherPage.class with ${username} as a
pageparameter
thanks,
Nim
--
View this message in context:
Hi,
I have a tree with ExternalLink as a leaf node. Is it possible to make
the tree dynamic? Like when the user clicks on a +, the model gets
reloaded and the tree rerendered?
Thanks
Anna
-
To unsubscribe, e-mail:
Hi,
Using Wicket 1.5RC1, how do I mount a Page to root that is other than the
home page? E.g.:
www.myapp.com -IndexPage.class
can you try this?
mountPackage(/, IndexPage.class);
Not sure about - try mountPage if you don't want to mount the package
Christian
www.myapp.com/${username}
Finally I got it.
If you add setType( String.class ) to your TextField the
EmailAddressValidator triggers on null/empty input. If you leave this
everything works fine...
I thought it would be useful to declare my inputfields as a certain type.
Obviously it's not needed but also the outcome of
Am 18.02.2011 17:10, schrieb Anna Simbirtsev:
Hi,
I have a tree with ExternalLink as a leaf node. Is it possible to make
the tree dynamic? Like when the user clicks on a +, the model gets
reloaded and the tree rerendered?
Thanks
Anna
that looks like a bug to me. the reason it has gone unnoticed for so
long is that someone would have to hack html to cause it. onchange
only fires in browsers when there is a value selected, so that code
would not typically be called with a null, and thus no need to check
required.
-igor
On Fri,
file a bug with a quickstart. onremove() should be called on all
removed components.
-igor
On Fri, Feb 18, 2011 at 5:38 AM, Benedikt Rothe benedikt.ro...@qleo.de wrote:
Hi
Are the existing children of a RepeatingView/RefreshingView being informed,
when
the View is newly populated
Hi Christian,
Thanks for your reply. I have already set the Index page as the homepage.
I was trying to figure out how to handle this: www.myapp.com/username where
username is variable
Cheers,
Nim
--
View this message in context:
Not exactly sure what the issue is. You can simply put the components into
panels (or other objects). Meaning make a Download Component, then an Upload
Component separate classes so they can be re-used in the future if you only
want to allow a download form... then put them in one form and decide
try mountPage(${username}, MyPage.class) and access username through
pageparameters
-igor
On Fri, Feb 18, 2011 at 8:41 AM, nimmy nim_sa...@hotmail.com wrote:
Hi Christian,
Thanks for your reply. I have already set the Index page as the homepage.
I was trying to figure out how to handle
You can see how this works for you:
String path = WebApplication.get().getServletContext().getRealPath();
Folder uploadFolder = new Folder(path+/uploads);
public String getURLFolder(){
return
getServletContext().getContextPath()+uploadFolder.getPath().replace(path,
);
}
I remember
It can be called with null value when you set DropDownChoice.setNullValid(true).
You don't want to understand that this is a good behavior in many
cases, not a bug. But ok it is your framework, so you decide. But
maybe other Wicket commiters have a different feeling about it?
--
Daniel
On Fri,
Thanks for that Igor. I have another 1.5RC1 question - where do I set the
redirect flag? E.g. in 1.4, when the user logs out of the app I do the
following:
getSession().invalidate();
getRequestCycle().setRedirect(true);
setResponsePage(MyApplication.get().getHomePage());
One other question I have, how do I know what will happpen first? (Ajax or
Refresh)?
Suppose I add JavaScript to my Ajax Button Click; my file-generation happens
in the OnSubmit(), so I don't know whether I have the file already or not.
In fact, my output console shows that the Ajax Click always
I am trying to generate something like the following output:
This is a sentence with something some text that is linked.
The text of the sentence needs to be localized. The link needs to be normal
wicket Link.
I think that if we were using the localization approach where the pages
You could try this :
https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
That what I use to do what you want to do...
--
View this message in context:
If you need anything else than string, integer for example its needed
On Feb 18, 2011 5:14 PM, hrbaer herber.m...@gmail.com wrote:
Finally I got it.
If you add setType( String.class ) to your TextField the
EmailAddressValidator triggers on null/empty input. If you leave this
everything works
Thanks for that example. How do I create an IResourceStream?
According to that example, I need to provide a custom
createResourceStream(). I have a File object returned to me as part of my
file generation, how do I convert the File into an IResourceStream? Thanks
--
View this message in
On Fri, Feb 18, 2011 at 10:09 AM, Daniel Stoch daniel.st...@gmail.com wrote:
My post was only a proposal, because it is not possible to easy extend
AjaxFormComponentUpdatingBehavior because onEvent() is final. I want
to avoid copy/paste code with only a little change. And I think this
change
its it possible to have multiple mark up files for one panel
My panel has list view , in one place I want to use an ordered list and in
other place I want to use a table ,I can achieve this if my panel has
multiple markup files and my panel will return the mark up based on
Hi,
why dont you just extend your Panel and just add another Markup?
The extended Panel doesnt do anything, but can have another Markup. We
have done this often.
Regards
Martin
--
View this message in context:
Gabriel Landon, I got it to work, but my Validators don't work any more.
I need the validators to check for empty fields etc. BEFORE downloading.
Before, the validator chain was working in Form onSubmit(). Now with this
AjaxDownload, no Validators get activated. Any ideas?
--
View this message
Do you want to display ordered list and table alternativly?
Build two panels - one for the ordered list and one for the table.
Add this to a parent panel by preference. This panel simply has
a div or whatever and will be extended by markup of choosen panel.
So you don't have to provide one
Check out variations and styles.
https://cwiki.apache.org/WICKET/multiple-markups-per-page.html
Scott
On Fri, Feb 18, 2011 at 11:46 AM, splitshade
martin.dil...@googlemail.com wrote:
Hi,
why dont you just extend your Panel and just add another Markup?
The extended Panel doesnt do anything,
...and this too
https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html
Scott
On Fri, Feb 18, 2011 at 11:52 AM, Scott Swank scott.sw...@gmail.com wrote:
Check out variations and styles.
https://cwiki.apache.org/WICKET/multiple-markups-per-page.html
Scott
On Fri,
hi,
omg, thank you for the hint on variations, i did not know it could be so
simple!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/multiple-markup-files-for-on-panel-tp3313413p3313461.html
Sent from the Users forum mailing list archive at Nabble.com.
wicket noob question:
I'm trying to change the width of the simple Tree component .. it seems to
be defined in tree.css as 20em .. what's the correct way to override this?
TIA
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-tree-tp3313498p3313498.html
Sent
I think I was able to log wicket log4j messages (pre wicket verson
1.4.10) by specificying a log4j appender for the wicket package.
E.g. org.apache.wicket.*
But, I wonder with the recent version of wicket, do I have to use
org.slf4j.impl ...
Basically, is there anything special to redirect
Just write your own style with the same id, it will override the other, isn't?
Sent from my iPhone
Le 18 févr. 2011 à 21:40, mlabs mlabs@gmail.com a écrit :
wicket noob question:
I'm trying to change the width of the simple Tree component .. it seems to
be defined in tree.css as 20em
I tried adding this to the head on the page containing the tree:
style type=text/css
div.wicket-tree {
white-space: nowrap;
/*border: 1px solid #ccc; remove border*/
width: 60em; /* increase width to
Hi,
We are looking for a permanent, full-time position, not for a consultant.
We need someone who is able to work at our office at least 4 days a week.
So I am afraid that living in (or moving to) Belgium is a requirement
best regards
Maarten
On Fri, Feb 18, 2011 at 3:30 PM, Josh Kamau
Do your use case needs to convert a null input? If the input is differs from
null FormComponent#validate will be just fine.
On Fri, Feb 18, 2011 at 5:20 PM, Daniel Stoch daniel.st...@gmail.comwrote:
On Fri, Feb 18, 2011 at 10:09 AM, Daniel Stoch daniel.st...@gmail.com
wrote:
My post was
On Thu, Feb 17, 2011 at 8:32 PM, Daniel Stoch daniel.st...@gmail.comwrote:
On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com
wrote:
validation is there to make sure the user of the webapp cannot push an
illegal value into a model. it doesnt matter if its just the
Interestingly if the tree component has its own style unique to the component
I think it will or could override a css style applied for the page even
matching classes.
Perhaps you can also try on the component:
@Override
public void onComponentTag(ComponentTag tag){
super.onComponentTag();
that method puts the style on the enclosing div like so:
div wicket:id=test-tree style=... width:60em; ...
wicket:panel
div class=wicket-tree
...
and the inner 'wicket-tree' style definition still seems to be taking
preference...
so still no joy :(
--
View this
I need to pass any value (null or not null) to a model without
validation. So I cannot call validate() but only convertInput() (as
you can see for example in DropDownChoice). To do this inside a
behavior class convertInput() method must be public (or I need to hack
this using a reflection, but
well i'm beginning to get the impression that this particular tree isn't
intended for re-use .. and grepping around here I see that others have run
into this little chestnut too.. and that there is a better tree to use now
.. the LinkTree ? Ok so I tried that and no problems with sizing .. much
65 matches
Mail list logo