Re: Oracle & Wicket Starter Application Project

2010-12-21 Thread Jeremy Thomerson
On Tue, Dec 21, 2010 at 6:12 PM, Eelco Hillenius wrote: > > - using database roles to restrict access to data, and not relying wholly > on application enforced security > > So if you want to determine whether user X can see button Y, you have > to query the database for particular role membership?

Re: saving uploaded file to temp folder best practices

2010-12-21 Thread James Carman
Why don't you try an upload and see what the file name is in the temp folder. On Tue, Dec 21, 2010 at 11:18 PM, fachhoch wrote: > > No i have not tried  yet , I will try it , but this is what should happen > right ? > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.co

Re: saving uploaded file to temp folder best practices

2010-12-21 Thread fachhoch
No i have not tried yet , I will try it , but this is what should happen right ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/saving-uploaded-file-to-temp-folder-best-practices-tp3160036p3160091.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: saving uploaded file to temp folder best practices

2010-12-21 Thread James Carman
Have you verified that this is what happens? On Dec 21, 2010 10:00 PM, "fachhoch" wrote: > > I am want to save the uploaded file in temp folder till its persisted in > database along with some other fields. > I have a page with a form and a uploadpanel which is ajaxfileupload. > User 1 open this p

saving uploaded file to temp folder best practices

2010-12-21 Thread fachhoch
I am want to save the uploaded file in temp folder till its persisted in database along with some other fields. I have a page with a form and a uploadpanel which is ajaxfileupload. User 1 open this page uploaded a file with name test.pdf and filing up other fields in the form. at this time us

Re: Oracle & Wicket Starter Application Project

2010-12-21 Thread Brian Topping
On Dec 21, 2010, at 5:14 PM, Andrew Hall wrote: > It'd be fair to say that some of my Java may not be of the highest standard, > so if anyone has the inclination to look at this, any constructive feedback > would be appreciated. I've thought about how to use the database this way as well. Eel

Re: Oracle & Wicket Starter Application Project

2010-12-21 Thread Scott Swank
You shouldn't need a connection per user with Oracle's "Universal Connection Pool" jar. e.g. in his AbstractOracleDAO UCPMgr.getLabelledConnection( pUsername , pPassword ); Scott On Tue, Dec 21, 2010 at 4:12 PM, Eelco Hillenius wrote: >> - using individual database users to represent real

Re: Oracle & Wicket Starter Application Project

2010-12-21 Thread James Carman
Let me guess, you're a dba? On Dec 21, 2010 5:14 PM, "Andrew Hall" wrote: > > Hi, > I've put together a project based on Wicket & Oracle which I'd hope could serve as a good starting point for applications based on these 2 technologies. > My background is in writing large applications based upon O

Re: Oracle & Wicket Starter Application Project

2010-12-21 Thread Eelco Hillenius
> - using individual database users to represent real users - giving end-to-end > authentication & allowing the use of features such as SQL Trace & fine > grained auditing Does that mean that the number of open connections always equals the number of signed in users? > - using database roles to

Oracle & Wicket Starter Application Project

2010-12-21 Thread Andrew Hall
Hi, I've put together a project based on Wicket & Oracle which I'd hope could serve as a good starting point for applications based on these 2 technologies. My background is in writing large applications based upon Oracle & I wrote this to learn about Wicket & Java and also to prove to myself th

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread eugenebalt
It looks like I fixed it by adding new Ajax code to Field2. The Field2's Ajax code does nothing, it just calls target.addComponent() on itself: target.addComponent(Field2). This got rid of the values getting erased. So whenever you update something via Ajax, it has to be 2-way? You need to atta

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread eugenebalt
But I can't use AjaxFormSubmittingBehavior (correct me if I'm wrong). I need to make some changes to Field2 prior to any form submission, they have to be made as soon as the sourceField has changed in any way. I just don't want the Field2's values to get erased without me even doing anything. I

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Igor Vaynberg
s/AjaxFormChoiceComponentUpdatingBehavior/AjaxFormSubmittingBehavior/ so all values are propagated -igor On Tue, Dec 21, 2010 at 10:24 PM, eugenebalt wrote: > > Thanks for the fast replies, much appreciated, but what should I change in my > code? I'm still not clear. > > Yes, the Field2 had some

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread eugenebalt
Thanks for the fast replies, much appreciated, but what should I change in my code? I'm still not clear. Yes, the Field2 had some initial values with which it was constructed. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/target-addComponent-Field-in-Ajax-erases-th

