Hi
A while ago, we needed to do heavily reused form components and we ended
going for the FormComponentPanel through a dedicated DecoratedEdit.
However, we had some issues with it, which are:
- some methods one would have wanted to override, like clearInput or
getConvertedInput, are final. For ex
e-wicket.1842946.n4.nabble.com/Display-component-feedback-message-once-safety-net-renders-them-always-before-tp3068969p3167130.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket
On 12/05/2010 09:21 AM, Igor Vaynberg wrote:
the problem is in DecoratedEdit classs, the tmp variable is not
updated with converted input of the inner textfield, so
composeConvertedInput() incorrectly returns null when it should return
the converted input of the inner text component.
hi igo
ehavior tracking stuff is welcome ;)
best
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 506
F + 49 761 3 85 59 550
E joseph.pac...@thomas-daily.de
www.thomas-daily.de
Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handels
On 11/26/2010 05:41 PM, Igor Vaynberg wrote:
quickstart, jira issue.
-igor
hi igor
I've created a quickstart for it (cf attachement)
however, it may be linked to self made DecoratedEdit/TextFieldEdit
classes (cf attachement again).
As such, I'm not sure if it's a wicket bug or not, so I p
On 11/26/2010 05:41 PM, Igor Vaynberg wrote:
quickstart, jira issue.
thanks, I wasn't sure about creating an issue
I will do then, but since I moved on (removing the nested form), so it
could take a little while (+ we are on 1.4.9, so maybe latest versions
are better there, no clue)
++
On 11/25/2010 08:26 PM, Igor Vaynberg wrote:
addressedit should be composing itself in its convertinput() method
based on the converted input of the subcomponents.
thanks igor
it did so but the nested form was validating after the
FormComponentPanel, so the converted inputs of the nested f
form is validated and has converted its own input
I tried various workaround, but none was good enough to my taste.
What would you suggest ?
++
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 506
F + 49 761 3 85 59 550
E joseph.pac...@thomas-dai
Rodolfo Hansen wrote:
Nice,
I implemented something very similar to that actually; and now I
actually also need to send json from the client...
I didn't try client -> json -> wicket yet, but i guess it should be
doable. The main question is how you provide the json content. If it's
through th
Igor Vaynberg wrote:
dunno then, you may want to talk to jquery people and see what they
recommend. we cant really fire the onload event again because some
scripts may have already been executed...like i said, see what jquery
folks say.
thanks anyway
as jquery integration is fairly common I
Stefan Lindner wrote:
I use onDomReady functionality at many places in my jWicket jQuery-integration.
I don't know of any general problem (no guarantee that there isn't one) with
jQuery and Wickets onDomReady.
Of course you have to ensure that the library (and perhaps additional files) is
load
Stefan Lindner wrote:
I use onDomReady functionality at many places in my jWicket jQuery-integration.
I don't know of any general problem (no guarantee that there isn't one) with
jQuery and Wickets onDomReady.
Of course you have to ensure that the library (and perhaps additional files) is
load
instead of $(document).ready(function() use wicket's
iheadercontributor's response.writeondomreadyjavascriptthanks for the answer
I do so for my own stuff, but jquery plugin don't.
similarly, the core jquery file import won't work when added through ajax.
hi
It looks like the jquery files need to be included through a normal page load.
Contributing these headers through Ajax doesn't work, I guess it's due to the
use of $(document).ready(function(), which isn't triggered on ajax refresh.
I tried to find a jquery workaround for that but without
27;
---------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 8
Bernhard Schauer wrote:
I think you could do it as follows. The js function 'bindYourEvent()'
is called after the the components that are added to the
AjaxRequestTarget are 're-painted'.
form.add(new AjaxButton("set") {
@Override
protected void onSubmit(final AjaxR
Fabrice BUQUET wrote:
Maybe you can try IHeaderResponse.renderOnDomReadyJavascript
Thanks a lot, it did it :)
It wasn't too obvious that Wicket checks in this given method for not
rendering twice the same javascript.
Great anyway, thanks again :)
++
joseph
--
Hi
have you tried invoking AjaxRequestTarget's method appendJavascript? Inside if
statement try to write
AjaxRequestTarget.get().appendJavascript("jQuery.initEdit();");
I had a similar problem some weeks ago and it worked.
It won't be run only once even if added multiple time (for examp
e response)
{
if ((AjaxRequestTarget.get() != null))
{
response.renderJavascript("jQuery.initEdit();", "ID"
+ response.hashCode());
}
}
}));
}
(...)
thanks in advance
best
--
Josep
hi
>
> List convertedInput ;
>
> public void convertInput(){
> List list= new ArrayList()
> // how to compose the list ?
listeditor.convertinput();
setConvertedInput(listeditor.getconvertedinput());
-igorlisteditor isn't a FormComponent, so there's no convertinput to
Igor Vaynberg wrote:
why not? convertinput() will cascade down to all components that need them.
-igor
I feel like the issue is not with the components in the list item, but
with the wrapper around the list item.
For example (pseudo code):
public class ContactListEdit extends FormComponent
Igor Vaynberg wrote:
visit all the children, check if they are a FormComponent and call
convertinput() followed by getconvertedinput()
-igor
hi
thanks igor
we thought of that, but the issue is that we need to handle the
getconvertedinput
For example, if I've a ContactListEdit, with each
hi
IF
we're heavily reusing the edit components we do, and as such we wanted them to
behave as "good form citizen". On our way, we spotted the FormComponentPanel,
which seems to achieve our goal.
Yet, a question has popped up: how to deal with List edit ? Indeed, none of the
class extending Abs
Johan Compagner wrote:
having IComponent for me means that there are more then 1 Component..
(there are multiply implementations possible then)
So then we have to use IComponent everwhere instead of Component
That means again that it will be a quite large interface, and do we
also then get IMarku
guess) would extend ?
And in fact it's quite the same for FormComponent. It would be handy to
have an IFormComponent which could be used there and there.
For example in the ListEditor's igor did, which really is a
FormComponent but has to extend Repeater.
++
--
Joseph Pachod
Joseph Pachod wrote:
Johan Compagner wrote:
you can use:
public final Object visitChildren(final
Class clazz,
final IVisitor visitor)
then you have to cast yes, but you can cast safely.
johan
I don't get it, sorry. How could I cast safely
Johan Compagner wrote:
you can use:
public final Object visitChildren(final Class
clazz,
final IVisitor visitor)
then you have to cast yes, but you can cast safely.
johan
I don't get it, sorry. How could I cast safely there ?
---
avrahamr wrote:
You can still visit all components and "manually" check if it is an
instanceof IFormModelUpdateListener
that's what I did , dumping generics info on the way
-
To unsubscribe, e-mail: users-unsubscr...@wicket.
tanceof to get it
running.
However, for wicket 1.5 I guess, shouldn't there be an IComponent
interface that IFormModelUpdateListener would implement ? IVisitor would
then be of and I could do an
IVisitor.
What's your pick on that ?
++
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Igor Vaynberg wrote:
the added value is that if wicket detects that the set is a noop
because the objects are the same it doesnt need to create a new
version of the page.
ok, makes more sense :)
I was quite a surprised though, I had not heard of it at all even read
all these wicket books an
o
added value.
So, why it it this way ?
thanks in advance
++
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 506
F + 49 761 3 85 59 550
E joseph.pac...@thomas-daily.de
www.thomas-daily.de
Geschäftsführer/Managing Directors:
Wendy Th
Jeremy Thomerson wrote:
Please attach to a JIRA [https://issues.apache.org/jira/browse/WICKET] so
that it doesn't get lost.
done : https://issues.apache.org/jira/browse/WICKET-2919
++
-
To unsubscribe, e-mail: users-unsubs
hi
Let's consider this class :
class Container {
String string = "foo";
List strings = Arrays.asList(new String[]{"test"});
}
This would work:
new PropertyModel(container, ".string").getObject()
=> returns "foo"
but this doesn't:
new PropertyModel(container, ".strings[0]").g
Igor Vaynberg wrote:
obviously you have to know what you are passing around. you shouldnt
pass around objects that link to page instances, such as anonymous
classes of models.
-igor
if that's all, then all fine for me
quite different from what I had in mind about different references to
th
Igor Vaynberg wrote:
usually i simply allow pages to take models of whatever it is they
need, just like any other component. in case of a dto being passed
around you can simply use the default model: new Model(new
Dto()); and pass that to any page. that way the page does not need to
worry about w
Mauro Ciancio wrote:
Hi,
On Wed, Jun 2, 2010 at 7:43 PM, Joseph Pachod
wrote:
I've recently been wondering about the following use case: an instance of Foo
class,
used as a detached value object, is edited in a FooEditPage. For some reasons,
let's
say this page then needs
Wilhelmsen Tor Iver wrote:
I've recently been wondering about the following use case: an instance
of Foo class, used as a detached value object, is edited in a
FooEditPage. For some reasons, let's say this page then needs to launch
dialogs spanning over different pages. Each of these pages could
hi
I've recently been wondering about the following use case: an instance of Foo
class, used as a detached value object, is edited in a FooEditPage. For some
reasons, let's say this page then needs to launch dialogs spanning over
different pages. Each of these pages could then change some field
And that is why quickstarts are a godsend! Not only does it make it
easier for us to solve a bug and distill a test case from it, it also
makes it trivial to find bugs in one's own code (and often solving the
question automatically)
Martijn
Indeed ! It'll teach thinking I've cornered the issue
Forget it, the inner class being part of the injected class wasn't in
fact static...
that the reason for this issue
sorry for the noise
best
joseph
Joseph Pachod wrote:
Martijn Dashorst wrote:
Then we could use a longer trace from the serialization exception...
Plus some code to go wi
Martijn Dashorst wrote:
Then we could use a longer trace from the serialization exception...
Plus some code to go with it. The best way would be to create a
minimal setup using a quickstart exhibiting the problem.
hi
here is the attached demo reproducing the issue
it was harder than I thou
I just went to check 1.4.9 change list and I didn't see anything related to
the way IOC works (at least from 1.4.8 which is what I'm using right now),
or did I miss something in this thread or there in the release notes ? :)I
don't think it has changed: I tested again 1.4.3, 1.4.7 and 1.4.9, w
Martijn Dashorst wrote:
You need to use the Wicket injector for guice. That will create a
serializable proxy for the service. Guice itself doesn't know about
Wicket, so you can't expect it to magically work.
Martijn
sorry, I didn't provide enough context: I'm using wicket-guice (on
1.4.9). So i
nino martinez wael wrote:
did you mark it transient?
I didn't expect it to be necessary since the wicket guice proxy is still
serializable (in the way that it handles serialization of its own)
but could be done yes
best
joseph
--
serialize class:
com.softculture.core.dataseries.morphia.wicket.DefaultDecoratorFactory
I was assuming that such a class wouldn't need to be Serializable, since
it was never serialized done thanks to guice injection... Am I wrong ?
thanks in advance
best regards
--
Joseph Pachod
IT
THOMAS DAILY GmbH
hi
I was quite surprised, recently, by the AjaxFormComponentUpdatingBehavior,
which directly updates the model. At the time it seemed pretty odd but I moved
on.
then I recently read this article from Igor, Building a ListEditor form
component
(http://wicketinaction.com/2008/10/building-a-
try {
Form root = form.getRootForm();
return (String) hiddenFieldGetter.invoke(root);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
2010/4/23 Joseph Pachod :
Igor Vaynberg wrote:
there is ajaxformsubmitting behavior which will update the entire
Martin Makundi wrote:
Here:
(..)
looks promising, thanks a lot
I'll test it on Monday (week end calling soon and.. urgent stuff to do
in between)
thanks again :)
++
joseph
-
To unsubscribe, e-mail: users-unsubscr...@wic
Igor Vaynberg wrote:
there is ajaxformsubmitting behavior which will update the entire form
-igor
thanks
however, that's not exactly my need, being just recording the user input
(not to loose it) without validating. Is there no way around, like a
hook from Ajax to act only on some compone
state. In more details, it means the user writes something in
one of the listitem's textfield, then click on "add new item" => I want
the textfield's state to be known and preserved, whereas the whole form
shouldn't be submitted yet.
Thanks in advance
best rega
Martijn Dashorst wrote:
striken through means:
1) already happened
2) already happened elsewhere
3) never gonna happen
Most items fall in categories 1 and 2
thanks
I updated the wiki accordingly
best
joseph
-
To unsubscri
Martin Grigorov wrote:
It is already:
(..)
thanks for this info :)
is there any known estimation of wicket 1.5 release date ?
++
joseph
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands,
hi
Could someone enlighten me with the meaning of stricken items in the
Wicket 1.5 Wish List of the wiki
(https://cwiki.apache.org/WICKET/wicket-15-wish-list.html ) ?
thanks in advance
best regards
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761
interface
for page, which would be used as well in setResponse(..) ?
thanks in advance
best regards
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 506
F + 49 761 3 85 59 550
E joseph.pac...@thomas-daily.de
www.thomas-daily.de
Johan Compagner wrote:
yes we didnt do that by default because it is quite annoying behavior
Back button should be quick and shouldnt load it from the server again at
least not by default.
You can configure it for you application the way you like. But for many
others back should really be browse
Regarding the commented out no-store, any idea why the wicket core developers
didn't used it directly ? Having a consistent behavior across browser + ajax
and back button working seem rather good. I wonder why it isn't included
currently.
joseph
_
From: Craig McIlwee [mailto:craig.mci
Another reason is that the components hierarchy isn't built yet in the
constructor.
Indeed, when writing add(new MyComponent("id"));, the component is first
constructed and then added.
As such, using methods like getPage() or getForm() in the constructor results
in exceptions being thrown at r
hod to use.
*
*/
protected void onInitialize()
{
}
-igor
On Fri, Apr 2, 2010 at 2:03 PM, Joseph Pachod
wrote:
> hi
>
> The other day, I was busy creating reusable components. To make them
"safe", I used what I believe is a wicket good practices: adding the
hi
The other day, I was busy creating reusable components. To make them "safe", I
used what I believe is a wicket good practices: adding the components in
onBeforeRender.
In fact, it's not just in onBeforeRender, it's rather :
@Override
protected void onBeforeRender() {
);
Adding the feedback panel at the end of the form is required : adding it
first on the form would imply two displays of the feedback messages.
Can we really on this behavior ? Is there a better way to achieve our
requirements ?
thanks in advance
best regards
--
Joseph Pachod
IT
THOMAS
oxyFactory waits for the first method call to do
the actual injection.
So, currently, when calling directly some members on guice injected bean
in wicket, I get a NPE.
I fear I've missed something obvious, but I don't find an easy way out...
Any suggestion ?
thanks in advance
Giambalvo, Christian wrote:
Hi,
with getSession() you will always get the session attached to the current
request.
So yes it is session specific.
Greets chris
I would add that, in order to save this nasty cast all over the place,
you could create your own getMySessionImpl this way :
class My
kirillkh wrote:
VariableInterpolator.java says:
"$" is the escape char. Thus "$${text}" can be used to escape it (ignore
interpretation).
Thanks a lot, it works fine.
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 310
ean way to avoid it ?
thanks in advance
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 310
F + 49 761 3 85 59 550
E joseph.pac...@thomas-daily.de
www.thomas-daily.de
Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Hande
Ernesto Reinaldo Barreiro wrote:
Do you mean this post?
http://in.relation.to/Bloggers/HowToStartLearningJavaEE6
Ernesto
On Fri, Jan 8, 2010 at 11:40 AM, Joseph Pachod wrote:
For example yes
Gavin said so as well on others occasions (I kind of remember having
read it on some infoq
someone like Gavin King recommends wicket (and
hence the Seam support for it) ?
It may help to convince about wicket's credibility.
hope it helps
++
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 310
F + 49 761 3 85 59 550
E joseph.pa
Martin Makundi wrote:
Hmm, maybe I'm missing something, but if you want to have EVALUATED once per
request, I think the following should be sufficient. (unless I'm missing
somtething)
I want a generic centrally managed solution. I don't want to cache
every model manually.
From what I g
Hi
Recently, on the mailing list, I read quite some people saying basically
than using models all over the place was a bad idea. Can someone explain
it a bit more ?
Indeed, I was kind of agreeing until recently, when I had an issue with
a (self made) Behavior taking a string.
I needed this
cmoulliard wrote:
What I have done to avoid to repeat the creation of the labels is to define
and use static method
private Label labelTitle;
public static Label getLabelTitle(String title) {
return new Label("title",new Model( title ));
}
I personall
cmoulliard wrote:
(...)
I think that this is a general remark that some users make about Wicket. It
is very difficult to reuse part of the code.
Here is another example :
I have a label called id which is used in different page. The way proposes
by Wicket to code it is
Page Request
item.add
Jeremy Thomerson wrote:
servlets are totally separate from Wicket - write a servlet and add it to
your web.xml. See any servlet example on the web (non-Wicket related) for
assistance.
I wouldn't say so, cf Igor sentence in this discussion :
http://www.nabble.com/WicketFilter-td25205475.html
m a totally newbie in the JS domain so your ramark really helps me
learning this stuff.
Have a look at http://docs.jquery.com/Plugins/Authoring
It provides lot of interesting hints on how to write jQuery plugins :)
++
-
T
n ask
the form to validate at any time.
thanks again
joseph
Fernando Wermus wrote:
Joseph,
I think it is. For instance, If you need to validate some items from a
Palette which is not a FormComponent, how do you achieve it?
On Tue, Jul 7, 2009 at 7:01 AM, Joseph Pachod wrote:
Hi
Hi
I just had some issue because I was calling validate() in some form
onBeforeRender() : it was working with some components but not all of them.
However, the question now arises whether it was a good idea at all :
should validate() work if called in onBeforeRender ?
Thanks in advance
jose
Hi
I just had some issue because I was calling validate() in some form
onBeforeRender() : it was working with some components but not all of them.
However, the question now arises whether it was a good idea at all :
should validate() work if called in onBeforeRender ?
Thanks in advance
jose
Hi
When looking at the mailing list archive for some info, I found that
setGatherExtendedBrowserInfo doesn't work with Ajax in this discussion
:
http://www.nabble.com/Odd-behaviour-after-setGatherExtendedBrowserInfo(true)-td15457880.html#a15464392
As I was affected by this issue, it wa
76 matches
Mail list logo