Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Standards around Model / UI project dependencies
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jang Vijay Singh  
View profile  
 More options Oct 30, 5:13 am
From: Jang Vijay Singh <jvs...@gmail.com>
Date: Thu, 29 Oct 2009 11:13:07 -0700 (PDT)
Local: Fri, Oct 30 2009 5:13 am
Subject: Standards around Model / UI project dependencies
Hello Everyone,

This is my first post to the group and I look forward to exchanging
ideas with all of you. I am very passionate about getting this
excellent technology widely adopted and in the right way.

I did search the group for existing posts on this topic but didn't
find any.

I think one point that merits an addition to the standards is for
model projects not to have any UI / Faces dependencies (and hence no
public_html and web.xml in a model project) and vice versa, i.e. a
UI / ViewController project to not be initialised for business
components.

First of all, it promotes a clean MVC implementation and no improper
usage of API's creeps in.
Secondly, while OC4J never complained, I think weblogic has a problem
with web components in model projects.

Any thoughts on this?

Thanks,
JV Singh


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avrom Roy-Faderman  
View profile  
 More options Oct 30, 10:58 am
From: "Avrom Roy-Faderman" <av...@avromroyfaderman.com>
Date: Thu, 29 Oct 2009 16:58:27 -0700
Local: Fri, Oct 30 2009 10:58 am
Subject: Re: [ADF EMG] Standards around Model / UI project dependencies
Moreover, as your projects grow, maintaining a strict discipline about
dependencies is the only reliable way to prevent loops.

I *think* this is actually published somewhere in official Oracle material
as a best practice. But in any case, I agree with you: Your Model project
should never refer directly to anything in your ViewController project,
and should never use any APIs intended for UI development (e.g., Faces
APIs).

I'll go a step farther--while your ViewController project certainly can
(indeed, must) depend on your Model project, you should keep these
couplings as loose as possible. With only a *very* small number of
exceptions, code references to anything in any jbo.* package except
domains and Exceptions don't belong in your ViewController project outside
of your bindings files; all business access should go through those
bindings.

Best,
Avrom

--
Avrom’s Java EE and Oracle ADF Blog
http://www.avromroyfaderman.com

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google