i think it will help wicket's cause if it has some way of integrating into
existing applications, especially existing pages.
what can be done is to have a way for the page's markup (the html), to be a url
which is then retrieved to get the html page. if this url points to
struts/jsp/servlet, t
the case here is different i think
- the component has the converter
- the component doesn't have the type set
--> the converter is not used in convert()
--> the converter *is* used when setting the object model.
--> the conversion fails, but not in a nice way (because it is late in the
process)
yes, after i saw the exception, and looked at the code to find the exact
reason, i added the type
Johan Compagner wrote:
we try to do it:
if (object instanceof String)
{
// and that String is not empty
final String string = (String)object;
I guess you mean "only try to convert when there is a type set" ?Checkbox is abit of a bad example, A DropDown or anohter Choice is a better oneConverter is Type conversion String to Date or Integer or what ever.
But convertValue (used in the Choice classes) is not type conversionBut it is more a L
It's something we probably will try to get rid of for Wicket 2.0;
instead of the pessimistic, register first approach we have now, we
can choose an optimistic approach which will allow disallow in a
similar fashion as file filters work.
Eelco
On 5/10/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
Yeah, I'm not totally crazy about that either. But the fact that we
only try to convert when there is a converter set comes from:
* some components, like CheckBox use their own kind of conversion, and
thus override the convertValue method
* some users strongly objected against Wicket always trying
you could make a nice component for that?AnchorLink?it is requested before so maybe it is a simple class for the core.johanOn 5/10/06,
Jerry Smith <[EMAIL PROTECTED]> wrote:
Hi all! How would I go about making a Link that in addition
goes to whatever page, but then scrolls to some na
you just want only to clear the input on that specific FormComponent?So you don't want to call Form.clearInput() ?Calling FormComponent.valid() does the same thing by the way. It clears the rawInput(and calls onValid())
But i guess this is not that logical to do (know)clearInput can be public final
also no cluster or what ever. Simple one tomcat installationThe only thing is you need to do some maintenance. So you shutdown tomcat or the webapp contextupdate it and restart it again. The shutdown did save the session to disk..
Then after restart all sessions comes in memory again. And the reque
imagine this situation w/out the use of initializeryou have a cluster where you do not use sticky sessionsuser comes to node A and requests a page. this page binds a bunch of resources that image components on this page need. browser starts to render one of these image components and makes a resour
HiCan somebody explain the purpose of PackageResource.bind() in IInitializer ?I tried to remove PackageResource.bind(application , Foo.class , "bar.gif") in IInitializerand ... keeps the following code intact in Page/Panel
add(new Image("myImage" , new PackageResourceReference(Foo.class, "bar.gif"
we try to do it:if (object instanceof String) { // and that String is not empty final String string = (String)object; if (!Strings.isEmpty(string))
{ // and there is a non-null property type for the component
Yes and that is essentially only one formcomponent (youre composite) that has intenally its own markup/componentsAnd it gets the input directly from themFor example see the CheckGroup and the Check classes. Check classes aren't also FormComponents.
johan > And are the children you put in that compo
I think getUrl() is not final and can be overwriten. I've done
something similar recently for autolinks.
regards
Juergen
On 5/10/06, Jerry Smith <[EMAIL PROTECTED]> wrote:
Hi all! How would I go about making a Link that in addition goes to
whatever page, but then scrolls to some named ancho
Hi all! How would I go about making a Link that in addition
goes to whatever page, but then scrolls to some named anchor? It looks like
for some other situations overriding onComponentTag() seems to be the answer,
however in Link that method is final. Thanks for any input!
-Jerry
i created a TextField, without setting its type, but with overriding of
getConverter(), i also used a CompoundPropertyModel
what happened is that this converter was not used in convert(), but was used by
the property resolver. inside the PropertyResolver code, it threw an exception,
which, was
Johan Compagner wrote:
why this strange method:
private CompositeComponent getThis() {
return this;
}
why not CompositeComponent.this on the places where you use that.
also i see a nullpointer:
public String[] getInputAsArray() {
// go over a
setOutputMarkupId(true)getMarkupId()johanOn 5/10/06, Ittay Dror <[EMAIL PROTECTED]> wrote:
hi,i am trying to write something similar to the date picker - i have an input field and a _javascript_ needs to write to it. therefore, when generating the _javascript_, i want to give it the field's id.
so,
why this strange method: private CompositeComponent getThis() { return this; }why not CompositeComponent.this on the places where you use that.also i see a nullpointer:
public String[] getInputAsArray() {// go over all children, and create a list.
hi,
i am trying to write something similar to the date picker - i have an input
field and a javascript needs to write to it. therefore, when generating the
javascript, i want to give it the field's id.
so, creating this MyDatePicker component, i pass to it the other component in
the ctor. the
after troubling many people here, and thankful for their help, here is the
CompositeComponent component.
you just overwrite two methods, and voila!
hope it is useful for someone else.
it is part of the product i'm working on, so it's MPL licensed.
public abstract class CompositeComponent ex
I've just coded my custom version of FeedbackPanel and it works fine. I have a subclass of FeedbackPanel and a HTML file that is kind of copy of the FeedbackPanel.html from Wicket's Core.Then I added new labels and CSS and done. Now I have a feedbackPanel that shows over on top of all the webpage w
i think the compound concept needs to be generalized.
the ICompoundModel is really IAutomaticallyInheritedModel. whether it is
compound (a model simulating holding other models) is not important i think.
Matej Knopp wrote:
On the other side, you still have component parameter in
IModel#getMo
it is an internal thing of component.Why are you wanting to change/override that?johanOn 5/10/06, Ittay Dror <
[EMAIL PROTECTED]> wrote:i want to overcome the issue which i've just posted about, and to set the FLAG_HAS_ROOT_MODEL to false, but the value is private. can it be made protected?
thanx,i
It is not simulation holding outer models.It is the model for every child that doesn't have a model so yes it inherits its.But that is just the name. And i can't really discuss that what the real meaning is of comound and if it is the 'good' word for that or not.
So i don't know what you mean with
On the other side, you still have component parameter in
IModel#getModelObject, which makes only sense when the model is
compound, so maybe getRootObject() in ICompoundModel wouldn't improve
things anyway.
-Matej
Matej Knopp wrote:
Hmm. maybe having getRootObjecT() in ICompoundModel would mak
Hmm. maybe having getRootObjecT() in ICompoundModel would make things
little easier to understand, wonder what core developers would think.
anyway, the model can't decide, whether to return null or not. it
depends on the component. but the component would know whether to call
getObject(this) o
then i think this should be more explicit. e.g., add to ICompoundModel a
getRootObject(), and i think that if that returns null, then return
getObject(this)
Matej Knopp wrote:
Ittay Dror wrote:
public final Object getModelObject()
{
final IModel model = getModel();
if (mod
But why would you do that? this flag is set automatically when you set a
compound model to a component.
-Matej
Ittay Dror wrote:
i want to overcome the issue which i've just posted about, and to set
the FLAG_HAS_ROOT_MODEL to false, but the value is private. can it be
made protected?
thanx,
same in setModelObject
Ittay Dror wrote:
public final Object getModelObject()
{
final IModel model = getModel();
if (model != null)
{
// If this component has the root model for a compound model
if (getFlag(FLAG_HAS_ROOT_MODEL))
{
i want to overcome the issue which i've just posted about, and to set the
FLAG_HAS_ROOT_MODEL to false, but the value is private. can it be made
protected?
thanx,
ittay
--
===
Ittay Dror
Chief architect, openQRM TL,
R&D, Qlusters Inc.
[EMAIL PROTECTED]
+972-3
Ittay Dror wrote:
public final Object getModelObject()
{
final IModel model = getModel();
if (model != null)
{
// If this component has the root model for a compound model
if (getFlag(FLAG_HAS_ROOT_MODEL))
{
// we nee
public final Object getModelObject()
{
final IModel model = getModel();
if (model != null)
{
// If this component has the root model for a compound
model
if (getFlag(FLAG_HAS_ROOT_MODEL))
Hi Johan
Yeah it must be something
like that. But there are multiple rows for this case. I do also have a
properties files where the default text are in, im not sure if that has any
impact.
Somehow it must have
slipped my mind that there where the dropdownchoice I guess I’ll just us
nice thing about having an interface is that you dont have to do that, you can aggregate on demand and for things like Iterator simply return a compound iterator. but this is more work.i guess your way works too. create a patch and attach it to our
sf.net tracker and one of the core devels will me
35 matches
Mail list logo