Re: adding sub rows to AjaxFallbackDefaultDataTable

2010-12-21 Thread Benedikt Schlegel
First, I never used the tree table from wicket-extensions. But i had a very quick look at the code and had the following idea. You could try to extend the TreeTable so you can provide your own TreeFragment. This ExtendedTreeFragment could render different components depending on the 'level' parame

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Pedro Santos
On Tue, Dec 21, 2010 at 5:50 PM, eugenebalt wrote: > > I have a piece of Ajax code, attached to some field (let's call it > sourceField), which looks like this: > > > sourceField.add(new AjaxFormChoiceComponentUpdatingBehavior() > { > > protected void onUpdate(AjaxRequestTarget target) >

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Jeremy Thomerson
Awesome! I love the Wicket community. 11 minutes after the initial post, there are three very helpful answers. Great work everyone! On Tue, Dec 21, 2010 at 2:01 PM, Hielke Hoeve wrote: > Did the field2 have an initial value or did you set the value in your > browser and then let the ajax run?

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Hielke Hoeve
Did the field2 have an initial value or did you set the value in your browser and then let the ajax run? Hielke On 21 Dec 2010 20:51, "eugenebalt" wrote: > > > I have a piece of Ajax code, attached to some field (let's call it > sourceField), which looks like this: > > > sourceField.add(new Ajax

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Jeremy Thomerson
On Tue, Dec 21, 2010 at 1:50 PM, eugenebalt wrote: > > I have a piece of Ajax code, attached to some field (let's call it > sourceField), which looks like this: > > > sourceField.add(new AjaxFormChoiceComponentUpdatingBehavior() > { > > protected void onUpdate(AjaxRequestTarget target) >

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Igor Vaynberg
im going to guess that the field is repainted with the values the serverside thinks should be selected. if the values from the clientside are not processed by the serverside before the ajax update they will be different, and so the serverside state overrides the clientside state. -igor On Tue, De

target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread eugenebalt
I have a piece of Ajax code, attached to some field (let's call it sourceField), which looks like this: sourceField.add(new AjaxFormChoiceComponentUpdatingBehavior() { protected void onUpdate(AjaxRequestTarget target) { target.addComponent(Field2); } } As you can se

Re: Set Current DropDownChoice Item (Selected)

2010-12-21 Thread eugenebalt
Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-Current-DropDownChoice-Item-Selected-tp3154886p3159534.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: Nested Forms and Multipart Fileupload Issue

2010-12-21 Thread theFatEx
Hi, WICKET-2779 seems to be related to modal windows with upload and ajax but jcorbins original post was about a nested form in a modal window within a multipart form. Are both issues fixed or does the problem from jcorbins first post persist? thanks Christian -- View this message in cont

Re: Set Current DropDownChoice Item (Selected)

2010-12-21 Thread Andrea Del Bene
HI, suppose that your choices list is called choicesList and your DropDownChoice is called options you should write something like: options.setModelObject(choicesList.get(i)); How do I set the DropDownChoice to a particular choice (item) of the list? My DropDownChoice has items X,Y,Z. I w

Re: Set Current DropDownChoice Item (Selected)

2010-12-21 Thread Alexander Monakhov
Hello. Use setModel() in this case. Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Set Current DropDownChoice Item (Selected)

2010-12-21 Thread eugenebalt
How do I set the DropDownChoice to a particular choice (item) of the list? My DropDownChoice has items X,Y,Z. I would like to set the currently selected item to Y. I have the method setChoices(..) which lets me initialize the list, but is there a method to select an item by index? -- View this

Re: Visibility setting with Ajax

2010-12-21 Thread Ernesto Reinaldo Barreiro
Yep. public final Component setOutputMarkupPlaceholderTag(final boolean outputTag) { if (outputTag != getFlag(FLAG_PLACEHOLDER)) { if (outputTag) { setOutputMarkupId(true);

Re: Visibility setting with Ajax

2010-12-21 Thread Ernesto Reinaldo Barreiro
div with a is set ==> div with the ID attribute set On Tue, Dec 21, 2010 at 2:36 PM, Ernesto Reinaldo Barreiro wrote: > panel.setOutputMarkupPlaceholderTag(true); should be done on panel > creation: this is needed to tell wicket that even when the component > is not visible it should render an em

Re: Visibility setting with Ajax

2010-12-21 Thread Ernesto Reinaldo Barreiro
panel.setOutputMarkupPlaceholderTag(true); should be done on panel creation: this is needed to tell wicket that even when the component is not visible it should render an empty div with a is set, so that it can be later used to plugin the panel contents via AJAX when you do setVisible(true). So, pu

Re: Visibility setting with Ajax

2010-12-21 Thread MZemeck
I think you are correct, calling setOutputMarkupId(true) is not necessary when calling setOutputMarkupPlaceholderTag(true). If I remember correctly from looking at the code for setOutputMarkupPlaceholderTag(), this will call setOutputMarkupId(true) for you. From: Duro To: users@wick

Re: Visibility setting with Ajax

2010-12-21 Thread Duro
thanks, setOutputMarkupId(true) is probably not necessary., but adding the component to target and setOutputMarkupPlaceholderTag(true) is. Now i tried to mak eit work even better and removed the panels from the site. i want to add them just on time, when the user request it. so site looks now li

Re: Visibility setting with Ajax

2010-12-21 Thread Ernesto Reinaldo Barreiro
1-Put uploadPanel2.setOutputMarkupId(true); uploadPanel2.setOutputMarkupPlaceholderTag(true); uploadPanel2.setVisible(false); when you create the panel. 2- on  public void onClick(AjaxRequestTarget target) { uploadPanel2.setVisible(true); target.addComponent(uploadPanel2

Re: Visibility setting with Ajax

2010-12-21 Thread Duro
solved, thanks a lot Make sure of set the OutputMarkupPlaceholderTag to true in uploadPanels also On Tue, Dec 21, 2010 at 10:46 AM, Tejash Tarun wrote: Hi, What it looks to me that the panel of which visibility has been set is not added to the target. So, IMHO *target.add(uploadPanel2)* shou

Visibility setting with Ajax

2010-12-21 Thread Juraj Petko
Hi, i have 3 panels on my page: wicket:extend> Epubs upload Add next file and only after clicking addLink, the user should see the uploadPanel2. So i coded this: add(new AjaxFallbackLink("addLink") { private static final long serialVersionUID = -442783192331802497

Re: Visibility setting with Ajax

2010-12-21 Thread Pedro Santos
Make sure of set the OutputMarkupPlaceholderTag to true in uploadPanels also On Tue, Dec 21, 2010 at 10:46 AM, Tejash Tarun wrote: > Hi, > > What it looks to me that the panel of which visibility has been set is not > added to the target. > So, IMHO *target.add(uploadPanel2)* should do. > > Rega

Re: Visibility setting with Ajax

2010-12-21 Thread Tejash Tarun
Hi, What it looks to me that the panel of which visibility has been set is not added to the target. So, IMHO *target.add(uploadPanel2)* should do. Regards On Tue, Dec 21, 2010 at 6:09 PM, Duro wrote: > Hi, i have 3 panels on my page: > wicket:extend> > > Epubs upload > > > > > > Add next

Visibility setting with Ajax

2010-12-21 Thread Duro
Hi, i have 3 panels on my page: wicket:extend> Epubs upload Add next file and only after clicking addLink, the user should see the uploadPanel2. So i coded this: add(new AjaxFallbackLink("addLink") { private static final long serialVersionUID = -442783192331802497

Re: Problem with RadioGroup / Radio / TextField

2010-12-21 Thread Ioannis Canellos
Thanks On Tue, Dec 21, 2010 at 9:59 AM, Jeremy Thomerson wrote: > On Tue, Dec 21, 2010 at 1:44 AM, Ioannis Canellos > wrote: > > Sorry but I received delivery failure both times I sent the email. > > No worries. It may have been a notification that your message needed > to be moderated through

Re: DropDownChoice, AjaxFormComponentUpdatingBehavior and dijit.form.FilteringSelect

2010-12-21 Thread Martin Grigorov
On Mon, Dec 20, 2010 at 11:47 PM, Jeremy Thomerson < jer...@wickettraining.com> wrote: > On Mon, Dec 20, 2010 at 4:41 PM, hok wrote: > > > > Jeremy, thanks for the fast response. However my problem is not the same > as > > described in the other topic. > > I'm using DropDownChoice, so I cannot us

Re: Problem with RadioGroup / Radio / TextField

2010-12-21 Thread Jeremy Thomerson
On Tue, Dec 21, 2010 at 1:44 AM, Ioannis Canellos wrote: > Sorry but I received delivery failure both times I sent the email. No worries. It may have been a notification that your message needed to be moderated through. When I moderated your message, I also made it so that all messages from you