I declare a base markup page like so:
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8/
titleMy Wicket App/title
link rel=stylesheet type=text/css
href=resources/com.mycompany.webconsole.app.WebConsoleApplication/resources/style.css/
/head
and I have my
Use
#renderHead(IHeaderResponse response) {
response.renderCssReference(new
PackageResourceReference(WebConsoleApplication.class,
resources/style.css));
}
On Wed, Jul 27, 2011 at 10:20 AM, mlabs mlabs@gmail.com wrote:
I declare a base markup page like so:
head
meta
Hi,
In my page I have two dialog box say D1 and D2.
When clicking some link D1 should come, and it is happening. It is a
confirmation dialog box.
Now when I click ok button in D1 then D2 should be shown by replacing D1.
code is
D1.replaceWith(D2);
ajaxRequestTarget.add(D1);
Hi,
try adding to ajaxRequestTarget the parent component instead of D1 and D2.
Hi,
In my page I have two dialog box say D1 and D2.
When clicking some link D1 should come, and it is happening. It is a
confirmation dialog box.
Now when I click ok button in D1 then D2 should be shown by
Hi.
Is here anyone who is currently doing something with tinymce wicketstuff
project ? I saw that in current version we are not able to add more then
one instance of tiny in one page. I want to change it. I saw that
wicket-stuff was moved to git, accounts from svn was copied or should i
ask
Hi Andrea,
Thanks for replying. But if I add only parent to the target then D1 goes but
D2 is not appearing.
On Wed, Jul 27, 2011 at 2:28 PM, Andrea Del Bene adelb...@ciseonweb.itwrote:
Hi,
try adding to ajaxRequestTarget the parent component instead of D1 and D2.
Hi,
In my page I have
What is the type of this DialogBox ? Is it a Panel or a ModalWindow?
On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun ttej...@educator.eu wrote:
Hi,
In my page I have two dialog box say D1 and D2.
When clicking some link D1 should come, and it is happening. It is a
confirmation dialog box.
Hi Martin,
It is a panel.
On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov mgrigo...@apache.orgwrote:
What is the type of this DialogBox ? Is it a Panel or a ModalWindow?
On Wed, Jul 27, 2011 at 11:34 AM, Tejash Tarun ttej...@educator.eu
wrote:
Hi,
In my page I have two dialog box say
New account is needed.
On Wed, Jul 27, 2011 at 12:57 PM, Michal Letynski m...@consol.ae wrote:
Hi.
Is here anyone who is currently doing something with tinymce wicketstuff
project ? I saw that in current version we are not able to add more then one
instance of tiny in one page. I want to
Use structure:
.src
.java
..com
...myapp
...[HTML Java go here]
...img
...css
...somethink else you would like
In img dir put Images.class, in css put Styles.class and so on, for example:
package com.myapp.images;
public
See org.apache.wicket.Component.replaceWith(Component) javadoc.
It says: Usage: codecomponent = component.replaceWith(replacement);/code
On Wed, Jul 27, 2011 at 1:34 PM, Tejash Tarun ttej...@educator.eu wrote:
Hi Martin,
It is a panel.
On Wed, Jul 27, 2011 at 3:45 PM, Martin Grigorov
@Martin: after calling D1.replaceWith(D2), D1=D2 is done as well.
On Wed, Jul 27, 2011 at 4:29 PM, Martin Grigorov mgrigo...@apache.orgwrote:
See org.apache.wicket.Component.replaceWith(Component) javadoc.
It says: Usage: codecomponent =
component.replaceWith(replacement);/code
On Wed,
You can put your resources in src/main/webapp but I would not recommend to do
so (they will work by using an absolute path with the correct web app context)
but it's quite ugly *imho*
My suggestion is:
Put them somewhere in your package hierarchy below src/main/java where it fits
best.
D2 replaces D1, but D1 is reassigned to D2, so there is no need to
target.add(D2)
It is hard to help you with the information you give us.
On Wed, Jul 27, 2011 at 3:17 PM, Tejash Tarun ttej...@educator.eu wrote:
@Martin: after calling D1.replaceWith(D2), D1=D2 is done as well.
On Wed, Jul
Am 27.07.2011 14:21, schrieb Peter Ertl:
You can put your resources in src/main/webapp but I would not recommend to do
so (they will work by using an absolute path with the correct web app
context) but it's quite ugly *imho*
no, you can just reference them via css/style.css eg. if you have
Hi,
Post a message on the dev list with your github username requesting
commit access and you can be added.
If you want to get started right away you can fork the wicketstuff/core
project on github, make changes to your fork and then submit a pull
request to get your changes incorporated
Miroslav, is there way to achive some kind of whole package mounting
without explicit mounting of each image?
2011/7/27 Miroslav F. mir...@seznam.cz
Use structure:
.src
.java
..com
...myapp
...[HTML Java go here]
...img
if your login page is mounted to path '/login/authenticate' and the application
is deployed to web application context '/myapp' your page will be available at
/myapp/login/authenticate
and the css in src/main/webapp/styles.css must be referenced from your page via
1) ../../css/styles.css
or
put the images in an package and use wicket:link properly ... no need to mount
at all
Am 27.07.2011 um 14:45 schrieb Dmitriy Ivanov:
Miroslav, is there way to achive some kind of whole package mounting
without explicit mounting of each image?
2011/7/27 Miroslav F. mir...@seznam.cz
Use
@Martin: after calling D1.replaceWith(D2), D1=D2 is done as well.
Are you sure you call D2.setOutputMarkupId(true)? Otherwise the Wicket Ajax
handler will not find the correct DOM element to replace.
- Tor Iver
-
To
Guys, I tried creating new folders under src/, naming them main/ and then
webapp/ under main/, with img and css subdirectories, but that didn't work
either, I don't know why. It was supposed to find it automatically.
But anyway, I don't want to reorganize my project structure. It's an
existing
I was assuming you use maven
'src/main/java'
and
'src/main/webapp'
see
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
If you don't use maven you have to choose the corresponding directory in your
build / IDE environment...
Am 27.07.2011 um
Michal Letynski wrote:
Is here anyone who is currently doing something with tinymce wicketstuff
project ? I saw that in current version we are not able to add more then
one instance of tiny in one page.
I've recently made some commits to the tinymce wicketstuff package on
GitHub, if
On Wed, Jul 27, 2011 at 3:54 PM, Peter Ertl pe...@gmx.org wrote:
if your login page is mounted to path '/login/authenticate' and the
application is deployed to web application context '/myapp' your page will be
available at
/myapp/login/authenticate
and the css in
Actually you just have to use css/styles.css and Wicket will
relativize it for you.
There is a special IMarkupFilter for that.
but only if wrap it inside wicket:link
this will not work for resources in src/main/webapp but only for package
resources
without wicket:link the markup will just
Can I do, in my Application class,
getResourceSettings().addResourceFolder(this.getServletContext().getContextPath())
? The theory being, that all folders (src and web) will be added as resource
folders, and my img and css files will be found.
--
View this message in context:
Trust me! ;-)
See the javadoc of
org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler
On Wed, Jul 27, 2011 at 4:52 PM, Peter Ertl pe...@gmx.org wrote:
Actually you just have to use css/styles.css and Wicket will
relativize it for you.
There is a special IMarkupFilter for that.
From https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html, are these still
the desired tags for the start of a wicket html file?
?xml version=1.0 encoding=UTF-8?
html xmlns=http://www.w3.org/1999/xhtml;
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd;
xml:lang=en
I come across this scenario quite a bit. Say I have a Container/Fragment/etc
with several (~10) child components, and I'm using Ajax to toggle the
visibility of a small set (~4) of those children. The other children are
unchanged by the Ajax call.
Are there a performance (or other)
I've been playing with Wicket and Scala and I thought this could be added to
the wicket-scala project at WicketStuff.
What do you guys think?
https://gist.github.com/1109603
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
At server side it is basically the same.
At client side (javascript) repainting just one component should be faster.
On Wed, Jul 27, 2011 at 6:25 PM, jbrookover jbrooko...@cast.org wrote:
I come across this scenario quite a bit. Say I have a Container/Fragment/etc
with several (~10) child
Adding some usage examples at the bottom will help us evaluate it.
Why not add type to
def textField(id: String): TextField[_] = { val field = new
TextField(id); add(field); field }
to become
def textField[T](id: String): TextField[T] = { val field = new
TextField[T](id); add(field); field }
def button(id: String, submit: () ⇒ Void): Button = {
it should be () = Unit, no ?
On Wed, Jul 27, 2011 at 6:51 PM, Martin Grigorov mgrigo...@apache.org wrote:
Adding some usage examples at the bottom will help us evaluate it.
Why not add type to
def textField(id: String): TextField[_] = {
Hi,
I fave a ton of possible dynamic content where for each content I have to
associate a Mount Point.
im thinking of a strategy to do that efficiently.
To cater to it, following questions:
1). What decides the technical limit to the number of Mount points possible?
(Does it load all the mount
No, the function must return void, not another function (unit).
But there's also the option of () = Nothing. Which one should I use for
this case?
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
On Wed, Jul 27, 2011 at 12:54 PM, Martin Grigorov mgrigo...@apache.orgwrote:
def
Read the manual again ;-)
On Wed, Jul 27, 2011 at 8:14 PM, Bruno Borges bruno.bor...@gmail.com wrote:
No, the function must return void, not another function (unit).
But there's also the option of () = Nothing. Which one should I use for
this case?
*Bruno Borges*
www.brunoborges.com.br
I think you do want Unit, which as I understand it is closest
equivalent to void in Scala.
http://www.scala-lang.org/api/current/scala/Unit.html
Scott
On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges bruno.bor...@gmail.com wrote:
No, the function must return void, not another function (unit).
Not really.
The method onSubmit() of button is void, as well onClick(), so there's no
need for the function be passed as () = Unit or anything else.
I made a few changes to it and updated on Gist.
I've also uploaded a page that uses this DSL at
https://gist.github.com/1109919
Take a look
Can some Scala expert help me to make this DSL available as PML (pimp my
library)?
I've tried to code it that way but things didn't quite worked out the way
they should.
The reason is that for every Wicket object I create, I must extend the trait
DSLWicket
*Bruno Borges*
Hi All,
I am using a DropDownChoice with a list of values. The choice list come from
DB in a sorted order.
When I new AjaxFormComponentUpdatingBehavior(onchange) event, the
onUpdate(AjaxRequestTarget target) method is excecuted and it updates some
values. After this method executed, choice list
I would like to point out that tinymce in wicketstuff 1.5 branch needs some
love too. It is not yet ported to wicket 1.5.
Attila
2011/7/27 jbrookover jbrooko...@cast.org
Michal Letynski wrote:
Is here anyone who is currently doing something with tinymce wicketstuff
project ? I saw that
I didn't see the question.
On Wed, Jul 27, 2011 at 8:42 PM, Archana.AA
archanaacharya.adhik...@gmail.com wrote:
Hi All,
I am using a DropDownChoice with a list of values. The choice list come from
DB in a sorted order.
When I new AjaxFormComponentUpdatingBehavior(onchange) event, the
Take a look at scala.swing.* sources.
On Wed, Jul 27, 2011 at 8:34 PM, Bruno Borges bruno.bor...@gmail.com wrote:
Can some Scala expert help me to make this DSL available as PML (pimp my
library)?
I've tried to code it that way but things didn't quite worked out the way
they should.
The
What type of collection are you using in the model object?
On Wed, Jul 27, 2011 at 2:09 PM, Martin Grigorov mgrigo...@apache.orgwrote:
I didn't see the question.
On Wed, Jul 27, 2011 at 8:42 PM, Archana.AA
archanaacharya.adhik...@gmail.com wrote:
Hi All,
I am using a DropDownChoice
I mean to say before the onUpdate was executed the DropDownChoice contains in
the order of (A, B, C, D).
But after the execution of onUpdate() the DropDownChoice contains in the
order of (D, B, A, C) which is totally a new order. I have not updated the
sequence of the elements. But still the order
I am using a List.
-
Thanks Regards,
Archana
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699387.html
Sent from the Users forum mailing list archive at Nabble.com.
Fresh new description how to do that in Wicket 1.5:
http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
On Tue, Jul 26, 2011 at 3:38 PM, eugenebalt eugeneb...@yahoo.com wrote:
I have the exact same problem. I have Images coming from the DB, along with
other stuff, and I need to
Idea for simplification: use named parameters.
For example
def label[T](id: String, model: IModel[T]): Label = { val label = new
Label(id, model); add(label); label }
would become
def label[T](id: String, model = _ : IModel[T]): Label = { val label =
new Label(id, model); add(label); label }
this
I am using a Arraylist.
-
Thanks Regards,
Archana
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699493.html
Sent from the Users forum mailing list archive at Nabble.com.
I started on something sililar about a month ago. Havnt had time to work on
it for a few weeks but maybe it would be usable by someone.
https://github.com/btilford/wicketstuff-core/branches/scala-wicket-builder
There's also a groovy builder if you browse my other repos.
sent from mobile
On Jul
I guess my question is a little simpler than Miroslav's because I don't need
to modify the URLs. I don't need to mount anything. I just need a dynamic
image display from a byte[], I don't care which URL Wicket uses.
How can I construct a DynamicImageResource from a byte[], and give it to the
Thanks Martin,
There was only a small little problem in your code. The correct syntax is:
def label[T](id: String, model: IModel[T] = null): Label = { val label = new
Label(id, model); add(label); label }
The suggestions were updated on Gist.
*Bruno Borges*
www.brunoborges.com.br
+55 21
The DropDownChoice should respect the list sequence, show some code so
we can track the source of the problem.
On Wed, Jul 27, 2011 at 3:16 PM, Archana
archanaacharya.adhik...@gmail.com wrote:
I mean to say before the onUpdate was executed the DropDownChoice contains in
the order of (A, B, C,
Hi,
attach the code from onUpdate(AjaxRequestTarget target) method. This
should be responsible of changing order.
I mean to say before the onUpdate was executed the DropDownChoice contains in
the order of (A, B, C, D).
But after the execution of onUpdate() the DropDownChoice contains in the
private DropDownChoiceSelectedTrackProfileVO
savedReportsDropDown;savedReportsDropDown = new
DropDownChoiceSelectedTrackProfileVO(profileDropDown,savedReportsDropDownList);
savedReportsDropDown.setChoiceRenderer(new
ChoiceRendererSelectedTrackProfileVO(reportName, cstmReportId));
Here is the code:
private DropDownChoiceSelectedTrackProfileVO savedReportsDropDown;
savedReportsDropDown = new
DropDownChoiceSelectedTrackProfileVO(profileDropDown,savedReportsDropDownList);
savedReportsDropDown.setChoiceRenderer(new
ChoiceRendererSelectedTrackProfileVO(reportName,
Sorry, but where should this renderHead() be overridden? I am working with a
WebPage, and I couldn't find an overridable method there.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/resource-problem-tp3697765p3699932.html
Sent from the Users forum mailing list
Hello all,
I'm writing an article for a Java magazine and would like to include in it
a list of ten things every Wicket programmer must know. Of course, I have
my list, but I'd be very curious to see what you think should be on that
list from your own experience. Or, put another way, maybe
This works for me, in case anyone's interested in a simple solution.
I have a ListView which outputs Books (their Title, Author, etc., and also a
Book Image which is a JPG stored in a DB), all per row, based on a POJO
called Book which stores all this info. Book also has a byte[] for the
Image
A quick solution, in case anyone's interested:
1) In your HTML: replace your stylesheet reference as below.
wicket:link
link wicket:id=stylesheet/
/wicket:link
2) In your Java:
add(new StyleSheetReference(stylesheet, SomeClass.class, file.css));
3) The .CSS file and the SomeClass.java
Jeremy,
I just threw together the following, which indicates that at least to
me Models are worth 3 of your 10 items.
1. Most components have a backing object of some sort. This object is
referenced via a Model. Significantly, the type of the component and
the model match (e.g. LabelInteger has
1. How static resources work. For a newcomer this can be
shocking/frustrating.
2. Models are a context that holds a reference to a model.
On Wed, Jul 27, 2011 at 5:21 PM, Scott Swank scott.sw...@gmail.com wrote:
Jeremy,
I just threw together the following, which indicates that at least to
1. Wicket's IOC integrations are really easy to get started with, but there
are some gotchas. Since they inject serializable proxies* *to dependencies
instead of the dependencies themselves, the dependency gets
retrieved/created from Guice/Spring each time a page is deserialized.
Therefore, it's
Show the code for savedReportsDropDownList. I suspect you aren't using a
Model.
Also a couple of tweaks to your code. Your calls to 'setChoices' indicate a
'pushing data' approach. Like you are setting the lists in those components
instead of using models there to. I think that is where you are
Hi!
I don't recall who the author is and the page is currently down (500
server error), but
http://www.small-improvements.com/10-things-about-apache-wicket-i-love
is a post I enjoyed reading earlier this year.
Regards,
Bertrand
On 27/07/2011 6:29 PM, Jeremy Thomerson wrote:
Hello all,
My Top 10 (some already mentioned):
1. Use LoadableDetachableModels
2. DefaultModels get detached otherwise you need to detach your model
manually (as Dan mentioned)
3. Setup components to pull in their data and state, typically via
models. This includes pulling in a components
Hello everyone,
I'm a newbie using this wicket framework. I'm developing a user registration
form, which works quite fine. But when it comes to validate certain fields,
there is no way to have this form behaving as I wish.
My textfields are simple *TextFieldString* and some of them have the
Hi,
For example, i did something with my div by javascripts and changed it's
width, height, left, top or others attributes.
So, how can i get this values in wicket : width=x .. ? for example by click
button or when it's some event come: onmouseup, but the event not of this
div, the event from
Are you adding the feedback panel to the ajax request target in,both
onSubmit and onError? If so, it should tell you what error is making you
get to the onError method.
On 2011 7 27 21:50, phaedoland phaedol...@gmail.com wrote:
Hello everyone,
I'm a newbie using this wicket framework. I'm
I guess the simplest way is to encode the property you want in the
AJAX callback URL.
e.g.
someComponent.add(new AjaxEventBehavior(someEvent)
{
protected void onEvent(AjaxRequestTarget target)
{
String encodedPropertyValue =
I have to manage content for that i am planning to use xml and cms. I will
store xml documents in the database. So, i am wondering how can a cms help
since we have to edit only xml files. So what to do.
--
View this message in context:
I will store data in xml files and then store it in database when I retrieve
it again, I have to use XSLT to transform it to xhtml file. Whether, i have
to use wicket+java for the transformation in the server side or by using
javascript in client side. Since both of them are applicable what to
On my own investigation :-
WebRequestCodingStrategy$MountsMap :
/** backing map */
private final TreeMaplt;String,
IRequestTargetUrlCodingStrategygt; map;
... that decides the data structure for the mounts, imo/
-
Software documentation is like sex: when it
W dniu 2011-07-27 17:27, jbrookover pisze:
Michal Letynski wrote:
Is here anyone who is currently doing something with tinymce wicketstuff
project ? I saw that in current version we are not able to add more then
one instance of tiny in one page.
I've recently made some commits to the tinymce
74 matches
Mail list logo