Hi,
I created a new database and now it works fine.
Must have been an inconsistency in the development/test environment.
Thanks
Andrea
2008/7/30, Igor Vaynberg [EMAIL PROTECTED]:
On Wed, Jul 30, 2008 at 3:02 AM, Andrea Jahn [EMAIL PROTECTED]
wrote:
Reason is, that the Country class
Hi,
I have a CityListPage, where City objects are listed in a DataView.
The City has a many to one relationship to Country (eager fetching).
For each item in the list there's a edit link to CityEditPage. When the user
clicks the link, the city object is passed to the CityEditPage.
There's a
, 2008 at 12:48 PM, Andrea Jahn
[EMAIL PROTECTED] wrote:
Hi,
I was using Wicket 1.3.3 and tester.destroy() worked fine.
But I had to change to Wicket 1.3.4 (because of WICKET-1558) and now I
get
the
following Exception when tester.destroy() is called:
java.lang.NullPointerException
.
Thanks
Andrea
2008/6/20, Maurice Marrink [EMAIL PROTECTED]:
In the teardown do tester.destroy() this will clean up everything.
Maurice
On Fri, Jun 20, 2008 at 10:16 AM, Andrea Jahn
[EMAIL PROTECTED] wrote:
Hi,
Thank you very much for the Java solution :) !
I have also corrected
is called
by your application.init. you can override that method in your junit
tests to use the mock springcontext.
Maurice
On Thu, Jun 19, 2008 at 11:44 AM, Andrea Jahn
[EMAIL PROTECTED] wrote:
My initial problem was, that I have different application contexts in the
test environment
super.init(). that will fix your swarm problems. as
for spring i think you need:
addComponentInstantiationListener(new SpringComponentInjector(this));
InjectorHolder.getInjector().inject(this);
Maurice
On Wed, Jun 18, 2008 at 10:23 AM, Andrea Jahn
[EMAIL PROTECTED] wrote:
Hi,
after
WicketTester.getWicketSession() but you should be
overriding MyApplication.newSession(Request, Response)
Hope this helps.
Maurice
On Thu, Jun 19, 2008 at 8:43 AM, Andrea Jahn [EMAIL PROTECTED]
wrote:
Hi,
Sorry, if this is a stupid Java question:
But how can I call SwarmWebApplication.init() without
Hi,
after the integration of the Wasp/Swarm framework (only basic functionality
at the moment) I have to adapt the wicket JUnit tests.
But I have the following problems:
public class LoginTest
{
private WicketTester tester;
private FormTester form;
private PersonService
Hi,
I would like to write JUnit tests for the Swarm/Wasp security layer of our
application.
Am I right, that it would make sense to test the wicket layer independent of
the security layer
and separately the Wasp/Swarm functionality ?
How could I start doing this or perhaps are there examples
Hi,
in our application the user's rights depend on the location (Munich,
Berlin,...).
There's a drop down choice, where the user can change the location, on which
he wants to work.
So, when he changes the location, also the principals (permissions) have to
be changed.
How can I remove the old
of the first logincontext. As long as there is a logincontext
active the session won't be destroyed.
Maurice
On Wed, Jun 11, 2008 at 12:33 PM, Andrea Jahn
[EMAIL PROTECTED] wrote:
Hi,
in our application the user's rights depend on the location (Munich,
Berlin,...).
There's a drop down
;
if (link
.isActionAuthorized(getAction(Render.class)))
return true;
return null; // continue
}
});
if (result != null result)
setVisible(true);
else
setVisible(false);
super.onBeforeRender();
}
Hope this answers your question.
Maurice
On Fri, Jun 6, 2008 at 11:57 AM, Andrea Jahn [EMAIL PROTECTED
:[EMAIL PROTECTED] wrote:
something like this should probably be filter inside the database not
by some external filter which forces you to load the entire dataset.
No that would be foolish, but that wasn't suggested.
-igor
On Sun, May 18, 2008 at 9:39 AM, Andrea Jahn [EMAIL PROTECTED
not
by some external filter which forces you to load the entire dataset.
No that would be foolish, but that wasn't suggested.
-igor
On Sun, May 18, 2008 at 9:39 AM, Andrea Jahn [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] wrote:
Hi,
in our application locations are administered
Hi,
in our application locations are administered. A user has only rights on some
of the locations, e.g. Munich, Berlin. He should be able to select one of the
allowed locations in a selection box. Then on the different pages all data are
depending on the actually selected location. For
${DataPermission} delete_product, enable;
coupled with a DatasecurityCheck on your links like so:
setSecurityCheck(new DataSecurityCheck(delete_product));
will do the trick.
Maurice
On Thu, May 15, 2008 at 3:22 PM, Andrea Jahn [EMAIL PROTECTED] wrote:
Hi,
for every item in a table there's
Hi,
for every item in a table there's a delete link, which should be only visible
for certain users.
ProductAreaListPage.html:
-
tr wicket:id=productAreaTable class=list
tdspan wicket:id=id[id]/span/td
tdspan wicket:id=name[name]/span/td
tdspan
jars.
Maurice
On Tue, May 13, 2008 at 8:10 PM, Maurice Marrink [EMAIL PROTECTED] wrote:
On Tue, May 13, 2008 at 6:48 PM, Andrea Jahn [EMAIL PROTECTED] wrote:
Hi,
I've changed to the 1.3.1-SNAPSHOT version. Therefore I have only replaced
the constructor PolicyFileHiveFactory
to set data permissions.
Andrea
*Von:* users@wicket.apache.org
*Gesendet:* 14.05.08 12:35:11
*An:* users@wicket.apache.org
*Betreff:* Re: Swarm: Authorization for WebMarkupContainer
On Wed, May 14, 2008 at 11:53 AM, Andrea Jahn [EMAIL PROTECTED] wrote:
Hi,
thanks for the test example
Hi,
I tried to create a SecureWebMarkupContainer (contains a DataView, Label,..),
which should be only visible for authorized users. But although the user has
the permission APPL_ADMIN, he cannot see the resultHiddenPanel.
Within the hive I used the wicket id resultHiddenPanel to identify
20 matches
Mail list logo