Re: Can't get FormTester.submitLink to work (required testfield always missing)

2012-03-19 Thread Fabiosakiyam
Hi,

Old post but, any solutions for this, using wicket tester?

Thx

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Can-t-get-FormTester-submitLink-to-work-required-testfield-always-missing-tp1888944p4485338.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketTester setParameterForNextRequest() doubt

2011-12-03 Thread Fabiosakiyam
It worked with formTester, thanks :)
But since im testing only my component, is there anyway to test it without
needing a formTester? 'cause needing the formTester will make me create a
blankPage just to add the component, and then create a html as well.. is
there anyway to test a component/panel, inputing data, without the need of a
formtester?
Thanks in advance.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-setParameterForNextRequest-doubt-tp4147729p4155172.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



WicketTester setParameterForNextRequest() doubt

2011-12-02 Thread Fabiosakiyam
Hi guys,

Im trying to test a component i've made using wicket tester, but im having a
problem to assert a modelValue.
Im trying to input data on my component fields, and then submit. The problem
is, when i try to assertModelValue, it says it's empty.

My component is declared like this, in a blankpage.java :

ComponentX x = new ComponentX(wicketid, propertyModel)

and my test start like this:

wicketTester.startPage(blankpage)
wicketTester.setParametersForNextRequest(path, value);
wicketTester.submitForm(formId)
wicketTester.assertModelValue(componentpath, expectedvalue)

i don't know what am i missing... i tested the component manually, and it's
working.
so either i don't know how setParametersForNextRequest() works...or i'm
missing something else..
Any ideas?

Thanks 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-setParameterForNextRequest-doubt-tp4147729p4147729.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamic component?

2011-11-28 Thread Fabiosakiyam
Thanks, using only 1 id for my panels worked. I tried this before, but i
wasnt using panels (containers instead).


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-component-tp4107323p4115163.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: Dynamically choosing component to add

2011-11-25 Thread Fabiosakiyam
Hi Bertrand,

I have almost the same problem you do (i think, im still a newbie).
I'm trying to create a component that creates one specific container,
depending on it's type. So i'd like to add only this container. I'm having
problem at the .html, since i don't know if i should declare all
wicket:id=idContainer or just the chosen one, since each container have
it's own .html, how to 'link' the component html to the container .html.

I want to know what you did on your .html, 'cause since your adding only the
chosen panel to add, how you declared all possible panels on the .html? i
wonder if you declared all panels on the .html or only the chosen one...

Sorry for bad english,

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamically-choosing-component-to-add-tp3955869p4108449.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dynamic component?

2011-11-25 Thread Fabiosakiyam
Hello,

Sorry if this is already solved, but i couldn't find it, 'cause i don't
really know what is the name of this, that's why the subject is weird.

Ok so, im creating a new component (extends panel), and his .java is
something like this:

class Component {
getType().buildContainer();
}

It builds a container, depending on it's type. At the moment i have to 2
types only.
And the component .html is something like this:

wicket:panel
div wicket:id=firstContainerName/
div wicket:id=secondeContainerName/
/wicket:panel

the first and second container have a .java and a .html as well, declaring
the fields, etc.
I want to know if it's possible to do what i'm trying at the component.html 
, i mean, declaring all types of containers i have (but only 1 will be
built, at the getType().buildContainer()), and by declaring the wicket:id of
them, it will get the wicket:id from the fields declared at the container
too.

It's kinda confuse to explain, i hope someone understand.
Sorry for bad english.

Thanks.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-component-tp4107323p4107323.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org