See DataTable, Form, and related examples in wicket-examples
On Thu, Feb 17, 2011 at 11:58 AM, Jehan wrote:
> Dear all
>
> I want to read records(userid and username) from database table,
> display it in table structure , and with each record display 3 radio
> buttons(A,B,C) .
>
> When clicked
Dear all
I want to read records(userid and username) from database table,
display it in table structure , and with each record display 3 radio
buttons(A,B,C) .
When clicked on button then database table update using userid and
selected radio button value.
On Thu, Feb 17, 2011 at 10:36 PM, fachhoch wrote:
>
> thanks for the reply , yes it is the model which takes time to load, I did
> not start the coding yet to show you the code I am looking for
> suggestions.,
> write now my idea is to create this model object when user logs in and put
> in h
thanks for the reply , yes it is the model which takes time to load, I did
not start the coding yet to show you the code I am looking for
suggestions.,
write now my idea is to create this model object when user logs in and put
in his session, this panel gets the data from session and it will
On Thu, Feb 17, 2011 at 9:34 PM, fachhoch wrote:
>
> I need acomponent which I want to show in all my pages , this component
> takes time for loading so
> I don't want to contruct this everytime but create it once when user
> logs
> in put in his session and show the same component in all
I need acomponent which I want to show in all my pages , this component
takes time for loading so
I don't want to contruct this everytime but create it once when user logs
in put in his session and show the same component in all my pages and also
this componenet should update itself at f
On Thu, Feb 17, 2011 at 2:32 PM, Daniel Stoch wrote:
> On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg
> wrote:
>> validation is there to make sure the user of the webapp cannot push an
>> illegal value into a model. it doesnt matter if its just the component
>> that is being submitted or the en
On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg wrote:
> validation is there to make sure the user of the webapp cannot push an
> illegal value into a model. it doesnt matter if its just the component
> that is being submitted or the entire form. components decide whether
> or not a user can push
try also detaching feedbackpanel's model.
-igor
On Thu, Feb 17, 2011 at 2:10 PM, sheadley3228
wrote:
>
> In my current project, I am using the feedbackpanel to display both
> informational and error messages. When I move to my webpage, i display an
> informational message. When I perform a Retr
In my current project, I am using the feedbackpanel to display both
informational and error messages. When I move to my webpage, i display an
informational message. When I perform a Retrieve using PageableListView if
no Items are retrieved, I get back a second message. How can I removed the
firs
Also conditional validation might do it:
https://cwiki.apache.org/WICKET/conditional-validation.html
2011/2/17 Igor Vaynberg :
> validation is there to make sure the user of the webapp cannot push an
> illegal value into a model. it doesnt matter if its just the component
> that is being submitted
validation is there to make sure the user of the webapp cannot push an
illegal value into a model. it doesnt matter if its just the component
that is being submitted or the entire form. components decide whether
or not a user can push null in by using their required flag. you want
to push null, don
yes, it would go to button's ajax onsubmit.
you are sending the file somehow by redirecting the browser to some url...
-igor
On Thu, Feb 17, 2011 at 1:27 PM, eugenebalt wrote:
>
> Does this code go in the SubmitButton's onClick Ajax behavior?
>
> What if I don't have a URL? I'm not saving the f
On Thu, Feb 17, 2011 at 10:01 PM, Igor Vaynberg wrote:
> if you want to push a null value into a component you marked required
> then dont mark it as required.
No, because then I must have my own "customrequired" flags instead of
using the core mechanism. I think this is wrong way.
There is a wro
Does this code go in the SubmitButton's onClick Ajax behavior?
What if I don't have a URL? I'm not saving the file anywhere, I'm
immediately exporting it to the browser so the user can do a Save As.
Thanks
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Erase-Previo
target.addcomponent(feedbackpanel);
target.appendjavascript('window.location=');
-igor
On Thu, Feb 17, 2011 at 1:09 PM, eugenebalt wrote:
>
> I have a FeedbackPanel which may contain previous error messages.
>
> Once the form is successfully submitted, it's not refreshed, and the
> previous erro
I have a FeedbackPanel which may contain previous error messages.
Once the form is successfully submitted, it's not refreshed, and the
previous errors remain on the screen. A browser Download is initiated on
submit, so I lose control of the form.
Is there a way to reach the FeedbackPanel through
if you want to push a null value into a component you marked required
then dont mark it as required. if you have inter-dependent validation
use a formvalidator or override form's onsubmit.
-igor
On Thu, Feb 17, 2011 at 8:51 AM, Daniel Stoch wrote:
> There is a situation when the AjaxFormCompone
On Thu, Feb 17, 2011 at 9:02 PM, Pedro Santos wrote:
> Override onError still makes sense for me, if the form component is
> required, why to hide the message?
Because I don't want to show such error message when user clears
(update) this required field but only when he press Submit. And
Feedback
Hi everyone,
We are looking for a senior Java Developer, preferably with good knowledge
of Wicket.
You will join a team of 5 enthusiastic developers and are responsible for
the implementation of
new, challenging projects within our existing registration system.
You support best practices such as
Override onError still makes sense for me, if the form component is
required, why to hide the message? If there is some special message
reporting rule, it can be coded inside onError also.
On Thu, Feb 17, 2011 at 5:26 PM, Daniel Stoch wrote:
> On Thu, Feb 17, 2011 at 6:50 PM, Pedro Santos wrote:
On Thu, Feb 17, 2011 at 6:50 PM, Pedro Santos wrote:
> I Daniel, how alwaysUpdateModel differs from updateModel?
You mean "from getUpdateModel()"? isAlwaysUpdateModel() is called only
when component is invalid, but getUpdateModel() in both cases (for
valid and invalid).
> If you have an
> requir
Can u please specify what u mean by "it doesn't work"?
Is url broken, is nothing displayed or ...?
Cheers
Per
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apach
override oncomponenttag and call tag.setname()
-igor
On Thu, Feb 17, 2011 at 9:14 AM, Arjun Dhar wrote:
>
> One correction I'd make to my own code is instead of allowing to add a
> Component; I'd enforce "WebComponent". That would make the case stronger for
> using and enforcing HTML tags.
>
> .
debug it and see why its not matched.
-igor
On Thu, Feb 17, 2011 at 9:12 AM, Suraj Chandran wrote:
> I tried this:
>
>> this.mount("/home", PackageName.forPackage(Main.class.getPackage()));
>>
> But it doesn't work.
> I tried hitting both "/home/Main" and "/home/Main.html".
> Any idea guys?
>
>
I Daniel, how alwaysUpdateModel differs from updateModel? If you have an
required form component that support some clean up logic, it can be coded
inside AjaxFormComponentUpdatingBehavior#onError, and if you need an AJAX
behavior that don't validate the form component, you can
use AjaxEventBehavior
Actually, thanks a lot, I found isDisabled(). Thank you.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Disable-Individual-Checkboxes-in-CheckBoxMultipleChoice-tp3311071p3311227.html
Sent from the Users forum mailing list archive at Nabble.com.
-
There's no isDisabled in Component, did you mean isEnabled?
How would I have control over individual elements there in that override?
Frankly, slightly longer answers would be very much appreciated. Thanks
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Disable-Indi
One correction I'd make to my own code is instead of allowing to add a
Component; I'd enforce "WebComponent". That would make the case stronger for
using and enforcing HTML tags.
..the issue remains, hwow do I make the markup here dynamic to suit the
"WebComponent" being wrapped! :(
-
Don't
I tried this:
> this.mount("/home", PackageName.forPackage(Main.class.getPackage()));
>
But it doesn't work.
I tried hitting both "/home/Main" and "/home/Main.html".
Any idea guys?
Thanks,
Suraj.
On Thu, Feb 17, 2011 at 12:45 PM, Mike Mander wrote:
> Is WebApplication.mount(final String path,
Hi,
Im creating a Decorator/Wrapper Panel that will show EDIT/DELETE options on
the content if the user is authorized to do so.
The markup simply put, is like this:
DELETE EDIT
Dear all
I want to read records(userid and username) from database table,
display it in table structure , and with each record display 3 radio
buttons(A,B,C) .
When clicked on button then database table update using userid and
selected radio button value.
---
There is a situation when the AjaxFormComponentUpdatingBehavior
deafult functionality fails. When we want to attach this behavior (or
OnChangeAjaxBehavior) to reflect changes inside a Model of
FormComponent which is marked as REQUIRED event if user clears
component input. In such situation AjaxForm
>
> String htmlCodeInputfield = erzeugeEingabefeld( q );
> Label label = new Label( "Input", htmlCodeInputfield );
> label.setEscapeModelStrings( false );
> item.add( label );
>
>
Use a textfield instead of plain html. Bind it to a
override protected boolean isDisabled(final E object, int index,
String selected)
-igor
On Thu, Feb 17, 2011 at 8:15 AM, eugenebalt wrote:
>
> I have a CheckBoxMultipleChoice in my form, and I need to disable individual
> checkboxes (not all), say the 1st and 3rd one. (But I still have to show
>
I have a CheckBoxMultipleChoice in my form, and I need to disable individual
checkboxes (not all), say the 1st and 3rd one. (But I still have to show
them, as disabled.) Does someone have an example of how to do that?
My field is based on an ArrayList. So each checkbox in the list is
just coming
How are you storing/retrieving your photos? I recently did some session
size testing and I found the sessions were surprisingly small. Once I
removed the detachable model wrapped around an object holding a photo
(byte array) retrieved from the database my session size shot up
considerably.
Yes, when just using a list of options a dropdownchoice ist the best way!
But in my case I need a dynamic select with optgoups and dynamic options.
My problem is solved now. I found a css error in my code.
The solution works fine now also with firfox!
ralph
--
View this message in context:
htt
Might be easier to make normal drowdownchoice with dynamic choicces model?
2011/2/17 rawe :
>
>
> Problem or bug in Firefox when using a dynamic wicket select component.
> Firefox can't handle ListView and right placing of optgroup tags!
>
> Please See following thread:
> http://apache-wicket.1842
Problem or bug in Firefox when using a dynamic wicket select component.
Firefox can't handle ListView and right placing of optgroup tags!
Please See following thread:
http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tc1872483.html#a3310381
http://apache-wicket.1842946.
It's working fine with IE, safari, Chrome, Opera but not with Firefox (FF)
The optgroup closing tag is set wrong.
The options are not enclosed in the optgroup tags.
Firebug shows following rendering
Audi
Opel
Thank's for hints!
ralph
--
View this message in context:
http://apache-wicket.1
Hi folks,
coming from the struts world, i need to get used to Wicket models. I
am still unsure if I use them correct, so i would like to ask about
the correctness of my code and hopefully learn more about models.
super(id, new CompoundPropertyModel(new ValueMap()));
List options = new ArrayLis
Thanks it is done
On Thu, Feb 17, 2011 at 4:02 PM, Jehan wrote:
> I am begginer please lettle explain
>
>
> On Thu, Feb 17, 2011 at 3:56 PM, Martin Grigorov wrote:
>
>> public void onEvent() {
>>
>>Object obj = service.getObject();
>>OtherPage otherPage = new OtherPage(obj);
>>setRes
I am begginer please lettle explain
On Thu, Feb 17, 2011 at 3:56 PM, Martin Grigorov wrote:
> public void onEvent() {
>
>Object obj = service.getObject();
>OtherPage otherPage = new OtherPage(obj);
>setResponsePage(otherPage);
> }
>
> On Thu, Feb 17, 2011 at 12:51 PM, Jehan wrote:
>
public void onEvent() {
Object obj = service.getObject();
OtherPage otherPage = new OtherPage(obj);
setResponsePage(otherPage);
}
On Thu, Feb 17, 2011 at 12:51 PM, Jehan wrote:
> I want to pass Object of a class to other page.
>
> On Thu, Feb 17, 2011 at 3:37 PM, Bas Gooren wrote:
I want to pass Object of a class to other page.
On Thu, Feb 17, 2011 at 3:37 PM, Bas Gooren wrote:
> Jehan,
>
> It depends on the URL you want to show to the user. If you want a
> bookmarkable url, you'll need to use page parameters. If the url doesn't
> matter to you, you can simply pass in par
override the factory methods for pagination links creation and use
AttributeAppender to assign the attribute
On Thu, Feb 17, 2011 at 12:25 PM, Tejash Tarun wrote:
> Hi,
>
> want to attach tab index to PagingNavigator but wondering how ??
>
> Thanks and Regards,
> Tejash
>
Either use inmethod-grid component or at least see its implementation for
CheckBoxColumn.
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/inmethod-grid-parent
http://wicketstuff.org/grid-examples/data-grid/item-selection
On Thu, Feb 17, 2011 at 9:47 AM, Alexander Monakhov wrote:
>
Jehan,
It depends on the URL you want to show to the user. If you want a
bookmarkable url, you'll need to use page parameters. If the url doesn't
matter to you, you can simply pass in parameters to the constructor of
the other page, and then call setResponsePage( ).
Bas
Op 17-2-2011 11:32,
Thanks Bas Gooren,
Passing values other pages using PageParameter is like Query String.
What are other ways in wicket of passing values from one page to other.
On Thu, Feb 17, 2011 at 3:08 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:
> I think the problem is there is no model back
Hi,
want to attach tab index to PagingNavigator but wondering how ??
Thanks and Regards,
Tejash
I think the problem is there is no model backing your text field.
Maybe you might want to read [1]
Ernesto
1-https://cwiki.apache.org/WICKET/working-with-wicket-models.html
On Thu, Feb 17, 2011 at 10:56 AM, Jehan wrote:
> -HelloWorld.Html
>
>
>
>
>
>
> --
Hi Jehan,
You'll need to provide your TextField with a model where it can
load/store it's value.
This is easy to do:
new TextField("atext", Model.of(""));
Kind regards,
Bas
Op 17-2-2011 10:56, Jehan schreef:
-HelloWorld.Html
--
-HelloWorld.Html
---HelloWorld.java
Following is code in constructor--- HelloWorld(
PageParameters
pars)
*Form* frm = *new* *Form("myform")
*
{ *protected* *void* onSubmit() { info("Form submitted"
The solution is to nest the ListViews:
Markup:
Code:
Select select = new Select(selectId);
select.add(new ListView("optGroups", transList) {
@Override
protected
55 matches
Mail list logo