Yes, now I understood. :-) Thanks
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
On Fri, Aug 12, 2011 at 2:56 AM, armandoxxx armando@dropchop.comwrote:
@IGor: I figured it out .. no need for new features.
@Bruno: if you cann onAfterInitialize() in onInitialize() you can't be
Finalizing the ExtendedPackageMapper. Usage is as follows:
mount(new ExtendedPackageMapper(${username}/${group}, Info.class) {
ListString VALID_USERS = Arrays.asList(new String[] { foo,
bar, fizz, buzz });
@Override
protected boolean validateParameters(PageParameters parameters) {
String
Hello Martin Makundi,
i have some questions for usage of this.
1. Where do i have to put my instance of reusemanager?
2. What is MarkupUtils.fakeRawInput and MarkupUtils.replaceReporter doing?
3. I don't have any persistent id (rowid) for usage.
4. Do you have a working example for me?
Thanks
Finished... But still, some optimization can be done.
https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2e
https://github.com/wicketstuff/core/commit/1723badf342f0f65f811439736465bfc3bb70a2eAny
help is welcome.
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
Hi!
i have some questions for usage of this.
1. Where do i have to put my instance of reusemanager?
Where you want to keep the values? What is your common denominator.
It can be a page or it can be in session... I normally use a Panel and
it keeps values of listview items' formcomponents
Actually notesField = localNotesfield = TextArea(...)
**
Martin
2011/8/12 Martin Makundi martin.maku...@koodaripalvelut.com:
Hi!
i have some questions for usage of this.
1. Where do i have to put my instance of reusemanager?
Where you want to keep the values? What is your common
That is not working to. I've created a quickstart for this.
Scenario is simplified. HomePage gets the data and has two submit buttons.
Do i press the submit and click back on other page data are present
(submitted).
Do i press the invalid submit and click back on other page data are lost.
Here
This is how you can do it with reusemanager:
HomePage:
public class HomePage extends WebPage {
public HomePage(final PageParameters parameters) {
FormVoid form;
add(form = new FormVoid(form));
Thanks Martin,
now it works as expected. I don't have a clue how but it is.
I really would be interested in knowing why the reusemanager gets the
data and the form not.
I think i will start a debugging session at weekend :-)
Maybe we should use this scenario and put it in the wiki?
The Form way is a quirk way to do it in the first place. You are not
supposed to update model before validation etc. so you will run into
lots of troubles that way.
Reusemanager simply works like wicket normally works when you validate
and repaint the screen with rawInput values. It just keeps
AH not to say that I would mind if wicket would handle
reusemanager itself.. I wonder if it is there in 1.5? Hmm.. I think a
proposal should be added to the whishlist.
**
Martin
2011/8/12 Martin Makundi martin.maku...@koodaripalvelut.com:
The Form way is a quirk way to do it in the first
To avoid having detached objects in your web layer, try wrapping wicket
filter with the Spring OpenSessionInView
http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.htmlfilter,
in that way transaction will be bound to the -
But if wicket should support it out of the box there is maybe another way.
If we could get a method onBeforeFormSubmit() in form there would be
an access point to configure validators in all childs.
In default nothing is to do - means leave form as configured at creation
time.
If it's nessecary
I checked Form. There is an onValidate. Maybe i can clear the feedback
messages there.
Will try it.
But if wicket should support it out of the box there is maybe another
way.
If we could get a method onBeforeFormSubmit() in form there would be
an access point to configure validators in all
I think wicket needs some sort of conversation scope like Seam
does... that should cover it.
**
Martin
2011/8/12 Mike Mander wicket-m...@gmx.de:
But if wicket should support it out of the box there is maybe another way.
If we could get a method onBeforeFormSubmit() in form there would be
an
I don't think so.
Its nature already provides that.
Just keep an object instantiated somewhere.
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099
On Fri, Aug 12, 2011 at 10:21 AM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
I think wicket needs some sort of conversation
It must be manhandled. I am not sure though, if it can be automated. A
wizard is almost like that, but again, you canot assume all user
interactions to be same. However, it would be nice to maybe register
components to a conversation-scoped reuseManager instead of handling
all that on a
onValidate seems a way to go. It leads to a not soo reusable solution
like your ReuseManager
but it works.
I simply override onConfigure in Form and did that
@Override
protected void onValidate() {
super.onValidate();
if
With an annotation on my button i can go over the name cluttering issue
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import
amazing how quickly you can help yourself once you have something to
play with :)
-igor
On Fri, Aug 12, 2011 at 2:23 AM, Bruno Borges bruno.bor...@gmail.com wrote:
Finished... But still, some optimization can be done.
heh, this is a reallly bad idea.
suppose you have textfieldinteger and the user enters a. that
would result in a conversion exception represented by the feedback
message - which you cleared. so when you call updatemodels() you will
get null set on the model...
-igor
On Fri, Aug 12, 2011 at 7:28
That's right. But the only consequence here is that he has to fill out
this (formerly invalid) field again.
I know that this is not the default intention of form behavior. But the
opposite of loosing all data
is much more expensive because 10% (maybe more) of willing customers buy
elsewhere
Sorry, but I wasn't looking for a solution. I have no way to reproduce the
issue. It seemed like you were making good progress in your other thread.
However, if you're able to create a quickstart that can reliably reproduce
the issue, the core devs will certainly be interested in taking a look
org.apache.wicket.settings.IMarkupSettings.setDefaultMarkupEncoding(String)
use either UTF-8 or one that supports turkish characters
On Fri, Aug 12, 2011 at 2:30 PM, bilgisever mehmetate...@hotmail.com wrote:
I had tired to about wicket AutoCompleteTextField. I develop a web page in
turkish.
I am using a label tag with wicket:for (Wicket 1.4.18) and the text of
the label is not replacing as I expect.
I am using a label tag in my HTML like so:
label wicket:for=firstName
span class=label-textName/span
/label
input type=text wicket:id=firstName /
In my Java code:
this has been changed in later commits, use
wicket:labelName/wicket:label instead of span class=label-text
-igor
On Fri, Aug 12, 2011 at 1:05 PM, Jered Myers
jer...@maplewoodsoftware.com wrote:
I am using a label tag with wicket:for (Wicket 1.4.18) and the text of the
label is not replacing
Thanks that worked perfectly!
On 08/12/2011 01:28 PM, Igor Vaynberg wrote:
this has been changed in later commits, use
wicket:labelName/wicket:label instead ofspan class=label-text
-igor
On Fri, Aug 12, 2011 at 1:05 PM, Jered Myers
jer...@maplewoodsoftware.com wrote:
I am using a label
Is your application running on Tomcat?
Check:
https://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html
Sven
On 08/12/2011 01:30 PM, bilgisever wrote:
I had tired to about wicket AutoCompleteTextField. I develop a web page in
turkish.
AutoCompleteTextField has some
Indeed :)
Do you think its possible to add that to core?
On Aug 12, 2011 12:42 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
amazing how quickly you can help yourself once you have something to
play with :)
-igor
On Fri, Aug 12, 2011 at 2:23 AM, Bruno Borges bruno.bor...@gmail.com
only if it will replace the one that is there now. there is no point
to have two package mappers
-igor
On Fri, Aug 12, 2011 at 5:40 PM, Bruno Borges bruno.bor...@gmail.com wrote:
Indeed :)
Do you think its possible to add that to core?
On Aug 12, 2011 12:42 PM, Igor Vaynberg
30 matches
Mail list logo