Thank you for finding and reporting this bug.

The problem with WebSpecialCases is due to that you haven't used fully
qualified DEFINE names. Both for the AROUND and EXPAND. Try this instead:

«REM»Temporary fix of CSC-395 «ENDREM»
«AROUND templates::web::JSFCrudGuiJava::getReferenceItems FOR
ReferenceViewProperty»
«LET getRelatedAddTask() AS addTask» 
        protected java.util.List<javax.faces.model.SelectItem>
get«target.name.toFirstUpper()»Items() { 
        java.util.Collection<? extends
«reference.to.getDomainPackage()».«reference.to.name»> «name» =
«addTask.getPrimaryService().name.toFirstLower()».«addTask.getPrimaryServiceOperation().name»(«IF
isServiceContextToBeGenerated()»«serviceContextStoreClass()».get()«ENDIF»); 
        java.util.List<javax.faces.model.SelectItem> items = new
java.util.ArrayList<javax.faces.model.SelectItem>(); 
        for («reference.to.getDomainPackage()».«reference.to.name»
«reference.to.name.toFirstLower()»Item : «name») { 
                if («reference.to.name.toFirstLower()»Item instanceof
«target.getDomainPackage()».«target.name») { 
                                String label = «EXPAND
templates::web::JSFCrudGuiJava::itemLabel(reference.to.name.toFirstLower()+"Item")
FOR reference.to -»; 
                                items.add(new
javax.faces.model.SelectItem(«reference.to.name.toFirstLower()»Item.getId(),label));
 
                        } 
                } 
        return items; 
    } 
«ENDLET» 
«ENDAROUND» 

/Patrik
-- 
View this message in context: 
http://www.nabble.com/-Sculptor--Possible-Inheritance-bug-in-Web-Application-and-problems-with-WebSpecialCases.xpt-tp25238074s17564p25244272.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to