Categories

Duncan Mills

Syndicate this blog

In response to: Come and ask me something interesting....

moncler [Visitor]
thanks for Moncler branson Moncler jackets Christian Louboutin Shoes your post!

Anyway, I'm really pleased to see this is working out for you,Moncler outlet Moncler Christian Louboutin and thanks a million for posting the helpful migration instructions.
Permalink 10/09/10 @ 14:27

In response to: It's Deja Vu all over again

madmax [Visitor] · http://24veikals.lv
does not work with russian language
Permalink 06/06/10 @ 22:18

In response to: JDeveloper - JSF Resource Bundles at design time

Mathew Farney [Visitor]
Copying the resource bundle works. It's not the best solution but it is a simple one. Thanks for the code.
_____________
Mathew Farney | Web Hosting
Permalink 23/02/10 @ 10:26

In response to: Lost Windows in JDeveloper 10.1.3 Preview

Duncan Mills [Member]
I should point out that in the latest production versions of JDev there is no need to do this.
Just go to the Window Menu and choose "Reset Windows to Factory Settings"
Permalink 15/02/10 @ 17:07

In response to: Lost Windows in JDeveloper 10.1.3 Preview

Rafat [Visitor]
Nice work, THX! I got similar problems with Jdev.. :)
Permalink 15/02/10 @ 14:42

In response to: The Uppercase Converter

bukmacher [Visitor] · http://www.i-bukmacher.pl
works great, thanks for code
Permalink 02/02/10 @ 23:10

In response to: The Uppercase Converter

Toxic [Visitor] · http://toxicomaniac.ru
be made simpler? How?
Permalink 01/02/10 @ 16:16

In response to: Running SQL*Plus scripts from ANT

ataşehir halı yıkama [Visitor] · http://www.atasehirhaliyikamamerkezi.com
very good...
Permalink 26/01/10 @ 12:25

In response to: JSF Security Project on SourceForge

Jean-Marc [Visitor]
I've well understood this but, in this particular case, only the application knows the "Construction Project context" the user is working with. The Entitlement server is not aware of that and the roles setup there are static and cannot be dynamic and per "context".
if you agree, I can send you a small ADF application simply showing this requirement implemented with jsf-security for you to understand the case.
Thanks.
Permalink 13/01/10 @ 14:27

In response to: JSF Security Project on SourceForge

Duncan Mills [Member]
Really this is not something that your application should care about - one of the things we've tried to do in ADF Security is to keep all of this kind of logic out of the application itself and instead hand the decision to OPSS where you can put in a pluggable provider for the permission lookup. So the answer to your question is really somewhere in the entitlements server.
you might want to head over to:
http://oracleaccessmanagement.blogspot.com/
Permalink 13/01/10 @ 01:27

In response to: JSF Security Project on SourceForge

Jean-Marc [Visitor]
Sorry I get back to my previous comment after doing many researches and find no easy way to customise ADF Security to do what we did with jsf Security project, e.g. check roles from an Array filled from a select in the database.
This is necessary to implement "dynamic" roles per user & construction project :
A user has role A in project P1 and role B in project P2.
I want say a button to be rendered only if a user has role A.
The ADF application always runs in the context of a project P selected by the user.

Any place where I can try to find a solution to do that in 11g using ADF Security instead of the deprecated jsf-security classes ?

Thanks.
Permalink 12/01/10 @ 17:06

In response to: Using OJAUDIT for fun stuff

Torsten Kleiber [Visitor]
Is it possible to rerun the diagrammer migration as this does not happen here for a big workspace, maybe as a side affect of other errors?
Permalink 11/01/10 @ 15:31

In response to: Dumping out pageFlowScope

Aku Cuma Seorang Blogger Yang Cinta Seo [Visitor]
thanks for information sir
Permalink 08/01/10 @ 04:54

In response to: This DataProvider Thing

shri [Visitor]
I'm developing a CURD functionality using the ADF framework(EJB JSF toplink)

toplink is used for the persistance layer.

I have a table with the foll. fields

regid empid name sl.no relation etc.

The primary key to this table is the combination of regid and sl.no.(the regid is created by sequence and the 5 serial numbers are hardcoded)

I can have upto 5 sl.no in a form. when i once submit the form i want 5 records to get stored in the database.

To insert an entity into DB I hv persistEntity function in the session bean. Now to insert 5 records into database at one submit do i hv to modify the entity object being passed to persistEntity object. If so I'l hv to pass it as a list of 5 objects each containing the same reg id but different sl.nos. Do i hv to override the persistEntity method for this?

Currently the session bean contains the persistEntity method as follows..// autogenerated when i create the session bean checking the facade methods.


package model;

import java.util.List;

import javax.ejb.Stateless;

import model.persistance.Dummy;
import model.persistance.DummyRef;

import oracle.toplink.sessions.Session;
import oracle.toplink.sessions.UnitOfWork;
import oracle.toplink.util.SessionFactory;

@Stateless(name="SessionEJB")
public class SessionEJBBean implements SessionEJBLocal {
private SessionFactory sessionFactory;

public SessionEJBBean() {
this.sessionFactory =
new SessionFactory("META-INF/sessions.xml", "default");
}


:
:
:
:


public Object persistEntity(Object entity) {
UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
Object existingObject = uow.readObject(entity);
if (existingObject != null)
throw new RuntimeException("Entity already exists");
Object newInstance = uow.deepMergeClone(entity);
uow.commit();

return newInstance;
}



:
:
:
}


Or do i hv to write a named query for this.

also if I want to return the generated ID back to the user. How do i do?
Please guide in this regard.

Thanks
Shri.
Permalink 09/12/09 @ 07:24

In response to: Decorating the Train

Duncan Mills [Member]
There is probably no need to use the train control at all then - you could just build up images and text on each page.
Permalink 25/11/09 @ 16:57

In response to: Decorating the Train

Renan [Visitor]
Sorry,
I mean Duncan,
really sorry about the confusionn... =p
Permalink 25/11/09 @ 15:07

In response to: Decorating the Train

Renan [Visitor]
Hi Edwin,
it is possible to make a non-clickabe(non-navigable) train?
I want a train only to the user knows where step he/she is.
I mean a "view-only-train".

Thanks,
Renan.
Permalink 25/11/09 @ 15:05

In response to: Using OJAUDIT for fun stuff

Duncan Mills [Member]
I must admit I've not tried that...
Permalink 17/11/09 @ 19:23

In response to: Playing with af:poll

Duncan Mills [Member]
You can just set the Value or Max value to a negative number (e.g. -1) and the indeterminate state of the progress component is shown (a spinner)
Permalink 17/11/09 @ 16:42

In response to: Using OJAUDIT for fun stuff

Gerard Davison [Visitor] · http://kingsfleet.blogspot.com
Does this work with the source control plugins? Will it check out files that need to be modified?
Permalink 17/11/09 @ 10:11