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?
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
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.
-
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
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
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
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
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
> - 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
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
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
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
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
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
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
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)
>
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?
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
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)
>
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
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
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,
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
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
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
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
Yep.
public final Component setOutputMarkupPlaceholderTag(final boolean outputTag)
{
if (outputTag != getFlag(FLAG_PLACEHOLDER))
{
if (outputTag)
{
setOutputMarkupId(true);
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
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
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
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
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
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
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
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
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
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
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
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
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
40 matches
Mail list logo